Skip to content

feat(antigravity): 将 Antigravity 2.0 正式纳入支持平台并适配 Stop Hook 协议 (Refs #142) - #150

Merged
mindcarver merged 2 commits into
mainfrom
delivery/142-antigravity-first-class
Nov 23, 2026
Merged

mindcarver merged 2 commits into
mainfrom
delivery/142-antigravity-first-class

Conversation

@mindcarver

Copy link
Copy Markdown
Owner

Refs #142

范围摘要

完成 Initiative #137 下的 D6(antigravity-first-class):

  • 在 hooks/check-state.mjs 原生适配 Antigravity Stop 协议(识别 --platform antigravity 或 camelCase hookEventName;terminationReason !== "NO_TOOL_CALL" 或 continuationActive === true 放行防循环;阻断时输出 {"decision":"continue","reason":...};无状态/通过/fail-open 输出 {}),既有 Codex / Claude Code / ZCode / WorkBuddy 行为零退化;
  • 在 config/platform-capabilities.json 注册第 10 个支持平台 antigravity(插件根目录 ~/.gemini/config/plugins/thinloop,支持 ANTIGRAVITY_CONFIG_DIR 覆盖);
  • 在 scripts/verify-install.mjs 新增只读 antigravity 校验(NOT_INSTALLED 状态、白名单 plugin.json、根级扁平 hooks.json、仅路由内核的 rules/AGENTS.md、15 个 skills 软链,以及 skills.json / skills/scd-* 防重复暴露冲突检测);
  • 在 scripts/refresh-install.mjs 新增 --platform antigravity 原子刷新与 --install 首次装配(严禁读写 config.json 或 skills.json),并更新 docs/installation.md 与完整隔离单测。

工程验证证据

  • tests/check-state.test.mjs:26/26 通过(含 6 组新增 Antigravity 正反例);
  • tests/visual-quality-contract.test.mjs、tests/plugin-compatibility.test.mjs、tests/planning-contract.test.mjs、tests/opencode-compatibility.test.mjs 等关联测试全绿;
  • tests/platform-capabilities.test.mjs 与 tests/refresh-install.test.mjs 新增 12 个 Antigravity 专项单测 12/12 通过,隔离临时 ANTIGRAVITY_CONFIG_DIR CLI 端到端闭环(NOT_INSTALLED → --install → verify-install 6/6 PASS → refresh-install PASS)通过;
  • 独立验收结论:待独立新上下文子智能体按 scd-test 验收模式复核回填。

@mindcarver
mindcarver merged commit d31ae06 into main Nov 23, 2026
1 check passed
@mindcarver
mindcarver deleted the delivery/142-antigravity-first-class branch November 23, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant