Files
Mert Koseoglu f37e95b885 feat(cost): finish install-wire for gemini-cli, openclaw, qwen-code capture
gemini-cli: emit AfterModel hook in generateHookConfig + settings fixture. openclaw: subscribe model.usage diagnostic bus via tsc-safe runtime resolution (api.onDiagnosticEvent or guarded dynamic import; no static unresolvable import). qwen-code: new hooks/qwen-code/stop.mjs (cursor-gated wire.jsonl-style tail) + Stop registration + recovered sha256 project-hash path resolver (~/.qwen/tmp/<hash>/chats/<sid>.jsonl). All 9 real-cost adapters now have an end-to-end capture path. 184 tests green, tsc clean.
2026-06-26 12:06:19 +03:00

61 lines
1.3 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/google-gemini/gemini-cli/main/packages/core/src/schema/settings-schema.json",
"hooks": {
"BeforeTool": [
{
"matcher": "run_shell_command|read_file|read_many_files|grep_search|search_file_content|web_fetch|activate_skill|mcp__plugin_context-mode",
"hooks": [
{
"type": "command",
"command": "context-mode hook gemini-cli beforetool"
}
]
}
],
"AfterTool": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "context-mode hook gemini-cli aftertool"
}
]
}
],
"AfterModel": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "context-mode hook gemini-cli aftermodel"
}
]
}
],
"PreCompress": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "context-mode hook gemini-cli precompress"
}
]
}
],
"SessionStart": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "context-mode hook gemini-cli sessionstart"
}
]
}
]
}
}