@firstpick/pi-package-webui 0.5.9 → 0.6.1
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 +13 -3
- package/bin/pi-webui.mjs +494 -19
- package/lib/git-worktrees.mjs +5 -1
- package/package.json +2 -2
- package/public/app.js +1062 -38
- package/public/index.html +28 -2
- package/public/service-worker.js +2 -1
- package/public/styles.css +474 -6
- package/public/voice-conversation.mjs +466 -0
- package/tests/fixtures/compacting-pi.mjs +0 -0
- package/tests/fixtures/fake-pi.mjs +154 -1
- package/tests/http-endpoints-harness.test.mjs +76 -3
- package/tests/mobile-static.test.mjs +58 -7
- package/tests/theme-scheme-mode.test.mjs +132 -0
- package/tests/voice-conversation.test.mjs +361 -0
package/public/index.html
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
13
13
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
14
14
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
15
|
-
<link rel="stylesheet" href="/styles.css?v=
|
|
15
|
+
<link rel="stylesheet" href="/styles.css?v=63" />
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
|
18
18
|
<button id="sidePanelExpandButton" class="side-panel-expand-button" type="button" aria-controls="sidePanel" aria-expanded="false" aria-label="Expand side panel" title="Expand side panel">
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
</div>
|
|
74
74
|
</div>
|
|
75
75
|
</div>
|
|
76
|
+
<button id="splitTabButton" class="terminal-split-button" type="button" aria-label="Split the active terminal to the right" aria-pressed="false"><svg class="terminal-split-icon terminal-split-icon-split" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><rect x="4" y="5" width="16" height="14" rx="2" fill="none" stroke="currentColor" stroke-width="2"/><path d="M12 5v14M15 12h4m0 0-2-2m2 2-2 2" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg><svg class="terminal-split-icon terminal-split-icon-unsplit" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><rect x="4" y="5" width="16" height="14" rx="2" fill="none" stroke="currentColor" stroke-width="2"/><path d="M12 5v14M19 12h-4m0 0 2-2m-2 2 2 2" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
|
|
76
77
|
<button id="commandPaletteButton" class="terminal-command-palette-button" type="button" aria-label="Open command palette" data-tooltip="Command palette: • Search and run actions, slash commands, models, and tabs. • Shortcut: Ctrl/Cmd+K."><svg class="composer-icon command-palette-launcher-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M5 7.5h14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M5 12h9" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M5 16.5h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M17 14.5 19.5 17 17 19.5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
|
|
77
78
|
<button id="workspaceDashboardToggleButton" class="terminal-dashboard-button" type="button" aria-controls="workspaceDashboard" aria-expanded="false" aria-label="Show workspace overview" data-tooltip="Workspace overview: • Shows current tab, cwd, model, context, session, and queue. • Opens common workspace/session actions from one place."><svg class="composer-icon workspace-overview-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M4 11.4 12 4l8 7.4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.5 10.5V20h11v-9.5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M10 20v-5h4v5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
|
|
78
79
|
<button id="closeAllTabsButton" class="terminal-close-all-button" type="button" aria-label="Close all terminal tabs">Close all Tabs</button>
|
|
@@ -294,6 +295,10 @@
|
|
|
294
295
|
aria-label="Follow-up: type your message first, then tap this button to send it as a follow-up."
|
|
295
296
|
data-tooltip="Follow-up usage: 1. Type your message in the textarea. 2. Tap Follow-up to send it as a follow-up. Use for extra context or the next request."
|
|
296
297
|
>Follow-up</button>
|
|
298
|
+
<div id="conversationVoiceMenu" class="composer-publish-menu composer-conversation-voice-menu" hidden>
|
|
299
|
+
<button id="conversationVoiceButton" class="composer-publish-button composer-conversation-voice-button" type="button" title="Switch the spoken Piper voice. Voices marked with a size are downloaded when selected; progress shows on the voice chip." aria-label="Conversation voice" aria-haspopup="menu" aria-expanded="false" aria-controls="conversationVoiceMenuPanel"><span id="conversationVoiceButtonLabel">Voice</span></button>
|
|
300
|
+
<div id="conversationVoiceMenuPanel" class="composer-publish-menu-panel composer-conversation-voice-menu-panel" role="menu" aria-label="Conversation voices"></div>
|
|
301
|
+
</div>
|
|
297
302
|
<button id="conversationModeEndButton" class="composer-conversation-end-button" type="button" title="End Natural Conversation Mode for this Pi tab" aria-label="End Natural Conversation Mode" hidden>End conversation</button>
|
|
298
303
|
<button id="abortButton" class="composer-abort-button danger" type="button" title="Hold Esc or the Abort button for 3 seconds to abort the active Pi run" aria-label="Hold Esc or the Abort button for 3 seconds to abort the active Pi run" hidden disabled>Abort</button>
|
|
299
304
|
<button
|
|
@@ -308,6 +313,22 @@
|
|
|
308
313
|
<button id="sendButton" type="submit" class="primary" title="Send prompt">Send</button>
|
|
309
314
|
</div>
|
|
310
315
|
</form>
|
|
316
|
+
<div id="remoteMicStreamingConsent" class="composer-remote-mic-consent" role="alert" hidden>
|
|
317
|
+
<span id="remoteMicStreamingConsentText" class="composer-remote-mic-consent-text"></span>
|
|
318
|
+
<button id="remoteMicStreamingConsentButton" class="composer-remote-mic-consent-button" type="button" aria-describedby="remoteMicStreamingConsentText" disabled>Allow remote microphone streaming</button>
|
|
319
|
+
</div>
|
|
320
|
+
</section>
|
|
321
|
+
|
|
322
|
+
<section id="terminalSplitShell" class="terminal-split-shell" aria-label="Split terminal" hidden>
|
|
323
|
+
<header class="terminal-split-toolbar">
|
|
324
|
+
<div class="terminal-split-heading">
|
|
325
|
+
<span class="terminal-split-kicker">Split terminal</span>
|
|
326
|
+
<strong id="terminalSplitTitle">Independent terminal</strong>
|
|
327
|
+
<span id="terminalSplitMeta" class="terminal-split-meta muted"></span>
|
|
328
|
+
</div>
|
|
329
|
+
<button id="terminalSplitCloseButton" class="terminal-split-close-button" type="button" aria-label="Close split terminal view">Close split</button>
|
|
330
|
+
</header>
|
|
331
|
+
<iframe id="terminalSplitFrame" class="terminal-split-frame" title="Independent split terminal"></iframe>
|
|
311
332
|
</section>
|
|
312
333
|
|
|
313
334
|
<button id="sidePanelBackdrop" class="side-panel-backdrop" type="button" aria-label="Close side panel" hidden></button>
|
|
@@ -377,6 +398,11 @@
|
|
|
377
398
|
</div>
|
|
378
399
|
<div class="control-field">
|
|
379
400
|
<label for="themeSelect" id="themeControlLabel" title="Open or close theme search" tabindex="0">Theme</label>
|
|
401
|
+
<div id="themeSchemeToggle" class="theme-scheme-toggle" role="group" aria-label="Theme mode">
|
|
402
|
+
<button type="button" data-scheme-mode="light" aria-pressed="false" title="Always use your light theme">Light</button>
|
|
403
|
+
<button type="button" data-scheme-mode="dark" aria-pressed="false" title="Always use your dark theme">Dark</button>
|
|
404
|
+
<button type="button" data-scheme-mode="auto" aria-pressed="false" title="Follow your system light/dark setting">Auto</button>
|
|
405
|
+
</div>
|
|
380
406
|
<input id="themeSearchInput" class="model-search-input theme-search-input" type="search" placeholder="Search themes…" autocomplete="off" spellcheck="false" hidden />
|
|
381
407
|
<select id="themeSelect" title="Theme"></select>
|
|
382
408
|
<div id="themeSearchResults" class="model-search-results theme-search-results" role="listbox" aria-label="Theme search results" hidden></div>
|
|
@@ -754,6 +780,6 @@
|
|
|
754
780
|
</form>
|
|
755
781
|
</dialog>
|
|
756
782
|
|
|
757
|
-
<script type="module" src="/app.js?v=
|
|
783
|
+
<script type="module" src="/app.js?v=62"></script>
|
|
758
784
|
</body>
|
|
759
785
|
</html>
|
package/public/service-worker.js
CHANGED
package/public/styles.css
CHANGED
|
@@ -309,6 +309,12 @@ textarea::placeholder { color: rgba(var(--ctp-subtext-rgb), 0.62); }
|
|
|
309
309
|
body.side-panel-collapsed .layout {
|
|
310
310
|
grid-template-columns: minmax(0, 1fr);
|
|
311
311
|
}
|
|
312
|
+
body.terminal-split-open .layout {
|
|
313
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(20rem, 24rem);
|
|
314
|
+
}
|
|
315
|
+
body.terminal-split-open.side-panel-collapsed .layout {
|
|
316
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
317
|
+
}
|
|
312
318
|
body.side-panel-collapsed .side-panel {
|
|
313
319
|
display: none;
|
|
314
320
|
}
|
|
@@ -617,6 +623,112 @@ body.side-panel-collapsed .terminal-tabs-shell {
|
|
|
617
623
|
height: 100%;
|
|
618
624
|
min-height: 0;
|
|
619
625
|
}
|
|
626
|
+
.terminal-split-shell {
|
|
627
|
+
position: relative;
|
|
628
|
+
display: flex;
|
|
629
|
+
flex-direction: column;
|
|
630
|
+
min-width: 0;
|
|
631
|
+
min-height: 0;
|
|
632
|
+
height: 100%;
|
|
633
|
+
overflow: hidden;
|
|
634
|
+
border: 1px solid rgba(148, 226, 213, 0.22);
|
|
635
|
+
border-radius: 1.1rem;
|
|
636
|
+
background: var(--panel-gradient);
|
|
637
|
+
box-shadow: 0 1rem 3rem var(--shadow), 0 0 2rem rgba(148, 226, 213, 0.10), inset 0 1px 0 rgba(255,255,255,0.06);
|
|
638
|
+
}
|
|
639
|
+
.terminal-split-shell[hidden] {
|
|
640
|
+
display: none !important;
|
|
641
|
+
}
|
|
642
|
+
.terminal-split-toolbar {
|
|
643
|
+
flex: 0 0 auto;
|
|
644
|
+
display: flex;
|
|
645
|
+
align-items: center;
|
|
646
|
+
justify-content: space-between;
|
|
647
|
+
gap: 0.75rem;
|
|
648
|
+
min-width: 0;
|
|
649
|
+
padding: 0.58rem 0.72rem;
|
|
650
|
+
border-bottom: 1px solid rgba(180, 190, 254, 0.16);
|
|
651
|
+
background:
|
|
652
|
+
linear-gradient(90deg, rgba(var(--ctp-crust-rgb), 0.96), rgba(var(--ctp-base-rgb), 0.82), rgba(var(--ctp-mantle-rgb), 0.92)),
|
|
653
|
+
radial-gradient(circle at 0% 0%, rgba(148, 226, 213, 0.14), transparent 16rem);
|
|
654
|
+
box-shadow: inset 0 -1px 0 rgba(255,255,255,0.035), 0 0.45rem 1rem rgba(var(--ctp-crust-rgb), 0.18);
|
|
655
|
+
}
|
|
656
|
+
.terminal-split-heading {
|
|
657
|
+
display: grid;
|
|
658
|
+
gap: 0.08rem;
|
|
659
|
+
min-width: 0;
|
|
660
|
+
}
|
|
661
|
+
.terminal-split-kicker {
|
|
662
|
+
color: var(--ctp-teal);
|
|
663
|
+
font-size: 0.62rem;
|
|
664
|
+
font-weight: 900;
|
|
665
|
+
letter-spacing: 0.12em;
|
|
666
|
+
text-transform: uppercase;
|
|
667
|
+
}
|
|
668
|
+
.terminal-split-heading strong,
|
|
669
|
+
.terminal-split-meta {
|
|
670
|
+
min-width: 0;
|
|
671
|
+
overflow: hidden;
|
|
672
|
+
text-overflow: ellipsis;
|
|
673
|
+
white-space: nowrap;
|
|
674
|
+
}
|
|
675
|
+
.terminal-split-heading strong {
|
|
676
|
+
color: var(--ctp-text);
|
|
677
|
+
font-size: 0.86rem;
|
|
678
|
+
}
|
|
679
|
+
.terminal-split-meta {
|
|
680
|
+
max-width: min(30rem, 42vw);
|
|
681
|
+
color: rgba(var(--ctp-subtext-rgb), 0.68);
|
|
682
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
683
|
+
font-size: 0.66rem;
|
|
684
|
+
}
|
|
685
|
+
.terminal-split-close-button {
|
|
686
|
+
flex: 0 0 auto;
|
|
687
|
+
min-height: 2.2rem;
|
|
688
|
+
padding: 0.34rem 0.64rem;
|
|
689
|
+
color: var(--ctp-teal);
|
|
690
|
+
white-space: nowrap;
|
|
691
|
+
border-color: rgba(148, 226, 213, 0.34);
|
|
692
|
+
background:
|
|
693
|
+
linear-gradient(120deg, rgba(148, 226, 213, 0.13), rgba(137, 180, 250, 0.08)),
|
|
694
|
+
rgba(var(--ctp-crust-rgb), 0.62);
|
|
695
|
+
}
|
|
696
|
+
.terminal-split-close-button:hover,
|
|
697
|
+
.terminal-split-close-button:focus-visible {
|
|
698
|
+
color: #11111b;
|
|
699
|
+
border-color: transparent;
|
|
700
|
+
background: linear-gradient(120deg, var(--ctp-teal), var(--ctp-blue));
|
|
701
|
+
}
|
|
702
|
+
.terminal-split-frame {
|
|
703
|
+
flex: 1 1 auto;
|
|
704
|
+
min-width: 0;
|
|
705
|
+
min-height: 0;
|
|
706
|
+
width: 100%;
|
|
707
|
+
border: 0;
|
|
708
|
+
background: var(--ctp-crust);
|
|
709
|
+
}
|
|
710
|
+
body.embedded-split .layout,
|
|
711
|
+
body.embedded-split.side-panel-collapsed .layout {
|
|
712
|
+
grid-template-columns: minmax(0, 1fr);
|
|
713
|
+
gap: 0;
|
|
714
|
+
width: 100%;
|
|
715
|
+
height: 100vh;
|
|
716
|
+
height: var(--visual-viewport-height, 100dvh);
|
|
717
|
+
min-height: 0;
|
|
718
|
+
padding: 0;
|
|
719
|
+
overflow: hidden;
|
|
720
|
+
}
|
|
721
|
+
body.embedded-split .chat-panel {
|
|
722
|
+
height: 100%;
|
|
723
|
+
border-radius: 0;
|
|
724
|
+
}
|
|
725
|
+
body.embedded-split .terminal-tabs-shell,
|
|
726
|
+
body.embedded-split .terminal-split-shell,
|
|
727
|
+
body.embedded-split .side-panel,
|
|
728
|
+
body.embedded-split .side-panel-expand-button,
|
|
729
|
+
body.embedded-split .side-panel-backdrop {
|
|
730
|
+
display: none !important;
|
|
731
|
+
}
|
|
620
732
|
.side-panel {
|
|
621
733
|
display: grid;
|
|
622
734
|
grid-template-rows: auto minmax(0, 1fr);
|
|
@@ -835,6 +947,40 @@ body.side-panel-collapsed .terminal-tabs-shell {
|
|
|
835
947
|
width: 100%;
|
|
836
948
|
min-width: 0;
|
|
837
949
|
}
|
|
950
|
+
.theme-scheme-toggle {
|
|
951
|
+
display: flex;
|
|
952
|
+
gap: 2px;
|
|
953
|
+
padding: 2px;
|
|
954
|
+
border: 1px solid var(--border);
|
|
955
|
+
border-radius: 8px;
|
|
956
|
+
background: var(--panel-2);
|
|
957
|
+
}
|
|
958
|
+
.theme-scheme-toggle button {
|
|
959
|
+
flex: 1 1 0;
|
|
960
|
+
width: auto;
|
|
961
|
+
padding: 0.2rem 0.4rem;
|
|
962
|
+
border: 0;
|
|
963
|
+
border-radius: 6px;
|
|
964
|
+
background: transparent;
|
|
965
|
+
color: rgba(var(--ctp-text-rgb), 0.72);
|
|
966
|
+
font-size: 0.72rem;
|
|
967
|
+
font-weight: 800;
|
|
968
|
+
letter-spacing: 0.04em;
|
|
969
|
+
cursor: pointer;
|
|
970
|
+
transition: background 0.15s ease, color 0.15s ease;
|
|
971
|
+
}
|
|
972
|
+
.theme-scheme-toggle button:hover {
|
|
973
|
+
color: var(--text);
|
|
974
|
+
}
|
|
975
|
+
.theme-scheme-toggle button.active {
|
|
976
|
+
background: var(--panel);
|
|
977
|
+
color: var(--text);
|
|
978
|
+
box-shadow: inset 0 0 0 1px var(--accent);
|
|
979
|
+
}
|
|
980
|
+
.theme-scheme-toggle button:focus-visible {
|
|
981
|
+
outline: 2px solid var(--accent-2);
|
|
982
|
+
outline-offset: 1px;
|
|
983
|
+
}
|
|
838
984
|
.model-search-input {
|
|
839
985
|
padding: 0.5rem 0.7rem;
|
|
840
986
|
border-color: rgba(148, 226, 213, 0.34);
|
|
@@ -894,6 +1040,35 @@ body.side-panel-collapsed .terminal-tabs-shell {
|
|
|
894
1040
|
min-height: 2.25rem;
|
|
895
1041
|
padding: 0.36rem 0.58rem;
|
|
896
1042
|
}
|
|
1043
|
+
.theme-search-result-title {
|
|
1044
|
+
display: grid;
|
|
1045
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
1046
|
+
gap: 0.5rem;
|
|
1047
|
+
align-items: center;
|
|
1048
|
+
}
|
|
1049
|
+
.theme-search-result-scheme {
|
|
1050
|
+
justify-self: end;
|
|
1051
|
+
padding: 0.08rem 0.42rem;
|
|
1052
|
+
border: 1px solid rgba(var(--ctp-subtext-rgb), 0.22);
|
|
1053
|
+
border-radius: 999px;
|
|
1054
|
+
color: rgba(var(--ctp-subtext-rgb), 0.78);
|
|
1055
|
+
background: rgba(var(--ctp-surface-rgb), 0.36);
|
|
1056
|
+
font-size: 0.66rem;
|
|
1057
|
+
font-weight: 900;
|
|
1058
|
+
letter-spacing: 0.03em;
|
|
1059
|
+
line-height: 1.2;
|
|
1060
|
+
text-transform: uppercase;
|
|
1061
|
+
}
|
|
1062
|
+
.theme-search-result-scheme.light {
|
|
1063
|
+
color: #f9e2af;
|
|
1064
|
+
border-color: rgba(249, 226, 175, 0.36);
|
|
1065
|
+
background: rgba(249, 226, 175, 0.12);
|
|
1066
|
+
}
|
|
1067
|
+
.theme-search-result-scheme.dark {
|
|
1068
|
+
color: #89b4fa;
|
|
1069
|
+
border-color: rgba(137, 180, 250, 0.34);
|
|
1070
|
+
background: rgba(137, 180, 250, 0.12);
|
|
1071
|
+
}
|
|
897
1072
|
.background-input {
|
|
898
1073
|
position: absolute;
|
|
899
1074
|
width: 1px;
|
|
@@ -1263,6 +1438,37 @@ body.side-panel-collapsed .terminal-tabs-shell {
|
|
|
1263
1438
|
.optional-feature-row.missing {
|
|
1264
1439
|
border-color: rgba(243, 139, 168, 0.25);
|
|
1265
1440
|
}
|
|
1441
|
+
.optional-feature-row.failed {
|
|
1442
|
+
border-color: rgba(243, 139, 168, 0.42);
|
|
1443
|
+
background:
|
|
1444
|
+
linear-gradient(135deg, rgba(243, 139, 168, 0.08), rgba(var(--ctp-crust-rgb), 0.58)),
|
|
1445
|
+
rgba(var(--ctp-crust-rgb), 0.55);
|
|
1446
|
+
}
|
|
1447
|
+
.optional-feature-panel-notice {
|
|
1448
|
+
display: grid;
|
|
1449
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
1450
|
+
gap: 0.62rem;
|
|
1451
|
+
align-items: center;
|
|
1452
|
+
padding: 0.62rem;
|
|
1453
|
+
border: 1px solid rgba(249, 226, 175, 0.22);
|
|
1454
|
+
border-radius: 0.72rem;
|
|
1455
|
+
background: rgba(var(--ctp-surface-rgb), 0.34);
|
|
1456
|
+
}
|
|
1457
|
+
.optional-feature-panel-notice.error {
|
|
1458
|
+
border-color: rgba(243, 139, 168, 0.32);
|
|
1459
|
+
}
|
|
1460
|
+
.optional-feature-panel-notice-copy {
|
|
1461
|
+
display: grid;
|
|
1462
|
+
gap: 0.18rem;
|
|
1463
|
+
min-width: 0;
|
|
1464
|
+
color: rgba(var(--ctp-subtext-rgb), 0.78);
|
|
1465
|
+
font-size: 0.72rem;
|
|
1466
|
+
line-height: 1.35;
|
|
1467
|
+
}
|
|
1468
|
+
.optional-feature-panel-notice-copy strong {
|
|
1469
|
+
color: var(--ctp-red);
|
|
1470
|
+
font-size: 0.76rem;
|
|
1471
|
+
}
|
|
1266
1472
|
.optional-feature-main {
|
|
1267
1473
|
display: grid;
|
|
1268
1474
|
gap: 0.28rem;
|
|
@@ -1309,16 +1515,73 @@ body.side-panel-collapsed .terminal-tabs-shell {
|
|
|
1309
1515
|
color: var(--ctp-peach);
|
|
1310
1516
|
border-color: rgba(250, 179, 135, 0.34);
|
|
1311
1517
|
}
|
|
1312
|
-
.optional-feature-pill.missing
|
|
1518
|
+
.optional-feature-pill.missing,
|
|
1519
|
+
.optional-feature-pill.failed {
|
|
1313
1520
|
color: var(--ctp-red);
|
|
1314
1521
|
border-color: rgba(243, 139, 168, 0.32);
|
|
1315
1522
|
}
|
|
1316
1523
|
.optional-feature-detail,
|
|
1317
|
-
.optional-feature-description
|
|
1524
|
+
.optional-feature-description,
|
|
1525
|
+
.optional-feature-hint {
|
|
1318
1526
|
color: rgba(var(--ctp-subtext-rgb), 0.74);
|
|
1319
1527
|
font-size: 0.72rem;
|
|
1320
1528
|
line-height: 1.35;
|
|
1321
1529
|
}
|
|
1530
|
+
.optional-feature-detail.error {
|
|
1531
|
+
color: var(--ctp-red);
|
|
1532
|
+
font-weight: 800;
|
|
1533
|
+
}
|
|
1534
|
+
.optional-feature-hint {
|
|
1535
|
+
color: var(--ctp-yellow);
|
|
1536
|
+
}
|
|
1537
|
+
.optional-feature-progress {
|
|
1538
|
+
overflow: hidden;
|
|
1539
|
+
height: 0.34rem;
|
|
1540
|
+
border: 1px solid rgba(250, 179, 135, 0.20);
|
|
1541
|
+
border-radius: 999px;
|
|
1542
|
+
background: rgba(var(--ctp-surface-rgb), 0.32);
|
|
1543
|
+
}
|
|
1544
|
+
.optional-feature-progress span {
|
|
1545
|
+
display: block;
|
|
1546
|
+
width: 42%;
|
|
1547
|
+
height: 100%;
|
|
1548
|
+
border-radius: inherit;
|
|
1549
|
+
background: linear-gradient(90deg, var(--ctp-yellow), var(--ctp-peach), var(--ctp-mauve));
|
|
1550
|
+
box-shadow: 0 0 0.75rem rgba(250, 179, 135, 0.28);
|
|
1551
|
+
animation: optional-feature-progress 1.2s ease-in-out infinite;
|
|
1552
|
+
}
|
|
1553
|
+
@keyframes optional-feature-progress {
|
|
1554
|
+
0% { transform: translateX(-115%); }
|
|
1555
|
+
50% { transform: translateX(70%); }
|
|
1556
|
+
100% { transform: translateX(240%); }
|
|
1557
|
+
}
|
|
1558
|
+
.optional-feature-command {
|
|
1559
|
+
max-width: 100%;
|
|
1560
|
+
overflow-x: auto;
|
|
1561
|
+
padding: 0.34rem 0.42rem;
|
|
1562
|
+
border: 1px solid rgba(180, 190, 254, 0.14);
|
|
1563
|
+
border-radius: 0.48rem;
|
|
1564
|
+
background: rgba(var(--ctp-base-rgb), 0.36);
|
|
1565
|
+
}
|
|
1566
|
+
.optional-feature-command code {
|
|
1567
|
+
color: rgba(var(--ctp-teal-rgb), 0.92);
|
|
1568
|
+
font-size: 0.66rem;
|
|
1569
|
+
white-space: pre;
|
|
1570
|
+
}
|
|
1571
|
+
.optional-feature-error-output {
|
|
1572
|
+
max-height: 8rem;
|
|
1573
|
+
max-width: 100%;
|
|
1574
|
+
overflow: auto;
|
|
1575
|
+
margin: 0;
|
|
1576
|
+
padding: 0.46rem 0.52rem;
|
|
1577
|
+
border: 1px solid rgba(243, 139, 168, 0.20);
|
|
1578
|
+
border-radius: 0.52rem;
|
|
1579
|
+
color: rgba(var(--ctp-text-rgb), 0.86);
|
|
1580
|
+
background: rgba(var(--ctp-base-rgb), 0.42);
|
|
1581
|
+
font-size: 0.66rem;
|
|
1582
|
+
line-height: 1.35;
|
|
1583
|
+
white-space: pre-wrap;
|
|
1584
|
+
}
|
|
1322
1585
|
.optional-feature-package {
|
|
1323
1586
|
width: fit-content;
|
|
1324
1587
|
max-width: 100%;
|
|
@@ -1371,6 +1634,44 @@ body.side-panel-collapsed .terminal-tabs-shell {
|
|
|
1371
1634
|
box-shadow: inset 0 -1px 0 rgba(255,255,255,0.035), 0 0.45rem 1rem rgba(var(--ctp-crust-rgb), 0.20);
|
|
1372
1635
|
}
|
|
1373
1636
|
.terminal-tabs-toggle-button { display: none; }
|
|
1637
|
+
.terminal-split-button {
|
|
1638
|
+
flex: 0 0 auto;
|
|
1639
|
+
display: inline-grid;
|
|
1640
|
+
place-items: center;
|
|
1641
|
+
width: 2.5rem;
|
|
1642
|
+
min-width: 2.5rem;
|
|
1643
|
+
min-height: 2.35rem;
|
|
1644
|
+
padding: 0.38rem;
|
|
1645
|
+
color: var(--ctp-blue);
|
|
1646
|
+
white-space: nowrap;
|
|
1647
|
+
border-color: rgba(137, 180, 250, 0.32);
|
|
1648
|
+
background:
|
|
1649
|
+
linear-gradient(120deg, rgba(137, 180, 250, 0.12), rgba(148, 226, 213, 0.08)),
|
|
1650
|
+
rgba(var(--ctp-crust-rgb), 0.62);
|
|
1651
|
+
}
|
|
1652
|
+
.terminal-split-button[aria-pressed="true"] {
|
|
1653
|
+
color: var(--ctp-teal);
|
|
1654
|
+
border-color: rgba(148, 226, 213, 0.48);
|
|
1655
|
+
box-shadow: 0 0 1rem rgba(148, 226, 213, 0.16), inset 0 1px 0 rgba(255,255,255,0.05);
|
|
1656
|
+
}
|
|
1657
|
+
.terminal-split-button:hover,
|
|
1658
|
+
.terminal-split-button:focus-visible {
|
|
1659
|
+
color: #11111b;
|
|
1660
|
+
border-color: transparent;
|
|
1661
|
+
background: linear-gradient(120deg, var(--ctp-blue), var(--ctp-teal));
|
|
1662
|
+
}
|
|
1663
|
+
.terminal-split-icon {
|
|
1664
|
+
display: block;
|
|
1665
|
+
width: 1.18rem;
|
|
1666
|
+
height: 1.18rem;
|
|
1667
|
+
}
|
|
1668
|
+
.terminal-split-icon-unsplit,
|
|
1669
|
+
.terminal-split-button[aria-pressed="true"] .terminal-split-icon-split {
|
|
1670
|
+
display: none;
|
|
1671
|
+
}
|
|
1672
|
+
.terminal-split-button[aria-pressed="true"] .terminal-split-icon-unsplit {
|
|
1673
|
+
display: block;
|
|
1674
|
+
}
|
|
1374
1675
|
.terminal-close-all-button {
|
|
1375
1676
|
flex: 0 0 auto;
|
|
1376
1677
|
min-height: 2.35rem;
|
|
@@ -1941,6 +2242,10 @@ body.side-panel-collapsed .terminal-tabs-shell {
|
|
|
1941
2242
|
justify-content: flex-start;
|
|
1942
2243
|
text-align: left;
|
|
1943
2244
|
}
|
|
2245
|
+
body.terminal-tabs-left .terminal-split-button {
|
|
2246
|
+
width: 100%;
|
|
2247
|
+
min-width: 0;
|
|
2248
|
+
}
|
|
1944
2249
|
body.terminal-tabs-left .terminal-new-tab-menu .composer-publish-menu-panel {
|
|
1945
2250
|
--terminal-left-dropdown-bridge: 0.78rem;
|
|
1946
2251
|
inset: 0 auto auto 100%;
|
|
@@ -5108,9 +5413,73 @@ summary { cursor: pointer; color: var(--warning); }
|
|
|
5108
5413
|
white-space: nowrap;
|
|
5109
5414
|
}
|
|
5110
5415
|
.composer-conversation-mode-chip[hidden],
|
|
5111
|
-
.composer-conversation-end-button[hidden]
|
|
5416
|
+
.composer-conversation-end-button[hidden],
|
|
5417
|
+
.composer-conversation-voice-menu[hidden] {
|
|
5112
5418
|
display: none !important;
|
|
5113
5419
|
}
|
|
5420
|
+
.composer-conversation-voice-button {
|
|
5421
|
+
width: clamp(5.6rem, 14vw, 8.8rem);
|
|
5422
|
+
min-width: 5.6rem;
|
|
5423
|
+
max-width: 8.8rem;
|
|
5424
|
+
color: var(--ctp-teal);
|
|
5425
|
+
border-color: rgba(148, 226, 213, 0.44);
|
|
5426
|
+
background:
|
|
5427
|
+
linear-gradient(120deg, rgba(148, 226, 213, 0.14), rgba(166, 227, 161, 0.08)),
|
|
5428
|
+
var(--ctp-crust);
|
|
5429
|
+
}
|
|
5430
|
+
.composer-conversation-voice-button > span {
|
|
5431
|
+
display: block;
|
|
5432
|
+
min-width: 0;
|
|
5433
|
+
max-width: 100%;
|
|
5434
|
+
overflow: hidden;
|
|
5435
|
+
text-overflow: ellipsis;
|
|
5436
|
+
white-space: nowrap;
|
|
5437
|
+
}
|
|
5438
|
+
.composer-conversation-voice-button:disabled {
|
|
5439
|
+
opacity: 0.55;
|
|
5440
|
+
cursor: progress;
|
|
5441
|
+
}
|
|
5442
|
+
.composer-conversation-voice-menu-panel {
|
|
5443
|
+
width: min(22rem, calc(100vw - 2rem));
|
|
5444
|
+
min-width: min(16rem, calc(100vw - 2rem));
|
|
5445
|
+
}
|
|
5446
|
+
.composer-conversation-voice-item {
|
|
5447
|
+
justify-content: flex-start;
|
|
5448
|
+
width: 100%;
|
|
5449
|
+
min-width: 0;
|
|
5450
|
+
max-width: 100%;
|
|
5451
|
+
color: var(--ctp-teal);
|
|
5452
|
+
border-color: rgba(148, 226, 213, 0.30);
|
|
5453
|
+
background:
|
|
5454
|
+
linear-gradient(120deg, rgba(148, 226, 213, 0.12), rgba(166, 227, 161, 0.08)),
|
|
5455
|
+
var(--ctp-crust);
|
|
5456
|
+
line-height: 1.2;
|
|
5457
|
+
overflow-wrap: anywhere;
|
|
5458
|
+
text-align: left;
|
|
5459
|
+
white-space: normal;
|
|
5460
|
+
}
|
|
5461
|
+
.composer-conversation-voice-item.active {
|
|
5462
|
+
border-color: rgba(148, 226, 213, 0.78);
|
|
5463
|
+
box-shadow: 0 0 0.8rem rgba(148, 226, 213, 0.28);
|
|
5464
|
+
}
|
|
5465
|
+
.composer-conversation-voice-item.pending,
|
|
5466
|
+
.composer-conversation-voice-notice {
|
|
5467
|
+
color: var(--ctp-green);
|
|
5468
|
+
border-color: rgba(166, 227, 161, 0.50);
|
|
5469
|
+
cursor: progress;
|
|
5470
|
+
white-space: normal;
|
|
5471
|
+
}
|
|
5472
|
+
.composer-conversation-voice-notice.error {
|
|
5473
|
+
color: var(--ctp-red);
|
|
5474
|
+
border-color: rgba(243, 139, 168, 0.55);
|
|
5475
|
+
cursor: default;
|
|
5476
|
+
}
|
|
5477
|
+
.composer-conversation-voice-item:hover,
|
|
5478
|
+
.composer-conversation-voice-item:focus-visible {
|
|
5479
|
+
color: #11111b;
|
|
5480
|
+
border-color: transparent;
|
|
5481
|
+
background: linear-gradient(120deg, var(--ctp-teal), var(--ctp-green));
|
|
5482
|
+
}
|
|
5114
5483
|
.composer-conversation-mode-chip:hover,
|
|
5115
5484
|
.composer-conversation-mode-chip:focus-visible {
|
|
5116
5485
|
border-color: rgba(148, 226, 213, 0.78);
|
|
@@ -5652,7 +6021,7 @@ button.composer-skill-tag:focus-visible {
|
|
|
5652
6021
|
display: flex;
|
|
5653
6022
|
}
|
|
5654
6023
|
.composer-options-menu-panel {
|
|
5655
|
-
max-height: min(calc(var(--visual-viewport-height, 100dvh) - 2rem),
|
|
6024
|
+
max-height: min(calc(var(--visual-viewport-height, 100dvh) - 2rem), 48rem);
|
|
5656
6025
|
}
|
|
5657
6026
|
.composer-publish-menu.open .composer-publish-button {
|
|
5658
6027
|
border-color: rgba(250, 179, 135, 0.58);
|
|
@@ -5866,6 +6235,11 @@ button.composer-skill-tag:focus-visible {
|
|
|
5866
6235
|
display: none !important;
|
|
5867
6236
|
opacity: 0 !important;
|
|
5868
6237
|
}
|
|
6238
|
+
.composer-publish-menu-panel .composer-publish-menu-item[data-tooltip]::before,
|
|
6239
|
+
.composer-publish-menu-panel .composer-publish-menu-item[data-tooltip]::after {
|
|
6240
|
+
display: none !important;
|
|
6241
|
+
opacity: 0 !important;
|
|
6242
|
+
}
|
|
5869
6243
|
|
|
5870
6244
|
.details {
|
|
5871
6245
|
display: grid;
|
|
@@ -7601,6 +7975,10 @@ button.composer-skill-tag:focus-visible {
|
|
|
7601
7975
|
min-height: 0;
|
|
7602
7976
|
max-height: calc(var(--visual-viewport-height, 100dvh) - 2rem);
|
|
7603
7977
|
}
|
|
7978
|
+
.terminal-split-shell,
|
|
7979
|
+
.terminal-split-button {
|
|
7980
|
+
display: none !important;
|
|
7981
|
+
}
|
|
7604
7982
|
.chat { flex-basis: 0; }
|
|
7605
7983
|
body:not(.side-panel-collapsed) { overflow: hidden; }
|
|
7606
7984
|
body:not(.side-panel-collapsed) .chat-panel {
|
|
@@ -8982,8 +9360,21 @@ button.workspace-dashboard-chip {
|
|
|
8982
9360
|
max-height: inherit;
|
|
8983
9361
|
min-height: 0;
|
|
8984
9362
|
}
|
|
8985
|
-
.edit-retry-dialog
|
|
9363
|
+
.edit-retry-dialog {
|
|
8986
9364
|
width: min(44rem, calc(100vw - 2rem));
|
|
9365
|
+
max-height: calc(var(--visual-viewport-height, 100dvh) - 2rem);
|
|
9366
|
+
overflow: hidden;
|
|
9367
|
+
}
|
|
9368
|
+
.edit-retry-dialog form {
|
|
9369
|
+
display: grid;
|
|
9370
|
+
grid-template-rows: auto auto minmax(0, 1fr) auto auto;
|
|
9371
|
+
width: 100%;
|
|
9372
|
+
max-height: calc(var(--visual-viewport-height, 100dvh) - 4rem);
|
|
9373
|
+
min-height: 0;
|
|
9374
|
+
}
|
|
9375
|
+
.edit-retry-dialog h2,
|
|
9376
|
+
.edit-retry-dialog p {
|
|
9377
|
+
min-width: 0;
|
|
8987
9378
|
}
|
|
8988
9379
|
.command-palette-header {
|
|
8989
9380
|
display: flex;
|
|
@@ -9133,8 +9524,15 @@ button.workspace-dashboard-chip {
|
|
|
9133
9524
|
}
|
|
9134
9525
|
.edit-retry-text {
|
|
9135
9526
|
width: 100%;
|
|
9136
|
-
min-
|
|
9527
|
+
min-width: 0;
|
|
9528
|
+
min-height: min(12rem, 38vh);
|
|
9529
|
+
max-height: min(32rem, 48vh);
|
|
9137
9530
|
margin-top: 0.65rem;
|
|
9531
|
+
overflow-x: hidden;
|
|
9532
|
+
overflow-y: auto;
|
|
9533
|
+
overflow-wrap: anywhere;
|
|
9534
|
+
white-space: pre-wrap;
|
|
9535
|
+
word-break: break-word;
|
|
9138
9536
|
}
|
|
9139
9537
|
.edit-retry-status.error { color: var(--ctp-red); }
|
|
9140
9538
|
.edit-retry-status.info { color: var(--ctp-subtext); }
|
|
@@ -9272,3 +9670,73 @@ button.workspace-dashboard-chip {
|
|
|
9272
9670
|
padding-right: 5rem;
|
|
9273
9671
|
}
|
|
9274
9672
|
}
|
|
9673
|
+
|
|
9674
|
+
/* Natural Conversation browser voice loop (Phase 3): per-state chip accents
|
|
9675
|
+
and the remote microphone consent banner. */
|
|
9676
|
+
.composer-conversation-mode-chip[data-voice-state="speaking"] {
|
|
9677
|
+
color: var(--ctp-green);
|
|
9678
|
+
border-color: rgba(166, 227, 161, 0.6);
|
|
9679
|
+
box-shadow: 0 0 0.55rem rgba(166, 227, 161, 0.35);
|
|
9680
|
+
}
|
|
9681
|
+
.composer-conversation-mode-chip[data-voice-state="transcribing"],
|
|
9682
|
+
.composer-conversation-mode-chip[data-voice-state="answering"] {
|
|
9683
|
+
color: var(--ctp-blue);
|
|
9684
|
+
border-color: rgba(137, 180, 250, 0.55);
|
|
9685
|
+
}
|
|
9686
|
+
.composer-conversation-mode-chip[data-voice-state="interrupting"],
|
|
9687
|
+
.composer-conversation-mode-chip[data-voice-state="silence"] {
|
|
9688
|
+
color: var(--ctp-yellow);
|
|
9689
|
+
border-color: rgba(249, 226, 175, 0.6);
|
|
9690
|
+
}
|
|
9691
|
+
.composer-conversation-mode-chip[data-voice-state="paused"],
|
|
9692
|
+
.composer-conversation-mode-chip[data-voice-state="error"] {
|
|
9693
|
+
color: var(--ctp-red);
|
|
9694
|
+
border-color: rgba(243, 139, 168, 0.62);
|
|
9695
|
+
box-shadow: 0 0 0.55rem rgba(243, 139, 168, 0.3);
|
|
9696
|
+
}
|
|
9697
|
+
|
|
9698
|
+
.composer-remote-mic-consent {
|
|
9699
|
+
display: flex;
|
|
9700
|
+
flex-wrap: wrap;
|
|
9701
|
+
align-items: center;
|
|
9702
|
+
gap: 0.55rem;
|
|
9703
|
+
margin: 0.5rem 0.75rem 0.65rem;
|
|
9704
|
+
padding: 0.6rem 0.75rem;
|
|
9705
|
+
border: 1px solid rgba(250, 179, 135, 0.55);
|
|
9706
|
+
border-radius: 0.65rem;
|
|
9707
|
+
background: linear-gradient(135deg, rgba(250, 179, 135, 0.14), rgba(243, 139, 168, 0.1)), var(--ctp-crust);
|
|
9708
|
+
box-shadow: 0 0 0.65rem rgba(250, 179, 135, 0.22);
|
|
9709
|
+
}
|
|
9710
|
+
.composer-remote-mic-consent[hidden] {
|
|
9711
|
+
display: none !important;
|
|
9712
|
+
}
|
|
9713
|
+
.composer-remote-mic-consent-text {
|
|
9714
|
+
flex: 1 1 16rem;
|
|
9715
|
+
min-width: 0;
|
|
9716
|
+
color: var(--ctp-peach);
|
|
9717
|
+
font-size: 0.74rem;
|
|
9718
|
+
line-height: 1.4;
|
|
9719
|
+
overflow-wrap: anywhere;
|
|
9720
|
+
}
|
|
9721
|
+
.composer-remote-mic-consent-button {
|
|
9722
|
+
flex: 0 0 auto;
|
|
9723
|
+
padding: 0.42rem 0.8rem;
|
|
9724
|
+
border: 1px solid rgba(250, 179, 135, 0.6);
|
|
9725
|
+
border-radius: 999px;
|
|
9726
|
+
background: linear-gradient(135deg, rgba(250, 179, 135, 0.24), rgba(243, 139, 168, 0.18)), var(--ctp-crust);
|
|
9727
|
+
color: var(--ctp-peach);
|
|
9728
|
+
font-size: 0.72rem;
|
|
9729
|
+
font-weight: 800;
|
|
9730
|
+
letter-spacing: 0.04em;
|
|
9731
|
+
text-transform: uppercase;
|
|
9732
|
+
cursor: pointer;
|
|
9733
|
+
}
|
|
9734
|
+
.composer-remote-mic-consent-button:hover:not(:disabled),
|
|
9735
|
+
.composer-remote-mic-consent-button:focus-visible:not(:disabled) {
|
|
9736
|
+
background: linear-gradient(135deg, var(--ctp-peach), var(--ctp-maroon));
|
|
9737
|
+
color: #11111b;
|
|
9738
|
+
}
|
|
9739
|
+
.composer-remote-mic-consent-button:disabled {
|
|
9740
|
+
opacity: 0.55;
|
|
9741
|
+
cursor: not-allowed;
|
|
9742
|
+
}
|