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,118 +1,118 @@
1
- <!-- File Path Breadcrumb Navigation -->
2
- <nav class="file-breadcrumb" role="navigation" aria-label="File path">
3
- <ol class="breadcrumb-list" role="list">
4
- <!-- Home -->
5
- <li role="listitem">
6
- <a href="/" class="breadcrumb-link" title="Home directory">
7
- <svg class="w-3 h-3" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
8
- <path d="M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"/>
9
- </svg>
10
- <span class="sr-only">Home</span>
11
- </a>
12
- </li>
13
-
14
- <!-- Path segments -->
15
- <li role="listitem" class="breadcrumb-separator">/</li>
16
-
17
- {{ for segment in pathSegments }}
18
- <li role="listitem">
19
- <a href="{{ segmentPath }}" class="breadcrumb-link" title="{{ segmentPath }}">
20
- {{ segment }}
21
- </a>
22
- </li>
23
- <li role="listitem" class="breadcrumb-separator">/</li>
24
- {{ end }}
25
-
26
- <!-- Current file -->
27
- <li role="listitem" aria-current="page" class="breadcrumb-current">
28
- <span class="breadcrumb-link" title="{{ currentFile }}">{{ currentFile }}</span>
29
- </li>
30
- </ol>
31
-
32
- <!-- Copy path button -->
33
- <button class="copy-path-btn" data-action="copy-path" aria-label="Copy file path" title="Copy full path to clipboard">
34
- <svg class="w-3 h-3" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
35
- <path d="M7 3a1 1 0 000 2h6a1 1 0 000-2H7zM4 7a1 1 0 011-1h10a1 1 0 011 1v10a2 2 0 01-2 2H6a2 2 0 01-2-2V7z"/>
36
- </svg>
37
- </button>
38
- </nav>
39
-
40
- <style scoped>
41
- .file-breadcrumb {
42
- display: flex;
43
- align-items: center;
44
- gap: 8px;
45
- padding: 8px 0;
46
- font-size: 13px;
47
- overflow-x: auto;
48
- }
49
-
50
- .breadcrumb-list {
51
- display: flex;
52
- align-items: center;
53
- gap: 4px;
54
- list-style: none;
55
- margin: 0;
56
- padding: 0;
57
- flex: 1;
58
- min-width: 0;
59
- }
60
-
61
- .breadcrumb-link {
62
- color: var(--color-primary);
63
- text-decoration: none;
64
- padding: 2px 4px;
65
- border-radius: 2px;
66
- transition: background-color 0.2s;
67
- display: flex;
68
- align-items: center;
69
- gap: 2px;
70
- white-space: nowrap;
71
- }
72
-
73
- .breadcrumb-link:hover {
74
- background-color: var(--color-bg-hover);
75
- }
76
-
77
- .breadcrumb-current .breadcrumb-link {
78
- color: var(--color-text-primary);
79
- cursor: default;
80
- }
81
-
82
- .breadcrumb-current .breadcrumb-link:hover {
83
- background-color: transparent;
84
- }
85
-
86
- .breadcrumb-separator {
87
- color: var(--color-text-secondary);
88
- margin: 0 -2px;
89
- }
90
-
91
- .copy-path-btn {
92
- background: none;
93
- border: 1px solid var(--color-border);
94
- color: var(--color-text-secondary);
95
- cursor: pointer;
96
- padding: 4px 6px;
97
- border-radius: 3px;
98
- flex-shrink: 0;
99
- transition: all 0.2s;
100
- }
101
-
102
- .copy-path-btn:hover {
103
- border-color: var(--color-primary);
104
- color: var(--color-primary);
105
- }
106
-
107
- .sr-only {
108
- position: absolute;
109
- width: 1px;
110
- height: 1px;
111
- padding: 0;
112
- margin: -1px;
113
- overflow: hidden;
114
- clip: rect(0, 0, 0, 0);
115
- white-space: nowrap;
116
- border-width: 0;
117
- }
118
- </style>
1
+ <!-- File Path Breadcrumb Navigation -->
2
+ <nav class="file-breadcrumb" role="navigation" aria-label="File path">
3
+ <ol class="breadcrumb-list" role="list">
4
+ <!-- Home -->
5
+ <li role="listitem">
6
+ <a href="/" class="breadcrumb-link" title="Home directory">
7
+ <svg class="w-3 h-3" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
8
+ <path d="M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"/>
9
+ </svg>
10
+ <span class="sr-only">Home</span>
11
+ </a>
12
+ </li>
13
+
14
+ <!-- Path segments -->
15
+ <li role="listitem" class="breadcrumb-separator">/</li>
16
+
17
+ {{ for segment in pathSegments }}
18
+ <li role="listitem">
19
+ <a href="{{ segmentPath }}" class="breadcrumb-link" title="{{ segmentPath }}">
20
+ {{ segment }}
21
+ </a>
22
+ </li>
23
+ <li role="listitem" class="breadcrumb-separator">/</li>
24
+ {{ end }}
25
+
26
+ <!-- Current file -->
27
+ <li role="listitem" aria-current="page" class="breadcrumb-current">
28
+ <span class="breadcrumb-link" title="{{ currentFile }}">{{ currentFile }}</span>
29
+ </li>
30
+ </ol>
31
+
32
+ <!-- Copy path button -->
33
+ <button class="copy-path-btn" data-action="copy-path" aria-label="Copy file path" title="Copy full path to clipboard">
34
+ <svg class="w-3 h-3" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
35
+ <path d="M7 3a1 1 0 000 2h6a1 1 0 000-2H7zM4 7a1 1 0 011-1h10a1 1 0 011 1v10a2 2 0 01-2 2H6a2 2 0 01-2-2V7z"/>
36
+ </svg>
37
+ </button>
38
+ </nav>
39
+
40
+ <style scoped>
41
+ .file-breadcrumb {
42
+ display: flex;
43
+ align-items: center;
44
+ gap: 8px;
45
+ padding: 8px 0;
46
+ font-size: 13px;
47
+ overflow-x: auto;
48
+ }
49
+
50
+ .breadcrumb-list {
51
+ display: flex;
52
+ align-items: center;
53
+ gap: 4px;
54
+ list-style: none;
55
+ margin: 0;
56
+ padding: 0;
57
+ flex: 1;
58
+ min-width: 0;
59
+ }
60
+
61
+ .breadcrumb-link {
62
+ color: var(--color-primary);
63
+ text-decoration: none;
64
+ padding: 2px 4px;
65
+ border-radius: 2px;
66
+ transition: background-color 0.2s;
67
+ display: flex;
68
+ align-items: center;
69
+ gap: 2px;
70
+ white-space: nowrap;
71
+ }
72
+
73
+ .breadcrumb-link:hover {
74
+ background-color: var(--color-bg-hover);
75
+ }
76
+
77
+ .breadcrumb-current .breadcrumb-link {
78
+ color: var(--color-text-primary);
79
+ cursor: default;
80
+ }
81
+
82
+ .breadcrumb-current .breadcrumb-link:hover {
83
+ background-color: transparent;
84
+ }
85
+
86
+ .breadcrumb-separator {
87
+ color: var(--color-text-secondary);
88
+ margin: 0 -2px;
89
+ }
90
+
91
+ .copy-path-btn {
92
+ background: none;
93
+ border: 1px solid var(--color-border);
94
+ color: var(--color-text-secondary);
95
+ cursor: pointer;
96
+ padding: 4px 6px;
97
+ border-radius: 3px;
98
+ flex-shrink: 0;
99
+ transition: all 0.2s;
100
+ }
101
+
102
+ .copy-path-btn:hover {
103
+ border-color: var(--color-primary);
104
+ color: var(--color-primary);
105
+ }
106
+
107
+ .sr-only {
108
+ position: absolute;
109
+ width: 1px;
110
+ height: 1px;
111
+ padding: 0;
112
+ margin: -1px;
113
+ overflow: hidden;
114
+ clip: rect(0, 0, 0, 0);
115
+ white-space: nowrap;
116
+ border-width: 0;
117
+ }
118
+ </style>
@@ -1,121 +1,121 @@
1
- <!-- File Diff Visualization Panel -->
2
- <div class="file-diff-viewer card" role="region" aria-label="Code diff viewer">
3
- <div class="card-header flex items-center justify-between mb-3 pb-3 border-b">
4
- <h4 class="font-semibold">Changes in {{ fileName }}</h4>
5
- <div class="flex gap-2">
6
- <button class="btn-icon" data-view="unified" title="Unified diff view" aria-label="Show unified diff">
7
- <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
8
- <path d="M7 3a1 1 0 000 2h6a1 1 0 000-2H7zM4 7a1 1 0 011-1h10a1 1 0 011 1v6a2 2 0 01-2 2H6a2 2 0 01-2-2V7z"/>
9
- </svg>
10
- </button>
11
- <button class="btn-icon" data-view="split" title="Side-by-side view" aria-label="Show side-by-side diff">
12
- <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
13
- <path d="M2 3a1 1 0 011-1h6a1 1 0 011 1v8a1 1 0 01-1 1H3a1 1 0 01-1-1V3zm10-1a1 1 0 011 1v8a1 1 0 01-1 1h-6a1 1 0 01-1-1v2a1 1 0 01-2 0V3a1 1 0 011-1h6z"/>
14
- </svg>
15
- </button>
16
- </div>
17
- </div>
18
-
19
- <!-- Diff Statistics -->
20
- <div class="diff-stats text-sm mb-3 pb-3 border-b flex gap-4">
21
- <span class="text-green-600" aria-label="Lines added">
22
- <span class="font-mono">+{{ linesAdded }}</span> added
23
- </span>
24
- <span class="text-red-600" aria-label="Lines removed">
25
- <span class="font-mono">-{{ linesRemoved }}</span> removed
26
- </span>
27
- <span class="text-blue-600" aria-label="Total changes">
28
- <span class="font-mono">{{ totalChanges }}</span> total
29
- </span>
30
- </div>
31
-
32
- <!-- Unified Diff View -->
33
- <pre class="diff-content" data-view="unified"><code>{{ unifiedDiff }}</code></pre>
34
-
35
- <!-- Split Diff View (hidden) -->
36
- <div class="split-view hidden" data-view="split" role="region" aria-label="Side-by-side diff view">
37
- <div class="flex gap-2">
38
- <div class="flex-1">
39
- <div class="bg-red-50 border-b p-2 text-xs font-semibold">Original</div>
40
- <pre class="diff-side left"><code>{{ diffLeft }}</code></pre>
41
- </div>
42
- <div class="flex-1">
43
- <div class="bg-green-50 border-b p-2 text-xs font-semibold">Modified</div>
44
- <pre class="diff-side right"><code>{{ diffRight }}</code></pre>
45
- </div>
46
- </div>
47
- </div>
48
-
49
- <!-- Diff Legend -->
50
- <div class="diff-legend text-xs mt-3 pt-3 border-t space-y-1">
51
- <div class="flex items-center gap-2">
52
- <span class="w-2 h-2 rounded-full bg-green-500"></span>
53
- <span>Added or modified</span>
54
- </div>
55
- <div class="flex items-center gap-2">
56
- <span class="w-2 h-2 rounded-full bg-red-500"></span>
57
- <span>Removed or replaced</span>
58
- </div>
59
- </div>
60
- </div>
61
-
62
- <style scoped>
63
- .file-diff-viewer {
64
- padding: 16px;
65
- max-height: 600px;
66
- overflow: auto;
67
- }
68
-
69
- .btn-icon {
70
- background: none;
71
- border: none;
72
- color: var(--color-text-secondary);
73
- cursor: pointer;
74
- padding: 4px;
75
- border-radius: 4px;
76
- transition: all 0.2s;
77
- }
78
-
79
- .btn-icon:hover {
80
- background-color: var(--color-bg-hover);
81
- color: var(--color-primary);
82
- }
83
-
84
- .diff-stats {
85
- display: flex;
86
- gap: 16px;
87
- }
88
-
89
- .diff-content,
90
- .diff-side {
91
- background-color: var(--color-bg-code);
92
- border: 1px solid var(--color-border);
93
- border-radius: 4px;
94
- padding: 12px;
95
- font-size: 11px;
96
- line-height: 1.6;
97
- font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
98
- overflow-x: auto;
99
- }
100
-
101
- .split-view {
102
- display: flex;
103
- gap: 8px;
104
- margin-top: 12px;
105
- }
106
-
107
- .diff-side {
108
- flex: 1;
109
- background-color: transparent;
110
- border: none;
111
- padding: 0;
112
- }
113
-
114
- .diff-legend {
115
- padding-top: 12px;
116
- }
117
-
118
- .hidden {
119
- display: none;
120
- }
121
- </style>
1
+ <!-- File Diff Visualization Panel -->
2
+ <div class="file-diff-viewer card" role="region" aria-label="Code diff viewer">
3
+ <div class="card-header flex items-center justify-between mb-3 pb-3 border-b">
4
+ <h4 class="font-semibold">Changes in {{ fileName }}</h4>
5
+ <div class="flex gap-2">
6
+ <button class="btn-icon" data-view="unified" title="Unified diff view" aria-label="Show unified diff">
7
+ <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
8
+ <path d="M7 3a1 1 0 000 2h6a1 1 0 000-2H7zM4 7a1 1 0 011-1h10a1 1 0 011 1v6a2 2 0 01-2 2H6a2 2 0 01-2-2V7z"/>
9
+ </svg>
10
+ </button>
11
+ <button class="btn-icon" data-view="split" title="Side-by-side view" aria-label="Show side-by-side diff">
12
+ <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
13
+ <path d="M2 3a1 1 0 011-1h6a1 1 0 011 1v8a1 1 0 01-1 1H3a1 1 0 01-1-1V3zm10-1a1 1 0 011 1v8a1 1 0 01-1 1h-6a1 1 0 01-1-1v2a1 1 0 01-2 0V3a1 1 0 011-1h6z"/>
14
+ </svg>
15
+ </button>
16
+ </div>
17
+ </div>
18
+
19
+ <!-- Diff Statistics -->
20
+ <div class="diff-stats text-sm mb-3 pb-3 border-b flex gap-4">
21
+ <span class="text-green-600" aria-label="Lines added">
22
+ <span class="font-mono">+{{ linesAdded }}</span> added
23
+ </span>
24
+ <span class="text-red-600" aria-label="Lines removed">
25
+ <span class="font-mono">-{{ linesRemoved }}</span> removed
26
+ </span>
27
+ <span class="text-blue-600" aria-label="Total changes">
28
+ <span class="font-mono">{{ totalChanges }}</span> total
29
+ </span>
30
+ </div>
31
+
32
+ <!-- Unified Diff View -->
33
+ <pre class="diff-content" data-view="unified"><code>{{ unifiedDiff }}</code></pre>
34
+
35
+ <!-- Split Diff View (hidden) -->
36
+ <div class="split-view hidden" data-view="split" role="region" aria-label="Side-by-side diff view">
37
+ <div class="flex gap-2">
38
+ <div class="flex-1">
39
+ <div class="bg-red-50 border-b p-2 text-xs font-semibold">Original</div>
40
+ <pre class="diff-side left"><code>{{ diffLeft }}</code></pre>
41
+ </div>
42
+ <div class="flex-1">
43
+ <div class="bg-green-50 border-b p-2 text-xs font-semibold">Modified</div>
44
+ <pre class="diff-side right"><code>{{ diffRight }}</code></pre>
45
+ </div>
46
+ </div>
47
+ </div>
48
+
49
+ <!-- Diff Legend -->
50
+ <div class="diff-legend text-xs mt-3 pt-3 border-t space-y-1">
51
+ <div class="flex items-center gap-2">
52
+ <span class="w-2 h-2 rounded-full bg-green-500"></span>
53
+ <span>Added or modified</span>
54
+ </div>
55
+ <div class="flex items-center gap-2">
56
+ <span class="w-2 h-2 rounded-full bg-red-500"></span>
57
+ <span>Removed or replaced</span>
58
+ </div>
59
+ </div>
60
+ </div>
61
+
62
+ <style scoped>
63
+ .file-diff-viewer {
64
+ padding: 16px;
65
+ max-height: 600px;
66
+ overflow: auto;
67
+ }
68
+
69
+ .btn-icon {
70
+ background: none;
71
+ border: none;
72
+ color: var(--color-text-secondary);
73
+ cursor: pointer;
74
+ padding: 4px;
75
+ border-radius: 4px;
76
+ transition: all 0.2s;
77
+ }
78
+
79
+ .btn-icon:hover {
80
+ background-color: var(--color-bg-hover);
81
+ color: var(--color-primary);
82
+ }
83
+
84
+ .diff-stats {
85
+ display: flex;
86
+ gap: 16px;
87
+ }
88
+
89
+ .diff-content,
90
+ .diff-side {
91
+ background-color: var(--color-bg-code);
92
+ border: 1px solid var(--color-border);
93
+ border-radius: 4px;
94
+ padding: 12px;
95
+ font-size: 11px;
96
+ line-height: 1.6;
97
+ font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
98
+ overflow-x: auto;
99
+ }
100
+
101
+ .split-view {
102
+ display: flex;
103
+ gap: 8px;
104
+ margin-top: 12px;
105
+ }
106
+
107
+ .diff-side {
108
+ flex: 1;
109
+ background-color: transparent;
110
+ border: none;
111
+ padding: 0;
112
+ }
113
+
114
+ .diff-legend {
115
+ padding-top: 12px;
116
+ }
117
+
118
+ .hidden {
119
+ display: none;
120
+ }
121
+ </style>