agentgui 1.0.824 → 1.0.826

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/CHANGELOG.md +16 -50
  2. package/CLAUDE.md +16 -7
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,51 +1,17 @@
1
1
  ## 2026-04-11
2
- - refactor: replace jsonl-watcher.js with @lanmower/cc-tail npm package (subclass CCTailWatcher, override _line() to route via JsonlParser); remove custom file-watching logic
3
- - refactor: split syntax-highlighter.js (216L) into syntax-highlighter.js (132L) + syntax-highlighter-render.js (73L, highlight/createHighlightedElement/highlightElement via prototype extension)
4
- - refactor: split dialogs.js (268L) into dialogs.js (54L, helpers + window._dialogCore) + dialogs-types.js (112L, window.UIDialog via window._dialogCore)
5
- - chore: add @lanmower/cc-tail dependency to package.json
6
-
7
- ## [Unreleased]
8
-
9
- ### Refactor
10
- - Split `conversations.js` (737L) into 4 files: conversations.js (117L), conv-sidebar-actions.js (185L), conv-sidebar-clone.js (92L), conv-list-renderer.js (198L)
11
- - Split `websocket-manager.js` (643L) into 3 files: ws-core.js (163L), ws-latency.js (89L), websocket-manager.js (108L)
12
- - Split `ui-components.js` (370L) into 2 files: ui-components.js (89L), ui-components-rendering.js (63L)
13
- - Split `agent-auth.js` into agent-auth.js (147L) and agent-auth-oauth.js (160L)
14
- - Deleted dead code: event-filter.js (zero external references)
15
- - Updated index.html script load order for all new split files
16
-
17
- ## 2026-04-11
18
- - refactor: split conversations.js (742L→116L) into conv-sidebar-actions.js (prototype extension: drag/drop, bulk actions, folder browser), conv-list-renderer.js (loadConversations, render, vnode), conv-sidebar-clone.js (clone UI, delete-all); all ≤200 lines
19
- - refactor: split websocket-manager.js (643L) into ws-core.js (class constructor, connect, onOpen, onMessage, reconnect), websocket-manager.js (sendMessage, subscriptions, state); ws-latency/connection/heartbeat empty stubs deleted
20
- - refactor: split event-filter.js into event-filter.js + event-filter-config.js (window export/CSV/Markdown helpers)
21
- - refactor: split agent-auth.js into agent-auth.js + agent-auth-oauth.js (IIFE, OAuth modal flows)
22
- - refactor: fix index.html script load order — ws-core.js before websocket-manager.js; remove empty stub script tags (ws-connection, ws-latency, ws-heartbeat)
23
-
24
- ## 2026-04-11
25
- - refactor: split jsonl-watcher.js parse/event logic into jsonl-parser.js; watcher retains file watching/polling only
26
- - refactor: split tool-version.js into tool-version-check.js (sync) and tool-version-fetch.js (async/network)
27
- - refactor: split ui-components.js into core class (createModal/createTabs/createAlert/createSpinner/escapeHtml) and ui-components-rendering.js (createProgressBar/createCollapsible/createInput/createSelect/createButtonGroup/createBadge/copyToClipboard/downloadFile); both ≤200 lines
28
-
29
- ## [Unreleased]
30
- ### Refactor
31
- - Strip all standalone comment lines (// and /* */ block lines) from 14 static JS files: event-filter.js, image-loader.js, syntax-highlighter.js, client.js, streaming-renderer.js, ui-components.js, conversations.js, websocket-manager.js, conv-machine.js, ws-machine.js, ws-client.js, state-barrier.js, script-runner.js, theme.js. Total 781 comment lines removed. All files syntax-verified.
32
-
33
- ## [Unreleased]
34
-
35
- ### Changed
36
- - Remove GMGUIApp dead code from app.js; strip 900+ lines, keep 5 live IIFEs
37
- - Add app.js and app-shortcuts.js to index.html script loading (previously unreferenced)
38
- - Remove unused BASE_URL declaration from app-shortcuts.js
39
- - Extend window.__debug.getSyncState() with promptMachineState, toolInstallMachineStates, voiceMachineState, convListMachineState
40
-
41
-
42
- ### Fixed
43
- - Thinking blocks now use theme-aware CSS vars for light/dark backgrounds (`--color-thinking-bg`)
44
- - All code blocks (renderBlockCode, renderCodeWithHighlight, renderFileRead, renderCommand) now use CSS vars instead of hardcoded dark hex colors
45
- - Removed hardcoded `#1e293b`, `#e2e8f0`, `#d1d5db` from all inline styles in streaming-renderer.js
46
- - tool-result-pre text color now adapts to theme via `--color-code-text`
47
- - Added CSS vars to :root (light) and html.dark for --color-bg-code, --color-code-text, --color-code-border, --color-thinking-bg
48
- - Thinking block content now renders full markdown (headers, lists, blockquotes, bold, italic, inline code, links)
49
- - parseAndRenderMarkdown() extended with headers (##/###), ul/ol lists, blockquotes (>), horizontal rules (---)
50
- - Thinking content dark mode text color set to #c4b5fd (readable purple)
51
-
2
+ - refactor: replace jsonl-watcher.js with @lanmower/cc-tail npm package (subclass CCTailWatcher, override _line() via JsonlParser); remove custom file-watching logic
3
+ - refactor: split syntax-highlighter.js (216L) into syntax-highlighter.js (132L) + syntax-highlighter-render.js (73L)
4
+ - refactor: split dialogs.js (268L) into dialogs.js (54L) + dialogs-types.js (112L, window.UIDialog)
5
+ - refactor: split image-loader.js (221L) into image-loader.js (147L) + image-loader-element.js (77L)
6
+ - refactor: split conversations.js (742L) into conversations.js (116L) + conv-sidebar-actions.js (185L) + conv-list-renderer.js (198L) + conv-sidebar-clone.js (92L)
7
+ - refactor: split websocket-manager.js (643L) into ws-core.js (163L) + websocket-manager.js (108L) + ws-latency.js (89L)
8
+ - refactor: split ui-components.js into ui-components.js (89L) + ui-components-rendering.js (63L)
9
+ - refactor: split agent-auth.js into agent-auth.js (147L) + agent-auth-oauth.js (160L)
10
+ - refactor: split event-filter.js into event-filter-config.js (37L); delete event-filter.js dead code (zero external refs)
11
+ - refactor: split jsonl-watcher.js parse logic into jsonl-parser.js (180L); watcher retains file watching only
12
+ - refactor: split tool-version.js into tool-version-check.js + tool-version-fetch.js
13
+ - refactor: fix index.html script load order for all new split files
14
+ - fix: thinking blocks use theme-aware CSS vars for light/dark backgrounds
15
+ - fix: all code blocks use CSS vars instead of hardcoded dark hex colors
16
+ - fix: remove GMGUIApp dead code from app.js; add app.js and app-shortcuts.js to index.html
17
+ - fix: extend window.__debug.getSyncState() with all XState machine snapshots
package/CLAUDE.md CHANGED
@@ -75,14 +75,21 @@ static/theme.js Theme switching
75
75
  static/css/main.css All application styles (extracted from index.html)
76
76
  static/css/tools-popup.css Tool popup styles
77
77
  static/js/client.js Main client logic
78
- static/js/conversations.js Conversation management
78
+ static/js/conversations.js Conversation management (class definition)
79
+ static/js/conv-list-renderer.js Conversation list render, CRUD, WS listener (prototype extension)
80
+ static/js/conv-sidebar-actions.js Sidebar delegated listeners, folder browser (prototype extension)
81
+ static/js/conv-sidebar-clone.js Delete-all, clone UI, DOM-ready bootstrap (prototype extension)
79
82
  static/js/streaming-renderer.js Renders agent streaming events as HTML
80
83
  static/js/event-processor.js Processes incoming events
81
- static/js/event-filter.js Filters events by type
82
- static/js/websocket-manager.js WebSocket connection handling
84
+ static/js/event-filter-config.js Filters events by type
85
+ static/js/websocket-manager.js WebSocket send/subscribe/disconnect methods (prototype extension)
86
+ static/js/ws-core.js WebSocketManager class + connect/reconnect/heartbeat core
87
+ static/js/ws-latency.js WebSocket latency tracking, ping/pong, quality tiers (prototype extension)
83
88
  static/js/ws-client.js WsClient RPC wrapper over WebSocketManager
84
- static/js/ui-components.js UI component helpers
85
- static/js/syntax-highlighter.js Code syntax highlighting
89
+ static/js/ui-components.js UI component helpers (modal, tabs, alert, spinner, progress, collapsible)
90
+ static/js/ui-components-rendering.js Input/select/button/badge factory helpers (static extension)
91
+ static/js/syntax-highlighter.js Code syntax highlighting (class definition)
92
+ static/js/syntax-highlighter-render.js Token-to-HTML render logic (prototype extension)
86
93
  static/js/voice.js Voice input/output
87
94
  static/js/stt-handler.js Speech-to-text recording and upload
88
95
  static/js/features.js View toggle, drag-drop upload, model progress indicator
@@ -90,8 +97,10 @@ static/js/tools-manager.js Tool install/update UI orchestrator
90
97
  static/js/tools-manager-ui.js Tool card rendering + voice selector helpers
91
98
  static/js/agent-auth.js Agent authentication UI (dropdown, auth-status, provider keys)
92
99
  static/js/agent-auth-oauth.js OAuth modal functions (triggerAuth, onWsMessage, paste fallback)
93
- static/js/dialogs.js Modal dialog system
94
- static/js/image-loader.js Lazy image loading for agent file read events
100
+ static/js/dialogs.js Modal dialog system (class definition)
101
+ static/js/dialogs-types.js Dialog type-specific render helpers (prototype extension)
102
+ static/js/image-loader.js Lazy image loading orchestration for agent file read events
103
+ static/js/image-loader-element.js ImageLoader DOM element rendering (prototype extension)
95
104
  static/js/pm2-monitor.js PM2 process monitor UI
96
105
  static/js/script-runner.js npm script runner UI
97
106
  static/js/state-barrier.js Atomic state machine for conversation management
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.824",
3
+ "version": "1.0.826",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "electron/main.js",