@microi.net/cli 6.1.8 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/.codebuddy-plugin/marketplace.json +2 -2
  2. package/.codebuddy-plugin/plugin.json +1 -1
  3. package/.codex-plugin/plugin.json +43 -43
  4. package/.mcp.json +1 -1
  5. package/.workbuddy-plugin/marketplace.json +2 -2
  6. package/.workbuddy-plugin/plugin.json +1 -1
  7. package/assets/build-meta.json +4 -4
  8. package/cordis.patch.yml +1 -1
  9. package/package.json +82 -82
  10. package/scripts/codex-marketplace.json +20 -20
  11. package/scripts/mcp-codex-stdio-adapter.js +189 -189
  12. package/scripts/mcp-server.js +100 -96
  13. package/scripts/mcp-trae-windows-launcher.cmd +21 -21
  14. package/scripts/microi-cli-mcp.js +7 -7
  15. package/scripts/microi-skills.meta.json +247 -235
  16. package/skills/.microi-skills-version.json +2 -2
  17. package/skills/.progressive-disclosure-manifest.json +72 -66
  18. package/skills/ai-engine/SKILL.md +303 -293
  19. package/skills/app-store/SKILL.md +2 -1
  20. package/skills/microi-client-frontend/SKILL.md +260 -252
  21. package/skills/microi-datasource-mapping/SKILL.md +4 -0
  22. package/skills/microi-deployment/SKILL.md +63 -5
  23. package/skills/microi-deployment/references/deployment-matrix.md +27 -0
  24. package/skills/microi-deployment/references/offline-installer.md +64 -0
  25. package/skills/microi-docs-coverage/references/capability-map.md +3 -3
  26. package/skills/microi-form-engine/SKILL.md +13 -0
  27. package/skills/microi-form-engine/references/component-catalog.md +1 -1
  28. package/skills/microi-microservice/SKILL.md +17 -0
  29. package/skills/microi-system-delivery/SKILL.md +8 -6
  30. package/skills/microi-system-delivery/references/delivery-pitfalls.md +50 -0
  31. package/skills/microi-system-delivery/references/progressive-01-/346/240/207/345/207/206/345/267/245/344/275/234/346/265/201.md +11 -9
  32. package/skills/microi-uniapp-frontend/SKILL.md +18 -3
  33. package/skills/module-engine/SKILL.md +4 -5
  34. package/skills/page-engine/SKILL.md +233 -215
  35. package/skills/print-engine/SKILL.md +5 -0
  36. package/skills/report-engine/SKILL.md +9 -0
  37. package/skills/report-engine/scripts/check-demo-coverage.mjs +88 -0
  38. package/skills/report-engine/scripts/check-demo-coverage.test.mjs +52 -0
  39. package/skills/scripts/sync-embedded-skills.mjs +4 -1
  40. package/skills/ui-design/SKILL.md +1 -1
  41. package/skills/uniapp-mall-assets/SKILL.md +5 -0
  42. package/skills/v8-file-upload/SKILL.md +19 -4
  43. package/skills/v8-file-upload/references/hotspot-offload-operations.md +16 -1
  44. package/skills/v8-saas-multi-tenant/SKILL.md +17 -4
  45. package/skills/v8-security/SKILL.md +20 -5
  46. package/skills/vision-engine/SKILL.md +114 -3
  47. package/skills/vision-engine/references/architecture-and-acceptance.md +8 -0
  48. package/skills/workspace-conventions/SKILL.md +9 -3
  49. package/skills/workspace-conventions/references/progressive-01-/347/211/210/346/234/254/346/233/264/346/226/260/346/227/245/345/277/227/344/277/235/346/212/244/350/247/204/345/210/231-/345/274/272/345/210/266.md +4 -4
  50. package/skills/workspace-conventions/references/progressive-04-/345/267/245/344/275/234/345/214/272/344/270/216/345/271/263/345/217/260/344/270/223/351/241/271/344/277/235/351/232/234.md +22 -1
@@ -5,13 +5,13 @@
5
5
  "url": "https://microi.net"
6
6
  },
7
7
  "description": "Microi吾码官方 AI 插件市场",
8
- "version": "6.1.8",
8
+ "version": "6.2.0",
9
9
  "plugins": [
10
10
  {
11
11
  "name": "microi",
12
12
  "source": ".",
13
13
  "description": "Microi吾码 AI 开发插件:服务器连接、Skills、MCP、V8 全量同步与低代码交付",
14
- "version": "6.1.8",
14
+ "version": "6.2.0",
15
15
  "strict": true
16
16
  }
17
17
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microi",
3
- "version": "6.1.8",
3
+ "version": "6.2.0",
4
4
  "description": "Microi吾码 AI 开发插件:服务器连接、Skills、MCP、V8 全量同步与低代码交付",
5
5
  "author": {
6
6
  "name": "Microi.Net",
@@ -1,43 +1,43 @@
1
- {
2
- "name": "microi",
3
- "version": "6.1.8",
4
- "description": "Microi吾码低代码平台的 Codex 开发插件,共享 VS Code/CLI 的连接、同步、MCP、V8 与交付能力。",
5
- "author": {
6
- "name": "Microi.Net",
7
- "url": "https://microi.net"
8
- },
9
- "homepage": "https://microi.net/doc/v8-engine/vs-code-plugin.html",
10
- "repository": "https://gitee.com/ITdos/microi.net",
11
- "license": "MIT",
12
- "keywords": [
13
- "microi",
14
- "吾码",
15
- "v8",
16
- "low-code",
17
- "mcp",
18
- "codex"
19
- ],
20
- "skills": "./skills/",
21
- "interface": {
22
- "displayName": "Microi吾码",
23
- "shortDescription": "在 Codex 中开发、同步、调试和交付 Microi 应用",
24
- "longDescription": "@microi.net/cli 同时提供 Microi吾码 CLI 与 Codex Plugin,复用 Microi.Code 的配置、Token、MCP Server 和全套领域 Skill,覆盖连接登录、代码同步、V8/表单/模块/工作流、微应用、性能测试与 Playwright。",
25
- "developerName": "Microi.Net",
26
- "category": "Developer Tools",
27
- "capabilities": [
28
- "Skills",
29
- "MCP",
30
- "CLI"
31
- ],
32
- "websiteURL": "https://microi.net",
33
- "defaultPrompt": [
34
- "连接当前工作区的 Microi吾码环境并检查状态。",
35
- "拉取并分析当前租户的 V8 接口引擎。",
36
- "使用 Microi Skills 完成一个可回读验收的低代码需求。"
37
- ],
38
- "brandColor": "#409EFF",
39
- "composerIcon": "./assets/icon.png",
40
- "logo": "./assets/logo.svg"
41
- },
42
- "mcpServers": "./.mcp.json"
43
- }
1
+ {
2
+ "name": "microi",
3
+ "version": "6.2.0",
4
+ "description": "Microi吾码低代码平台的 Codex 开发插件,共享 VS Code/CLI 的连接、同步、MCP、V8 与交付能力。",
5
+ "author": {
6
+ "name": "Microi.Net",
7
+ "url": "https://microi.net"
8
+ },
9
+ "homepage": "https://microi.net/doc/v8-engine/vs-code-plugin.html",
10
+ "repository": "https://gitee.com/ITdos/microi.net",
11
+ "license": "MIT",
12
+ "keywords": [
13
+ "microi",
14
+ "吾码",
15
+ "v8",
16
+ "low-code",
17
+ "mcp",
18
+ "codex"
19
+ ],
20
+ "skills": "./skills/",
21
+ "interface": {
22
+ "displayName": "Microi吾码",
23
+ "shortDescription": "在 Codex 中开发、同步、调试和交付 Microi 应用",
24
+ "longDescription": "@microi.net/cli 同时提供 Microi吾码 CLI 与 Codex Plugin,复用 Microi.Code 的配置、Token、MCP Server 和全套领域 Skill,覆盖连接登录、代码同步、V8/表单/模块/工作流、微应用、性能测试与 Playwright。",
25
+ "developerName": "Microi.Net",
26
+ "category": "Developer Tools",
27
+ "capabilities": [
28
+ "Skills",
29
+ "MCP",
30
+ "CLI"
31
+ ],
32
+ "websiteURL": "https://microi.net",
33
+ "defaultPrompt": [
34
+ "连接当前工作区的 Microi吾码环境并检查状态。",
35
+ "拉取并分析当前租户的 V8 接口引擎。",
36
+ "使用 Microi Skills 完成一个可回读验收的低代码需求。"
37
+ ],
38
+ "brandColor": "#409EFF",
39
+ "composerIcon": "./assets/icon.png",
40
+ "logo": "./assets/logo.svg"
41
+ },
42
+ "mcpServers": "./.mcp.json"
43
+ }
package/.mcp.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "command": "node",
5
5
  "args": [
6
6
  "-e",
7
- "/*\r\n * Codex CLI 仍不会把 plugin .mcp.json 的相对路径定位到插件根。\r\n * 本脚本作为 `node -e` 内容运行:CodeBuddy/WorkBuddy 优先使用宿主注入的\r\n * plugin root;Codex 则回退到官方 plugin cache,并统一执行双清单校验。\r\n */\r\nconst fs = require('node:fs');\r\nconst os = require('node:os');\r\nconst path = require('node:path');\r\nconst primaryPackageName = '@microi.net/cli';\r\nconst legacyPackageName = '@microi.net/codex-plugin';\r\n\r\nfunction readJson(filePath) {\r\n try { return JSON.parse(fs.readFileSync(filePath, 'utf8')); }\r\n catch { return undefined; }\r\n}\r\nfunction validPluginRoot(root) {\r\n const manifest = readJson(path.join(root, '.codex-plugin', 'plugin.json'));\r\n const pkg = readJson(path.join(root, 'package.json'));\r\n const adapter = path.join(root, 'scripts', 'mcp-codex-stdio-adapter.js');\r\n const router = path.join(root, 'scripts', 'microi-codex-router.js');\r\n if (manifest?.name !== 'microi' || ![primaryPackageName, legacyPackageName].includes(pkg?.name)) return undefined;\r\n if (!manifest.version || manifest.version !== pkg.version) return undefined;\r\n if (!fs.existsSync(adapter) || !fs.existsSync(router)) return undefined;\r\n return {\r\n root,\r\n adapter,\r\n router,\r\n packagePriority: pkg.name === primaryPackageName ? 1 : 0,\r\n modifiedAt: Math.max(fs.statSync(adapter).mtimeMs, fs.statSync(router).mtimeMs),\r\n };\r\n}\r\n\r\nfunction findPluginRoot() {\r\n const explicitRoots = [\r\n ['MICROI_CODEX_PLUGIN_ROOT', process.env.MICROI_CODEX_PLUGIN_ROOT],\r\n ['CODEBUDDY_PLUGIN_ROOT', process.env.CODEBUDDY_PLUGIN_ROOT],\r\n ['WORKBUDDY_PLUGIN_ROOT', process.env.WORKBUDDY_PLUGIN_ROOT],\r\n ['CLAUDE_PLUGIN_ROOT', process.env.CLAUDE_PLUGIN_ROOT],\r\n ];\r\n for (const [source, value] of explicitRoots) {\r\n const explicit = String(value || '').trim();\r\n if (!explicit) continue;\r\n const validated = validPluginRoot(path.resolve(explicit));\r\n if (!validated) throw new Error(`${source} 不是有效的 Microi Plugin:${explicit}`);\r\n return validated;\r\n }\r\n\r\n const codexHome = path.resolve(process.env.CODEX_HOME || path.join(os.homedir(), '.codex'));\r\n const cacheRoot = path.join(codexHome, 'plugins', 'cache');\r\n const candidates = [];\r\n if (fs.existsSync(cacheRoot)) {\r\n for (const marketplace of fs.readdirSync(cacheRoot, { withFileTypes: true }).filter(entry => entry.isDirectory())) {\r\n const pluginDir = path.join(cacheRoot, marketplace.name, 'microi');\r\n if (!fs.existsSync(pluginDir)) continue;\r\n for (const version of fs.readdirSync(pluginDir, { withFileTypes: true }).filter(entry => entry.isDirectory())) {\r\n const candidateRoot = path.resolve(pluginDir, version.name);\r\n const relative = path.relative(cacheRoot, candidateRoot);\r\n if (relative.startsWith('..') || path.isAbsolute(relative)) continue;\r\n const validated = validPluginRoot(candidateRoot);\r\n if (validated) candidates.push(validated);\r\n }\r\n }\r\n }\r\n candidates.sort((left, right) => right.packagePriority - left.packagePriority || right.modifiedAt - left.modifiedAt);\r\n if (!candidates[0]) {\r\n throw new Error(`未在 Codex plugin cache 找到有效的 Microi Agentx Plugin:${cacheRoot}`);\r\n }\r\n return candidates[0];\r\n}\r\n\r\ntry {\r\n const plugin = findPluginRoot();\r\n process.env.MICROI_CODEX_PLUGIN_ROOT = plugin.root;\r\n process.argv[2] = plugin.router;\r\n require(plugin.adapter);\r\n} catch (error) {\r\n console.error(`[microi-codex-bootstrap] ${error instanceof Error ? error.message : String(error)}`);\r\n process.exit(1);\r\n}\r\n"
7
+ "/*\n * Codex CLI 仍不会把 plugin .mcp.json 的相对路径定位到插件根。\n * 本脚本作为 `node -e` 内容运行:CodeBuddy/WorkBuddy 优先使用宿主注入的\n * plugin root;Codex 则回退到官方 plugin cache,并统一执行双清单校验。\n */\nconst fs = require('node:fs');\nconst os = require('node:os');\nconst path = require('node:path');\nconst primaryPackageName = '@microi.net/cli';\nconst legacyPackageName = '@microi.net/codex-plugin';\n\nfunction readJson(filePath) {\n try { return JSON.parse(fs.readFileSync(filePath, 'utf8')); }\n catch { return undefined; }\n}\nfunction validPluginRoot(root) {\n const manifest = readJson(path.join(root, '.codex-plugin', 'plugin.json'));\n const pkg = readJson(path.join(root, 'package.json'));\n const adapter = path.join(root, 'scripts', 'mcp-codex-stdio-adapter.js');\n const router = path.join(root, 'scripts', 'microi-codex-router.js');\n if (manifest?.name !== 'microi' || ![primaryPackageName, legacyPackageName].includes(pkg?.name)) return undefined;\n if (!manifest.version || manifest.version !== pkg.version) return undefined;\n if (!fs.existsSync(adapter) || !fs.existsSync(router)) return undefined;\n return {\n root,\n adapter,\n router,\n packagePriority: pkg.name === primaryPackageName ? 1 : 0,\n modifiedAt: Math.max(fs.statSync(adapter).mtimeMs, fs.statSync(router).mtimeMs),\n };\n}\n\nfunction findPluginRoot() {\n const explicitRoots = [\n ['MICROI_CODEX_PLUGIN_ROOT', process.env.MICROI_CODEX_PLUGIN_ROOT],\n ['CODEBUDDY_PLUGIN_ROOT', process.env.CODEBUDDY_PLUGIN_ROOT],\n ['WORKBUDDY_PLUGIN_ROOT', process.env.WORKBUDDY_PLUGIN_ROOT],\n ['CLAUDE_PLUGIN_ROOT', process.env.CLAUDE_PLUGIN_ROOT],\n ];\n for (const [source, value] of explicitRoots) {\n const explicit = String(value || '').trim();\n if (!explicit) continue;\n const validated = validPluginRoot(path.resolve(explicit));\n if (!validated) throw new Error(`${source} 不是有效的 Microi Plugin:${explicit}`);\n return validated;\n }\n\n const codexHome = path.resolve(process.env.CODEX_HOME || path.join(os.homedir(), '.codex'));\n const cacheRoot = path.join(codexHome, 'plugins', 'cache');\n const candidates = [];\n if (fs.existsSync(cacheRoot)) {\n for (const marketplace of fs.readdirSync(cacheRoot, { withFileTypes: true }).filter(entry => entry.isDirectory())) {\n const pluginDir = path.join(cacheRoot, marketplace.name, 'microi');\n if (!fs.existsSync(pluginDir)) continue;\n for (const version of fs.readdirSync(pluginDir, { withFileTypes: true }).filter(entry => entry.isDirectory())) {\n const candidateRoot = path.resolve(pluginDir, version.name);\n const relative = path.relative(cacheRoot, candidateRoot);\n if (relative.startsWith('..') || path.isAbsolute(relative)) continue;\n const validated = validPluginRoot(candidateRoot);\n if (validated) candidates.push(validated);\n }\n }\n }\n candidates.sort((left, right) => right.packagePriority - left.packagePriority || right.modifiedAt - left.modifiedAt);\n if (!candidates[0]) {\n throw new Error(`未在 Codex plugin cache 找到有效的 Microi Agentx Plugin:${cacheRoot}`);\n }\n return candidates[0];\n}\n\ntry {\n const plugin = findPluginRoot();\n process.env.MICROI_CODEX_PLUGIN_ROOT = plugin.root;\n process.argv[2] = plugin.router;\n require(plugin.adapter);\n} catch (error) {\n console.error(`[microi-codex-bootstrap] ${error instanceof Error ? error.message : String(error)}`);\n process.exit(1);\n}\n"
8
8
  ]
9
9
  }
10
10
  }
@@ -5,13 +5,13 @@
5
5
  "url": "https://microi.net"
6
6
  },
7
7
  "description": "Microi吾码官方 AI 插件市场",
8
- "version": "6.1.8",
8
+ "version": "6.2.0",
9
9
  "plugins": [
10
10
  {
11
11
  "name": "microi",
12
12
  "source": ".",
13
13
  "description": "Microi吾码 AI 开发插件:服务器连接、Skills、MCP、V8 全量同步与低代码交付",
14
- "version": "6.1.8",
14
+ "version": "6.2.0",
15
15
  "strict": true
16
16
  }
17
17
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microi",
3
- "version": "6.1.8",
3
+ "version": "6.2.0",
4
4
  "description": "Microi吾码 AI 开发插件:服务器连接、Skills、MCP、V8 全量同步与低代码交付",
5
5
  "author": {
6
6
  "name": "Microi.Net",
@@ -1,6 +1,6 @@
1
1
  {
2
- "builtAt": "2026-10-29T04:45:32.941Z",
3
- "version": "6.1.8",
2
+ "builtAt": "2026-11-02T10:54:11.209Z",
3
+ "version": "6.2.0",
4
4
  "sourceProducts": [
5
5
  "vscode-extension",
6
6
  "microi-cli",
@@ -10,10 +10,10 @@
10
10
  "commands": 55,
11
11
  "skills": 68,
12
12
  "hashes": {
13
- "mcpServer": "bd8a36b8e8d35894598419279670e246aa681feb492c9e27448a4fb2eee062fc",
13
+ "mcpServer": "4dab6c65bd2601946b0efb44988d93eccd02977c5d7edefc5cbb11c74ce41581",
14
14
  "cli": "4aea8e9c7f4b6bda4c16e7eaf995e8ae3398cce0cbcbc20b59b1849febda91ad",
15
15
  "router": "a65a0a9466c4bcfc1cee2a7182c77e4e73ae3221198abd0a0670f1d847fa2938",
16
16
  "broker": "ed04bbcc5bc7d62e447d82946889d1f72af653a9016675f81a01ef6cd88051b0",
17
- "dshBundle": "5899f11fc68ce8e65f6018139c52cdc646cd066637166bf0689366e20d0151a7"
17
+ "dshBundle": "5d43313cfbb03a62ee76b17986df55fb1010680681bf2dc34be9cceb52d538ba"
18
18
  }
19
19
  }
package/cordis.patch.yml CHANGED
@@ -7,7 +7,7 @@
7
7
  serverName: microi
8
8
  transport: stdio
9
9
  command: !!js process.execPath
10
- args: ["-e","/*\r\n * DeepSeek Harness 通过 profile bundle 加载此 `node -e` 引导脚本。\r\n * DSH 不保证 MCP 子进程 cwd 位于 npm 包根,因此按 DSH_HOME/profile 定位\r\n * 当前版本的 @microi.net/cli,再复用 Codex 同源适配器与多连接路由器。\r\n */\r\nconst fs = require('node:fs');\r\nconst os = require('node:os');\r\nconst path = require('node:path');\r\nconst packageName = '@microi.net/cli';\r\nconst expectedVersion = '6.1.8';\r\n\r\nfunction readJson(filePath) {\r\n try { return JSON.parse(fs.readFileSync(filePath, 'utf8')); }\r\n catch { return undefined; }\r\n}\r\n\r\nfunction expandHome(value) {\r\n if (value === '~') return os.homedir();\r\n if (value.startsWith('~/') || value.startsWith('~\\\\')) return path.join(os.homedir(), value.slice(2));\r\n return value;\r\n}\r\n\r\nfunction validRoot(value) {\r\n const root = path.resolve(value);\r\n const pkg = readJson(path.join(root, 'package.json'));\r\n const patch = path.join(root, 'cordis.patch.yml');\r\n const adapter = path.join(root, 'scripts', 'mcp-codex-stdio-adapter.js');\r\n const router = path.join(root, 'scripts', 'microi-codex-router.js');\r\n if (pkg?.name !== packageName || pkg?.version !== expectedVersion) return undefined;\r\n if (pkg?.dsh?.bundle?.patch !== './cordis.patch.yml') return undefined;\r\n if (![patch, adapter, router].every(filePath => fs.existsSync(filePath))) return undefined;\r\n return { root: fs.realpathSync(root), adapter, router, modifiedAt: fs.statSync(router).mtimeMs };\r\n}\r\n\r\nfunction findPlugin() {\r\n const explicit = String(process.env.MICROI_DSH_PLUGIN_ROOT || '').trim();\r\n if (explicit) {\r\n const plugin = validRoot(explicit);\r\n if (!plugin) throw new Error(`MICROI_DSH_PLUGIN_ROOT 不是版本 ${expectedVersion} 的有效 Microi DSH bundle:${explicit}`);\r\n return plugin;\r\n }\r\n const configuredHome = String(process.env.DSH_HOME || '').trim();\r\n const dshHome = path.resolve(expandHome(configuredHome || path.join(os.homedir(), '.dsh')));\r\n const profilesRoot = path.join(dshHome, 'profiles');\r\n const candidates = [];\r\n if (fs.existsSync(profilesRoot)) {\r\n for (const entry of fs.readdirSync(profilesRoot, { withFileTypes: true })) {\r\n if (!entry.isDirectory() || entry.name === 'node_modules') continue;\r\n const root = path.join(profilesRoot, entry.name, 'node_modules', '@microi.net', 'cli');\r\n const plugin = validRoot(root);\r\n if (plugin) candidates.push(plugin);\r\n }\r\n }\r\n candidates.sort((left, right) => right.modifiedAt - left.modifiedAt);\r\n if (!candidates[0]) throw new Error(`未在 ${profilesRoot} 找到版本 ${expectedVersion} 的 ${packageName}`);\r\n return candidates[0];\r\n}\r\n\r\ntry {\r\n const plugin = findPlugin();\r\n process.env.MICROI_DSH_PLUGIN_ROOT = plugin.root;\r\n process.env.MICROI_CODEX_PLUGIN_ROOT = plugin.root;\r\n process.env.MICROI_TOOL_SOURCE = 'dsh';\r\n process.env.MICROI_TOOL_VERSION = expectedVersion;\r\n process.env.MICROI_WORKSPACE_ROOT = process.env.MICROI_WORKSPACE_ROOT || process.cwd();\r\n process.argv[2] = plugin.router;\r\n require(plugin.adapter);\r\n} catch (error) {\r\n console.error(`[microi-dsh-bootstrap] ${error instanceof Error ? error.message : String(error)}`);\r\n process.exit(1);\r\n}\r\n"]
10
+ args: ["-e","/*\n * DeepSeek Harness 通过 profile bundle 加载此 `node -e` 引导脚本。\n * DSH 不保证 MCP 子进程 cwd 位于 npm 包根,因此按 DSH_HOME/profile 定位\n * 当前版本的 @microi.net/cli,再复用 Codex 同源适配器与多连接路由器。\n */\nconst fs = require('node:fs');\nconst os = require('node:os');\nconst path = require('node:path');\nconst packageName = '@microi.net/cli';\nconst expectedVersion = '6.2.0';\n\nfunction readJson(filePath) {\n try { return JSON.parse(fs.readFileSync(filePath, 'utf8')); }\n catch { return undefined; }\n}\n\nfunction expandHome(value) {\n if (value === '~') return os.homedir();\n if (value.startsWith('~/') || value.startsWith('~\\\\')) return path.join(os.homedir(), value.slice(2));\n return value;\n}\n\nfunction validRoot(value) {\n const root = path.resolve(value);\n const pkg = readJson(path.join(root, 'package.json'));\n const patch = path.join(root, 'cordis.patch.yml');\n const adapter = path.join(root, 'scripts', 'mcp-codex-stdio-adapter.js');\n const router = path.join(root, 'scripts', 'microi-codex-router.js');\n if (pkg?.name !== packageName || pkg?.version !== expectedVersion) return undefined;\n if (pkg?.dsh?.bundle?.patch !== './cordis.patch.yml') return undefined;\n if (![patch, adapter, router].every(filePath => fs.existsSync(filePath))) return undefined;\n return { root: fs.realpathSync(root), adapter, router, modifiedAt: fs.statSync(router).mtimeMs };\n}\n\nfunction findPlugin() {\n const explicit = String(process.env.MICROI_DSH_PLUGIN_ROOT || '').trim();\n if (explicit) {\n const plugin = validRoot(explicit);\n if (!plugin) throw new Error(`MICROI_DSH_PLUGIN_ROOT 不是版本 ${expectedVersion} 的有效 Microi DSH bundle:${explicit}`);\n return plugin;\n }\n const configuredHome = String(process.env.DSH_HOME || '').trim();\n const dshHome = path.resolve(expandHome(configuredHome || path.join(os.homedir(), '.dsh')));\n const profilesRoot = path.join(dshHome, 'profiles');\n const candidates = [];\n if (fs.existsSync(profilesRoot)) {\n for (const entry of fs.readdirSync(profilesRoot, { withFileTypes: true })) {\n if (!entry.isDirectory() || entry.name === 'node_modules') continue;\n const root = path.join(profilesRoot, entry.name, 'node_modules', '@microi.net', 'cli');\n const plugin = validRoot(root);\n if (plugin) candidates.push(plugin);\n }\n }\n candidates.sort((left, right) => right.modifiedAt - left.modifiedAt);\n if (!candidates[0]) throw new Error(`未在 ${profilesRoot} 找到版本 ${expectedVersion} 的 ${packageName}`);\n return candidates[0];\n}\n\ntry {\n const plugin = findPlugin();\n process.env.MICROI_DSH_PLUGIN_ROOT = plugin.root;\n process.env.MICROI_CODEX_PLUGIN_ROOT = plugin.root;\n process.env.MICROI_TOOL_SOURCE = 'dsh';\n process.env.MICROI_TOOL_VERSION = expectedVersion;\n process.env.MICROI_WORKSPACE_ROOT = process.env.MICROI_WORKSPACE_ROOT || process.cwd();\n process.argv[2] = plugin.router;\n require(plugin.adapter);\n} catch (error) {\n console.error(`[microi-dsh-bootstrap] ${error instanceof Error ? error.message : String(error)}`);\n process.exit(1);\n}\n"]
11
11
  env:
12
12
  MICROI_TOOL_SOURCE: dsh
13
13
  cwd: !!js process.cwd()
package/package.json CHANGED
@@ -1,82 +1,82 @@
1
- {
2
- "name": "@microi.net/cli",
3
- "version": "6.1.8",
4
- "description": "Microi吾码 AI 开发 CLI 与多宿主 Plugin:服务器连接、Skills、MCP、V8 同步和低代码交付",
5
- "license": "MIT",
6
- "homepage": "https://microi.net/doc/v8-engine/vs-code-plugin.html",
7
- "repository": {
8
- "type": "git",
9
- "url": "https://git.itdos.net:88/anderson/microi.vscode.git",
10
- "directory": "plugins/microi"
11
- },
12
- "keywords": [
13
- "microi",
14
- "吾码",
15
- "cli",
16
- "codex-plugin",
17
- "workbuddy-plugin",
18
- "codebuddy-plugin",
19
- "deepseek-harness-plugin",
20
- "dsh-plugin",
21
- "qoder",
22
- "comate",
23
- "mcp",
24
- "mcp-server",
25
- "skills",
26
- "codex",
27
- "chatgpt",
28
- "low-code",
29
- "lowcode",
30
- "low-code-platform",
31
- "低代码",
32
- "低代码平台",
33
- "低代码开发平台",
34
- "ai",
35
- "artificial-intelligence",
36
- "ai-coding",
37
- "ai-development",
38
- "ai-agent",
39
- "agentic-ai",
40
- "ai-low-code",
41
- "AI编程",
42
- "AI开发",
43
- "AI低代码",
44
- "人工智能",
45
- "AI智能体",
46
- "智能开发",
47
- "v8",
48
- "v8-engine"
49
- ],
50
- "type": "commonjs",
51
- "bin": {
52
- "microi": "scripts/microi-cli.js"
53
- },
54
- "dsh": {
55
- "bundle": {
56
- "patch": "./cordis.patch.yml"
57
- }
58
- },
59
- "files": [
60
- ".codex-plugin/",
61
- ".codebuddy-plugin/",
62
- ".workbuddy-plugin/",
63
- ".mcp.json",
64
- "cordis.patch.yml",
65
- "assets/",
66
- "skills/",
67
- "scripts/",
68
- "LICENSE",
69
- "README.md"
70
- ],
71
- "engines": {
72
- "node": ">=18.18.0"
73
- },
74
- "publishConfig": {
75
- "access": "public",
76
- "registry": "https://registry.npmjs.org/"
77
- },
78
- "scripts": {
79
- "build": "node ../../cli/build.js --production",
80
- "prepack": "node ../../cli/build.js --production"
81
- }
82
- }
1
+ {
2
+ "name": "@microi.net/cli",
3
+ "version": "6.2.0",
4
+ "description": "Microi吾码 AI 开发 CLI 与多宿主 Plugin:服务器连接、Skills、MCP、V8 同步和低代码交付",
5
+ "license": "MIT",
6
+ "homepage": "https://microi.net/doc/v8-engine/vs-code-plugin.html",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://git.itdos.net:88/anderson/microi.vscode.git",
10
+ "directory": "plugins/microi"
11
+ },
12
+ "keywords": [
13
+ "microi",
14
+ "吾码",
15
+ "cli",
16
+ "codex-plugin",
17
+ "workbuddy-plugin",
18
+ "codebuddy-plugin",
19
+ "deepseek-harness-plugin",
20
+ "dsh-plugin",
21
+ "qoder",
22
+ "comate",
23
+ "mcp",
24
+ "mcp-server",
25
+ "skills",
26
+ "codex",
27
+ "chatgpt",
28
+ "low-code",
29
+ "lowcode",
30
+ "low-code-platform",
31
+ "低代码",
32
+ "低代码平台",
33
+ "低代码开发平台",
34
+ "ai",
35
+ "artificial-intelligence",
36
+ "ai-coding",
37
+ "ai-development",
38
+ "ai-agent",
39
+ "agentic-ai",
40
+ "ai-low-code",
41
+ "AI编程",
42
+ "AI开发",
43
+ "AI低代码",
44
+ "人工智能",
45
+ "AI智能体",
46
+ "智能开发",
47
+ "v8",
48
+ "v8-engine"
49
+ ],
50
+ "type": "commonjs",
51
+ "bin": {
52
+ "microi": "scripts/microi-cli.js"
53
+ },
54
+ "dsh": {
55
+ "bundle": {
56
+ "patch": "./cordis.patch.yml"
57
+ }
58
+ },
59
+ "files": [
60
+ ".codex-plugin/",
61
+ ".codebuddy-plugin/",
62
+ ".workbuddy-plugin/",
63
+ ".mcp.json",
64
+ "cordis.patch.yml",
65
+ "assets/",
66
+ "skills/",
67
+ "scripts/",
68
+ "LICENSE",
69
+ "README.md"
70
+ ],
71
+ "engines": {
72
+ "node": ">=18.18.0"
73
+ },
74
+ "publishConfig": {
75
+ "access": "public",
76
+ "registry": "https://registry.npmjs.org/"
77
+ },
78
+ "scripts": {
79
+ "build": "node ../../cli/build.js --production",
80
+ "prepack": "node ../../cli/build.js --production"
81
+ }
82
+ }
@@ -1,20 +1,20 @@
1
- {
2
- "name": "microi-net",
3
- "interface": {
4
- "displayName": "Microi.Net"
5
- },
6
- "plugins": [
7
- {
8
- "name": "microi",
9
- "source": {
10
- "source": "local",
11
- "path": "./plugins/microi"
12
- },
13
- "policy": {
14
- "installation": "AVAILABLE",
15
- "authentication": "ON_USE"
16
- },
17
- "category": "developer-tools"
18
- }
19
- ]
20
- }
1
+ {
2
+ "name": "microi-net",
3
+ "interface": {
4
+ "displayName": "Microi.Net"
5
+ },
6
+ "plugins": [
7
+ {
8
+ "name": "microi",
9
+ "source": {
10
+ "source": "local",
11
+ "path": "./plugins/microi"
12
+ },
13
+ "policy": {
14
+ "installation": "AVAILABLE",
15
+ "authentication": "ON_USE"
16
+ },
17
+ "category": "developer-tools"
18
+ }
19
+ ]
20
+ }