@firstpick/pi-package-webui 0.8.6 → 0.8.7
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 +18 -606
- package/bin/pi-webui-launcher.mjs +22 -0
- package/bin/pi-webui-update-supervisor.mjs +86 -0
- package/bin/pi-webui.mjs +558 -524
- package/index.ts +8 -5
- package/lib/component-update-state.mjs +21 -0
- package/lib/git-workflow-preferences.mjs +17 -2
- package/lib/optional-feature-catalog.mjs +1 -0
- package/lib/sampling-parameter-capabilities.mjs +160 -0
- package/lib/session-summary-preferences.mjs +16 -1
- package/lib/subagent-launch-slots.mjs +14 -2
- package/lib/trust-boundaries.mjs +3 -0
- package/lib/update/executor.mjs +99 -0
- package/lib/update/journal.mjs +175 -0
- package/lib/update/owners.mjs +70 -0
- package/lib/update/plan.mjs +134 -0
- package/lib/update/resolver.mjs +168 -0
- package/lib/update/supervisor.mjs +238 -0
- package/lib/update/verify.mjs +52 -0
- package/lib/update-commands.mjs +25 -13
- package/lib/webui-workspaces.mjs +17 -1
- package/package.json +4 -4
- package/public/app.js +1290 -82
- package/public/index.html +124 -48
- package/public/middle-button-drag-scroll.mjs +154 -0
- package/public/sampling-parameter-controls.mjs +361 -0
- package/public/service-worker.js +3 -1
- package/public/styles.css +417 -1
- package/tests/boot-failure-diagnostics.test.mjs +3 -3
- package/tests/browser/control-deck-component-updates.spec.mjs +20 -22
- package/tests/browser/middle-button-drag-scroll.spec.mjs +145 -0
- package/tests/browser/persistent-ui-layout.spec.mjs +68 -23
- package/tests/browser/sampling-tooltip.spec.mjs +228 -0
- package/tests/browser/update-reconnect.spec.mjs +92 -0
- package/tests/codex-fast-mode-static.test.mjs +2 -2
- package/tests/common-options-submenus-interaction-static.test.mjs +172 -0
- package/tests/common-options-submenus-markup-static.test.mjs +152 -0
- package/tests/component-update-api-static.test.mjs +22 -61
- package/tests/composer-action-grid-reorder-static.test.mjs +3 -3
- package/tests/control-deck-component-updates-static.test.mjs +13 -237
- package/tests/durable-rpc-supervisor-harness.test.mjs +3 -1
- package/tests/fast-mode-client-static.test.mjs +1 -1
- package/tests/feature-decision-output-popup-static.test.mjs +2 -2
- package/tests/feature-system-prompt-optional-feature-static.test.mjs +49 -0
- package/tests/fixtures/fake-pi.mjs +66 -0
- package/tests/fixtures/update/tree-timeout-descendant.mjs +6 -0
- package/tests/fixtures/update/tree-timeout-parent.mjs +11 -0
- package/tests/git-footer-context-menu-static.test.mjs +58 -0
- package/tests/http-endpoints-harness.test.mjs +68 -18
- package/tests/middle-button-drag-scroll-static.test.mjs +24 -0
- package/tests/middle-button-drag-scroll.test.mjs +170 -0
- package/tests/mobile-continuity-tablet-static.test.mjs +3 -3
- package/tests/mobile-foundation-static.test.mjs +4 -4
- package/tests/mobile-phone-experience-static.test.mjs +1 -1
- package/tests/mobile-static.test.mjs +23 -21
- package/tests/open-issue-wizard-static.test.mjs +1 -1
- package/tests/optional-feature-migration-frontend.test.mjs +9 -5
- package/tests/persistent-ui-layout-static.test.mjs +13 -2
- package/tests/questionnaire-dialog.test.mjs +3 -3
- package/tests/remote-auth-settings-harness.test.mjs +34 -0
- package/tests/rpc-supervisor-host.test.mjs +11 -2
- package/tests/safety-guard-auto-review-harness.test.mjs +117 -0
- package/tests/safety-guard-auto-review-static.test.mjs +34 -0
- package/tests/sampling-native-controls-user-flow.test.mjs +752 -0
- package/tests/sampling-parameter-capabilities.test.mjs +167 -0
- package/tests/sampling-parameter-controls.test.mjs +241 -0
- package/tests/session-sampling-helper.test.mjs +228 -0
- package/tests/session-sampling-http.test.mjs +168 -0
- package/tests/session-sampling-ui-static.test.mjs +370 -0
- package/tests/session-summary-core.test.mjs +24 -11
- package/tests/side-panel-section-height-removal-static.test.mjs +34 -0
- package/tests/side-panel-section-reorder-static.test.mjs +3 -3
- package/tests/staged-content-hash-contract.test.mjs +52 -11
- package/tests/subagent-launch-slots.test.mjs +18 -1
- package/tests/theme-customizer-static.test.mjs +1 -1
- package/tests/ui-layout-settings.test.mjs +18 -1
- package/tests/update-api-harness.test.mjs +111 -0
- package/tests/update-commands.test.mjs +15 -45
- package/tests/update-executor-process-tree-harness.test.mjs +22 -0
- package/tests/update-journal-harness.test.mjs +59 -0
- package/tests/update-lock-multiprocess-harness.test.mjs +46 -0
- package/tests/update-owners.test.mjs +27 -0
- package/tests/update-plan.test.mjs +58 -0
- package/tests/update-resolver.test.mjs +56 -0
- package/tests/update-supervisor-harness.test.mjs +57 -0
- package/tests/update-tab-restore-harness.test.mjs +24 -0
- package/tests/update-verify.test.mjs +31 -0
- package/tests/workspace-files-live-updates-static.test.mjs +13 -4
- package/webui-rpc-helper.mjs +119 -0
package/public/styles.css
CHANGED
|
@@ -86,6 +86,11 @@
|
|
|
86
86
|
|
|
87
87
|
* { box-sizing: border-box; }
|
|
88
88
|
html, body { height: 100%; min-height: 100%; }
|
|
89
|
+
body.middle-button-auto-scrolling,
|
|
90
|
+
body.middle-button-auto-scrolling * {
|
|
91
|
+
cursor: all-scroll !important;
|
|
92
|
+
user-select: none !important;
|
|
93
|
+
}
|
|
89
94
|
html {
|
|
90
95
|
overflow: hidden;
|
|
91
96
|
scrollbar-gutter: auto;
|
|
@@ -1383,6 +1388,7 @@ body.embedded-split .side-panel-backdrop {
|
|
|
1383
1388
|
}
|
|
1384
1389
|
.side-panel-section-content {
|
|
1385
1390
|
min-width: 0;
|
|
1391
|
+
min-height: 0;
|
|
1386
1392
|
}
|
|
1387
1393
|
.side-panel-section.collapsed .side-panel-section-content,
|
|
1388
1394
|
.side-panel-section-content[hidden] {
|
|
@@ -2701,6 +2707,235 @@ body.embedded-split .side-panel-backdrop {
|
|
|
2701
2707
|
.subagents-help code {
|
|
2702
2708
|
color: var(--ctp-teal);
|
|
2703
2709
|
}
|
|
2710
|
+
.sampling-parameters {
|
|
2711
|
+
container: sampling-parameters / inline-size;
|
|
2712
|
+
display: grid;
|
|
2713
|
+
gap: 0.5rem;
|
|
2714
|
+
min-width: 0;
|
|
2715
|
+
padding: 0.55rem;
|
|
2716
|
+
border: 1px solid rgba(180, 190, 254, 0.16);
|
|
2717
|
+
border-radius: 0.6rem;
|
|
2718
|
+
background: rgba(var(--ctp-crust-rgb), 0.3);
|
|
2719
|
+
}
|
|
2720
|
+
.sampling-parameters-intro,
|
|
2721
|
+
.sampling-parameters-support,
|
|
2722
|
+
.sampling-parameters-preserved,
|
|
2723
|
+
.sampling-parameters-status {
|
|
2724
|
+
margin: 0;
|
|
2725
|
+
color: rgba(var(--ctp-subtext-rgb), 0.78);
|
|
2726
|
+
font-size: var(--text-xs);
|
|
2727
|
+
line-height: 1.35;
|
|
2728
|
+
}
|
|
2729
|
+
.sampling-parameters-support.warning,
|
|
2730
|
+
.sampling-parameters-status.warning {
|
|
2731
|
+
color: var(--ctp-peach);
|
|
2732
|
+
}
|
|
2733
|
+
.sampling-parameters-status.error {
|
|
2734
|
+
color: var(--ctp-red);
|
|
2735
|
+
}
|
|
2736
|
+
.sampling-parameter-groups,
|
|
2737
|
+
.sampling-parameter-group {
|
|
2738
|
+
display: grid;
|
|
2739
|
+
gap: 0.45rem;
|
|
2740
|
+
min-width: 0;
|
|
2741
|
+
}
|
|
2742
|
+
.sampling-parameter-group + .sampling-parameter-group {
|
|
2743
|
+
margin-top: 0.2rem;
|
|
2744
|
+
padding-top: 0.5rem;
|
|
2745
|
+
border-top: 1px solid rgba(180, 190, 254, 0.14);
|
|
2746
|
+
}
|
|
2747
|
+
.sampling-parameter-group > h3 {
|
|
2748
|
+
margin: 0;
|
|
2749
|
+
color: rgba(var(--ctp-text-rgb), 0.82);
|
|
2750
|
+
font-size: var(--text-xs);
|
|
2751
|
+
letter-spacing: 0.025em;
|
|
2752
|
+
}
|
|
2753
|
+
.sampling-parameter-control {
|
|
2754
|
+
position: relative;
|
|
2755
|
+
display: grid;
|
|
2756
|
+
gap: 0.35rem;
|
|
2757
|
+
min-width: 0;
|
|
2758
|
+
padding: 0.5rem;
|
|
2759
|
+
border: 1px solid rgba(180, 190, 254, 0.16);
|
|
2760
|
+
border-radius: 0.5rem;
|
|
2761
|
+
background: rgba(var(--ctp-base-rgb), 0.28);
|
|
2762
|
+
}
|
|
2763
|
+
.sampling-parameter-control.enabled {
|
|
2764
|
+
border-color: rgba(137, 180, 250, 0.42);
|
|
2765
|
+
background: rgba(137, 180, 250, 0.07);
|
|
2766
|
+
}
|
|
2767
|
+
.sampling-parameter-control.invalid {
|
|
2768
|
+
border-color: rgba(243, 139, 168, 0.64);
|
|
2769
|
+
}
|
|
2770
|
+
.sampling-parameter-control.unsupported {
|
|
2771
|
+
border-color: rgba(var(--ctp-subtext-rgb), 0.16);
|
|
2772
|
+
background: rgba(var(--ctp-mantle-rgb), 0.38);
|
|
2773
|
+
cursor: help;
|
|
2774
|
+
}
|
|
2775
|
+
.sampling-parameter-control.unsupported:focus-visible {
|
|
2776
|
+
outline: 2px solid var(--ctp-peach);
|
|
2777
|
+
outline-offset: 2px;
|
|
2778
|
+
}
|
|
2779
|
+
.sampling-parameter-control.unsupported .sampling-parameter-control-header,
|
|
2780
|
+
.sampling-parameter-control.unsupported .sampling-parameter-editor {
|
|
2781
|
+
opacity: 0.68;
|
|
2782
|
+
}
|
|
2783
|
+
.sampling-parameter-control-header {
|
|
2784
|
+
display: grid;
|
|
2785
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
2786
|
+
gap: 0.4rem;
|
|
2787
|
+
align-items: center;
|
|
2788
|
+
}
|
|
2789
|
+
.sampling-parameter-control-header input[type="checkbox"] {
|
|
2790
|
+
width: 1rem;
|
|
2791
|
+
height: 1rem;
|
|
2792
|
+
margin: 0;
|
|
2793
|
+
accent-color: var(--ctp-blue);
|
|
2794
|
+
}
|
|
2795
|
+
.sampling-parameter-control-header label {
|
|
2796
|
+
min-width: 0;
|
|
2797
|
+
color: rgba(var(--ctp-text-rgb), 0.9);
|
|
2798
|
+
font-size: var(--text-xs);
|
|
2799
|
+
font-weight: 850;
|
|
2800
|
+
}
|
|
2801
|
+
.sampling-parameter-scope {
|
|
2802
|
+
padding: 0.08rem 0.32rem;
|
|
2803
|
+
border: 1px solid rgba(180, 190, 254, 0.2);
|
|
2804
|
+
border-radius: 999px;
|
|
2805
|
+
color: rgba(var(--ctp-subtext-rgb), 0.78);
|
|
2806
|
+
font-size: var(--text-xs);
|
|
2807
|
+
line-height: 1.25;
|
|
2808
|
+
text-align: right;
|
|
2809
|
+
}
|
|
2810
|
+
.sampling-parameter-description,
|
|
2811
|
+
.sampling-parameter-error {
|
|
2812
|
+
margin: 0;
|
|
2813
|
+
color: rgba(var(--ctp-subtext-rgb), 0.72);
|
|
2814
|
+
font-size: var(--text-xs);
|
|
2815
|
+
line-height: 1.35;
|
|
2816
|
+
}
|
|
2817
|
+
.sampling-parameter-error {
|
|
2818
|
+
color: var(--ctp-red);
|
|
2819
|
+
}
|
|
2820
|
+
.sampling-parameter-unsupported-tooltip {
|
|
2821
|
+
position: absolute;
|
|
2822
|
+
z-index: 20;
|
|
2823
|
+
inset: auto 0.5rem calc(100% - 0.15rem);
|
|
2824
|
+
width: 1px;
|
|
2825
|
+
height: 1px;
|
|
2826
|
+
margin: 0;
|
|
2827
|
+
padding: 0;
|
|
2828
|
+
overflow: hidden;
|
|
2829
|
+
clip-path: inset(50%);
|
|
2830
|
+
color: var(--ctp-base);
|
|
2831
|
+
background: var(--ctp-text);
|
|
2832
|
+
border-radius: 0.38rem;
|
|
2833
|
+
font-size: var(--text-xs);
|
|
2834
|
+
font-weight: 700;
|
|
2835
|
+
line-height: 1.35;
|
|
2836
|
+
pointer-events: none;
|
|
2837
|
+
white-space: normal;
|
|
2838
|
+
}
|
|
2839
|
+
.sampling-parameter-unsupported-tooltip[hidden] {
|
|
2840
|
+
display: none;
|
|
2841
|
+
}
|
|
2842
|
+
.sampling-parameter-unsupported-tooltip.sampling-tooltip-below {
|
|
2843
|
+
inset: calc(100% - 0.15rem) 0.5rem auto;
|
|
2844
|
+
}
|
|
2845
|
+
.sampling-parameter-control.unsupported:hover:not(.sampling-tooltip-dismissed) > .sampling-parameter-unsupported-tooltip,
|
|
2846
|
+
.sampling-parameter-control.unsupported:focus-visible:not(.sampling-tooltip-dismissed) > .sampling-parameter-unsupported-tooltip,
|
|
2847
|
+
.sampling-parameter-control.unsupported:focus-within:not(.sampling-tooltip-dismissed) > .sampling-parameter-unsupported-tooltip {
|
|
2848
|
+
width: auto;
|
|
2849
|
+
height: auto;
|
|
2850
|
+
max-height: var(--sampling-tooltip-max-height, none);
|
|
2851
|
+
padding: 0.42rem 0.5rem;
|
|
2852
|
+
overflow: auto;
|
|
2853
|
+
clip-path: none;
|
|
2854
|
+
box-shadow: 0 0.3rem 1rem rgba(var(--ctp-crust-rgb), 0.42);
|
|
2855
|
+
pointer-events: auto;
|
|
2856
|
+
}
|
|
2857
|
+
.sampling-parameter-editor {
|
|
2858
|
+
display: grid;
|
|
2859
|
+
grid-template-columns: minmax(5rem, 0.36fr) minmax(7rem, 1fr);
|
|
2860
|
+
gap: 0.5rem;
|
|
2861
|
+
align-items: center;
|
|
2862
|
+
min-width: 0;
|
|
2863
|
+
}
|
|
2864
|
+
.sampling-parameter-number {
|
|
2865
|
+
width: 100%;
|
|
2866
|
+
min-width: 0;
|
|
2867
|
+
padding: 0.34rem 0.42rem;
|
|
2868
|
+
border: 1px solid rgba(180, 190, 254, 0.24);
|
|
2869
|
+
border-radius: 0.4rem;
|
|
2870
|
+
color: var(--ctp-text);
|
|
2871
|
+
background: rgba(var(--ctp-base-rgb), 0.5);
|
|
2872
|
+
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
|
|
2873
|
+
font-size: var(--text-xs);
|
|
2874
|
+
}
|
|
2875
|
+
.sampling-parameter-number:focus-visible,
|
|
2876
|
+
.sampling-parameter-range:focus-visible,
|
|
2877
|
+
.sampling-parameter-control-header input:focus-visible {
|
|
2878
|
+
outline: 2px solid var(--ctp-blue);
|
|
2879
|
+
outline-offset: 2px;
|
|
2880
|
+
}
|
|
2881
|
+
.sampling-parameter-number[aria-invalid="true"] {
|
|
2882
|
+
border-color: rgba(243, 139, 168, 0.76);
|
|
2883
|
+
}
|
|
2884
|
+
.sampling-parameter-range {
|
|
2885
|
+
width: 100%;
|
|
2886
|
+
min-width: 0;
|
|
2887
|
+
accent-color: var(--ctp-blue);
|
|
2888
|
+
}
|
|
2889
|
+
.sampling-parameter-number:disabled,
|
|
2890
|
+
.sampling-parameter-range:disabled {
|
|
2891
|
+
opacity: 0.55;
|
|
2892
|
+
}
|
|
2893
|
+
.sampling-parameter-context {
|
|
2894
|
+
display: grid;
|
|
2895
|
+
grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
|
|
2896
|
+
gap: 0.18rem 0.35rem;
|
|
2897
|
+
align-items: baseline;
|
|
2898
|
+
margin: 0;
|
|
2899
|
+
min-width: 0;
|
|
2900
|
+
font-size: var(--text-xs);
|
|
2901
|
+
}
|
|
2902
|
+
.sampling-parameter-context dt {
|
|
2903
|
+
color: rgba(var(--ctp-subtext-rgb), 0.64);
|
|
2904
|
+
font-weight: 750;
|
|
2905
|
+
}
|
|
2906
|
+
.sampling-parameter-context dd {
|
|
2907
|
+
min-width: 0;
|
|
2908
|
+
margin: 0;
|
|
2909
|
+
overflow: hidden;
|
|
2910
|
+
color: rgba(var(--ctp-text-rgb), 0.78);
|
|
2911
|
+
text-overflow: ellipsis;
|
|
2912
|
+
white-space: nowrap;
|
|
2913
|
+
}
|
|
2914
|
+
.sampling-parameters-preserved {
|
|
2915
|
+
padding: 0.3rem 0.4rem;
|
|
2916
|
+
border-left: 2px solid rgba(148, 226, 213, 0.55);
|
|
2917
|
+
background: rgba(148, 226, 213, 0.06);
|
|
2918
|
+
}
|
|
2919
|
+
.sampling-parameters-actions {
|
|
2920
|
+
display: flex;
|
|
2921
|
+
flex-wrap: wrap;
|
|
2922
|
+
gap: 0.35rem;
|
|
2923
|
+
min-width: 0;
|
|
2924
|
+
}
|
|
2925
|
+
@container sampling-parameters (max-width: 22rem) {
|
|
2926
|
+
.sampling-parameter-control-header {
|
|
2927
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
2928
|
+
}
|
|
2929
|
+
.sampling-parameter-scope {
|
|
2930
|
+
grid-column: 2;
|
|
2931
|
+
justify-self: start;
|
|
2932
|
+
text-align: left;
|
|
2933
|
+
}
|
|
2934
|
+
.sampling-parameter-editor,
|
|
2935
|
+
.sampling-parameter-context {
|
|
2936
|
+
grid-template-columns: minmax(0, 1fr);
|
|
2937
|
+
}
|
|
2938
|
+
}
|
|
2704
2939
|
.subagent-launch-slots {
|
|
2705
2940
|
display: block;
|
|
2706
2941
|
container: subagent-launch-slots / inline-size;
|
|
@@ -9622,12 +9857,24 @@ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-
|
|
|
9622
9857
|
color: rgba(17, 17, 27, 0.74);
|
|
9623
9858
|
}
|
|
9624
9859
|
.composer-options-menu-item {
|
|
9860
|
+
box-sizing: border-box;
|
|
9861
|
+
width: 100%;
|
|
9862
|
+
min-width: 0;
|
|
9863
|
+
max-width: 100%;
|
|
9864
|
+
padding-inline: 0.78rem;
|
|
9625
9865
|
color: var(--ctp-sky);
|
|
9626
9866
|
border-color: rgba(137, 220, 235, 0.32);
|
|
9627
9867
|
background:
|
|
9628
9868
|
linear-gradient(120deg, rgba(137, 220, 235, 0.12), rgba(166, 227, 161, 0.08)),
|
|
9629
9869
|
var(--ctp-crust);
|
|
9630
9870
|
}
|
|
9871
|
+
.composer-options-menu-item > span:not([aria-hidden="true"]):not(.composer-options-submenu-chevron) {
|
|
9872
|
+
flex: 1 1 auto;
|
|
9873
|
+
min-width: 0;
|
|
9874
|
+
max-width: 100%;
|
|
9875
|
+
font-size: var(--options-menu-label-font-size, inherit);
|
|
9876
|
+
white-space: nowrap;
|
|
9877
|
+
}
|
|
9631
9878
|
.composer-options-menu-item:hover,
|
|
9632
9879
|
.composer-options-menu-item:focus-visible {
|
|
9633
9880
|
color: #11111b;
|
|
@@ -9635,6 +9882,101 @@ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-
|
|
|
9635
9882
|
background: linear-gradient(120deg, var(--ctp-sky), var(--ctp-teal));
|
|
9636
9883
|
box-shadow: 0 0 1rem rgba(137, 220, 235, 0.20);
|
|
9637
9884
|
}
|
|
9885
|
+
.composer-options-menu-panel {
|
|
9886
|
+
--composer-options-selection-width: min(13.5rem, calc(100vw - 2rem));
|
|
9887
|
+
box-sizing: border-box;
|
|
9888
|
+
width: var(--composer-options-selection-width);
|
|
9889
|
+
min-width: var(--composer-options-selection-width);
|
|
9890
|
+
max-width: var(--composer-options-selection-width);
|
|
9891
|
+
}
|
|
9892
|
+
.composer-options-submenu {
|
|
9893
|
+
position: relative;
|
|
9894
|
+
display: flex;
|
|
9895
|
+
width: 100%;
|
|
9896
|
+
}
|
|
9897
|
+
.composer-options-submenu[hidden] {
|
|
9898
|
+
display: none;
|
|
9899
|
+
}
|
|
9900
|
+
.composer-options-submenu-trigger {
|
|
9901
|
+
justify-content: space-between;
|
|
9902
|
+
gap: 0.75rem;
|
|
9903
|
+
width: 100%;
|
|
9904
|
+
max-width: none;
|
|
9905
|
+
text-align: left;
|
|
9906
|
+
}
|
|
9907
|
+
.composer-options-submenu-chevron {
|
|
9908
|
+
flex: 0 0 auto;
|
|
9909
|
+
font-size: 1.15em;
|
|
9910
|
+
line-height: 1;
|
|
9911
|
+
transition: transform 120ms ease;
|
|
9912
|
+
}
|
|
9913
|
+
.composer-options-submenu-panel {
|
|
9914
|
+
position: absolute;
|
|
9915
|
+
z-index: 102;
|
|
9916
|
+
inset: 0 auto auto calc(100% + 0.3rem);
|
|
9917
|
+
display: none;
|
|
9918
|
+
flex-direction: column;
|
|
9919
|
+
align-items: stretch;
|
|
9920
|
+
gap: 0.38rem;
|
|
9921
|
+
box-sizing: border-box;
|
|
9922
|
+
width: 100%;
|
|
9923
|
+
min-width: 100%;
|
|
9924
|
+
max-width: 100%;
|
|
9925
|
+
max-height: min(60vh, 24rem);
|
|
9926
|
+
padding: 0;
|
|
9927
|
+
overflow-x: hidden;
|
|
9928
|
+
overflow-y: auto;
|
|
9929
|
+
overscroll-behavior: contain;
|
|
9930
|
+
-webkit-overflow-scrolling: touch;
|
|
9931
|
+
scrollbar-width: thin;
|
|
9932
|
+
}
|
|
9933
|
+
.composer-options-submenu.open > .composer-options-submenu-panel,
|
|
9934
|
+
.composer-options-submenu.is-open > .composer-options-submenu-panel,
|
|
9935
|
+
.composer-options-submenu-trigger[aria-expanded="true"] + .composer-options-submenu-panel {
|
|
9936
|
+
display: flex;
|
|
9937
|
+
}
|
|
9938
|
+
.composer-options-submenu.opens-left > .composer-options-submenu-panel,
|
|
9939
|
+
.composer-options-submenu-panel.opens-left {
|
|
9940
|
+
inset-inline: auto calc(100% + 0.3rem);
|
|
9941
|
+
}
|
|
9942
|
+
.composer-options-submenu::after {
|
|
9943
|
+
content: "";
|
|
9944
|
+
position: absolute;
|
|
9945
|
+
z-index: 101;
|
|
9946
|
+
inset: 0 -0.3rem 0 auto;
|
|
9947
|
+
display: none;
|
|
9948
|
+
width: 0.3rem;
|
|
9949
|
+
}
|
|
9950
|
+
.composer-options-submenu.opens-left::after {
|
|
9951
|
+
inset-inline: -0.3rem auto;
|
|
9952
|
+
}
|
|
9953
|
+
.composer-options-submenu.open::after,
|
|
9954
|
+
.composer-options-submenu.is-open::after,
|
|
9955
|
+
.composer-options-submenu:focus-within::after {
|
|
9956
|
+
display: block;
|
|
9957
|
+
}
|
|
9958
|
+
.composer-options-submenu-back {
|
|
9959
|
+
display: none;
|
|
9960
|
+
}
|
|
9961
|
+
@media (hover: hover) and (pointer: fine) {
|
|
9962
|
+
.composer-options-submenu:hover > .composer-options-submenu-panel,
|
|
9963
|
+
.composer-options-submenu:focus-within > .composer-options-submenu-panel {
|
|
9964
|
+
display: flex;
|
|
9965
|
+
}
|
|
9966
|
+
.composer-options-submenu:hover::after {
|
|
9967
|
+
display: block;
|
|
9968
|
+
}
|
|
9969
|
+
}
|
|
9970
|
+
.composer-options-submenu.open > .composer-options-submenu-trigger .composer-options-submenu-chevron,
|
|
9971
|
+
.composer-options-submenu.is-open > .composer-options-submenu-trigger .composer-options-submenu-chevron,
|
|
9972
|
+
.composer-options-submenu-trigger[aria-expanded="true"] .composer-options-submenu-chevron {
|
|
9973
|
+
transform: translateX(0.12rem);
|
|
9974
|
+
}
|
|
9975
|
+
.composer-options-submenu-panel > .composer-options-menu-item {
|
|
9976
|
+
width: 100%;
|
|
9977
|
+
min-width: 100%;
|
|
9978
|
+
max-width: none;
|
|
9979
|
+
}
|
|
9638
9980
|
.composer button[data-tooltip] {
|
|
9639
9981
|
position: relative;
|
|
9640
9982
|
}
|
|
@@ -13347,7 +13689,11 @@ button.git-workflow-step { min-height: 1.9rem; }
|
|
|
13347
13689
|
}
|
|
13348
13690
|
.file-viewer-resize-handle,
|
|
13349
13691
|
.side-panel-resize-handle {
|
|
13350
|
-
display: none;
|
|
13692
|
+
display: none !important;
|
|
13693
|
+
}
|
|
13694
|
+
.side-panel-section-content {
|
|
13695
|
+
height: auto !important;
|
|
13696
|
+
overflow: visible !important;
|
|
13351
13697
|
}
|
|
13352
13698
|
.chat { flex-basis: 0; }
|
|
13353
13699
|
body:not(.side-panel-collapsed) { overflow: hidden; }
|
|
@@ -14103,6 +14449,74 @@ button.git-workflow-step { min-height: 1.9rem; }
|
|
|
14103
14449
|
flex: 1 1 auto;
|
|
14104
14450
|
white-space: normal;
|
|
14105
14451
|
}
|
|
14452
|
+
.composer-actions-panel > .composer-options-menu .composer-options-menu-panel.composer-auto-height-menu-panel {
|
|
14453
|
+
position: absolute;
|
|
14454
|
+
height: auto;
|
|
14455
|
+
max-height: min(var(--mobile-dropdown-max-height, 34dvh), calc(var(--visual-viewport-height, 100dvh) - 2rem));
|
|
14456
|
+
overflow-x: hidden;
|
|
14457
|
+
overflow-y: auto;
|
|
14458
|
+
overscroll-behavior: contain;
|
|
14459
|
+
-webkit-overflow-scrolling: touch;
|
|
14460
|
+
}
|
|
14461
|
+
.composer-options-menu-panel.submenu-open,
|
|
14462
|
+
.composer-options-menu-panel.has-open-submenu,
|
|
14463
|
+
.composer-options-menu-panel:has(.composer-options-submenu-trigger[aria-expanded="true"]) {
|
|
14464
|
+
overflow: hidden;
|
|
14465
|
+
}
|
|
14466
|
+
.composer-options-submenu {
|
|
14467
|
+
position: static;
|
|
14468
|
+
}
|
|
14469
|
+
.composer-options-submenu::after {
|
|
14470
|
+
display: none !important;
|
|
14471
|
+
}
|
|
14472
|
+
.composer-options-submenu-panel,
|
|
14473
|
+
.composer-options-submenu.opens-left > .composer-options-submenu-panel,
|
|
14474
|
+
.composer-options-submenu-panel.opens-left {
|
|
14475
|
+
position: absolute;
|
|
14476
|
+
z-index: 104;
|
|
14477
|
+
inset: 0;
|
|
14478
|
+
box-sizing: border-box;
|
|
14479
|
+
width: 100%;
|
|
14480
|
+
min-width: 0;
|
|
14481
|
+
max-width: 100%;
|
|
14482
|
+
max-height: 100%;
|
|
14483
|
+
padding: 0;
|
|
14484
|
+
overflow-x: hidden;
|
|
14485
|
+
overflow-y: auto;
|
|
14486
|
+
overscroll-behavior: contain;
|
|
14487
|
+
background: var(--ctp-crust);
|
|
14488
|
+
-webkit-overflow-scrolling: touch;
|
|
14489
|
+
}
|
|
14490
|
+
.composer-options-submenu:hover > .composer-options-submenu-panel,
|
|
14491
|
+
.composer-options-submenu:focus-within > .composer-options-submenu-panel {
|
|
14492
|
+
display: none;
|
|
14493
|
+
}
|
|
14494
|
+
.composer-options-submenu.open > .composer-options-submenu-panel,
|
|
14495
|
+
.composer-options-submenu.is-open > .composer-options-submenu-panel,
|
|
14496
|
+
.composer-options-submenu-trigger[aria-expanded="true"] + .composer-options-submenu-panel {
|
|
14497
|
+
display: flex;
|
|
14498
|
+
}
|
|
14499
|
+
.composer-options-submenu-trigger,
|
|
14500
|
+
.composer-options-submenu-panel > .composer-options-menu-item {
|
|
14501
|
+
min-height: 44px;
|
|
14502
|
+
}
|
|
14503
|
+
.composer-options-submenu-back {
|
|
14504
|
+
position: sticky;
|
|
14505
|
+
z-index: 1;
|
|
14506
|
+
top: 0;
|
|
14507
|
+
display: inline-flex;
|
|
14508
|
+
justify-content: flex-start;
|
|
14509
|
+
gap: 0.5rem;
|
|
14510
|
+
background: var(--ctp-crust);
|
|
14511
|
+
}
|
|
14512
|
+
.composer-options-submenu-chevron {
|
|
14513
|
+
transform: rotate(90deg);
|
|
14514
|
+
}
|
|
14515
|
+
.composer-options-submenu.open > .composer-options-submenu-trigger .composer-options-submenu-chevron,
|
|
14516
|
+
.composer-options-submenu.is-open > .composer-options-submenu-trigger .composer-options-submenu-chevron,
|
|
14517
|
+
.composer-options-submenu-trigger[aria-expanded="true"] .composer-options-submenu-chevron {
|
|
14518
|
+
transform: rotate(90deg) translateX(0.12rem);
|
|
14519
|
+
}
|
|
14106
14520
|
.command-suggest {
|
|
14107
14521
|
max-height: 35dvh;
|
|
14108
14522
|
font-size: 0.86rem;
|
|
@@ -16274,6 +16688,8 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
|
|
|
16274
16688
|
}
|
|
16275
16689
|
html[data-mobile-shell="v2"] .mobile-canonical-host > .side-panel-section-content {
|
|
16276
16690
|
display: block !important;
|
|
16691
|
+
height: auto !important;
|
|
16692
|
+
overflow: visible !important;
|
|
16277
16693
|
padding: 0.35rem 0;
|
|
16278
16694
|
overflow: visible;
|
|
16279
16695
|
border: 0;
|
|
@@ -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=104", 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=120" } }),
|
|
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=120"), "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");
|
|
@@ -86,26 +86,21 @@ test("component tags and dialogs expose safe background update lifecycle", async
|
|
|
86
86
|
await route.fulfill({
|
|
87
87
|
status: 200,
|
|
88
88
|
contentType: "application/json",
|
|
89
|
-
body: JSON.stringify({ ok: true, data: { version: "0.
|
|
89
|
+
body: JSON.stringify({ ok: true, data: { version: "0.84.0", body: "Fixture v0.84.0 release notes", url: "https://example.test/pi/v0.84.0" } }),
|
|
90
90
|
});
|
|
91
91
|
});
|
|
92
|
-
|
|
92
|
+
const plan = { transactionId: "browser-pi-plan", digest: "a".repeat(64), targets: [{ id: "pi", currentVersion: "0.83.0", targetVersion: "0.84.0" }], refusals: [] };
|
|
93
|
+
await page.route("**/api/update/plan", async (route) => {
|
|
93
94
|
const body = route.request().postDataJSON();
|
|
94
|
-
requests.push({ method: route.request().method(), body });
|
|
95
|
-
|
|
95
|
+
requests.push({ endpoint: "plan", method: route.request().method(), body });
|
|
96
|
+
await route.fulfill({ status: 201, contentType: "application/json", body: JSON.stringify({ ok: true, data: { plan } }) });
|
|
97
|
+
});
|
|
98
|
+
await page.route("**/api/update/apply", async (route) => {
|
|
99
|
+
const body = route.request().postDataJSON();
|
|
100
|
+
requests.push({ endpoint: "apply", method: route.request().method(), body });
|
|
96
101
|
status.updateInProgress = true;
|
|
97
|
-
status.componentUpdates
|
|
98
|
-
|
|
99
|
-
state: "running",
|
|
100
|
-
canStart: false,
|
|
101
|
-
message: `Updating ${target === "pi" ? "Pi" : "Web UI"}…`,
|
|
102
|
-
error: "",
|
|
103
|
-
};
|
|
104
|
-
await route.fulfill({
|
|
105
|
-
status: 202,
|
|
106
|
-
contentType: "application/json",
|
|
107
|
-
body: JSON.stringify({ ok: true, data: status.componentUpdates[target] }),
|
|
108
|
-
});
|
|
102
|
+
status.componentUpdates.pi = { ...status.componentUpdates.pi, state: "running", canStart: false, message: "Updating Pi…", error: "" };
|
|
103
|
+
await route.fulfill({ status: 202, contentType: "application/json", body: JSON.stringify({ ok: true, data: { state: "applying", outcome: "success", receipts: [{ targetId: "pi", status: "success" }] } }) });
|
|
109
104
|
});
|
|
110
105
|
await page.route("**/api/update-status*", async (route) => {
|
|
111
106
|
if (status.componentUpdates.pi.state === "running") {
|
|
@@ -144,18 +139,21 @@ test("component tags and dialogs expose safe background update lifecycle", async
|
|
|
144
139
|
await piTag.click();
|
|
145
140
|
const piDialog = page.locator("#piReleaseNotesDialog");
|
|
146
141
|
await expect(piDialog).toBeVisible();
|
|
142
|
+
await expect(page.locator("#piReleaseNotesTitle")).toHaveText("Pi v0.84.0 release notes");
|
|
143
|
+
await expect(page.locator("#piReleaseNotesBody")).toContainText("Fixture v0.84.0 release notes");
|
|
144
|
+
await expect(page.locator("#piReleaseNotesGithubLink")).toHaveAttribute("href", "https://example.test/pi/v0.84.0");
|
|
147
145
|
await expect(page.locator("#piComponentUpdateStatus")).toContainText("Pi v0.83.0 → v0.84.0 is available");
|
|
148
146
|
await page.locator("#piComponentUpdateButton").click();
|
|
149
147
|
await expect(page.locator("#confirmationDialog")).toBeVisible();
|
|
150
|
-
await expect(page.locator("#confirmationSummary")).toContainText("
|
|
148
|
+
await expect(page.locator("#confirmationSummary")).toContainText("Bundled Pi updates are staged with the current Web UI in a side-by-side managed runtime");
|
|
151
149
|
await page.locator("#confirmationConfirmButton").click();
|
|
152
150
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
151
|
+
assert.deepEqual(requests, [
|
|
152
|
+
{ endpoint: "plan", method: "POST", body: { targets: ["pi"] } },
|
|
153
|
+
{ endpoint: "apply", method: "POST", body: { transactionId: plan.transactionId, planDigest: plan.digest } },
|
|
154
|
+
], "the dialog must create one target-only plan and apply only its transaction id plus digest");
|
|
157
155
|
|
|
158
|
-
await expect(piTag).toHaveAttribute("data-update-state", "succeeded", { timeout:
|
|
156
|
+
await expect(piTag).toHaveAttribute("data-update-state", "succeeded", { timeout: 8_000 });
|
|
159
157
|
await expect(page.locator("#piComponentUpdateStatus")).toContainText("New or reloaded Pi sessions use the update");
|
|
160
158
|
await expect(page.locator("#piComponentUpdateStatus")).toContainText("already-running tabs keep their current runtime");
|
|
161
159
|
assert.ok(statusPollsAfterStart >= 1, "the browser should poll while the accepted job is running");
|