Files
ai-diff-preview/claude-hooks-config.example.json
T

33 lines
657 B
JSON
Raw Normal View History

{
"hooks": {
"after_code_edit": {
"command": "code",
"args": [
"--command",
"aiDiffPreview.handleHook",
"--type",
"after_code_edit",
"--file",
"${file}",
"--patch",
"${patch}"
],
"description": "AI 代码编辑后触发 Diff 预览"
},
"after_write_file": {
"command": "code",
"args": [
"--command",
"aiDiffPreview.handleHook",
"--type",
"after_write_file",
"--file",
"${file}",
"--patch",
"${patch}"
],
"description": "文件写入后触发 Diff 预览"
}
}
}