@firstpick/pi-package-webui 0.7.4 → 0.7.5
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/README.md +2 -1
- package/bin/pi-webui.mjs +130 -1
- package/lib/git-workflow-preferences.mjs +89 -27
- package/lib/subagent-launch-slots.mjs +304 -0
- package/lib/trust-boundaries.mjs +1 -0
- package/package.json +19 -19
- package/public/app.js +949 -53
- package/public/index.html +61 -12
- package/public/service-worker.js +2 -1
- package/public/styles.css +382 -25
- package/public/subagent-launch-slot-state.mjs +64 -0
- package/tests/chat-scroll-intent-static.test.mjs +59 -0
- package/tests/custom-message-markdown-static.test.mjs +15 -0
- package/tests/fast-mode-client-static.test.mjs +54 -6
- package/tests/footer-middle-truncation.test.mjs +2 -2
- package/tests/http-endpoints-harness.test.mjs +65 -0
- package/tests/mobile-static.test.mjs +30 -3
- package/tests/side-panel-resize-static.test.mjs +43 -0
- package/tests/subagent-launch-slot-state.test.mjs +36 -0
- package/tests/subagent-launch-slots-static.test.mjs +34 -0
- package/tests/subagent-launch-slots.test.mjs +143 -0
- package/tests/subagents-helper.test.mjs +46 -0
- package/webui-rpc-helper.mjs +37 -9
package/public/styles.css
CHANGED
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
--tooltip-blend-duration: 160ms;
|
|
72
72
|
--tooltip-blend-ease: ease;
|
|
73
73
|
--file-viewer-width: 520px;
|
|
74
|
+
--side-panel-width: 384px;
|
|
74
75
|
|
|
75
76
|
/* Tier 1 typography scale: --text-xs is the absolute interface floor. */
|
|
76
77
|
--text-xs: 0.75rem;
|
|
@@ -187,6 +188,18 @@ button.danger {
|
|
|
187
188
|
}
|
|
188
189
|
button:disabled { cursor: not-allowed; opacity: 0.5; transform: none; }
|
|
189
190
|
[hidden] { display: none !important; }
|
|
191
|
+
.sr-only {
|
|
192
|
+
position: absolute !important;
|
|
193
|
+
width: 1px !important;
|
|
194
|
+
height: 1px !important;
|
|
195
|
+
padding: 0 !important;
|
|
196
|
+
margin: -1px !important;
|
|
197
|
+
overflow: hidden !important;
|
|
198
|
+
clip: rect(0, 0, 0, 0) !important;
|
|
199
|
+
clip-path: inset(50%) !important;
|
|
200
|
+
white-space: nowrap !important;
|
|
201
|
+
border: 0 !important;
|
|
202
|
+
}
|
|
190
203
|
button:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible {
|
|
191
204
|
border-color: var(--ctp-teal);
|
|
192
205
|
box-shadow: 0 0 0 3px rgba(148, 226, 213, 0.15), 0 0 1rem var(--glow-teal);
|
|
@@ -305,7 +318,7 @@ textarea::placeholder { color: rgba(var(--ctp-subtext-rgb), 0.62); }
|
|
|
305
318
|
position: relative;
|
|
306
319
|
z-index: 1;
|
|
307
320
|
display: grid;
|
|
308
|
-
grid-template-columns: minmax(0, 1fr) minmax(20rem,
|
|
321
|
+
grid-template-columns: minmax(0, 1fr) minmax(20rem, var(--side-panel-width));
|
|
309
322
|
gap: 1rem;
|
|
310
323
|
padding: 1rem;
|
|
311
324
|
width: 100%;
|
|
@@ -319,19 +332,19 @@ body.side-panel-collapsed .layout {
|
|
|
319
332
|
grid-template-columns: minmax(0, 1fr);
|
|
320
333
|
}
|
|
321
334
|
body.terminal-split-open .layout {
|
|
322
|
-
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(20rem,
|
|
335
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(20rem, var(--side-panel-width));
|
|
323
336
|
}
|
|
324
337
|
body.terminal-split-open.side-panel-collapsed .layout {
|
|
325
338
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
326
339
|
}
|
|
327
340
|
body.file-viewer-open .layout {
|
|
328
|
-
grid-template-columns: minmax(0, 1fr) minmax(24rem, var(--file-viewer-width)) minmax(20rem,
|
|
341
|
+
grid-template-columns: minmax(0, 1fr) minmax(24rem, var(--file-viewer-width)) minmax(20rem, var(--side-panel-width));
|
|
329
342
|
}
|
|
330
343
|
body.file-viewer-open.side-panel-collapsed .layout {
|
|
331
344
|
grid-template-columns: minmax(0, 1fr) minmax(24rem, var(--file-viewer-width));
|
|
332
345
|
}
|
|
333
346
|
body.terminal-split-open.file-viewer-open .layout {
|
|
334
|
-
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(24rem, var(--file-viewer-width)) minmax(20rem,
|
|
347
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(24rem, var(--file-viewer-width)) minmax(20rem, var(--side-panel-width));
|
|
335
348
|
}
|
|
336
349
|
body.terminal-split-open.file-viewer-open.side-panel-collapsed .layout {
|
|
337
350
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(24rem, var(--file-viewer-width));
|
|
@@ -741,7 +754,8 @@ body.side-panel-collapsed .terminal-tabs-shell {
|
|
|
741
754
|
background: var(--panel-gradient);
|
|
742
755
|
box-shadow: 0 1rem 3rem var(--shadow), 0 0 2rem rgba(137, 180, 250, 0.10), inset 0 1px 0 rgba(255,255,255,0.06);
|
|
743
756
|
}
|
|
744
|
-
.file-viewer-resize-handle
|
|
757
|
+
.file-viewer-resize-handle,
|
|
758
|
+
.side-panel-resize-handle {
|
|
745
759
|
position: absolute;
|
|
746
760
|
top: 50%;
|
|
747
761
|
left: -0.78rem;
|
|
@@ -761,7 +775,8 @@ body.side-panel-collapsed .terminal-tabs-shell {
|
|
|
761
775
|
var(--neon-gradient);
|
|
762
776
|
box-shadow: 0 0 1rem rgba(148, 226, 213, 0.22), 0 0.7rem 1.4rem rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255,255,255,0.08);
|
|
763
777
|
}
|
|
764
|
-
.file-viewer-resize-handle::before
|
|
778
|
+
.file-viewer-resize-handle::before,
|
|
779
|
+
.side-panel-resize-handle::before {
|
|
765
780
|
content: "";
|
|
766
781
|
width: 0.28rem;
|
|
767
782
|
height: 3.1rem;
|
|
@@ -771,19 +786,29 @@ body.side-panel-collapsed .terminal-tabs-shell {
|
|
|
771
786
|
}
|
|
772
787
|
.file-viewer-resize-handle:hover,
|
|
773
788
|
.file-viewer-resize-handle:focus-visible,
|
|
774
|
-
|
|
789
|
+
.side-panel-resize-handle:hover,
|
|
790
|
+
.side-panel-resize-handle:focus-visible,
|
|
791
|
+
body.file-viewer-resizing .file-viewer-resize-handle,
|
|
792
|
+
body.side-panel-resizing .side-panel-resize-handle {
|
|
775
793
|
border-color: rgba(148, 226, 213, 0.72);
|
|
776
794
|
box-shadow: 0 0 1.35rem rgba(148, 226, 213, 0.34), 0 0.9rem 1.7rem rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255,255,255,0.11);
|
|
777
795
|
outline: none;
|
|
778
796
|
}
|
|
779
|
-
.file-viewer-resize-handle[hidden]
|
|
797
|
+
.file-viewer-resize-handle[hidden],
|
|
798
|
+
.side-panel-resize-handle[hidden] {
|
|
780
799
|
display: none;
|
|
781
800
|
}
|
|
782
|
-
body.file-viewer-resizing
|
|
801
|
+
body.file-viewer-resizing .layout,
|
|
802
|
+
body.side-panel-resizing .layout {
|
|
803
|
+
transition: none;
|
|
804
|
+
}
|
|
805
|
+
body.file-viewer-resizing,
|
|
806
|
+
body.side-panel-resizing {
|
|
783
807
|
cursor: col-resize;
|
|
784
808
|
user-select: none;
|
|
785
809
|
}
|
|
786
|
-
body.file-viewer-resizing
|
|
810
|
+
body.file-viewer-resizing *,
|
|
811
|
+
body.side-panel-resizing * {
|
|
787
812
|
cursor: col-resize !important;
|
|
788
813
|
}
|
|
789
814
|
.file-viewer-header {
|
|
@@ -1022,6 +1047,8 @@ body.embedded-split .side-panel-backdrop {
|
|
|
1022
1047
|
.side-panel {
|
|
1023
1048
|
display: grid;
|
|
1024
1049
|
grid-template-rows: auto minmax(0, 1fr);
|
|
1050
|
+
width: 100%;
|
|
1051
|
+
min-width: 0;
|
|
1025
1052
|
overflow: hidden;
|
|
1026
1053
|
padding: 0;
|
|
1027
1054
|
}
|
|
@@ -1676,7 +1703,7 @@ body.embedded-split .side-panel-backdrop {
|
|
|
1676
1703
|
}
|
|
1677
1704
|
.file-tree-node {
|
|
1678
1705
|
display: grid;
|
|
1679
|
-
grid-template-columns:
|
|
1706
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
1680
1707
|
gap: 0.18rem;
|
|
1681
1708
|
align-items: center;
|
|
1682
1709
|
min-width: 0;
|
|
@@ -1686,7 +1713,7 @@ body.embedded-split .side-panel-backdrop {
|
|
|
1686
1713
|
}
|
|
1687
1714
|
.file-tree-item {
|
|
1688
1715
|
display: grid;
|
|
1689
|
-
grid-template-columns: auto minmax(0, 1fr) auto auto;
|
|
1716
|
+
grid-template-columns: auto auto minmax(0, 1fr) auto auto;
|
|
1690
1717
|
gap: 0.36rem;
|
|
1691
1718
|
align-items: center;
|
|
1692
1719
|
width: 100%;
|
|
@@ -1714,7 +1741,14 @@ body.embedded-split .side-panel-backdrop {
|
|
|
1714
1741
|
background: rgba(148, 226, 213, 0.18);
|
|
1715
1742
|
box-shadow: inset 3px 0 0 var(--ctp-teal), 0 0 0 1px rgba(148, 226, 213, 0.10);
|
|
1716
1743
|
}
|
|
1717
|
-
.file-tree-expander
|
|
1744
|
+
.file-tree-expander {
|
|
1745
|
+
display: inline-grid;
|
|
1746
|
+
place-items: center;
|
|
1747
|
+
width: 1rem;
|
|
1748
|
+
min-width: 1rem;
|
|
1749
|
+
color: var(--ctp-teal);
|
|
1750
|
+
pointer-events: none;
|
|
1751
|
+
}
|
|
1718
1752
|
.file-tree-overflow-button {
|
|
1719
1753
|
display: inline-grid;
|
|
1720
1754
|
place-items: center;
|
|
@@ -1726,8 +1760,6 @@ body.embedded-split .side-panel-backdrop {
|
|
|
1726
1760
|
background: transparent;
|
|
1727
1761
|
box-shadow: none;
|
|
1728
1762
|
}
|
|
1729
|
-
.file-tree-expander:hover,
|
|
1730
|
-
.file-tree-expander:focus-visible,
|
|
1731
1763
|
.file-tree-overflow-button:hover,
|
|
1732
1764
|
.file-tree-overflow-button:focus-visible {
|
|
1733
1765
|
color: var(--ctp-teal);
|
|
@@ -1735,7 +1767,7 @@ body.embedded-split .side-panel-backdrop {
|
|
|
1735
1767
|
background: rgba(148, 226, 213, 0.10);
|
|
1736
1768
|
}
|
|
1737
1769
|
.file-tree-expander-spacer {
|
|
1738
|
-
width:
|
|
1770
|
+
width: 1rem;
|
|
1739
1771
|
}
|
|
1740
1772
|
.file-tree-item.file-tree-draggable {
|
|
1741
1773
|
cursor: grab;
|
|
@@ -2399,6 +2431,197 @@ body.embedded-split .side-panel-backdrop {
|
|
|
2399
2431
|
.subagents-help code {
|
|
2400
2432
|
color: var(--ctp-teal);
|
|
2401
2433
|
}
|
|
2434
|
+
.subagent-launch-slots {
|
|
2435
|
+
display: block;
|
|
2436
|
+
container: subagent-launch-slots / inline-size;
|
|
2437
|
+
min-width: 0;
|
|
2438
|
+
margin: 0 0 0.55rem;
|
|
2439
|
+
overflow: hidden;
|
|
2440
|
+
border: 1px solid rgba(203, 166, 247, 0.30);
|
|
2441
|
+
border-radius: 0.8rem;
|
|
2442
|
+
background:
|
|
2443
|
+
radial-gradient(circle at 100% 0, rgba(203, 166, 247, 0.11), transparent 12rem),
|
|
2444
|
+
rgba(var(--ctp-crust-rgb), 0.46);
|
|
2445
|
+
}
|
|
2446
|
+
.subagent-launch-slots-summary {
|
|
2447
|
+
display: flex;
|
|
2448
|
+
align-items: center;
|
|
2449
|
+
justify-content: space-between;
|
|
2450
|
+
gap: 0.65rem;
|
|
2451
|
+
min-height: 3.35rem;
|
|
2452
|
+
padding: 0.66rem 0.72rem;
|
|
2453
|
+
cursor: pointer;
|
|
2454
|
+
list-style: none;
|
|
2455
|
+
user-select: none;
|
|
2456
|
+
}
|
|
2457
|
+
.subagent-launch-slots-summary::-webkit-details-marker { display: none; }
|
|
2458
|
+
.subagent-launch-slots-summary:hover { background: rgba(203, 166, 247, 0.07); }
|
|
2459
|
+
.subagent-launch-slots[open] > .subagent-launch-slots-summary { border-bottom: 1px solid rgba(203, 166, 247, 0.20); }
|
|
2460
|
+
.subagent-launch-slots-summary-heading { display: grid; gap: 0.08rem; min-width: 0; }
|
|
2461
|
+
.subagent-launch-slots-summary-heading strong { color: var(--ctp-text); font-size: 0.82rem; }
|
|
2462
|
+
.subagent-launch-slots-summary-heading span { color: rgba(var(--ctp-subtext-rgb), 0.75); font-size: var(--text-xs); line-height: 1.35; }
|
|
2463
|
+
.subagent-launch-slots-summary-chevron {
|
|
2464
|
+
flex: 0 0 auto;
|
|
2465
|
+
color: var(--ctp-mauve);
|
|
2466
|
+
font-size: 1.3rem;
|
|
2467
|
+
line-height: 1;
|
|
2468
|
+
transform: rotate(0deg);
|
|
2469
|
+
transition: transform 140ms ease;
|
|
2470
|
+
}
|
|
2471
|
+
.subagent-launch-slots[open] .subagent-launch-slots-summary-chevron { transform: rotate(90deg); }
|
|
2472
|
+
.subagent-launch-slots-body { display: grid; gap: 0.58rem; min-width: 0; padding: 0.62rem; }
|
|
2473
|
+
.subagent-launch-slots-intro,
|
|
2474
|
+
.subagent-launch-slot-role-header,
|
|
2475
|
+
.subagent-launch-slot-row-header,
|
|
2476
|
+
.subagent-launch-slots-actions,
|
|
2477
|
+
.subagent-launch-slots-reload-actions {
|
|
2478
|
+
display: flex;
|
|
2479
|
+
align-items: flex-start;
|
|
2480
|
+
justify-content: space-between;
|
|
2481
|
+
gap: 0.55rem;
|
|
2482
|
+
min-width: 0;
|
|
2483
|
+
}
|
|
2484
|
+
.subagent-launch-slots-intro p,
|
|
2485
|
+
.subagent-launch-slot-role-heading p,
|
|
2486
|
+
.subagent-launch-slot-meta,
|
|
2487
|
+
.subagent-launch-slot-scope p {
|
|
2488
|
+
margin: 0.18rem 0 0;
|
|
2489
|
+
color: rgba(var(--ctp-subtext-rgb), 0.78);
|
|
2490
|
+
font-size: var(--text-xs);
|
|
2491
|
+
line-height: 1.42;
|
|
2492
|
+
}
|
|
2493
|
+
.subagent-launch-slots-intro p { flex: 1 1 auto; margin: 0; }
|
|
2494
|
+
.subagent-launch-slot-role-heading h4 { margin: 0; color: var(--ctp-text); font-size: 0.8rem; }
|
|
2495
|
+
.subagent-launch-slots-intro button,
|
|
2496
|
+
.subagent-launch-slot-add,
|
|
2497
|
+
.subagent-launch-slot-remove,
|
|
2498
|
+
.subagent-launch-slots-actions button,
|
|
2499
|
+
.subagent-launch-slots-reload-actions button,
|
|
2500
|
+
.subagent-launch-slot-scope button {
|
|
2501
|
+
min-height: 2.4rem;
|
|
2502
|
+
font-size: var(--text-xs);
|
|
2503
|
+
}
|
|
2504
|
+
.subagent-launch-slot-scope {
|
|
2505
|
+
display: grid;
|
|
2506
|
+
grid-template-columns: minmax(0, 1fr) minmax(8rem, auto) auto;
|
|
2507
|
+
gap: 0.35rem 0.5rem;
|
|
2508
|
+
align-items: center;
|
|
2509
|
+
padding: 0.5rem;
|
|
2510
|
+
border: 1px solid rgba(137, 180, 250, 0.18);
|
|
2511
|
+
border-radius: 0.64rem;
|
|
2512
|
+
background: rgba(137, 180, 250, 0.05);
|
|
2513
|
+
}
|
|
2514
|
+
.subagent-launch-slot-scope label { color: rgba(var(--ctp-text-rgb), 0.9); font-size: var(--text-xs); font-weight: 850; }
|
|
2515
|
+
.subagent-launch-slot-scope select { min-width: 8rem; font-size: var(--text-xs); }
|
|
2516
|
+
.subagent-launch-slot-scope p { grid-column: 1 / -1; }
|
|
2517
|
+
.subagent-launch-slots-status { min-height: 1.25rem; margin: 0; font-size: var(--text-xs); line-height: 1.4; }
|
|
2518
|
+
.subagent-launch-slots-status.error { color: var(--ctp-red); }
|
|
2519
|
+
.subagent-launch-slot-roles { display: grid; gap: 0.52rem; min-width: 0; }
|
|
2520
|
+
.subagent-launch-slot-empty { margin: 0; color: rgba(var(--ctp-subtext-rgb), 0.74); font-size: var(--text-xs); }
|
|
2521
|
+
.subagent-launch-slot-role {
|
|
2522
|
+
display: grid;
|
|
2523
|
+
gap: 0.48rem;
|
|
2524
|
+
min-width: 0;
|
|
2525
|
+
padding: 0.54rem;
|
|
2526
|
+
border: 1px solid rgba(180, 190, 254, 0.18);
|
|
2527
|
+
border-radius: 0.7rem;
|
|
2528
|
+
background: rgba(var(--ctp-base-rgb), 0.22);
|
|
2529
|
+
}
|
|
2530
|
+
.subagent-launch-slot-role-header { align-items: center; }
|
|
2531
|
+
.subagent-launch-slot-role-heading { min-width: 0; }
|
|
2532
|
+
.subagent-launch-slot-count {
|
|
2533
|
+
flex: 0 0 auto;
|
|
2534
|
+
padding: 0.12rem 0.38rem;
|
|
2535
|
+
border-radius: 999px;
|
|
2536
|
+
color: var(--ctp-mauve);
|
|
2537
|
+
background: rgba(203, 166, 247, 0.12);
|
|
2538
|
+
font-size: var(--text-xs);
|
|
2539
|
+
font-weight: 850;
|
|
2540
|
+
}
|
|
2541
|
+
.subagent-launch-slot-list { display: grid; gap: 0.42rem; }
|
|
2542
|
+
.subagent-launch-slot-row {
|
|
2543
|
+
display: grid;
|
|
2544
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
2545
|
+
gap: 0.38rem 0.5rem;
|
|
2546
|
+
min-width: 0;
|
|
2547
|
+
padding: 0.48rem;
|
|
2548
|
+
border: 1px solid rgba(180, 190, 254, 0.13);
|
|
2549
|
+
border-radius: 0.58rem;
|
|
2550
|
+
background: rgba(var(--ctp-surface-rgb), 0.16);
|
|
2551
|
+
}
|
|
2552
|
+
.subagent-launch-slot-row-header { grid-column: 1 / -1; align-items: center; }
|
|
2553
|
+
.subagent-launch-slot-row-header strong { color: rgba(var(--ctp-text-rgb), 0.92); font-size: var(--text-xs); }
|
|
2554
|
+
.subagent-launch-slot-id {
|
|
2555
|
+
max-width: 14rem;
|
|
2556
|
+
overflow-wrap: anywhere;
|
|
2557
|
+
color: rgba(var(--ctp-subtext-rgb), 0.67);
|
|
2558
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
2559
|
+
font-size: var(--text-xs);
|
|
2560
|
+
}
|
|
2561
|
+
.subagent-launch-slot-controls {
|
|
2562
|
+
display: grid;
|
|
2563
|
+
grid-column: 1 / -1;
|
|
2564
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
2565
|
+
gap: 0.42rem;
|
|
2566
|
+
min-width: 0;
|
|
2567
|
+
}
|
|
2568
|
+
.subagent-launch-slot-field { display: grid; gap: 0.22rem; min-width: 0; color: rgba(var(--ctp-text-rgb), 0.88); font-size: var(--text-xs); font-weight: 750; }
|
|
2569
|
+
.subagent-launch-slot-field select { width: 100%; min-width: 0; font-size: var(--text-xs); }
|
|
2570
|
+
.subagent-launch-slot-meta { grid-column: 1; align-self: center; overflow-wrap: anywhere; }
|
|
2571
|
+
.subagent-launch-slot-remove { grid-column: 2; align-self: center; color: var(--ctp-red); border-color: rgba(243, 139, 168, 0.32); }
|
|
2572
|
+
.subagent-launch-slot-add { justify-self: start; }
|
|
2573
|
+
.subagent-launch-slots-actions { align-items: center; flex-wrap: wrap; }
|
|
2574
|
+
.subagent-launch-slots-actions span,
|
|
2575
|
+
.subagent-launch-slots-reload-actions span { color: rgba(var(--ctp-subtext-rgb), 0.78); font-size: var(--text-xs); line-height: 1.35; }
|
|
2576
|
+
.subagent-launch-slots-reload-actions {
|
|
2577
|
+
flex-wrap: wrap;
|
|
2578
|
+
align-items: center;
|
|
2579
|
+
padding: 0.5rem;
|
|
2580
|
+
border: 1px solid rgba(166, 227, 161, 0.30);
|
|
2581
|
+
border-radius: 0.64rem;
|
|
2582
|
+
background: rgba(166, 227, 161, 0.08);
|
|
2583
|
+
}
|
|
2584
|
+
.subagent-launch-slots-reload-actions span { flex: 1 1 12rem; color: rgba(var(--ctp-text-rgb), 0.88); }
|
|
2585
|
+
@container subagent-launch-slots (max-width: 30rem) {
|
|
2586
|
+
.subagent-launch-slots-intro,
|
|
2587
|
+
.subagent-launch-slot-row-header,
|
|
2588
|
+
.subagent-launch-slots-reload-actions { align-items: stretch; flex-direction: column; }
|
|
2589
|
+
.subagent-launch-slots-intro button,
|
|
2590
|
+
.subagent-launch-slot-add,
|
|
2591
|
+
.subagent-launch-slot-remove,
|
|
2592
|
+
.subagent-launch-slots-actions button,
|
|
2593
|
+
.subagent-launch-slots-reload-actions button,
|
|
2594
|
+
.subagent-launch-slot-scope button { width: 100%; min-height: 44px; }
|
|
2595
|
+
.subagent-launch-slot-scope,
|
|
2596
|
+
.subagent-launch-slot-row,
|
|
2597
|
+
.subagent-launch-slot-controls { grid-template-columns: minmax(0, 1fr); }
|
|
2598
|
+
.subagent-launch-slot-scope select,
|
|
2599
|
+
.subagent-launch-slot-field select { width: 100%; }
|
|
2600
|
+
.subagent-launch-slot-meta,
|
|
2601
|
+
.subagent-launch-slot-remove { grid-column: 1; }
|
|
2602
|
+
.subagent-launch-slot-id { max-width: 100%; }
|
|
2603
|
+
.subagent-launch-slots-actions { align-items: stretch; flex-direction: column; }
|
|
2604
|
+
}
|
|
2605
|
+
@media (max-width: 720px), (max-device-width: 720px), (pointer: coarse) and (hover: none) {
|
|
2606
|
+
.subagent-launch-slots-intro,
|
|
2607
|
+
.subagent-launch-slot-row-header,
|
|
2608
|
+
.subagent-launch-slots-reload-actions { align-items: stretch; flex-direction: column; }
|
|
2609
|
+
.subagent-launch-slots-intro button,
|
|
2610
|
+
.subagent-launch-slot-add,
|
|
2611
|
+
.subagent-launch-slot-remove,
|
|
2612
|
+
.subagent-launch-slots-actions button,
|
|
2613
|
+
.subagent-launch-slots-reload-actions button,
|
|
2614
|
+
.subagent-launch-slot-scope button { width: 100%; min-height: 44px; }
|
|
2615
|
+
.subagent-launch-slot-scope,
|
|
2616
|
+
.subagent-launch-slot-row,
|
|
2617
|
+
.subagent-launch-slot-controls { grid-template-columns: minmax(0, 1fr); }
|
|
2618
|
+
.subagent-launch-slot-scope select,
|
|
2619
|
+
.subagent-launch-slot-field select { width: 100%; }
|
|
2620
|
+
.subagent-launch-slot-meta,
|
|
2621
|
+
.subagent-launch-slot-remove { grid-column: 1; }
|
|
2622
|
+
.subagent-launch-slot-id { max-width: 100%; }
|
|
2623
|
+
.subagent-launch-slots-actions { align-items: stretch; flex-direction: column; }
|
|
2624
|
+
}
|
|
2402
2625
|
.subagent-open-mode-field {
|
|
2403
2626
|
display: grid;
|
|
2404
2627
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
@@ -4084,7 +4307,7 @@ button.footer-tui-item {
|
|
|
4084
4307
|
white-space: nowrap;
|
|
4085
4308
|
}
|
|
4086
4309
|
.middle-truncate-start {
|
|
4087
|
-
flex:
|
|
4310
|
+
flex: 0 1 auto;
|
|
4088
4311
|
min-width: 6ch;
|
|
4089
4312
|
overflow: hidden;
|
|
4090
4313
|
text-overflow: ellipsis;
|
|
@@ -5700,7 +5923,8 @@ button.git-workflow-step:hover:not(:disabled) {
|
|
|
5700
5923
|
.workflow-inspector-actions { justify-content: stretch; }
|
|
5701
5924
|
.workflow-inspector-actions button { flex: 1 1 7rem; min-height: 44px; }
|
|
5702
5925
|
.workflow-inspector-minimize-button,
|
|
5703
|
-
.workflow-subprocess-minimize-button
|
|
5926
|
+
.workflow-subprocess-minimize-button,
|
|
5927
|
+
.workflow-overlay-close-button { min-height: 44px; }
|
|
5704
5928
|
}
|
|
5705
5929
|
.btw-widget {
|
|
5706
5930
|
border-color: rgba(148, 226, 213, 0.62);
|
|
@@ -7054,19 +7278,109 @@ button.git-workflow-step:hover:not(:disabled) {
|
|
|
7054
7278
|
outline-color: rgba(148, 226, 213, 0.46);
|
|
7055
7279
|
}
|
|
7056
7280
|
.compact-live-text,
|
|
7057
|
-
.compact-live-thinking,
|
|
7058
7281
|
.compact-tool-status {
|
|
7059
7282
|
min-height: 1.35rem;
|
|
7060
7283
|
white-space: pre-wrap;
|
|
7061
7284
|
overflow-wrap: anywhere;
|
|
7062
7285
|
}
|
|
7063
7286
|
.compact-live-thinking {
|
|
7064
|
-
|
|
7065
|
-
|
|
7287
|
+
min-height: 1.35rem;
|
|
7288
|
+
overflow-wrap: anywhere;
|
|
7289
|
+
}
|
|
7290
|
+
.message.compact-thinking-aggregate {
|
|
7291
|
+
padding: 0;
|
|
7292
|
+
border-color: rgba(203, 166, 247, 0.34);
|
|
7293
|
+
background: linear-gradient(145deg, rgba(203, 166, 247, 0.11), rgba(var(--ctp-surface-rgb), 0.52));
|
|
7294
|
+
}
|
|
7295
|
+
.compact-thinking-aggregate .compact-thinking-disclosure {
|
|
7296
|
+
margin: 0;
|
|
7297
|
+
padding: 0;
|
|
7298
|
+
border: 0;
|
|
7299
|
+
background: transparent;
|
|
7300
|
+
}
|
|
7301
|
+
.compact-thinking-aggregate .compact-thinking-disclosure > summary.message-header::after {
|
|
7302
|
+
color: var(--ctp-mauve);
|
|
7303
|
+
text-shadow: 0 0 0.75rem rgba(203, 166, 247, 0.38);
|
|
7304
|
+
}
|
|
7305
|
+
.compact-thinking-aggregate .compact-thinking-disclosure > .message-body {
|
|
7306
|
+
border-top-color: rgba(203, 166, 247, 0.16);
|
|
7307
|
+
}
|
|
7308
|
+
.message.compact-tool-shell {
|
|
7309
|
+
display: grid;
|
|
7310
|
+
grid-template-columns: minmax(0, auto) minmax(0, 1fr);
|
|
7311
|
+
align-items: center;
|
|
7312
|
+
gap: 0.65rem;
|
|
7313
|
+
min-height: 0;
|
|
7314
|
+
margin: 0.32rem 0;
|
|
7315
|
+
padding: 0.46rem 0.62rem;
|
|
7316
|
+
border-color: rgba(249, 226, 175, 0.30);
|
|
7317
|
+
border-radius: 0.68rem;
|
|
7318
|
+
background: linear-gradient(110deg, rgba(249, 226, 175, 0.10), rgba(var(--ctp-surface-rgb), 0.38));
|
|
7319
|
+
box-shadow: none;
|
|
7320
|
+
}
|
|
7321
|
+
.message.compact-tool-shell.streaming {
|
|
7322
|
+
outline: 1px solid rgba(148, 226, 213, 0.30);
|
|
7323
|
+
box-shadow: 0 0 0.7rem rgba(148, 226, 213, 0.10);
|
|
7324
|
+
}
|
|
7325
|
+
.message.compact-tool-shell::before {
|
|
7326
|
+
width: 2px;
|
|
7327
|
+
background: var(--ctp-yellow);
|
|
7328
|
+
box-shadow: 0 0 0.55rem rgba(249, 226, 175, 0.28);
|
|
7329
|
+
}
|
|
7330
|
+
.message.compact-tool-shell.tool-running::before { background: var(--ctp-teal); }
|
|
7331
|
+
.message.compact-tool-shell.tool-success::before { background: var(--ctp-green); }
|
|
7332
|
+
.message.compact-tool-shell.tool-error::before { background: var(--ctp-red); }
|
|
7333
|
+
.compact-tool-shell .message-header {
|
|
7334
|
+
align-items: center;
|
|
7335
|
+
justify-content: flex-start;
|
|
7336
|
+
gap: 0.45rem;
|
|
7337
|
+
min-width: 0;
|
|
7338
|
+
margin: 0;
|
|
7339
|
+
}
|
|
7340
|
+
.compact-tool-shell .message-role {
|
|
7341
|
+
overflow: hidden;
|
|
7342
|
+
color: var(--ctp-yellow);
|
|
7343
|
+
font-size: 0.72rem;
|
|
7344
|
+
letter-spacing: 0.09em;
|
|
7345
|
+
text-overflow: ellipsis;
|
|
7346
|
+
text-transform: uppercase;
|
|
7347
|
+
white-space: nowrap;
|
|
7348
|
+
}
|
|
7349
|
+
.compact-tool-shell .message-header .muted { display: none; }
|
|
7350
|
+
.compact-tool-shell .message-body {
|
|
7351
|
+
display: flex;
|
|
7352
|
+
justify-content: flex-end;
|
|
7353
|
+
min-width: 0;
|
|
7066
7354
|
}
|
|
7067
7355
|
.compact-tool-shell .compact-tool-status {
|
|
7356
|
+
display: inline-flex;
|
|
7357
|
+
align-items: center;
|
|
7358
|
+
gap: 0.34rem;
|
|
7359
|
+
min-height: 1.35rem;
|
|
7360
|
+
padding: 0.08rem 0.46rem;
|
|
7361
|
+
border: 1px solid rgba(var(--ctp-subtext-rgb), 0.20);
|
|
7362
|
+
border-radius: 999px;
|
|
7068
7363
|
color: var(--ctp-subtext);
|
|
7364
|
+
background: rgba(var(--ctp-crust-rgb), 0.45);
|
|
7365
|
+
font-size: 0.7rem;
|
|
7366
|
+
font-weight: 750;
|
|
7367
|
+
letter-spacing: 0.04em;
|
|
7368
|
+
line-height: 1.15;
|
|
7369
|
+
text-transform: uppercase;
|
|
7370
|
+
white-space: nowrap;
|
|
7371
|
+
}
|
|
7372
|
+
.compact-tool-shell .compact-tool-status::before {
|
|
7373
|
+
content: "";
|
|
7374
|
+
width: 0.42rem;
|
|
7375
|
+
height: 0.42rem;
|
|
7376
|
+
border-radius: 999px;
|
|
7377
|
+
background: currentColor;
|
|
7378
|
+
box-shadow: 0 0 0.42rem currentColor;
|
|
7069
7379
|
}
|
|
7380
|
+
.compact-tool-shell.tool-running .compact-tool-status { color: var(--ctp-teal); }
|
|
7381
|
+
.compact-tool-shell.tool-running .compact-tool-status::before { animation: run-indicator-pulse 1.1s ease-in-out infinite; }
|
|
7382
|
+
.compact-tool-shell.tool-success .compact-tool-status { color: var(--ctp-green); }
|
|
7383
|
+
.compact-tool-shell.tool-error .compact-tool-status { color: var(--ctp-red); }
|
|
7070
7384
|
.text-block, .code-block {
|
|
7071
7385
|
margin: 0.35rem 0;
|
|
7072
7386
|
white-space: pre-wrap;
|
|
@@ -7732,11 +8046,15 @@ button.composer-skill-tag:focus-visible {
|
|
|
7732
8046
|
.spacer { flex: 1; }
|
|
7733
8047
|
.composer-new-button,
|
|
7734
8048
|
.composer-compact-button,
|
|
7735
|
-
.composer-workflow-mode-button,
|
|
7736
8049
|
.composer-git-button,
|
|
7737
8050
|
.composer-publish-menu {
|
|
7738
8051
|
margin-right: 0.45rem;
|
|
7739
8052
|
}
|
|
8053
|
+
.composer-workflow-mode-controls .composer-workflow-mode-button { margin-right: 0; }
|
|
8054
|
+
.composer-workflow-mode-controls.has-open-control {
|
|
8055
|
+
min-width: 1.95rem;
|
|
8056
|
+
min-height: 1.95rem;
|
|
8057
|
+
}
|
|
7740
8058
|
.composer-workflow-mode-button {
|
|
7741
8059
|
min-width: 6.8rem;
|
|
7742
8060
|
color: var(--ctp-mauve);
|
|
@@ -7758,9 +8076,46 @@ button.composer-skill-tag:focus-visible {
|
|
|
7758
8076
|
border-color: transparent;
|
|
7759
8077
|
background: linear-gradient(120deg, var(--ctp-mauve), var(--ctp-blue), var(--ctp-teal));
|
|
7760
8078
|
}
|
|
7761
|
-
.composer-workflow-mode-button[hidden]
|
|
8079
|
+
.composer-workflow-mode-button[hidden],
|
|
8080
|
+
.composer-workflow-overlay-open-button[hidden] {
|
|
7762
8081
|
display: none !important;
|
|
7763
8082
|
}
|
|
8083
|
+
.composer-workflow-overlay-open-button {
|
|
8084
|
+
position: absolute;
|
|
8085
|
+
top: -0.48rem;
|
|
8086
|
+
right: -0.48rem;
|
|
8087
|
+
z-index: 2;
|
|
8088
|
+
flex: none;
|
|
8089
|
+
width: 1.95rem;
|
|
8090
|
+
min-width: 1.95rem;
|
|
8091
|
+
max-width: 1.95rem;
|
|
8092
|
+
height: 1.95rem;
|
|
8093
|
+
min-height: 1.95rem;
|
|
8094
|
+
padding: 0.28rem;
|
|
8095
|
+
overflow: hidden;
|
|
8096
|
+
color: var(--ctp-mauve);
|
|
8097
|
+
border-color: rgba(203, 166, 247, 0.40);
|
|
8098
|
+
border-radius: 999px;
|
|
8099
|
+
background:
|
|
8100
|
+
linear-gradient(120deg, rgba(203, 166, 247, 0.16), rgba(137, 180, 250, 0.10)),
|
|
8101
|
+
linear-gradient(180deg, rgba(var(--ctp-surface-rgb), 0.96), rgba(var(--ctp-crust-rgb), 0.96));
|
|
8102
|
+
box-shadow: 0 0 0 1px rgba(203, 166, 247, 0.08), 0 0.55rem 1.2rem rgba(0, 0, 0, 0.16);
|
|
8103
|
+
}
|
|
8104
|
+
.composer-workflow-overlay-open-button:hover,
|
|
8105
|
+
.composer-workflow-overlay-open-button:focus-visible {
|
|
8106
|
+
color: #11111b;
|
|
8107
|
+
border-color: transparent;
|
|
8108
|
+
background: linear-gradient(120deg, var(--ctp-mauve), var(--ctp-blue));
|
|
8109
|
+
transform: translateY(-1px);
|
|
8110
|
+
}
|
|
8111
|
+
.workflow-overlay-close-button {
|
|
8112
|
+
border-color: rgba(243, 139, 168, 0.42);
|
|
8113
|
+
color: var(--ctp-red);
|
|
8114
|
+
}
|
|
8115
|
+
.workflow-overlay-close-button:hover,
|
|
8116
|
+
.workflow-overlay-close-button:focus-visible {
|
|
8117
|
+
border-color: rgba(243, 139, 168, 0.82);
|
|
8118
|
+
}
|
|
7764
8119
|
.composer-publish-menu {
|
|
7765
8120
|
position: relative;
|
|
7766
8121
|
z-index: 1;
|
|
@@ -10608,7 +10963,8 @@ body.subagent-terminal-active .composer-remote-mic-consent {
|
|
|
10608
10963
|
height: calc(var(--visual-viewport-height, 100dvh) - 2rem);
|
|
10609
10964
|
min-height: 28rem;
|
|
10610
10965
|
}
|
|
10611
|
-
.file-viewer-resize-handle
|
|
10966
|
+
.file-viewer-resize-handle,
|
|
10967
|
+
.side-panel-resize-handle {
|
|
10612
10968
|
display: none;
|
|
10613
10969
|
}
|
|
10614
10970
|
.chat { flex-basis: 0; }
|
|
@@ -10709,7 +11065,8 @@ body.subagent-terminal-active .composer-remote-mic-consent {
|
|
|
10709
11065
|
min-height: 0;
|
|
10710
11066
|
border-radius: 0;
|
|
10711
11067
|
}
|
|
10712
|
-
.file-viewer-resize-handle
|
|
11068
|
+
.file-viewer-resize-handle,
|
|
11069
|
+
.side-panel-resize-handle {
|
|
10713
11070
|
display: none;
|
|
10714
11071
|
}
|
|
10715
11072
|
.file-viewer-header,
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
function cloneSlot(slot = {}) {
|
|
2
|
+
return {
|
|
3
|
+
id: String(slot.id || ""),
|
|
4
|
+
model: typeof slot.model === "string" ? slot.model : null,
|
|
5
|
+
thinking: typeof slot.thinking === "string" ? slot.thinking : null,
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function cloneLaunchSlotRoles(roles = {}) {
|
|
10
|
+
return Object.fromEntries(Object.entries(roles || {}).map(([roleId, slots]) => [
|
|
11
|
+
roleId,
|
|
12
|
+
Array.isArray(slots) ? slots.map(cloneSlot) : [],
|
|
13
|
+
]));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function launchSlotRolesEqual(left, right) {
|
|
17
|
+
const leftRoles = Object.keys(left || {}).sort();
|
|
18
|
+
const rightRoles = Object.keys(right || {}).sort();
|
|
19
|
+
if (leftRoles.length !== rightRoles.length || leftRoles.some((roleId, index) => roleId !== rightRoles[index])) return false;
|
|
20
|
+
return leftRoles.every((roleId) => {
|
|
21
|
+
const leftSlots = Array.isArray(left?.[roleId]) ? left[roleId] : [];
|
|
22
|
+
const rightSlots = Array.isArray(right?.[roleId]) ? right[roleId] : [];
|
|
23
|
+
return leftSlots.length === rightSlots.length && leftSlots.every((slot, index) => (
|
|
24
|
+
slot?.id === rightSlots[index]?.id
|
|
25
|
+
&& (slot?.model || null) === (rightSlots[index]?.model || null)
|
|
26
|
+
&& (slot?.thinking || null) === (rightSlots[index]?.thinking || null)
|
|
27
|
+
));
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function updateLaunchSlot(roles, roleId, slotId, patch = {}) {
|
|
32
|
+
const next = cloneLaunchSlotRoles(roles);
|
|
33
|
+
const slots = next[roleId];
|
|
34
|
+
const index = Array.isArray(slots) ? slots.findIndex((slot) => slot.id === slotId) : -1;
|
|
35
|
+
if (index < 0) return next;
|
|
36
|
+
const model = Object.hasOwn(patch, "model") ? (patch.model || null) : slots[index].model;
|
|
37
|
+
const thinking = model && Object.hasOwn(patch, "thinking") ? (patch.thinking || null) : model ? slots[index].thinking : null;
|
|
38
|
+
slots[index] = { ...slots[index], model, thinking };
|
|
39
|
+
return next;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function addLaunchSlot(roles, roleId, sourceSlotId, { slotsPerRole = 8, totalSlots = 32, createId } = {}) {
|
|
43
|
+
const next = cloneLaunchSlotRoles(roles);
|
|
44
|
+
const slots = next[roleId];
|
|
45
|
+
if (!Array.isArray(slots) || slots.length >= slotsPerRole) return null;
|
|
46
|
+
const total = Object.values(next).reduce((count, value) => count + (Array.isArray(value) ? value.length : 0), 0);
|
|
47
|
+
if (total >= totalSlots) return null;
|
|
48
|
+
const source = slots.find((slot) => slot.id === sourceSlotId) || slots[slots.length - 1];
|
|
49
|
+
const id = typeof createId === "function" ? String(createId(roleId, slots) || "") : "";
|
|
50
|
+
if (!id || slots.some((slot) => slot.id === id)) return null;
|
|
51
|
+
const slot = { id, model: source?.model || null, thinking: source?.model ? source.thinking || null : null };
|
|
52
|
+
slots.push(slot);
|
|
53
|
+
return { roles: next, slot };
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function removeLaunchSlot(roles, roleId, slotId, baseSlotId = `${roleId}:base`) {
|
|
57
|
+
if (slotId === baseSlotId) return null;
|
|
58
|
+
const next = cloneLaunchSlotRoles(roles);
|
|
59
|
+
const slots = next[roleId];
|
|
60
|
+
const index = Array.isArray(slots) ? slots.findIndex((slot) => slot.id === slotId) : -1;
|
|
61
|
+
if (index < 0) return null;
|
|
62
|
+
const [removed] = slots.splice(index, 1);
|
|
63
|
+
return { roles: next, removed, focusSlotId: slots[Math.max(0, index - 1)]?.id || null };
|
|
64
|
+
}
|