@firstpick/pi-package-webui 0.5.8 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/bin/pi-webui.mjs +857 -12
- package/lib/git-worktrees.mjs +5 -1
- package/package.json +2 -2
- package/public/app.js +1090 -45
- package/public/index.html +20 -4
- package/public/service-worker.js +2 -1
- package/public/styles.css +368 -5
- package/public/voice-conversation.mjs +466 -0
- package/tests/compaction-resume-harness.test.mjs +114 -0
- package/tests/compaction-static.test.mjs +25 -0
- package/tests/fixtures/compacting-pi.mjs +115 -0
- package/tests/fixtures/fake-pi.mjs +220 -2
- package/tests/http-endpoints-harness.test.mjs +194 -2
- package/tests/mobile-static.test.mjs +82 -8
- 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=62" />
|
|
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">
|
|
@@ -123,6 +123,7 @@
|
|
|
123
123
|
aria-live="polite"
|
|
124
124
|
>Follow-up</button>
|
|
125
125
|
<div id="sessionSkillTags" class="composer-skill-tags" aria-live="polite" hidden></div>
|
|
126
|
+
<button id="conversationModeChip" class="composer-conversation-mode-chip" type="button" aria-live="polite" hidden>Voice: off</button>
|
|
126
127
|
</div>
|
|
127
128
|
<div id="busyPromptBehaviorMenu" class="composer-busy-mode-menu" role="menu" aria-labelledby="busyPromptBehaviorTag" hidden>
|
|
128
129
|
<button class="composer-busy-mode-menu-item" type="button" role="menuitemradio" data-busy-prompt-behavior="followUp" aria-checked="true">
|
|
@@ -212,12 +213,15 @@
|
|
|
212
213
|
aria-haspopup="menu"
|
|
213
214
|
aria-expanded="false"
|
|
214
215
|
aria-controls="optionsMenu"
|
|
215
|
-
data-tooltip="Options: command palette, resume, reload, remote, name, clone, settings, export, fork, or tree."
|
|
216
|
+
data-tooltip="Options: command palette, natural conversation, resume, reload, remote, name, clone, settings, export, fork, or tree."
|
|
216
217
|
><svg class="composer-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M4 7h16M4 12h16M4 17h16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><circle cx="8" cy="7" r="1.6" fill="currentColor"/><circle cx="16" cy="12" r="1.6" fill="currentColor"/><circle cx="11" cy="17" r="1.6" fill="currentColor"/></svg></button>
|
|
217
218
|
<div id="optionsMenu" class="composer-publish-menu-panel composer-options-menu-panel" role="menu" aria-label="Common Pi options">
|
|
218
219
|
<button id="optionsCommandPaletteButton" class="composer-publish-menu-item composer-options-menu-item" type="button" role="menuitem">
|
|
219
220
|
<span>Command Palette</span>
|
|
220
221
|
</button>
|
|
222
|
+
<button id="optionsConversationModeButton" class="composer-publish-menu-item composer-options-menu-item composer-conversation-menu-item" type="button" role="menuitem" data-command="/talk" hidden>
|
|
223
|
+
<span>Start Conversation</span>
|
|
224
|
+
</button>
|
|
221
225
|
<button id="optionsTreeButton" class="composer-publish-menu-item composer-options-menu-item" type="button" role="menuitem" data-command="/tree">
|
|
222
226
|
<span>Tree</span>
|
|
223
227
|
</button>
|
|
@@ -290,6 +294,11 @@
|
|
|
290
294
|
aria-label="Follow-up: type your message first, then tap this button to send it as a follow-up."
|
|
291
295
|
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."
|
|
292
296
|
>Follow-up</button>
|
|
297
|
+
<div id="conversationVoiceMenu" class="composer-publish-menu composer-conversation-voice-menu" hidden>
|
|
298
|
+
<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>
|
|
299
|
+
<div id="conversationVoiceMenuPanel" class="composer-publish-menu-panel composer-conversation-voice-menu-panel" role="menu" aria-label="Conversation voices"></div>
|
|
300
|
+
</div>
|
|
301
|
+
<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>
|
|
293
302
|
<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>
|
|
294
303
|
<button
|
|
295
304
|
id="btwButton"
|
|
@@ -303,6 +312,10 @@
|
|
|
303
312
|
<button id="sendButton" type="submit" class="primary" title="Send prompt">Send</button>
|
|
304
313
|
</div>
|
|
305
314
|
</form>
|
|
315
|
+
<div id="remoteMicStreamingConsent" class="composer-remote-mic-consent" role="alert" hidden>
|
|
316
|
+
<span id="remoteMicStreamingConsentText" class="composer-remote-mic-consent-text"></span>
|
|
317
|
+
<button id="remoteMicStreamingConsentButton" class="composer-remote-mic-consent-button" type="button" aria-describedby="remoteMicStreamingConsentText" disabled>Allow remote microphone streaming</button>
|
|
318
|
+
</div>
|
|
306
319
|
</section>
|
|
307
320
|
|
|
308
321
|
<button id="sidePanelBackdrop" class="side-panel-backdrop" type="button" aria-label="Close side panel" hidden></button>
|
|
@@ -395,7 +408,10 @@
|
|
|
395
408
|
<span id="remoteAuthStatus" class="toggle-control-hint">Off</span>
|
|
396
409
|
</span>
|
|
397
410
|
</label>
|
|
398
|
-
<
|
|
411
|
+
<div class="network-action-row">
|
|
412
|
+
<button id="openNetworkButton" type="button">Open to network</button>
|
|
413
|
+
<button id="showRemoteQrButton" type="button" hidden>Show QR code</button>
|
|
414
|
+
</div>
|
|
399
415
|
</div>
|
|
400
416
|
<div class="control-field server-control-field">
|
|
401
417
|
<label for="serverActionSelect">Server</label>
|
|
@@ -746,6 +762,6 @@
|
|
|
746
762
|
</form>
|
|
747
763
|
</dialog>
|
|
748
764
|
|
|
749
|
-
<script type="module" src="/app.js?v=
|
|
765
|
+
<script type="module" src="/app.js?v=60"></script>
|
|
750
766
|
</body>
|
|
751
767
|
</html>
|
package/public/service-worker.js
CHANGED
package/public/styles.css
CHANGED
|
@@ -909,13 +909,15 @@ body.side-panel-collapsed .terminal-tabs-shell {
|
|
|
909
909
|
gap: 0.42rem;
|
|
910
910
|
align-items: center;
|
|
911
911
|
}
|
|
912
|
-
.server-action-row
|
|
912
|
+
.server-action-row,
|
|
913
|
+
.network-action-row {
|
|
913
914
|
display: grid;
|
|
914
915
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
915
916
|
gap: 0.42rem;
|
|
916
917
|
align-items: center;
|
|
917
918
|
}
|
|
918
|
-
.server-action-row button
|
|
919
|
+
.server-action-row button,
|
|
920
|
+
.network-action-row button {
|
|
919
921
|
width: auto;
|
|
920
922
|
min-width: 4.4rem;
|
|
921
923
|
}
|
|
@@ -1090,6 +1092,15 @@ body.side-panel-collapsed .terminal-tabs-shell {
|
|
|
1090
1092
|
border-color: transparent;
|
|
1091
1093
|
background: linear-gradient(120deg, var(--ctp-yellow), var(--ctp-peach), var(--ctp-red));
|
|
1092
1094
|
}
|
|
1095
|
+
#showRemoteQrButton {
|
|
1096
|
+
color: var(--ctp-teal);
|
|
1097
|
+
border-color: rgba(148, 226, 213, 0.32);
|
|
1098
|
+
}
|
|
1099
|
+
#showRemoteQrButton:not(:disabled):hover {
|
|
1100
|
+
color: #11111b;
|
|
1101
|
+
border-color: transparent;
|
|
1102
|
+
background: linear-gradient(120deg, var(--ctp-teal), var(--ctp-sky), var(--ctp-blue));
|
|
1103
|
+
}
|
|
1093
1104
|
.optional-features-description {
|
|
1094
1105
|
margin: 0 0 0.58rem;
|
|
1095
1106
|
font-size: 0.74rem;
|
|
@@ -1589,6 +1600,11 @@ body.side-panel-collapsed .terminal-tabs-shell {
|
|
|
1589
1600
|
outline: 1px solid rgba(137, 180, 250, 0.42);
|
|
1590
1601
|
outline-offset: -1px;
|
|
1591
1602
|
}
|
|
1603
|
+
.terminal-tab.conversation-mode-running,
|
|
1604
|
+
.terminal-tab-group-item.conversation-mode-running {
|
|
1605
|
+
border-color: rgba(148, 226, 213, 0.68);
|
|
1606
|
+
box-shadow: 0 0 1.15rem rgba(148, 226, 213, 0.24), inset 0 1px 0 rgba(255,255,255,0.06);
|
|
1607
|
+
}
|
|
1592
1608
|
.terminal-tab.terminal-tab-drag-over,
|
|
1593
1609
|
.terminal-tab-group-item.terminal-tab-drag-over {
|
|
1594
1610
|
border-color: rgba(137, 180, 250, 0.82);
|
|
@@ -1646,6 +1662,22 @@ body.side-panel-collapsed .terminal-tabs-shell {
|
|
|
1646
1662
|
text-transform: uppercase;
|
|
1647
1663
|
animation: terminal-tab-app-runner-pulse 1.35s ease-in-out infinite;
|
|
1648
1664
|
}
|
|
1665
|
+
.terminal-tab-conversation-indicator {
|
|
1666
|
+
flex: 0 0 auto;
|
|
1667
|
+
padding: 0.04rem 0.36rem;
|
|
1668
|
+
border: 1px solid rgba(148, 226, 213, 0.46);
|
|
1669
|
+
border-radius: 999px;
|
|
1670
|
+
color: var(--ctp-teal);
|
|
1671
|
+
background: rgba(148, 226, 213, 0.13);
|
|
1672
|
+
box-shadow: 0 0 0.7rem rgba(148, 226, 213, 0.28);
|
|
1673
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
1674
|
+
font-size: 0.56rem;
|
|
1675
|
+
font-weight: 900;
|
|
1676
|
+
letter-spacing: 0.08em;
|
|
1677
|
+
line-height: 1.12;
|
|
1678
|
+
text-transform: uppercase;
|
|
1679
|
+
animation: terminal-tab-app-runner-pulse 1.5s ease-in-out infinite;
|
|
1680
|
+
}
|
|
1649
1681
|
.terminal-tab.activity-working > .terminal-tab-button .terminal-tab-activity-indicator {
|
|
1650
1682
|
background: var(--ctp-yellow);
|
|
1651
1683
|
box-shadow: 0 0 0 1px rgba(249, 226, 175, 0.34), 0 0 0.8rem rgba(249, 226, 175, 0.52);
|
|
@@ -2974,11 +3006,127 @@ button.footer-meta {
|
|
|
2974
3006
|
font-weight: 800;
|
|
2975
3007
|
text-align: center;
|
|
2976
3008
|
}
|
|
3009
|
+
.git-pull-result-panel {
|
|
3010
|
+
display: grid;
|
|
3011
|
+
gap: 0.68rem;
|
|
3012
|
+
padding: 0.78rem;
|
|
3013
|
+
border: 1px solid rgba(166, 227, 161, 0.28);
|
|
3014
|
+
border-radius: 0.95rem;
|
|
3015
|
+
background:
|
|
3016
|
+
radial-gradient(circle at 0% 0%, rgba(166, 227, 161, 0.14), transparent 18rem),
|
|
3017
|
+
linear-gradient(135deg, rgba(var(--ctp-crust-rgb), 0.68), rgba(166, 227, 161, 0.07));
|
|
3018
|
+
box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0.55rem 1.4rem rgba(var(--ctp-crust-rgb), 0.18);
|
|
3019
|
+
}
|
|
3020
|
+
.git-pull-result-header {
|
|
3021
|
+
display: flex;
|
|
3022
|
+
justify-content: space-between;
|
|
3023
|
+
gap: 0.75rem;
|
|
3024
|
+
min-width: 0;
|
|
3025
|
+
}
|
|
3026
|
+
.git-pull-result-copy {
|
|
3027
|
+
display: grid;
|
|
3028
|
+
gap: 0.12rem;
|
|
3029
|
+
min-width: 0;
|
|
3030
|
+
}
|
|
3031
|
+
.git-pull-result-kicker,
|
|
3032
|
+
.git-pull-file-list-label {
|
|
3033
|
+
color: var(--ctp-green);
|
|
3034
|
+
font-size: 0.66rem;
|
|
3035
|
+
font-weight: 950;
|
|
3036
|
+
letter-spacing: 0.14em;
|
|
3037
|
+
text-transform: uppercase;
|
|
3038
|
+
}
|
|
3039
|
+
.git-pull-result-copy strong {
|
|
3040
|
+
color: var(--ctp-text);
|
|
3041
|
+
font-size: 1rem;
|
|
3042
|
+
}
|
|
3043
|
+
.git-pull-result-meta {
|
|
3044
|
+
min-width: 0;
|
|
3045
|
+
overflow: hidden;
|
|
3046
|
+
color: rgba(var(--ctp-subtext-rgb), 0.72);
|
|
3047
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
3048
|
+
font-size: 0.76rem;
|
|
3049
|
+
text-overflow: ellipsis;
|
|
3050
|
+
white-space: nowrap;
|
|
3051
|
+
}
|
|
3052
|
+
.git-pull-result-metrics,
|
|
2977
3053
|
.git-changes-overview {
|
|
2978
3054
|
display: grid;
|
|
2979
3055
|
grid-template-columns: repeat(5, minmax(7rem, 1fr));
|
|
2980
3056
|
gap: 0.5rem;
|
|
2981
3057
|
}
|
|
3058
|
+
.git-pull-result-metrics {
|
|
3059
|
+
grid-template-columns: repeat(4, minmax(7rem, 1fr));
|
|
3060
|
+
}
|
|
3061
|
+
.git-pull-file-list {
|
|
3062
|
+
display: grid;
|
|
3063
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3064
|
+
gap: 0.42rem;
|
|
3065
|
+
min-width: 0;
|
|
3066
|
+
}
|
|
3067
|
+
.git-pull-file-list-label {
|
|
3068
|
+
grid-column: 1 / -1;
|
|
3069
|
+
}
|
|
3070
|
+
.git-pull-file {
|
|
3071
|
+
display: flex;
|
|
3072
|
+
align-items: center;
|
|
3073
|
+
justify-content: space-between;
|
|
3074
|
+
gap: 0.75rem;
|
|
3075
|
+
min-width: 0;
|
|
3076
|
+
padding: 0.42rem 0.56rem;
|
|
3077
|
+
border: 1px solid rgba(180, 190, 254, 0.14);
|
|
3078
|
+
border-radius: 0.58rem;
|
|
3079
|
+
background: rgba(var(--ctp-crust-rgb), 0.42);
|
|
3080
|
+
}
|
|
3081
|
+
.git-pull-file-path,
|
|
3082
|
+
.git-pull-file-stats {
|
|
3083
|
+
min-width: 0;
|
|
3084
|
+
overflow: hidden;
|
|
3085
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
3086
|
+
text-overflow: ellipsis;
|
|
3087
|
+
white-space: nowrap;
|
|
3088
|
+
}
|
|
3089
|
+
.git-pull-file-path {
|
|
3090
|
+
color: var(--ctp-text);
|
|
3091
|
+
font-weight: 850;
|
|
3092
|
+
}
|
|
3093
|
+
.git-pull-file-stats {
|
|
3094
|
+
flex: 0 0 auto;
|
|
3095
|
+
color: rgba(var(--ctp-subtext-rgb), 0.78);
|
|
3096
|
+
font-size: 0.76rem;
|
|
3097
|
+
font-weight: 850;
|
|
3098
|
+
}
|
|
3099
|
+
.git-pull-file.success .git-pull-file-stats { color: var(--ctp-green); }
|
|
3100
|
+
.git-pull-file.danger .git-pull-file-stats { color: var(--ctp-red); }
|
|
3101
|
+
.git-pull-result-more {
|
|
3102
|
+
grid-column: 1 / -1;
|
|
3103
|
+
color: rgba(var(--ctp-subtext-rgb), 0.72);
|
|
3104
|
+
font-size: 0.78rem;
|
|
3105
|
+
font-weight: 760;
|
|
3106
|
+
}
|
|
3107
|
+
.git-pull-output-details {
|
|
3108
|
+
overflow: hidden;
|
|
3109
|
+
border: 1px solid rgba(180, 190, 254, 0.14);
|
|
3110
|
+
border-radius: 0.68rem;
|
|
3111
|
+
background: rgba(var(--ctp-mantle-rgb), 0.42);
|
|
3112
|
+
}
|
|
3113
|
+
.git-pull-output-details summary {
|
|
3114
|
+
cursor: pointer;
|
|
3115
|
+
padding: 0.48rem 0.62rem;
|
|
3116
|
+
color: rgba(var(--ctp-subtext-rgb), 0.82);
|
|
3117
|
+
font-weight: 900;
|
|
3118
|
+
}
|
|
3119
|
+
.git-pull-output-details pre {
|
|
3120
|
+
max-height: 18rem;
|
|
3121
|
+
margin: 0;
|
|
3122
|
+
overflow: auto;
|
|
3123
|
+
padding: 0.62rem;
|
|
3124
|
+
border-top: 1px solid rgba(180, 190, 254, 0.12);
|
|
3125
|
+
color: rgba(var(--ctp-subtext-rgb), 0.84);
|
|
3126
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
3127
|
+
font-size: 0.78rem;
|
|
3128
|
+
white-space: pre-wrap;
|
|
3129
|
+
}
|
|
2982
3130
|
.git-changes-chip {
|
|
2983
3131
|
min-width: 0;
|
|
2984
3132
|
padding: 0.48rem 0.58rem;
|
|
@@ -4938,6 +5086,131 @@ summary { cursor: pointer; color: var(--warning); }
|
|
|
4938
5086
|
.composer-skill-tags[hidden] {
|
|
4939
5087
|
display: none !important;
|
|
4940
5088
|
}
|
|
5089
|
+
.composer-conversation-mode-chip {
|
|
5090
|
+
flex: 0 0 auto;
|
|
5091
|
+
min-height: 0;
|
|
5092
|
+
max-width: min(14rem, 100%);
|
|
5093
|
+
margin: 0;
|
|
5094
|
+
padding: 0.14rem 0.56rem;
|
|
5095
|
+
border: 1px solid rgba(148, 226, 213, 0.52);
|
|
5096
|
+
border-radius: 999px;
|
|
5097
|
+
color: var(--ctp-teal);
|
|
5098
|
+
background:
|
|
5099
|
+
linear-gradient(120deg, rgba(148, 226, 213, 0.28), rgba(166, 227, 161, 0.10)),
|
|
5100
|
+
var(--ctp-crust);
|
|
5101
|
+
box-shadow: 0 0.42rem 1rem rgba(var(--ctp-crust-rgb), 0.42), 0 0 1rem rgba(148, 226, 213, 0.22);
|
|
5102
|
+
font-size: 0.62rem;
|
|
5103
|
+
font-weight: 900;
|
|
5104
|
+
letter-spacing: 0.08em;
|
|
5105
|
+
line-height: 1.1;
|
|
5106
|
+
text-overflow: ellipsis;
|
|
5107
|
+
text-transform: uppercase;
|
|
5108
|
+
white-space: nowrap;
|
|
5109
|
+
}
|
|
5110
|
+
.composer-conversation-mode-chip[hidden],
|
|
5111
|
+
.composer-conversation-end-button[hidden],
|
|
5112
|
+
.composer-conversation-voice-menu[hidden] {
|
|
5113
|
+
display: none !important;
|
|
5114
|
+
}
|
|
5115
|
+
.composer-conversation-voice-button {
|
|
5116
|
+
width: clamp(5.6rem, 14vw, 8.8rem);
|
|
5117
|
+
min-width: 5.6rem;
|
|
5118
|
+
max-width: 8.8rem;
|
|
5119
|
+
color: var(--ctp-teal);
|
|
5120
|
+
border-color: rgba(148, 226, 213, 0.44);
|
|
5121
|
+
background:
|
|
5122
|
+
linear-gradient(120deg, rgba(148, 226, 213, 0.14), rgba(166, 227, 161, 0.08)),
|
|
5123
|
+
var(--ctp-crust);
|
|
5124
|
+
}
|
|
5125
|
+
.composer-conversation-voice-button > span {
|
|
5126
|
+
display: block;
|
|
5127
|
+
min-width: 0;
|
|
5128
|
+
max-width: 100%;
|
|
5129
|
+
overflow: hidden;
|
|
5130
|
+
text-overflow: ellipsis;
|
|
5131
|
+
white-space: nowrap;
|
|
5132
|
+
}
|
|
5133
|
+
.composer-conversation-voice-button:disabled {
|
|
5134
|
+
opacity: 0.55;
|
|
5135
|
+
cursor: progress;
|
|
5136
|
+
}
|
|
5137
|
+
.composer-conversation-voice-menu-panel {
|
|
5138
|
+
width: min(22rem, calc(100vw - 2rem));
|
|
5139
|
+
min-width: min(16rem, calc(100vw - 2rem));
|
|
5140
|
+
}
|
|
5141
|
+
.composer-conversation-voice-item {
|
|
5142
|
+
justify-content: flex-start;
|
|
5143
|
+
width: 100%;
|
|
5144
|
+
min-width: 0;
|
|
5145
|
+
max-width: 100%;
|
|
5146
|
+
color: var(--ctp-teal);
|
|
5147
|
+
border-color: rgba(148, 226, 213, 0.30);
|
|
5148
|
+
background:
|
|
5149
|
+
linear-gradient(120deg, rgba(148, 226, 213, 0.12), rgba(166, 227, 161, 0.08)),
|
|
5150
|
+
var(--ctp-crust);
|
|
5151
|
+
line-height: 1.2;
|
|
5152
|
+
overflow-wrap: anywhere;
|
|
5153
|
+
text-align: left;
|
|
5154
|
+
white-space: normal;
|
|
5155
|
+
}
|
|
5156
|
+
.composer-conversation-voice-item.active {
|
|
5157
|
+
border-color: rgba(148, 226, 213, 0.78);
|
|
5158
|
+
box-shadow: 0 0 0.8rem rgba(148, 226, 213, 0.28);
|
|
5159
|
+
}
|
|
5160
|
+
.composer-conversation-voice-item.pending,
|
|
5161
|
+
.composer-conversation-voice-notice {
|
|
5162
|
+
color: var(--ctp-green);
|
|
5163
|
+
border-color: rgba(166, 227, 161, 0.50);
|
|
5164
|
+
cursor: progress;
|
|
5165
|
+
white-space: normal;
|
|
5166
|
+
}
|
|
5167
|
+
.composer-conversation-voice-notice.error {
|
|
5168
|
+
color: var(--ctp-red);
|
|
5169
|
+
border-color: rgba(243, 139, 168, 0.55);
|
|
5170
|
+
cursor: default;
|
|
5171
|
+
}
|
|
5172
|
+
.composer-conversation-voice-item:hover,
|
|
5173
|
+
.composer-conversation-voice-item:focus-visible {
|
|
5174
|
+
color: #11111b;
|
|
5175
|
+
border-color: transparent;
|
|
5176
|
+
background: linear-gradient(120deg, var(--ctp-teal), var(--ctp-green));
|
|
5177
|
+
}
|
|
5178
|
+
.composer-conversation-mode-chip:hover,
|
|
5179
|
+
.composer-conversation-mode-chip:focus-visible {
|
|
5180
|
+
border-color: rgba(148, 226, 213, 0.78);
|
|
5181
|
+
box-shadow: 0 0.42rem 1rem rgba(var(--ctp-crust-rgb), 0.42), 0 0 1.25rem rgba(148, 226, 213, 0.34);
|
|
5182
|
+
transform: translateY(-1px);
|
|
5183
|
+
}
|
|
5184
|
+
.composer.conversation-mode-active {
|
|
5185
|
+
border-color: rgba(148, 226, 213, 0.54);
|
|
5186
|
+
box-shadow: 0 0 1.35rem rgba(148, 226, 213, 0.22), 0 1.2rem 2.6rem rgba(var(--ctp-crust-rgb), 0.34);
|
|
5187
|
+
}
|
|
5188
|
+
body.conversation-mode-active .composer::before {
|
|
5189
|
+
opacity: 1;
|
|
5190
|
+
background: linear-gradient(90deg, transparent, var(--ctp-teal), var(--ctp-green), var(--ctp-teal), transparent);
|
|
5191
|
+
}
|
|
5192
|
+
.composer-conversation-menu-item.active {
|
|
5193
|
+
color: var(--ctp-teal);
|
|
5194
|
+
border-color: rgba(148, 226, 213, 0.50);
|
|
5195
|
+
background:
|
|
5196
|
+
linear-gradient(120deg, rgba(148, 226, 213, 0.20), rgba(166, 227, 161, 0.10)),
|
|
5197
|
+
var(--ctp-crust);
|
|
5198
|
+
}
|
|
5199
|
+
.composer-conversation-end-button {
|
|
5200
|
+
min-width: 8.4rem;
|
|
5201
|
+
color: var(--ctp-teal);
|
|
5202
|
+
border-color: rgba(148, 226, 213, 0.44);
|
|
5203
|
+
background:
|
|
5204
|
+
linear-gradient(120deg, rgba(148, 226, 213, 0.20), rgba(166, 227, 161, 0.10)),
|
|
5205
|
+
var(--ctp-crust);
|
|
5206
|
+
box-shadow: 0 0 1rem rgba(148, 226, 213, 0.22), inset 0 1px 0 rgba(255,255,255,0.05);
|
|
5207
|
+
}
|
|
5208
|
+
.composer-conversation-end-button:hover,
|
|
5209
|
+
.composer-conversation-end-button:focus-visible {
|
|
5210
|
+
color: #11111b;
|
|
5211
|
+
border-color: transparent;
|
|
5212
|
+
background: linear-gradient(120deg, var(--ctp-teal), var(--ctp-green));
|
|
5213
|
+
}
|
|
4941
5214
|
.composer-skill-tag {
|
|
4942
5215
|
display: inline-flex;
|
|
4943
5216
|
align-items: center;
|
|
@@ -5443,7 +5716,7 @@ button.composer-skill-tag:focus-visible {
|
|
|
5443
5716
|
display: flex;
|
|
5444
5717
|
}
|
|
5445
5718
|
.composer-options-menu-panel {
|
|
5446
|
-
max-height: min(calc(var(--visual-viewport-height, 100dvh) - 2rem),
|
|
5719
|
+
max-height: min(calc(var(--visual-viewport-height, 100dvh) - 2rem), 48rem);
|
|
5447
5720
|
}
|
|
5448
5721
|
.composer-publish-menu.open .composer-publish-button {
|
|
5449
5722
|
border-color: rgba(250, 179, 135, 0.58);
|
|
@@ -8773,8 +9046,21 @@ button.workspace-dashboard-chip {
|
|
|
8773
9046
|
max-height: inherit;
|
|
8774
9047
|
min-height: 0;
|
|
8775
9048
|
}
|
|
8776
|
-
.edit-retry-dialog
|
|
9049
|
+
.edit-retry-dialog {
|
|
8777
9050
|
width: min(44rem, calc(100vw - 2rem));
|
|
9051
|
+
max-height: calc(var(--visual-viewport-height, 100dvh) - 2rem);
|
|
9052
|
+
overflow: hidden;
|
|
9053
|
+
}
|
|
9054
|
+
.edit-retry-dialog form {
|
|
9055
|
+
display: grid;
|
|
9056
|
+
grid-template-rows: auto auto minmax(0, 1fr) auto auto;
|
|
9057
|
+
width: 100%;
|
|
9058
|
+
max-height: calc(var(--visual-viewport-height, 100dvh) - 4rem);
|
|
9059
|
+
min-height: 0;
|
|
9060
|
+
}
|
|
9061
|
+
.edit-retry-dialog h2,
|
|
9062
|
+
.edit-retry-dialog p {
|
|
9063
|
+
min-width: 0;
|
|
8778
9064
|
}
|
|
8779
9065
|
.command-palette-header {
|
|
8780
9066
|
display: flex;
|
|
@@ -8924,8 +9210,15 @@ button.workspace-dashboard-chip {
|
|
|
8924
9210
|
}
|
|
8925
9211
|
.edit-retry-text {
|
|
8926
9212
|
width: 100%;
|
|
8927
|
-
min-
|
|
9213
|
+
min-width: 0;
|
|
9214
|
+
min-height: min(12rem, 38vh);
|
|
9215
|
+
max-height: min(32rem, 48vh);
|
|
8928
9216
|
margin-top: 0.65rem;
|
|
9217
|
+
overflow-x: hidden;
|
|
9218
|
+
overflow-y: auto;
|
|
9219
|
+
overflow-wrap: anywhere;
|
|
9220
|
+
white-space: pre-wrap;
|
|
9221
|
+
word-break: break-word;
|
|
8929
9222
|
}
|
|
8930
9223
|
.edit-retry-status.error { color: var(--ctp-red); }
|
|
8931
9224
|
.edit-retry-status.info { color: var(--ctp-subtext); }
|
|
@@ -9063,3 +9356,73 @@ button.workspace-dashboard-chip {
|
|
|
9063
9356
|
padding-right: 5rem;
|
|
9064
9357
|
}
|
|
9065
9358
|
}
|
|
9359
|
+
|
|
9360
|
+
/* Natural Conversation browser voice loop (Phase 3): per-state chip accents
|
|
9361
|
+
and the remote microphone consent banner. */
|
|
9362
|
+
.composer-conversation-mode-chip[data-voice-state="speaking"] {
|
|
9363
|
+
color: var(--ctp-green);
|
|
9364
|
+
border-color: rgba(166, 227, 161, 0.6);
|
|
9365
|
+
box-shadow: 0 0 0.55rem rgba(166, 227, 161, 0.35);
|
|
9366
|
+
}
|
|
9367
|
+
.composer-conversation-mode-chip[data-voice-state="transcribing"],
|
|
9368
|
+
.composer-conversation-mode-chip[data-voice-state="answering"] {
|
|
9369
|
+
color: var(--ctp-blue);
|
|
9370
|
+
border-color: rgba(137, 180, 250, 0.55);
|
|
9371
|
+
}
|
|
9372
|
+
.composer-conversation-mode-chip[data-voice-state="interrupting"],
|
|
9373
|
+
.composer-conversation-mode-chip[data-voice-state="silence"] {
|
|
9374
|
+
color: var(--ctp-yellow);
|
|
9375
|
+
border-color: rgba(249, 226, 175, 0.6);
|
|
9376
|
+
}
|
|
9377
|
+
.composer-conversation-mode-chip[data-voice-state="paused"],
|
|
9378
|
+
.composer-conversation-mode-chip[data-voice-state="error"] {
|
|
9379
|
+
color: var(--ctp-red);
|
|
9380
|
+
border-color: rgba(243, 139, 168, 0.62);
|
|
9381
|
+
box-shadow: 0 0 0.55rem rgba(243, 139, 168, 0.3);
|
|
9382
|
+
}
|
|
9383
|
+
|
|
9384
|
+
.composer-remote-mic-consent {
|
|
9385
|
+
display: flex;
|
|
9386
|
+
flex-wrap: wrap;
|
|
9387
|
+
align-items: center;
|
|
9388
|
+
gap: 0.55rem;
|
|
9389
|
+
margin: 0.5rem 0.75rem 0.65rem;
|
|
9390
|
+
padding: 0.6rem 0.75rem;
|
|
9391
|
+
border: 1px solid rgba(250, 179, 135, 0.55);
|
|
9392
|
+
border-radius: 0.65rem;
|
|
9393
|
+
background: linear-gradient(135deg, rgba(250, 179, 135, 0.14), rgba(243, 139, 168, 0.1)), var(--ctp-crust);
|
|
9394
|
+
box-shadow: 0 0 0.65rem rgba(250, 179, 135, 0.22);
|
|
9395
|
+
}
|
|
9396
|
+
.composer-remote-mic-consent[hidden] {
|
|
9397
|
+
display: none !important;
|
|
9398
|
+
}
|
|
9399
|
+
.composer-remote-mic-consent-text {
|
|
9400
|
+
flex: 1 1 16rem;
|
|
9401
|
+
min-width: 0;
|
|
9402
|
+
color: var(--ctp-peach);
|
|
9403
|
+
font-size: 0.74rem;
|
|
9404
|
+
line-height: 1.4;
|
|
9405
|
+
overflow-wrap: anywhere;
|
|
9406
|
+
}
|
|
9407
|
+
.composer-remote-mic-consent-button {
|
|
9408
|
+
flex: 0 0 auto;
|
|
9409
|
+
padding: 0.42rem 0.8rem;
|
|
9410
|
+
border: 1px solid rgba(250, 179, 135, 0.6);
|
|
9411
|
+
border-radius: 999px;
|
|
9412
|
+
background: linear-gradient(135deg, rgba(250, 179, 135, 0.24), rgba(243, 139, 168, 0.18)), var(--ctp-crust);
|
|
9413
|
+
color: var(--ctp-peach);
|
|
9414
|
+
font-size: 0.72rem;
|
|
9415
|
+
font-weight: 800;
|
|
9416
|
+
letter-spacing: 0.04em;
|
|
9417
|
+
text-transform: uppercase;
|
|
9418
|
+
cursor: pointer;
|
|
9419
|
+
}
|
|
9420
|
+
.composer-remote-mic-consent-button:hover:not(:disabled),
|
|
9421
|
+
.composer-remote-mic-consent-button:focus-visible:not(:disabled) {
|
|
9422
|
+
background: linear-gradient(135deg, var(--ctp-peach), var(--ctp-maroon));
|
|
9423
|
+
color: #11111b;
|
|
9424
|
+
}
|
|
9425
|
+
.composer-remote-mic-consent-button:disabled {
|
|
9426
|
+
opacity: 0.55;
|
|
9427
|
+
cursor: not-allowed;
|
|
9428
|
+
}
|