{ "version": 1, "hooks": { "sessionStart": [ { "type": "command", "bash": "./tools/trace_ingest.py --source copilot-cli --event session.start 2>/dev/null || true", "powershell": "python tools/trace_ingest.py --source copilot-cli --event session.start 2>$null; exit 0", "cwd": ".", "timeoutSec": 5 } ], "sessionEnd": [ { "type": "command", "bash": "./tools/trace_ingest.py --source copilot-cli --event session.end 2>/dev/null || true", "powershell": "python tools/trace_ingest.py --source copilot-cli --event session.end 2>$null; exit 0", "cwd": ".", "timeoutSec": 5 } ], "userPromptSubmitted": [ { "type": "command", "bash": "./tools/trace_ingest.py --source copilot-cli --event prompt.submitted 2>/dev/null || true", "powershell": "python tools/trace_ingest.py --source copilot-cli --event prompt.submitted 2>$null; exit 0", "cwd": ".", "timeoutSec": 5 } ], "preToolUse": [ { "type": "command", "bash": "./tools/trace_ingest.py --source copilot-cli --event tool.pre 2>/dev/null || true", "powershell": "python tools/trace_ingest.py --source copilot-cli --event tool.pre 2>$null; exit 0", "cwd": ".", "timeoutSec": 5 } ], "postToolUse": [ { "type": "command", "bash": "./tools/trace_ingest.py --source copilot-cli --event tool.post 2>/dev/null || true", "powershell": "python tools/trace_ingest.py --source copilot-cli --event tool.post 2>$null; exit 0", "cwd": ".", "timeoutSec": 5 } ], "postToolUseFailure": [ { "type": "command", "bash": "./tools/trace_ingest.py --source copilot-cli --event tool.error 2>/dev/null || true", "powershell": "python tools/trace_ingest.py --source copilot-cli --event tool.error 2>$null; exit 0", "cwd": ".", "timeoutSec": 5 } ], "errorOccurred": [ { "type": "command", "bash": "./tools/trace_ingest.py --source copilot-cli --event session.error 2>/dev/null || true", "powershell": "python tools/trace_ingest.py --source copilot-cli --event session.error 2>$null; exit 0", "cwd": ".", "timeoutSec": 5 } ], "subagentStart": [ { "type": "command", "bash": "./tools/trace_ingest.py --source copilot-cli --event subagent.start 2>/dev/null || true", "powershell": "python tools/trace_ingest.py --source copilot-cli --event subagent.start 2>$null; exit 0", "cwd": ".", "timeoutSec": 5 } ], "subagentStop": [ { "type": "command", "bash": "./tools/trace_ingest.py --source copilot-cli --event subagent.stop 2>/dev/null || true", "powershell": "python tools/trace_ingest.py --source copilot-cli --event subagent.stop 2>$null; exit 0", "cwd": ".", "timeoutSec": 5 } ], "preCompact": [ { "type": "command", "bash": "./tools/trace_ingest.py --source copilot-cli --event compaction 2>/dev/null || true", "powershell": "python tools/trace_ingest.py --source copilot-cli --event compaction 2>$null; exit 0", "cwd": ".", "timeoutSec": 5 } ], "agentStop": [ { "type": "command", "bash": "./tools/trace_ingest.py --source copilot-cli --event turn.end 2>/dev/null || true", "powershell": "python tools/trace_ingest.py --source copilot-cli --event turn.end 2>$null; exit 0", "cwd": ".", "timeoutSec": 5 } ] } }