@microi.net/cli 5.0.3 → 5.0.4
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.
- package/.codebuddy-plugin/marketplace.json +2 -2
- package/.codebuddy-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.workbuddy-plugin/marketplace.json +2 -2
- package/.workbuddy-plugin/plugin.json +1 -1
- package/README.md +15 -2
- package/assets/build-meta.json +5 -4
- package/cordis.patch.yml +19 -0
- package/package.json +9 -1
- package/scripts/microi-cli.js +66 -62
- package/scripts/microi-skills.meta.json +176 -176
- package/skills/.microi-skills-version.json +2 -2
- package/skills/microi-codex/SKILL.md +4 -4
- package/skills/microi-codex-installer/SKILL.md +27 -7
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
"url": "https://microi.net"
|
|
6
6
|
},
|
|
7
7
|
"description": "Microi吾码官方 AI 插件市场",
|
|
8
|
-
"version": "5.0.
|
|
8
|
+
"version": "5.0.4",
|
|
9
9
|
"plugins": [
|
|
10
10
|
{
|
|
11
11
|
"name": "microi",
|
|
12
12
|
"source": ".",
|
|
13
13
|
"description": "Microi吾码 AI 开发插件:服务器连接、Skills、MCP、V8 全量同步与低代码交付",
|
|
14
|
-
"version": "5.0.
|
|
14
|
+
"version": "5.0.4",
|
|
15
15
|
"strict": true
|
|
16
16
|
}
|
|
17
17
|
]
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
"url": "https://microi.net"
|
|
6
6
|
},
|
|
7
7
|
"description": "Microi吾码官方 AI 插件市场",
|
|
8
|
-
"version": "5.0.
|
|
8
|
+
"version": "5.0.4",
|
|
9
9
|
"plugins": [
|
|
10
10
|
{
|
|
11
11
|
"name": "microi",
|
|
12
12
|
"source": ".",
|
|
13
13
|
"description": "Microi吾码 AI 开发插件:服务器连接、Skills、MCP、V8 全量同步与低代码交付",
|
|
14
|
-
"version": "5.0.
|
|
14
|
+
"version": "5.0.4",
|
|
15
15
|
"strict": true
|
|
16
16
|
}
|
|
17
17
|
]
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
`@microi.net/cli` 是 Microi吾码唯一的 AI/npm 产品,同时提供:
|
|
4
4
|
|
|
5
5
|
- 全局命令 `microi`;
|
|
6
|
-
- Codex Plugin,以及 WorkBuddy/CodeBuddy 兼容 plugin 与 marketplace 清单;
|
|
6
|
+
- Codex Plugin、DeepSeek Harness 原生 profile bundle,以及 WorkBuddy/CodeBuddy 兼容 plugin 与 marketplace 清单;
|
|
7
7
|
- 与 Microi.VSCode 同源的 MCP Server、连接/Token/同步协议;
|
|
8
8
|
- 支持多服务器、租户、产品类型和网络环境的 `microi_codex` 路由;
|
|
9
9
|
- 全套 Microi Skills 与 VS Code 命令覆盖矩阵。
|
|
@@ -49,10 +49,23 @@ Codex Router、VS Code 扩展与 CLI 会自动投递统一后台更新:
|
|
|
49
49
|
microi update --background --workspace "<工作区绝对路径>" --json
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
更新器只使用 npm 官方 registry,并自动升级 CLI、Codex 插件、AI 指令、Skills 与 MCP。当前进程继续使用旧版本;断网、权限不足、文件占用或安装失败只会延后重试和非阻塞提示,不影响当前、正在进行或新建工作。
|
|
52
|
+
更新器只使用 npm 官方 registry,并自动升级 CLI、Codex/DeepSeek Harness 插件、AI 指令、Skills 与 MCP。当前进程继续使用旧版本;断网、权限不足、文件占用或安装失败只会延后重试和非阻塞提示,不影响当前、正在进行或新建工作。
|
|
53
53
|
|
|
54
54
|
本 npm 包根目录本身就是有效的 Codex Plugin。发布到 npm 只完成 CLI 下载与用户本地 marketplace 安装能力,不代表已经进入 ChatGPT/Codex 通用公开插件目录;公开目录仍需按 OpenAI 官方流程提交审核。
|
|
55
55
|
|
|
56
|
+
## 安装 DeepSeek Harness Plugin
|
|
57
|
+
|
|
58
|
+
DeepSeek Harness 已安装且 `dsh`、`pnpm` 可用时执行:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
microi dsh status --json
|
|
62
|
+
microi dsh install
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
默认幂等安装到 DSH 官方 `web` 与 `headless` profile;也可用 `--profile <名称>` 指定一个 profile。本包通过 `dsh.bundle.patch` 和 `cordis.patch.yml` 接入官方 `@deepseek-ai/dsh-mcp-client`,不是向 DSH 写入无效的 `.mcp.json`。安装后新建 DSH 会话,工具入口为 `mcp__microi__microi_codex`。开发源码可用 `microi dsh install --source <Microi.VSCode目录> --force` 验收。
|
|
66
|
+
|
|
67
|
+
后台更新会在检测到 DSH 时自动幂等升级 bundle;DSH 或 pnpm 不存在、网络失败时只记录延后状态,不影响其它宿主和当前任务。
|
|
68
|
+
|
|
56
69
|
## WorkBuddy / CodeBuddy 原生插件
|
|
57
70
|
|
|
58
71
|
包根同时包含 `.workbuddy-plugin/`、`.codebuddy-plugin/`、`.mcp.json` 和全部 `skills/`。运行 `microi plugin path --json` 可取得本机真实包根与清单路径,供 WorkBuddy 插件页或 CodeBuddy 本地 marketplace 导入。宿主自身的安装、启用和工作区信任仍需由用户授权,CLI 不伪造 UI 安装状态。
|
package/assets/build-meta.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"builtAt": "2026-08-
|
|
3
|
-
"version": "5.0.
|
|
2
|
+
"builtAt": "2026-08-14T02:20:04.864Z",
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"sourceProducts": [
|
|
5
5
|
"vscode-extension",
|
|
6
6
|
"microi-cli",
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
"skills": 62,
|
|
11
11
|
"hashes": {
|
|
12
12
|
"mcpServer": "20aeaad5a760c92060760a9172a0dc6ab8d3e266278015f420b7f20220ac2738",
|
|
13
|
-
"cli": "
|
|
13
|
+
"cli": "a3ca7ecc1663a1b5c1c41fe79725aefd881b3516695a07eb1acb4ac2bc226134",
|
|
14
14
|
"router": "ffc14787fc2d3d6173b7a779b77139b759eb1d482cea787f71283f4017a4e223",
|
|
15
|
-
"broker": "42a9d89ad7b960a324da949939ef46266aa66e21068e6fbfd040cecc58b7c956"
|
|
15
|
+
"broker": "42a9d89ad7b960a324da949939ef46266aa66e21068e6fbfd040cecc58b7c956",
|
|
16
|
+
"dshBundle": "978ba2dc8102acb31174155ccdf8cd4ede462adcfc921e1152e193a0622cafb4"
|
|
16
17
|
}
|
|
17
18
|
}
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Generated from Microi.VSCode/codex/src/microi-dsh-profile-bootstrap.js.
|
|
2
|
+
# Installed by: dsh plugin --profile <name> add @microi.net/cli
|
|
3
|
+
- insert:
|
|
4
|
+
- id: microi-mcp
|
|
5
|
+
name: '@deepseek-ai/dsh-mcp-client'
|
|
6
|
+
config:
|
|
7
|
+
serverName: microi
|
|
8
|
+
transport: stdio
|
|
9
|
+
command: !!js process.execPath
|
|
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 = '5.0.4';\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
|
+
env:
|
|
12
|
+
MICROI_TOOL_SOURCE: dsh
|
|
13
|
+
cwd: !!js process.cwd()
|
|
14
|
+
failOnStartupError: false
|
|
15
|
+
reconnect:
|
|
16
|
+
enabled: true
|
|
17
|
+
initialDelayMs: 500
|
|
18
|
+
maxDelayMs: 30000
|
|
19
|
+
maxAttempts: 10
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microi.net/cli",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"description": "Microi吾码 AI 开发 CLI 与多宿主 Plugin:服务器连接、Skills、MCP、V8 同步和低代码交付",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://microi.net/doc/v8-engine/vs-code-plugin.html",
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
"codex-plugin",
|
|
17
17
|
"workbuddy-plugin",
|
|
18
18
|
"codebuddy-plugin",
|
|
19
|
+
"deepseek-harness-plugin",
|
|
20
|
+
"dsh-plugin",
|
|
19
21
|
"qoder",
|
|
20
22
|
"comate",
|
|
21
23
|
"mcp",
|
|
@@ -49,11 +51,17 @@
|
|
|
49
51
|
"bin": {
|
|
50
52
|
"microi": "scripts/microi-cli.js"
|
|
51
53
|
},
|
|
54
|
+
"dsh": {
|
|
55
|
+
"bundle": {
|
|
56
|
+
"patch": "./cordis.patch.yml"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
52
59
|
"files": [
|
|
53
60
|
".codex-plugin/",
|
|
54
61
|
".codebuddy-plugin/",
|
|
55
62
|
".workbuddy-plugin/",
|
|
56
63
|
".mcp.json",
|
|
64
|
+
"cordis.patch.yml",
|
|
57
65
|
"assets/",
|
|
58
66
|
"skills/",
|
|
59
67
|
"scripts/",
|