@@ -65,7 +65,7 @@
"name": "Kimi K2.6",
"cost_per_1m_in": 0.8,
"cost_per_1m_out": 4,
- "cost_per_1m_in_cached": 0.2,
+ "cost_per_1m_in_cached": 0.25,
"cost_per_1m_out_cached": 0,
"context_window": 262144,
"default_max_tokens": 26214,
@@ -89,6 +89,16 @@
"tools": {
"$ref": "#/$defs/Tools",
"description": "Tool configurations"
+ },
+ "hooks": {
+ "additionalProperties": {
+ "items": {
+ "$ref": "#/$defs/HookConfig"
+ },
+ "type": "array"
+ },
+ "type": "object",
+ "description": "User-defined shell commands that fire on hook events (e.g. PreToolUse)"
}
},
"additionalProperties": false,
@@ -97,6 +107,28 @@
"tools"
]
},
+ "HookConfig": {
+ "properties": {
+ "matcher": {
+ "type": "string",
+ "description": "Regex pattern tested against the tool name. Empty means match all tools."
+ },
+ "command": {
+ "type": "string",
+ "description": "Shell command to execute when the hook fires"
+ },
+ "timeout": {
+ "type": "integer",
+ "description": "Timeout in seconds for the hook command",
+ "default": 30
+ }
+ },
+ "additionalProperties": false,
+ "type": "object",
+ "required": [
+ "command"
+ ]
+ },
"LSPConfig": {
"properties": {
"disabled": {