agentdock-cli 1.5.0 → 1.6.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.
package/README.md CHANGED
@@ -198,12 +198,12 @@ restore/
198
198
  | `claude-desktop` | Claude Desktop | `claude_desktop_config.json`(MCP 宿主) |
199
199
  | `lm-studio` | LM Studio | `.lmstudio/mcp.json`(MCP 宿主) |
200
200
  | `codebuddy` | CodeBuddy(腾讯) | `.codebuddy/settings.json`、`settings.local.json`、`mcp.json`、`CODEBUDDY.md` |
201
- | `kimi` | Kimi Code CLI | `.kimi/config.toml`、`.kimi-code/mcp.json` |
202
- | `iflow` | iFlow CLI(心流) | `.iflow/settings.json` |
201
+ | `kimi` | Kimi Code CLI | `.kimi-code/config.toml`、`.kimi-code/mcp.json`(兼容 `.kimi/`) |
202
+ | `iflow` | iFlow CLI(心流) | `.iflow/mcp/config.json`、`.iflow/settings.json`、`IFLOW.md` |
203
203
  | `junie` | JetBrains Junie | `.junie/mcp/mcp.json`、`.junie/config.json` |
204
204
  | `amazon-q` | Amazon Q Developer | `.aws/amazonq/agents/default.json` |
205
205
  | `amp` | Amp(Sourcegraph) | `.config/amp/settings.json(c)`、Windows `%APPDATA%/amp/` |
206
- | `factory-droid` | Factory Droid | `.factory/mcp.json` |
206
+ | `factory-droid` | Factory Droid | `.factory/mcp.json`、`.factory/skills/` |
207
207
  | `warp` | Warp | `.warp/mcp.json` |
208
208
  | `comate` | 百度 Comate | `.comate/mcp.json`(用户级路径待实测) |
209
209
  | `gptme` | gptme | `.config/gptme/config.toml` |
@@ -217,11 +217,11 @@ restore/
217
217
 
218
218
  **路径验证状态**:`agentdock agents` 为每款工具标注可信度:
219
219
 
220
- - `confirmed`:官方文档 + 本机或 CI 真实安装验证过。当前 10 款:Claude Code、Codex、Gemini CLI、Qwen Code、Grok Build、TRAE、Copilot、Continue、CodeBuddy、Pi。
220
+ - `confirmed`:官方文档 + 本机或 CI 真实安装验证过。当前 12 款:Claude Code、Codex、Gemini CLI、Qwen Code、OpenCode、Factory Droid、Grok Build、TRAE、Copilot、Continue、CodeBuddy、Pi。
221
221
  - `documented`:按官方文档实现,尚未在真实安装上复验。
222
222
  - `experimental`:路径仍为推断,需要实测确认。
223
223
 
224
- CI 的 `path-probe` 会在 Ubuntu / macOS / Windows 的隔离 HOME 中真实安装 Pi、Gemini CLI、Codex、Qwen Code,执行各自的 `mcp add` 并断言落盘路径;其余工具不会为了“覆盖率”假装已验证。探针的隔离方式、新增步骤与静态审计流程见 [docs/verification.md](docs/verification.md)。
224
+ CI 的 `path-probe` 会在 Ubuntu / macOS / Windows 的隔离 HOME 中真实安装 Pi、Gemini CLI、Codex、Qwen Code、OpenCode、Factory Droid,执行各自的 `mcp add` 并断言落盘路径;其余工具不会为了“覆盖率”假装已验证。探针的隔离方式、新增步骤与静态审计流程见 [docs/verification.md](docs/verification.md)。
225
225
 
226
226
  **语义化迁移(v1.4)**:`scan` / `export` / `pack` / `sync` 与文件级能力一样覆盖全部 37 款工具——`--agent` 接受任意工具 id 或 `all`。每个工具按自身格式读取 MCP、全局指令、规则与技能:
227
227
 
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentdock-cli",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Diagnose, migrate, and back up your AI coding environment — Claude Code, Codex, Gemini CLI, TRAE, Cursor/Grok Build, Cline, Windsurf, Copilot, OpenCode and more — with config snapshots, restore, and secret isolation.",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -92,6 +92,8 @@ exports.AGENT_ADAPTERS = [
92
92
  id: 'opencode',
93
93
  aliases: ['open-code', 'sst-opencode'],
94
94
  displayName: 'OpenCode',
95
+ verification: 'confirmed',
96
+ docs: 'https://opencode.ai/docs/mcp-servers/',
95
97
  criticalKeys: ['model', 'provider', 'mcp', 'instructions'],
96
98
  mcpKeys: ['mcp'],
97
99
  configFiles: () => [
@@ -214,7 +216,7 @@ exports.AGENT_ADAPTERS = [
214
216
  aliases: ['continue-dev'],
215
217
  displayName: 'Continue',
216
218
  verification: 'confirmed',
217
- docs: 'https://docs.continue.dev/customize/model-providers/more/mcp',
219
+ docs: 'https://docs.continue.dev/customize/deep-dives/mcp',
218
220
  criticalKeys: ['models', 'model', 'mcpServers', 'context'],
219
221
  mcpKeys: ['mcpServers', 'mcp'],
220
222
  configFiles: () => [
@@ -388,10 +390,12 @@ exports.AGENT_ADAPTERS = [
388
390
  id: 'factory-droid',
389
391
  aliases: ['factory', 'droid', 'droid-cli'],
390
392
  displayName: 'Factory Droid',
393
+ verification: 'confirmed',
391
394
  criticalKeys: ['mcpServers'],
392
395
  mcpKeys: ['mcpServers'],
396
+ docs: 'https://docs.factory.com/harness/mcp',
393
397
  configFiles: () => [json('.factory/mcp.json')],
394
- note: '官方文档确认用户级 MCP 在 ~/.factory/mcp.json;其他 settings 文件路径待实测。',
398
+ note: '官方文档确认用户级 MCP 在 ~/.factory/mcp.json,droid mcp add 直接写入该文件。',
395
399
  },
396
400
  {
397
401
  id: 'warp',
@@ -486,7 +490,7 @@ exports.AGENT_ADAPTERS = [
486
490
  */
487
491
  const AGENT_DOCS = {
488
492
  antigravity: 'https://antigravity.google/docs',
489
- opencode: 'https://opencode.ai/docs/',
493
+ opencode: 'https://opencode.ai/docs/mcp-servers/',
490
494
  qoder: 'https://docs.qoder.com/',
491
495
  cline: 'https://docs.cline.bot/',
492
496
  windsurf: 'https://docs.windsurf.com/',
@@ -505,7 +509,7 @@ const AGENT_DOCS = {
505
509
  junie: 'https://www.jetbrains.com/help/junie/',
506
510
  'amazon-q': 'https://docs.aws.amazon.com/amazonq/',
507
511
  amp: 'https://ampcode.com/manual',
508
- 'factory-droid': 'https://docs.factory.ai/',
512
+ 'factory-droid': 'https://docs.factory.com/harness/mcp',
509
513
  warp: 'https://docs.warp.dev/',
510
514
  comate: 'https://comate.baidu.com/',
511
515
  gptme: 'https://gptme.org/docs/',
@@ -23,8 +23,8 @@ exports.AGENT_SEMANTICS = void 0;
23
23
  exports.agentSemanticProfile = agentSemanticProfile;
24
24
  exports.semanticPaths = semanticPaths;
25
25
  const paths_1 = require("./paths");
26
- function mcp(relPath, kind, key) {
27
- return { relPath, kind, key };
26
+ function mcp(relPath, kind, key, serversKey) {
27
+ return { relPath, kind, key, ...(serversKey ? { serversKey } : {}) };
28
28
  }
29
29
  function file(relPath, kind) {
30
30
  return { relPath, kind };
@@ -47,8 +47,8 @@ exports.AGENT_SEMANTICS = {
47
47
  },
48
48
  opencode: {
49
49
  mcp: [
50
- mcp('.config/opencode/opencode.json', 'jsonc', 'mcp'),
51
- mcp('.config/opencode/opencode.jsonc', 'jsonc', 'mcp'),
50
+ mcp('.config/opencode/opencode.json', 'jsonc', 'mcp', 'servers'),
51
+ mcp('.config/opencode/opencode.jsonc', 'jsonc', 'mcp', 'servers'),
52
52
  ],
53
53
  instructions: [file('.config/opencode/AGENTS.md', 'text')],
54
54
  },
@@ -222,6 +222,8 @@ exports.AGENT_SEMANTICS = {
222
222
  instructions: [
223
223
  file('.pi/agent/AGENTS.md', 'text'),
224
224
  file('.pi/agent/CLAUDE.md', 'text'),
225
+ file('.pi/agent/SYSTEM.md', 'text'),
226
+ file('.pi/agent/APPEND_SYSTEM.md', 'text'),
225
227
  ],
226
228
  ruleDirs: ['.pi/agent/prompts'],
227
229
  skillDirs: ['.pi/agent/skills'],
@@ -151,7 +151,15 @@ async function scanAgentSemantic(root, profile, agentId) {
151
151
  notes.push(`${source.relPath} 解析失败,跳过 MCP 提取`);
152
152
  continue;
153
153
  }
154
- const container = parsed?.[source.key];
154
+ let container = parsed?.[source.key];
155
+ let containerRef = source.key;
156
+ if (source.serversKey) {
157
+ const nested = container?.[source.serversKey];
158
+ if (nested && typeof nested === 'object' && !Array.isArray(nested)) {
159
+ container = nested;
160
+ containerRef = `${source.key}.${source.serversKey}`;
161
+ }
162
+ }
155
163
  if (!container || typeof container !== 'object' || Array.isArray(container)) {
156
164
  continue;
157
165
  }
@@ -160,7 +168,7 @@ async function scanAgentSemantic(root, profile, agentId) {
160
168
  id: `mcp-${name}`,
161
169
  kind: 'mcp',
162
170
  path: full,
163
- ref: `${source.relPath}#${source.key}.${name}`,
171
+ ref: `${source.relPath}#${containerRef}.${name}`,
164
172
  });
165
173
  }
166
174
  const count = Object.keys(container).length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentdock-cli",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Diagnose, migrate, and back up your AI coding environment — Claude Code, Codex, Gemini CLI, TRAE, Cursor/Grok Build, Cline, Windsurf, Copilot, OpenCode and more — with config snapshots, restore, and secret isolation.",
5
5
  "keywords": [
6
6
  "claude-code",