mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 14:01:06 +00:00
Improve documentation: README settings table, philosophy section, custom-tools intro, rpc hook_error event, hooks import aliases
This commit is contained in:
parent
5e5bdadbf9
commit
3424550d21
12 changed files with 155 additions and 2319 deletions
|
|
@ -559,6 +559,7 @@ Events are streamed to stdout as JSON lines during agent operation. Events do NO
|
|||
| `auto_compaction_end` | Auto-compaction completes |
|
||||
| `auto_retry_start` | Auto-retry begins (after transient error) |
|
||||
| `auto_retry_end` | Auto-retry completes (success or final failure) |
|
||||
| `hook_error` | Hook threw an error |
|
||||
|
||||
### agent_start
|
||||
|
||||
|
|
@ -744,6 +745,19 @@ On final failure (max retries exceeded):
|
|||
}
|
||||
```
|
||||
|
||||
### hook_error
|
||||
|
||||
Emitted when a hook throws an error.
|
||||
|
||||
```json
|
||||
{
|
||||
"type": "hook_error",
|
||||
"hookPath": "/path/to/hook.ts",
|
||||
"event": "tool_call",
|
||||
"error": "Error message..."
|
||||
}
|
||||
```
|
||||
|
||||
## Error Handling
|
||||
|
||||
Failed commands return a response with `success: false`:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue