@mooncompany/uplink-chat 0.5.2 → 0.32.3
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/LICENSE +14 -1
- package/README.md +105 -3
- package/bin/uplink.js +3 -0
- package/middleware/error-handler.js +1 -0
- package/package.json +89 -5
- package/public/css/agents.1fd7567a.css +1499 -0
- package/public/css/app.bc7e7484.css +2819 -0
- package/public/css/artifacts.css +488 -0
- package/public/css/commands.css +77 -0
- package/public/css/connection.css +131 -0
- package/public/css/cron-panel.css +364 -0
- package/public/css/dashboard.css +233 -0
- package/public/css/developer.css +342 -0
- package/public/css/files.css +123 -0
- package/public/css/markdown.css +156 -0
- package/public/css/message-actions.css +285 -0
- package/public/css/mobile.css +614 -0
- package/public/css/panels-unified.css +485 -0
- package/public/css/premium.css +415 -0
- package/public/css/realtime.css +189 -0
- package/public/css/satellites.7fa72088.css +632 -0
- package/public/css/settings-redesign.css +1322 -0
- package/public/css/shortcuts.css +185 -0
- package/public/css/split-view.4bc23474.css +858 -0
- package/public/css/themes.css +387 -0
- package/public/css/timestamps.css +54 -0
- package/public/css/variables.css +81 -0
- package/public/dist/bundle.493af136.js +1 -0
- package/public/favicon-256.png +0 -0
- package/public/icon-192.png +0 -0
- package/public/icon-512.png +0 -0
- package/public/img/icons/icon-alert-triangle.svg +17 -0
- package/public/img/icons/icon-brain.svg +20 -0
- package/public/img/icons/icon-brand-python.svg +19 -0
- package/public/img/icons/icon-camera.svg +16 -0
- package/public/img/icons/icon-chart-bar.svg +18 -0
- package/public/img/icons/icon-check.svg +15 -0
- package/public/img/icons/icon-circle-check.svg +16 -0
- package/public/img/icons/icon-clipboard.svg +16 -0
- package/public/img/icons/icon-cloud.svg +15 -0
- package/public/img/icons/icon-confetti.svg +24 -0
- package/public/img/icons/icon-device-mobile.svg +17 -0
- package/public/img/icons/icon-diamond.svg +16 -0
- package/public/img/icons/icon-file-text.svg +19 -0
- package/public/img/icons/icon-file-type-css.svg +19 -0
- package/public/img/icons/icon-file-type-csv.svg +19 -0
- package/public/img/icons/icon-file-type-doc.svg +19 -0
- package/public/img/icons/icon-file-type-html.svg +23 -0
- package/public/img/icons/icon-file-type-js.svg +18 -0
- package/public/img/icons/icon-file-type-pdf.svg +20 -0
- package/public/img/icons/icon-file-zip.svg +22 -0
- package/public/img/icons/icon-file.svg +16 -0
- package/public/img/icons/icon-folder.svg +15 -0
- package/public/img/icons/icon-headphones.svg +17 -0
- package/public/img/icons/icon-hourglass.svg +18 -0
- package/public/img/icons/icon-keyboard.svg +22 -0
- package/public/img/icons/icon-link.svg +17 -0
- package/public/img/icons/icon-lock-open.svg +17 -0
- package/public/img/icons/icon-lock.svg +17 -0
- package/public/img/icons/icon-mail.svg +16 -0
- package/public/img/icons/icon-message-dots.svg +18 -0
- package/public/img/icons/icon-microphone-2.svg +16 -0
- package/public/img/icons/icon-microphone.svg +18 -0
- package/public/img/icons/icon-movie.svg +22 -0
- package/public/img/icons/icon-music.svg +18 -0
- package/public/img/icons/icon-palette.svg +18 -0
- package/public/img/icons/icon-paperclip.svg +15 -0
- package/public/img/icons/icon-pencil.svg +16 -0
- package/public/img/icons/icon-photo.svg +18 -0
- package/public/img/icons/icon-presentation.svg +19 -0
- package/public/img/icons/icon-robot.svg +23 -0
- package/public/img/icons/icon-rocket.svg +17 -0
- package/public/img/icons/icon-satellite.svg +20 -0
- package/public/img/icons/icon-settings.svg +16 -0
- package/public/img/icons/icon-shield-lock.svg +17 -0
- package/public/img/icons/icon-sparkles.svg +15 -0
- package/public/img/icons/icon-star-filled.svg +11 -0
- package/public/img/icons/icon-tool.svg +15 -0
- package/public/img/icons/icon-trash.svg +19 -0
- package/public/img/icons/icon-volume.svg +17 -0
- package/public/img/icons/icon-world.svg +19 -0
- package/public/img/icons/icon-x.svg +16 -0
- package/public/img/logo.svg +13 -0
- package/public/img/wordmark.svg +35 -0
- package/public/index.html +1195 -0
- package/public/js/agents-data.js +1 -0
- package/public/js/agents-ui.js +1 -0
- package/public/js/agents.js +1 -0
- package/public/js/app.js +1 -0
- package/public/js/appearance-settings.js +1 -0
- package/public/js/artifacts.js +1 -0
- package/public/js/audio-pcm-processor.js +1 -0
- package/public/js/audio-queue.js +1 -0
- package/public/js/bootstrap.js +1 -0
- package/public/js/chat.js +1 -0
- package/public/js/commands.js +1 -0
- package/public/js/connection-api.js +1 -0
- package/public/js/connection.js +1 -0
- package/public/js/context-tracker.js +1 -0
- package/public/js/core.js +1 -0
- package/public/js/cron-panel.js +1 -0
- package/public/js/dashboard.js +1 -0
- package/public/js/developer.js +1 -0
- package/public/js/encryption.js +1 -0
- package/public/js/errors.js +1 -0
- package/public/js/event-bus.js +1 -0
- package/public/js/fetch-utils.js +1 -0
- package/public/js/file-handler.js +1 -0
- package/public/js/files.js +1 -0
- package/public/js/gateway-chat.js +1 -0
- package/public/js/logger.js +1 -0
- package/public/js/markdown.js +1 -0
- package/public/js/message-actions.js +1 -0
- package/public/js/message-renderer.js +1 -0
- package/public/js/missed-messages.js +1 -0
- package/public/js/mobile-debug.js +1 -0
- package/public/js/notifications.js +1 -0
- package/public/js/offline-queue.js +1 -0
- package/public/js/onboarding.js +1 -0
- package/public/js/panels.js +1 -0
- package/public/js/premium.js +1 -0
- package/public/js/primary-header.js +1 -0
- package/public/js/realtime-voice.js +1 -0
- package/public/js/satellite-sync.js +1 -0
- package/public/js/satellite-ui.js +1 -0
- package/public/js/satellites.js +1 -0
- package/public/js/settings.js +1 -0
- package/public/js/shortcuts.js +1 -0
- package/public/js/split-chat.js +1 -0
- package/public/js/split-resize.js +1 -0
- package/public/js/splitview.js +1 -0
- package/public/js/storage.js +1 -0
- package/public/js/streaming-handler.js +1 -0
- package/public/js/stt-settings.js +1 -0
- package/public/js/themes.js +1 -0
- package/public/js/timestamps.js +1 -0
- package/public/js/tts-settings.js +1 -0
- package/public/js/ui.js +1 -0
- package/public/js/update-notifier.js +1 -0
- package/public/js/utils/constants.js +1 -0
- package/public/js/utils/icons.js +1 -0
- package/public/js/utils/sanitize.js +1 -0
- package/public/js/utils/sse-parser.js +1 -0
- package/public/js/vad.js +1 -0
- package/public/js/vendor/dompurify.min.js +2 -0
- package/public/js/voice-settings-v2.js +1 -0
- package/public/js/voice.js +1 -0
- package/public/manifest.json +66 -0
- package/public/moon_texture.jpg +0 -0
- package/public/sw.js +1 -0
- package/public/three.min.js +6 -0
- package/public/u-icon.png +0 -0
- package/server/channel.js +1 -0
- package/server/chat.js +1 -0
- package/server/config-store.js +1 -0
- package/server/config.js +1 -0
- package/server/context.js +1 -0
- package/server/gateway-api-proxy.js +1 -0
- package/server/gateway-commands.js +1 -0
- package/server/gateway-proxy.js +1 -0
- package/server/index.js +1 -0
- package/server/logger.js +1 -0
- package/server/message-store.js +1 -0
- package/server/middleware/auth.js +1 -0
- package/server/middleware.js +1 -0
- package/server/openclaw-discover.js +1 -0
- package/server/premium/index.js +1 -0
- package/server/premium/license.js +1 -0
- package/server/realtime/bridge.js +1 -0
- package/server/realtime/index.js +1 -0
- package/server/realtime/tts-stream.js +1 -0
- package/server/routes/agents.js +1 -0
- package/server/routes/artifacts.js +1 -0
- package/server/routes/chat.js +1 -0
- package/server/routes/config-settings.js +1 -0
- package/server/routes/config.js +1 -0
- package/server/routes/cron.js +1 -0
- package/server/routes/files.js +1 -0
- package/server/routes/index.js +1 -0
- package/server/routes/media.js +1 -0
- package/server/routes/missed-messages.js +1 -0
- package/server/routes/premium.js +1 -0
- package/server/routes/push.js +1 -0
- package/server/routes/satellite.js +1 -0
- package/server/routes/status.js +1 -0
- package/server/routes/stt.js +1 -0
- package/server/routes/voice.js +1 -0
- package/server/routes/webhooks.js +1 -0
- package/server/routes.js +1 -0
- package/server/runtime-config.js +1 -0
- package/server/share.js +1 -0
- package/server/stt/faster-whisper.js +1 -0
- package/server/stt/groq.js +1 -0
- package/server/stt/index.js +1 -0
- package/server/stt/openai.js +1 -0
- package/server/sync.js +1 -0
- package/server/tailscale-https.js +1 -0
- package/server/tts.js +1 -0
- package/server/update-checker.js +1 -0
- package/server/utils/filename.js +1 -0
- package/server/utils.js +1 -0
- package/server/watchdog.js +3 -0
- package/server/websocket/broadcast.js +1 -0
- package/server/websocket/connections.js +1 -0
- package/server/websocket/index.js +1 -0
- package/server/websocket/routing.js +1 -0
- package/server/websocket/sync.js +1 -0
- package/server.js +1 -0
- package/utils/detect-tool-usage.js +1 -0
- package/utils/errors.js +1 -0
- package/utils/html-escape.js +1 -0
- package/utils/id-sanitize.js +1 -0
- package/utils/response.js +1 -0
- package/utils/with-retry.js +1 -0
- package/index.js +0 -2
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
ARTIFACTS PANEL
|
|
3
|
+
Document viewer for agent-generated artifacts
|
|
4
|
+
Follows unified panel system (panels-unified.css)
|
|
5
|
+
============================================ */
|
|
6
|
+
|
|
7
|
+
/* Artifacts panel inherits from .panel in panels-unified.css
|
|
8
|
+
No custom positioning needed — unified system handles layout */
|
|
9
|
+
|
|
10
|
+
/* Header — match settings panel style */
|
|
11
|
+
.artifacts-panel-header {
|
|
12
|
+
padding: var(--space-4) var(--space-5);
|
|
13
|
+
padding-top: calc(var(--space-4) + env(safe-area-inset-top, 0px));
|
|
14
|
+
gap: var(--space-3);
|
|
15
|
+
min-height: 56px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.artifacts-panel-title {
|
|
19
|
+
font-family: var(--font-mono);
|
|
20
|
+
font-size: var(--text-sm);
|
|
21
|
+
color: var(--accent);
|
|
22
|
+
letter-spacing: 1px;
|
|
23
|
+
text-transform: uppercase;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: var(--space-2);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.artifacts-panel-title::before {
|
|
30
|
+
content: '';
|
|
31
|
+
display: inline-block;
|
|
32
|
+
width: 6px;
|
|
33
|
+
height: 6px;
|
|
34
|
+
border-radius: 50%;
|
|
35
|
+
background: var(--accent);
|
|
36
|
+
box-shadow: 0 0 6px var(--accent-30);
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.artifacts-header-actions {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: var(--space-2);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.artifacts-panel-refresh {
|
|
47
|
+
min-width: 44px;
|
|
48
|
+
min-height: 44px;
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
background: none;
|
|
53
|
+
border: none;
|
|
54
|
+
color: var(--text-dim, var(--text-secondary));
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
border-radius: var(--radius-md);
|
|
57
|
+
transition: color 0.15s, background 0.15s;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.artifacts-panel-refresh:hover {
|
|
61
|
+
color: var(--text);
|
|
62
|
+
background: var(--accent-10, var(--hover));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Content */
|
|
66
|
+
.artifacts-panel-content {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
gap: var(--space-3);
|
|
70
|
+
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Search */
|
|
74
|
+
.artifacts-search {
|
|
75
|
+
width: 100%;
|
|
76
|
+
padding: var(--space-3) var(--space-4);
|
|
77
|
+
border: 1px solid var(--border);
|
|
78
|
+
border-radius: var(--radius-md);
|
|
79
|
+
background: var(--bg-input, var(--bg-secondary));
|
|
80
|
+
color: var(--text);
|
|
81
|
+
font-size: 16px;
|
|
82
|
+
font-family: inherit;
|
|
83
|
+
transition: border-color 0.2s;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.artifacts-search:focus {
|
|
87
|
+
outline: none;
|
|
88
|
+
border-color: var(--accent);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.artifacts-search::placeholder {
|
|
92
|
+
color: var(--text-muted, var(--text-secondary));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* List */
|
|
96
|
+
.artifacts-list {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
gap: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* Folder */
|
|
103
|
+
.artifact-folder {
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.artifact-folder-header {
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
gap: var(--space-2);
|
|
112
|
+
padding: var(--space-2) var(--space-3);
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
border-radius: var(--radius-md);
|
|
115
|
+
transition: background 0.15s;
|
|
116
|
+
min-height: 44px;
|
|
117
|
+
user-select: none;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.artifact-folder-header:hover {
|
|
121
|
+
background: var(--white-05, var(--hover));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.artifact-folder-chevron {
|
|
125
|
+
display: flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
justify-content: center;
|
|
128
|
+
color: var(--text-dim, var(--text-secondary));
|
|
129
|
+
width: 14px;
|
|
130
|
+
flex-shrink: 0;
|
|
131
|
+
transition: transform 0.2s ease;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.artifact-folder-chevron svg {
|
|
135
|
+
width: 14px;
|
|
136
|
+
height: 14px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.artifact-folder.expanded > .artifact-folder-header > .artifact-folder-chevron {
|
|
140
|
+
transform: rotate(90deg);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.artifact-folder-icon {
|
|
144
|
+
font-size: var(--text-base, 16px);
|
|
145
|
+
flex-shrink: 0;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.artifact-folder-name {
|
|
149
|
+
font-size: var(--text-sm);
|
|
150
|
+
font-weight: 600;
|
|
151
|
+
color: var(--text);
|
|
152
|
+
text-transform: capitalize;
|
|
153
|
+
flex: 1;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.artifact-folder-count {
|
|
157
|
+
font-size: var(--text-xs);
|
|
158
|
+
color: var(--text-muted, var(--text-secondary));
|
|
159
|
+
background: var(--bg-input, var(--bg-secondary));
|
|
160
|
+
padding: 1px 8px;
|
|
161
|
+
border-radius: var(--radius-full);
|
|
162
|
+
flex-shrink: 0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.artifact-folder-children {
|
|
166
|
+
display: flex;
|
|
167
|
+
flex-direction: column;
|
|
168
|
+
margin-left: var(--space-3, 12px);
|
|
169
|
+
border-left: 2px solid var(--border);
|
|
170
|
+
padding-left: var(--space-2, 8px);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* File item */
|
|
174
|
+
.artifact-item {
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
gap: var(--space-3);
|
|
178
|
+
padding: var(--space-2) var(--space-3);
|
|
179
|
+
border: 1px solid transparent;
|
|
180
|
+
border-radius: var(--radius-md);
|
|
181
|
+
cursor: pointer;
|
|
182
|
+
transition: background 0.15s, border-color 0.15s;
|
|
183
|
+
min-height: 44px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.artifact-item:hover {
|
|
187
|
+
background: var(--white-05, var(--hover));
|
|
188
|
+
border-color: var(--accent);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.artifact-icon {
|
|
192
|
+
font-size: var(--text-base, 16px);
|
|
193
|
+
line-height: 1;
|
|
194
|
+
flex-shrink: 0;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.artifact-info {
|
|
198
|
+
flex: 1;
|
|
199
|
+
min-width: 0;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.artifact-name {
|
|
203
|
+
font-size: var(--text-sm);
|
|
204
|
+
font-weight: 500;
|
|
205
|
+
color: var(--text);
|
|
206
|
+
overflow: hidden;
|
|
207
|
+
text-overflow: ellipsis;
|
|
208
|
+
white-space: nowrap;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.artifact-meta {
|
|
212
|
+
font-size: var(--text-xs);
|
|
213
|
+
color: var(--text-muted, var(--text-secondary));
|
|
214
|
+
margin-top: 1px;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* Empty state */
|
|
218
|
+
.artifacts-empty {
|
|
219
|
+
display: flex;
|
|
220
|
+
flex-direction: column;
|
|
221
|
+
align-items: center;
|
|
222
|
+
justify-content: center;
|
|
223
|
+
padding: var(--space-8, 48px) var(--space-4, 24px);
|
|
224
|
+
text-align: center;
|
|
225
|
+
color: var(--text-muted, var(--text-secondary));
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.artifacts-empty svg {
|
|
229
|
+
margin-bottom: var(--space-4, 16px);
|
|
230
|
+
opacity: 0.5;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.artifacts-empty p {
|
|
234
|
+
font-size: var(--text-base, 16px);
|
|
235
|
+
font-weight: 500;
|
|
236
|
+
margin: 0 0 var(--space-2, 8px);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.artifacts-empty small {
|
|
240
|
+
font-size: var(--text-sm, 13px);
|
|
241
|
+
opacity: 0.7;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/* Error state */
|
|
245
|
+
.artifacts-error {
|
|
246
|
+
padding: var(--space-4, 24px);
|
|
247
|
+
text-align: center;
|
|
248
|
+
color: var(--error);
|
|
249
|
+
background: var(--error-bg, rgba(239, 68, 68, 0.1));
|
|
250
|
+
border-radius: var(--radius-md);
|
|
251
|
+
border: 1px solid var(--error);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* Reader */
|
|
255
|
+
.artifacts-reader {
|
|
256
|
+
display: flex;
|
|
257
|
+
flex-direction: column;
|
|
258
|
+
gap: var(--space-4);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.artifacts-reader-toolbar {
|
|
262
|
+
display: flex;
|
|
263
|
+
align-items: center;
|
|
264
|
+
justify-content: space-between;
|
|
265
|
+
gap: var(--space-2);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.artifacts-reader-back,
|
|
269
|
+
.artifacts-reader-download {
|
|
270
|
+
display: flex;
|
|
271
|
+
align-items: center;
|
|
272
|
+
gap: var(--space-2, 6px);
|
|
273
|
+
background: none;
|
|
274
|
+
border: 1px solid var(--border);
|
|
275
|
+
color: var(--text-muted, var(--text-secondary));
|
|
276
|
+
cursor: pointer;
|
|
277
|
+
padding: var(--space-2, 8px) var(--space-3, 12px);
|
|
278
|
+
border-radius: var(--radius-md);
|
|
279
|
+
font-size: var(--text-sm);
|
|
280
|
+
font-family: inherit;
|
|
281
|
+
transition: background 0.15s, color 0.15s, border-color 0.15s;
|
|
282
|
+
min-height: 44px;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.artifacts-reader-back:hover,
|
|
286
|
+
.artifacts-reader-download:hover {
|
|
287
|
+
background: var(--accent-10, var(--hover));
|
|
288
|
+
color: var(--text);
|
|
289
|
+
border-color: var(--accent);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.artifacts-reader-breadcrumb {
|
|
293
|
+
color: var(--text-muted, var(--text-secondary));
|
|
294
|
+
font-size: var(--text-xs, 13px);
|
|
295
|
+
font-weight: 400;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.artifacts-reader-title {
|
|
299
|
+
font-size: var(--text-lg, 18px);
|
|
300
|
+
font-weight: 600;
|
|
301
|
+
color: var(--text);
|
|
302
|
+
margin: 0;
|
|
303
|
+
word-break: break-word;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.artifacts-reader-content {
|
|
307
|
+
font-size: var(--text-sm, 14px);
|
|
308
|
+
line-height: 1.6;
|
|
309
|
+
color: var(--text);
|
|
310
|
+
overflow-wrap: break-word;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/* Reader content styling (markdown) */
|
|
314
|
+
.artifacts-reader-content h1,
|
|
315
|
+
.artifacts-reader-content h2,
|
|
316
|
+
.artifacts-reader-content h3,
|
|
317
|
+
.artifacts-reader-content h4 {
|
|
318
|
+
margin-top: var(--space-6, 24px);
|
|
319
|
+
margin-bottom: var(--space-3, 12px);
|
|
320
|
+
font-weight: 600;
|
|
321
|
+
line-height: 1.3;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.artifacts-reader-content h1 { font-size: var(--text-xl, 24px); }
|
|
325
|
+
.artifacts-reader-content h2 { font-size: var(--text-lg, 20px); }
|
|
326
|
+
.artifacts-reader-content h3 { font-size: var(--text-base, 18px); }
|
|
327
|
+
.artifacts-reader-content h4 { font-size: var(--text-sm, 16px); }
|
|
328
|
+
|
|
329
|
+
.artifacts-reader-content p {
|
|
330
|
+
margin: 0 0 var(--space-3, 12px);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.artifacts-reader-content ul,
|
|
334
|
+
.artifacts-reader-content ol {
|
|
335
|
+
margin: 0 0 var(--space-3, 12px);
|
|
336
|
+
padding-left: var(--space-6, 24px);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.artifacts-reader-content li {
|
|
340
|
+
margin-bottom: var(--space-2, 6px);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.artifacts-reader-content code {
|
|
344
|
+
background: var(--bg-input, var(--bg-secondary));
|
|
345
|
+
border: 1px solid var(--border);
|
|
346
|
+
padding: 2px 6px;
|
|
347
|
+
border-radius: var(--radius-sm, 4px);
|
|
348
|
+
font-family: var(--font-mono);
|
|
349
|
+
font-size: 0.9em;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.artifacts-reader-content pre {
|
|
353
|
+
background: var(--bg-input, var(--bg-secondary));
|
|
354
|
+
border: 1px solid var(--border);
|
|
355
|
+
padding: var(--space-3, 12px);
|
|
356
|
+
border-radius: var(--radius-md);
|
|
357
|
+
overflow-x: auto;
|
|
358
|
+
margin: 0 0 var(--space-3, 12px);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.artifacts-reader-content pre code {
|
|
362
|
+
background: none;
|
|
363
|
+
border: none;
|
|
364
|
+
padding: 0;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.artifacts-reader-content blockquote {
|
|
368
|
+
border-left: 3px solid var(--accent);
|
|
369
|
+
padding-left: var(--space-4, 16px);
|
|
370
|
+
margin: 0 0 var(--space-3, 12px);
|
|
371
|
+
color: var(--text-muted, var(--text-secondary));
|
|
372
|
+
font-style: italic;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.artifacts-reader-content table {
|
|
376
|
+
width: 100%;
|
|
377
|
+
border-collapse: collapse;
|
|
378
|
+
margin: 0 0 var(--space-3, 12px);
|
|
379
|
+
font-size: var(--text-xs, 13px);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.artifacts-reader-content table th,
|
|
383
|
+
.artifacts-reader-content table td {
|
|
384
|
+
border: 1px solid var(--border);
|
|
385
|
+
padding: var(--space-2, 8px);
|
|
386
|
+
text-align: left;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.artifacts-reader-content table th {
|
|
390
|
+
background: var(--bg-input, var(--bg-secondary));
|
|
391
|
+
font-weight: 600;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.artifacts-reader-content hr {
|
|
395
|
+
border: none;
|
|
396
|
+
border-top: 1px solid var(--border);
|
|
397
|
+
margin: var(--space-6, 24px) 0;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/* HTML Preview/Source Toggle */
|
|
401
|
+
.artifacts-html-toggle {
|
|
402
|
+
display: flex;
|
|
403
|
+
gap: 4px;
|
|
404
|
+
margin-bottom: var(--space-3, 12px);
|
|
405
|
+
padding: 3px;
|
|
406
|
+
background: var(--bg-input, var(--bg-secondary));
|
|
407
|
+
border-radius: var(--radius-md);
|
|
408
|
+
width: fit-content;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.artifacts-toggle-btn {
|
|
412
|
+
padding: var(--space-2, 6px) var(--space-3, 14px);
|
|
413
|
+
border: none;
|
|
414
|
+
background: transparent;
|
|
415
|
+
color: var(--text-muted, var(--text-secondary));
|
|
416
|
+
font-size: var(--text-xs, 13px);
|
|
417
|
+
font-weight: 500;
|
|
418
|
+
border-radius: var(--radius-sm, 4px);
|
|
419
|
+
cursor: pointer;
|
|
420
|
+
transition: all 0.15s ease;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.artifacts-toggle-btn:hover {
|
|
424
|
+
color: var(--text);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.artifacts-toggle-btn.active {
|
|
428
|
+
background: var(--accent);
|
|
429
|
+
color: #fff;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.artifacts-html-preview {
|
|
433
|
+
overflow-x: auto;
|
|
434
|
+
-webkit-overflow-scrolling: touch;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.artifacts-iframe {
|
|
438
|
+
width: 1200px;
|
|
439
|
+
min-height: 500px;
|
|
440
|
+
border: 1px solid var(--border);
|
|
441
|
+
border-radius: var(--radius-md);
|
|
442
|
+
background: #fff;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.artifacts-html-source pre {
|
|
446
|
+
margin: 0;
|
|
447
|
+
white-space: pre-wrap;
|
|
448
|
+
word-break: break-word;
|
|
449
|
+
font-size: var(--text-xs, 12px);
|
|
450
|
+
line-height: 1.6;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/* Deep links in chat messages */
|
|
454
|
+
.artifact-link {
|
|
455
|
+
display: inline-flex;
|
|
456
|
+
align-items: center;
|
|
457
|
+
gap: 4px;
|
|
458
|
+
padding: 2px 8px;
|
|
459
|
+
background: var(--accent-10, rgba(120, 90, 255, 0.1));
|
|
460
|
+
border: 1px solid var(--accent-30, rgba(120, 90, 255, 0.2));
|
|
461
|
+
border-radius: var(--radius-sm, 4px);
|
|
462
|
+
color: var(--accent);
|
|
463
|
+
text-decoration: none;
|
|
464
|
+
font-size: var(--text-xs, 13px);
|
|
465
|
+
font-weight: 500;
|
|
466
|
+
cursor: pointer;
|
|
467
|
+
transition: all 0.15s ease;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.artifact-link:hover {
|
|
471
|
+
background: var(--accent);
|
|
472
|
+
color: #fff;
|
|
473
|
+
text-decoration: none;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/* iOS PWA standalone safe-area fallback */
|
|
477
|
+
@media all and (display-mode: standalone) {
|
|
478
|
+
.artifacts-panel-header {
|
|
479
|
+
padding-top: calc(var(--space-4) + env(safe-area-inset-top, 44px));
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/* Mobile */
|
|
484
|
+
@media (max-width: 768px) {
|
|
485
|
+
.artifacts-iframe {
|
|
486
|
+
min-height: 400px;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
SLASH COMMANDS STYLES
|
|
3
|
+
============================================ */
|
|
4
|
+
|
|
5
|
+
/* Ensure autocomplete anchors to input area */
|
|
6
|
+
.input-area {
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.command-autocomplete {
|
|
11
|
+
position: absolute;
|
|
12
|
+
bottom: 100%;
|
|
13
|
+
left: var(--space-4);
|
|
14
|
+
right: var(--space-4);
|
|
15
|
+
background: var(--bg-secondary);
|
|
16
|
+
border: 1px solid var(--border);
|
|
17
|
+
border-radius: var(--radius-lg);
|
|
18
|
+
margin-bottom: var(--space-2);
|
|
19
|
+
overflow-y: auto;
|
|
20
|
+
max-height: 60vh;
|
|
21
|
+
box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
|
|
22
|
+
z-index: var(--z-dropdown);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.command-option {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
padding: 12px 16px;
|
|
30
|
+
min-height: 48px; /* Touch target minimum */
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
transition: background 0.15s;
|
|
33
|
+
border-bottom: 1px solid var(--border);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.command-option:last-child {
|
|
37
|
+
border-bottom: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.command-option:hover,
|
|
41
|
+
.command-option.selected {
|
|
42
|
+
background: rgba(0, 240, 255, 0.1);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.command-name {
|
|
46
|
+
font-family: var(--font-mono);
|
|
47
|
+
font-size: var(--text-sm);
|
|
48
|
+
color: var(--accent);
|
|
49
|
+
font-weight: 500;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.command-desc {
|
|
53
|
+
font-size: var(--text-xs);
|
|
54
|
+
color: var(--text-muted);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
.command-autocomplete {
|
|
59
|
+
scrollbar-width: thin;
|
|
60
|
+
scrollbar-color: var(--accent-30) transparent;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.command-autocomplete::-webkit-scrollbar { width: 6px; }
|
|
64
|
+
.command-autocomplete::-webkit-scrollbar-track { background: transparent; }
|
|
65
|
+
.command-autocomplete::-webkit-scrollbar-thumb {
|
|
66
|
+
background: var(--accent-30);
|
|
67
|
+
border-radius: 3px;
|
|
68
|
+
}
|
|
69
|
+
.command-autocomplete::-webkit-scrollbar-thumb:hover {
|
|
70
|
+
background: var(--accent-50);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* System messages with markdown */
|
|
74
|
+
.message.system strong {
|
|
75
|
+
color: var(--accent);
|
|
76
|
+
font-weight: 600;
|
|
77
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
CONNECTION STATUS STYLES
|
|
3
|
+
============================================ */
|
|
4
|
+
|
|
5
|
+
.status-dot {
|
|
6
|
+
width: var(--space-2);
|
|
7
|
+
height: var(--space-2);
|
|
8
|
+
border-radius: var(--radius-full);
|
|
9
|
+
display: inline-block;
|
|
10
|
+
margin-right: var(--space-2);
|
|
11
|
+
transition: all 0.3s;
|
|
12
|
+
background: var(--neutral); /* Default: neutral gray until JS sets state */
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.status-dot.connected {
|
|
16
|
+
background: var(--success);
|
|
17
|
+
box-shadow: 0 0 var(--space-2) var(--success);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.status-dot.disconnected {
|
|
21
|
+
background: var(--warning);
|
|
22
|
+
animation: pulse-yellow 2s infinite;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.status-dot.connecting,
|
|
26
|
+
.status-dot.reconnecting {
|
|
27
|
+
background: var(--info);
|
|
28
|
+
animation: pulse-blue 1s infinite;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.status-dot.offline {
|
|
32
|
+
background: var(--neutral);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.status-dot.error,
|
|
36
|
+
.status-dot.failed {
|
|
37
|
+
background: var(--error);
|
|
38
|
+
box-shadow: 0 0 var(--space-2) var(--error);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@keyframes pulse-yellow {
|
|
42
|
+
0%, 100% { opacity: 1; }
|
|
43
|
+
50% { opacity: 0.5; }
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@keyframes pulse-blue {
|
|
47
|
+
0%, 100% { transform: scale(1); }
|
|
48
|
+
50% { transform: scale(1.2); }
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Status text */
|
|
52
|
+
#status {
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
user-select: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
#status:hover {
|
|
58
|
+
opacity: 0.8;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Connection mode badge */
|
|
62
|
+
.connection-mode-badge {
|
|
63
|
+
font-size: var(--text-xs);
|
|
64
|
+
opacity: 0.7;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.connection-mode-badge .mode-dot {
|
|
68
|
+
width: 6px;
|
|
69
|
+
height: 6px;
|
|
70
|
+
border-radius: var(--radius-full);
|
|
71
|
+
display: inline-block;
|
|
72
|
+
margin-right: var(--space-1);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.connection-mode-badge.direct .mode-dot {
|
|
76
|
+
background: var(--success);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.connection-mode-badge.proxied .mode-dot {
|
|
80
|
+
background: var(--info);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* ============================================
|
|
84
|
+
CONTEXT TRACKER
|
|
85
|
+
============================================ */
|
|
86
|
+
|
|
87
|
+
.context-badge {
|
|
88
|
+
display: none; /* Hidden until data arrives */
|
|
89
|
+
align-items: center;
|
|
90
|
+
gap: 6px;
|
|
91
|
+
font-family: var(--font-mono);
|
|
92
|
+
font-size: 10px;
|
|
93
|
+
letter-spacing: 0.5px;
|
|
94
|
+
color: var(--text-dim);
|
|
95
|
+
cursor: default;
|
|
96
|
+
user-select: none;
|
|
97
|
+
padding: 2px 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.context-bar {
|
|
101
|
+
width: 60px;
|
|
102
|
+
height: 4px;
|
|
103
|
+
background: rgba(255, 255, 255, 0.08);
|
|
104
|
+
border-radius: var(--radius-full);
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
flex-shrink: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.context-bar-fill {
|
|
110
|
+
height: 100%;
|
|
111
|
+
border-radius: var(--radius-full);
|
|
112
|
+
background: var(--success);
|
|
113
|
+
transition: width 0.6s ease, background 0.6s ease;
|
|
114
|
+
min-width: 1px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.context-text {
|
|
118
|
+
white-space: nowrap;
|
|
119
|
+
opacity: 0.8;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* Accessibility: Respect reduced motion preference (M-09) */
|
|
123
|
+
@media (prefers-reduced-motion: reduce) {
|
|
124
|
+
*,
|
|
125
|
+
*::before,
|
|
126
|
+
*::after {
|
|
127
|
+
animation-duration: 0.01ms !important;
|
|
128
|
+
animation-iteration-count: 1 !important;
|
|
129
|
+
transition-duration: 0.01ms !important;
|
|
130
|
+
}
|
|
131
|
+
}
|