mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-20 05:04:44 +00:00
feat(coding-agent): expose deliverAs option in hook sendMessage() API
- pi.sendMessage(msg, options?) now accepts { triggerTurn?, deliverAs? }
- deliverAs: 'steer' (default) or 'followUp' controls delivery timing
- Update all mode handlers to pass options through
- Update file-trigger example to use new API
- Update CHANGELOG
This commit is contained in:
parent
d404f8fcfa
commit
9d8230dfc6
8 changed files with 29 additions and 18 deletions
|
|
@ -15,7 +15,7 @@
|
|||
- `queuedMessageCount` → `pendingMessageCount`
|
||||
- `getQueuedMessages()` → `getSteeringMessages()` and `getFollowUpMessages()`
|
||||
- `clearQueue()` now returns `{ steering: string[], followUp: string[] }`
|
||||
- **sendHookMessage() signature changed**: Second parameter changed from `triggerTurn?: boolean` to `options?: { triggerTurn?, deliverAs? }`. Use `deliverAs: "followUp"` for follow-up delivery.
|
||||
- **Hook API signature changed**: `pi.sendMessage()` second parameter changed from `triggerTurn?: boolean` to `options?: { triggerTurn?, deliverAs? }`. Use `deliverAs: "followUp"` for follow-up delivery. Affects both hooks and internal `sendHookMessage()` method.
|
||||
- **RPC API changes**:
|
||||
- `queue_message` command → `steer` and `follow_up` commands
|
||||
- `set_queue_mode` command → `set_steering_mode` and `set_follow_up_mode` commands
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue