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.
- package/CLAUDE.md +280 -280
- package/IPFS_DOWNLOADER.md +277 -277
- package/TASK_2C_COMPLETION.md +334 -334
- package/bin/gmgui.cjs +54 -54
- package/build-portable.js +3 -42
- package/database.js +1422 -1406
- package/lib/claude-runner.js +1130 -1130
- package/lib/ipfs-downloader.js +459 -459
- package/lib/speech.js +152 -152
- package/package.json +1 -1
- package/readme.md +76 -76
- package/server.js +3787 -3794
- package/setup-npm-token.sh +68 -68
- package/static/app.js +773 -773
- package/static/event-rendering-showcase.html +708 -708
- package/static/index.html +3178 -3180
- package/static/js/agent-auth.js +298 -298
- package/static/js/audio-recorder-processor.js +18 -18
- package/static/js/client.js +2656 -2656
- package/static/js/conversations.js +583 -583
- package/static/js/dialogs.js +267 -267
- package/static/js/event-consolidator.js +101 -101
- package/static/js/event-filter.js +311 -311
- package/static/js/event-processor.js +452 -452
- package/static/js/features.js +413 -413
- package/static/js/kalman-filter.js +67 -67
- package/static/js/progress-dialog.js +130 -130
- package/static/js/script-runner.js +219 -219
- package/static/js/streaming-renderer.js +2123 -2120
- package/static/js/syntax-highlighter.js +269 -269
- package/static/js/tts-websocket-handler.js +152 -152
- package/static/js/ui-components.js +431 -431
- package/static/js/voice.js +849 -849
- package/static/js/websocket-manager.js +596 -596
- package/static/templates/INDEX.html +465 -465
- package/static/templates/README.md +190 -190
- package/static/templates/agent-capabilities.html +56 -56
- package/static/templates/agent-metadata-panel.html +44 -44
- package/static/templates/agent-status-badge.html +30 -30
- package/static/templates/code-annotation-panel.html +155 -155
- package/static/templates/code-suggestion-panel.html +184 -184
- package/static/templates/command-header.html +77 -77
- package/static/templates/command-output-scrollable.html +118 -118
- package/static/templates/elapsed-time.html +54 -54
- package/static/templates/error-alert.html +106 -106
- package/static/templates/error-history-timeline.html +160 -160
- package/static/templates/error-recovery-options.html +109 -109
- package/static/templates/error-stack-trace.html +95 -95
- package/static/templates/error-summary.html +80 -80
- package/static/templates/event-counter.html +48 -48
- package/static/templates/execution-actions.html +97 -97
- package/static/templates/execution-progress-bar.html +80 -80
- package/static/templates/execution-stepper.html +120 -120
- package/static/templates/file-breadcrumb.html +118 -118
- package/static/templates/file-diff-viewer.html +121 -121
- package/static/templates/file-metadata.html +133 -133
- package/static/templates/file-read-panel.html +66 -66
- package/static/templates/file-write-panel.html +120 -120
- package/static/templates/git-branch-remote.html +107 -107
- package/static/templates/git-diff-list.html +101 -101
- package/static/templates/git-log-visualization.html +153 -153
- package/static/templates/git-status-panel.html +115 -115
- package/static/templates/quality-metrics-display.html +170 -170
- package/static/templates/terminal-output-panel.html +87 -87
- package/static/templates/test-results-display.html +144 -144
- package/static/theme.js +72 -72
- package/test-download-progress.js +223 -223
- package/test-websocket-broadcast.js +147 -147
- package/tests/ipfs-downloader.test.js +370 -370
|
@@ -1,133 +1,133 @@
|
|
|
1
|
-
<!-- File Metadata Display -->
|
|
2
|
-
<div class="file-metadata" role="region" aria-label="File metadata">
|
|
3
|
-
<div class="metadata-grid">
|
|
4
|
-
<!-- Permissions -->
|
|
5
|
-
<div class="metadata-item">
|
|
6
|
-
<span class="metadata-label">Permissions</span>
|
|
7
|
-
<code class="metadata-value font-mono">{{ permissions }}</code>
|
|
8
|
-
</div>
|
|
9
|
-
|
|
10
|
-
<!-- Size -->
|
|
11
|
-
<div class="metadata-item">
|
|
12
|
-
<span class="metadata-label">Size</span>
|
|
13
|
-
<span class="metadata-value">{{ fileSize }} bytes</span>
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
<!-- Modified Date -->
|
|
17
|
-
<div class="metadata-item">
|
|
18
|
-
<span class="metadata-label">Modified</span>
|
|
19
|
-
<span class="metadata-value" title="{{ modifiedISO }}">{{ modifiedHuman }}</span>
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
<!-- Created Date -->
|
|
23
|
-
<div class="metadata-item">
|
|
24
|
-
<span class="metadata-label">Created</span>
|
|
25
|
-
<span class="metadata-value" title="{{ createdISO }}">{{ createdHuman }}</span>
|
|
26
|
-
</div>
|
|
27
|
-
|
|
28
|
-
<!-- Encoding -->
|
|
29
|
-
<div class="metadata-item">
|
|
30
|
-
<span class="metadata-label">Encoding</span>
|
|
31
|
-
<span class="metadata-value">{{ encoding }}</span>
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<!-- Language -->
|
|
35
|
-
<div class="metadata-item">
|
|
36
|
-
<span class="metadata-label">Language</span>
|
|
37
|
-
<span class="metadata-value">{{ language }}</span>
|
|
38
|
-
</div>
|
|
39
|
-
|
|
40
|
-
<!-- Lines of Code -->
|
|
41
|
-
<div class="metadata-item">
|
|
42
|
-
<span class="metadata-label">Lines</span>
|
|
43
|
-
<span class="metadata-value">{{ lineCount }}</span>
|
|
44
|
-
</div>
|
|
45
|
-
|
|
46
|
-
<!-- Owner -->
|
|
47
|
-
<div class="metadata-item">
|
|
48
|
-
<span class="metadata-label">Owner</span>
|
|
49
|
-
<span class="metadata-value">{{ owner }}:{{ group }}</span>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
|
|
53
|
-
<!-- Actions -->
|
|
54
|
-
<div class="metadata-actions mt-3 pt-3 border-t space-y-2">
|
|
55
|
-
<button class="metadata-action-btn" data-action="reveal-path" aria-label="Reveal in file explorer">
|
|
56
|
-
<svg class="w-3 h-3" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
|
|
57
|
-
<path d="M2 6a2 2 0 012-2h12a2 2 0 012 2v8a2 2 0 01-2 2H4a2 2 0 01-2-2V6zm4 2a1 1 0 100 2 1 1 0 000-2z"/>
|
|
58
|
-
</svg>
|
|
59
|
-
Show in Explorer
|
|
60
|
-
</button>
|
|
61
|
-
<button class="metadata-action-btn" data-action="copy-path" aria-label="Copy file path">
|
|
62
|
-
<svg class="w-3 h-3" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
|
|
63
|
-
<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"/>
|
|
64
|
-
</svg>
|
|
65
|
-
Copy Path
|
|
66
|
-
</button>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
|
|
70
|
-
<style scoped>
|
|
71
|
-
.file-metadata {
|
|
72
|
-
padding: 12px;
|
|
73
|
-
background: var(--color-bg-secondary);
|
|
74
|
-
border-radius: 4px;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.metadata-grid {
|
|
78
|
-
display: grid;
|
|
79
|
-
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
80
|
-
gap: 12px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.metadata-item {
|
|
84
|
-
display: flex;
|
|
85
|
-
flex-direction: column;
|
|
86
|
-
gap: 4px;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.metadata-label {
|
|
90
|
-
font-size: 11px;
|
|
91
|
-
font-weight: 600;
|
|
92
|
-
text-transform: uppercase;
|
|
93
|
-
color: var(--color-text-secondary);
|
|
94
|
-
letter-spacing: 0.5px;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.metadata-value {
|
|
98
|
-
font-size: 13px;
|
|
99
|
-
color: var(--color-text-primary);
|
|
100
|
-
word-break: break-word;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.font-mono {
|
|
104
|
-
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.metadata-actions {
|
|
108
|
-
display: flex;
|
|
109
|
-
flex-direction: column;
|
|
110
|
-
gap: 8px;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.metadata-action-btn {
|
|
114
|
-
display: inline-flex;
|
|
115
|
-
align-items: center;
|
|
116
|
-
gap: 6px;
|
|
117
|
-
padding: 6px 10px;
|
|
118
|
-
background-color: var(--color-bg-primary);
|
|
119
|
-
border: 1px solid var(--color-border);
|
|
120
|
-
border-radius: 3px;
|
|
121
|
-
font-size: 12px;
|
|
122
|
-
cursor: pointer;
|
|
123
|
-
transition: all 0.2s;
|
|
124
|
-
width: 100%;
|
|
125
|
-
justify-content: flex-start;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.metadata-action-btn:hover {
|
|
129
|
-
background-color: var(--color-bg-hover);
|
|
130
|
-
border-color: var(--color-primary);
|
|
131
|
-
color: var(--color-primary);
|
|
132
|
-
}
|
|
133
|
-
</style>
|
|
1
|
+
<!-- File Metadata Display -->
|
|
2
|
+
<div class="file-metadata" role="region" aria-label="File metadata">
|
|
3
|
+
<div class="metadata-grid">
|
|
4
|
+
<!-- Permissions -->
|
|
5
|
+
<div class="metadata-item">
|
|
6
|
+
<span class="metadata-label">Permissions</span>
|
|
7
|
+
<code class="metadata-value font-mono">{{ permissions }}</code>
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
<!-- Size -->
|
|
11
|
+
<div class="metadata-item">
|
|
12
|
+
<span class="metadata-label">Size</span>
|
|
13
|
+
<span class="metadata-value">{{ fileSize }} bytes</span>
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<!-- Modified Date -->
|
|
17
|
+
<div class="metadata-item">
|
|
18
|
+
<span class="metadata-label">Modified</span>
|
|
19
|
+
<span class="metadata-value" title="{{ modifiedISO }}">{{ modifiedHuman }}</span>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<!-- Created Date -->
|
|
23
|
+
<div class="metadata-item">
|
|
24
|
+
<span class="metadata-label">Created</span>
|
|
25
|
+
<span class="metadata-value" title="{{ createdISO }}">{{ createdHuman }}</span>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<!-- Encoding -->
|
|
29
|
+
<div class="metadata-item">
|
|
30
|
+
<span class="metadata-label">Encoding</span>
|
|
31
|
+
<span class="metadata-value">{{ encoding }}</span>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<!-- Language -->
|
|
35
|
+
<div class="metadata-item">
|
|
36
|
+
<span class="metadata-label">Language</span>
|
|
37
|
+
<span class="metadata-value">{{ language }}</span>
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
<!-- Lines of Code -->
|
|
41
|
+
<div class="metadata-item">
|
|
42
|
+
<span class="metadata-label">Lines</span>
|
|
43
|
+
<span class="metadata-value">{{ lineCount }}</span>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<!-- Owner -->
|
|
47
|
+
<div class="metadata-item">
|
|
48
|
+
<span class="metadata-label">Owner</span>
|
|
49
|
+
<span class="metadata-value">{{ owner }}:{{ group }}</span>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<!-- Actions -->
|
|
54
|
+
<div class="metadata-actions mt-3 pt-3 border-t space-y-2">
|
|
55
|
+
<button class="metadata-action-btn" data-action="reveal-path" aria-label="Reveal in file explorer">
|
|
56
|
+
<svg class="w-3 h-3" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
|
|
57
|
+
<path d="M2 6a2 2 0 012-2h12a2 2 0 012 2v8a2 2 0 01-2 2H4a2 2 0 01-2-2V6zm4 2a1 1 0 100 2 1 1 0 000-2z"/>
|
|
58
|
+
</svg>
|
|
59
|
+
Show in Explorer
|
|
60
|
+
</button>
|
|
61
|
+
<button class="metadata-action-btn" data-action="copy-path" aria-label="Copy file path">
|
|
62
|
+
<svg class="w-3 h-3" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
|
|
63
|
+
<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"/>
|
|
64
|
+
</svg>
|
|
65
|
+
Copy Path
|
|
66
|
+
</button>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
|
|
70
|
+
<style scoped>
|
|
71
|
+
.file-metadata {
|
|
72
|
+
padding: 12px;
|
|
73
|
+
background: var(--color-bg-secondary);
|
|
74
|
+
border-radius: 4px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.metadata-grid {
|
|
78
|
+
display: grid;
|
|
79
|
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
80
|
+
gap: 12px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.metadata-item {
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
gap: 4px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.metadata-label {
|
|
90
|
+
font-size: 11px;
|
|
91
|
+
font-weight: 600;
|
|
92
|
+
text-transform: uppercase;
|
|
93
|
+
color: var(--color-text-secondary);
|
|
94
|
+
letter-spacing: 0.5px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.metadata-value {
|
|
98
|
+
font-size: 13px;
|
|
99
|
+
color: var(--color-text-primary);
|
|
100
|
+
word-break: break-word;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.font-mono {
|
|
104
|
+
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.metadata-actions {
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
gap: 8px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.metadata-action-btn {
|
|
114
|
+
display: inline-flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
gap: 6px;
|
|
117
|
+
padding: 6px 10px;
|
|
118
|
+
background-color: var(--color-bg-primary);
|
|
119
|
+
border: 1px solid var(--color-border);
|
|
120
|
+
border-radius: 3px;
|
|
121
|
+
font-size: 12px;
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
transition: all 0.2s;
|
|
124
|
+
width: 100%;
|
|
125
|
+
justify-content: flex-start;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.metadata-action-btn:hover {
|
|
129
|
+
background-color: var(--color-bg-hover);
|
|
130
|
+
border-color: var(--color-primary);
|
|
131
|
+
color: var(--color-primary);
|
|
132
|
+
}
|
|
133
|
+
</style>
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
<!-- File Read Operation Display -->
|
|
2
|
-
<div class="file-read-panel card" role="region" aria-label="File read operation: {{ filePath }}">
|
|
3
|
-
<div class="card-header flex items-start justify-between gap-3 mb-3 pb-3 border-b">
|
|
4
|
-
<div class="flex items-center gap-2 flex-1 min-w-0">
|
|
5
|
-
<svg class="w-4 h-4 text-primary flex-shrink-0" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
|
|
6
|
-
<path d="M5.5 13a3 3 0 01.369-1.618l1.83-1.83a3 3 0 015.604 0l.83 1.83A3 3 0 0113.5 13H11V9.413l1.293 1.293a1 1 0 001.414-1.414l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 001.414 1.414L9 9.414V13H5.5z"/>
|
|
7
|
-
</svg>
|
|
8
|
-
<div class="flex-1 min-w-0">
|
|
9
|
-
<h4 class="font-semibold text-sm truncate">{{ fileName }}</h4>
|
|
10
|
-
<p class="text-xs text-secondary truncate" title="{{ filePath }}">{{ filePath }}</p>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
|
|
14
|
-
<div class="flex items-center gap-2 flex-shrink-0">
|
|
15
|
-
<span class="badge badge-sm">Read</span>
|
|
16
|
-
<span class="badge badge-sm" aria-label="File size: {{ fileSize }}">{{ fileSizeFormatted }}</span>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
<!-- File Metadata -->
|
|
21
|
-
<div class="text-xs text-secondary mb-3 pb-3 border-b space-y-1">
|
|
22
|
-
<p><span class="font-mono">{{ fileEncoding }}</span> • {{ lastModified }}</p>
|
|
23
|
-
</div>
|
|
24
|
-
|
|
25
|
-
<!-- Code Block with Syntax Highlighting -->
|
|
26
|
-
<pre class="code-block" role="region" aria-label="File content"><code class="language-{{ languageClass }}" data-line-count="{{ lineCount }}">{{ fileContent }}</code></pre>
|
|
27
|
-
|
|
28
|
-
<!-- Action Buttons -->
|
|
29
|
-
<div class="flex gap-2 mt-3 pt-3 border-t">
|
|
30
|
-
<button class="btn btn-sm btn-tertiary" data-action="copy" aria-label="Copy file content">
|
|
31
|
-
<svg class="w-3 h-3" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
|
|
32
|
-
<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"/>
|
|
33
|
-
</svg>
|
|
34
|
-
Copy
|
|
35
|
-
</button>
|
|
36
|
-
<button class="btn btn-sm btn-tertiary" data-action="download" aria-label="Download file">
|
|
37
|
-
<svg class="w-3 h-3" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
|
|
38
|
-
<path d="M2 6a2 2 0 012-2h12a2 2 0 012 2v8a2 2 0 01-2 2H4a2 2 0 01-2-2V6zm14 1a1 1 0 11-2 0 1 1 0 012 0z"/>
|
|
39
|
-
</svg>
|
|
40
|
-
Download
|
|
41
|
-
</button>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
<style scoped>
|
|
46
|
-
.file-read-panel {
|
|
47
|
-
padding: 16px;
|
|
48
|
-
background: var(--color-bg-primary);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.code-block {
|
|
52
|
-
background-color: var(--color-bg-code);
|
|
53
|
-
border: 1px solid var(--color-border);
|
|
54
|
-
border-radius: 4px;
|
|
55
|
-
padding: 12px;
|
|
56
|
-
overflow-x: auto;
|
|
57
|
-
font-size: 12px;
|
|
58
|
-
line-height: 1.5;
|
|
59
|
-
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.btn-sm {
|
|
63
|
-
padding: 4px 8px;
|
|
64
|
-
font-size: 11px;
|
|
65
|
-
}
|
|
66
|
-
</style>
|
|
1
|
+
<!-- File Read Operation Display -->
|
|
2
|
+
<div class="file-read-panel card" role="region" aria-label="File read operation: {{ filePath }}">
|
|
3
|
+
<div class="card-header flex items-start justify-between gap-3 mb-3 pb-3 border-b">
|
|
4
|
+
<div class="flex items-center gap-2 flex-1 min-w-0">
|
|
5
|
+
<svg class="w-4 h-4 text-primary flex-shrink-0" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
|
|
6
|
+
<path d="M5.5 13a3 3 0 01.369-1.618l1.83-1.83a3 3 0 015.604 0l.83 1.83A3 3 0 0113.5 13H11V9.413l1.293 1.293a1 1 0 001.414-1.414l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 001.414 1.414L9 9.414V13H5.5z"/>
|
|
7
|
+
</svg>
|
|
8
|
+
<div class="flex-1 min-w-0">
|
|
9
|
+
<h4 class="font-semibold text-sm truncate">{{ fileName }}</h4>
|
|
10
|
+
<p class="text-xs text-secondary truncate" title="{{ filePath }}">{{ filePath }}</p>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<div class="flex items-center gap-2 flex-shrink-0">
|
|
15
|
+
<span class="badge badge-sm">Read</span>
|
|
16
|
+
<span class="badge badge-sm" aria-label="File size: {{ fileSize }}">{{ fileSizeFormatted }}</span>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<!-- File Metadata -->
|
|
21
|
+
<div class="text-xs text-secondary mb-3 pb-3 border-b space-y-1">
|
|
22
|
+
<p><span class="font-mono">{{ fileEncoding }}</span> • {{ lastModified }}</p>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<!-- Code Block with Syntax Highlighting -->
|
|
26
|
+
<pre class="code-block" role="region" aria-label="File content"><code class="language-{{ languageClass }}" data-line-count="{{ lineCount }}">{{ fileContent }}</code></pre>
|
|
27
|
+
|
|
28
|
+
<!-- Action Buttons -->
|
|
29
|
+
<div class="flex gap-2 mt-3 pt-3 border-t">
|
|
30
|
+
<button class="btn btn-sm btn-tertiary" data-action="copy" aria-label="Copy file content">
|
|
31
|
+
<svg class="w-3 h-3" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
|
|
32
|
+
<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"/>
|
|
33
|
+
</svg>
|
|
34
|
+
Copy
|
|
35
|
+
</button>
|
|
36
|
+
<button class="btn btn-sm btn-tertiary" data-action="download" aria-label="Download file">
|
|
37
|
+
<svg class="w-3 h-3" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
|
|
38
|
+
<path d="M2 6a2 2 0 012-2h12a2 2 0 012 2v8a2 2 0 01-2 2H4a2 2 0 01-2-2V6zm14 1a1 1 0 11-2 0 1 1 0 012 0z"/>
|
|
39
|
+
</svg>
|
|
40
|
+
Download
|
|
41
|
+
</button>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<style scoped>
|
|
46
|
+
.file-read-panel {
|
|
47
|
+
padding: 16px;
|
|
48
|
+
background: var(--color-bg-primary);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.code-block {
|
|
52
|
+
background-color: var(--color-bg-code);
|
|
53
|
+
border: 1px solid var(--color-border);
|
|
54
|
+
border-radius: 4px;
|
|
55
|
+
padding: 12px;
|
|
56
|
+
overflow-x: auto;
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
line-height: 1.5;
|
|
59
|
+
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.btn-sm {
|
|
63
|
+
padding: 4px 8px;
|
|
64
|
+
font-size: 11px;
|
|
65
|
+
}
|
|
66
|
+
</style>
|
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
<!-- File Write Operation Display with Before/After Comparison -->
|
|
2
|
-
<div class="file-write-panel card" role="region" aria-label="File write operation: {{ filePath }}">
|
|
3
|
-
<div class="card-header flex items-start justify-between gap-3 mb-3 pb-3 border-b">
|
|
4
|
-
<div class="flex items-center gap-2 flex-1 min-w-0">
|
|
5
|
-
<svg class="w-4 h-4 text-primary flex-shrink-0" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
|
|
6
|
-
<path d="M11 3a1 1 0 10-2 0v1a1 1 0 102 0V3zM15.657 5.757a1 1 0 00-1.414-1.414l-.707.707a1 1 0 001.414 1.414l.707-.707zM18 10a1 1 0 01-1 1h-1a1 1 0 110-2h1a1 1 0 011 1zM15.657 14.243a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414l.707.707zM11 17a1 1 0 102 0v-1a1 1 0 10-2 0v1zM5.757 15.657a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414l-.707.707zM2 10a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.757 4.343a1 1 0 00-1.414 1.414l.707.707a1 1 0 001.414-1.414l-.707-.707z"/>
|
|
7
|
-
</svg>
|
|
8
|
-
<div class="flex-1 min-w-0">
|
|
9
|
-
<h4 class="font-semibold text-sm truncate">{{ fileName }}</h4>
|
|
10
|
-
<p class="text-xs text-secondary truncate" title="{{ filePath }}">{{ filePath }}</p>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
|
|
14
|
-
<div class="flex items-center gap-2 flex-shrink-0">
|
|
15
|
-
<span class="badge badge-sm bg-yellow-100 text-yellow-800">Modified</span>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
<!-- Tabs: Before/After/Diff -->
|
|
20
|
-
<div class="tabs mb-3" role="tablist">
|
|
21
|
-
<button class="tab-button active" data-tab="before" role="tab" aria-selected="true" aria-controls="before-panel">
|
|
22
|
-
Before
|
|
23
|
-
</button>
|
|
24
|
-
<button class="tab-button" data-tab="after" role="tab" aria-selected="false" aria-controls="after-panel">
|
|
25
|
-
After
|
|
26
|
-
</button>
|
|
27
|
-
<button class="tab-button" data-tab="diff" role="tab" aria-selected="false" aria-controls="diff-panel">
|
|
28
|
-
Diff
|
|
29
|
-
</button>
|
|
30
|
-
</div>
|
|
31
|
-
|
|
32
|
-
<!-- Before Panel -->
|
|
33
|
-
<div id="before-panel" class="tab-panel active" role="tabpanel" aria-labelledby="before-tab">
|
|
34
|
-
<pre class="code-block"><code class="language-{{ languageClass }}">{{ contentBefore }}</code></pre>
|
|
35
|
-
</div>
|
|
36
|
-
|
|
37
|
-
<!-- After Panel -->
|
|
38
|
-
<div id="after-panel" class="tab-panel hidden" role="tabpanel" aria-labelledby="after-tab">
|
|
39
|
-
<pre class="code-block"><code class="language-{{ languageClass }}">{{ contentAfter }}</code></pre>
|
|
40
|
-
</div>
|
|
41
|
-
|
|
42
|
-
<!-- Diff Panel -->
|
|
43
|
-
<div id="diff-panel" class="tab-panel hidden" role="tabpanel" aria-labelledby="diff-tab">
|
|
44
|
-
<pre class="code-block diff-block"><code>{{ diffContent }}</code></pre>
|
|
45
|
-
</div>
|
|
46
|
-
|
|
47
|
-
<!-- Action Buttons -->
|
|
48
|
-
<div class="flex gap-2 mt-3 pt-3 border-t">
|
|
49
|
-
<button class="btn btn-sm btn-tertiary" data-action="copy-before" aria-label="Copy original content">
|
|
50
|
-
Copy Before
|
|
51
|
-
</button>
|
|
52
|
-
<button class="btn btn-sm btn-tertiary" data-action="copy-after" aria-label="Copy new content">
|
|
53
|
-
Copy After
|
|
54
|
-
</button>
|
|
55
|
-
<button class="btn btn-sm btn-tertiary" data-action="download-diff" aria-label="Download diff">
|
|
56
|
-
Download Diff
|
|
57
|
-
</button>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
|
|
61
|
-
<style scoped>
|
|
62
|
-
.file-write-panel {
|
|
63
|
-
padding: 16px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.tabs {
|
|
67
|
-
display: flex;
|
|
68
|
-
gap: 8px;
|
|
69
|
-
border-bottom: 1px solid var(--color-border);
|
|
70
|
-
margin-bottom: 16px;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.tab-button {
|
|
74
|
-
padding: 8px 12px;
|
|
75
|
-
background: none;
|
|
76
|
-
border: none;
|
|
77
|
-
color: var(--color-text-secondary);
|
|
78
|
-
font-size: 13px;
|
|
79
|
-
cursor: pointer;
|
|
80
|
-
border-bottom: 2px solid transparent;
|
|
81
|
-
transition: all 0.2s;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.tab-button.active {
|
|
85
|
-
color: var(--color-primary);
|
|
86
|
-
border-bottom-color: var(--color-primary);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.tab-panel {
|
|
90
|
-
display: none;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.tab-panel.active {
|
|
94
|
-
display: block;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.code-block {
|
|
98
|
-
background-color: var(--color-bg-code);
|
|
99
|
-
border: 1px solid var(--color-border);
|
|
100
|
-
border-radius: 4px;
|
|
101
|
-
padding: 12px;
|
|
102
|
-
overflow-x: auto;
|
|
103
|
-
font-size: 12px;
|
|
104
|
-
line-height: 1.5;
|
|
105
|
-
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.diff-block {
|
|
109
|
-
background-color: var(--color-bg-diff);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.btn-sm {
|
|
113
|
-
padding: 4px 8px;
|
|
114
|
-
font-size: 11px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.hidden {
|
|
118
|
-
display: none;
|
|
119
|
-
}
|
|
120
|
-
</style>
|
|
1
|
+
<!-- File Write Operation Display with Before/After Comparison -->
|
|
2
|
+
<div class="file-write-panel card" role="region" aria-label="File write operation: {{ filePath }}">
|
|
3
|
+
<div class="card-header flex items-start justify-between gap-3 mb-3 pb-3 border-b">
|
|
4
|
+
<div class="flex items-center gap-2 flex-1 min-w-0">
|
|
5
|
+
<svg class="w-4 h-4 text-primary flex-shrink-0" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
|
|
6
|
+
<path d="M11 3a1 1 0 10-2 0v1a1 1 0 102 0V3zM15.657 5.757a1 1 0 00-1.414-1.414l-.707.707a1 1 0 001.414 1.414l.707-.707zM18 10a1 1 0 01-1 1h-1a1 1 0 110-2h1a1 1 0 011 1zM15.657 14.243a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414l.707.707zM11 17a1 1 0 102 0v-1a1 1 0 10-2 0v1zM5.757 15.657a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414l-.707.707zM2 10a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.757 4.343a1 1 0 00-1.414 1.414l.707.707a1 1 0 001.414-1.414l-.707-.707z"/>
|
|
7
|
+
</svg>
|
|
8
|
+
<div class="flex-1 min-w-0">
|
|
9
|
+
<h4 class="font-semibold text-sm truncate">{{ fileName }}</h4>
|
|
10
|
+
<p class="text-xs text-secondary truncate" title="{{ filePath }}">{{ filePath }}</p>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<div class="flex items-center gap-2 flex-shrink-0">
|
|
15
|
+
<span class="badge badge-sm bg-yellow-100 text-yellow-800">Modified</span>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<!-- Tabs: Before/After/Diff -->
|
|
20
|
+
<div class="tabs mb-3" role="tablist">
|
|
21
|
+
<button class="tab-button active" data-tab="before" role="tab" aria-selected="true" aria-controls="before-panel">
|
|
22
|
+
Before
|
|
23
|
+
</button>
|
|
24
|
+
<button class="tab-button" data-tab="after" role="tab" aria-selected="false" aria-controls="after-panel">
|
|
25
|
+
After
|
|
26
|
+
</button>
|
|
27
|
+
<button class="tab-button" data-tab="diff" role="tab" aria-selected="false" aria-controls="diff-panel">
|
|
28
|
+
Diff
|
|
29
|
+
</button>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<!-- Before Panel -->
|
|
33
|
+
<div id="before-panel" class="tab-panel active" role="tabpanel" aria-labelledby="before-tab">
|
|
34
|
+
<pre class="code-block"><code class="language-{{ languageClass }}">{{ contentBefore }}</code></pre>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<!-- After Panel -->
|
|
38
|
+
<div id="after-panel" class="tab-panel hidden" role="tabpanel" aria-labelledby="after-tab">
|
|
39
|
+
<pre class="code-block"><code class="language-{{ languageClass }}">{{ contentAfter }}</code></pre>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<!-- Diff Panel -->
|
|
43
|
+
<div id="diff-panel" class="tab-panel hidden" role="tabpanel" aria-labelledby="diff-tab">
|
|
44
|
+
<pre class="code-block diff-block"><code>{{ diffContent }}</code></pre>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<!-- Action Buttons -->
|
|
48
|
+
<div class="flex gap-2 mt-3 pt-3 border-t">
|
|
49
|
+
<button class="btn btn-sm btn-tertiary" data-action="copy-before" aria-label="Copy original content">
|
|
50
|
+
Copy Before
|
|
51
|
+
</button>
|
|
52
|
+
<button class="btn btn-sm btn-tertiary" data-action="copy-after" aria-label="Copy new content">
|
|
53
|
+
Copy After
|
|
54
|
+
</button>
|
|
55
|
+
<button class="btn btn-sm btn-tertiary" data-action="download-diff" aria-label="Download diff">
|
|
56
|
+
Download Diff
|
|
57
|
+
</button>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<style scoped>
|
|
62
|
+
.file-write-panel {
|
|
63
|
+
padding: 16px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.tabs {
|
|
67
|
+
display: flex;
|
|
68
|
+
gap: 8px;
|
|
69
|
+
border-bottom: 1px solid var(--color-border);
|
|
70
|
+
margin-bottom: 16px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.tab-button {
|
|
74
|
+
padding: 8px 12px;
|
|
75
|
+
background: none;
|
|
76
|
+
border: none;
|
|
77
|
+
color: var(--color-text-secondary);
|
|
78
|
+
font-size: 13px;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
border-bottom: 2px solid transparent;
|
|
81
|
+
transition: all 0.2s;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.tab-button.active {
|
|
85
|
+
color: var(--color-primary);
|
|
86
|
+
border-bottom-color: var(--color-primary);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.tab-panel {
|
|
90
|
+
display: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.tab-panel.active {
|
|
94
|
+
display: block;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.code-block {
|
|
98
|
+
background-color: var(--color-bg-code);
|
|
99
|
+
border: 1px solid var(--color-border);
|
|
100
|
+
border-radius: 4px;
|
|
101
|
+
padding: 12px;
|
|
102
|
+
overflow-x: auto;
|
|
103
|
+
font-size: 12px;
|
|
104
|
+
line-height: 1.5;
|
|
105
|
+
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.diff-block {
|
|
109
|
+
background-color: var(--color-bg-diff);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.btn-sm {
|
|
113
|
+
padding: 4px 8px;
|
|
114
|
+
font-size: 11px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.hidden {
|
|
118
|
+
display: none;
|
|
119
|
+
}
|
|
120
|
+
</style>
|