agentgui 1.0.958 → 1.0.960
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/workflows/gui-completion.js +88 -0
- package/.claude/workflows/gui-logic-predictability.js +88 -0
- package/AGENTS.md +20 -0
- package/PUNCHLIST-COMPLETION.md +266 -0
- package/PUNCHLIST-LOGIC.md +405 -0
- package/lib/broadcast.js +1 -0
- package/lib/http-handler.js +196 -16
- package/lib/ws-handlers-util.js +42 -4
- package/package.json +1 -1
- package/scripts/validate-mutations.mjs +40 -0
- package/server.js +27 -0
- package/site/app/js/app.js +1391 -200
- package/site/app/js/backend.js +86 -4
- package/site/app/vendor/anentrypoint-design/247420.css +226 -2
- package/site/app/vendor/anentrypoint-design/247420.js +13 -13
package/site/app/js/backend.js
CHANGED
|
@@ -93,6 +93,45 @@ export function downloadUrl(base, filePath) {
|
|
|
93
93
|
return withToken(base + '/api/download/' + encodeURIComponent(filePath));
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
// ---------- File mutations (confined server endpoints) ----------
|
|
97
|
+
|
|
98
|
+
// Shared shape: each throws an Error carrying .status so the app maps
|
|
99
|
+
// 403/404/409/413 to plain human copy instead of the raw server string.
|
|
100
|
+
async function mutateJSON(base, route, body) {
|
|
101
|
+
const r = await authedFetch(base + route, {
|
|
102
|
+
method: 'POST',
|
|
103
|
+
headers: { 'Content-Type': 'application/json' },
|
|
104
|
+
body: JSON.stringify(body),
|
|
105
|
+
});
|
|
106
|
+
const j = await r.json().catch(() => ({}));
|
|
107
|
+
if (!r.ok) { const e = new Error(j.error || (route + ': ' + r.status)); e.status = r.status; throw e; }
|
|
108
|
+
return j;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Stat a path (GET /api/stat/<encoded>) for cwd validation. Returns {ok, dir}.
|
|
112
|
+
// Throws an Error carrying .status (403 outside roots, 404 missing).
|
|
113
|
+
export async function statPath(base, p) {
|
|
114
|
+
const r = await authedFetch(base + '/api/stat/' + encodeURIComponent(p));
|
|
115
|
+
const j = await r.json().catch(() => ({}));
|
|
116
|
+
if (!r.ok) { const e = new Error(j.error || ('stat: ' + r.status)); e.status = r.status; throw e; }
|
|
117
|
+
return j;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function renameEntry(base, filePath, newName) { return mutateJSON(base, '/api/rename', { path: filePath, newName }); }
|
|
121
|
+
export function deleteEntry(base, filePath, recursive) { return mutateJSON(base, '/api/delete', { path: filePath, recursive: !!recursive }); }
|
|
122
|
+
export function makeDir(base, dirPath, name) { return mutateJSON(base, '/api/mkdir', { dir: dirPath, name }); }
|
|
123
|
+
|
|
124
|
+
// Upload a File/Blob as raw bytes (PUT /api/upload-file). onProgress is not
|
|
125
|
+
// available via fetch streaming everywhere, so progress is per-file (done or
|
|
126
|
+
// not) - the kit UploadProgress shows per-file rows, which this satisfies.
|
|
127
|
+
export async function uploadFile(base, dirPath, file, overwrite) {
|
|
128
|
+
const qs = '?dir=' + encodeURIComponent(dirPath) + '&name=' + encodeURIComponent(file.name) + (overwrite ? '&overwrite=1' : '');
|
|
129
|
+
const r = await authedFetch(base + '/api/upload-file' + qs, { method: 'PUT', body: file });
|
|
130
|
+
const j = await r.json().catch(() => ({}));
|
|
131
|
+
if (!r.ok) { const e = new Error(j.error || ('upload: ' + r.status)); e.status = r.status; throw e; }
|
|
132
|
+
return j;
|
|
133
|
+
}
|
|
134
|
+
|
|
96
135
|
// ---------- History (HTTP, served by ccsniff) ----------
|
|
97
136
|
|
|
98
137
|
export async function listSessions(base) {
|
|
@@ -324,15 +363,57 @@ export async function* streamChat(base, { model, messages, signal, agentId, resu
|
|
|
324
363
|
else if (block?.type === 'result') push({ type: 'result', block });
|
|
325
364
|
} else if (ev.type === 'streaming_complete') {
|
|
326
365
|
finish();
|
|
366
|
+
} else if (ev.type === 'streaming_cancelled') {
|
|
367
|
+
push({ type: 'cancelled' });
|
|
368
|
+
finish();
|
|
327
369
|
} else if (ev.type === 'streaming_error') {
|
|
328
|
-
|
|
370
|
+
// A remote stop (another tab / dashboard stop-all) is not a failure: the
|
|
371
|
+
// server marks it cancelled; surface it as a distinct event so the app
|
|
372
|
+
// can label the turn 'stopped' instead of a normal finish or error red.
|
|
373
|
+
if (ev.cancelled || ev.error === 'cancelled') {
|
|
374
|
+
push({ type: 'cancelled' });
|
|
375
|
+
} else {
|
|
376
|
+
errored = ev.error || 'streaming error';
|
|
377
|
+
}
|
|
329
378
|
finish();
|
|
330
379
|
}
|
|
331
380
|
});
|
|
332
381
|
|
|
333
|
-
// If the websocket drops mid-stream, streaming_complete will never arrive
|
|
334
|
-
//
|
|
335
|
-
|
|
382
|
+
// If the websocket drops mid-stream, streaming_complete will never arrive.
|
|
383
|
+
// Don't fail immediately: the client auto-reconnects (and the open handler
|
|
384
|
+
// re-subscribes this session's listeners), so give it a ~12s grace window.
|
|
385
|
+
// Only if the socket is still down when the timer expires do we surface the
|
|
386
|
+
// error and end the iterator instead of hanging forever.
|
|
387
|
+
const WS_GRACE_MS = 12000;
|
|
388
|
+
let graceTimer = null;
|
|
389
|
+
const onWs = (s) => {
|
|
390
|
+
if (done) return;
|
|
391
|
+
if (s === 'open') {
|
|
392
|
+
// Reconnected in time - the open handler already re-subscribed us.
|
|
393
|
+
if (graceTimer) { clearTimeout(graceTimer); graceTimer = null; }
|
|
394
|
+
// streaming_complete is fire-and-forget with no replay: if the turn
|
|
395
|
+
// finished while the socket was down, no terminal frame will ever
|
|
396
|
+
// arrive. Verify the session is still alive server-side; if it is
|
|
397
|
+
// gone, settle the iterator with a plain incomplete marker instead of
|
|
398
|
+
// hanging busy forever.
|
|
399
|
+
wsCall(base, 'chat.active', {}).then((d) => {
|
|
400
|
+
if (done) return;
|
|
401
|
+
const sessions = (d && d.sessions) || [];
|
|
402
|
+
const alive = Array.isArray(sessions) && sessions.some(x => x && x.sessionId === sessionId);
|
|
403
|
+
if (!alive) {
|
|
404
|
+
errored = errored || 'connection dropped mid-turn - the response may be incomplete; events were not replayed';
|
|
405
|
+
finish();
|
|
406
|
+
}
|
|
407
|
+
}).catch(() => {});
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
if ((s === 'closed' || s === 'error') && !graceTimer) {
|
|
411
|
+
graceTimer = setTimeout(() => {
|
|
412
|
+
graceTimer = null;
|
|
413
|
+
if (!done) { errored = errored || 'connection lost during stream'; finish(); }
|
|
414
|
+
}, WS_GRACE_MS);
|
|
415
|
+
}
|
|
416
|
+
};
|
|
336
417
|
const unsubWs = onWsStatus ? onWsStatus(onWs) : null;
|
|
337
418
|
|
|
338
419
|
// Wire AbortSignal to chat.cancel - and end the iterator immediately so the
|
|
@@ -354,6 +435,7 @@ export async function* streamChat(base, { model, messages, signal, agentId, resu
|
|
|
354
435
|
if (errored) yield { type: 'error', error: errored };
|
|
355
436
|
} finally {
|
|
356
437
|
unsub();
|
|
438
|
+
if (graceTimer) { clearTimeout(graceTimer); graceTimer = null; }
|
|
357
439
|
if (typeof unsubWs === 'function') unsubWs();
|
|
358
440
|
if (signal) signal.removeEventListener?.('abort', onAbort);
|
|
359
441
|
}
|
|
@@ -1700,6 +1700,19 @@
|
|
|
1700
1700
|
.ds-247420 .ds-upload-item.done .ds-upload-pct { color: var(--success); }
|
|
1701
1701
|
.ds-247420 .ds-upload-item.error .ds-upload-fill { background: var(--warn); }
|
|
1702
1702
|
.ds-247420 .ds-upload-item.error .ds-upload-pct { color: var(--warn); }
|
|
1703
|
+
/* Per-row upload recovery actions (replace / dismiss) — error rows are not dead ends. */
|
|
1704
|
+
.ds-247420 .ds-upload-item { grid-template-columns: minmax(0, 1fr) 120px 44px auto; }
|
|
1705
|
+
.ds-247420 .ds-upload-actions { display: inline-flex; gap: var(--space-1); justify-content: flex-end; }
|
|
1706
|
+
.ds-247420 .ds-upload-act {
|
|
1707
|
+
padding: 2px 10px; min-height: 24px; cursor: pointer;
|
|
1708
|
+
background: var(--bg); border: var(--bw-hair) solid var(--rule); border-radius: var(--r-1);
|
|
1709
|
+
color: var(--fg-2); font-family: var(--ff-body); font-size: var(--fs-micro);
|
|
1710
|
+
}
|
|
1711
|
+
.ds-247420 .ds-upload-act:hover { background: var(--bg-3); color: var(--fg); }
|
|
1712
|
+
.ds-247420 .ds-upload-act:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
1713
|
+
@media (hover: none), (pointer: coarse) {
|
|
1714
|
+
.ds-247420 .ds-upload-act { min-height: 44px; min-width: 44px; }
|
|
1715
|
+
}
|
|
1703
1716
|
|
|
1704
1717
|
/* Empty state */
|
|
1705
1718
|
.ds-247420 .ds-file-empty {
|
|
@@ -1757,6 +1770,14 @@
|
|
|
1757
1770
|
font-family: inherit; font-size: var(--fs-sm);
|
|
1758
1771
|
}
|
|
1759
1772
|
.ds-247420 .ds-modal-input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
1773
|
+
/* In-body modal error (role=alert): mutation failures (409/403) surface INSIDE
|
|
1774
|
+
the dialog, not behind the fixed overlay. */
|
|
1775
|
+
.ds-247420 .ds-modal-error {
|
|
1776
|
+
margin: var(--space-2) 0 0; padding: 8px 10px;
|
|
1777
|
+
border: var(--bw-hair) solid var(--flame); border-radius: var(--r-2);
|
|
1778
|
+
background: color-mix(in oklab, var(--flame) 12%, var(--bg));
|
|
1779
|
+
color: var(--flame); font-size: var(--fs-xs);
|
|
1780
|
+
}
|
|
1760
1781
|
.ds-247420 .btn-primary.danger {
|
|
1761
1782
|
background: var(--warn);
|
|
1762
1783
|
border-color: var(--warn);
|
|
@@ -1886,10 +1907,12 @@
|
|
|
1886
1907
|
.ds-247420 .ds-file-row:hover .ds-file-check,
|
|
1887
1908
|
.ds-247420 .ds-file-row:focus-within .ds-file-check,
|
|
1888
1909
|
.ds-247420 .ds-file-check.on { opacity: 1; }
|
|
1889
|
-
/* Touch / coarse-pointer devices have no hover — keep checkboxes
|
|
1890
|
-
|
|
1910
|
+
/* Touch / coarse-pointer devices have no hover — keep checkboxes AND the
|
|
1911
|
+
per-row action buttons (rename/delete/download) visible so the file manager
|
|
1912
|
+
is fully reachable without a pointer (e.g. an iPad in landscape). */
|
|
1891
1913
|
@media (hover: none), (pointer: coarse) {
|
|
1892
1914
|
.ds-247420 .ds-file-check { opacity: 1; }
|
|
1915
|
+
.ds-247420 .ds-file-actions { opacity: 1; }
|
|
1893
1916
|
}
|
|
1894
1917
|
.ds-247420 .ds-file-check.on { background: var(--accent); border-color: var(--accent); }
|
|
1895
1918
|
.ds-247420 .ds-file-row.selected {
|
|
@@ -3300,6 +3323,48 @@
|
|
|
3300
3323
|
.ds-247420 .ws-drawer-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
3301
3324
|
.ds-247420 .ws-scrim { display: none; }
|
|
3302
3325
|
|
|
3326
|
+
/* ============================================================
|
|
3327
|
+
Row title highlight, expanded-row actions, filter pills.
|
|
3328
|
+
============================================================ */
|
|
3329
|
+
|
|
3330
|
+
/* Highlighted match inside a Row title (Row `highlight` prop). */
|
|
3331
|
+
.ds-247420 .ds-hl { background: color-mix(in oklab, var(--accent) 25%, transparent); color: inherit; border-radius: 2px; }
|
|
3332
|
+
|
|
3333
|
+
/* Action strip rendered inside an EXPANDED Row (Row `actions` prop). The
|
|
3334
|
+
buttons stop propagation so they never fire the row onClick. */
|
|
3335
|
+
.ds-247420 .row-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); width: 100%; padding-top: var(--space-2); }
|
|
3336
|
+
.ds-247420 .row-act {
|
|
3337
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
3338
|
+
padding: 4px 10px; min-height: 28px;
|
|
3339
|
+
background: var(--bg-2); border: var(--bw-hair) solid var(--bg-3); border-radius: var(--r-1);
|
|
3340
|
+
color: var(--fg-2); font-family: var(--ff-body); font-size: var(--fs-tiny); cursor: pointer;
|
|
3341
|
+
transition: background var(--dur-snap) var(--ease), color var(--dur-snap) var(--ease);
|
|
3342
|
+
}
|
|
3343
|
+
.ds-247420 .row-act:hover { background: var(--bg-3); color: var(--fg); }
|
|
3344
|
+
.ds-247420 .row-act:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
3345
|
+
|
|
3346
|
+
/* FilterPills - a group of pill toggle buttons (aria-pressed). */
|
|
3347
|
+
.ds-247420 .ds-filter-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
|
|
3348
|
+
.ds-247420 .ds-filter-pill {
|
|
3349
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
3350
|
+
padding: 4px 12px; min-height: 28px;
|
|
3351
|
+
background: var(--bg-2); border: var(--bw-hair) solid var(--bg-3); border-radius: 999px;
|
|
3352
|
+
color: var(--fg-2); font-family: var(--ff-body); font-size: var(--fs-tiny); cursor: pointer;
|
|
3353
|
+
transition: background var(--dur-snap) var(--ease), color var(--dur-snap) var(--ease);
|
|
3354
|
+
}
|
|
3355
|
+
.ds-247420 .ds-filter-pill:hover { background: var(--bg-3); color: var(--fg); }
|
|
3356
|
+
.ds-247420 .ds-filter-pill.active { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); }
|
|
3357
|
+
.ds-247420 .ds-filter-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
3358
|
+
|
|
3359
|
+
/* Touch floor for the new small controls. */
|
|
3360
|
+
@media (pointer: coarse) {
|
|
3361
|
+
.ds-247420 .row-act, .ds-247420 .ds-filter-pill { min-height: 44px; }
|
|
3362
|
+
}
|
|
3363
|
+
|
|
3364
|
+
/* Disabled file actions (read-only row / in-flight mutation) stay visible but inert. */
|
|
3365
|
+
.ds-247420 .ds-file-act:disabled { opacity: .45; cursor: default; }
|
|
3366
|
+
.ds-247420 .ds-file-act:disabled:hover { background: transparent; color: var(--fg-3); }
|
|
3367
|
+
|
|
3303
3368
|
/* community.css */
|
|
3304
3369
|
/* ============================================================
|
|
3305
3370
|
247420 design system — community surface (Discord-style chat)
|
|
@@ -5021,6 +5086,50 @@
|
|
|
5021
5086
|
.ds-247420 .agentchat-empty-suggestion:hover { background: color-mix(in srgb, var(--accent, var(--fg)) 12%, transparent); }
|
|
5022
5087
|
.ds-247420 .agentchat-empty-suggestion:focus-visible { outline: 2px solid var(--accent, var(--fg)); outline-offset: 2px; }
|
|
5023
5088
|
|
|
5089
|
+
/* Guided install path in the empty state: copy line + monospaced command rows
|
|
5090
|
+
(each with its own copy button) + a recheck button. No animation. */
|
|
5091
|
+
.ds-247420 .agentchat-install {
|
|
5092
|
+
margin-top: var(--space-4, 16px);
|
|
5093
|
+
display: flex;
|
|
5094
|
+
flex-direction: column;
|
|
5095
|
+
gap: var(--space-2, 8px);
|
|
5096
|
+
text-align: left;
|
|
5097
|
+
width: 100%;
|
|
5098
|
+
}
|
|
5099
|
+
.ds-247420 .agentchat-install-text { margin: 0; font-size: .9em; color: var(--fg-3); }
|
|
5100
|
+
.ds-247420 .agentchat-install-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-1, 4px); }
|
|
5101
|
+
.ds-247420 .agentchat-install-row {
|
|
5102
|
+
display: flex; align-items: center; gap: var(--space-2, 8px);
|
|
5103
|
+
padding: var(--space-1, 4px) var(--space-2, 8px);
|
|
5104
|
+
border: var(--bw-hair) solid var(--rule);
|
|
5105
|
+
border-radius: var(--r-1, 4px);
|
|
5106
|
+
background: var(--bg-2);
|
|
5107
|
+
}
|
|
5108
|
+
.ds-247420 .agentchat-install-agent { flex: 0 0 auto; font-size: var(--fs-tiny); color: var(--fg-3); min-width: 8ch; }
|
|
5109
|
+
.ds-247420 .agentchat-install-cmd {
|
|
5110
|
+
flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
5111
|
+
font-family: var(--ff-mono); font-size: var(--fs-sm); color: var(--fg-2, var(--fg));
|
|
5112
|
+
}
|
|
5113
|
+
.ds-247420 .agentchat-install-copy {
|
|
5114
|
+
flex: 0 0 auto; cursor: pointer; padding: 2px 8px; min-height: 24px;
|
|
5115
|
+
border: var(--bw-hair) solid var(--bg-3); border-radius: var(--r-1, 4px);
|
|
5116
|
+
background: none; color: var(--fg-3);
|
|
5117
|
+
font-family: var(--ff-body); font-size: var(--fs-tiny);
|
|
5118
|
+
}
|
|
5119
|
+
.ds-247420 .agentchat-install-copy:hover { background: var(--bg-3); color: var(--fg); }
|
|
5120
|
+
.ds-247420 .agentchat-install-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
5121
|
+
.ds-247420 .agentchat-install-actions { display: flex; justify-content: flex-start; }
|
|
5122
|
+
|
|
5123
|
+
/* Host-supplied transcript export actions riding the controls row. */
|
|
5124
|
+
.ds-247420 .agentchat-export-act {
|
|
5125
|
+
cursor: pointer; padding: 4px 10px; min-height: 32px;
|
|
5126
|
+
border: var(--bw-hair) solid var(--bg-3); border-radius: var(--r-1, 4px);
|
|
5127
|
+
background: none; color: var(--fg-3);
|
|
5128
|
+
font-family: var(--ff-body); font-size: var(--fs-tiny);
|
|
5129
|
+
}
|
|
5130
|
+
.ds-247420 .agentchat-export-act:hover { background: var(--bg-2); color: var(--fg); }
|
|
5131
|
+
.ds-247420 .agentchat-export-act:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
5132
|
+
|
|
5024
5133
|
/* "working" tail: a long silent tool call shouldn't read as frozen. */
|
|
5025
5134
|
.ds-247420 .agentchat-working {
|
|
5026
5135
|
display: flex;
|
|
@@ -5303,8 +5412,123 @@
|
|
|
5303
5412
|
.ds-247420 .chat-msg-action { min-width: 44px; height: 44px; }
|
|
5304
5413
|
.ds-247420 .ds-dash-select { min-width: 44px; min-height: 44px; }
|
|
5305
5414
|
.ds-247420 .ds-file-more-btn, .ds-247420 .ds-roots-tab, .ds-247420 .ds-dash-errors-toggle { min-height: 44px; }
|
|
5415
|
+
.ds-247420 .agentchat-export-act { min-height: 44px; }
|
|
5416
|
+
.ds-247420 .agentchat-install-copy { min-height: 44px; min-width: 44px; }
|
|
5417
|
+
}
|
|
5418
|
+
|
|
5419
|
+
/* --- SessionMeta: middot-separated session metadata strip. Class is
|
|
5420
|
+
.ds-session-meta-strip (.ds-session-meta is taken by ConversationList row
|
|
5421
|
+
meta above). Wraps at narrow widths. --- */
|
|
5422
|
+
.ds-247420 .ds-session-meta-strip {
|
|
5423
|
+
display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
|
|
5424
|
+
font-size: var(--fs-tiny); color: var(--fg-3);
|
|
5425
|
+
}
|
|
5426
|
+
.ds-247420 .ds-session-meta-item { display: inline-flex; align-items: center; gap: var(--space-1); min-width: 0; }
|
|
5427
|
+
.ds-247420 .ds-session-meta-item + .ds-session-meta-item::before { content: '\00B7'; color: var(--fg-3); margin-right: var(--space-1); }
|
|
5428
|
+
.ds-247420 .ds-session-meta-label { color: var(--fg-3); }
|
|
5429
|
+
.ds-247420 .ds-session-meta-value { font-family: var(--ff-mono); color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
5430
|
+
.ds-247420 .ds-session-meta-copy {
|
|
5431
|
+
padding: 2px 8px; min-height: 24px; cursor: pointer;
|
|
5432
|
+
background: var(--bg-2); border: var(--bw-hair) solid var(--bg-3); border-radius: var(--r-1);
|
|
5433
|
+
color: var(--fg-3); font-family: var(--ff-body); font-size: var(--fs-micro);
|
|
5434
|
+
}
|
|
5435
|
+
.ds-247420 .ds-session-meta-copy:hover { background: var(--bg-3); color: var(--fg); }
|
|
5436
|
+
.ds-247420 .ds-session-meta-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
5437
|
+
@media (pointer: coarse), (max-width: 640px) {
|
|
5438
|
+
.ds-247420 .ds-session-meta-copy { min-height: 44px; min-width: 44px; }
|
|
5439
|
+
}
|
|
5440
|
+
|
|
5441
|
+
/* ============================================================================
|
|
5442
|
+
Logic/predictability sweep (2026-06-10): composer ergonomics, turn notices,
|
|
5443
|
+
windowed thread, dashboard stopping/external states, cwd validation.
|
|
5444
|
+
============================================================================ */
|
|
5445
|
+
|
|
5446
|
+
/* Enter-to-send hint: visible while the composer is focused or carries a
|
|
5447
|
+
draft; hidden under 420px to save rows. */
|
|
5448
|
+
.ds-247420 .chat-composer-hint {
|
|
5449
|
+
display: none; padding: 2px var(--space-3) 0;
|
|
5450
|
+
font-size: var(--fs-micro); color: var(--fg-3);
|
|
5451
|
+
}
|
|
5452
|
+
.ds-247420 .chat-composer:focus-within .chat-composer-hint,
|
|
5453
|
+
.ds-247420 .chat-composer.has-draft .chat-composer-hint { display: block; }
|
|
5454
|
+
@media (max-width: 420px) {
|
|
5455
|
+
.ds-247420 .chat-composer .chat-composer-hint { display: none; }
|
|
5456
|
+
}
|
|
5457
|
+
|
|
5458
|
+
/* Transient composer note (paste/drop not supported), aria-live polite. */
|
|
5459
|
+
.ds-247420 .chat-composer-note {
|
|
5460
|
+
padding: 4px var(--space-3); font-size: var(--fs-tiny); color: var(--fg-2);
|
|
5461
|
+
}
|
|
5462
|
+
|
|
5463
|
+
/* Drag-over ring: token accent, never a hex. */
|
|
5464
|
+
.ds-247420 .chat-composer.dragover { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r-2); }
|
|
5465
|
+
|
|
5466
|
+
/* Per-bit composer context: only the bit that owns a control is a button. */
|
|
5467
|
+
.ds-247420 .chat-composer-context-bit {
|
|
5468
|
+
display: inline; padding: 0; margin: 0;
|
|
5469
|
+
background: none; border: none; cursor: pointer;
|
|
5470
|
+
font: inherit; color: inherit; text-decoration: underline dotted;
|
|
5471
|
+
}
|
|
5472
|
+
.ds-247420 .chat-composer-context-bit:hover { color: var(--fg-2); }
|
|
5473
|
+
.ds-247420 .chat-composer-context-bit:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
5474
|
+
@media (pointer: coarse) {
|
|
5475
|
+
.ds-247420 .chat-composer-context-bit { min-height: 44px; }
|
|
5476
|
+
}
|
|
5477
|
+
|
|
5478
|
+
/* Out-of-band turn notices: neutral tone (NOT error red) — a stopped or
|
|
5479
|
+
incomplete turn must not read as a finished answer. */
|
|
5480
|
+
.ds-247420 .chat-msg-notice {
|
|
5481
|
+
margin-top: var(--space-1); padding: 6px 10px;
|
|
5482
|
+
border: var(--bw-hair) solid var(--rule); border-radius: var(--r-2);
|
|
5483
|
+
background: var(--bg-2); color: var(--fg-2); font-size: var(--fs-tiny);
|
|
5484
|
+
}
|
|
5485
|
+
.ds-247420 .chat-msg-notice.is-incomplete { border-style: dashed; }
|
|
5486
|
+
|
|
5487
|
+
/* Tail-window streaming head ('streaming · N KB so far'). */
|
|
5488
|
+
.ds-247420 .chat-stream-head {
|
|
5489
|
+
padding: 2px 0 6px; font-family: var(--ff-mono);
|
|
5490
|
+
font-size: var(--fs-micro); color: var(--fg-3);
|
|
5491
|
+
}
|
|
5492
|
+
|
|
5493
|
+
/* Windowed thread: 'show N earlier turns' control at the top. */
|
|
5494
|
+
.ds-247420 .agentchat-earlier {
|
|
5495
|
+
display: flex; align-items: center; justify-content: center;
|
|
5496
|
+
gap: var(--space-3); padding: var(--space-2) var(--space-3);
|
|
5497
|
+
}
|
|
5498
|
+
.ds-247420 .agentchat-earlier-count { font-size: var(--fs-tiny); color: var(--fg-3); }
|
|
5499
|
+
.ds-247420 .agentchat-earlier-btn {
|
|
5500
|
+
padding: 4px 12px; min-height: 32px; border: var(--bw-hair) solid var(--bg-3);
|
|
5501
|
+
border-radius: var(--r-1); background: var(--bg-2); color: var(--fg-2); cursor: pointer;
|
|
5502
|
+
font-family: var(--ff-body); font-size: var(--fs-tiny);
|
|
5503
|
+
}
|
|
5504
|
+
.ds-247420 .agentchat-earlier-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
5505
|
+
@media (pointer: coarse) {
|
|
5506
|
+
.ds-247420 .agentchat-earlier-btn { min-height: 44px; }
|
|
5507
|
+
}
|
|
5508
|
+
|
|
5509
|
+
/* Inline cwd validation line (checking / error) under the cwd input. */
|
|
5510
|
+
.ds-247420 .agentchat-cwd-hint { font-size: var(--fs-tiny); color: var(--fg-3); }
|
|
5511
|
+
.ds-247420 .agentchat-cwd-hint.is-error { color: var(--flame); }
|
|
5512
|
+
|
|
5513
|
+
/* Dashboard: shared session title heading (same string as the rails). */
|
|
5514
|
+
.ds-247420 .ds-dash-title {
|
|
5515
|
+
font-size: var(--fs-body); font-weight: 600; color: var(--fg);
|
|
5516
|
+
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
5306
5517
|
}
|
|
5307
5518
|
|
|
5519
|
+
/* Stopping state: in-flight cancel reads distinctly from running/error. */
|
|
5520
|
+
.ds-247420 .ds-dash-status.is-stopping { color: var(--amber, #d9a93a); }
|
|
5521
|
+
|
|
5522
|
+
/* External (observed, not owned) session card: no stop control exists. */
|
|
5523
|
+
.ds-247420 .ds-dash-external {
|
|
5524
|
+
padding: 1px 6px; border: var(--bw-hair) solid var(--bg-3); border-radius: var(--r-pill);
|
|
5525
|
+
font-size: var(--fs-micro); color: var(--fg-3); text-transform: uppercase; letter-spacing: .03em;
|
|
5526
|
+
}
|
|
5527
|
+
.ds-247420 .ds-dash-card.is-external { border-style: dashed; }
|
|
5528
|
+
|
|
5529
|
+
/* One connection vocabulary: offline (is-lost kept as legacy alias). */
|
|
5530
|
+
.ds-247420 .ds-dash-stream.is-offline { color: var(--flame); }
|
|
5531
|
+
|
|
5308
5532
|
/* editor-primitives.css */
|
|
5309
5533
|
/* editor-primitives.css — chrome for in-engine editors, inspectors, IDEs,
|
|
5310
5534
|
debug HUDs. All rules under .ds-247420 scope (build prefixes). Tokens
|