feat(hooks): add telemetry handlers for codex/copilot/gemini

This commit is contained in:
William Valentin
2026-03-20 11:17:26 -07:00
parent c88746693a
commit d235e3c873
23 changed files with 4506 additions and 0 deletions
+114
View File
@@ -0,0 +1,114 @@
{
"hooks": {
"SessionStart": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler start"
}
]
}
],
"Stop": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler stop"
}
]
}
],
"SubagentStop": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler subagent-stop"
}
]
}
],
"PreToolUse": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler tool-start"
}
]
}
],
"PostToolUse": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler tool-end"
}
]
}
],
"UserPromptSubmit": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler prompt"
}
]
}
],
"PreCompact": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler compact-start"
}
]
}
],
"PostCompact": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler compact-end"
}
]
}
],
"SubagentStart": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler subagent-start"
}
]
}
],
"Notification": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler notification"
}
]
}
]
}
}