feat(M2): Commit 提交窗口 + CommitPipeline + AI 接缝 - #4
Merged
Conversation
🤖 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>
🤖 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>
🤖 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>
🤖 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.
背景
落地 M2 里程碑:让「勾选文件 → 填 message → Commit / Commit and Push」闭环可用。基于 工程方案(路径 B:消费 vscode.git API + 自绘 Commit Webview)。
交付内容
adapter/webview/commit-webview.ts,WebviewView 自绘 IDEA 风格):活动 changelist 文件勾选 + 多行 Commit Message 编辑器 + Amend / Signed-off-by / 跳过 Git hooks 选项 + Commit / Commit and Push 按钮 + CC 实时校验指示器 + 最近消息复用。adapter/commit/commit-service.ts):编排提交流水线(对齐 IDEA checkin)—— 校验信息 → 解析选中文件 →repo.add(绝对路径,循证api1.ts的Uri.file()要求)→ CommitPipeline 责任链 →repo.commit→ 可选repo.push;最近消息workspaceState持久化。engine/commit/conventional-linter(纯函数,ok/warning/error)+ webview 实时指示 + 内置ConventionalCommitCheck(Checkin hook,pipeline 内阻断)。CheckinHandler:ConventionalCommitCheck(EARLY)+IPreCommitInspector(Null)。ILlmProvider/ICommitMessageProvider/IPreCommitInspector/IChangelistGrouper/IConflictResolver)—— 真实接入点,M5 替换为真实 provider。shared/protocol.ts扩展 CommitViewState / Host↔Webview 消息(文件勾选、提交请求、CC 校验、提交结果)。验收(本地全绿)
check-types/lint/packagetest:unit(Vitest)test:integration(test-electron)vsce packagehyper-git-0.3.0.vsix(16.35 KB)说明
Author覆盖暂未实现:vscode.git 稳定 API 的commit()不支持--author(已记方案待核实项),M2 暂不含。run-integration.js现创建临时 git fixture 并以其为工作区启动 VS Code。🤖 Generated with Claude Code