mirror of
https://github.com/DietrichGebert/ponytail.git
synced 2026-09-14 18:11:01 +08:00
83493b97bc
* feat: add Qoder hooks support (UserPromptSubmit + PreToolUse) - Add isQoder detection via QODER_SESSION_ID in ponytail-runtime.js - Add UserPromptSubmit double-duty: auto-activate + ruleset injection - Add PreToolUse hook with task|Task matcher for subagent injection - Create hooks/qoder-hooks.json reference template - Update .qoder-plugin/plugin.json with hooks field - Add .qoder/rules/ponytail.md for per-project rules - Add comprehensive tests for Qoder runtime behavior - Update README.md and docs/agent-portability.md * check-versions: enforce .qoder-plugin/plugin.json version too --------- Co-authored-by: shiding <shiding@ruigushop.com> Co-authored-by: Emeriko <dietrich.gebert@gmail.com>
27 lines
704 B
JSON
27 lines
704 B
JSON
{
|
|
"_comment": "Reference template — copy the 'hooks' object into your .qoder/settings.json or ~/.qoder/settings.json. Replace PONYTAIL_DIR with the path to your ponytail checkout (e.g. ~/.qoder/plugins/ponytail or the npm global install path).",
|
|
"hooks": {
|
|
"UserPromptSubmit": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node PONYTAIL_DIR/hooks/ponytail-mode-tracker.js"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "task|Task",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node PONYTAIL_DIR/hooks/ponytail-subagent.js"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|