agentgui 1.0.273 → 1.0.275

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 (71) hide show
  1. package/CLAUDE.md +280 -280
  2. package/IPFS_DOWNLOADER.md +277 -277
  3. package/TASK_2C_COMPLETION.md +334 -334
  4. package/bin/gmgui.cjs +54 -54
  5. package/build-portable.js +111 -0
  6. package/database.js +1422 -1406
  7. package/lib/claude-runner.js +1130 -1130
  8. package/lib/ipfs-downloader.js +459 -459
  9. package/lib/speech.js +152 -152
  10. package/package.json +1 -1
  11. package/portable-entry.js +43 -0
  12. package/readme.md +76 -76
  13. package/scripts/inject-pe-section.py +185 -0
  14. package/server.js +3787 -3794
  15. package/setup-npm-token.sh +68 -68
  16. package/static/app.js +773 -773
  17. package/static/event-rendering-showcase.html +708 -708
  18. package/static/index.html +3178 -3180
  19. package/static/js/agent-auth.js +298 -298
  20. package/static/js/audio-recorder-processor.js +18 -18
  21. package/static/js/client.js +2656 -2656
  22. package/static/js/conversations.js +583 -583
  23. package/static/js/dialogs.js +267 -267
  24. package/static/js/event-consolidator.js +101 -101
  25. package/static/js/event-filter.js +311 -311
  26. package/static/js/event-processor.js +452 -452
  27. package/static/js/features.js +413 -413
  28. package/static/js/kalman-filter.js +67 -67
  29. package/static/js/progress-dialog.js +130 -130
  30. package/static/js/script-runner.js +219 -219
  31. package/static/js/streaming-renderer.js +2123 -2120
  32. package/static/js/syntax-highlighter.js +269 -269
  33. package/static/js/tts-websocket-handler.js +152 -152
  34. package/static/js/ui-components.js +431 -431
  35. package/static/js/voice.js +849 -849
  36. package/static/js/websocket-manager.js +596 -596
  37. package/static/templates/INDEX.html +465 -465
  38. package/static/templates/README.md +190 -190
  39. package/static/templates/agent-capabilities.html +56 -56
  40. package/static/templates/agent-metadata-panel.html +44 -44
  41. package/static/templates/agent-status-badge.html +30 -30
  42. package/static/templates/code-annotation-panel.html +155 -155
  43. package/static/templates/code-suggestion-panel.html +184 -184
  44. package/static/templates/command-header.html +77 -77
  45. package/static/templates/command-output-scrollable.html +118 -118
  46. package/static/templates/elapsed-time.html +54 -54
  47. package/static/templates/error-alert.html +106 -106
  48. package/static/templates/error-history-timeline.html +160 -160
  49. package/static/templates/error-recovery-options.html +109 -109
  50. package/static/templates/error-stack-trace.html +95 -95
  51. package/static/templates/error-summary.html +80 -80
  52. package/static/templates/event-counter.html +48 -48
  53. package/static/templates/execution-actions.html +97 -97
  54. package/static/templates/execution-progress-bar.html +80 -80
  55. package/static/templates/execution-stepper.html +120 -120
  56. package/static/templates/file-breadcrumb.html +118 -118
  57. package/static/templates/file-diff-viewer.html +121 -121
  58. package/static/templates/file-metadata.html +133 -133
  59. package/static/templates/file-read-panel.html +66 -66
  60. package/static/templates/file-write-panel.html +120 -120
  61. package/static/templates/git-branch-remote.html +107 -107
  62. package/static/templates/git-diff-list.html +101 -101
  63. package/static/templates/git-log-visualization.html +153 -153
  64. package/static/templates/git-status-panel.html +115 -115
  65. package/static/templates/quality-metrics-display.html +170 -170
  66. package/static/templates/terminal-output-panel.html +87 -87
  67. package/static/templates/test-results-display.html +144 -144
  68. package/static/theme.js +72 -72
  69. package/test-download-progress.js +223 -223
  70. package/test-websocket-broadcast.js +147 -147
  71. package/tests/ipfs-downloader.test.js +370 -370
@@ -1,77 +1,77 @@
1
- <!-- Command Execution Header -->
2
- <div class="command-header" role="region" aria-label="Command information">
3
- <div class="flex items-start justify-between gap-3 mb-3">
4
- <!-- Command Info -->
5
- <div class="flex-1 min-w-0">
6
- <div class="flex items-center gap-2 mb-2">
7
- <svg class="w-4 h-4 text-primary flex-shrink-0" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
8
- <path d="M4 4a2 2 0 00-2 2v4a2 2 0 002 2V6h10a2 2 0 00-2-2H4zm2 6a2 2 0 012-2h8a2 2 0 012 2v4a2 2 0 01-2 2H8a2 2 0 01-2-2v-4zm6 4a2 2 0 100-4 2 2 0 000 4z"/>
9
- </svg>
10
- <h4 class="font-semibold truncate">{{ commandName }}</h4>
11
- </div>
12
- <code class="text-xs font-mono text-secondary truncate block" title="{{ fullCommand }}">
13
- $ {{ fullCommand }}
14
- </code>
15
- </div>
16
-
17
- <!-- Status Badge -->
18
- <div class="flex-shrink-0">
19
- <div class="badge badge-lg" data-status="{{ status }}" role="status" aria-label="Command status: {{ statusLabel }}">
20
- <span class="badge-dot"></span>
21
- {{ statusLabel }}
22
- </div>
23
- </div>
24
- </div>
25
-
26
- <!-- Details Row -->
27
- <div class="grid grid-cols-4 gap-3 text-sm">
28
- <div class="border-r pr-3">
29
- <span class="text-secondary">Exit Code</span>
30
- <p class="font-mono font-semibold" data-exit-code="{{ exitCode }}">{{ exitCode }}</p>
31
- </div>
32
- <div class="border-r pr-3">
33
- <span class="text-secondary">Duration</span>
34
- <p class="font-mono font-semibold">{{ duration }}</p>
35
- </div>
36
- <div class="border-r pr-3">
37
- <span class="text-secondary">Memory</span>
38
- <p class="font-mono font-semibold">{{ memoryUsed }}</p>
39
- </div>
40
- <div>
41
- <span class="text-secondary">PID</span>
42
- <p class="font-mono font-semibold">{{ pid }}</p>
43
- </div>
44
- </div>
45
- </div>
46
-
47
- <style scoped>
48
- .command-header {
49
- padding: 12px;
50
- background: var(--color-bg-secondary);
51
- border-radius: 4px;
52
- border-left: 3px solid var(--color-primary);
53
- }
54
-
55
- .badge-dot {
56
- display: inline-block;
57
- width: 6px;
58
- height: 6px;
59
- border-radius: 50%;
60
- background-color: currentColor;
61
- margin-right: 6px;
62
- animation: pulse 2s infinite;
63
- }
64
-
65
- @keyframes pulse {
66
- 0%, 100% { opacity: 1; }
67
- 50% { opacity: 0.5; }
68
- }
69
-
70
- [data-exit-code="0"] {
71
- color: #10b981;
72
- }
73
-
74
- [data-exit-code]:not([data-exit-code="0"]) {
75
- color: #ef4444;
76
- }
77
- </style>
1
+ <!-- Command Execution Header -->
2
+ <div class="command-header" role="region" aria-label="Command information">
3
+ <div class="flex items-start justify-between gap-3 mb-3">
4
+ <!-- Command Info -->
5
+ <div class="flex-1 min-w-0">
6
+ <div class="flex items-center gap-2 mb-2">
7
+ <svg class="w-4 h-4 text-primary flex-shrink-0" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
8
+ <path d="M4 4a2 2 0 00-2 2v4a2 2 0 002 2V6h10a2 2 0 00-2-2H4zm2 6a2 2 0 012-2h8a2 2 0 012 2v4a2 2 0 01-2 2H8a2 2 0 01-2-2v-4zm6 4a2 2 0 100-4 2 2 0 000 4z"/>
9
+ </svg>
10
+ <h4 class="font-semibold truncate">{{ commandName }}</h4>
11
+ </div>
12
+ <code class="text-xs font-mono text-secondary truncate block" title="{{ fullCommand }}">
13
+ $ {{ fullCommand }}
14
+ </code>
15
+ </div>
16
+
17
+ <!-- Status Badge -->
18
+ <div class="flex-shrink-0">
19
+ <div class="badge badge-lg" data-status="{{ status }}" role="status" aria-label="Command status: {{ statusLabel }}">
20
+ <span class="badge-dot"></span>
21
+ {{ statusLabel }}
22
+ </div>
23
+ </div>
24
+ </div>
25
+
26
+ <!-- Details Row -->
27
+ <div class="grid grid-cols-4 gap-3 text-sm">
28
+ <div class="border-r pr-3">
29
+ <span class="text-secondary">Exit Code</span>
30
+ <p class="font-mono font-semibold" data-exit-code="{{ exitCode }}">{{ exitCode }}</p>
31
+ </div>
32
+ <div class="border-r pr-3">
33
+ <span class="text-secondary">Duration</span>
34
+ <p class="font-mono font-semibold">{{ duration }}</p>
35
+ </div>
36
+ <div class="border-r pr-3">
37
+ <span class="text-secondary">Memory</span>
38
+ <p class="font-mono font-semibold">{{ memoryUsed }}</p>
39
+ </div>
40
+ <div>
41
+ <span class="text-secondary">PID</span>
42
+ <p class="font-mono font-semibold">{{ pid }}</p>
43
+ </div>
44
+ </div>
45
+ </div>
46
+
47
+ <style scoped>
48
+ .command-header {
49
+ padding: 12px;
50
+ background: var(--color-bg-secondary);
51
+ border-radius: 4px;
52
+ border-left: 3px solid var(--color-primary);
53
+ }
54
+
55
+ .badge-dot {
56
+ display: inline-block;
57
+ width: 6px;
58
+ height: 6px;
59
+ border-radius: 50%;
60
+ background-color: currentColor;
61
+ margin-right: 6px;
62
+ animation: pulse 2s infinite;
63
+ }
64
+
65
+ @keyframes pulse {
66
+ 0%, 100% { opacity: 1; }
67
+ 50% { opacity: 0.5; }
68
+ }
69
+
70
+ [data-exit-code="0"] {
71
+ color: #10b981;
72
+ }
73
+
74
+ [data-exit-code]:not([data-exit-code="0"]) {
75
+ color: #ef4444;
76
+ }
77
+ </style>
@@ -1,118 +1,118 @@
1
- <!-- Scrollable Command Output with Virtual Rendering -->
2
- <div class="command-output-scrollable" role="region" aria-label="Scrollable command output" aria-live="polite">
3
- <!-- Virtual Scroll Container -->
4
- <div class="scroll-viewport" data-total-lines="{{ totalLines }}" data-visible-lines="20">
5
- <div class="scroll-content" role="list">
6
- <!-- Lines rendered dynamically by JavaScript -->
7
- {{ for line in visibleLines }}
8
- <div class="output-line" data-line-number="{{ lineNumber }}" role="listitem">
9
- <span class="line-number" aria-hidden="true">{{ lineNumber }}</span>
10
- <code class="line-content ansi-colored" data-has-stderr="{{ hasStderr }}">{{ line }}</code>
11
- </div>
12
- {{ end }}
13
- </div>
14
-
15
- <!-- Scrollbar -->
16
- <div class="scroll-thumb" role="scrollbar" aria-orientation="vertical"></div>
17
- </div>
18
-
19
- <!-- Search Bar -->
20
- <div class="output-search mt-3 pt-3 border-t">
21
- <input type="text"
22
- class="search-input"
23
- placeholder="Search output..."
24
- aria-label="Search in command output"
25
- data-search-index="true" />
26
- <div class="search-results text-xs text-secondary mt-1" aria-live="polite">
27
- {{ matchCount }} matches
28
- </div>
29
- </div>
30
- </div>
31
-
32
- <style scoped>
33
- .command-output-scrollable {
34
- background: var(--color-bg-terminal);
35
- border: 1px solid var(--color-border);
36
- border-radius: 4px;
37
- overflow: hidden;
38
- max-height: 500px;
39
- display: flex;
40
- flex-direction: column;
41
- }
42
-
43
- .scroll-viewport {
44
- flex: 1;
45
- overflow-y: auto;
46
- overflow-x: auto;
47
- position: relative;
48
- background-color: var(--color-bg-code);
49
- font-size: 12px;
50
- font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
51
- line-height: 1.5;
52
- }
53
-
54
- .scroll-content {
55
- display: flex;
56
- flex-direction: column;
57
- list-style: none;
58
- margin: 0;
59
- padding: 8px;
60
- }
61
-
62
- .output-line {
63
- display: flex;
64
- gap: 12px;
65
- white-space: pre-wrap;
66
- word-break: break-word;
67
- padding: 0 4px;
68
- }
69
-
70
- .line-number {
71
- color: var(--color-text-secondary);
72
- text-align: right;
73
- min-width: 40px;
74
- user-select: none;
75
- flex-shrink: 0;
76
- }
77
-
78
- .line-content {
79
- color: var(--color-text-terminal);
80
- flex: 1;
81
- }
82
-
83
- .line-content[data-has-stderr="true"] {
84
- color: var(--color-error);
85
- }
86
-
87
- .scroll-thumb {
88
- position: absolute;
89
- right: 0;
90
- top: 0;
91
- width: 8px;
92
- height: 100%;
93
- background-color: var(--color-scrollbar);
94
- border-radius: 4px;
95
- cursor: pointer;
96
- }
97
-
98
- .output-search {
99
- padding: 8px;
100
- border-top: 1px solid var(--color-border);
101
- background: var(--color-bg-secondary);
102
- }
103
-
104
- .search-input {
105
- width: 100%;
106
- padding: 6px 8px;
107
- border: 1px solid var(--color-border);
108
- border-radius: 3px;
109
- font-size: 12px;
110
- font-family: inherit;
111
- }
112
-
113
- .search-input:focus {
114
- outline: none;
115
- border-color: var(--color-primary);
116
- box-shadow: 0 0 0 2px var(--color-primary-alpha);
117
- }
118
- </style>
1
+ <!-- Scrollable Command Output with Virtual Rendering -->
2
+ <div class="command-output-scrollable" role="region" aria-label="Scrollable command output" aria-live="polite">
3
+ <!-- Virtual Scroll Container -->
4
+ <div class="scroll-viewport" data-total-lines="{{ totalLines }}" data-visible-lines="20">
5
+ <div class="scroll-content" role="list">
6
+ <!-- Lines rendered dynamically by JavaScript -->
7
+ {{ for line in visibleLines }}
8
+ <div class="output-line" data-line-number="{{ lineNumber }}" role="listitem">
9
+ <span class="line-number" aria-hidden="true">{{ lineNumber }}</span>
10
+ <code class="line-content ansi-colored" data-has-stderr="{{ hasStderr }}">{{ line }}</code>
11
+ </div>
12
+ {{ end }}
13
+ </div>
14
+
15
+ <!-- Scrollbar -->
16
+ <div class="scroll-thumb" role="scrollbar" aria-orientation="vertical"></div>
17
+ </div>
18
+
19
+ <!-- Search Bar -->
20
+ <div class="output-search mt-3 pt-3 border-t">
21
+ <input type="text"
22
+ class="search-input"
23
+ placeholder="Search output..."
24
+ aria-label="Search in command output"
25
+ data-search-index="true" />
26
+ <div class="search-results text-xs text-secondary mt-1" aria-live="polite">
27
+ {{ matchCount }} matches
28
+ </div>
29
+ </div>
30
+ </div>
31
+
32
+ <style scoped>
33
+ .command-output-scrollable {
34
+ background: var(--color-bg-terminal);
35
+ border: 1px solid var(--color-border);
36
+ border-radius: 4px;
37
+ overflow: hidden;
38
+ max-height: 500px;
39
+ display: flex;
40
+ flex-direction: column;
41
+ }
42
+
43
+ .scroll-viewport {
44
+ flex: 1;
45
+ overflow-y: auto;
46
+ overflow-x: auto;
47
+ position: relative;
48
+ background-color: var(--color-bg-code);
49
+ font-size: 12px;
50
+ font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
51
+ line-height: 1.5;
52
+ }
53
+
54
+ .scroll-content {
55
+ display: flex;
56
+ flex-direction: column;
57
+ list-style: none;
58
+ margin: 0;
59
+ padding: 8px;
60
+ }
61
+
62
+ .output-line {
63
+ display: flex;
64
+ gap: 12px;
65
+ white-space: pre-wrap;
66
+ word-break: break-word;
67
+ padding: 0 4px;
68
+ }
69
+
70
+ .line-number {
71
+ color: var(--color-text-secondary);
72
+ text-align: right;
73
+ min-width: 40px;
74
+ user-select: none;
75
+ flex-shrink: 0;
76
+ }
77
+
78
+ .line-content {
79
+ color: var(--color-text-terminal);
80
+ flex: 1;
81
+ }
82
+
83
+ .line-content[data-has-stderr="true"] {
84
+ color: var(--color-error);
85
+ }
86
+
87
+ .scroll-thumb {
88
+ position: absolute;
89
+ right: 0;
90
+ top: 0;
91
+ width: 8px;
92
+ height: 100%;
93
+ background-color: var(--color-scrollbar);
94
+ border-radius: 4px;
95
+ cursor: pointer;
96
+ }
97
+
98
+ .output-search {
99
+ padding: 8px;
100
+ border-top: 1px solid var(--color-border);
101
+ background: var(--color-bg-secondary);
102
+ }
103
+
104
+ .search-input {
105
+ width: 100%;
106
+ padding: 6px 8px;
107
+ border: 1px solid var(--color-border);
108
+ border-radius: 3px;
109
+ font-size: 12px;
110
+ font-family: inherit;
111
+ }
112
+
113
+ .search-input:focus {
114
+ outline: none;
115
+ border-color: var(--color-primary);
116
+ box-shadow: 0 0 0 2px var(--color-primary-alpha);
117
+ }
118
+ </style>
@@ -1,54 +1,54 @@
1
- <!-- Execution Time Display with Elapsed and Estimated Remaining -->
2
- <div class="time-display card" role="region" aria-label="Execution timing">
3
- <div class="grid grid-cols-2 gap-4">
4
- <!-- Elapsed Time -->
5
- <div class="text-center">
6
- <p class="text-sm text-secondary mb-2">Elapsed Time</p>
7
- <div class="time-value font-mono">
8
- <span data-unit="hours">{{ hours }}</span>:<span data-unit="minutes">{{ minutes }}</span>:<span data-unit="seconds">{{ seconds }}</span>
9
- </div>
10
- <p class="text-xs text-secondary mt-1">from start</p>
11
- </div>
12
-
13
- <!-- Estimated Remaining -->
14
- <div class="text-center border-l pl-4">
15
- <p class="text-sm text-secondary mb-2">Est. Remaining</p>
16
- <div class="time-value font-mono" data-estimated="true">
17
- <span data-unit="hours">{{ remHours }}</span>:<span data-unit="minutes">{{ remMinutes }}</span>:<span data-unit="seconds">{{ remSeconds }}</span>
18
- </div>
19
- <p class="text-xs text-secondary mt-1">estimated to complete</p>
20
- </div>
21
- </div>
22
-
23
- <!-- Timeline Bar -->
24
- <div class="mt-4 pt-4 border-t">
25
- <div class="flex items-center gap-2 text-xs">
26
- <span class="text-secondary">0%</span>
27
- <div class="flex-1 h-1 bg-primary rounded-full" style="width: {{ progressPercent }}%;"></div>
28
- <span class="text-secondary">100%</span>
29
- </div>
30
- </div>
31
- </div>
32
-
33
- <style scoped>
34
- .time-display {
35
- padding: 16px;
36
- }
37
-
38
- .time-value {
39
- font-size: 24px;
40
- font-weight: 600;
41
- letter-spacing: 1px;
42
- color: var(--color-primary);
43
- }
44
-
45
- .time-value[data-estimated="true"] {
46
- color: var(--color-secondary);
47
- }
48
-
49
- [data-unit] {
50
- min-width: 32px;
51
- text-align: center;
52
- display: inline-block;
53
- }
54
- </style>
1
+ <!-- Execution Time Display with Elapsed and Estimated Remaining -->
2
+ <div class="time-display card" role="region" aria-label="Execution timing">
3
+ <div class="grid grid-cols-2 gap-4">
4
+ <!-- Elapsed Time -->
5
+ <div class="text-center">
6
+ <p class="text-sm text-secondary mb-2">Elapsed Time</p>
7
+ <div class="time-value font-mono">
8
+ <span data-unit="hours">{{ hours }}</span>:<span data-unit="minutes">{{ minutes }}</span>:<span data-unit="seconds">{{ seconds }}</span>
9
+ </div>
10
+ <p class="text-xs text-secondary mt-1">from start</p>
11
+ </div>
12
+
13
+ <!-- Estimated Remaining -->
14
+ <div class="text-center border-l pl-4">
15
+ <p class="text-sm text-secondary mb-2">Est. Remaining</p>
16
+ <div class="time-value font-mono" data-estimated="true">
17
+ <span data-unit="hours">{{ remHours }}</span>:<span data-unit="minutes">{{ remMinutes }}</span>:<span data-unit="seconds">{{ remSeconds }}</span>
18
+ </div>
19
+ <p class="text-xs text-secondary mt-1">estimated to complete</p>
20
+ </div>
21
+ </div>
22
+
23
+ <!-- Timeline Bar -->
24
+ <div class="mt-4 pt-4 border-t">
25
+ <div class="flex items-center gap-2 text-xs">
26
+ <span class="text-secondary">0%</span>
27
+ <div class="flex-1 h-1 bg-primary rounded-full" style="width: {{ progressPercent }}%;"></div>
28
+ <span class="text-secondary">100%</span>
29
+ </div>
30
+ </div>
31
+ </div>
32
+
33
+ <style scoped>
34
+ .time-display {
35
+ padding: 16px;
36
+ }
37
+
38
+ .time-value {
39
+ font-size: 24px;
40
+ font-weight: 600;
41
+ letter-spacing: 1px;
42
+ color: var(--color-primary);
43
+ }
44
+
45
+ .time-value[data-estimated="true"] {
46
+ color: var(--color-secondary);
47
+ }
48
+
49
+ [data-unit] {
50
+ min-width: 32px;
51
+ text-align: center;
52
+ display: inline-block;
53
+ }
54
+ </style>