Cursor plugin specification and official plugins
TypeScript
fix(advisor): address hook scripts via CURSOR_PLUGIN_ROOT (#315)
Eric Zakariasson93b00b89ef42
diff --git a/advisor/hooks/hooks.json b/advisor/hooks/hooks.jsonindex cc0c08a9..84a74bea 100644--- a/advisor/hooks/hooks.json+++ b/advisor/hooks/hooks.json@@ -3,23 +3,23 @@"hooks": {"afterFileEdit": [{- "command": "./hooks/mark-pending.sh"+ "command": "bash \"${CURSOR_PLUGIN_ROOT}/hooks/mark-pending.sh\""}],"afterAgentResponse": [{- "command": "./hooks/capture-response.sh"+ "command": "bash \"${CURSOR_PLUGIN_ROOT}/hooks/capture-response.sh\""}],"subagentStop": [{- "command": "./hooks/record-consult.sh",+ "command": "bash \"${CURSOR_PLUGIN_ROOT}/hooks/record-consult.sh\"","matcher": "^advisor-subagent$"}],"stop": [{- "command": "./hooks/stop-hook.sh",+ "command": "bash \"${CURSOR_PLUGIN_ROOT}/hooks/stop-hook.sh\"","loop_limit": 3}]diff --git a/advisor/skills/advisor/SKILL.md b/advisor/skills/advisor/SKILL.mdindex 681eb49b..85c2021b 100644--- a/advisor/skills/advisor/SKILL.md+++ b/advisor/skills/advisor/SKILL.md@@ -89,7 +89,7 @@ Do not consult for routine steps, for things you can verify yourself (run the te- Relevant tool results verbatim: error messages, stack traces, test output, diffs. Trim unrelated noise and mark trims with `[...]`, but never paraphrase evidence.- Current state: `git status --short`, `git diff --stat`, files you touched, anything half-done.- Your specific questions, the options you see, and your current leaning with reasons.- - The `transcript_path` from `state.json` when set, so the advisor can read the full conversation itself.+ - The `transcript_path` from `state.json` when set and the mode is on in this conversation, so the advisor can read the full conversation itself.- No secrets. Redact tokens, keys, and `.env` values.3. Spawn the advisor in the foreground and wait for it:- `subagent_type: "advisor-subagent"`