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,107 +1,107 @@
1
- <!-- Git Branch and Remote Display -->
2
- <div class="git-branch-remote card" role="region" aria-label="Git branch and remote information">
3
- <!-- Current Branch -->
4
- <div class="mb-3 pb-3 border-b">
5
- <h5 class="font-semibold text-sm mb-2">Current Branch</h5>
6
- <div class="flex items-center gap-2">
7
- <svg class="w-4 h-4 text-primary" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
8
- <path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"/>
9
- </svg>
10
- <div>
11
- <p class="font-mono font-semibold">{{ currentBranch }}</p>
12
- <p class="text-xs text-secondary">{{ branchDescription }}</p>
13
- </div>
14
- </div>
15
- </div>
16
-
17
- <!-- Remote Branches -->
18
- <div class="mb-3 pb-3 border-b">
19
- <h5 class="font-semibold text-sm mb-2">Remotes</h5>
20
- <div class="space-y-2">
21
- {{ for remote in remotes }}
22
- <div class="flex items-center justify-between text-sm">
23
- <div class="flex items-center gap-2">
24
- <span class="badge badge-sm">{{ remote.name }}</span>
25
- <code class="font-mono text-xs">{{ remote.url }}</code>
26
- </div>
27
- <span class="text-secondary text-xs">{{ remote.status }}</span>
28
- </div>
29
- {{ end }}
30
- </div>
31
- </div>
32
-
33
- <!-- Tracking Status -->
34
- <div class="mb-3 pb-3 border-b">
35
- <h5 class="font-semibold text-sm mb-2">Tracking Status</h5>
36
- <div class="grid grid-cols-2 gap-3 text-sm">
37
- <div class="flex items-center gap-2">
38
- <svg class="w-4 h-4 text-green-600" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
39
- <path fill-rule="evenodd" d="M12 2a1 1 0 011 1v6.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 111.414-1.414L11 9.586V3a1 1 0 011-1z"/>
40
- </svg>
41
- <span><span class="font-semibold">{{ aheadCount }}</span> ahead</span>
42
- </div>
43
- <div class="flex items-center gap-2">
44
- <svg class="w-4 h-4 text-red-600" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
45
- <path fill-rule="evenodd" d="M8 18a1 1 0 001-1v-6.586l1.293 1.293a1 1 0 001.414-1.414l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 101.414 1.414L7 10.414V17a1 1 0 001 1z"/>
46
- </svg>
47
- <span><span class="font-semibold">{{ behindCount }}</span> behind</span>
48
- </div>
49
- </div>
50
- </div>
51
-
52
- <!-- Quick Actions -->
53
- <div class="flex gap-2">
54
- <button class="btn btn-sm" data-action="checkout-branch" aria-label="Switch branch">
55
- Checkout
56
- </button>
57
- <button class="btn btn-sm" data-action="merge" aria-label="Merge branch">
58
- Merge
59
- </button>
60
- <button class="btn btn-sm" data-action="rebase" aria-label="Rebase branch">
61
- Rebase
62
- </button>
63
- </div>
64
- </div>
65
-
66
- <style scoped>
67
- .git-branch-remote {
68
- padding: 16px;
69
- }
70
-
71
- .badge {
72
- background-color: var(--color-primary);
73
- color: white;
74
- padding: 2px 6px;
75
- border-radius: 3px;
76
- font-size: 10px;
77
- font-weight: 600;
78
- }
79
-
80
- .badge-sm {
81
- padding: 2px 6px;
82
- }
83
-
84
- .font-mono {
85
- font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
86
- }
87
-
88
- .btn {
89
- padding: 6px 10px;
90
- background-color: var(--color-primary);
91
- color: white;
92
- border: none;
93
- border-radius: 3px;
94
- font-size: 12px;
95
- cursor: pointer;
96
- transition: all 0.2s;
97
- }
98
-
99
- .btn:hover {
100
- background-color: var(--color-primary-dark);
101
- }
102
-
103
- .btn-sm {
104
- padding: 4px 8px;
105
- font-size: 11px;
106
- }
107
- </style>
1
+ <!-- Git Branch and Remote Display -->
2
+ <div class="git-branch-remote card" role="region" aria-label="Git branch and remote information">
3
+ <!-- Current Branch -->
4
+ <div class="mb-3 pb-3 border-b">
5
+ <h5 class="font-semibold text-sm mb-2">Current Branch</h5>
6
+ <div class="flex items-center gap-2">
7
+ <svg class="w-4 h-4 text-primary" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
8
+ <path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"/>
9
+ </svg>
10
+ <div>
11
+ <p class="font-mono font-semibold">{{ currentBranch }}</p>
12
+ <p class="text-xs text-secondary">{{ branchDescription }}</p>
13
+ </div>
14
+ </div>
15
+ </div>
16
+
17
+ <!-- Remote Branches -->
18
+ <div class="mb-3 pb-3 border-b">
19
+ <h5 class="font-semibold text-sm mb-2">Remotes</h5>
20
+ <div class="space-y-2">
21
+ {{ for remote in remotes }}
22
+ <div class="flex items-center justify-between text-sm">
23
+ <div class="flex items-center gap-2">
24
+ <span class="badge badge-sm">{{ remote.name }}</span>
25
+ <code class="font-mono text-xs">{{ remote.url }}</code>
26
+ </div>
27
+ <span class="text-secondary text-xs">{{ remote.status }}</span>
28
+ </div>
29
+ {{ end }}
30
+ </div>
31
+ </div>
32
+
33
+ <!-- Tracking Status -->
34
+ <div class="mb-3 pb-3 border-b">
35
+ <h5 class="font-semibold text-sm mb-2">Tracking Status</h5>
36
+ <div class="grid grid-cols-2 gap-3 text-sm">
37
+ <div class="flex items-center gap-2">
38
+ <svg class="w-4 h-4 text-green-600" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
39
+ <path fill-rule="evenodd" d="M12 2a1 1 0 011 1v6.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 111.414-1.414L11 9.586V3a1 1 0 011-1z"/>
40
+ </svg>
41
+ <span><span class="font-semibold">{{ aheadCount }}</span> ahead</span>
42
+ </div>
43
+ <div class="flex items-center gap-2">
44
+ <svg class="w-4 h-4 text-red-600" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
45
+ <path fill-rule="evenodd" d="M8 18a1 1 0 001-1v-6.586l1.293 1.293a1 1 0 001.414-1.414l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 101.414 1.414L7 10.414V17a1 1 0 001 1z"/>
46
+ </svg>
47
+ <span><span class="font-semibold">{{ behindCount }}</span> behind</span>
48
+ </div>
49
+ </div>
50
+ </div>
51
+
52
+ <!-- Quick Actions -->
53
+ <div class="flex gap-2">
54
+ <button class="btn btn-sm" data-action="checkout-branch" aria-label="Switch branch">
55
+ Checkout
56
+ </button>
57
+ <button class="btn btn-sm" data-action="merge" aria-label="Merge branch">
58
+ Merge
59
+ </button>
60
+ <button class="btn btn-sm" data-action="rebase" aria-label="Rebase branch">
61
+ Rebase
62
+ </button>
63
+ </div>
64
+ </div>
65
+
66
+ <style scoped>
67
+ .git-branch-remote {
68
+ padding: 16px;
69
+ }
70
+
71
+ .badge {
72
+ background-color: var(--color-primary);
73
+ color: white;
74
+ padding: 2px 6px;
75
+ border-radius: 3px;
76
+ font-size: 10px;
77
+ font-weight: 600;
78
+ }
79
+
80
+ .badge-sm {
81
+ padding: 2px 6px;
82
+ }
83
+
84
+ .font-mono {
85
+ font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
86
+ }
87
+
88
+ .btn {
89
+ padding: 6px 10px;
90
+ background-color: var(--color-primary);
91
+ color: white;
92
+ border: none;
93
+ border-radius: 3px;
94
+ font-size: 12px;
95
+ cursor: pointer;
96
+ transition: all 0.2s;
97
+ }
98
+
99
+ .btn:hover {
100
+ background-color: var(--color-primary-dark);
101
+ }
102
+
103
+ .btn-sm {
104
+ padding: 4px 8px;
105
+ font-size: 11px;
106
+ }
107
+ </style>
@@ -1,101 +1,101 @@
1
- <!-- Git Diff List for Multiple Files -->
2
- <div class="git-diff-list card" role="region" aria-label="Git diffs for changed files">
3
- <div class="card-header border-b pb-3 mb-3">
4
- <h4 class="font-semibold">{{ fileCount }} Files Changed</h4>
5
- </div>
6
-
7
- <!-- Diff Items -->
8
- <div class="diff-items space-y-3">
9
- {{ for file in diffs }}
10
- <details class="diff-item">
11
- <summary class="cursor-pointer font-medium py-2 px-3 bg-secondary hover:bg-hover-bg rounded flex items-center justify-between">
12
- <div class="flex items-center gap-2 flex-1 min-w-0">
13
- <svg class="w-4 h-4 chevron" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
14
- <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/>
15
- </svg>
16
- <span class="truncate">{{ file.name }}</span>
17
- </div>
18
- <div class="flex gap-1 flex-shrink-0">
19
- <span class="text-green-600 text-xs">+{{ file.additions }}</span>
20
- <span class="text-red-600 text-xs">-{{ file.deletions }}</span>
21
- </div>
22
- </summary>
23
-
24
- <!-- Diff Content -->
25
- <div class="diff-content p-3 mt-2 bg-code rounded text-xs">
26
- <pre><code class="language-diff">{{ file.diff }}</code></pre>
27
- </div>
28
- </details>
29
- {{ end }}
30
- </div>
31
- </div>
32
-
33
- <style scoped>
34
- .git-diff-list {
35
- padding: 16px;
36
- max-height: 600px;
37
- overflow-y: auto;
38
- }
39
-
40
- .diff-item {
41
- border: 1px solid var(--color-border);
42
- border-radius: 4px;
43
- overflow: hidden;
44
- }
45
-
46
- .diff-item[open] summary {
47
- background-color: var(--color-bg-hover);
48
- border-bottom: 1px solid var(--color-border);
49
- }
50
-
51
- summary {
52
- list-style: none;
53
- }
54
-
55
- summary::-webkit-details-marker {
56
- display: none;
57
- }
58
-
59
- .chevron {
60
- transition: transform 0.2s;
61
- flex-shrink: 0;
62
- }
63
-
64
- details[open] .chevron {
65
- transform: rotate(180deg);
66
- }
67
-
68
- .diff-content {
69
- background-color: var(--color-bg-code);
70
- border: 1px solid var(--color-border);
71
- border-radius: 3px;
72
- max-height: 300px;
73
- overflow: auto;
74
- margin-top: 8px;
75
- }
76
-
77
- .diff-content pre {
78
- margin: 0;
79
- padding: 0;
80
- font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
81
- line-height: 1.5;
82
- }
83
-
84
- /* Diff syntax highlighting */
85
- .diff-content code {
86
- color: var(--color-text-terminal);
87
- }
88
-
89
- .diff-added {
90
- color: #10b981;
91
- }
92
-
93
- .diff-removed {
94
- color: #ef4444;
95
- }
96
-
97
- .diff-header {
98
- color: #3b82f6;
99
- font-weight: 600;
100
- }
101
- </style>
1
+ <!-- Git Diff List for Multiple Files -->
2
+ <div class="git-diff-list card" role="region" aria-label="Git diffs for changed files">
3
+ <div class="card-header border-b pb-3 mb-3">
4
+ <h4 class="font-semibold">{{ fileCount }} Files Changed</h4>
5
+ </div>
6
+
7
+ <!-- Diff Items -->
8
+ <div class="diff-items space-y-3">
9
+ {{ for file in diffs }}
10
+ <details class="diff-item">
11
+ <summary class="cursor-pointer font-medium py-2 px-3 bg-secondary hover:bg-hover-bg rounded flex items-center justify-between">
12
+ <div class="flex items-center gap-2 flex-1 min-w-0">
13
+ <svg class="w-4 h-4 chevron" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
14
+ <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/>
15
+ </svg>
16
+ <span class="truncate">{{ file.name }}</span>
17
+ </div>
18
+ <div class="flex gap-1 flex-shrink-0">
19
+ <span class="text-green-600 text-xs">+{{ file.additions }}</span>
20
+ <span class="text-red-600 text-xs">-{{ file.deletions }}</span>
21
+ </div>
22
+ </summary>
23
+
24
+ <!-- Diff Content -->
25
+ <div class="diff-content p-3 mt-2 bg-code rounded text-xs">
26
+ <pre><code class="language-diff">{{ file.diff }}</code></pre>
27
+ </div>
28
+ </details>
29
+ {{ end }}
30
+ </div>
31
+ </div>
32
+
33
+ <style scoped>
34
+ .git-diff-list {
35
+ padding: 16px;
36
+ max-height: 600px;
37
+ overflow-y: auto;
38
+ }
39
+
40
+ .diff-item {
41
+ border: 1px solid var(--color-border);
42
+ border-radius: 4px;
43
+ overflow: hidden;
44
+ }
45
+
46
+ .diff-item[open] summary {
47
+ background-color: var(--color-bg-hover);
48
+ border-bottom: 1px solid var(--color-border);
49
+ }
50
+
51
+ summary {
52
+ list-style: none;
53
+ }
54
+
55
+ summary::-webkit-details-marker {
56
+ display: none;
57
+ }
58
+
59
+ .chevron {
60
+ transition: transform 0.2s;
61
+ flex-shrink: 0;
62
+ }
63
+
64
+ details[open] .chevron {
65
+ transform: rotate(180deg);
66
+ }
67
+
68
+ .diff-content {
69
+ background-color: var(--color-bg-code);
70
+ border: 1px solid var(--color-border);
71
+ border-radius: 3px;
72
+ max-height: 300px;
73
+ overflow: auto;
74
+ margin-top: 8px;
75
+ }
76
+
77
+ .diff-content pre {
78
+ margin: 0;
79
+ padding: 0;
80
+ font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
81
+ line-height: 1.5;
82
+ }
83
+
84
+ /* Diff syntax highlighting */
85
+ .diff-content code {
86
+ color: var(--color-text-terminal);
87
+ }
88
+
89
+ .diff-added {
90
+ color: #10b981;
91
+ }
92
+
93
+ .diff-removed {
94
+ color: #ef4444;
95
+ }
96
+
97
+ .diff-header {
98
+ color: #3b82f6;
99
+ font-weight: 600;
100
+ }
101
+ </style>