agentgui 1.0.274 → 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 (69) 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 +3 -42
  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/readme.md +76 -76
  12. package/server.js +3787 -3794
  13. package/setup-npm-token.sh +68 -68
  14. package/static/app.js +773 -773
  15. package/static/event-rendering-showcase.html +708 -708
  16. package/static/index.html +3178 -3180
  17. package/static/js/agent-auth.js +298 -298
  18. package/static/js/audio-recorder-processor.js +18 -18
  19. package/static/js/client.js +2656 -2656
  20. package/static/js/conversations.js +583 -583
  21. package/static/js/dialogs.js +267 -267
  22. package/static/js/event-consolidator.js +101 -101
  23. package/static/js/event-filter.js +311 -311
  24. package/static/js/event-processor.js +452 -452
  25. package/static/js/features.js +413 -413
  26. package/static/js/kalman-filter.js +67 -67
  27. package/static/js/progress-dialog.js +130 -130
  28. package/static/js/script-runner.js +219 -219
  29. package/static/js/streaming-renderer.js +2123 -2120
  30. package/static/js/syntax-highlighter.js +269 -269
  31. package/static/js/tts-websocket-handler.js +152 -152
  32. package/static/js/ui-components.js +431 -431
  33. package/static/js/voice.js +849 -849
  34. package/static/js/websocket-manager.js +596 -596
  35. package/static/templates/INDEX.html +465 -465
  36. package/static/templates/README.md +190 -190
  37. package/static/templates/agent-capabilities.html +56 -56
  38. package/static/templates/agent-metadata-panel.html +44 -44
  39. package/static/templates/agent-status-badge.html +30 -30
  40. package/static/templates/code-annotation-panel.html +155 -155
  41. package/static/templates/code-suggestion-panel.html +184 -184
  42. package/static/templates/command-header.html +77 -77
  43. package/static/templates/command-output-scrollable.html +118 -118
  44. package/static/templates/elapsed-time.html +54 -54
  45. package/static/templates/error-alert.html +106 -106
  46. package/static/templates/error-history-timeline.html +160 -160
  47. package/static/templates/error-recovery-options.html +109 -109
  48. package/static/templates/error-stack-trace.html +95 -95
  49. package/static/templates/error-summary.html +80 -80
  50. package/static/templates/event-counter.html +48 -48
  51. package/static/templates/execution-actions.html +97 -97
  52. package/static/templates/execution-progress-bar.html +80 -80
  53. package/static/templates/execution-stepper.html +120 -120
  54. package/static/templates/file-breadcrumb.html +118 -118
  55. package/static/templates/file-diff-viewer.html +121 -121
  56. package/static/templates/file-metadata.html +133 -133
  57. package/static/templates/file-read-panel.html +66 -66
  58. package/static/templates/file-write-panel.html +120 -120
  59. package/static/templates/git-branch-remote.html +107 -107
  60. package/static/templates/git-diff-list.html +101 -101
  61. package/static/templates/git-log-visualization.html +153 -153
  62. package/static/templates/git-status-panel.html +115 -115
  63. package/static/templates/quality-metrics-display.html +170 -170
  64. package/static/templates/terminal-output-panel.html +87 -87
  65. package/static/templates/test-results-display.html +144 -144
  66. package/static/theme.js +72 -72
  67. package/test-download-progress.js +223 -223
  68. package/test-websocket-broadcast.js +147 -147
  69. package/tests/ipfs-downloader.test.js +370 -370
@@ -1,106 +1,106 @@
1
- <!-- Error Alert Component with Severity Levels -->
2
- <div class="error-alert alert" data-severity="{{ severity }}" role="alert" aria-live="assertive">
3
- <!-- Icon -->
4
- <div class="alert-icon" aria-hidden="true">
5
- {{ if severity == 'critical' }}
6
- <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
7
- <path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z"/>
8
- </svg>
9
- {{ else if severity == 'error' }}
10
- <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
11
- <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z"/>
12
- </svg>
13
- {{ else if severity == 'warning' }}
14
- <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
15
- <path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92z"/>
16
- </svg>
17
- {{ else }}
18
- <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
19
- <path fill-rule="evenodd" d="M18 5v8a2 2 0 01-2 2h-5l-5 4v-4H4a2 2 0 01-2-2V5a2 2 0 012-2h12a2 2 0 012 2z"/>
20
- </svg>
21
- {{ end }}
22
- </div>
23
-
24
- <!-- Content -->
25
- <div class="alert-content flex-1">
26
- <h5 class="alert-title">{{ errorTitle }}</h5>
27
- <p class="alert-message">{{ errorMessage }}</p>
28
- </div>
29
-
30
- <!-- Close Button -->
31
- <button class="alert-close" data-action="dismiss" aria-label="Dismiss error">
32
- <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
33
- <path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"/>
34
- </svg>
35
- </button>
36
- </div>
37
-
38
- <style scoped>
39
- .error-alert {
40
- display: flex;
41
- align-items: flex-start;
42
- gap: 12px;
43
- padding: 12px 16px;
44
- border-radius: 4px;
45
- border-left: 4px solid;
46
- }
47
-
48
- .error-alert[data-severity="critical"] {
49
- background-color: #fee2e2;
50
- border-left-color: #dc2626;
51
- color: #7f1d1d;
52
- }
53
-
54
- .error-alert[data-severity="error"] {
55
- background-color: #fee2e2;
56
- border-left-color: #ef4444;
57
- color: #7f1d1d;
58
- }
59
-
60
- .error-alert[data-severity="warning"] {
61
- background-color: #fef3c7;
62
- border-left-color: #f59e0b;
63
- color: #78350f;
64
- }
65
-
66
- .error-alert[data-severity="info"] {
67
- background-color: #dbeafe;
68
- border-left-color: #3b82f6;
69
- color: #1e3a8a;
70
- }
71
-
72
- .alert-icon {
73
- flex-shrink: 0;
74
- display: flex;
75
- align-items: center;
76
- }
77
-
78
- .alert-content {
79
- flex: 1;
80
- }
81
-
82
- .alert-title {
83
- font-weight: 600;
84
- margin: 0 0 4px 0;
85
- }
86
-
87
- .alert-message {
88
- margin: 0;
89
- font-size: 13px;
90
- opacity: 0.95;
91
- }
92
-
93
- .alert-close {
94
- background: none;
95
- border: none;
96
- cursor: pointer;
97
- padding: 2px;
98
- opacity: 0.6;
99
- transition: opacity 0.2s;
100
- flex-shrink: 0;
101
- }
102
-
103
- .alert-close:hover {
104
- opacity: 1;
105
- }
106
- </style>
1
+ <!-- Error Alert Component with Severity Levels -->
2
+ <div class="error-alert alert" data-severity="{{ severity }}" role="alert" aria-live="assertive">
3
+ <!-- Icon -->
4
+ <div class="alert-icon" aria-hidden="true">
5
+ {{ if severity == 'critical' }}
6
+ <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
7
+ <path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z"/>
8
+ </svg>
9
+ {{ else if severity == 'error' }}
10
+ <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
11
+ <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z"/>
12
+ </svg>
13
+ {{ else if severity == 'warning' }}
14
+ <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
15
+ <path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92z"/>
16
+ </svg>
17
+ {{ else }}
18
+ <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
19
+ <path fill-rule="evenodd" d="M18 5v8a2 2 0 01-2 2h-5l-5 4v-4H4a2 2 0 01-2-2V5a2 2 0 012-2h12a2 2 0 012 2z"/>
20
+ </svg>
21
+ {{ end }}
22
+ </div>
23
+
24
+ <!-- Content -->
25
+ <div class="alert-content flex-1">
26
+ <h5 class="alert-title">{{ errorTitle }}</h5>
27
+ <p class="alert-message">{{ errorMessage }}</p>
28
+ </div>
29
+
30
+ <!-- Close Button -->
31
+ <button class="alert-close" data-action="dismiss" aria-label="Dismiss error">
32
+ <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
33
+ <path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"/>
34
+ </svg>
35
+ </button>
36
+ </div>
37
+
38
+ <style scoped>
39
+ .error-alert {
40
+ display: flex;
41
+ align-items: flex-start;
42
+ gap: 12px;
43
+ padding: 12px 16px;
44
+ border-radius: 4px;
45
+ border-left: 4px solid;
46
+ }
47
+
48
+ .error-alert[data-severity="critical"] {
49
+ background-color: #fee2e2;
50
+ border-left-color: #dc2626;
51
+ color: #7f1d1d;
52
+ }
53
+
54
+ .error-alert[data-severity="error"] {
55
+ background-color: #fee2e2;
56
+ border-left-color: #ef4444;
57
+ color: #7f1d1d;
58
+ }
59
+
60
+ .error-alert[data-severity="warning"] {
61
+ background-color: #fef3c7;
62
+ border-left-color: #f59e0b;
63
+ color: #78350f;
64
+ }
65
+
66
+ .error-alert[data-severity="info"] {
67
+ background-color: #dbeafe;
68
+ border-left-color: #3b82f6;
69
+ color: #1e3a8a;
70
+ }
71
+
72
+ .alert-icon {
73
+ flex-shrink: 0;
74
+ display: flex;
75
+ align-items: center;
76
+ }
77
+
78
+ .alert-content {
79
+ flex: 1;
80
+ }
81
+
82
+ .alert-title {
83
+ font-weight: 600;
84
+ margin: 0 0 4px 0;
85
+ }
86
+
87
+ .alert-message {
88
+ margin: 0;
89
+ font-size: 13px;
90
+ opacity: 0.95;
91
+ }
92
+
93
+ .alert-close {
94
+ background: none;
95
+ border: none;
96
+ cursor: pointer;
97
+ padding: 2px;
98
+ opacity: 0.6;
99
+ transition: opacity 0.2s;
100
+ flex-shrink: 0;
101
+ }
102
+
103
+ .alert-close:hover {
104
+ opacity: 1;
105
+ }
106
+ </style>
@@ -1,160 +1,160 @@
1
- <!-- Error History Timeline -->
2
- <div class="error-history-timeline card" role="region" aria-label="Error history timeline">
3
- <div class="card-header border-b pb-3 mb-3">
4
- <h4 class="font-semibold text-sm">Error History</h4>
5
- <p class="text-xs text-secondary mt-1">{{ totalErrors }} errors occurred</p>
6
- </div>
7
-
8
- <!-- Timeline -->
9
- <div class="timeline" role="list">
10
- {{ for error in errorHistory }}
11
- <div class="timeline-item" data-severity="{{ error.severity }}" role="listitem">
12
- <!-- Timeline Dot -->
13
- <div class="timeline-dot" aria-hidden="true"></div>
14
-
15
- <!-- Error Card -->
16
- <div class="timeline-content">
17
- <div class="flex items-start justify-between gap-2">
18
- <div>
19
- <h5 class="font-semibold text-sm">{{ error.type }}</h5>
20
- <p class="text-xs text-secondary">{{ error.time }} ({{ error.relativeTime }})</p>
21
- </div>
22
- <span class="badge badge-sm" data-severity="{{ error.severity }}">
23
- {{ error.severityLabel }}
24
- </span>
25
- </div>
26
-
27
- <p class="text-sm mt-2">{{ error.message }}</p>
28
-
29
- {{ if error.recovery }}
30
- <p class="text-xs text-green-600 mt-2">
31
- <svg class="w-3 h-3 inline mr-1" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
32
- <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"/>
33
- </svg>
34
- Recovered: {{ error.recovery }}
35
- </p>
36
- {{ end }}
37
- </div>
38
- </div>
39
- {{ end }}
40
- </div>
41
-
42
- <!-- Clear History Button -->
43
- <div class="mt-3 pt-3 border-t">
44
- <button class="btn btn-sm btn-tertiary" data-action="clear-history" aria-label="Clear error history">
45
- Clear History
46
- </button>
47
- </div>
48
- </div>
49
-
50
- <style scoped>
51
- .error-history-timeline {
52
- padding: 16px;
53
- max-height: 500px;
54
- overflow-y: auto;
55
- }
56
-
57
- .timeline {
58
- display: flex;
59
- flex-direction: column;
60
- gap: 0;
61
- list-style: none;
62
- margin: 0;
63
- padding: 0;
64
- position: relative;
65
- }
66
-
67
- .timeline::before {
68
- content: '';
69
- position: absolute;
70
- left: 11px;
71
- top: 0;
72
- bottom: 0;
73
- width: 2px;
74
- background-color: var(--color-border);
75
- }
76
-
77
- .timeline-item {
78
- position: relative;
79
- padding-left: 32px;
80
- padding-bottom: 16px;
81
- }
82
-
83
- .timeline-item:last-child {
84
- padding-bottom: 0;
85
- }
86
-
87
- .timeline-dot {
88
- position: absolute;
89
- left: 0;
90
- top: 2px;
91
- width: 24px;
92
- height: 24px;
93
- border-radius: 50%;
94
- background-color: var(--color-bg-primary);
95
- border: 3px solid var(--color-border);
96
- }
97
-
98
- .timeline-item[data-severity="critical"] .timeline-dot,
99
- .timeline-item[data-severity="error"] .timeline-dot {
100
- border-color: var(--color-error);
101
- background-color: #fee2e2;
102
- }
103
-
104
- .timeline-item[data-severity="warning"] .timeline-dot {
105
- border-color: var(--color-warning);
106
- background-color: #fef3c7;
107
- }
108
-
109
- .timeline-item[data-severity="info"] .timeline-dot {
110
- border-color: var(--color-primary);
111
- background-color: #dbeafe;
112
- }
113
-
114
- .timeline-content {
115
- background-color: var(--color-bg-secondary);
116
- border: 1px solid var(--color-border);
117
- border-radius: 4px;
118
- padding: 10px;
119
- }
120
-
121
- .badge-sm {
122
- padding: 2px 6px;
123
- font-size: 10px;
124
- }
125
-
126
- .badge[data-severity="error"] {
127
- background-color: #ef4444;
128
- color: white;
129
- }
130
-
131
- .badge[data-severity="critical"] {
132
- background-color: #dc2626;
133
- color: white;
134
- }
135
-
136
- .badge[data-severity="warning"] {
137
- background-color: #f59e0b;
138
- color: white;
139
- }
140
-
141
- .badge[data-severity="info"] {
142
- background-color: #3b82f6;
143
- color: white;
144
- }
145
-
146
- .btn-tertiary {
147
- padding: 6px 10px;
148
- font-size: 12px;
149
- background: none;
150
- border: 1px solid var(--color-primary);
151
- color: var(--color-primary);
152
- cursor: pointer;
153
- border-radius: 3px;
154
- transition: all 0.2s;
155
- }
156
-
157
- .btn-tertiary:hover {
158
- background-color: var(--color-primary-alpha);
159
- }
160
- </style>
1
+ <!-- Error History Timeline -->
2
+ <div class="error-history-timeline card" role="region" aria-label="Error history timeline">
3
+ <div class="card-header border-b pb-3 mb-3">
4
+ <h4 class="font-semibold text-sm">Error History</h4>
5
+ <p class="text-xs text-secondary mt-1">{{ totalErrors }} errors occurred</p>
6
+ </div>
7
+
8
+ <!-- Timeline -->
9
+ <div class="timeline" role="list">
10
+ {{ for error in errorHistory }}
11
+ <div class="timeline-item" data-severity="{{ error.severity }}" role="listitem">
12
+ <!-- Timeline Dot -->
13
+ <div class="timeline-dot" aria-hidden="true"></div>
14
+
15
+ <!-- Error Card -->
16
+ <div class="timeline-content">
17
+ <div class="flex items-start justify-between gap-2">
18
+ <div>
19
+ <h5 class="font-semibold text-sm">{{ error.type }}</h5>
20
+ <p class="text-xs text-secondary">{{ error.time }} ({{ error.relativeTime }})</p>
21
+ </div>
22
+ <span class="badge badge-sm" data-severity="{{ error.severity }}">
23
+ {{ error.severityLabel }}
24
+ </span>
25
+ </div>
26
+
27
+ <p class="text-sm mt-2">{{ error.message }}</p>
28
+
29
+ {{ if error.recovery }}
30
+ <p class="text-xs text-green-600 mt-2">
31
+ <svg class="w-3 h-3 inline mr-1" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
32
+ <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"/>
33
+ </svg>
34
+ Recovered: {{ error.recovery }}
35
+ </p>
36
+ {{ end }}
37
+ </div>
38
+ </div>
39
+ {{ end }}
40
+ </div>
41
+
42
+ <!-- Clear History Button -->
43
+ <div class="mt-3 pt-3 border-t">
44
+ <button class="btn btn-sm btn-tertiary" data-action="clear-history" aria-label="Clear error history">
45
+ Clear History
46
+ </button>
47
+ </div>
48
+ </div>
49
+
50
+ <style scoped>
51
+ .error-history-timeline {
52
+ padding: 16px;
53
+ max-height: 500px;
54
+ overflow-y: auto;
55
+ }
56
+
57
+ .timeline {
58
+ display: flex;
59
+ flex-direction: column;
60
+ gap: 0;
61
+ list-style: none;
62
+ margin: 0;
63
+ padding: 0;
64
+ position: relative;
65
+ }
66
+
67
+ .timeline::before {
68
+ content: '';
69
+ position: absolute;
70
+ left: 11px;
71
+ top: 0;
72
+ bottom: 0;
73
+ width: 2px;
74
+ background-color: var(--color-border);
75
+ }
76
+
77
+ .timeline-item {
78
+ position: relative;
79
+ padding-left: 32px;
80
+ padding-bottom: 16px;
81
+ }
82
+
83
+ .timeline-item:last-child {
84
+ padding-bottom: 0;
85
+ }
86
+
87
+ .timeline-dot {
88
+ position: absolute;
89
+ left: 0;
90
+ top: 2px;
91
+ width: 24px;
92
+ height: 24px;
93
+ border-radius: 50%;
94
+ background-color: var(--color-bg-primary);
95
+ border: 3px solid var(--color-border);
96
+ }
97
+
98
+ .timeline-item[data-severity="critical"] .timeline-dot,
99
+ .timeline-item[data-severity="error"] .timeline-dot {
100
+ border-color: var(--color-error);
101
+ background-color: #fee2e2;
102
+ }
103
+
104
+ .timeline-item[data-severity="warning"] .timeline-dot {
105
+ border-color: var(--color-warning);
106
+ background-color: #fef3c7;
107
+ }
108
+
109
+ .timeline-item[data-severity="info"] .timeline-dot {
110
+ border-color: var(--color-primary);
111
+ background-color: #dbeafe;
112
+ }
113
+
114
+ .timeline-content {
115
+ background-color: var(--color-bg-secondary);
116
+ border: 1px solid var(--color-border);
117
+ border-radius: 4px;
118
+ padding: 10px;
119
+ }
120
+
121
+ .badge-sm {
122
+ padding: 2px 6px;
123
+ font-size: 10px;
124
+ }
125
+
126
+ .badge[data-severity="error"] {
127
+ background-color: #ef4444;
128
+ color: white;
129
+ }
130
+
131
+ .badge[data-severity="critical"] {
132
+ background-color: #dc2626;
133
+ color: white;
134
+ }
135
+
136
+ .badge[data-severity="warning"] {
137
+ background-color: #f59e0b;
138
+ color: white;
139
+ }
140
+
141
+ .badge[data-severity="info"] {
142
+ background-color: #3b82f6;
143
+ color: white;
144
+ }
145
+
146
+ .btn-tertiary {
147
+ padding: 6px 10px;
148
+ font-size: 12px;
149
+ background: none;
150
+ border: 1px solid var(--color-primary);
151
+ color: var(--color-primary);
152
+ cursor: pointer;
153
+ border-radius: 3px;
154
+ transition: all 0.2s;
155
+ }
156
+
157
+ .btn-tertiary:hover {
158
+ background-color: var(--color-primary-alpha);
159
+ }
160
+ </style>