@clagentic/console 1.12.0-beta.2 → 1.12.0
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/LICENSES/README.md +5 -0
- package/bin/cli.js +4 -2
- package/lib/agent-roster-ws.js +84 -0
- package/lib/agent-roster.js +312 -0
- package/lib/auth-required-notify.js +42 -0
- package/lib/build-sha.json +2 -2
- package/lib/build-update-notify.js +45 -0
- package/lib/build-update-offer.js +3 -4
- package/lib/build-update-standing.js +34 -14
- package/lib/cli/session-subcommands.js +26 -8
- package/lib/client-address.js +44 -0
- package/lib/daemon.js +25 -10
- package/lib/idle-compaction-setting.js +203 -0
- package/lib/mcp-bridge-credential.js +41 -0
- package/lib/notification-prefs.js +16 -22
- package/lib/notify/core.js +53 -18
- package/lib/notify/payload.js +2 -3
- package/lib/notify/type-registry.js +17 -0
- package/lib/notify/types.js +38 -1
- package/lib/outbound-access.js +12 -1
- package/lib/outbound-entry.js +8 -1
- package/lib/project-connection.js +9 -8
- package/lib/project-filesystem.js +23 -0
- package/lib/project-loop.js +16 -19
- package/lib/project-notifications.js +68 -7
- package/lib/project-sessions.js +9 -0
- package/lib/project-user-mention.js +22 -34
- package/lib/project-user-message.js +208 -4
- package/lib/project-user-shell.js +298 -0
- package/lib/project.js +26 -4
- package/lib/prompt-answer.js +145 -0
- package/lib/prompt-expiry.js +50 -0
- package/lib/prompt-registry.js +24 -1
- package/lib/prompt-source.js +16 -0
- package/lib/public/app.js +31 -2
- package/lib/public/css/agent-messages.css +96 -0
- package/lib/public/css/agent-roster.css +93 -0
- package/lib/public/css/diagnostics.css +1 -1
- package/lib/public/css/input.css +20 -141
- package/lib/public/css/login-panel.css +73 -0
- package/lib/public/css/menus.css +2 -2
- package/lib/public/css/sidebar.css +11 -0
- package/lib/public/css/team-panel.css +1 -6
- package/lib/public/css/team-view.css +101 -0
- package/lib/public/css/title-bar.css +10 -0
- package/lib/public/css/user-shell.css +144 -0
- package/lib/public/index.html +41 -7
- package/lib/public/modules/agent-avatar-picker.js +162 -0
- package/lib/public/modules/agent-avatar.js +153 -0
- package/lib/public/modules/agent-messages.js +285 -0
- package/lib/public/modules/agent-roster.js +157 -0
- package/lib/public/modules/app-connection.js +12 -0
- package/lib/public/modules/app-messages.js +55 -16
- package/lib/public/modules/app-notifications.js +59 -29
- package/lib/public/modules/app-panels.js +26 -3
- package/lib/public/modules/app-rate-limit.js +8 -165
- package/lib/public/modules/app-rendering.js +22 -7
- package/lib/public/modules/collapsible-text.js +33 -18
- package/lib/public/modules/compaction-state.js +34 -0
- package/lib/public/modules/custom-icons.js +23 -5
- package/lib/public/modules/diagnostics.js +52 -55
- package/lib/public/modules/injected-identity.js +24 -21
- package/lib/public/modules/input.js +176 -15
- package/lib/public/modules/login-panel.js +136 -0
- package/lib/public/modules/login-parser.js +73 -0
- package/lib/public/modules/login-tab.js +66 -0
- package/lib/public/modules/notifications.js +9 -1
- package/lib/public/modules/notify-client.js +114 -21
- package/lib/public/modules/pending-term-request.js +30 -0
- package/lib/public/modules/project-icon.js +22 -2
- package/lib/public/modules/queued-button.js +11 -0
- package/lib/public/modules/scheduled-input-actions.js +12 -4
- package/lib/public/modules/scheduled-outbox.js +230 -0
- package/lib/public/modules/send-now.js +200 -0
- package/lib/public/modules/server-settings.js +47 -1
- package/lib/public/modules/shell-card.js +76 -0
- package/lib/public/modules/shell-line.js +49 -0
- package/lib/public/modules/shell-queue.js +253 -0
- package/lib/public/modules/shell-settings-controls.js +76 -0
- package/lib/public/modules/sidebar-mobile.js +3 -3
- package/lib/public/modules/sidebar-sessions.js +8 -0
- package/lib/public/modules/sidebar-users.js +5 -7
- package/lib/public/modules/team-panel.js +30 -88
- package/lib/public/modules/team-view.js +211 -0
- package/lib/public/modules/terminal-links.js +18 -0
- package/lib/public/modules/terminal.js +65 -4
- package/lib/public/modules/tools.js +19 -0
- package/lib/public/modules/user-shell.js +824 -0
- package/lib/public/notify-sw-logic.js +35 -83
- package/lib/public/notify-target.js +70 -10
- package/lib/public/style.css +5 -0
- package/lib/public/sw.js +7 -3
- package/lib/queued-chat.js +392 -0
- package/lib/scheduled-input/ws.js +67 -9
- package/lib/sdk-bridge.js +122 -43
- package/lib/sdk-message-processor.js +46 -39
- package/lib/server-auth.js +6 -4
- package/lib/server-dm.js +11 -20
- package/lib/server-settings.js +39 -1
- package/lib/server.js +83 -19
- package/lib/session-directory.js +33 -8
- package/lib/session-end.js +97 -0
- package/lib/session-input-ipc.js +26 -0
- package/lib/session-input.js +176 -9
- package/lib/session-resume.js +1 -0
- package/lib/session-settings-file.js +53 -0
- package/lib/sessions.js +49 -5
- package/lib/team-traffic-ws.js +68 -0
- package/lib/team-traffic.js +318 -0
- package/lib/usage-store.js +7 -0
- package/lib/user-shell-settings.js +105 -0
- package/lib/ws-schema.js +27 -4
- package/lib/yoke/adapters/claude-capabilities.js +2 -0
- package/lib/yoke/adapters/claude-vendor.js +6 -0
- package/lib/yoke/adapters/claude-worker.js +39 -11
- package/lib/yoke/adapters/claude.js +218 -6
- package/lib/yoke/adapters/codex-capabilities.js +6 -1
- package/lib/yoke/adapters/codex-user-shell.js +265 -0
- package/lib/yoke/adapters/codex-vendor.js +7 -0
- package/lib/yoke/adapters/codex.js +186 -52
- package/lib/yoke/codex-app-server.js +8 -2
- package/lib/yoke/interface.js +54 -1
- package/lib/yoke/mcp-bridge-server.js +12 -8
- package/lib/yoke/registry.js +32 -0
- package/lib/yoke/user-shell.js +224 -0
- package/package.json +1 -1
- package/lib/public/modules/build-notice-gate.js +0 -73
package/lib/public/css/input.css
CHANGED
|
@@ -754,6 +754,9 @@
|
|
|
754
754
|
justify-content: center;
|
|
755
755
|
transition: background 0.15s, opacity 0.15s;
|
|
756
756
|
touch-action: manipulation;
|
|
757
|
+
/* A long press is send-now on touch (send-now.js): no text-selection or callout. */
|
|
758
|
+
-webkit-touch-callout: none;
|
|
759
|
+
user-select: none;
|
|
757
760
|
}
|
|
758
761
|
|
|
759
762
|
#send-btn .lucide {
|
|
@@ -774,6 +777,13 @@
|
|
|
774
777
|
opacity: 0.7;
|
|
775
778
|
}
|
|
776
779
|
|
|
780
|
+
.msg-sent-midturn {
|
|
781
|
+
display: block;
|
|
782
|
+
margin-top: 4px;
|
|
783
|
+
font-size: 11px;
|
|
784
|
+
opacity: 0.7;
|
|
785
|
+
}
|
|
786
|
+
|
|
777
787
|
/* ==========================================================================
|
|
778
788
|
Slash Command Autocomplete
|
|
779
789
|
========================================================================== */
|
|
@@ -1280,55 +1290,7 @@
|
|
|
1280
1290
|
}
|
|
1281
1291
|
.schedule-list-text { word-break: break-word; }
|
|
1282
1292
|
|
|
1283
|
-
/*
|
|
1284
|
-
.scheduled-msg-wrap .bubble {
|
|
1285
|
-
background: color-mix(in srgb, var(--accent) 18%, var(--user-bubble, var(--bg-alt)));
|
|
1286
|
-
border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
.scheduled-msg-wrap .msg-user-rewind-btn,
|
|
1290
|
-
.scheduled-msg-wrap .msg-actions { display: none !important; }
|
|
1291
|
-
|
|
1292
|
-
.scheduled-msg-meta {
|
|
1293
|
-
display: flex;
|
|
1294
|
-
align-items: center;
|
|
1295
|
-
gap: 6px;
|
|
1296
|
-
padding-right: 4px;
|
|
1297
|
-
font-size: 12px;
|
|
1298
|
-
color: var(--accent);
|
|
1299
|
-
}
|
|
1300
|
-
|
|
1301
|
-
.scheduled-msg-icon svg,
|
|
1302
|
-
.scheduled-msg-icon .lucide {
|
|
1303
|
-
width: 14px;
|
|
1304
|
-
height: 14px;
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
.scheduled-msg-countdown {
|
|
1308
|
-
flex: 1;
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
/* Channel mode: scheduled badge in header row */
|
|
1313
|
-
.scheduled-msg-badge {
|
|
1314
|
-
display: inline-flex;
|
|
1315
|
-
align-items: center;
|
|
1316
|
-
gap: 5px;
|
|
1317
|
-
padding: 3px 10px;
|
|
1318
|
-
border-radius: 12px;
|
|
1319
|
-
font-size: 12px;
|
|
1320
|
-
font-weight: 600;
|
|
1321
|
-
line-height: 1;
|
|
1322
|
-
color: var(--accent);
|
|
1323
|
-
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
|
1324
|
-
vertical-align: middle;
|
|
1325
|
-
}
|
|
1326
|
-
.scheduled-msg-badge svg,
|
|
1327
|
-
.scheduled-msg-badge .lucide {
|
|
1328
|
-
width: 13px;
|
|
1329
|
-
height: 13px;
|
|
1330
|
-
}
|
|
1331
|
-
/* Scheduled message action links (shared by both modes) */
|
|
1293
|
+
/* Send now and Cancel links of the schedule panel's list rows */
|
|
1332
1294
|
.scheduled-msg-actions {
|
|
1333
1295
|
display: inline-flex;
|
|
1334
1296
|
align-items: center;
|
|
@@ -1369,35 +1331,19 @@
|
|
|
1369
1331
|
color: var(--error);
|
|
1370
1332
|
}
|
|
1371
1333
|
|
|
1372
|
-
/*
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
box-shadow: none;
|
|
1377
|
-
padding: 0;
|
|
1378
|
-
border-radius: 0;
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
/* Channel mode: header alignment */
|
|
1382
|
-
body.wide-view .scheduled-msg-wrap .dm-bubble-header {
|
|
1383
|
-
display: flex;
|
|
1384
|
-
align-items: center;
|
|
1385
|
-
gap: 6px;
|
|
1386
|
-
}
|
|
1387
|
-
body.wide-view .scheduled-msg-wrap .scheduled-msg-countdown {
|
|
1388
|
-
font-size: inherit;
|
|
1389
|
-
color: inherit;
|
|
1390
|
-
}
|
|
1391
|
-
|
|
1392
|
-
/* Collapsible text: a pending scheduled input and a long fired one. Collapsed
|
|
1393
|
-
shows the first line only, cut by CSS so the text itself stays whole. */
|
|
1334
|
+
/* Collapsible text: long input pushed into a session. Collapsed shows about
|
|
1335
|
+
three lines, clamped by CSS so the text itself stays whole. */
|
|
1336
|
+
.collapsible-text .collapsible-preview,
|
|
1337
|
+
.collapsible-text .collapsible-full { white-space: pre-wrap; }
|
|
1394
1338
|
.collapsible-text.is-collapsed .collapsible-full { display: none; }
|
|
1395
1339
|
.collapsible-text:not(.is-collapsed):not(.collapsible-single) .collapsible-preview { display: none; }
|
|
1396
1340
|
.collapsible-text.is-collapsed .collapsible-preview {
|
|
1397
|
-
display:
|
|
1398
|
-
|
|
1341
|
+
display: -webkit-box;
|
|
1342
|
+
-webkit-box-orient: vertical;
|
|
1343
|
+
-webkit-line-clamp: 3;
|
|
1344
|
+
line-clamp: 3;
|
|
1399
1345
|
overflow: hidden;
|
|
1400
|
-
|
|
1346
|
+
overflow-wrap: anywhere;
|
|
1401
1347
|
}
|
|
1402
1348
|
.collapsible-toggle {
|
|
1403
1349
|
padding: 0;
|
|
@@ -1414,70 +1360,3 @@ body.wide-view .scheduled-msg-wrap .scheduled-msg-countdown {
|
|
|
1414
1360
|
.collapsible-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
1415
1361
|
.collapsible-toggle-fired { align-self: flex-start; margin-top: 2px; }
|
|
1416
1362
|
|
|
1417
|
-
/* A collapsed pending card is one row: send time and actions, then the first
|
|
1418
|
-
line taking the rest of the width. Bubble view and channel view. */
|
|
1419
|
-
.scheduled-msg-wrap.is-collapsed:not(.dm-bubble-content) {
|
|
1420
|
-
flex-direction: row;
|
|
1421
|
-
align-items: center;
|
|
1422
|
-
gap: 8px;
|
|
1423
|
-
}
|
|
1424
|
-
.scheduled-msg-wrap.is-collapsed .scheduled-msg-meta { order: -1; flex: 0 1 auto; min-width: 0; padding-right: 0; }
|
|
1425
|
-
.scheduled-msg-wrap.is-collapsed .scheduled-msg-countdown {
|
|
1426
|
-
flex: 0 1 auto;
|
|
1427
|
-
min-width: 0;
|
|
1428
|
-
overflow: hidden;
|
|
1429
|
-
text-overflow: ellipsis;
|
|
1430
|
-
white-space: nowrap;
|
|
1431
|
-
}
|
|
1432
|
-
.scheduled-msg-wrap.is-collapsed .bubble {
|
|
1433
|
-
flex: 1 1 0;
|
|
1434
|
-
min-width: 0;
|
|
1435
|
-
max-width: none;
|
|
1436
|
-
padding: 4px 12px;
|
|
1437
|
-
}
|
|
1438
|
-
.scheduled-msg-wrap.is-collapsed .dm-bubble-content {
|
|
1439
|
-
flex-direction: row;
|
|
1440
|
-
align-items: center;
|
|
1441
|
-
gap: 8px;
|
|
1442
|
-
min-width: 0;
|
|
1443
|
-
flex: 1 1 0;
|
|
1444
|
-
}
|
|
1445
|
-
.scheduled-msg-wrap.is-collapsed .dm-bubble-header { flex: 0 1 auto; min-width: 0; }
|
|
1446
|
-
|
|
1447
|
-
.scheduled-msg-wrap.is-collapsed .scheduled-msg-send-now,
|
|
1448
|
-
.scheduled-msg-wrap.is-collapsed .scheduled-msg-cancel,
|
|
1449
|
-
.scheduled-msg-wrap.is-collapsed .scheduled-msg-sep { white-space: nowrap; flex: none; }
|
|
1450
|
-
.scheduled-msg-wrap.is-collapsed .scheduled-msg-actions { flex: none; margin-left: 0; }
|
|
1451
|
-
.scheduled-msg-wrap.is-collapsed .scheduled-msg-badge { min-width: 0; flex: 0 1 auto; padding: 3px 8px; }
|
|
1452
|
-
.scheduled-msg-wrap.is-collapsed .collapsible-toggle { flex: none; }
|
|
1453
|
-
|
|
1454
|
-
/* Phone widths: index.html pins the narrow-screen column layout of user rows
|
|
1455
|
-
with !important, so the collapsed card overrides it the same way, scoped to
|
|
1456
|
-
itself. A 390px row cannot hold the send time, three actions and a readable
|
|
1457
|
-
prompt, so the card is two compact rows: send time and actions, then the
|
|
1458
|
-
prompt's first line across the full width. */
|
|
1459
|
-
@media (max-width: 768px) {
|
|
1460
|
-
body.wide-view .msg-user.scheduled-msg-wrap.is-collapsed {
|
|
1461
|
-
gap: 0 !important;
|
|
1462
|
-
align-items: stretch !important;
|
|
1463
|
-
}
|
|
1464
|
-
body.wide-view .msg-user.scheduled-msg-wrap.is-collapsed > .dm-bubble-avatar { display: none !important; }
|
|
1465
|
-
body.wide-view .msg-user.scheduled-msg-wrap.is-collapsed .dm-bubble-content {
|
|
1466
|
-
flex-direction: column !important;
|
|
1467
|
-
align-items: stretch !important;
|
|
1468
|
-
gap: 2px !important;
|
|
1469
|
-
min-width: 0 !important;
|
|
1470
|
-
width: 100% !important;
|
|
1471
|
-
}
|
|
1472
|
-
body.wide-view .msg-user.scheduled-msg-wrap.is-collapsed .dm-bubble-name { display: none; }
|
|
1473
|
-
body.wide-view .msg-user.scheduled-msg-wrap.is-collapsed .dm-bubble-header { flex-wrap: nowrap; }
|
|
1474
|
-
body.wide-view .msg-user.scheduled-msg-wrap.is-collapsed .bubble {
|
|
1475
|
-
flex: none !important;
|
|
1476
|
-
max-width: 100% !important;
|
|
1477
|
-
width: auto !important;
|
|
1478
|
-
padding: 0 !important;
|
|
1479
|
-
background: none !important;
|
|
1480
|
-
border: none !important;
|
|
1481
|
-
border-radius: 0 !important;
|
|
1482
|
-
}
|
|
1483
|
-
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* --- Sign-in panel above a login terminal --- */
|
|
2
|
+
.login-panel {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
flex-shrink: 0;
|
|
5
|
+
max-width: 100%;
|
|
6
|
+
padding: 10px 12px;
|
|
7
|
+
background: var(--bg);
|
|
8
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
9
|
+
color: var(--text);
|
|
10
|
+
font-size: 13px;
|
|
11
|
+
overflow-wrap: anywhere;
|
|
12
|
+
}
|
|
13
|
+
.login-panel-head {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
gap: 8px;
|
|
19
|
+
margin-bottom: 4px;
|
|
20
|
+
}
|
|
21
|
+
.login-panel-title { font-weight: 600; min-width: 0; }
|
|
22
|
+
.login-panel-host { color: var(--text-muted); font-size: 12px; margin-bottom: 8px; }
|
|
23
|
+
.login-panel-row {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-wrap: wrap;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: 8px;
|
|
28
|
+
margin-top: 8px;
|
|
29
|
+
min-width: 0;
|
|
30
|
+
}
|
|
31
|
+
.login-panel-btn,
|
|
32
|
+
.login-panel-dismiss {
|
|
33
|
+
min-height: 36px;
|
|
34
|
+
padding: 0 12px;
|
|
35
|
+
border: 1px solid var(--border);
|
|
36
|
+
border-radius: 6px;
|
|
37
|
+
background: transparent;
|
|
38
|
+
color: var(--text);
|
|
39
|
+
font: inherit;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
}
|
|
42
|
+
.login-panel-dismiss { min-height: 28px; padding: 0 8px; color: var(--text-muted); }
|
|
43
|
+
.login-panel-btn:hover,
|
|
44
|
+
.login-panel-dismiss:hover { background: rgba(var(--overlay-rgb), 0.06); }
|
|
45
|
+
.login-panel-label { color: var(--text-muted); }
|
|
46
|
+
.login-panel-code-value {
|
|
47
|
+
font-family: var(--font-mono, monospace);
|
|
48
|
+
font-size: 15px;
|
|
49
|
+
letter-spacing: 0.04em;
|
|
50
|
+
min-width: 0;
|
|
51
|
+
}
|
|
52
|
+
.login-panel-code-input {
|
|
53
|
+
flex: 1 1 10rem;
|
|
54
|
+
min-width: 0;
|
|
55
|
+
max-width: 100%;
|
|
56
|
+
box-sizing: border-box;
|
|
57
|
+
min-height: 36px;
|
|
58
|
+
padding: 0 10px;
|
|
59
|
+
border: 1px solid var(--border);
|
|
60
|
+
border-radius: 6px;
|
|
61
|
+
background: transparent;
|
|
62
|
+
color: var(--text);
|
|
63
|
+
/* 16px stops iOS from zooming the page when the field takes focus. */
|
|
64
|
+
font-size: 16px;
|
|
65
|
+
}
|
|
66
|
+
.login-panel-identity { margin-top: 8px; color: var(--text-muted); font-size: 12px; }
|
|
67
|
+
|
|
68
|
+
@media (max-width: 480px) {
|
|
69
|
+
.login-panel { padding: 10px; }
|
|
70
|
+
.login-panel-links .login-panel-btn,
|
|
71
|
+
.login-panel-shown-code .login-panel-btn,
|
|
72
|
+
.login-panel-code-entry .login-panel-btn { flex: 1 1 100%; }
|
|
73
|
+
}
|
package/lib/public/css/menus.css
CHANGED
|
@@ -785,7 +785,7 @@
|
|
|
785
785
|
#info-panels:empty { display: none; }
|
|
786
786
|
|
|
787
787
|
/* --- Usage panel --- */
|
|
788
|
-
#usage-panel, #status-panel, #context-panel, #
|
|
788
|
+
#usage-panel, #status-panel, #context-panel, #diagnostics-panel {
|
|
789
789
|
background: var(--bg-alt);
|
|
790
790
|
border: 1px solid var(--border);
|
|
791
791
|
border-radius: 12px;
|
|
@@ -794,7 +794,7 @@
|
|
|
794
794
|
pointer-events: auto;
|
|
795
795
|
}
|
|
796
796
|
|
|
797
|
-
#usage-panel.hidden, #status-panel.hidden, #context-panel.hidden, #
|
|
797
|
+
#usage-panel.hidden, #status-panel.hidden, #context-panel.hidden, #diagnostics-panel.hidden { display: none; }
|
|
798
798
|
|
|
799
799
|
.usage-panel-header {
|
|
800
800
|
display: flex;
|
|
@@ -2049,3 +2049,14 @@
|
|
|
2049
2049
|
width: 12px;
|
|
2050
2050
|
height: 12px;
|
|
2051
2051
|
}
|
|
2052
|
+
|
|
2053
|
+
/* Vendor-reported compaction in progress, shown beside the session title. */
|
|
2054
|
+
.session-item .session-compacting {
|
|
2055
|
+
font-size: 10px;
|
|
2056
|
+
margin-right: 6px;
|
|
2057
|
+
padding: 0 5px;
|
|
2058
|
+
border-radius: 8px;
|
|
2059
|
+
color: var(--warning);
|
|
2060
|
+
border: 1px solid var(--warning);
|
|
2061
|
+
white-space: nowrap;
|
|
2062
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* team-view.css - The desktop Team view: a main-panels view that takes the
|
|
2
|
+
place of the chat pane, like project settings. Section content styles live
|
|
3
|
+
in team-panel.css. */
|
|
4
|
+
|
|
5
|
+
#team-view {
|
|
6
|
+
flex: 1 1 auto;
|
|
7
|
+
width: 100%;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
background: var(--bg);
|
|
13
|
+
border-left: 1px solid var(--border-subtle);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
#team-view.hidden { display: none; }
|
|
17
|
+
|
|
18
|
+
/* The chat pane steps aside while the view is open; file viewer and terminal
|
|
19
|
+
panes keep their own place beside it. Scoped to the widths where the view
|
|
20
|
+
can actually show (the phone rule below hides it), so the two rules never
|
|
21
|
+
disagree and a resize across the breakpoint cannot blank the main pane.
|
|
22
|
+
The 769px floor and the 768px ceiling below are MOBILE_BREAKPOINT + 1 and
|
|
23
|
+
MOBILE_BREAKPOINT in popover-position.js; a test pins them together. */
|
|
24
|
+
@media (min-width: 769px) {
|
|
25
|
+
#main-panels:has(#team-view:not(.hidden)) > #app { display: none; }
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Project settings is a full view of its own and wins over the Team view. */
|
|
29
|
+
#main-panels:has(#project-settings:not(.hidden)) > #team-view { display: none; }
|
|
30
|
+
|
|
31
|
+
.team-view-header {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
padding: 16px 28px;
|
|
36
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.team-view-title {
|
|
41
|
+
margin: 0;
|
|
42
|
+
font-size: 18px;
|
|
43
|
+
font-weight: 700;
|
|
44
|
+
color: var(--text);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.team-view-close {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
background: none;
|
|
52
|
+
border: none;
|
|
53
|
+
color: var(--text-muted);
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
padding: 4px;
|
|
56
|
+
border-radius: 4px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.team-view-close:hover { color: var(--text); background: rgba(var(--overlay-rgb), 0.06); }
|
|
60
|
+
.team-view-close .lucide { width: 18px; height: 18px; }
|
|
61
|
+
|
|
62
|
+
.team-view-body {
|
|
63
|
+
flex: 1;
|
|
64
|
+
min-height: 0;
|
|
65
|
+
overflow-y: auto;
|
|
66
|
+
padding: 20px 28px 40px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Sections read as a column, not a full-width stretch. */
|
|
70
|
+
.team-view-body > * {
|
|
71
|
+
max-width: 860px;
|
|
72
|
+
margin-left: auto;
|
|
73
|
+
margin-right: auto;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.team-view-tabs {
|
|
77
|
+
display: flex;
|
|
78
|
+
gap: 4px;
|
|
79
|
+
margin-bottom: 16px;
|
|
80
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.team-view-tab {
|
|
84
|
+
background: none;
|
|
85
|
+
border: none;
|
|
86
|
+
border-bottom: 2px solid transparent;
|
|
87
|
+
color: var(--text-dim);
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
font: inherit;
|
|
90
|
+
font-size: 13px;
|
|
91
|
+
font-weight: 600;
|
|
92
|
+
padding: 8px 12px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.team-view-tab:hover { color: var(--text); }
|
|
96
|
+
.team-view-tab.active { color: var(--text); border-bottom-color: var(--accent, var(--text)); }
|
|
97
|
+
|
|
98
|
+
/* Phones use the Team tab sheet; the view itself never shows there. */
|
|
99
|
+
@media (max-width: 768px) {
|
|
100
|
+
#team-view { display: none !important; }
|
|
101
|
+
}
|
|
@@ -681,3 +681,13 @@
|
|
|
681
681
|
.rate-limit-popover { font-size: 11px; padding: 6px 10px; }
|
|
682
682
|
.header-context { width: 50px; }
|
|
683
683
|
}
|
|
684
|
+
|
|
685
|
+
/* Compacting state and nearing-compaction note on the session view header. */
|
|
686
|
+
.header-compacting {
|
|
687
|
+
font-size: 11px;
|
|
688
|
+
color: var(--warning);
|
|
689
|
+
white-space: nowrap;
|
|
690
|
+
margin-right: 8px;
|
|
691
|
+
}
|
|
692
|
+
.header-context.nearing .header-context-label { color: var(--warning); }
|
|
693
|
+
.header-context-nearing { font-size: 10px; color: var(--warning); white-space: nowrap; }
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/* The result card of a command typed in the composer with ! (user-shell.js). */
|
|
2
|
+
|
|
3
|
+
.shell-result {
|
|
4
|
+
max-width: var(--content-width);
|
|
5
|
+
margin: 8px auto;
|
|
6
|
+
padding: 8px 12px;
|
|
7
|
+
border: 1px solid var(--border);
|
|
8
|
+
border-left-width: 3px;
|
|
9
|
+
border-radius: 6px;
|
|
10
|
+
background: var(--code-bg);
|
|
11
|
+
font-size: 13px;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.shell-result.ok { border-left-color: var(--success); }
|
|
16
|
+
.shell-result.failed,
|
|
17
|
+
.shell-result.error { border-left-color: var(--error); }
|
|
18
|
+
.shell-result.denied,
|
|
19
|
+
.shell-result.refused { border-left-color: var(--text-dimmer); }
|
|
20
|
+
.shell-result.pending { border-left-color: var(--accent); }
|
|
21
|
+
|
|
22
|
+
.shell-result .shell-cmd {
|
|
23
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
24
|
+
color: var(--text);
|
|
25
|
+
white-space: pre-wrap;
|
|
26
|
+
word-break: break-word;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.shell-result .shell-prompt {
|
|
30
|
+
color: var(--accent);
|
|
31
|
+
margin-right: 6px;
|
|
32
|
+
user-select: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.shell-result .shell-output {
|
|
36
|
+
margin: 8px 0 0;
|
|
37
|
+
padding: 0;
|
|
38
|
+
max-height: 360px;
|
|
39
|
+
overflow: auto;
|
|
40
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
41
|
+
font-size: 12px;
|
|
42
|
+
line-height: 1.45;
|
|
43
|
+
color: var(--text-secondary);
|
|
44
|
+
white-space: pre-wrap;
|
|
45
|
+
word-break: break-word;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.shell-result .shell-status {
|
|
49
|
+
margin-top: 6px;
|
|
50
|
+
font-size: 12px;
|
|
51
|
+
color: var(--text-muted);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.shell-result.failed .shell-status,
|
|
55
|
+
.shell-result.error .shell-status { color: var(--error); }
|
|
56
|
+
|
|
57
|
+
.shell-result .shell-actions { margin-top: 8px; }
|
|
58
|
+
|
|
59
|
+
.shell-result .shell-edit {
|
|
60
|
+
padding: 3px 10px;
|
|
61
|
+
border: 1px solid var(--border);
|
|
62
|
+
border-radius: 4px;
|
|
63
|
+
background: transparent;
|
|
64
|
+
color: var(--text);
|
|
65
|
+
font-size: 12px;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.shell-result .shell-edit:hover { border-color: var(--accent); color: var(--accent); }
|
|
70
|
+
|
|
71
|
+
/* A chat message typed while a command runs, waiting for it to end (shell-queue.js). */
|
|
72
|
+
.shell-queued {
|
|
73
|
+
max-width: var(--content-width);
|
|
74
|
+
margin: 8px auto;
|
|
75
|
+
padding: 6px 12px;
|
|
76
|
+
border: 1px dashed var(--border);
|
|
77
|
+
border-radius: 6px;
|
|
78
|
+
font-size: 13px;
|
|
79
|
+
color: var(--text-muted);
|
|
80
|
+
white-space: pre-wrap;
|
|
81
|
+
word-break: break-word;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.shell-queued.unsent { border-color: var(--error); }
|
|
85
|
+
|
|
86
|
+
.shell-queued .shell-queued-tag {
|
|
87
|
+
margin-right: 8px;
|
|
88
|
+
font-size: 11px;
|
|
89
|
+
text-transform: uppercase;
|
|
90
|
+
color: var(--text-dimmer);
|
|
91
|
+
user-select: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.shell-queued.unsent .shell-queued-tag { color: var(--error); }
|
|
95
|
+
|
|
96
|
+
/* Per-entry controls on a queued ! line: labelled in words, as tall as the send button. */
|
|
97
|
+
.shell-queued .shell-queued-actions {
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-wrap: wrap;
|
|
100
|
+
gap: 8px;
|
|
101
|
+
margin-top: 6px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.shell-queued .shell-queued-btn {
|
|
105
|
+
min-height: 36px;
|
|
106
|
+
padding: 0 14px;
|
|
107
|
+
border: 1px solid var(--border);
|
|
108
|
+
border-radius: 18px;
|
|
109
|
+
background: transparent;
|
|
110
|
+
color: var(--text);
|
|
111
|
+
font-size: 13px;
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
touch-action: manipulation;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.shell-queued .shell-queued-btn:hover { border-color: var(--accent); color: var(--accent); }
|
|
117
|
+
|
|
118
|
+
.shell-queued .shell-queued-btn.unavailable {
|
|
119
|
+
opacity: 0.4;
|
|
120
|
+
border-style: dashed;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* An armed schedule in the outbox (scheduled-outbox.js): its fire time leads; a long
|
|
124
|
+
prompt collapses with the shared control (collapsible-text.js), placed with the
|
|
125
|
+
other controls. */
|
|
126
|
+
.shell-queued.scheduled-queued .scheduled-queued-time {
|
|
127
|
+
margin-right: 8px;
|
|
128
|
+
font-size: 12px;
|
|
129
|
+
color: var(--accent);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.shell-queued.scheduled-queued .shell-queued-btn:disabled {
|
|
133
|
+
opacity: 0.5;
|
|
134
|
+
cursor: progress;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.shell-queued.scheduled-queued .scheduled-queued-error {
|
|
138
|
+
display: block;
|
|
139
|
+
margin-top: 4px;
|
|
140
|
+
font-size: 12px;
|
|
141
|
+
color: var(--error, #d33);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.shell-queued.scheduled-queued .scheduled-queued-error:empty { display: none; }
|
package/lib/public/index.html
CHANGED
|
@@ -332,13 +332,6 @@
|
|
|
332
332
|
<div class="usage-row"><span class="usage-label">Terminals</span><span id="status-terminals" class="usage-value">-</span></div>
|
|
333
333
|
</div>
|
|
334
334
|
</div>
|
|
335
|
-
<div id="team-panel" class="hidden">
|
|
336
|
-
<div class="usage-panel-header">
|
|
337
|
-
<span>Team <span class="beta-badge">Beta</span></span>
|
|
338
|
-
<button id="team-panel-close" aria-label="Close"><i data-lucide="x"></i></button>
|
|
339
|
-
</div>
|
|
340
|
-
<div id="team-panel-body" class="usage-panel-body team-panel-body"></div>
|
|
341
|
-
</div>
|
|
342
335
|
<!-- Diagnostics panel (lr-8294, epic lr-1a52) -->
|
|
343
336
|
<div id="diagnostics-panel" class="hidden" role="region" aria-label="Diagnostics" aria-expanded="false" tabindex="-1">
|
|
344
337
|
<div class="usage-panel-header">
|
|
@@ -568,6 +561,13 @@
|
|
|
568
561
|
</div>
|
|
569
562
|
<div class="file-viewer-body" id="file-viewer-body"></div>
|
|
570
563
|
</div>
|
|
564
|
+
<div id="team-view" class="hidden" role="region" aria-label="Team">
|
|
565
|
+
<div class="team-view-header">
|
|
566
|
+
<h2 class="team-view-title">Team <span class="beta-badge">Beta</span></h2>
|
|
567
|
+
<button id="team-view-close" class="team-view-close" aria-label="Close"><i data-lucide="x"></i></button>
|
|
568
|
+
</div>
|
|
569
|
+
<div id="team-view-body" class="team-view-body"></div>
|
|
570
|
+
</div>
|
|
571
571
|
<div id="project-settings" class="hidden panel-fullscreen">
|
|
572
572
|
<div class="project-settings-layout">
|
|
573
573
|
<div class="project-settings-nav">
|
|
@@ -1239,6 +1239,29 @@
|
|
|
1239
1239
|
</label>
|
|
1240
1240
|
</div>
|
|
1241
1241
|
</div>
|
|
1242
|
+
<div class="settings-card settings-admin-only">
|
|
1243
|
+
<div class="settings-field">
|
|
1244
|
+
<label class="settings-toggle-row">
|
|
1245
|
+
<div>
|
|
1246
|
+
<span class="settings-label">Run commands typed with !</span>
|
|
1247
|
+
<div class="settings-hint">On (the default): a message that starts with <code>!</code> runs as a shell command in the session's folder and its output is added to the conversation without starting a turn. It asks first exactly as the agent's own Bash call would, and it is not available in plan mode or while OS-user isolation is on. Off: such a message is sent as ordinary text. Only an admin can change this.</div>
|
|
1248
|
+
</div>
|
|
1249
|
+
<input type="checkbox" id="ss-user-shell-enabled" checked>
|
|
1250
|
+
<span class="toggle-track"><span class="toggle-thumb"></span></span>
|
|
1251
|
+
</label>
|
|
1252
|
+
</div>
|
|
1253
|
+
<div class="settings-field">
|
|
1254
|
+
<label class="settings-label" for="ss-user-shell-timeout">Stop a command after (minutes)</label>
|
|
1255
|
+
<div class="settings-hint">Whole minutes, 1 to 1440. A command that runs longer is stopped and its card says so.</div>
|
|
1256
|
+
<input type="number" id="ss-user-shell-timeout" class="settings-budget-input" min="1" max="1440" step="1" value="10">
|
|
1257
|
+
</div>
|
|
1258
|
+
<div class="settings-field">
|
|
1259
|
+
<label class="settings-label" for="ss-user-shell-cap">Keep at most this much output (KiB)</label>
|
|
1260
|
+
<div class="settings-hint">Whole KiB, 1 to 4096. Output beyond it is cut and the card says so.</div>
|
|
1261
|
+
<input type="number" id="ss-user-shell-cap" class="settings-budget-input" min="1" max="4096" step="1" value="256">
|
|
1262
|
+
<div class="settings-hint" id="ss-user-shell-problem" role="alert"></div>
|
|
1263
|
+
</div>
|
|
1264
|
+
</div>
|
|
1242
1265
|
<div class="settings-card">
|
|
1243
1266
|
<div class="settings-field">
|
|
1244
1267
|
<label class="settings-label">Mode for sessions opened by the CLI or a trigger</label>
|
|
@@ -1309,6 +1332,17 @@
|
|
|
1309
1332
|
<div class="server-settings-section" data-section="claudemd">
|
|
1310
1333
|
<h2>CLAUDE.md</h2>
|
|
1311
1334
|
<p class="ps-section-desc">Edit the global CLAUDE.md file. These instructions apply to all projects and sessions on this server.</p>
|
|
1335
|
+
<h3 class="settings-subheading">Idle compaction (Claude)</h3>
|
|
1336
|
+
<div class="settings-card">
|
|
1337
|
+
<div class="settings-field">
|
|
1338
|
+
<div class="settings-hint">Whether Claude Code compacts a long conversation while a session is idle. This is the <code>idleCompaction</code> key in the Claude user settings file, the same file the CLI reads.</div>
|
|
1339
|
+
<div id="ss-idle-compaction-status" class="settings-hint"></div>
|
|
1340
|
+
<div class="ps-textarea-actions">
|
|
1341
|
+
<button class="settings-btn-sm" id="ss-idle-compaction-off">Turn off</button>
|
|
1342
|
+
<button class="settings-btn-sm" id="ss-idle-compaction-default">Use CLI default</button>
|
|
1343
|
+
</div>
|
|
1344
|
+
</div>
|
|
1345
|
+
</div>
|
|
1312
1346
|
<div class="settings-card">
|
|
1313
1347
|
<div class="settings-field">
|
|
1314
1348
|
<div id="ss-claudemd-status" class="settings-hint"></div>
|