@firstpick/pi-package-webui 0.7.3 → 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.
Files changed (34) hide show
  1. package/README.md +34 -20
  2. package/bin/pi-webui.mjs +332 -39
  3. package/index.ts +10 -1
  4. package/lib/git-workflow-preferences.mjs +91 -22
  5. package/lib/subagent-launch-slots.mjs +304 -0
  6. package/lib/trust-boundaries.mjs +1 -0
  7. package/lib/webui-output-mode.mjs +97 -0
  8. package/package.json +22 -22
  9. package/public/app.js +1629 -69
  10. package/public/fast-output-live.mjs +179 -0
  11. package/public/index.html +86 -12
  12. package/public/service-worker.js +3 -1
  13. package/public/styles.css +769 -37
  14. package/public/subagent-launch-slot-state.mjs +64 -0
  15. package/tests/chat-scroll-intent-static.test.mjs +59 -0
  16. package/tests/custom-message-markdown-static.test.mjs +15 -0
  17. package/tests/fast-mode-client-static.test.mjs +169 -0
  18. package/tests/fast-mode-output-work.test.mjs +69 -0
  19. package/tests/fast-mode-sse-harness.test.mjs +204 -0
  20. package/tests/fast-output-live.test.mjs +106 -0
  21. package/tests/fixtures/fake-pi.mjs +58 -0
  22. package/tests/fixtures/fast-mode-output-events.mjs +50 -0
  23. package/tests/footer-middle-truncation.test.mjs +2 -2
  24. package/tests/git-workflow-preferences.test.mjs +8 -2
  25. package/tests/http-endpoints-harness.test.mjs +74 -0
  26. package/tests/mobile-static.test.mjs +86 -15
  27. package/tests/remote-auth-settings-harness.test.mjs +1 -1
  28. package/tests/side-panel-resize-static.test.mjs +43 -0
  29. package/tests/subagent-launch-slot-state.test.mjs +36 -0
  30. package/tests/subagent-launch-slots-static.test.mjs +34 -0
  31. package/tests/subagent-launch-slots.test.mjs +143 -0
  32. package/tests/subagents-helper.test.mjs +46 -0
  33. package/tests/webui-output-mode.test.mjs +73 -0
  34. 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, 24rem);
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, 24rem);
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, 24rem);
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, 24rem);
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
- body.file-viewer-resizing .file-viewer-resize-handle {
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: auto minmax(0, 1fr) auto;
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: 2rem;
1770
+ width: 1rem;
1739
1771
  }
1740
1772
  .file-tree-item.file-tree-draggable {
1741
1773
  cursor: grab;
@@ -2255,6 +2287,9 @@ body.embedded-split .side-panel-backdrop {
2255
2287
  font-size: var(--text-xs);
2256
2288
  font-weight: 700;
2257
2289
  }
2290
+ .toggle-control-hint.warning {
2291
+ color: var(--ctp-yellow);
2292
+ }
2258
2293
  .toggle-control:has(input:checked) {
2259
2294
  border-color: rgba(148, 226, 213, 0.42);
2260
2295
  box-shadow: 0 0 0.9rem rgba(148, 226, 213, 0.10);
@@ -2396,6 +2431,197 @@ body.embedded-split .side-panel-backdrop {
2396
2431
  .subagents-help code {
2397
2432
  color: var(--ctp-teal);
2398
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
+ }
2399
2625
  .subagent-open-mode-field {
2400
2626
  display: grid;
2401
2627
  grid-template-columns: minmax(0, 1fr) auto;
@@ -3223,9 +3449,8 @@ body.embedded-split .side-panel-backdrop {
3223
3449
  padding-top: 0.38rem;
3224
3450
  min-width: 0;
3225
3451
  max-width: 100%;
3226
- max-height: min(60vh, 24rem);
3227
- overflow: auto;
3228
- scrollbar-width: thin;
3452
+ max-height: none;
3453
+ overflow: visible;
3229
3454
  }
3230
3455
  .terminal-tab-group:hover .terminal-tab-group-menu,
3231
3456
  .terminal-tab-group:focus-within .terminal-tab-group-menu,
@@ -3786,8 +4011,7 @@ body.embedded-split .side-panel-backdrop {
3786
4011
  background: linear-gradient(90deg, rgba(203, 166, 247, 0.10), rgba(137, 180, 250, 0.05), rgba(148, 226, 213, 0.08));
3787
4012
  }
3788
4013
  .widget-area:has(.release-npm-live-widget .release-npm-output-details[open]),
3789
- .widget-area:has(.release-aur-live-widget .release-npm-output-details[open]),
3790
- .widget-area:has(.workflow-live-widget .release-npm-output-details[open]) {
4014
+ .widget-area:has(.release-aur-live-widget .release-npm-output-details[open]) {
3791
4015
  flex: 0 0 min(44rem, 68dvh);
3792
4016
  min-height: 0;
3793
4017
  overflow: auto;
@@ -3795,6 +4019,14 @@ body.embedded-split .side-panel-backdrop {
3795
4019
  scrollbar-gutter: stable;
3796
4020
  overflow-anchor: none;
3797
4021
  }
4022
+ .widget-area:has(.workflow-live-widget .release-npm-output-details[open]) {
4023
+ min-height: 0;
4024
+ overflow-x: hidden;
4025
+ overflow-y: auto;
4026
+ overscroll-behavior-y: contain;
4027
+ scrollbar-gutter: stable;
4028
+ overflow-anchor: none;
4029
+ }
3798
4030
  .widget-area:has(.app-runner-live-widget .release-npm-output-details[open]) {
3799
4031
  flex: 0 0 auto;
3800
4032
  min-height: 0;
@@ -3803,12 +4035,15 @@ body.embedded-split .side-panel-backdrop {
3803
4035
  scrollbar-gutter: auto;
3804
4036
  overflow-anchor: none;
3805
4037
  }
3806
- .widget-area:has(.workflow-widget) {
3807
- flex: 0 1 auto;
3808
- max-height: min(34rem, 52dvh);
4038
+ .widget-area:has(.workflow-widget:not(.minimized)) {
4039
+ /* Follow rendered workflow content until the viewport-safe cap becomes the scroll boundary. */
4040
+ --workflow-overlay-max-height: min(44rem, 68dvh);
4041
+ flex: 0 0 auto;
4042
+ max-height: var(--workflow-overlay-max-height);
3809
4043
  min-height: 0;
3810
- overflow: auto;
3811
- overscroll-behavior: contain;
4044
+ overflow-x: hidden;
4045
+ overflow-y: auto;
4046
+ overscroll-behavior-y: contain;
3812
4047
  scrollbar-gutter: stable;
3813
4048
  overflow-anchor: none;
3814
4049
  }
@@ -4072,7 +4307,7 @@ button.footer-tui-item {
4072
4307
  white-space: nowrap;
4073
4308
  }
4074
4309
  .middle-truncate-start {
4075
- flex: 1 1 auto;
4310
+ flex: 0 1 auto;
4076
4311
  min-width: 6ch;
4077
4312
  overflow: hidden;
4078
4313
  text-overflow: ellipsis;
@@ -5487,13 +5722,89 @@ button.git-workflow-step:hover:not(:disabled) {
5487
5722
  linear-gradient(145deg, rgba(var(--ctp-crust-rgb), 0.98), rgba(var(--ctp-mantle-rgb), 0.92));
5488
5723
  }
5489
5724
  .workflow-widget .release-npm-kicker { color: var(--ctp-blue); }
5490
- .workflow-inspector-widget.minimized { gap: 0; }
5491
- .workflow-inspector-minimize-button {
5725
+ .workflow-subprocess-widget > .release-npm-header {
5726
+ grid-template-columns: minmax(12rem, 0.7fr) minmax(22rem, 1.7fr) auto;
5727
+ align-items: stretch;
5728
+ padding-bottom: 0.62rem;
5729
+ border-bottom: 1px solid rgba(137, 180, 250, 0.18);
5730
+ }
5731
+ .workflow-subprocess-widget .workflow-meta {
5732
+ display: grid;
5733
+ grid-template-columns: repeat(4, minmax(7rem, 1fr));
5734
+ gap: 0.38rem;
5735
+ align-items: stretch;
5736
+ justify-content: stretch;
5737
+ }
5738
+ .workflow-meta-item {
5739
+ display: grid;
5740
+ gap: 0.1rem;
5741
+ min-width: 0;
5742
+ padding: 0.36rem 0.48rem;
5743
+ border: 1px solid rgba(137, 180, 250, 0.22);
5744
+ border-radius: 0.56rem;
5745
+ background: rgba(var(--ctp-crust-rgb), 0.58);
5746
+ }
5747
+ .workflow-meta-label {
5748
+ color: rgba(var(--ctp-subtext-rgb), 0.72);
5749
+ font-size: var(--text-xs);
5750
+ font-weight: 900;
5751
+ letter-spacing: 0.1em;
5752
+ line-height: 1.1;
5753
+ text-transform: uppercase;
5754
+ }
5755
+ .workflow-meta-value {
5756
+ min-width: 0;
5757
+ overflow: hidden;
5758
+ color: var(--ctp-text);
5759
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
5760
+ font-size: var(--text-xs);
5761
+ line-height: 1.3;
5762
+ text-overflow: ellipsis;
5763
+ white-space: nowrap;
5764
+ }
5765
+ .workflow-meta-description {
5766
+ color: rgba(var(--ctp-subtext-rgb), 0.82);
5767
+ font-size: var(--text-xs);
5768
+ line-height: 1.3;
5769
+ overflow-wrap: anywhere;
5770
+ }
5771
+ .workflow-meta-item.workflow-status.completed .workflow-meta-value { color: var(--ctp-green); }
5772
+ .workflow-meta-item.workflow-status.failed .workflow-meta-value { color: var(--ctp-red); }
5773
+ .workflow-meta-item.workflow-status.cancelled .workflow-meta-value { color: var(--ctp-yellow); }
5774
+ .workflow-meta-item.workflow-status.running .workflow-meta-value,
5775
+ .workflow-meta-item.workflow-status.queued .workflow-meta-value { color: var(--ctp-blue); }
5776
+ .workflow-meta-item.workflow-tasks .workflow-meta-value { color: var(--ctp-teal); }
5777
+ .workflow-meta-item.workflow-truncated {
5778
+ border-color: rgba(250, 179, 135, 0.4);
5779
+ background: rgba(250, 179, 135, 0.08);
5780
+ }
5781
+ .workflow-meta-item.workflow-truncated .workflow-meta-value { color: var(--ctp-peach); }
5782
+ .workflow-output-controls {
5783
+ display: flex;
5784
+ align-items: center;
5785
+ justify-content: space-between;
5786
+ gap: 0.5rem 1rem;
5787
+ min-height: 1.35rem;
5788
+ padding-inline: 0.18rem;
5789
+ }
5790
+ .workflow-follow-status { color: var(--ctp-green); }
5791
+ .workflow-follow-status.paused { color: var(--ctp-yellow); }
5792
+ .workflow-output-help { margin-left: auto; text-align: right; }
5793
+ .workflow-inspector-widget.minimized,
5794
+ .workflow-subprocess-widget.minimized { gap: 0; }
5795
+ .workflow-subprocess-widget.minimized > .release-npm-header {
5796
+ padding-bottom: 0;
5797
+ border-bottom: 0;
5798
+ }
5799
+ .workflow-inspector-minimize-button,
5800
+ .workflow-subprocess-minimize-button {
5492
5801
  border-color: rgba(137, 180, 250, 0.42);
5493
5802
  color: var(--ctp-blue);
5494
5803
  }
5495
5804
  .workflow-inspector-minimize-button:hover,
5496
- .workflow-inspector-minimize-button:focus-visible { border-color: rgba(137, 180, 250, 0.82); }
5805
+ .workflow-inspector-minimize-button:focus-visible,
5806
+ .workflow-subprocess-minimize-button:hover,
5807
+ .workflow-subprocess-minimize-button:focus-visible { border-color: rgba(137, 180, 250, 0.82); }
5497
5808
  .workflow-widget .release-npm-pill.workflow-status.completed { color: var(--ctp-green); }
5498
5809
  .workflow-widget .release-npm-pill.workflow-status.failed { color: var(--ctp-red); }
5499
5810
  .workflow-widget .release-npm-pill.workflow-status.cancelled { color: var(--ctp-yellow); }
@@ -5595,12 +5906,25 @@ button.git-workflow-step:hover:not(:disabled) {
5595
5906
  }
5596
5907
  .workflow-inspector-agent-summary { display: flex; gap: 0.55rem; align-items: center; }
5597
5908
  .workflow-inspector-agent-body { display: grid; gap: 0.5rem; padding: 0 0.55rem 0.55rem; }
5909
+ @media (max-width: 1100px) {
5910
+ .workflow-subprocess-widget > .release-npm-header {
5911
+ grid-template-columns: minmax(0, 1fr) auto;
5912
+ }
5913
+ .workflow-subprocess-widget > .release-npm-header .workflow-meta { grid-column: 1 / -1; grid-row: 2; }
5914
+ }
5598
5915
  @media (max-width: 720px), (max-device-width: 720px), (pointer: coarse) and (hover: none) {
5916
+ .workflow-subprocess-widget > .release-npm-header { grid-template-columns: minmax(0, 1fr); }
5917
+ .workflow-subprocess-widget > .release-npm-header .workflow-meta { grid-column: auto; grid-row: auto; }
5918
+ .workflow-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
5919
+ .workflow-output-controls { align-items: flex-start; flex-direction: column; }
5920
+ .workflow-output-help { margin-left: 0; text-align: left; }
5599
5921
  .workflow-inspector-layout { grid-template-columns: 1fr; }
5600
5922
  .workflow-inspector-run-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 13rem; }
5601
5923
  .workflow-inspector-actions { justify-content: stretch; }
5602
5924
  .workflow-inspector-actions button { flex: 1 1 7rem; min-height: 44px; }
5603
- .workflow-inspector-minimize-button { min-height: 44px; }
5925
+ .workflow-inspector-minimize-button,
5926
+ .workflow-subprocess-minimize-button,
5927
+ .workflow-overlay-close-button { min-height: 44px; }
5604
5928
  }
5605
5929
  .btw-widget {
5606
5930
  border-color: rgba(148, 226, 213, 0.62);
@@ -5938,6 +6262,7 @@ button.git-workflow-step:hover:not(:disabled) {
5938
6262
  }
5939
6263
  .release-npm-output-details {
5940
6264
  display: grid;
6265
+ grid-template-columns: minmax(0, 1fr);
5941
6266
  gap: 0.58rem;
5942
6267
  min-width: 0;
5943
6268
  }
@@ -6002,11 +6327,18 @@ button.git-workflow-step:hover:not(:disabled) {
6002
6327
  overscroll-behavior: contain;
6003
6328
  }
6004
6329
  .release-npm-live-widget .release-npm-output-details[open] .release-npm-terminal,
6005
- .release-aur-live-widget .release-npm-output-details[open] .release-npm-terminal,
6006
- .workflow-live-widget .release-npm-output-details[open] .release-npm-terminal {
6330
+ .release-aur-live-widget .release-npm-output-details[open] .release-npm-terminal {
6007
6331
  height: clamp(15rem, 42dvh, 31rem);
6008
6332
  min-height: 0;
6009
6333
  }
6334
+ .workflow-subprocess-widget .release-npm-output-details[open] .release-npm-terminal {
6335
+ max-height: clamp(12rem, 34dvh, 26rem);
6336
+ min-height: 0;
6337
+ overflow-anchor: none;
6338
+ overscroll-behavior-x: contain;
6339
+ overscroll-behavior-y: auto;
6340
+ scrollbar-gutter: stable;
6341
+ }
6010
6342
  .release-npm-line {
6011
6343
  display: block;
6012
6344
  width: max-content;
@@ -6942,6 +7274,113 @@ button.git-workflow-step:hover:not(:disabled) {
6942
7274
  .streaming-markdown {
6943
7275
  min-height: 1.35rem;
6944
7276
  }
7277
+ .compact-live-output {
7278
+ outline-color: rgba(148, 226, 213, 0.46);
7279
+ }
7280
+ .compact-live-text,
7281
+ .compact-tool-status {
7282
+ min-height: 1.35rem;
7283
+ white-space: pre-wrap;
7284
+ overflow-wrap: anywhere;
7285
+ }
7286
+ .compact-live-thinking {
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;
7354
+ }
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;
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;
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); }
6945
7384
  .text-block, .code-block {
6946
7385
  margin: 0.35rem 0;
6947
7386
  white-space: pre-wrap;
@@ -7092,6 +7531,37 @@ summary { cursor: pointer; color: var(--warning); }
7092
7531
  .composer-skill-tags[hidden] {
7093
7532
  display: none !important;
7094
7533
  }
7534
+ .composer-feature-category-tag {
7535
+ flex: 0 1 auto;
7536
+ min-width: 0;
7537
+ max-width: min(14rem, 100%);
7538
+ padding: 0.14rem 0.56rem;
7539
+ border: 1px solid rgba(148, 226, 213, 0.52);
7540
+ border-radius: 999px;
7541
+ color: var(--ctp-teal);
7542
+ background:
7543
+ linear-gradient(120deg, rgba(148, 226, 213, 0.28), rgba(166, 227, 161, 0.10)),
7544
+ var(--ctp-crust);
7545
+ box-shadow: 0 0.42rem 1rem rgba(var(--ctp-crust-rgb), 0.42), 0 0 1rem rgba(148, 226, 213, 0.22);
7546
+ font-size: var(--text-xs);
7547
+ font-weight: 900;
7548
+ letter-spacing: 0.04em;
7549
+ line-height: 1.1;
7550
+ overflow: hidden;
7551
+ text-overflow: ellipsis;
7552
+ white-space: nowrap;
7553
+ }
7554
+ .composer-feature-category-tag.complex-feature {
7555
+ border-color: rgba(203, 166, 247, 0.56);
7556
+ color: var(--ctp-mauve);
7557
+ background:
7558
+ linear-gradient(120deg, rgba(203, 166, 247, 0.28), rgba(137, 180, 250, 0.12)),
7559
+ var(--ctp-crust);
7560
+ box-shadow: 0 0.42rem 1rem rgba(var(--ctp-crust-rgb), 0.42), 0 0 1rem rgba(203, 166, 247, 0.24);
7561
+ }
7562
+ .composer-feature-category-tag[hidden] {
7563
+ display: none !important;
7564
+ }
7095
7565
  .composer-conversation-mode-chip {
7096
7566
  flex: 0 0 auto;
7097
7567
  min-height: 0;
@@ -7576,11 +8046,15 @@ button.composer-skill-tag:focus-visible {
7576
8046
  .spacer { flex: 1; }
7577
8047
  .composer-new-button,
7578
8048
  .composer-compact-button,
7579
- .composer-workflow-mode-button,
7580
8049
  .composer-git-button,
7581
8050
  .composer-publish-menu {
7582
8051
  margin-right: 0.45rem;
7583
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
+ }
7584
8058
  .composer-workflow-mode-button {
7585
8059
  min-width: 6.8rem;
7586
8060
  color: var(--ctp-mauve);
@@ -7602,9 +8076,46 @@ button.composer-skill-tag:focus-visible {
7602
8076
  border-color: transparent;
7603
8077
  background: linear-gradient(120deg, var(--ctp-mauve), var(--ctp-blue), var(--ctp-teal));
7604
8078
  }
7605
- .composer-workflow-mode-button[hidden] {
8079
+ .composer-workflow-mode-button[hidden],
8080
+ .composer-workflow-overlay-open-button[hidden] {
7606
8081
  display: none !important;
7607
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
+ }
7608
8119
  .composer-publish-menu {
7609
8120
  position: relative;
7610
8121
  z-index: 1;
@@ -8692,6 +9203,177 @@ button.composer-skill-tag:focus-visible {
8692
9203
  color: var(--text);
8693
9204
  box-shadow: 0 2rem 5rem var(--shadow), 0 0 2rem var(--glow-mauve);
8694
9205
  }
9206
+ .extension-dialog.workflow-script-dialog {
9207
+ width: min(96rem, calc(100vw - 2rem));
9208
+ height: min(58rem, calc(var(--visual-viewport-height, 100dvh) - 2rem));
9209
+ max-height: calc(var(--visual-viewport-height, 100dvh) - 2rem);
9210
+ overflow: hidden;
9211
+ border-color: rgba(137, 180, 250, 0.54);
9212
+ background:
9213
+ radial-gradient(circle at 100% 0, rgba(148, 226, 213, 0.12), transparent 28rem),
9214
+ linear-gradient(145deg, rgba(var(--ctp-base-rgb), 0.99), rgba(var(--ctp-crust-rgb), 0.99));
9215
+ box-shadow: 0 2rem 5rem var(--shadow), 0 0 2.4rem rgba(137, 180, 250, 0.18);
9216
+ }
9217
+ .workflow-script-dialog form {
9218
+ display: grid;
9219
+ grid-template-rows: auto auto minmax(0, 1fr) auto;
9220
+ gap: 0.75rem;
9221
+ height: 100%;
9222
+ min-height: 0;
9223
+ padding: clamp(0.85rem, 1.8vw, 1.35rem);
9224
+ }
9225
+ .workflow-script-dialog #dialogTitle {
9226
+ margin: 0;
9227
+ color: var(--ctp-blue);
9228
+ text-shadow: 0 0 1rem rgba(137, 180, 250, 0.2);
9229
+ }
9230
+ .workflow-script-dialog #dialogMessage {
9231
+ margin: 0;
9232
+ color: rgba(var(--ctp-subtext-rgb), 0.9);
9233
+ }
9234
+ .workflow-script-dialog #dialogBody {
9235
+ display: flex;
9236
+ min-height: 0;
9237
+ overflow: hidden;
9238
+ }
9239
+ .workflow-script-dialog #dialogActions {
9240
+ margin: 0;
9241
+ padding: 0;
9242
+ }
9243
+ .workflow-script-preview {
9244
+ display: grid;
9245
+ grid-template-rows: auto auto minmax(0, 1fr);
9246
+ gap: 0.65rem;
9247
+ flex: 1 1 auto;
9248
+ min-width: 0;
9249
+ min-height: 0;
9250
+ }
9251
+ .workflow-script-meta {
9252
+ display: flex;
9253
+ flex-wrap: wrap;
9254
+ align-items: center;
9255
+ justify-content: space-between;
9256
+ gap: 0.45rem 0.8rem;
9257
+ min-width: 0;
9258
+ color: rgba(var(--ctp-subtext-rgb), 0.9);
9259
+ font-size: var(--text-sm);
9260
+ }
9261
+ .workflow-script-language {
9262
+ color: var(--ctp-teal);
9263
+ font-weight: 850;
9264
+ }
9265
+ .workflow-script-source-stats {
9266
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
9267
+ font-variant-numeric: tabular-nums;
9268
+ }
9269
+ .workflow-script-toolbar {
9270
+ display: grid;
9271
+ grid-template-columns: minmax(12rem, 1fr) repeat(4, auto);
9272
+ gap: 0.45rem;
9273
+ align-items: center;
9274
+ min-width: 0;
9275
+ padding: 0.5rem;
9276
+ border: 1px solid rgba(180, 190, 254, 0.2);
9277
+ border-radius: 0.8rem;
9278
+ background: rgba(var(--ctp-crust-rgb), 0.5);
9279
+ }
9280
+ .workflow-script-search {
9281
+ width: 100%;
9282
+ min-width: 0;
9283
+ min-height: 2.4rem;
9284
+ padding: 0.4rem 0.65rem;
9285
+ color: var(--ctp-text);
9286
+ border-color: rgba(137, 180, 250, 0.42);
9287
+ background: rgba(var(--ctp-mantle-rgb), 0.88);
9288
+ }
9289
+ .workflow-script-search:focus-visible {
9290
+ border-color: var(--ctp-teal);
9291
+ box-shadow: 0 0 0 3px rgba(148, 226, 213, 0.18), 0 0 1rem rgba(148, 226, 213, 0.22);
9292
+ }
9293
+ .workflow-script-toolbar button {
9294
+ min-height: 2.4rem;
9295
+ padding: 0.38rem 0.62rem;
9296
+ color: var(--ctp-text);
9297
+ border-color: rgba(180, 190, 254, 0.3);
9298
+ font-size: var(--text-sm);
9299
+ font-weight: 760;
9300
+ white-space: nowrap;
9301
+ }
9302
+ .workflow-script-search-button { color: var(--ctp-blue) !important; }
9303
+ .workflow-script-wrap-button { color: var(--ctp-mauve) !important; }
9304
+ .workflow-script-copy-button { color: var(--ctp-green) !important; }
9305
+ .workflow-script-search-status,
9306
+ .workflow-script-copy-status {
9307
+ grid-column: 1 / -1;
9308
+ min-height: 1.15rem;
9309
+ color: var(--ctp-subtext);
9310
+ font-size: var(--text-xs);
9311
+ font-weight: 720;
9312
+ }
9313
+ .workflow-script-copy-status { color: var(--ctp-green); }
9314
+ .workflow-script-code {
9315
+ min-width: 0;
9316
+ min-height: 0;
9317
+ overflow: auto;
9318
+ overscroll-behavior: contain;
9319
+ scrollbar-gutter: stable both-edges;
9320
+ border: 1px solid rgba(137, 180, 250, 0.28);
9321
+ border-radius: 0.82rem;
9322
+ background: rgba(var(--ctp-crust-rgb), 0.84);
9323
+ box-shadow: inset 0 0 2.2rem rgba(var(--ctp-crust-rgb), 0.44);
9324
+ color: var(--ctp-text);
9325
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
9326
+ font-size: 0.875rem;
9327
+ line-height: 1.58;
9328
+ }
9329
+ .workflow-script-code:focus-visible {
9330
+ outline: 3px solid rgba(148, 226, 213, 0.72);
9331
+ outline-offset: 2px;
9332
+ box-shadow: inset 0 0 2.2rem rgba(var(--ctp-crust-rgb), 0.44), 0 0 1.2rem rgba(148, 226, 213, 0.18);
9333
+ }
9334
+ .workflow-script-line {
9335
+ display: grid;
9336
+ grid-template-columns: minmax(3.75rem, auto) minmax(0, 1fr);
9337
+ min-width: max-content;
9338
+ border-bottom: 1px solid rgba(180, 190, 254, 0.07);
9339
+ }
9340
+ .workflow-script-line:last-child { border-bottom: 0; }
9341
+ .workflow-script-line-number {
9342
+ position: sticky;
9343
+ left: 0;
9344
+ z-index: 1;
9345
+ padding: 0 0.75rem 0 0.6rem;
9346
+ color: rgba(var(--ctp-subtext-rgb), 0.72);
9347
+ background: rgba(var(--ctp-mantle-rgb), 0.96);
9348
+ font-variant-numeric: tabular-nums;
9349
+ text-align: right;
9350
+ user-select: none;
9351
+ }
9352
+ .workflow-script-line-text {
9353
+ min-width: 0;
9354
+ padding: 0 0.8rem;
9355
+ color: inherit;
9356
+ white-space: pre;
9357
+ }
9358
+ .workflow-script-code.is-wrapped .workflow-script-line { min-width: 100%; }
9359
+ .workflow-script-code.is-wrapped .workflow-script-line-text {
9360
+ white-space: pre-wrap;
9361
+ overflow-wrap: anywhere;
9362
+ }
9363
+ .workflow-script-line.is-search-match { background: rgba(249, 226, 175, 0.12); }
9364
+ .workflow-script-line.is-active-match {
9365
+ background: rgba(137, 180, 250, 0.2);
9366
+ box-shadow: inset 0.22rem 0 0 var(--ctp-teal);
9367
+ }
9368
+ .workflow-script-line.is-active-match .workflow-script-line-number {
9369
+ color: var(--ctp-crust);
9370
+ background: var(--ctp-teal);
9371
+ font-weight: 900;
9372
+ }
9373
+ .workflow-script-token-keyword { color: var(--ctp-mauve); font-weight: 760; }
9374
+ .workflow-script-token-string { color: var(--ctp-green); }
9375
+ .workflow-script-token-number { color: var(--ctp-peach); }
9376
+ .workflow-script-token-comment { color: var(--ctp-subtext); font-style: italic; }
8695
9377
  .extension-dialog::backdrop { background: rgba(var(--ctp-crust-rgb), 0.78); backdrop-filter: blur(4px); }
8696
9378
  #dialogMessage {
8697
9379
  white-space: pre-wrap;
@@ -10281,7 +10963,8 @@ body.subagent-terminal-active .composer-remote-mic-consent {
10281
10963
  height: calc(var(--visual-viewport-height, 100dvh) - 2rem);
10282
10964
  min-height: 28rem;
10283
10965
  }
10284
- .file-viewer-resize-handle {
10966
+ .file-viewer-resize-handle,
10967
+ .side-panel-resize-handle {
10285
10968
  display: none;
10286
10969
  }
10287
10970
  .chat { flex-basis: 0; }
@@ -10382,7 +11065,8 @@ body.subagent-terminal-active .composer-remote-mic-consent {
10382
11065
  min-height: 0;
10383
11066
  border-radius: 0;
10384
11067
  }
10385
- .file-viewer-resize-handle {
11068
+ .file-viewer-resize-handle,
11069
+ .side-panel-resize-handle {
10386
11070
  display: none;
10387
11071
  }
10388
11072
  .file-viewer-header,
@@ -10564,6 +11248,7 @@ body.subagent-terminal-active .composer-remote-mic-consent {
10564
11248
  overflow: auto;
10565
11249
  padding: 0.36rem 0.55rem;
10566
11250
  }
11251
+ .widget-area:has(.workflow-widget:not(.minimized)) { --workflow-overlay-max-height: 34dvh; }
10567
11252
  .widget-area .widget:not(.todo-widget):not(.release-npm-widget) { display: none; }
10568
11253
  .release-npm-widget {
10569
11254
  gap: 0.45rem;
@@ -12686,3 +13371,50 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
12686
13371
  .empty-start-context-label { flex-basis: 100%; }
12687
13372
  .confirmation-details > div { grid-template-columns: 1fr; gap: 0.2rem; }
12688
13373
  }
13374
+
13375
+ @media (max-width: 720px), (max-device-width: 720px), (pointer: coarse) and (hover: none) {
13376
+ .extension-dialog.workflow-script-dialog {
13377
+ inset: calc(0.25rem + env(safe-area-inset-top)) 0 0;
13378
+ width: 100vw;
13379
+ height: calc(var(--visual-viewport-height, 100dvh) - 0.25rem - env(safe-area-inset-top));
13380
+ max-height: calc(var(--visual-viewport-height, 100dvh) - 0.25rem - env(safe-area-inset-top));
13381
+ margin: 0;
13382
+ overflow: hidden;
13383
+ border-radius: 1rem 1rem 0 0;
13384
+ }
13385
+ .workflow-script-dialog form {
13386
+ gap: 0.58rem;
13387
+ padding: 0.75rem 0.7rem calc(0.7rem + env(safe-area-inset-bottom));
13388
+ }
13389
+ .workflow-script-dialog #dialogTitle { font-size: clamp(1.05rem, 5vw, 1.3rem); }
13390
+ .workflow-script-toolbar {
13391
+ grid-template-columns: repeat(2, minmax(0, 1fr));
13392
+ gap: 0.4rem;
13393
+ }
13394
+ .workflow-script-search,
13395
+ .workflow-script-search-status,
13396
+ .workflow-script-copy-status { grid-column: 1 / -1; }
13397
+ .workflow-script-toolbar button {
13398
+ width: 100%;
13399
+ padding-inline: 0.38rem;
13400
+ font-size: var(--text-xs);
13401
+ }
13402
+ .workflow-script-meta { align-items: start; font-size: var(--text-xs); }
13403
+ .workflow-script-code { font-size: 0.8rem; line-height: 1.5; }
13404
+ .workflow-script-line { grid-template-columns: minmax(3.1rem, auto) minmax(0, 1fr); }
13405
+ .workflow-script-line-number { padding-inline: 0.44rem 0.55rem; }
13406
+ .workflow-script-line-text { padding-inline: 0.58rem; }
13407
+ .workflow-script-dialog #dialogActions {
13408
+ position: static;
13409
+ display: grid;
13410
+ grid-template-columns: repeat(2, minmax(0, 1fr));
13411
+ gap: 0.5rem;
13412
+ padding-bottom: 0;
13413
+ background: transparent;
13414
+ }
13415
+ .workflow-script-dialog #dialogActions button {
13416
+ min-width: 0;
13417
+ padding-inline: 0.45rem;
13418
+ font-size: var(--text-sm);
13419
+ }
13420
+ }