Fixes gaps in v2.23.0 where two IDEs with their own hook systems were not updated: 1. Mastra Code: hooks.json is the actual hook source, not SKILL.md. Added UserPromptSubmit hook, updated PostToolUse message. 2. Cursor: .cursor/hooks/ scripts are the actual hook source. Created user-prompt-submit.sh/ps1 for session recovery. Updated post-tool-use.sh/ps1 with progress.md reminder. Updated stop.sh/ps1 with completion re-entry guidance. Also removed accidentally committed docs/article-v2.md from tracking.
33 lines
603 B
JSON
33 lines
603 B
JSON
{
|
|
"version": 1,
|
|
"hooks": {
|
|
"userPromptSubmit": [
|
|
{
|
|
"command": ".cursor/hooks/user-prompt-submit.sh",
|
|
"timeout": 5
|
|
}
|
|
],
|
|
"preToolUse": [
|
|
{
|
|
"command": ".cursor/hooks/pre-tool-use.sh",
|
|
"matcher": "Write|Edit|Shell|Read",
|
|
"timeout": 5
|
|
}
|
|
],
|
|
"postToolUse": [
|
|
{
|
|
"command": ".cursor/hooks/post-tool-use.sh",
|
|
"matcher": "Write|Edit",
|
|
"timeout": 5
|
|
}
|
|
],
|
|
"stop": [
|
|
{
|
|
"command": ".cursor/hooks/stop.sh",
|
|
"timeout": 10,
|
|
"loop_limit": 3
|
|
}
|
|
]
|
|
}
|
|
}
|