bugx-cli 0.1.4 → 0.1.6

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 (127) hide show
  1. package/README.md +89 -210
  2. package/core/README.md +1 -1
  3. package/core/agent/agent_execution.py +7 -0
  4. package/core/agent/agent_targets.py +5 -1
  5. package/core/agent/agent_workspace.py +10 -2
  6. package/core/autonomous_cve/run_fault_matrix.py +692 -0
  7. package/core/autonomous_cve/run_oss_cve_exploit_verify.py +608 -0
  8. package/core/autonomous_cve/run_six_worker_penetration.py +382 -0
  9. package/core/autonomous_cve/verifier.py +5 -7
  10. package/core/bugx.md +1 -1
  11. package/core/bugx_paths.py +2 -2
  12. package/core/bundled_docs/OVERVIEW.md +70 -236
  13. package/core/bundled_docs/README.md +2 -2
  14. package/core/bundled_docs/README_EN.md +67 -211
  15. package/core/bundled_docs/ai/01_AI_REFERENCE.md +11 -6
  16. package/core/bundled_docs/ai/02_AI_USAGE.md +1 -1
  17. package/core/bundled_docs/ai/03_AI_COMMANDS.md +1 -1
  18. package/core/bundled_docs/guides/01_USER_GUIDE.md +5 -5
  19. package/core/bundled_docs/guides/02_COMMANDS.md +3 -3
  20. package/core/bundled_docs/guides/03_TROUBLESHOOTING.md +4 -4
  21. package/core/bundled_docs/guides/05_HOST_MATRIX_AND_DISPATCH.md +4 -2
  22. package/core/bundled_docs/hosts/bugx_SKILL.md +2 -2
  23. package/core/bundled_docs/hosts/platform_bugx_SKILL.md +2 -2
  24. package/core/bundled_docs/manifest.json +22 -22
  25. package/core/bundled_docs/reference/01_ENVIRONMENT_VARIABLES.md +1 -0
  26. package/core/bundled_docs/reference/04_REPOSITORY_TOPOLOGY.md +1 -1
  27. package/core/cloud_sync/flywheel_client.py +89 -0
  28. package/core/contracts/README.md +1 -1
  29. package/core/contracts/bugx-runtime-contract.md +1 -1
  30. package/core/contracts/bugx-worker.md +1 -1
  31. package/core/coverage/coverage_ai_review.py +15 -11
  32. package/core/coverage/coverage_bootstrap.py +18 -13
  33. package/core/coverage/coverage_discovery.py +1 -1
  34. package/core/coverage/coverage_gate.py +12 -2
  35. package/core/coverage/coverage_manifest.py +1 -1
  36. package/core/coverage/coverage_validate.py +5 -3
  37. package/core/dev_harness/interaction_preset.py +1 -1
  38. package/core/engine-integrity.json +183 -163
  39. package/core/host_acp/README.md +4 -0
  40. package/core/host_acp/agnescode.py +128 -0
  41. package/core/host_runtime/README.md +3 -0
  42. package/core/host_runtime/adapters.py +45 -6
  43. package/core/host_runtime/autonomous_runner.py +3 -2
  44. package/core/host_runtime/host_registry.py +7 -1
  45. package/core/hosts/README.md +4 -0
  46. package/core/hosts/__init__.py +1 -0
  47. package/core/hosts/agnescode.py +415 -0
  48. package/core/hosts/base.py +1 -0
  49. package/core/hosts/claude.py +6 -0
  50. package/core/hosts/cline.py +6 -0
  51. package/core/hosts/codex.py +10 -1
  52. package/core/hosts/kimi.py +6 -4
  53. package/core/hosts/opencode.py +12 -4
  54. package/core/hosts/zcode.py +6 -0
  55. package/core/infra/README.md +1 -1
  56. package/core/infra/build_info.py +2 -2
  57. package/core/infra/python_runtime.py +4 -1
  58. package/core/launch_phases/README.md +2 -2
  59. package/core/launch_phases/finding_confirm_phase.py +1 -1
  60. package/core/launch_phases/semantic_recon.py +3 -19
  61. package/core/launch_phases/startup_gates.py +10 -1
  62. package/core/launch_phases/startup_version_gate.py +2 -2
  63. package/core/launch_phases/verify_loop.py +3 -19
  64. package/core/ledger/README.md +1 -1
  65. package/core/ledger/finding_confirmation.py +1 -1
  66. package/core/ledger/finding_verification.py +2 -20
  67. package/core/ledger/fp_ledger.py +3 -19
  68. package/core/ledger/life_ledger.py +7 -33
  69. package/core/ledger/schema.py +1 -1
  70. package/core/locales/en-US.json +2 -0
  71. package/core/locales/zh-CN.json +2 -0
  72. package/core/mcp_handlers/supervisor_handlers.py +34 -2
  73. package/core/mcp_handlers/telemetry_handlers.py +32 -0
  74. package/core/mcp_handlers/tool_table.py +34 -0
  75. package/core/mcp_runtime_support/common.py +6 -0
  76. package/core/mcp_runtime_support/environment.py +82 -23
  77. package/core/metadata.txt +1 -1
  78. package/core/planning/README.md +1 -1
  79. package/core/planning/target_sandbox_manager.py +2 -0
  80. package/core/probes/mobile_probe.py +1 -0
  81. package/core/probes/sast_probe.py +1 -1
  82. package/core/probes/sca_scanner.py +1 -1
  83. package/core/project_profiler/constants.py +1 -1
  84. package/core/retrieval/README.md +1 -1
  85. package/core/retrieval/symbol_index.py +229 -53
  86. package/core/retrieval/universal_code_matcher.py +1 -0
  87. package/core/runtime/README.md +1 -1
  88. package/core/runtime/daemon_runner.py +3 -2
  89. package/core/runtime/mining_quality_framework.py +2 -1
  90. package/core/runtime/project_init.py +1 -1
  91. package/core/runtime/scenario_eval.py +5 -2
  92. package/core/skills/bugx_mcp_server.py +9 -0
  93. package/core/skills/mcp_session_proof.py +3 -31
  94. package/core/supervisor/README.md +1 -1
  95. package/core/supervisor/finding_commit.py +3 -24
  96. package/core/supervisor/task_scheduler.py +5 -2
  97. package/core/supervisor/worker_execution.py +5 -0
  98. package/core/supervisor/worker_handoff.py +2 -2
  99. package/docs/07_distribution/01_README_NPM.md +89 -210
  100. package/ecosystem/integrations/dsh/mcp/package.json +2 -2
  101. package/ecosystem/integrations/dsh/ui/package.json +1 -1
  102. package/ecosystem/integrations/opencode/bugx-mcp-manifest.json +3 -3
  103. package/ecosystem/integrations/opencode/mcp-lock.json +1 -1
  104. package/ecosystem/integrations/pi/extensions/bugx/manifest.json +1 -1
  105. package/ecosystem/integrations/qoder/connector-meta.json +1 -1
  106. package/ecosystem/integrations/workbuddy/connector-meta.json +1 -1
  107. package/ecosystem/integrations/workbuddy/skills/bugx/SKILL.md +1 -1
  108. package/ecosystem/plugins/bugx/.claude-plugin/plugin.json +1 -1
  109. package/ecosystem/plugins/bugx/.codex-plugin/plugin.json +1 -1
  110. package/ecosystem/plugins/bugx/.zcode-plugin/plugin.json +1 -1
  111. package/ecosystem/plugins/bugx/skills/bugx/SKILL.md +2 -2
  112. package/interfaces/cli/bugx_cli/__init__.py +1 -1
  113. package/interfaces/cli/bugx_cli/cli.py +15 -0
  114. package/interfaces/cli/bugx_cli/commands/agent.py +18 -0
  115. package/interfaces/cli/bugx_cli/commands/audit.py +5 -6
  116. package/interfaces/cli/bugx_cli/commands/doctor.py +1 -1
  117. package/interfaces/cli/bugx_cli/commands/lifecycle.py +1 -1
  118. package/interfaces/cli/bugx_cli/commands/patch.py +5 -1
  119. package/interfaces/cli/bugx_cli/commands/plugin.py +31 -2
  120. package/interfaces/cli/bugx_cli/commands/plugin_claude.py +2 -2
  121. package/interfaces/cli/bugx_cli/host_adapters.py +167 -1
  122. package/interfaces/cli/bugx_cli/hosts/registry.py +33 -1
  123. package/interfaces/cli/bugx_cli/infra/engine_installer.py +4 -4
  124. package/interfaces/cli/bugx_cli/infra/host_sync.py +1 -1
  125. package/package.json +1 -1
  126. package/scripts/sync-version.mjs +1 -1
  127. package/skills/platform/bugx/SKILL.md +2 -2
@@ -32,12 +32,16 @@ flowchart TD
32
32
  | 文件名 | 职责与功能定位 | 关键类 / 函数 |
33
33
  | :--- | :--- | :--- |
34
34
  | `__init__.py` | Python 包初始化与核心模块符号导出 | `__all__` |
35
+ | `agnescode.py` | Agnes Code 宿主专属 ACP 协议实现 | `PLUGIN` |
36
+ | `antigravity.py` | Google Antigravity 宿主专属 ACP 协议实现 | `PLUGIN` |
35
37
  | `base.py` | ACP 协议抽象基座,实现客户端/服务端双向通信握手、消息编解码与心跳保活 | `BaseACPAdapter` |
36
38
  | `claude.py` | Claude 系列宿主的 ACP 扩展适配,处理专属会话流与认证注入 | `ClaudeACPAdapter` |
37
39
  | `cline.py` | Cline 宿主的 ACP 扩展适配,对接 VS Code 扩展通信通道 | `ClineACPAdapter` |
38
40
  | `codex.py` | OpenAI Codex 智能体的 ACP 扩展适配,支持任务流分发与上下文刷新 | `CodexACPAdapter` |
39
41
  | `dsh.py` | DSH 环境的 ACP 协议实现,支持 Shell 会话双向流转 | `DshACPAdapter` |
40
42
  | `INTERFACE.md` | ACP 接口契约说明文档,定义数据帧与错误码 | 协议格式定义 |
43
+ | `kimi.py` | Kimi Code 宿主专属 ACP 协议实现 | `PLUGIN` |
44
+ | `minimax.py` | MiniMax Code 宿主专属 ACP 协议实现 | `PLUGIN` |
41
45
  | `opencode.py` | OpenCode 标准 ACP 协议实现,处理通用智能体事件通道 | `OpenCodeACPAdapter` |
42
46
  | `pi.py` | Pi 智能体 ACP 协议实现,支持轻量级边缘环境适配 | `PiACPAdapter` |
43
47
  | `SPEC.md` | ACP 架构设计规范与长连接稳定性保障标准 | 规范与重连策略 |
@@ -0,0 +1,128 @@
1
+ #!/usr/bin/env python3
2
+ """core/host_acp/agnescode.py - Agnes Code 的 ACP 适配插件。
3
+
4
+ 实机口径:
5
+ * ACP 入口为 ``agnescode acp``(或 ``agnes acp``),工作区绑定由探针 cwd 提供;
6
+ * 探活服务器绑定到探活项目的 ``agnescode.json``(v2 ``mcp.servers`` 形状)。
7
+ """
8
+
9
+ from __future__ import annotations
10
+
11
+ import json
12
+ import os
13
+ from pathlib import Path
14
+ import shutil
15
+ from typing import Any
16
+
17
+ from .base import AcpPlugin
18
+
19
+ __all__ = ["AgnesCodeAcpPlugin", "PLUGIN", "is_available", "run_static_degraded"]
20
+
21
+
22
+ def _resolve_executable() -> str:
23
+ for cmd in ("agnescode", "agnes"):
24
+ found = shutil.which(cmd)
25
+ if found:
26
+ return found
27
+ return "agnescode"
28
+
29
+
30
+ class AgnesCodeAcpPlugin(AcpPlugin):
31
+ """Agnes Code ACP 插件。"""
32
+
33
+ name = "agnescode"
34
+ executable = "agnescode"
35
+ status = "ready"
36
+ supports_project_permissions = True
37
+
38
+ def acp_argv(
39
+ self,
40
+ *,
41
+ model: str | None = None,
42
+ data_dir: Path | str | None = None,
43
+ ) -> list[str]:
44
+ del model, data_dir
45
+ return [_resolve_executable(), "acp"]
46
+
47
+ def ensure_probe_servers(
48
+ self,
49
+ project_root: Path,
50
+ config_paths: tuple[Path, ...],
51
+ servers: dict[str, dict[str, Any]],
52
+ ) -> list[str]:
53
+ """把 BugX 通道绑定到探活项目的 ``agnescode.json``(v2 ``mcp.servers`` 形状)。"""
54
+ updated: list[str] = []
55
+ root_resolved = project_root.resolve()
56
+ for path in config_paths:
57
+ try:
58
+ resolved = path.resolve()
59
+ except OSError:
60
+ continue
61
+ if root_resolved not in resolved.parents and resolved.parent != root_resolved:
62
+ continue
63
+ try:
64
+ if resolved.is_symlink() or not resolved.is_file():
65
+ continue
66
+ payload = json.loads(resolved.read_text(encoding="utf-8"))
67
+ except (OSError, UnicodeError, ValueError):
68
+ continue
69
+ if not isinstance(payload, dict):
70
+ continue
71
+ if "mcp" not in payload:
72
+ payload["mcp"] = {}
73
+ block = payload["mcp"]
74
+ if not isinstance(block, dict):
75
+ raise ValueError(f"AgnesCode v2 mcp 配置必须是对象: {resolved}")
76
+ entries = block.get("servers")
77
+ if "servers" not in block:
78
+ entries = {}
79
+ block["servers"] = entries
80
+ if not isinstance(entries, dict):
81
+ raise ValueError(f"AgnesCode v2 mcp.servers 必须是对象: {resolved}")
82
+
83
+ changed = False
84
+ for server_name, server_def in servers.items():
85
+ target_def = {
86
+ "type": "local",
87
+ "command": [server_def.get("command", "bugx"), *server_def.get("args", [])],
88
+ "disabled": False,
89
+ }
90
+ if entries.get(server_name) != target_def:
91
+ entries[server_name] = target_def
92
+ changed = True
93
+
94
+ if changed:
95
+ resolved.write_text(
96
+ json.dumps(payload, ensure_ascii=False, indent=2) + "\n",
97
+ encoding="utf-8",
98
+ )
99
+ updated.append(str(resolved))
100
+ return updated
101
+
102
+
103
+ PLUGIN = AgnesCodeAcpPlugin
104
+
105
+
106
+ def is_available() -> tuple[bool, str]:
107
+ for cmd in ("agnescode", "agnes"):
108
+ found = shutil.which(cmd)
109
+ if found:
110
+ return True, found
111
+ return False, "agnescode 可执行文件未安装;ACP 通道不可用"
112
+
113
+
114
+ def run_static_degraded(root: Path | None = None) -> dict[str, Any]:
115
+ available, detail = is_available()
116
+ return {
117
+ "plugin": "agnescode",
118
+ "schema_version": 1,
119
+ "success": available,
120
+ "status": "degraded",
121
+ "degraded": True,
122
+ "degraded_reason": "static_facts_only" if available else "agnescode_not_installed",
123
+ "probe_mode": "static_degraded",
124
+ "evidence": {
125
+ "availability_detail": detail,
126
+ "project_root": str(root) if root else None,
127
+ },
128
+ }
@@ -38,6 +38,7 @@ flowchart TD
38
38
  | :--- | :--- | :--- |
39
39
  | `__init__.py` | Python 包初始化与核心模块符号导出 | `__all__` |
40
40
  | `adapters.py` | 宿主运行时适配器转接层,抹平不同宿主在 CLI / API 交互上的协议差异 | `RuntimeAdapterFactory` |
41
+ | `antigravity.py` | Google Antigravity 宿主专用运行时适配 | `AntigravityRuntimeAdapter` |
41
42
  | `autonomous_runner.py` | 自主攻防运行器主干,驱动无头环境下的全自动循环(Pre $\rightarrow$ Run $\rightarrow$ Post) | `AutonomousRunner` |
42
43
  | `cline.py` | Cline / Roo Code 运行时特定扩展,处理专用会话注入与命令执行 | `ClineRuntimeAdapter` |
43
44
  | `common.py` | 运行时共享工具函数,包括超时保护、跨平台管道封装与环境变量清洗 | `run_with_timeout`, `sanitize_env` |
@@ -51,6 +52,8 @@ flowchart TD
51
52
  | `INTERFACE.md` | 运行时模块间协议接口规范 | 运行时状态与生命周期契约 |
52
53
  | `mcp_process_tracker.py` | MCP 守护进程追踪器,记录每个拉起的 MCP Server PID,防止孤儿进程泄漏 | `MCPProcessTracker` |
53
54
  | `mcp_registry_gate.py` | MCP 注册表门禁校验器,确保 MCP 服务配置完整有效,防止假死启动 | `verify_mcp_registry` |
55
+ | `pi.py` | Pi 宿主专用运行时适配与超时预算透传 | `PiRuntimeAdapter` |
56
+ | `provider_facts.py` | 宿主模型事实与提供商元数据表 | `ProviderFacts` |
54
57
  | `SPEC.md` | 运行时技术设计规范文档 | 子进程模型与信号传播规则 |
55
58
 
56
59
  ---
@@ -120,15 +120,23 @@ class PluginAdapter(HostAdapter):
120
120
  self.executable = plugin.identity.executable
121
121
  self.host_surface = plugin.engine_run.host_surface
122
122
 
123
- def _context(self, root: Path, agent: str, session: str, prompt: str) -> host_plugins.RunContext:
124
- return host_plugins.RunContext(root=root, agent=agent, session=session, prompt=prompt)
123
+ def _context(
124
+ self, root: Path, agent: str, session: str, prompt: str, model: str | None = None,
125
+ ) -> host_plugins.RunContext:
126
+ return host_plugins.RunContext(
127
+ root=root, agent=agent, session=session, prompt=prompt, model=model,
128
+ )
125
129
 
126
130
  def _engine_run_node_flags(self) -> tuple[str, ...]:
127
131
  """主执行路径需要的真 node flag(数据来自插件 facet,执行为引擎职责)。"""
128
132
  return tuple(getattr(self.plugin.engine_run, "engine_run_node_flags", ()) or ())
129
133
 
130
- def headless_run(self, root: Path, agent: str, session: str, prompt: str) -> list[str]:
131
- argv = self.plugin.engine_run.headless_argv(self._context(root, agent, session, prompt))
134
+ def headless_run(
135
+ self, root: Path, agent: str, session: str, prompt: str, model: str | None = None,
136
+ ) -> list[str]:
137
+ argv = self.plugin.engine_run.headless_argv(
138
+ self._context(root, agent, session, prompt, model=model)
139
+ )
132
140
  argv = [str(part) for part in argv]
133
141
  flags = self._engine_run_node_flags()
134
142
  # DSH Desktop 的 ``.desktop-bin/node`` 是 Electron shim,会吞掉
@@ -137,8 +145,12 @@ class PluginAdapter(HostAdapter):
137
145
  # 完全不修更难排查,所以两条路径必须使用同一套 node 解析。
138
146
  return host_registry._with_real_node(argv, flags) if flags else argv
139
147
 
140
- def autonomous_run(self, root: Path, agent: str, session: str, prompt: str) -> list[str]:
141
- argv = self.plugin.engine_run.autonomous_argv(self._context(root, agent, session, prompt))
148
+ def autonomous_run(
149
+ self, root: Path, agent: str, session: str, prompt: str, model: str | None = None,
150
+ ) -> list[str]:
151
+ argv = self.plugin.engine_run.autonomous_argv(
152
+ self._context(root, agent, session, prompt, model=model)
153
+ )
142
154
  argv = [str(part) for part in argv]
143
155
  flags = self._engine_run_node_flags()
144
156
  return host_registry._with_real_node(argv, flags) if flags else argv
@@ -327,12 +339,39 @@ class FunIdeAdapter(HostAdapter):
327
339
  return False
328
340
 
329
341
 
342
+ class CopilotAdapter(HostAdapter):
343
+ """GitHub Copilot IDE / Agent Host adapter."""
344
+
345
+ name = "copilot"
346
+ executable = "copilot"
347
+ host_surface = "desktop"
348
+
349
+ def headless_run(self, root: Path, agent: str, session: str, prompt: str) -> list[str]:
350
+ raise NotImplementedError("GitHub Copilot 暂无标准无头命令行调用契约")
351
+
352
+ def agent_config_path(self, root: Path) -> Path:
353
+ return root / ".github" / "agents"
354
+
355
+ def mcp_config_paths(self, root: Path) -> tuple[Path, ...]:
356
+ return (root / ".vscode" / "mcp.json", root / ".mcp.json")
357
+
358
+ def required_mcp(self, root: Path) -> list[str]:
359
+ return list(MCP_CATALOG)
360
+
361
+ def mcp_health(self, name: str, cfg: dict, root: Path | None = None) -> bool:
362
+ return super().mcp_health(name, cfg, root)
363
+
364
+ def supports_headless(self) -> bool:
365
+ return False
366
+
367
+
330
368
  _ADAPTERS = {
331
369
  "chatgpt": ChatGptAdapter,
332
370
  "workbuddy": WorkBuddyAdapter,
333
371
  "qoder": QoderAdapter,
334
372
  "trea": TreaAdapter,
335
373
  "funide": FunIdeAdapter,
374
+ "copilot": CopilotAdapter,
336
375
  }
337
376
 
338
377
  # DOC-239:插件 ``ready`` 的宿主一律由 ``PluginAdapter`` 承载——插件是唯一事实来源,
@@ -187,10 +187,11 @@ class RealHooks:
187
187
  def agent(self, root: Path, ctx: dict, baseline: str) -> tuple[int, AgentRun]:
188
188
  prompt = ctx.get("prompt", "继续审计本轮")
189
189
  session = ctx.get("session", "")
190
+ model = ctx.get("model") or getattr(self, "model", None)
190
191
  cmd = (
191
- self.adapter.autonomous_run(root, "bugx", session, prompt)
192
+ self.adapter.autonomous_run(root, "bugx", session, prompt, model=model)
192
193
  if self.autonomous else
193
- self.adapter.headless_run(root, "bugx", session, prompt)
194
+ self.adapter.headless_run(root, "bugx", session, prompt, model=model)
194
195
  )
195
196
  try:
196
197
  timeout = self._remaining_timeout(self.agent_timeout)
@@ -41,11 +41,13 @@ SUPPORTED_HOSTS: tuple[str, ...] = (
41
41
  "kimi",
42
42
  "minimax",
43
43
  "antigravity",
44
+ "agnescode",
44
45
  "chatgpt",
45
46
  "workbuddy",
46
47
  "qoder",
47
48
  "trea",
48
49
  "funide",
50
+ "copilot",
49
51
  )
50
52
 
51
53
  # ``unknown`` 是「无法识别」这一一等结果,不是宿主,恒排在最后。
@@ -71,6 +73,7 @@ HOST_MARKERS: dict[str, tuple[str, ...]] = {
71
73
  # 真实 Trae / Trae CN 打开过的项目只会有 .trae/ 或 .trae-cn/ 目录;.trea 是 BugX 安装面。
72
74
  "trea": (".trea", ".trea/agent.yml", ".trea/mcp.json", ".trae", ".trae-cn"),
73
75
  "funide": (".github/agents/bugx.agent.md",),
76
+ "copilot": (".github/copilot-instructions.md", ".github/agents/bugx.agent.md", ".vscode/mcp.json"),
74
77
  }
75
78
 
76
79
 
@@ -128,6 +131,9 @@ HOST_EXECUTABLE_ALIASES: dict[str, str] = {
128
131
  "trea-cn": "trea",
129
132
  "trea_cn": "trea",
130
133
  "trae-ai": "trea",
134
+ "github-copilot": "copilot",
135
+ "gh-copilot": "copilot",
136
+ "copilot-chat": "copilot",
131
137
  }
132
138
 
133
139
 
@@ -286,7 +292,7 @@ def host_requires_pid(name: object) -> bool:
286
292
  #: 尚未迁移(``TODO_HOSTS``)但仍支持 MCP 写入的宿主。逐宿主切片时删除对应名字;
287
293
  #: 已迁移插件一律由 ``mcp_write`` 面自行声明,不进本表。
288
294
  LEGACY_MCP_WRITE_HOSTS: frozenset[str] = frozenset(
289
- {"claude", "pi", "dsh", "chatgpt", "workbuddy", "codebuddy", "zcode", "qoder", "trea"}
295
+ {"claude", "pi", "dsh", "chatgpt", "workbuddy", "codebuddy", "zcode", "qoder", "trea", "copilot"}
290
296
  )
291
297
 
292
298
 
@@ -47,12 +47,16 @@ flowchart TD
47
47
  | `_dsh_usage.py` | DSH 环境专有调用链耗时与交互次数统计实现 | `DshUsageTracker` |
48
48
  | `_mcp_toml.py` | MCP 客户端配置注入器,安全写入或更新 `.codex/mcp.toml` / `.vscode/cline_mcp.json` | `inject_mcp_toml_config` |
49
49
  | `_zcode_usage.py` | ZCode 平台专有资源配额与请求频率追踪器 | `ZCodeUsageTracker` |
50
+ | `agnescode.py` | Agnes Code 宿主接入适配器,生成 MCP 配置与智能体入口 | `PLUGIN` |
51
+ | `antigravity.py` | Google Antigravity 宿主接入适配器,生成 Plugin 插件与工作区 MCP | `PLUGIN` |
50
52
  | `base.py` | 宿主插件核心契约定义,提供探针注入、MCP 服务拉起与生命周期钩子 | `BaseHostPlugin` |
51
53
  | `claude.py` | Claude Desktop / Claude Code 宿主接入适配器,生成 MCP 配置与技能包 | `ClaudeHostPlugin` |
52
54
  | `cline.py` | Cline 插件适配器,实现 Roo Code / Cline 的 MCP 注入与规则提示词联动 | `ClineHostPlugin` |
53
55
  | `codex.py` | OpenAI Codex 适配器,管理 Codex CLI 交互式与无头会话 | `CodexHostPlugin` |
54
56
  | `dsh.py` | DSH (Deep Shell) 适配器,支持终端交互代理与工作流联动 | `DshHostPlugin` |
55
57
  | `INTERFACE.md` | 宿主插件公共接口设计与契约规范文档 | 宿主生命周期协议说明 |
58
+ | `kimi.py` | Kimi Code CLI 宿主接入适配器,生成 subagent 入口与 MCP 配置 | `PLUGIN` |
59
+ | `minimax.py` | MiniMax Code 桌面端插件适配器,管理 Plugin V1 入口与规范 | `PLUGIN` |
56
60
  | `opencode.py` | OpenCode 智能体适配器,提供标准 JSON-RPC MCP 挂载与环境发现 | `OpenCodeHostPlugin` |
57
61
  | `pi.py` | Pi 智能体平台接入适配器,实现扩展注册与事件桥接 | `PiHostPlugin` |
58
62
  | `SPEC.md` | 多宿主架构设计规格书,阐述各宿主环境差异与统一语义模型 | 规范与技术考量 |
@@ -74,6 +74,7 @@ TODO_HOSTS: tuple[str, ...] = (
74
74
  "qoder",
75
75
  "trea",
76
76
  "funide",
77
+ "copilot",
77
78
  )
78
79
 
79
80