Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/plugins/help/src/HelpIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ export default {

const toShowStep = () => {
if (!tinyGuideRef.value?.state?.tour?.isActive()) {
state.showStep = !state.showStep
setTimeout(() => {
state.showStep = !state.showStep
}, 1000)
state.helpBox = false
}
}
Comment thread
xuanlid marked this conversation as resolved.
Expand Down
6 changes: 3 additions & 3 deletions packages/plugins/robot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"homepage": "https://opentiny.design/tiny-engine",
"dependencies": {
"@opentiny/tiny-engine-meta-register": "workspace:*",
"@opentiny/tiny-robot": "0.3.0-alpha.14",
"@opentiny/tiny-robot-kit": "0.3.0-alpha.14",
"@opentiny/tiny-robot-svgs": "0.3.0-alpha.14",
"@opentiny/tiny-robot": "0.3.0-rc.0",
"@opentiny/tiny-robot-kit": "0.3.0-rc.0",
"@opentiny/tiny-robot-svgs": "0.3.0-rc.0",
"dompurify": "^3.0.1",
"highlight.js": "^11.11.1",
"markdown-it": "^14.1.0"
Expand Down
7 changes: 5 additions & 2 deletions packages/plugins/robot/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ export default {
}
</script>

<style lang="less" scope>
<style lang="less" scoped>
.robot-img {
display: flex;
justify-content: center;
Expand All @@ -466,12 +466,15 @@ export default {
}
}

.tiny-container {
:deep(.tiny-container) {
container-type: inline-size;

&.tr-container.tr-container {
top: var(--base-top-panel-height);
--tr-container-width: 400px;
.tr-container__dragging-bar {
display: none;
}
Comment thread
xuanlid marked this conversation as resolved.
}

:deep(button.icon-btn) {
Expand Down
11 changes: 11 additions & 0 deletions packages/plugins/robot/src/mcp/McpServer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
:market-category-options="[]"
:loading="loading"
:market-loading="marketLoading"
:show-market-tab="false"
@plugin-expand="handlePluginExpand"
@plugin-add="updateMcpServerStatus"
@plugin-toggle="handlePluginToggle"
Expand Down Expand Up @@ -79,6 +80,13 @@ onMounted(() => {
display: none !important;
}
}
:deep(.mcp-server-picker__content-item) {
.plugin-card__operations {
.tiny-popconfirm {
display: none !important;
}
}
}

:deep(.mcp-server-picker__content) {
.tiny-tabs.tiny-tabs .tiny-tabs__header .tiny-tabs__nav {
Expand All @@ -88,6 +96,9 @@ onMounted(() => {
border: none;
background-color: unset;
}
.tiny-tabs.tiny-tabs .tiny-tabs__header .tiny-tabs__nav {
width: 160px;
}
}

:deep(.tiny-tabs__content) {
Expand Down
4 changes: 3 additions & 1 deletion packages/plugins/robot/src/mcp/useMcp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const MOCK_SERVERS: PluginInfo[] = [
const mcpServers = ref<PluginInfo[]>([ENGINE_MCP_SERVER, ...MOCK_SERVERS])

const inUseMcpServers = ref<PluginInfo[]>([
{ ...ENGINE_MCP_SERVER, enabled: true, expanded: false, tools: [], toolCount: 0 }
{ ...ENGINE_MCP_SERVER, enabled: true, expanded: true, tools: [], toolCount: 0 }
])

const updateServerTools = (serverId: string, tools: PluginTool[]) => {
Expand Down Expand Up @@ -114,6 +114,8 @@ const connectMcpServer = (_server: PluginInfo) => {}
const disconnectMcpServer = (_server: PluginInfo) => {}

const updateMcpServerStatus = async (server: PluginInfo, added: boolean) => {
// 市场添加状态修改
server.added = added
if (added) {
const newServer: PluginInfo = {
...server,
Expand Down