mirror of
https://github.com/LerianStudio/ring
synced 2026-04-21 21:47:49 +00:00
refactor(installer): introduce adapter and transformer architecture fix(security): harden installer against path traversal and symlinks docs: add comprehensive guides for multi-platform support and migration fix(beads): improve stop hook logic to check for open issues
34 lines
860 B
JSON
34 lines
860 B
JSON
{
|
|
"hooks": [
|
|
{
|
|
"event": "SessionStart",
|
|
"triggers": ["startup", "resume", "clear", "compact"],
|
|
"type": "command",
|
|
"command": "bash ${RING_PLUGIN_ROOT}/hooks/session-start.sh"
|
|
},
|
|
{
|
|
"event": "UserPromptSubmit",
|
|
"triggers": ["always"],
|
|
"type": "command",
|
|
"command": "bash ${RING_PLUGIN_ROOT}/hooks/prompt-submit.sh"
|
|
},
|
|
{
|
|
"event": "PreToolUse",
|
|
"triggers": ["Bash"],
|
|
"type": "prompt",
|
|
"prompt": "Verify the Bash command is safe to execute."
|
|
},
|
|
{
|
|
"event": "PostToolUse",
|
|
"triggers": ["Write", "Edit"],
|
|
"type": "command",
|
|
"command": "bash ${RING_PLUGIN_ROOT}/hooks/post-edit.sh"
|
|
},
|
|
{
|
|
"event": "Stop",
|
|
"triggers": ["always"],
|
|
"type": "command",
|
|
"command": "bash ${RING_PLUGIN_ROOT}/hooks/stop.sh"
|
|
}
|
|
]
|
|
}
|