remove hooks experimental and refactor hook Config

This commit is contained in:
DennisYu07 2026-04-01 11:50:23 +08:00
parent 1b1a029fd7
commit 5221002831
33 changed files with 722 additions and 322 deletions

View file

@ -640,23 +640,10 @@
}
}
},
"hooksConfig": {
"description": "Hook configurations for intercepting and customizing agent behavior.",
"type": "object",
"properties": {
"enabled": {
"description": "Canonical toggle for the hooks system. When disabled, no hooks will be executed.",
"type": "boolean",
"default": true
},
"disabled": {
"description": "List of hook names (commands) that should be disabled. Hooks in this list will not execute even if configured.",
"type": "array",
"items": {
"type": "string"
}
}
}
"disableAllHooks": {
"description": "Temporarily disable all hooks without deleting configurations. Default is false (hooks enabled).",
"type": "boolean",
"default": false
},
"hooks": {
"description": "Hook event configurations for extending CLI behavior at various lifecycle points.",