feat(AgentConfig): 新增 hyperGit.agent.* 四项 Agentic Git 偏好配置(M5 铺垫);#89
Merged
ThreeFish-AI merged 2 commits intoJul 10, 2026
Merged
Conversation
为 M5 AI 接缝铺路,追加四项声明式预置配置,仅承载「配置项 + 内置默认」,
agent/ 五接缝与 hyperGit.ai.enabled 行为不变、零破坏:
- hyperGit.agent.baseBranch:创建 PR 的基线分支(留空=仓库默认分支)。
- hyperGit.agent.commitPreferences / createPrPreferences / reviewPreferences:
分别为点击 Commit / Create PR / Review 时发送给 agent 的自定义指令,
以 editPresentation:"multilineText" 多行文本域承载并内置默认模板。
Commit 模板由中文提交规约译为专业英文(规约规定提交信息用中文,故示例与签名
块原样保留);Create PR / Review 模板逐字内置(含 ${TARGET_BRANCH} / #{pr_number}
等占位符,运行时由宿主替换)。默认值内联于 package.json(VS Code 无「默认取自
文件」机制、.vscodeignore 排除除 media/ 外一切)。零新增命令 / TS / 测试;
check-types / lint / 372 单元测试全绿。
🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
- 新增功能文档 docs/features/agentic-git-preferences.md(概述/设计 Mermaid/ 配置表/内置默认说明/与 Agentic Git 关系/验证),并登记至文档中心与知识索引。 - README 双语指标校准 7 → 11 配置项(commands 101 / views 6 / tests 372 不变), 并在 AI 接缝段补 hyperGit.agent.* 偏好说明。 - 设计文档就近续写:engineering-plan §6、implementation-status §5 的 pre-M5 注记补本轮四项偏好配置。 - CHANGELOG Unreleased 补 Added 条目。 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
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.
背景
延续 #88(Claude Code 配置,已合并)为 Agentic Git(M5) 铺路的思路,追加四项
hyperGit.agent.*预置配置。均为声明式预置——仅承载「配置项 + 内置默认」,真正消费留待 M5 AI 接缝 实装;agent/五接缝与hyperGit.ai.enabled行为不变、零破坏。变更内容
hyperGit.agent.baseBranch(string,默认空):创建 PR 时的基线分支,留空 = 仓库默认分支。hyperGit.agent.commitPreferences/createPrPreferences/reviewPreferences:分别为点击 Commit / Create PR / Review 时发送给 agent 的自定义指令,以editPresentation: "multilineText"多行文本域承载并内置默认模板。实现细节
Base Branch为文本输入,三项偏好为多行文本域)。默认值内联于package.json——.vscodeignore排除除media/外一切、且 VS Code 无「默认取自文件」机制,须内联方能在设置界面直接呈现模板。hyperGit.agent.*命名空间(与代码库agent/接缝层同名,四项聚合于设置界面「Hyper Git › Agent」组)。${TARGET_BRANCH}/#{pr_number}等占位符,运行时由宿主替换)。文档
新增功能文档
docs/features/agentic-git-preferences.md(概述 / 设计 Mermaid / 配置表 / 内置默认说明 / 与 Agentic Git 关系 / 验证),登记至文档中心与知识索引;engineering-plan §6、implementation-status §5续写 pre-M5 注记;README 双语指标校准7 → 11 配置项;CHANGELOGUnreleased 补Added。验证
pnpm run check-types+pnpm run lint+pnpm run test:unit全绿(37 文件 / 372 用例,无 TS/测试改动);package.jsonJSON 合法、通过 Prettier;配置项计数 11。hyperGit.agent→ 四项;三项偏好呈多行文本域并默认显示内置模板,Base Branch为文本输入,可经齿轮Reset Setting复位。🤖 Generated with Claude Code, CodeX, Gemini
Co-Authored-By: Aurelius Huangthreefish.ai@gmail.com