mirror of
https://github.com/cursor/plugins.git
synced 2026-09-14 20:00:00 +08:00
93b00b89ef
Plugin hooks do not run from the plugin directory, so ./hooks/... paths
fail with exit 127 from any other cwd. Use bash "${CURSOR_PLUGIN_ROOT}/hooks/..."
like continual-learning, which indexes and runs cleanly. Also scopes the
briefing's transcript_path line to the bound conversation, completing the
one-off-consult fix from #314.
28 lines
580 B
JSON
28 lines
580 B
JSON
{
|
|
"version": 1,
|
|
"hooks": {
|
|
"afterFileEdit": [
|
|
{
|
|
"command": "bash \"${CURSOR_PLUGIN_ROOT}/hooks/mark-pending.sh\""
|
|
}
|
|
],
|
|
"afterAgentResponse": [
|
|
{
|
|
"command": "bash \"${CURSOR_PLUGIN_ROOT}/hooks/capture-response.sh\""
|
|
}
|
|
],
|
|
"subagentStop": [
|
|
{
|
|
"command": "bash \"${CURSOR_PLUGIN_ROOT}/hooks/record-consult.sh\"",
|
|
"matcher": "^advisor-subagent$"
|
|
}
|
|
],
|
|
"stop": [
|
|
{
|
|
"command": "bash \"${CURSOR_PLUGIN_ROOT}/hooks/stop-hook.sh\"",
|
|
"loop_limit": 3
|
|
}
|
|
]
|
|
}
|
|
}
|