@dreb/coding-agent 2.55.4 → 2.55.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/agent-session.d.ts +5 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +7 -0
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/output-guard.d.ts +2 -0
- package/dist/core/output-guard.d.ts.map +1 -1
- package/dist/core/output-guard.js +95 -3
- package/dist/core/output-guard.js.map +1 -1
- package/dist/modes/rpc/rpc-event-projection.d.ts +29 -0
- package/dist/modes/rpc/rpc-event-projection.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-event-projection.js +54 -0
- package/dist/modes/rpc/rpc-event-projection.js.map +1 -0
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +10 -1
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/docs/rpc.md +7 -1
- package/package.json +1 -1
package/docs/rpc.md
CHANGED
|
@@ -1794,6 +1794,12 @@ Example streaming a text response:
|
|
|
1794
1794
|
{"type":"message_update","message":{...},"assistantMessageEvent":{"type":"text_end","contentIndex":0,"content":"Hello world","partial":{...}}}
|
|
1795
1795
|
```
|
|
1796
1796
|
|
|
1797
|
+
#### Dashboard-mode wire projection (`--ui dashboard`)
|
|
1798
|
+
|
|
1799
|
+
When the RPC server is launched with `--ui dashboard`, `message_update` events are projected **before serialization**: the cumulative top-level `message` field and the nested `assistantMessageEvent.partial` field are omitted from every frame. Both fields grow with the response, so carrying them on every delta makes the JSONL stream quadratic in response length; the dashboard reducer consumes only the delta fields (`type`, `contentIndex`, `delta`, `content`, `toolCall`), which are preserved unchanged.
|
|
1800
|
+
|
|
1801
|
+
The projection applies recursively to `message_update` events nested inside `background_agent_event` payloads. It does **not** apply to command responses — `get_dashboard_snapshot` still returns complete messages — and `message_end` always carries the full final message as the authoritative transcript record. RPC servers launched without `--ui dashboard` emit the full unprojected protocol shown above.
|
|
1802
|
+
|
|
1797
1803
|
### tool_execution_start / tool_execution_update / tool_execution_end
|
|
1798
1804
|
|
|
1799
1805
|
Emitted when a tool begins, streams progress, and completes execution.
|
|
@@ -1961,7 +1967,7 @@ Chain completions omit ambiguous scalar model/thinking fields and instead includ
|
|
|
1961
1967
|
}
|
|
1962
1968
|
```
|
|
1963
1969
|
|
|
1964
|
-
`background_agent_event` relays every JSONL event the child process emits (the same event union documented here, plus the initial session header), verbatim, tagged with the child's `agentId`. This is the live-transcript transport for observers like the dashboard — no session-file tailing needed. Streaming children emit `message_update` deltas at high frequency; consumers that fan events out further (e.g. over a network) should batch or throttle:
|
|
1970
|
+
`background_agent_event` relays every JSONL event the child process emits (the same event union documented here, plus the initial session header), verbatim, tagged with the child's `agentId`. This is the live-transcript transport for observers like the dashboard — no session-file tailing needed. Streaming children emit `message_update` deltas at high frequency; consumers that fan events out further (e.g. over a network) should batch or throttle. Under `--ui dashboard`, the [wire projection](#dashboard-mode-wire-projection---ui-dashboard) described above applies recursively to nested `message_update` events, so relayed frames omit the cumulative `message` and `partial` fields just like top-level ones:
|
|
1965
1971
|
|
|
1966
1972
|
```json
|
|
1967
1973
|
{
|