agentgui 1.0.872 → 1.0.873

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.
Files changed (3) hide show
  1. package/CLAUDE.md +1 -1
  2. package/README.md +10 -7
  3. package/package.json +1 -1
package/CLAUDE.md CHANGED
@@ -362,7 +362,7 @@ The README.md uses shields.io badges with a consistent pattern:
362
362
  - **Terminal output** is base64-encoded (`encoding: 'base64'` field on message). Client decodes with `decodeURIComponent(escape(atob(data)))` pattern for multibyte safety.
363
363
  - **HTML cache** (`_htmlCache`) is only populated when client accepts gzip. In watch mode it's never cached (always fresh).
364
364
  - **`app.js` and `app-shortcuts.js` script loading:** Both are `<script defer>` tags loaded AFTER `agent-auth.js` in index.html. They depend on `window.wsClient`, `window.conversationManager`, and `window._escHtml` being initialized first. Defer order is guaranteed by source order — adding new defer scripts that depend on these modules requires careful ordering.
365
- - **`window.__debug.getSyncState()`:** Debug API in client.js exposes internal state machine snapshots: `convMachineStates`, `toolInstallMachineStates`, `voiceMachineState`, `convListMachineState`, `promptMachineState`, `wsConnectionState`, `rendererEventQueueLength`, `rendererEventHistoryLength`. All XState v5 machines have no parallel ad-hoc state — this API is the only way to inspect full machine state at once.
365
+ - **`window.__debug` registry:** Structured sub-keys via live getters `machines` (conv/toolInstall/voice/convList/prompt/recording/terminal/ws), `ws` (state/latency/url), `auth`, `perf`, `config`, `renderer`, `conv`. Legacy methods preserved: `getState()`, `getSyncState()`, `getMessageState()`. Uninitialized machines return `'uninitialized'` rather than crashing. All XState v5 machines have no parallel ad-hoc state.
366
366
  - **`isJsonlBacked` flag:** Only `claude-code` (protocol: `direct`) writes JSONL files. All other agents use `stream-event-handler.js` for broadcasting. `isJsonlBacked = resolvedAgentId === 'claude-code'` — guards in `stream-event-handler.js` prevent double-broadcast for claude-code, and gates ACP streaming for non-JSONL agents.
367
367
  - **`toolIds` in `server-startup.js` must match `TOOLS` in `tool-manager.js`:** `initializeToolInstallations` runs for each toolId, creating the `tool_installations` row. `tool_install_history` has a FK to `tool_installations(tool_id)`. Any tool omitted from toolIds will cause a FOREIGN KEY constraint failure when the periodic update checker writes history for it.
368
368
  - **`JsonlWatcher._read(fp)` override:** Captures `this._currentFp` before calling `super._read(fp)`, making the file path available to `_line()` callbacks for project-directory decoding in `_conv()`. JSONL project dirs are encoded (e.g., `-config-workspace-agentgui`) — decoded via `'/' + dirName.slice(1).replace(/-/g, '/')`.
package/README.md CHANGED
@@ -181,13 +181,16 @@ When `DEBUG=1` is set, internal state inspection endpoints become available:
181
181
  - `GET /api/debug/ws-stats` - WebSocket connection metrics and lag distribution
182
182
 
183
183
  **Browser Console** (`window.__debug`):
184
- - `window.__debug.convMachineStates` - Per-conversation UI state machines
185
- - `window.__debug.toolInstallMachineStates` - Tool installation state
186
- - `window.__debug.voiceMachineState` - TTS playback state
187
- - `window.__debug.convListMachineState` - Conversation list machine
188
- - `window.__debug.promptMachineState` - Prompt area state
189
- - `window.__debug.wsConnectionState` - WebSocket connection status
190
- - `window.__debug.getSyncState()` - Full snapshot of all machines at once
184
+ - `window.__debug.machines` - All XState machines (conv, toolInstall, voice, convList, prompt, recording, terminal, ws)
185
+ - `window.__debug.ws` - WebSocket state, latency EMA, latency trend, URL
186
+ - `window.__debug.auth` - Agent auth and OAuth state
187
+ - `window.__debug.perf` - Conversation perf metrics
188
+ - `window.__debug.config` - Base URL and server config
189
+ - `window.__debug.renderer` - Streaming renderer event queue / history lengths
190
+ - `window.__debug.conv` - Current conversation and streaming set
191
+ - `window.__debug.getState()` - WS latency snapshot
192
+ - `window.__debug.getSyncState()` - Flat snapshot of all machines (legacy shape)
193
+ - `window.__debug.getMessageState()` - Message/queue DOM counts
191
194
 
192
195
  See [CLAUDE.md](CLAUDE.md) for complete XState v5 machine documentation and internal architecture details.
193
196
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.872",
3
+ "version": "1.0.873",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "electron/main.js",