@dreb/coding-agent 2.55.3 → 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/docs/dashboard.md CHANGED
@@ -220,9 +220,13 @@ debounce from its in-memory state, so an update performs neither child RPC calls
220
220
  nor a disk inventory scan.
221
221
 
222
222
  Live runtime state and on-disk session inventory have separate refresh paths.
223
- After creating, resuming, stopping, or deleting a session, the client narrowly
224
- refreshes the disk list through `GET /api/sessions` rather than reloading the
225
- whole fleet. While the Fleet screen is visible, it polls each live runtime's
223
+ Before fleet, inventory, or resync serialization, the server explicitly projects
224
+ each on-disk session to the declared browser DTO and bounds its first-message
225
+ preview to 256 Unicode characters. Internal parent paths and complete searchable
226
+ transcript text never cross this browser boundary. After creating, resuming,
227
+ stopping, or deleting a session, the client narrowly refreshes the disk list
228
+ through `GET /api/sessions` rather than reloading the whole fleet. While the
229
+ Fleet screen is visible, it polls each live runtime's
226
230
  stats no more often than every 30 seconds. That poll is single-flight, retains a
227
231
  card's last good stats if an update fails, and surfaces failures in the Fleet UI.
228
232
 
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
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreb/coding-agent",
3
- "version": "2.55.3",
3
+ "version": "2.55.5",
4
4
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "drebConfig": {