@firstpick/pi-package-webui 0.8.2 → 0.8.3
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 +9 -3
- package/bin/pi-webui.mjs +97 -12
- package/lib/git-workflow-preferences.mjs +246 -19
- package/lib/thinking-stream-recovery.mjs +156 -0
- package/lib/ui-layout-settings.mjs +254 -0
- package/package.json +5 -3
- package/public/app.js +1618 -41
- package/public/index.html +35 -14
- package/public/service-worker.js +1 -1
- package/public/styles.css +324 -1
- package/tests/boot-failure-diagnostics.test.mjs +3 -3
- package/tests/browser/composer-action-grid-reorder.spec.mjs +303 -0
- package/tests/browser/feature-decision-output-popup.spec.mjs +156 -0
- package/tests/browser/interaction-continuity.spec.mjs +29 -0
- package/tests/browser/persistent-ui-layout.spec.mjs +744 -0
- package/tests/codex-fast-mode-static.test.mjs +2 -2
- package/tests/composer-action-grid-reorder-static.test.mjs +63 -0
- package/tests/fast-mode-client-static.test.mjs +2 -2
- package/tests/feature-decision-output-popup-static.test.mjs +172 -0
- package/tests/fixtures/fake-pi.mjs +51 -1
- package/tests/git-workflow-preferences.test.mjs +4 -2
- package/tests/http-endpoints-harness.test.mjs +88 -1
- package/tests/interaction-state-stability-static.test.mjs +3 -0
- package/tests/mobile-continuity-tablet-static.test.mjs +3 -3
- package/tests/mobile-foundation-static.test.mjs +3 -3
- package/tests/mobile-phone-experience-static.test.mjs +1 -1
- package/tests/mobile-static.test.mjs +32 -15
- package/tests/open-issue-wizard-static.test.mjs +1 -1
- package/tests/persistent-ui-layout-static.test.mjs +267 -0
- package/tests/questionnaire-dialog.test.mjs +511 -0
- package/tests/queue-edit-reorder-static.test.mjs +1 -0
- package/tests/remote-auth-settings-harness.test.mjs +1 -1
- package/tests/side-panel-resize-static.test.mjs +1 -0
- package/tests/side-panel-section-reorder-static.test.mjs +3 -3
- package/tests/subagent-launch-slots.test.mjs +1 -1
- package/tests/thinking-stream-recovery.test.mjs +88 -0
- package/tests/ui-layout-settings.test.mjs +92 -0
- package/tests/webui-settings-locking.test.mjs +159 -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=98" />
|
|
16
16
|
<script>
|
|
17
17
|
// Public-only issue-bot runtime configuration. Keep disabled unless the gateway,
|
|
18
18
|
// Turnstile site key, exact CORS origin, and private-report destination are approved.
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
aria-live="polite"
|
|
323
323
|
>Follow-up</button>
|
|
324
324
|
<div id="sessionSkillTags" class="composer-skill-tags" aria-live="polite" hidden></div>
|
|
325
|
-
<
|
|
325
|
+
<button id="featureCategoryTag" class="composer-feature-category-tag" type="button" aria-haspopup="dialog" aria-controls="featureDecisionDialog" aria-live="polite" aria-atomic="true" disabled hidden></button>
|
|
326
326
|
<button id="conversationModeChip" class="composer-conversation-mode-chip" type="button" aria-live="polite" hidden>Voice: off</button>
|
|
327
327
|
<button id="workflowModeChip" class="composer-workflow-mode-chip" type="button" aria-live="polite" aria-pressed="true" hidden>Workflow: on</button>
|
|
328
328
|
</div>
|
|
@@ -362,18 +362,20 @@
|
|
|
362
362
|
<div class="composer-row">
|
|
363
363
|
<button id="composerActionsButton" class="composer-actions-button" type="button" aria-controls="composerActionsPanel" aria-expanded="false" title="Open session, workflow, and follow-up actions">Actions</button>
|
|
364
364
|
<div id="composerActionsPanel" class="composer-actions-panel" aria-label="Composer actions">
|
|
365
|
-
<button id="newSessionButton" class="composer-new-button" type="button">New</button>
|
|
366
|
-
<button id="compactButton" class="composer-compact-button" type="button" title="Compact the current Pi session context">Compact</button>
|
|
365
|
+
<button id="newSessionButton" class="composer-new-button" type="button" data-composer-action-id="new" data-composer-action-span="1">New</button>
|
|
366
|
+
<button id="compactButton" class="composer-compact-button" type="button" title="Compact the current Pi session context" data-composer-action-id="compact" data-composer-action-span="2">Compact</button>
|
|
367
367
|
<button
|
|
368
368
|
id="gitWorkflowButton"
|
|
369
369
|
class="composer-icon-button composer-git-button"
|
|
370
|
+
data-composer-action-id="git"
|
|
371
|
+
data-composer-action-span="1"
|
|
370
372
|
type="button"
|
|
371
373
|
hidden
|
|
372
374
|
title="Guided Git workflow"
|
|
373
375
|
aria-label="Start guided Git workflow: stage all changes, generate and preview staged commit messages, optionally open a PR branch worktree, commit short or long there, then push or create a pull request. Cancel is available at each step."
|
|
374
376
|
data-tooltip="Guided Git workflow: 1. Stage all changes with git add . 2. Generate and preview staged commit messages. 3. Optional: create or type a PR branch worktree before committing. 4. Commit with the short or long message in the worktree tab. 5. Push normally, or push the PR worktree branch, generate/review /pr, and create the PR. Cancel is available at each step."
|
|
375
377
|
><svg class="composer-icon composer-icon-github" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></button>
|
|
376
|
-
<div class="composer-publish-menu" hidden>
|
|
378
|
+
<div class="composer-publish-menu" data-composer-action-id="publish" data-composer-action-span="1" hidden>
|
|
377
379
|
<button
|
|
378
380
|
id="publishButton"
|
|
379
381
|
class="composer-icon-button composer-publish-button"
|
|
@@ -394,7 +396,7 @@
|
|
|
394
396
|
</button>
|
|
395
397
|
</div>
|
|
396
398
|
</div>
|
|
397
|
-
<div class="composer-publish-menu composer-native-command-menu" hidden>
|
|
399
|
+
<div class="composer-publish-menu composer-native-command-menu" data-composer-action-id="native-command" data-composer-action-span="1" hidden>
|
|
398
400
|
<button
|
|
399
401
|
id="nativeCommandMenuButton"
|
|
400
402
|
class="composer-icon-button composer-publish-button composer-native-command-button"
|
|
@@ -415,7 +417,7 @@
|
|
|
415
417
|
</button>
|
|
416
418
|
</div>
|
|
417
419
|
</div>
|
|
418
|
-
<div class="composer-publish-menu composer-options-menu">
|
|
420
|
+
<div class="composer-publish-menu composer-options-menu" data-composer-action-id="options" data-composer-action-span="1">
|
|
419
421
|
<button
|
|
420
422
|
id="optionsMenuButton"
|
|
421
423
|
class="composer-icon-button composer-publish-button composer-options-button"
|
|
@@ -478,7 +480,7 @@
|
|
|
478
480
|
</button>
|
|
479
481
|
</div>
|
|
480
482
|
</div>
|
|
481
|
-
<div id="appRunnerMenu" class="composer-publish-menu composer-app-runner-menu" hidden>
|
|
483
|
+
<div id="appRunnerMenu" class="composer-publish-menu composer-app-runner-menu" data-composer-action-id="app-runner" data-composer-action-span="2" hidden>
|
|
482
484
|
<button
|
|
483
485
|
id="appRunnerInfoButton"
|
|
484
486
|
class="composer-icon-button composer-app-runner-info-button"
|
|
@@ -507,6 +509,8 @@
|
|
|
507
509
|
<button
|
|
508
510
|
id="steerButton"
|
|
509
511
|
type="button"
|
|
512
|
+
data-composer-action-id="steer"
|
|
513
|
+
data-composer-action-span="2"
|
|
510
514
|
title="Type your message first, then tap Steer to guide the active Pi run without sending a normal prompt. Use it for corrections or direction changes while Pi is working."
|
|
511
515
|
aria-label="Steer: type your message first, then tap this button to guide the active Pi run."
|
|
512
516
|
data-tooltip="Steer usage: 1. Type your steering message in the textarea. 2. Tap Steer to guide the active Pi run. Use for corrections or direction changes while Pi is working."
|
|
@@ -514,27 +518,33 @@
|
|
|
514
518
|
<button
|
|
515
519
|
id="followUpButton"
|
|
516
520
|
type="button"
|
|
521
|
+
data-composer-action-id="follow-up"
|
|
522
|
+
data-composer-action-span="2"
|
|
517
523
|
title="Type your message first, then tap Follow-up to send it as a follow-up instead of a normal prompt. Use it to add extra context or the next request."
|
|
518
524
|
aria-label="Follow-up: type your message first, then tap this button to send it as a follow-up."
|
|
519
525
|
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."
|
|
520
526
|
>Follow-up</button>
|
|
521
|
-
<div id="conversationVoiceMenu" class="composer-publish-menu composer-conversation-voice-menu" hidden>
|
|
527
|
+
<div id="conversationVoiceMenu" class="composer-publish-menu composer-conversation-voice-menu" data-composer-action-id="conversation-voice" data-composer-action-span="1" hidden>
|
|
522
528
|
<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>
|
|
523
529
|
<div id="conversationVoiceMenuPanel" class="composer-publish-menu-panel composer-conversation-voice-menu-panel" role="menu" aria-label="Conversation voices"></div>
|
|
524
530
|
</div>
|
|
525
|
-
<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>
|
|
526
|
-
<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>
|
|
531
|
+
<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" data-composer-action-id="end-conversation" data-composer-action-span="1" hidden>End conversation</button>
|
|
532
|
+
<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" data-composer-action-id="abort" data-composer-action-span="2" hidden disabled>Abort</button>
|
|
527
533
|
<button
|
|
528
534
|
id="btwButton"
|
|
529
535
|
class="composer-icon-button composer-btw-button"
|
|
536
|
+
data-composer-action-id="btw"
|
|
537
|
+
data-composer-action-span="1"
|
|
530
538
|
type="button"
|
|
531
539
|
title="Ask as a /btw side question"
|
|
532
540
|
aria-label="Ask the current composer text as a /btw side question"
|
|
533
541
|
data-tooltip="/btw side question: Type a question, then tap /btw to ask without adding it to the main conversation."
|
|
534
542
|
hidden
|
|
535
543
|
><svg class="composer-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M5.5 6.5h10.75a2.25 2.25 0 0 1 2.25 2.25v4.5a2.25 2.25 0 0 1-2.25 2.25h-4.4L8 18.25V15.5H5.5a2.25 2.25 0 0 1-2.25-2.25v-4.5A2.25 2.25 0 0 1 5.5 6.5Z" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"/><path d="m15.75 5.25 1.1-2.1 1.1 2.1 2.3 1.1-2.3 1.1-1.1 2.1-1.1-2.1-2.3-1.1 2.3-1.1Z" fill="currentColor"/><path d="M7.25 10.25h5.8M7.25 12.75h4.1" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round"/></svg></button>
|
|
536
|
-
<button id="sendButton" type="submit" class="primary" title="Send prompt">Send</button>
|
|
544
|
+
<button id="sendButton" type="submit" class="primary" title="Send prompt" data-composer-action-id="send" data-composer-action-span="2">Send</button>
|
|
545
|
+
<div id="composerActionGridGuide" class="composer-action-grid-guide" aria-hidden="true" hidden></div>
|
|
537
546
|
</div>
|
|
547
|
+
<p id="composerActionOrderStatus" class="sr-only" role="status" aria-live="polite" aria-atomic="true"></p>
|
|
538
548
|
</form>
|
|
539
549
|
<div id="remoteMicStreamingConsent" class="composer-remote-mic-consent" role="alert" hidden>
|
|
540
550
|
<span id="remoteMicStreamingConsentText" class="composer-remote-mic-consent-text"></span>
|
|
@@ -979,6 +989,7 @@
|
|
|
979
989
|
<span id="subagentOpenModeStatus" class="muted">Overlay · saved in this browser</span>
|
|
980
990
|
</div>
|
|
981
991
|
<div class="subagents-status-row">
|
|
992
|
+
<button id="subagentsAutoClearButton" class="subagents-auto-clear-button" type="button" aria-pressed="false" aria-describedby="subagentsStatus">Auto-Clear</button>
|
|
982
993
|
<p id="subagentsStatus" class="subagents-status muted" role="status" aria-live="polite">Checking running subagents…</p>
|
|
983
994
|
<button id="subagentsClearFinishedButton" class="subagents-clear-finished-button" type="button" aria-describedby="subagentsStatus" disabled>Clear finished</button>
|
|
984
995
|
</div>
|
|
@@ -1222,7 +1233,17 @@
|
|
|
1222
1233
|
</form>
|
|
1223
1234
|
</dialog>
|
|
1224
1235
|
|
|
1225
|
-
<dialog id="
|
|
1236
|
+
<dialog id="featureDecisionDialog" class="extension-dialog feature-decision-dialog" aria-labelledby="featureDecisionDialogTitle">
|
|
1237
|
+
<form method="dialog">
|
|
1238
|
+
<h2 id="featureDecisionDialogTitle">Classifier output</h2>
|
|
1239
|
+
<pre id="featureDecisionDialogOutput" class="feature-decision-dialog-output"></pre>
|
|
1240
|
+
<menu>
|
|
1241
|
+
<button id="featureDecisionDialogCloseButton" type="submit" value="close">Close</button>
|
|
1242
|
+
</menu>
|
|
1243
|
+
</form>
|
|
1244
|
+
</dialog>
|
|
1245
|
+
|
|
1246
|
+
<dialog id="extensionDialog" class="extension-dialog" aria-labelledby="dialogTitle" aria-describedby="dialogMessage">
|
|
1226
1247
|
<form id="dialogForm" method="dialog">
|
|
1227
1248
|
<h2 id="dialogTitle">Pi request</h2>
|
|
1228
1249
|
<p id="dialogMessage" class="muted"></p>
|
|
@@ -1500,7 +1521,7 @@
|
|
|
1500
1521
|
</form>
|
|
1501
1522
|
</dialog>
|
|
1502
1523
|
|
|
1503
|
-
<script id="webuiBootLoader" data-app-src="/app.js?v=
|
|
1524
|
+
<script id="webuiBootLoader" data-app-src="/app.js?v=112">
|
|
1504
1525
|
(() => {
|
|
1505
1526
|
"use strict";
|
|
1506
1527
|
|
package/public/service-worker.js
CHANGED
package/public/styles.css
CHANGED
|
@@ -2753,7 +2753,7 @@ body.embedded-split .side-panel-backdrop {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
.subagents-status-row {
|
|
2755
2755
|
display: flex;
|
|
2756
|
-
align-items:
|
|
2756
|
+
align-items: center;
|
|
2757
2757
|
gap: 0.48rem;
|
|
2758
2758
|
margin: 0 0 0.48rem;
|
|
2759
2759
|
}
|
|
@@ -2764,12 +2764,19 @@ body.embedded-split .side-panel-backdrop {
|
|
|
2764
2764
|
font-size: var(--text-xs);
|
|
2765
2765
|
line-height: 1.35;
|
|
2766
2766
|
}
|
|
2767
|
+
.subagents-auto-clear-button,
|
|
2767
2768
|
.subagents-clear-finished-button {
|
|
2768
2769
|
flex: 0 0 auto;
|
|
2769
2770
|
min-height: 2rem;
|
|
2770
2771
|
padding: 0.28rem 0.5rem;
|
|
2771
2772
|
font-size: var(--text-xs);
|
|
2772
2773
|
}
|
|
2774
|
+
.subagents-auto-clear-button[aria-pressed="true"] {
|
|
2775
|
+
color: var(--ctp-crust);
|
|
2776
|
+
border-color: rgba(148, 226, 213, 0.82);
|
|
2777
|
+
background: linear-gradient(120deg, var(--ctp-teal), var(--ctp-green));
|
|
2778
|
+
box-shadow: 0 0 0.8rem rgba(148, 226, 213, 0.18), inset 0 1px 0 rgba(255,255,255,0.28);
|
|
2779
|
+
}
|
|
2773
2780
|
.subagents-box {
|
|
2774
2781
|
display: grid;
|
|
2775
2782
|
gap: 0.58rem;
|
|
@@ -7873,6 +7880,9 @@ summary { cursor: pointer; color: var(--warning); }
|
|
|
7873
7880
|
padding: 0.9rem;
|
|
7874
7881
|
background: linear-gradient(180deg, rgba(var(--ctp-crust-rgb), 0.48), rgba(var(--ctp-crust-rgb), 0.82));
|
|
7875
7882
|
}
|
|
7883
|
+
.composer:has(.follow-up-queue-overlay:not([hidden])) {
|
|
7884
|
+
z-index: 80;
|
|
7885
|
+
}
|
|
7876
7886
|
.composer::before {
|
|
7877
7887
|
content: "";
|
|
7878
7888
|
position: absolute;
|
|
@@ -8084,6 +8094,7 @@ summary { cursor: pointer; color: var(--warning); }
|
|
|
8084
8094
|
}
|
|
8085
8095
|
.composer-busy-mode-tag,
|
|
8086
8096
|
.composer-skill-tag,
|
|
8097
|
+
.composer-feature-category-tag,
|
|
8087
8098
|
.composer-conversation-mode-chip,
|
|
8088
8099
|
.composer-workflow-mode-chip {
|
|
8089
8100
|
pointer-events: auto;
|
|
@@ -8154,7 +8165,9 @@ summary { cursor: pointer; color: var(--warning); }
|
|
|
8154
8165
|
.composer-feature-category-tag {
|
|
8155
8166
|
flex: 0 1 auto;
|
|
8156
8167
|
min-width: 0;
|
|
8168
|
+
min-height: 0;
|
|
8157
8169
|
max-width: min(14rem, 100%);
|
|
8170
|
+
margin: 0;
|
|
8158
8171
|
padding: 0.14rem 0.56rem;
|
|
8159
8172
|
border: 1px solid rgba(148, 226, 213, 0.52);
|
|
8160
8173
|
border-radius: 999px;
|
|
@@ -8163,6 +8176,7 @@ summary { cursor: pointer; color: var(--warning); }
|
|
|
8163
8176
|
linear-gradient(120deg, rgba(148, 226, 213, 0.28), rgba(166, 227, 161, 0.10)),
|
|
8164
8177
|
var(--ctp-crust);
|
|
8165
8178
|
box-shadow: 0 0.42rem 1rem rgba(var(--ctp-crust-rgb), 0.42), 0 0 1rem rgba(148, 226, 213, 0.22);
|
|
8179
|
+
cursor: pointer;
|
|
8166
8180
|
font-size: var(--text-xs);
|
|
8167
8181
|
font-weight: 900;
|
|
8168
8182
|
letter-spacing: 0.04em;
|
|
@@ -8171,6 +8185,16 @@ summary { cursor: pointer; color: var(--warning); }
|
|
|
8171
8185
|
text-overflow: ellipsis;
|
|
8172
8186
|
white-space: nowrap;
|
|
8173
8187
|
}
|
|
8188
|
+
.composer-feature-category-tag:hover:not(:disabled),
|
|
8189
|
+
.composer-feature-category-tag:focus-visible {
|
|
8190
|
+
border-color: rgba(148, 226, 213, 0.78);
|
|
8191
|
+
box-shadow: 0 0.42rem 1rem rgba(var(--ctp-crust-rgb), 0.42), 0 0 1.2rem rgba(148, 226, 213, 0.34);
|
|
8192
|
+
transform: translateY(-1px);
|
|
8193
|
+
}
|
|
8194
|
+
.composer-feature-category-tag:disabled {
|
|
8195
|
+
cursor: default;
|
|
8196
|
+
opacity: 0.72;
|
|
8197
|
+
}
|
|
8174
8198
|
.composer-feature-category-tag.complex-feature {
|
|
8175
8199
|
border-color: rgba(203, 166, 247, 0.56);
|
|
8176
8200
|
color: var(--ctp-mauve);
|
|
@@ -8611,6 +8635,83 @@ button.composer-skill-tag:focus-visible {
|
|
|
8611
8635
|
}
|
|
8612
8636
|
.composer-actions-button { display: none; }
|
|
8613
8637
|
.composer-actions-panel { display: contents; }
|
|
8638
|
+
body.composer-action-grid-enabled .composer-row {
|
|
8639
|
+
--composer-action-cell-min-width: 3.2rem;
|
|
8640
|
+
position: relative;
|
|
8641
|
+
display: grid;
|
|
8642
|
+
grid-template-columns: repeat(auto-fill, minmax(var(--composer-action-cell-min-width), 1fr));
|
|
8643
|
+
grid-auto-flow: dense;
|
|
8644
|
+
align-items: stretch;
|
|
8645
|
+
}
|
|
8646
|
+
body.composer-action-grid-enabled .composer-row .spacer { display: none; }
|
|
8647
|
+
body.composer-action-grid-enabled .composer-row [data-composer-action-id] {
|
|
8648
|
+
position: relative;
|
|
8649
|
+
z-index: 1;
|
|
8650
|
+
--composer-action-grid-span: 1;
|
|
8651
|
+
order: var(--composer-action-order, 0);
|
|
8652
|
+
grid-column: var(--composer-action-grid-column, auto) / span var(--composer-action-grid-span);
|
|
8653
|
+
grid-row-start: var(--composer-action-grid-row, auto);
|
|
8654
|
+
width: 100%;
|
|
8655
|
+
min-width: 0;
|
|
8656
|
+
margin-right: 0;
|
|
8657
|
+
cursor: grab;
|
|
8658
|
+
touch-action: none;
|
|
8659
|
+
user-select: none;
|
|
8660
|
+
}
|
|
8661
|
+
body.composer-action-grid-enabled .composer-row [data-composer-action-id].composer-publish-menu:hover,
|
|
8662
|
+
body.composer-action-grid-enabled .composer-row [data-composer-action-id].composer-publish-menu:focus-within,
|
|
8663
|
+
body.composer-action-grid-enabled .composer-row [data-composer-action-id].composer-publish-menu.open {
|
|
8664
|
+
z-index: 100;
|
|
8665
|
+
}
|
|
8666
|
+
body.composer-action-grid-enabled .composer-row [data-composer-action-span="2"] { --composer-action-grid-span: 2; }
|
|
8667
|
+
body.composer-action-grid-enabled .composer-row [data-composer-action-id] > button { width: 100%; min-width: 0; }
|
|
8668
|
+
body.composer-action-grid-enabled .composer-row #newSessionButton {
|
|
8669
|
+
display: grid;
|
|
8670
|
+
place-items: center;
|
|
8671
|
+
padding-inline: 0.4rem;
|
|
8672
|
+
text-align: center;
|
|
8673
|
+
}
|
|
8674
|
+
.composer-action-grid-guide { display: none; }
|
|
8675
|
+
body.composer-action-grid-enabled.composer-action-drag-active .composer-row > .composer-action-grid-guide:not([hidden]) {
|
|
8676
|
+
position: absolute;
|
|
8677
|
+
z-index: 0;
|
|
8678
|
+
inset: 0;
|
|
8679
|
+
display: grid;
|
|
8680
|
+
grid-template-columns: repeat(auto-fill, minmax(var(--composer-action-cell-min-width), 1fr));
|
|
8681
|
+
grid-template-rows: repeat(var(--composer-action-grid-rows, 1), minmax(0, 1fr));
|
|
8682
|
+
gap: 0.5rem;
|
|
8683
|
+
pointer-events: none;
|
|
8684
|
+
}
|
|
8685
|
+
.composer-action-grid-cell {
|
|
8686
|
+
min-width: 0;
|
|
8687
|
+
min-height: 0;
|
|
8688
|
+
border: 1px dashed rgba(137, 180, 250, 0.5);
|
|
8689
|
+
border-radius: 0.7rem;
|
|
8690
|
+
background: rgba(137, 180, 250, 0.07);
|
|
8691
|
+
box-shadow: inset 0 0 0.7rem rgba(137, 180, 250, 0.05);
|
|
8692
|
+
}
|
|
8693
|
+
.composer-action-grid-cell.composer-action-grid-cell-target {
|
|
8694
|
+
border-style: solid;
|
|
8695
|
+
border-color: var(--ctp-teal);
|
|
8696
|
+
background: rgba(148, 226, 213, 0.18);
|
|
8697
|
+
box-shadow: inset 0 0 0.9rem rgba(148, 226, 213, 0.16), 0 0 0.65rem rgba(148, 226, 213, 0.3);
|
|
8698
|
+
}
|
|
8699
|
+
body.composer-action-grid-enabled .composer-row [data-composer-action-id].composer-action-dragging {
|
|
8700
|
+
z-index: 45;
|
|
8701
|
+
opacity: 0.58;
|
|
8702
|
+
cursor: grabbing;
|
|
8703
|
+
transform: scale(0.97);
|
|
8704
|
+
}
|
|
8705
|
+
body.composer-action-grid-enabled .composer-row [data-composer-action-id].composer-action-drag-before {
|
|
8706
|
+
outline: 2px solid var(--ctp-teal);
|
|
8707
|
+
outline-offset: 2px;
|
|
8708
|
+
box-shadow: -0.34rem 0 0 -0.16rem var(--ctp-teal);
|
|
8709
|
+
}
|
|
8710
|
+
body.composer-action-grid-enabled .composer-row [data-composer-action-id].composer-action-drag-after {
|
|
8711
|
+
outline: 2px solid var(--ctp-mauve);
|
|
8712
|
+
outline-offset: 2px;
|
|
8713
|
+
box-shadow: 0.34rem 0 0 -0.16rem var(--ctp-mauve);
|
|
8714
|
+
}
|
|
8614
8715
|
.composer-btw-button {
|
|
8615
8716
|
color: var(--ctp-teal);
|
|
8616
8717
|
border-color: rgba(148, 226, 213, 0.34);
|
|
@@ -9958,6 +10059,23 @@ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-
|
|
|
9958
10059
|
color: var(--text);
|
|
9959
10060
|
box-shadow: 0 2rem 5rem var(--shadow), 0 0 2rem var(--glow-mauve);
|
|
9960
10061
|
}
|
|
10062
|
+
.extension-dialog.feature-decision-dialog {
|
|
10063
|
+
width: min(30rem, calc(100vw - 2rem));
|
|
10064
|
+
}
|
|
10065
|
+
.feature-decision-dialog h2 { margin: 0; }
|
|
10066
|
+
.feature-decision-dialog-output {
|
|
10067
|
+
margin: 0.9rem 0 0;
|
|
10068
|
+
padding: 0.85rem;
|
|
10069
|
+
border: 1px solid rgba(148, 226, 213, 0.34);
|
|
10070
|
+
border-radius: 0.72rem;
|
|
10071
|
+
color: var(--ctp-teal);
|
|
10072
|
+
background: rgba(var(--ctp-crust-rgb), 0.82);
|
|
10073
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
10074
|
+
font-size: 0.95rem;
|
|
10075
|
+
line-height: 1.4;
|
|
10076
|
+
overflow-wrap: anywhere;
|
|
10077
|
+
white-space: pre-wrap;
|
|
10078
|
+
}
|
|
9961
10079
|
.extension-dialog.workflow-script-dialog {
|
|
9962
10080
|
width: min(96rem, calc(100vw - 2rem));
|
|
9963
10081
|
height: min(58rem, calc(var(--visual-viewport-height, 100dvh) - 2rem));
|
|
@@ -11513,6 +11631,175 @@ body.subagent-terminal-active .composer-remote-mic-consent {
|
|
|
11513
11631
|
.dialog-options button { text-align: left; }
|
|
11514
11632
|
.dialog-input { width: 100%; padding: 0.7rem; }
|
|
11515
11633
|
.dialog-editor { width: 100%; min-height: 12rem; padding: 0.7rem; }
|
|
11634
|
+
|
|
11635
|
+
.extension-dialog.questionnaire-dialog {
|
|
11636
|
+
width: min(48rem, calc(100vw - 2rem));
|
|
11637
|
+
max-height: min(52rem, calc(var(--visual-viewport-height, 100dvh) - 2rem));
|
|
11638
|
+
overflow: hidden;
|
|
11639
|
+
border-color: rgba(137, 180, 250, 0.5);
|
|
11640
|
+
background:
|
|
11641
|
+
radial-gradient(circle at 100% 0, rgba(137, 180, 250, 0.13), transparent 24rem),
|
|
11642
|
+
linear-gradient(145deg, rgba(var(--ctp-base-rgb), 0.99), rgba(var(--ctp-crust-rgb), 0.99));
|
|
11643
|
+
box-shadow: 0 2rem 5rem var(--shadow), 0 0 2.2rem rgba(137, 180, 250, 0.2);
|
|
11644
|
+
}
|
|
11645
|
+
.questionnaire-dialog form {
|
|
11646
|
+
display: grid;
|
|
11647
|
+
grid-template-rows: auto auto minmax(0, 1fr) auto;
|
|
11648
|
+
max-height: calc(min(52rem, var(--visual-viewport-height, 100dvh)) - 4rem);
|
|
11649
|
+
min-height: 0;
|
|
11650
|
+
}
|
|
11651
|
+
.questionnaire-dialog #dialogTitle {
|
|
11652
|
+
margin-bottom: 0;
|
|
11653
|
+
color: var(--ctp-blue);
|
|
11654
|
+
font-size: clamp(1.15rem, 3vw, 1.45rem);
|
|
11655
|
+
line-height: 1.25;
|
|
11656
|
+
text-shadow: 0 0 1rem rgba(137, 180, 250, 0.24);
|
|
11657
|
+
}
|
|
11658
|
+
.questionnaire-dialog #dialogMessage {
|
|
11659
|
+
margin: 0.72rem 0 0.9rem;
|
|
11660
|
+
padding: 0.72rem 0.82rem;
|
|
11661
|
+
border: 1px solid rgba(180, 190, 254, 0.18);
|
|
11662
|
+
border-radius: 0.78rem;
|
|
11663
|
+
color: rgba(var(--ctp-text-rgb), 0.84);
|
|
11664
|
+
background: rgba(var(--ctp-crust-rgb), 0.46);
|
|
11665
|
+
font-size: var(--text-sm);
|
|
11666
|
+
}
|
|
11667
|
+
.questionnaire-dialog #dialogBody {
|
|
11668
|
+
min-height: 0;
|
|
11669
|
+
overflow-y: auto;
|
|
11670
|
+
overscroll-behavior: contain;
|
|
11671
|
+
scrollbar-gutter: stable;
|
|
11672
|
+
padding: 0.1rem 0.18rem 0.15rem 0;
|
|
11673
|
+
}
|
|
11674
|
+
.questionnaire-options { gap: 0.58rem; }
|
|
11675
|
+
.questionnaire-options button {
|
|
11676
|
+
width: 100%;
|
|
11677
|
+
min-height: 3.65rem;
|
|
11678
|
+
margin: 0;
|
|
11679
|
+
white-space: normal;
|
|
11680
|
+
}
|
|
11681
|
+
.questionnaire-option {
|
|
11682
|
+
display: grid;
|
|
11683
|
+
align-items: center;
|
|
11684
|
+
gap: 0.68rem;
|
|
11685
|
+
padding: 0.68rem 0.76rem;
|
|
11686
|
+
overflow: hidden;
|
|
11687
|
+
border-color: rgba(137, 180, 250, 0.3);
|
|
11688
|
+
background:
|
|
11689
|
+
linear-gradient(105deg, rgba(137, 180, 250, 0.09), transparent 42%),
|
|
11690
|
+
linear-gradient(180deg, rgba(var(--ctp-surface-rgb), 0.72), rgba(var(--ctp-mantle-rgb), 0.82));
|
|
11691
|
+
text-align: left;
|
|
11692
|
+
}
|
|
11693
|
+
.questionnaire-option-single { grid-template-columns: 2.55rem minmax(0, 1fr); }
|
|
11694
|
+
.questionnaire-option-multi { grid-template-columns: 2.55rem 2rem minmax(0, 1fr); }
|
|
11695
|
+
.questionnaire-option-number {
|
|
11696
|
+
display: inline-grid;
|
|
11697
|
+
place-items: center;
|
|
11698
|
+
align-self: stretch;
|
|
11699
|
+
min-height: 2.05rem;
|
|
11700
|
+
border-right: 1px solid rgba(137, 180, 250, 0.24);
|
|
11701
|
+
color: var(--ctp-blue);
|
|
11702
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
11703
|
+
font-size: var(--text-sm);
|
|
11704
|
+
font-variant-numeric: tabular-nums;
|
|
11705
|
+
font-weight: 900;
|
|
11706
|
+
letter-spacing: 0.04em;
|
|
11707
|
+
}
|
|
11708
|
+
.questionnaire-option-state {
|
|
11709
|
+
display: inline-grid;
|
|
11710
|
+
place-items: center;
|
|
11711
|
+
width: 1.7rem;
|
|
11712
|
+
height: 1.7rem;
|
|
11713
|
+
border: 2px solid rgba(180, 190, 254, 0.56);
|
|
11714
|
+
border-radius: 0.46rem;
|
|
11715
|
+
color: var(--ctp-crust);
|
|
11716
|
+
background: rgba(var(--ctp-crust-rgb), 0.5);
|
|
11717
|
+
font-size: 1rem;
|
|
11718
|
+
font-weight: 950;
|
|
11719
|
+
line-height: 1;
|
|
11720
|
+
}
|
|
11721
|
+
.questionnaire-option-text {
|
|
11722
|
+
display: grid;
|
|
11723
|
+
gap: 0.2rem;
|
|
11724
|
+
min-width: 0;
|
|
11725
|
+
}
|
|
11726
|
+
.questionnaire-option-label {
|
|
11727
|
+
color: var(--ctp-text);
|
|
11728
|
+
font-weight: 800;
|
|
11729
|
+
line-height: 1.35;
|
|
11730
|
+
overflow-wrap: anywhere;
|
|
11731
|
+
}
|
|
11732
|
+
.questionnaire-option-description {
|
|
11733
|
+
color: rgba(var(--ctp-subtext-rgb), 0.8);
|
|
11734
|
+
font-size: var(--text-sm);
|
|
11735
|
+
font-weight: 550;
|
|
11736
|
+
line-height: 1.35;
|
|
11737
|
+
overflow-wrap: anywhere;
|
|
11738
|
+
}
|
|
11739
|
+
.questionnaire-option-multi.is-selected {
|
|
11740
|
+
border-color: rgba(166, 227, 161, 0.7);
|
|
11741
|
+
background:
|
|
11742
|
+
linear-gradient(105deg, rgba(166, 227, 161, 0.18), rgba(148, 226, 213, 0.07) 48%, transparent),
|
|
11743
|
+
linear-gradient(180deg, rgba(var(--ctp-surface-rgb), 0.8), rgba(var(--ctp-mantle-rgb), 0.82));
|
|
11744
|
+
box-shadow: inset 0.22rem 0 0 var(--ctp-green), 0 0 1.1rem rgba(166, 227, 161, 0.13);
|
|
11745
|
+
}
|
|
11746
|
+
.questionnaire-option-multi.is-selected .questionnaire-option-number { color: var(--ctp-green); }
|
|
11747
|
+
.questionnaire-option-multi.is-selected .questionnaire-option-state {
|
|
11748
|
+
border-color: var(--ctp-green);
|
|
11749
|
+
background: linear-gradient(135deg, var(--ctp-green), var(--ctp-teal));
|
|
11750
|
+
box-shadow: 0 0 0.75rem rgba(166, 227, 161, 0.25);
|
|
11751
|
+
}
|
|
11752
|
+
.questionnaire-option:hover,
|
|
11753
|
+
.questionnaire-option:focus-visible {
|
|
11754
|
+
border-color: rgba(148, 226, 213, 0.75);
|
|
11755
|
+
box-shadow: 0 0 0 3px rgba(148, 226, 213, 0.14), 0 0 1rem rgba(148, 226, 213, 0.16);
|
|
11756
|
+
}
|
|
11757
|
+
.questionnaire-action {
|
|
11758
|
+
min-height: 3rem !important;
|
|
11759
|
+
padding: 0.62rem 0.78rem;
|
|
11760
|
+
font-size: var(--text-sm);
|
|
11761
|
+
font-weight: 800;
|
|
11762
|
+
line-height: 1.3;
|
|
11763
|
+
}
|
|
11764
|
+
.questionnaire-option + .questionnaire-action { margin-top: 0.42rem; }
|
|
11765
|
+
.questionnaire-action-other {
|
|
11766
|
+
color: var(--ctp-blue);
|
|
11767
|
+
border-color: rgba(137, 180, 250, 0.42);
|
|
11768
|
+
background: linear-gradient(120deg, rgba(137, 180, 250, 0.13), rgba(var(--ctp-crust-rgb), 0.66));
|
|
11769
|
+
}
|
|
11770
|
+
.questionnaire-action-clarify {
|
|
11771
|
+
color: var(--ctp-mauve);
|
|
11772
|
+
border-color: rgba(203, 166, 247, 0.4);
|
|
11773
|
+
background: linear-gradient(120deg, rgba(203, 166, 247, 0.12), rgba(var(--ctp-crust-rgb), 0.66));
|
|
11774
|
+
}
|
|
11775
|
+
.questionnaire-action-remove-other {
|
|
11776
|
+
color: var(--ctp-peach);
|
|
11777
|
+
border-color: rgba(250, 179, 135, 0.4);
|
|
11778
|
+
background: linear-gradient(120deg, rgba(250, 179, 135, 0.1), rgba(var(--ctp-crust-rgb), 0.68));
|
|
11779
|
+
}
|
|
11780
|
+
.questionnaire-action-continue {
|
|
11781
|
+
min-height: 3.35rem !important;
|
|
11782
|
+
text-align: center !important;
|
|
11783
|
+
}
|
|
11784
|
+
.questionnaire-action-cancel,
|
|
11785
|
+
.questionnaire-dialog-cancel {
|
|
11786
|
+
color: var(--ctp-red);
|
|
11787
|
+
border-color: rgba(243, 139, 168, 0.42);
|
|
11788
|
+
background: linear-gradient(120deg, rgba(243, 139, 168, 0.08), rgba(var(--ctp-crust-rgb), 0.74));
|
|
11789
|
+
box-shadow: none;
|
|
11790
|
+
}
|
|
11791
|
+
.questionnaire-action:focus-visible,
|
|
11792
|
+
.questionnaire-dialog-cancel:focus-visible {
|
|
11793
|
+
outline: 3px solid rgba(148, 226, 213, 0.7);
|
|
11794
|
+
outline-offset: 2px;
|
|
11795
|
+
border-color: var(--ctp-teal);
|
|
11796
|
+
}
|
|
11797
|
+
.questionnaire-dialog #dialogActions {
|
|
11798
|
+
margin-top: 0.78rem;
|
|
11799
|
+
padding-top: 0.68rem;
|
|
11800
|
+
border-top: 1px solid rgba(180, 190, 254, 0.14);
|
|
11801
|
+
}
|
|
11802
|
+
|
|
11516
11803
|
.git-pr-dialog {
|
|
11517
11804
|
width: min(64rem, calc(100vw - 1.5rem));
|
|
11518
11805
|
}
|
|
@@ -12371,6 +12658,7 @@ body.subagent-terminal-active .composer-remote-mic-consent {
|
|
|
12371
12658
|
.subagents-status {
|
|
12372
12659
|
line-height: 1.3;
|
|
12373
12660
|
}
|
|
12661
|
+
.subagents-auto-clear-button,
|
|
12374
12662
|
.subagents-clear-finished-button {
|
|
12375
12663
|
min-height: 1.9rem;
|
|
12376
12664
|
padding: 0.24rem 0.42rem;
|
|
@@ -13412,6 +13700,41 @@ button.git-workflow-step { min-height: 1.9rem; }
|
|
|
13412
13700
|
overflow: auto;
|
|
13413
13701
|
border-radius: 1rem 1rem 0 0;
|
|
13414
13702
|
}
|
|
13703
|
+
.extension-dialog.questionnaire-dialog {
|
|
13704
|
+
width: 100vw;
|
|
13705
|
+
max-height: calc(var(--visual-viewport-height, 100dvh) - 0.5rem - env(safe-area-inset-top));
|
|
13706
|
+
overflow: hidden;
|
|
13707
|
+
}
|
|
13708
|
+
.questionnaire-dialog form {
|
|
13709
|
+
max-height: calc(var(--visual-viewport-height, 100dvh) - 2.5rem - env(safe-area-inset-top));
|
|
13710
|
+
}
|
|
13711
|
+
.questionnaire-dialog #dialogTitle { font-size: 1.16rem; }
|
|
13712
|
+
.questionnaire-dialog #dialogMessage {
|
|
13713
|
+
margin: 0.55rem 0 0.68rem;
|
|
13714
|
+
padding: 0.58rem 0.64rem;
|
|
13715
|
+
}
|
|
13716
|
+
.questionnaire-dialog #dialogBody { padding-right: 0; }
|
|
13717
|
+
.questionnaire-options { gap: 0.48rem; }
|
|
13718
|
+
.questionnaire-options button { min-height: 3.35rem; }
|
|
13719
|
+
.questionnaire-option {
|
|
13720
|
+
gap: 0.5rem;
|
|
13721
|
+
padding: 0.58rem 0.56rem;
|
|
13722
|
+
}
|
|
13723
|
+
.questionnaire-option-single { grid-template-columns: 2.15rem minmax(0, 1fr); }
|
|
13724
|
+
.questionnaire-option-multi { grid-template-columns: 2.15rem 1.8rem minmax(0, 1fr); }
|
|
13725
|
+
.questionnaire-option-state {
|
|
13726
|
+
width: 1.55rem;
|
|
13727
|
+
height: 1.55rem;
|
|
13728
|
+
}
|
|
13729
|
+
.questionnaire-option-description { font-size: var(--text-xs); }
|
|
13730
|
+
.questionnaire-dialog #dialogActions {
|
|
13731
|
+
position: static;
|
|
13732
|
+
display: grid;
|
|
13733
|
+
grid-template-columns: minmax(0, 1fr);
|
|
13734
|
+
padding-bottom: calc(0.15rem + env(safe-area-inset-bottom));
|
|
13735
|
+
background: transparent;
|
|
13736
|
+
}
|
|
13737
|
+
.questionnaire-dialog #dialogActions button { width: 100%; }
|
|
13415
13738
|
.extension-dialog.stats-overlay-dialog {
|
|
13416
13739
|
inset: calc(0.5rem + env(safe-area-inset-top)) 0 0 0;
|
|
13417
13740
|
width: 100vw;
|
|
@@ -65,7 +65,7 @@ function makeEnvironment({
|
|
|
65
65
|
reload: new FakeElement(),
|
|
66
66
|
copyStatus: new FakeElement(),
|
|
67
67
|
};
|
|
68
|
-
const styleLink = new FakeElement({ href: "http://127.0.0.1:31415/styles.css?v=
|
|
68
|
+
const styleLink = new FakeElement({ href: "http://127.0.0.1:31415/styles.css?v=98", sheet: stylesheetLoaded ? {} : null });
|
|
69
69
|
const listeners = new Map();
|
|
70
70
|
const timers = new Map();
|
|
71
71
|
let timerId = 0;
|
|
@@ -84,7 +84,7 @@ function makeEnvironment({
|
|
|
84
84
|
removeEventListener(name) { listeners.delete(name); },
|
|
85
85
|
};
|
|
86
86
|
const document = {
|
|
87
|
-
currentScript: new FakeElement({ dataset: { appSrc: "/app.js?v=
|
|
87
|
+
currentScript: new FakeElement({ dataset: { appSrc: "/app.js?v=112" } }),
|
|
88
88
|
readyState: "complete",
|
|
89
89
|
querySelector(selector) {
|
|
90
90
|
return {
|
|
@@ -232,7 +232,7 @@ for (const moduleName of startupModuleNames) {
|
|
|
232
232
|
assert.ok(serviceWorker.includes(`"/${moduleName}"`), `the PWA app shell should include every app.js startup module: ${moduleName}`);
|
|
233
233
|
}
|
|
234
234
|
assert.match(serviceWorker, /pi-webui-pwa-v\d+/, "the app-shell cache should retain a versioned identity");
|
|
235
|
-
assert.ok(html.indexOf('id="webuiBootLoader"') < html.indexOf("/app.js?v=
|
|
235
|
+
assert.ok(html.indexOf('id="webuiBootLoader"') < html.indexOf("/app.js?v=112"), "the inline loader should own app module startup");
|
|
236
236
|
assert.doesNotMatch(html, /<script type="module" src="\/app\.js/, "the app module should not bypass the guarded loader");
|
|
237
237
|
|
|
238
238
|
console.log("boot-failure-diagnostics.test.mjs passed");
|