Repository navigation
feat(antigravity): 将 Antigravity 2.0 正式纳入支持平台并适配 Stop Hook 协议 (Refs #142) - #150
Merged
Merged
Conversation
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #142
范围摘要
完成 Initiative
#137下的 D6(antigravity-first-class):hooks/check-state.mjs原生适配 AntigravityStop协议(识别--platform antigravity或 camelCasehookEventName;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_DIRCLI 端到端闭环(NOT_INSTALLED→--install→verify-install6/6PASS→refresh-installPASS)通过;scd-test验收模式复核回填。