@firstpick/pi-package-webui 0.7.5 → 0.7.6
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firstpick/pi-package-webui",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"description": "Pi Web UI companion package with a local browser UI CLI plus /webui-start and /webui-status commands.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/Firstp1ck/pi-coding-agent-forge/tree/main/pi-package-webui#readme",
|
package/public/app.js
CHANGED
|
@@ -5160,12 +5160,13 @@ function renderWorkflowModeControls() {
|
|
|
5160
5160
|
elements.workflowModeButton.disabled = !commandName || pending;
|
|
5161
5161
|
elements.workflowModeButton.classList.toggle("active", active);
|
|
5162
5162
|
elements.workflowModeButton.setAttribute("aria-pressed", active ? "true" : "false");
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5163
|
+
elements.workflowModeButton.toggleAttribute("aria-busy", pending);
|
|
5164
|
+
const tooltip = pending
|
|
5165
|
+
? "Updating JavaScript Workflow Mode for this Pi tab."
|
|
5166
|
+
: commandName
|
|
5167
|
+
? `${active ? "Disable" : "Enable"} JavaScript Workflow Mode for this Pi tab via /${commandName} mode ${active ? "off" : "on"}.`
|
|
5168
|
+
: "Workflow Mode is unavailable because the /workflow command is not loaded.";
|
|
5169
|
+
applyStyledTooltip(elements.workflowModeButton, tooltip, { ariaLabel: true, align: "start", floating: false });
|
|
5169
5170
|
}
|
|
5170
5171
|
renderWorkflowOverlayControls();
|
|
5171
5172
|
|
|
@@ -10682,7 +10683,7 @@ function applyStyledTooltip(node, tooltip, options = {}) {
|
|
|
10682
10683
|
node.setAttribute("aria-label", ariaLabel);
|
|
10683
10684
|
}
|
|
10684
10685
|
if (options.align) node.setAttribute("data-tooltip-align", options.align);
|
|
10685
|
-
bindStyledTooltipEvents(node);
|
|
10686
|
+
if (options.floating !== false) bindStyledTooltipEvents(node);
|
|
10686
10687
|
return node;
|
|
10687
10688
|
}
|
|
10688
10689
|
|
package/public/index.html
CHANGED
|
@@ -191,12 +191,13 @@
|
|
|
191
191
|
><svg class="composer-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M5 12h14M13 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
|
|
192
192
|
<button
|
|
193
193
|
id="workflowModeButton"
|
|
194
|
-
class="composer-workflow-mode-button"
|
|
194
|
+
class="composer-icon-button composer-workflow-mode-button"
|
|
195
195
|
type="button"
|
|
196
|
+
aria-label="Enable Workflow Mode"
|
|
196
197
|
aria-pressed="false"
|
|
197
198
|
data-tooltip="Workflow Mode: generate and run reusable JavaScript orchestration for substantive prompts."
|
|
198
199
|
hidden
|
|
199
|
-
><
|
|
200
|
+
><svg class="composer-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><rect x="3" y="3" width="8" height="8" rx="2" fill="none" stroke="currentColor" stroke-width="2"/><path d="M7 11v4a2 2 0 0 0 2 2h4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><rect x="13" y="13" width="8" height="8" rx="2" fill="none" stroke="currentColor" stroke-width="2"/></svg></button>
|
|
200
201
|
</div>
|
|
201
202
|
<button
|
|
202
203
|
id="gitWorkflowButton"
|
package/public/styles.css
CHANGED
|
@@ -8056,7 +8056,7 @@ button.composer-skill-tag:focus-visible {
|
|
|
8056
8056
|
min-height: 1.95rem;
|
|
8057
8057
|
}
|
|
8058
8058
|
.composer-workflow-mode-button {
|
|
8059
|
-
min-width:
|
|
8059
|
+
min-width: 2.9rem;
|
|
8060
8060
|
color: var(--ctp-mauve);
|
|
8061
8061
|
border-color: rgba(203, 166, 247, 0.42);
|
|
8062
8062
|
background:
|
|
@@ -8464,8 +8464,15 @@ button.composer-skill-tag:focus-visible {
|
|
|
8464
8464
|
transform: translateY(0.24rem);
|
|
8465
8465
|
}
|
|
8466
8466
|
.composer-row .composer-workflow-mode-button[data-tooltip]::after {
|
|
8467
|
+
left: 0;
|
|
8468
|
+
right: auto;
|
|
8467
8469
|
max-width: min(18rem, calc(100vw - 2rem));
|
|
8468
8470
|
}
|
|
8471
|
+
.composer-row .composer-workflow-mode-button[data-tooltip]::before {
|
|
8472
|
+
left: 50%;
|
|
8473
|
+
right: auto;
|
|
8474
|
+
transform: translate(-50%, 0.24rem) rotate(45deg);
|
|
8475
|
+
}
|
|
8469
8476
|
.composer-row button[data-tooltip]:hover::before,
|
|
8470
8477
|
.composer-row button[data-tooltip]:hover::after,
|
|
8471
8478
|
.composer-input-row button[data-tooltip]:hover::before,
|
|
@@ -8501,6 +8508,11 @@ button.composer-skill-tag:focus-visible {
|
|
|
8501
8508
|
.composer-input-row button[data-tooltip].tooltip-open::before {
|
|
8502
8509
|
transform: translate(-1.2rem, 0) rotate(45deg);
|
|
8503
8510
|
}
|
|
8511
|
+
.composer-row .composer-workflow-mode-button[data-tooltip]:hover::before,
|
|
8512
|
+
.composer-row .composer-workflow-mode-button[data-tooltip]:focus-visible::before,
|
|
8513
|
+
.composer-row .composer-workflow-mode-button[data-tooltip].tooltip-open::before {
|
|
8514
|
+
transform: translate(-50%, 0) rotate(45deg);
|
|
8515
|
+
}
|
|
8504
8516
|
.composer-row .composer-git-button[data-tooltip]::after {
|
|
8505
8517
|
left: 0;
|
|
8506
8518
|
right: auto;
|
|
@@ -10922,6 +10934,281 @@ body.subagent-terminal-active .composer-remote-mic-consent {
|
|
|
10922
10934
|
}
|
|
10923
10935
|
::selection { color: #11111b; background: var(--ctp-pink); }
|
|
10924
10936
|
|
|
10937
|
+
/* Compact high-density surfaces: keep component behavior intact while reducing chrome. */
|
|
10938
|
+
.app-runner-widget {
|
|
10939
|
+
gap: 0.42rem;
|
|
10940
|
+
margin-block: 0.18rem;
|
|
10941
|
+
padding: 0.52rem;
|
|
10942
|
+
}
|
|
10943
|
+
.app-runner-widget .release-npm-title-wrap { gap: 0.06rem; }
|
|
10944
|
+
.app-runner-widget .release-npm-output-details { gap: 0.36rem; }
|
|
10945
|
+
.app-runner-widget .release-npm-terminal {
|
|
10946
|
+
max-height: min(24rem, 34vh);
|
|
10947
|
+
min-height: 4rem;
|
|
10948
|
+
padding: 0.52rem 0.48rem;
|
|
10949
|
+
font-size: 0.76rem;
|
|
10950
|
+
line-height: 1.4;
|
|
10951
|
+
}
|
|
10952
|
+
.app-runner-live-widget .release-npm-output-details[open] .release-npm-terminal {
|
|
10953
|
+
height: clamp(8rem, 26dvh, 18rem);
|
|
10954
|
+
min-height: 0;
|
|
10955
|
+
}
|
|
10956
|
+
.app-runner-output-controls { gap: 0.35rem 0.42rem; }
|
|
10957
|
+
.app-runner-output-actions,
|
|
10958
|
+
.app-runner-output-pills { gap: 0.28rem; }
|
|
10959
|
+
.app-runner-context-form {
|
|
10960
|
+
gap: 0.28rem;
|
|
10961
|
+
min-width: min(100%, 16rem);
|
|
10962
|
+
}
|
|
10963
|
+
.app-runner-context-lines-label {
|
|
10964
|
+
grid-template-columns: auto minmax(3.8rem, 5rem);
|
|
10965
|
+
gap: 0.28rem;
|
|
10966
|
+
}
|
|
10967
|
+
.app-runner-context-lines-input {
|
|
10968
|
+
min-height: 1.9rem;
|
|
10969
|
+
padding: 0.22rem 0.42rem;
|
|
10970
|
+
}
|
|
10971
|
+
.app-runner-output-controls .release-npm-action {
|
|
10972
|
+
min-height: 1.9rem;
|
|
10973
|
+
padding: 0.28rem 0.52rem;
|
|
10974
|
+
border-radius: 0.54rem;
|
|
10975
|
+
}
|
|
10976
|
+
.app-runner-stdin-form { gap: 0.32rem; }
|
|
10977
|
+
.app-runner-stdin-input {
|
|
10978
|
+
min-height: 2rem;
|
|
10979
|
+
max-height: min(14dvh, 6rem);
|
|
10980
|
+
padding: 0.38rem 0.52rem;
|
|
10981
|
+
line-height: 1.25;
|
|
10982
|
+
}
|
|
10983
|
+
.app-runner-stdin-send,
|
|
10984
|
+
.app-runner-stdin-eof { min-width: 5.5rem; }
|
|
10985
|
+
.app-runner-stdin-eof { min-width: 3.5rem; }
|
|
10986
|
+
|
|
10987
|
+
.subagents-help {
|
|
10988
|
+
margin-bottom: 0.4rem;
|
|
10989
|
+
padding: 0.34rem 0.48rem;
|
|
10990
|
+
line-height: 1.35;
|
|
10991
|
+
}
|
|
10992
|
+
.subagent-launch-slots {
|
|
10993
|
+
margin-bottom: 0.4rem;
|
|
10994
|
+
border-radius: 0.7rem;
|
|
10995
|
+
}
|
|
10996
|
+
.subagent-launch-slots-summary {
|
|
10997
|
+
gap: 0.5rem;
|
|
10998
|
+
min-height: 2.7rem;
|
|
10999
|
+
padding: 0.46rem 0.58rem;
|
|
11000
|
+
}
|
|
11001
|
+
.subagent-launch-slots-body {
|
|
11002
|
+
gap: 0.42rem;
|
|
11003
|
+
padding: 0.48rem;
|
|
11004
|
+
}
|
|
11005
|
+
.subagent-launch-slot-roles { gap: 0.4rem; }
|
|
11006
|
+
.subagent-launch-slot-role {
|
|
11007
|
+
gap: 0.36rem;
|
|
11008
|
+
padding: 0.42rem;
|
|
11009
|
+
}
|
|
11010
|
+
.subagent-launch-slot-list { gap: 0.32rem; }
|
|
11011
|
+
.subagent-launch-slot-row {
|
|
11012
|
+
gap: 0.3rem 0.4rem;
|
|
11013
|
+
padding: 0.38rem;
|
|
11014
|
+
}
|
|
11015
|
+
.subagent-open-mode-field {
|
|
11016
|
+
gap: 0.24rem 0.42rem;
|
|
11017
|
+
margin-bottom: 0.4rem;
|
|
11018
|
+
padding: 0.36rem 0.48rem;
|
|
11019
|
+
}
|
|
11020
|
+
.subagent-open-mode-field select {
|
|
11021
|
+
min-width: 8rem;
|
|
11022
|
+
min-height: 2rem;
|
|
11023
|
+
padding-block: 0.24rem;
|
|
11024
|
+
}
|
|
11025
|
+
.subagents-status {
|
|
11026
|
+
margin-bottom: 0.32rem;
|
|
11027
|
+
line-height: 1.3;
|
|
11028
|
+
}
|
|
11029
|
+
.subagents-box {
|
|
11030
|
+
gap: 0.38rem;
|
|
11031
|
+
padding: 0.48rem;
|
|
11032
|
+
}
|
|
11033
|
+
.subagent-tab-header {
|
|
11034
|
+
gap: 0.42rem;
|
|
11035
|
+
min-height: 36px;
|
|
11036
|
+
padding: 0.34rem 0.46rem;
|
|
11037
|
+
}
|
|
11038
|
+
.subagent-agent-list {
|
|
11039
|
+
gap: 0.28rem;
|
|
11040
|
+
padding: 0.36rem;
|
|
11041
|
+
}
|
|
11042
|
+
.subagent-agent-row {
|
|
11043
|
+
gap: 0.38rem;
|
|
11044
|
+
padding: 0.3rem 0.4rem;
|
|
11045
|
+
}
|
|
11046
|
+
.subagent-gate-card {
|
|
11047
|
+
gap: 0.36rem;
|
|
11048
|
+
padding: 0.42rem;
|
|
11049
|
+
}
|
|
11050
|
+
.subagent-gate-attempts { gap: 0.24rem; }
|
|
11051
|
+
.subagent-gate-attempt {
|
|
11052
|
+
gap: 0.34rem;
|
|
11053
|
+
padding: 0.3rem;
|
|
11054
|
+
}
|
|
11055
|
+
|
|
11056
|
+
.git-side-panel {
|
|
11057
|
+
gap: 0.42rem;
|
|
11058
|
+
padding: 0.5rem;
|
|
11059
|
+
border-radius: 0.76rem;
|
|
11060
|
+
}
|
|
11061
|
+
.git-side-panel-groups,
|
|
11062
|
+
.git-side-panel-terminal-body,
|
|
11063
|
+
.git-side-panel-repository-content,
|
|
11064
|
+
.git-side-panel-changes,
|
|
11065
|
+
.git-side-panel-history,
|
|
11066
|
+
.git-side-panel-tree,
|
|
11067
|
+
.git-side-panel-folder-body { gap: 0.28rem; }
|
|
11068
|
+
.git-side-panel-terminal-summary,
|
|
11069
|
+
.git-side-panel-repository-toggle {
|
|
11070
|
+
gap: 0.38rem;
|
|
11071
|
+
min-height: 36px;
|
|
11072
|
+
padding: 0.34rem 0.44rem;
|
|
11073
|
+
}
|
|
11074
|
+
.git-side-panel-repository-content { padding: 0.36rem; }
|
|
11075
|
+
.git-side-panel-tab {
|
|
11076
|
+
min-height: 30px;
|
|
11077
|
+
padding: 0.2rem 0.36rem;
|
|
11078
|
+
}
|
|
11079
|
+
.git-side-panel-tree-section {
|
|
11080
|
+
border-color: rgba(180, 190, 254, 0.14);
|
|
11081
|
+
border-radius: 0.66rem;
|
|
11082
|
+
background: rgba(var(--ctp-crust-rgb), 0.46);
|
|
11083
|
+
}
|
|
11084
|
+
.git-side-panel-tree-heading {
|
|
11085
|
+
gap: 0.3rem;
|
|
11086
|
+
padding: 0.18rem 0.32rem;
|
|
11087
|
+
}
|
|
11088
|
+
.git-side-panel-tree {
|
|
11089
|
+
gap: 0;
|
|
11090
|
+
padding: 0.14rem 0.18rem;
|
|
11091
|
+
}
|
|
11092
|
+
/* Keep the Files tree visual language while giving Git its denser data-list rhythm. */
|
|
11093
|
+
.git-side-panel-folder {
|
|
11094
|
+
margin: 0;
|
|
11095
|
+
padding: 0;
|
|
11096
|
+
border: 0;
|
|
11097
|
+
border-radius: 0;
|
|
11098
|
+
background: transparent;
|
|
11099
|
+
}
|
|
11100
|
+
.git-side-panel-folder-summary,
|
|
11101
|
+
.git-side-panel-file {
|
|
11102
|
+
min-height: 1.55rem;
|
|
11103
|
+
padding: 0.08rem 0.26rem;
|
|
11104
|
+
color: rgba(var(--ctp-text-rgb), 0.88);
|
|
11105
|
+
border: 1px solid transparent;
|
|
11106
|
+
border-radius: 0.5rem;
|
|
11107
|
+
background: transparent;
|
|
11108
|
+
}
|
|
11109
|
+
.git-side-panel-folder-summary {
|
|
11110
|
+
gap: 0.18rem;
|
|
11111
|
+
min-height: 1.25rem;
|
|
11112
|
+
padding: 0 0.2rem;
|
|
11113
|
+
line-height: 1.1;
|
|
11114
|
+
}
|
|
11115
|
+
.git-side-panel-folder-summary:hover,
|
|
11116
|
+
.git-side-panel-folder-summary:focus-visible,
|
|
11117
|
+
.git-side-panel-file:hover,
|
|
11118
|
+
.git-side-panel-file:focus-visible {
|
|
11119
|
+
border-color: rgba(137, 180, 250, 0.30);
|
|
11120
|
+
background: rgba(var(--ctp-surface-rgb), 0.34);
|
|
11121
|
+
box-shadow: inset 2px 0 0 var(--ctp-blue);
|
|
11122
|
+
outline: none;
|
|
11123
|
+
}
|
|
11124
|
+
.git-side-panel-folder-chevron {
|
|
11125
|
+
color: var(--ctp-teal);
|
|
11126
|
+
font-size: 0.78rem;
|
|
11127
|
+
line-height: 1;
|
|
11128
|
+
}
|
|
11129
|
+
.git-side-panel-folder-body {
|
|
11130
|
+
gap: 0;
|
|
11131
|
+
margin: 0 0 0 0.48rem;
|
|
11132
|
+
padding-left: 0.24rem;
|
|
11133
|
+
border-left-color: rgba(148, 226, 213, 0.24);
|
|
11134
|
+
}
|
|
11135
|
+
.git-side-panel-file {
|
|
11136
|
+
grid-template-columns: 1rem minmax(4rem, 1fr) auto;
|
|
11137
|
+
gap: 0.24rem;
|
|
11138
|
+
}
|
|
11139
|
+
|
|
11140
|
+
.git-workflow-panel {
|
|
11141
|
+
gap: 0.48rem;
|
|
11142
|
+
max-height: min(28rem, 40dvh);
|
|
11143
|
+
padding: 0.62rem;
|
|
11144
|
+
}
|
|
11145
|
+
.git-workflow-header {
|
|
11146
|
+
align-items: center;
|
|
11147
|
+
gap: 0.65rem;
|
|
11148
|
+
}
|
|
11149
|
+
.git-workflow-header > div:first-child {
|
|
11150
|
+
flex-basis: 16rem;
|
|
11151
|
+
min-width: min(100%, 16rem);
|
|
11152
|
+
}
|
|
11153
|
+
.git-workflow-header strong {
|
|
11154
|
+
margin-top: 0.04rem;
|
|
11155
|
+
letter-spacing: 0.02em;
|
|
11156
|
+
}
|
|
11157
|
+
.git-workflow-header p {
|
|
11158
|
+
margin-top: 0.12rem;
|
|
11159
|
+
font-size: 0.78rem;
|
|
11160
|
+
line-height: 1.3;
|
|
11161
|
+
}
|
|
11162
|
+
.git-workflow-kicker { letter-spacing: 0.13em; }
|
|
11163
|
+
.git-workflow-steps,
|
|
11164
|
+
.git-workflow-actions { gap: 0.35rem; }
|
|
11165
|
+
.git-workflow-step {
|
|
11166
|
+
padding: 0.26rem 0.55rem 0.26rem 1.35rem;
|
|
11167
|
+
font-size: var(--text-xs);
|
|
11168
|
+
letter-spacing: 0.07em;
|
|
11169
|
+
}
|
|
11170
|
+
button.git-workflow-step { min-height: 1.9rem; }
|
|
11171
|
+
.git-workflow-step::before {
|
|
11172
|
+
left: 0.46rem;
|
|
11173
|
+
width: 0.42rem;
|
|
11174
|
+
height: 0.42rem;
|
|
11175
|
+
}
|
|
11176
|
+
.git-workflow-output {
|
|
11177
|
+
max-height: 10rem;
|
|
11178
|
+
min-height: 3.5rem;
|
|
11179
|
+
padding: 0.55rem;
|
|
11180
|
+
border-radius: 0.68rem;
|
|
11181
|
+
font-size: 0.76rem;
|
|
11182
|
+
line-height: 1.4;
|
|
11183
|
+
}
|
|
11184
|
+
.git-workflow-message-input-row { gap: 0.35rem; }
|
|
11185
|
+
.git-workflow-message-input-field { gap: 0.18rem; }
|
|
11186
|
+
.git-workflow-message-input {
|
|
11187
|
+
min-height: 1.95rem;
|
|
11188
|
+
padding: 0.32rem 0.55rem;
|
|
11189
|
+
}
|
|
11190
|
+
.git-workflow-actions button {
|
|
11191
|
+
min-height: 1.95rem;
|
|
11192
|
+
padding: 0.32rem 0.56rem;
|
|
11193
|
+
}
|
|
11194
|
+
|
|
11195
|
+
@media (pointer: coarse) {
|
|
11196
|
+
.app-runner-output-controls .release-npm-action,
|
|
11197
|
+
.app-runner-context-lines-input,
|
|
11198
|
+
.app-runner-stdin-input,
|
|
11199
|
+
.subagent-launch-slots-summary,
|
|
11200
|
+
.subagent-open-mode-field select,
|
|
11201
|
+
.subagent-tab-header,
|
|
11202
|
+
.git-side-panel-repository-toggle,
|
|
11203
|
+
.git-side-panel-tab,
|
|
11204
|
+
.git-side-panel-folder-summary,
|
|
11205
|
+
.git-side-panel-file,
|
|
11206
|
+
button.git-workflow-step,
|
|
11207
|
+
.git-workflow-message-input {
|
|
11208
|
+
min-height: 44px;
|
|
11209
|
+
}
|
|
11210
|
+
}
|
|
11211
|
+
|
|
10925
11212
|
@media (prefers-reduced-motion: reduce) {
|
|
10926
11213
|
*, *::before, *::after {
|
|
10927
11214
|
scroll-behavior: auto !important;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import { readFile } from "node:fs/promises";
|
|
3
|
+
import { dirname, join } from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
|
|
6
|
+
const root = join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
7
|
+
const css = await readFile(join(root, "public", "styles.css"), "utf8");
|
|
8
|
+
|
|
9
|
+
function ruleBlock(selector, from = 0) {
|
|
10
|
+
const start = css.indexOf(`${selector} {`, from);
|
|
11
|
+
assert.notEqual(start, -1, `missing CSS rule: ${selector}`);
|
|
12
|
+
const end = css.indexOf("}", start);
|
|
13
|
+
assert.notEqual(end, -1, `unterminated CSS rule: ${selector}`);
|
|
14
|
+
return css.slice(start, end + 1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function propertyValue(block, property) {
|
|
18
|
+
const match = block.match(new RegExp(`(?:^|\\n)\\s*${property.replace(/[.*+?^${}()|[\\]\\\\]/g, "\\$&")}:\\s*([^;]+);`));
|
|
19
|
+
assert.ok(match, `missing ${property} in CSS rule`);
|
|
20
|
+
return match[1].trim();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const compactStart = css.indexOf("/* Compact high-density surfaces:");
|
|
24
|
+
const responsiveStart = css.indexOf("@media (max-width: 1050px)");
|
|
25
|
+
assert.ok(compactStart >= 0 && responsiveStart > compactStart, "compact desktop overrides should stay before responsive rules so mobile adaptations win");
|
|
26
|
+
|
|
27
|
+
assert.match(
|
|
28
|
+
css,
|
|
29
|
+
/\/\* Compact high-density surfaces:[\s\S]*\.app-runner-widget \{[\s\S]*margin-block:\s*0\.18rem;[\s\S]*padding:\s*0\.52rem;[\s\S]*\.app-runner-live-widget \.release-npm-output-details\[open\] \.release-npm-terminal \{[\s\S]*height:\s*clamp\(8rem, 26dvh, 18rem\)/,
|
|
30
|
+
"App Runner should use compact widget chrome and a smaller live terminal",
|
|
31
|
+
);
|
|
32
|
+
assert.match(
|
|
33
|
+
css,
|
|
34
|
+
/\/\* Compact high-density surfaces:[\s\S]*\.subagent-launch-slots-summary \{[\s\S]*min-height:\s*2\.7rem;[\s\S]*\.subagents-box \{[\s\S]*padding:\s*0\.48rem;[\s\S]*\.subagent-tab-header \{[\s\S]*min-height:\s*36px;/,
|
|
35
|
+
"Subagents side-panel chrome should use the scoped compact density treatment",
|
|
36
|
+
);
|
|
37
|
+
assert.match(
|
|
38
|
+
css,
|
|
39
|
+
/\/\* Keep the Files tree visual language while giving Git its denser data-list rhythm\. \*\/[\s\S]*\.git-side-panel-folder-summary,[\s\S]*\.git-side-panel-file \{[\s\S]*min-height:\s*1\.55rem;[\s\S]*padding:\s*0\.08rem 0\.26rem;[\s\S]*border:\s*1px solid transparent;[\s\S]*border-radius:\s*0\.5rem;[\s\S]*\.git-side-panel-file:focus-visible \{[\s\S]*box-shadow:\s*inset 2px 0 0 var\(--ctp-blue\)/,
|
|
40
|
+
"Git changed-file rows should keep the Files tree visual language with denser spacing",
|
|
41
|
+
);
|
|
42
|
+
assert.match(
|
|
43
|
+
css,
|
|
44
|
+
/\/\* Compact high-density surfaces:[\s\S]*\.git-workflow-panel \{[\s\S]*gap:\s*0\.48rem;[\s\S]*max-height:\s*min\(28rem, 40dvh\);[\s\S]*padding:\s*0\.62rem;[\s\S]*\.git-workflow-output \{[\s\S]*min-height:\s*3\.5rem;/,
|
|
45
|
+
"Guided Git should use the scoped compact panel and output sizing",
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
const filesRow = ruleBlock(".file-tree-item");
|
|
49
|
+
const gitRows = ruleBlock(".git-side-panel-folder-summary,\n.git-side-panel-file", compactStart);
|
|
50
|
+
for (const property of ["color", "border-radius", "background"]) {
|
|
51
|
+
assert.equal(propertyValue(gitRows, property), propertyValue(filesRow, property), `Git and Files rows should share ${property}`);
|
|
52
|
+
}
|
|
53
|
+
assert.equal(propertyValue(gitRows, "min-height"), "1.55rem", "Git file rows should keep the compact data-list height");
|
|
54
|
+
assert.equal(propertyValue(gitRows, "padding"), "0.08rem 0.26rem", "Git file rows should keep their compact padding");
|
|
55
|
+
const gitTree = ruleBlock(".git-side-panel-tree", compactStart);
|
|
56
|
+
assert.equal(propertyValue(gitTree, "gap"), "0", "Git tree rows should not add inter-row gaps");
|
|
57
|
+
assert.equal(propertyValue(gitTree, "padding"), "0.14rem 0.18rem", "Git tree container padding should remain compact");
|
|
58
|
+
const denseGitRowsStart = css.indexOf("/* Keep the Files tree visual language", compactStart);
|
|
59
|
+
const genericDetailsStart = css.indexOf("\ndetails {\n margin: 0.5rem 0;");
|
|
60
|
+
assert.notEqual(genericDetailsStart, -1, "missing generic details card rule");
|
|
61
|
+
const genericDetails = ruleBlock("details", genericDetailsStart);
|
|
62
|
+
assert.equal(propertyValue(genericDetails, "padding"), "0.6rem", "generic details padding should remain explicit in the base stylesheet");
|
|
63
|
+
const gitFolderContainer = ruleBlock(".git-side-panel-folder", denseGitRowsStart);
|
|
64
|
+
assert.equal(propertyValue(gitFolderContainer, "margin"), "0", "Git directories should reset generic details margins");
|
|
65
|
+
assert.equal(propertyValue(gitFolderContainer, "padding"), "0", "Git directories should reset the generic details padding that creates inter-row gaps");
|
|
66
|
+
assert.equal(propertyValue(gitFolderContainer, "border"), "0", "Git directories should not inherit generic details borders");
|
|
67
|
+
assert.equal(propertyValue(gitFolderContainer, "border-radius"), "0", "Git directories should not retain generic details corner geometry");
|
|
68
|
+
assert.equal(propertyValue(gitFolderContainer, "background"), "transparent", "Git directories should not inherit generic details card backgrounds");
|
|
69
|
+
const gitFolderRow = ruleBlock(".git-side-panel-folder-summary", denseGitRowsStart);
|
|
70
|
+
assert.equal(propertyValue(gitFolderRow, "gap"), "0.18rem", "Git directory label spacing should remain compact");
|
|
71
|
+
assert.equal(propertyValue(gitFolderRow, "min-height"), "1.25rem", "Git directories should be denser than file rows");
|
|
72
|
+
assert.equal(propertyValue(gitFolderRow, "padding"), "0 0.2rem", "Git directories should remove vertical padding");
|
|
73
|
+
assert.equal(propertyValue(gitFolderRow, "line-height"), "1.1", "Git directory text should retain a compact readable line box");
|
|
74
|
+
const gitFolderChevron = ruleBlock(".git-side-panel-folder-chevron", denseGitRowsStart);
|
|
75
|
+
assert.equal(propertyValue(gitFolderChevron, "font-size"), "0.78rem", "Git directory chevrons should remain compact");
|
|
76
|
+
assert.equal(propertyValue(gitFolderChevron, "line-height"), "1", "Git directory chevrons should remain vertically centered");
|
|
77
|
+
const gitFolderBody = ruleBlock(".git-side-panel-folder-body", denseGitRowsStart);
|
|
78
|
+
assert.equal(propertyValue(gitFolderBody, "gap"), "0", "Nested Git entries should not add vertical gaps");
|
|
79
|
+
assert.equal(propertyValue(gitFolderBody, "margin"), "0 0 0 0.48rem", "Nested Git indentation should remain shallow");
|
|
80
|
+
assert.equal(propertyValue(gitFolderBody, "padding-left"), "0.24rem", "Nested guide padding should remain shallow");
|
|
81
|
+
assert.equal(propertyValue(filesRow, "border-color"), "transparent", "Files rows should start with a transparent border");
|
|
82
|
+
assert.equal(propertyValue(gitRows, "border"), "1px solid transparent", "Git rows should provide the same transparent one-pixel border geometry");
|
|
83
|
+
const filesHover = ruleBlock(".file-tree-item:hover,\n.file-tree-item:focus-visible");
|
|
84
|
+
const gitHover = ruleBlock(".git-side-panel-folder-summary:hover,\n.git-side-panel-folder-summary:focus-visible,\n.git-side-panel-file:hover,\n.git-side-panel-file:focus-visible", compactStart);
|
|
85
|
+
for (const property of ["border-color", "background", "box-shadow"]) {
|
|
86
|
+
assert.equal(propertyValue(gitHover, property), propertyValue(filesHover, property), `Git and Files rows should share hover/focus ${property}`);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const coarseStart = css.indexOf("@media (pointer: coarse)", compactStart);
|
|
90
|
+
const coarseEnd = css.indexOf("@media (prefers-reduced-motion: reduce)", coarseStart);
|
|
91
|
+
assert.ok(coarseStart > compactStart && coarseEnd > coarseStart, "coarse-pointer protections should follow compact desktop overrides");
|
|
92
|
+
const coarseBlock = css.slice(coarseStart, coarseEnd);
|
|
93
|
+
for (const selector of [
|
|
94
|
+
".app-runner-output-controls .release-npm-action",
|
|
95
|
+
".subagent-open-mode-field select",
|
|
96
|
+
".subagent-launch-slots-summary",
|
|
97
|
+
".subagent-tab-header",
|
|
98
|
+
".git-side-panel-repository-toggle",
|
|
99
|
+
".git-side-panel-tab",
|
|
100
|
+
".git-side-panel-folder-summary",
|
|
101
|
+
".git-side-panel-file",
|
|
102
|
+
"button.git-workflow-step",
|
|
103
|
+
".git-workflow-message-input",
|
|
104
|
+
]) {
|
|
105
|
+
assert.ok(coarseBlock.includes(selector), `${selector} should retain a coarse-pointer target floor`);
|
|
106
|
+
}
|
|
107
|
+
assert.match(coarseBlock, /min-height:\s*44px;/, "coarse-pointer compact controls should retain a 44px target floor");
|
|
108
|
+
const guidedGitTouchRule = css.indexOf("#gitWorkflowCancelButton { min-height: 44px; }");
|
|
109
|
+
assert.ok(guidedGitTouchRule > compactStart, "Guided Git action touch targets should override compact desktop sizing");
|
|
110
|
+
|
|
111
|
+
console.log("compact-sections-static.test.mjs passed");
|
|
@@ -252,7 +252,8 @@ const workflowModeButtonHtml = html.match(/<button\s+id="workflowModeButton"[\s\
|
|
|
252
252
|
const workflowOverlayOpenButtonHtml = html.match(/<button\s+id="workflowOverlayOpenButton"[\s\S]*?<\/button>/)?.[0] || "";
|
|
253
253
|
assert.match(html, /id="workflowModeControls" class="composer-publish-menu composer-workflow-mode-controls"[\s\S]*id="workflowOverlayOpenButton"[\s\S]*aria-controls="widgetArea"[\s\S]*id="workflowModeButton"/, "Workflow controls should group a restore affordance with the mode button like the app-runner helper control");
|
|
254
254
|
assert.doesNotMatch(workflowOverlayOpenButtonHtml, /\stitle=/, "Workflow overlay restore should not combine a browser-native tooltip with its styled tooltip");
|
|
255
|
-
assert.match(workflowModeButtonHtml, /class="composer-workflow-mode-button"[\s\S]*aria-pressed="false"[\s\S]*hidden[\s\S]*<
|
|
255
|
+
assert.match(workflowModeButtonHtml, /class="composer-icon-button composer-workflow-mode-button"[\s\S]*aria-label="Enable Workflow Mode"[\s\S]*aria-pressed="false"[\s\S]*hidden[\s\S]*<svg class="composer-icon"[\s\S]*aria-hidden="true"/, "composer actions should expose a capability-gated, accessible Workflow Mode icon toggle");
|
|
256
|
+
assert.doesNotMatch(workflowModeButtonHtml, /<span>Workflow<\/span>/, "Workflow Mode should use the shared icon treatment instead of a text label");
|
|
256
257
|
assert.match(workflowModeButtonHtml, /data-tooltip="Workflow Mode:/, "Workflow Mode should retain its styled tooltip");
|
|
257
258
|
assert.doesNotMatch(workflowModeButtonHtml, /\stitle=/, "Workflow Mode should not also expose a browser-native tooltip");
|
|
258
259
|
assert.match(html, /id="workflowModeChip" class="composer-workflow-mode-chip"[\s\S]*hidden>Workflow: on<\/button>/, "composer should expose a hidden-until-active Workflow Mode chip");
|
|
@@ -462,7 +463,8 @@ assert.match(css, /\.action-feedback-controls:hover,[\s\S]*?\.action-feedback-co
|
|
|
462
463
|
assert.match(css, /\.action-feedback-controls:not\(:hover\):not\(:focus-within\) \.action-feedback-button/, "hidden action reactions should not expose button hit targets until the hover area is reached");
|
|
463
464
|
assert.match(css, /\.action-feedback-button\.feedback-question\.active/, "question-mark reaction should have selected styling");
|
|
464
465
|
assert.match(css, /\.composer-row button\[data-tooltip\]::after/, "composer button tooltips should be shared across Git, Steer, and Follow-up buttons");
|
|
465
|
-
assert.match(css, /\.composer-row \.composer-workflow-mode-button\[data-tooltip\]::after \{\
|
|
466
|
+
assert.match(css, /\.composer-row \.composer-workflow-mode-button\[data-tooltip\]::after \{[\s\S]*?left:\s*0;[\s\S]*?right:\s*auto;[\s\S]*?max-width:\s*min\(18rem, calc\(100vw - 2rem\)\);/, "Workflow Mode tooltip should open rightward and stay narrow enough to remain inside the outer chat frame");
|
|
467
|
+
assert.match(css, /\.composer-row \.composer-workflow-mode-button\[data-tooltip\]::before \{[\s\S]*?left:\s*50%;[\s\S]*?right:\s*auto;[\s\S]*?translate\(-50%, 0\.24rem\)/, "Workflow Mode tooltip arrow should stay centered on the icon while its panel opens rightward");
|
|
466
468
|
assert.match(css, /\.composer-row \.composer-git-button\[data-tooltip\]::after \{[\s\S]*?left:\s*0;[\s\S]*?right:\s*auto;/, "Git workflow tooltip should open rightward so it is not clipped off the left edge");
|
|
467
469
|
assert.match(css, /\.composer-row button\[data-tooltip\]\.tooltip-open::after/, "composer button tooltips should be triggerable from JS for empty mobile taps");
|
|
468
470
|
assert.match(css, /\.composer-row button\[data-tooltip\]:hover,[\s\S]*?\.composer-input-row button\[data-tooltip\]\.tooltip-open \{\n\s+z-index:\s*40;/, "active composer tooltip triggers should stack above context tags and adjacent controls");
|
|
@@ -1046,6 +1048,9 @@ assert.match(app, /const WORKFLOW_MODE_RPC_WIDGET_KEY = "workflow-mode:rpc"[\s\S
|
|
|
1046
1048
|
assert.match(app, /function workflowModeStateFromRpcPayload\(lines\)[\s\S]*payload\?\.type !== WORKFLOW_MODE_RPC_PAYLOAD_TYPE[\s\S]*normalizeWorkflowModeState/, "frontend should strictly validate structured Workflow Mode payloads");
|
|
1047
1049
|
assert.match(app, /const workflowModeByTab = new Map\(\)/, "frontend should track Workflow Mode independently for each Pi tab");
|
|
1048
1050
|
assert.match(app, /function renderWorkflowModeControls\(\)[\s\S]*workflow-mode-active[\s\S]*workflowModeButton[\s\S]*workflowModeChip/, "frontend should render toggle, active chip, and composer state from extension status");
|
|
1051
|
+
assert.match(app, /workflowModeButton\.toggleAttribute\("aria-busy", pending\)[\s\S]*pending\s*\? "Updating JavaScript Workflow Mode for this Pi tab\."/, "Workflow Mode icon should preserve pending-state feedback through busy semantics and its accessible tooltip");
|
|
1052
|
+
assert.match(app, /applyStyledTooltip\(elements\.workflowModeButton, tooltip, \{ ariaLabel: true, align: "start", floating: false \}\)/, "Workflow Mode should use only its composer pseudo-element tooltip instead of also binding the floating tooltip");
|
|
1053
|
+
assert.match(app, /function applyStyledTooltip\([\s\S]*if \(options\.floating !== false\) bindStyledTooltipEvents\(node\)/, "styled tooltip setup should allow controls with native scoped tooltip CSS to opt out of the floating tooltip layer");
|
|
1049
1054
|
assert.match(app, /async function setWorkflowModeEnabled\(enabled\)[\s\S]*`\/\$\{commandName\} mode \$\{enabled \? "on" : "off"\}`/, "Workflow Mode toggle should send canonical extension commands rather than rewrite prompts locally");
|
|
1050
1055
|
assert.match(app, /if \(statusKey === WORKFLOW_MODE_STATUS_KEY\) handleWorkflowModeStatus/, "Workflow Mode should synchronize from replayable extension setStatus events");
|
|
1051
1056
|
assert.match(app, /if \(widgetKey === WORKFLOW_MODE_RPC_WIDGET_KEY\)[\s\S]*workflowModeStateFromRpcPayload\(request\.widgetLines\)[\s\S]*updateWorkflowModeForTab/, "Workflow Mode should consume structured replay state without rendering an opaque widget");
|
|
@@ -1071,6 +1076,7 @@ assert.match(css, /\.workflow-inspector-layout \{[\s\S]*grid-template-columns:[\
|
|
|
1071
1076
|
assert.match(css, /\.workflow-inspector-widget\.minimized,[\s\S]*\.workflow-subprocess-widget\.minimized \{[\s\S]*\.workflow-inspector-minimize-button,[\s\S]*\.workflow-subprocess-minimize-button/, "Workflow inspector and subprocess widgets should share visible minimized-state toggle styling");
|
|
1072
1077
|
assert.match(css, /\.workflow-subprocess-widget\.minimized > \.release-npm-header \{[\s\S]*?padding-bottom:\s*0;[\s\S]*?border-bottom:\s*0;/, "minimized Workflow subprocess output should collapse its header divider and extra spacing");
|
|
1073
1078
|
assert.match(css, /\.terminal-tab-workflow-indicator \{[\s\S]*color: var\(--ctp-mauve\)/, "inactive-tab Workflow badges should have a distinct accessible style");
|
|
1079
|
+
assert.match(css, /\.composer-workflow-mode-button \{[\s\S]*?min-width:\s*2\.9rem;/, "Workflow Mode icon should use the shared composer icon-button width");
|
|
1074
1080
|
assert.match(css, /\.composer-workflow-mode-button\.active,[\s\S]*aria-pressed="true"/, "active Workflow Mode toggle should have persistent pressed styling");
|
|
1075
1081
|
assert.match(css, /\.composer-workflow-mode-controls\.has-open-control \{[^}]*min-width:\s*1\.95rem;[^}]*min-height:\s*1\.95rem;/, "Workflow restore should retain an anchored box even if the Workflow Mode button is unavailable");
|
|
1076
1082
|
assert.match(css, /\.composer-workflow-overlay-open-button \{[\s\S]*position:\s*absolute;[\s\S]*border-radius:\s*999px;[\s\S]*\.workflow-overlay-close-button \{/, "Workflow restore should use a visible helper badge and the complete overlay should expose a distinct close action");
|
|
@@ -94,19 +94,19 @@ await writeFile(asyncStatusFile, JSON.stringify({
|
|
|
94
94
|
lastUpdate: Date.now(),
|
|
95
95
|
steps: [
|
|
96
96
|
{ agent: "reviewer", status: "running", sessionFile: asyncSessionFile, recentOutput: [], currentTool: "bash", currentToolArgs: "sleep 5", model: "anthropic/claude-opus-4-8:high", thinking: "high" },
|
|
97
|
-
{ agent: "
|
|
97
|
+
{ agent: "reviewer", status: "running", model: "openai-codex/gpt-5.6-sol", thinking: "high" },
|
|
98
98
|
],
|
|
99
99
|
}));
|
|
100
100
|
|
|
101
101
|
const statusText = `Active async runs: 2
|
|
102
102
|
|
|
103
|
-
- run-a | running | active | parallel | 2/2 running | ~/repo
|
|
104
|
-
1. reviewer | running | tool read
|
|
105
|
-
2.
|
|
103
|
+
- run-a | running | active | parallel [fresh] | 2/2 running | ~/repo
|
|
104
|
+
1. reviewer [fresh] | running | tool read
|
|
105
|
+
2. reviewer [fresh] | running | tool grep
|
|
106
106
|
|
|
107
|
-
- run-b | running | active | chain | step 2/2 | ~/repo
|
|
108
|
-
1. planner | completed
|
|
109
|
-
2. [Implementation] Apply fixes (worker) | running | tool edit
|
|
107
|
+
- run-b | running | active | chain [mixed] | step 2/2 | ~/repo
|
|
108
|
+
1. planner [fresh] | completed
|
|
109
|
+
2. [Implementation] Apply fixes (worker) [fork] | running | tool edit
|
|
110
110
|
↳ nested-oracle [nested-1] running | tool grep`;
|
|
111
111
|
|
|
112
112
|
webuiRpcHelper(pi);
|
|
@@ -165,7 +165,8 @@ function latestPayload() {
|
|
|
165
165
|
let payload = latestPayload();
|
|
166
166
|
assert.equal(payload.available, true, "successful pi-subagents RPC should mark status available");
|
|
167
167
|
assert.deepEqual(payload.runs.map((run) => run.id), ["run-a", "run-b"]);
|
|
168
|
-
assert.deepEqual(payload.runs
|
|
168
|
+
assert.deepEqual(payload.runs.map((run) => run.mode), ["parallel", "chain"], "async overview should ignore fleet context badges when parsing run modes");
|
|
169
|
+
assert.deepEqual(payload.runs[0].agents.map((agent) => [agent.name, agent.currentTool]), [["reviewer", "read"], ["reviewer", "grep"]], "async overview should ignore fleet context badges while preserving same-role child indexes");
|
|
169
170
|
assert.deepEqual(payload.runs[0].agents.map((agent) => [agent.model, agent.thinking]), [["anthropic/claude-opus-4-8:high", "high"], ["openai-codex/gpt-5.6-sol", "high"]], "async overview should publish effective lifecycle model and reasoning metadata");
|
|
170
171
|
assert.deepEqual(payload.runs[1].agents.map((agent) => [agent.name, agent.nested]), [["worker", false], ["nested-oracle", true]]);
|
|
171
172
|
|
package/webui-rpc-helper.mjs
CHANGED
|
@@ -239,7 +239,9 @@ function subagentAgentName(value) {
|
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
function subagentAgentFromDisplay(value) {
|
|
242
|
-
const display = subagentText(value, 240)
|
|
242
|
+
const display = subagentText(value, 240)
|
|
243
|
+
.replace(/^\[[^\]]+\]\s*/, "")
|
|
244
|
+
.replace(/\s+\[(?:fork|fresh|mixed)\]$/i, "");
|
|
243
245
|
const labeled = display.match(/\(([^()]*)\)$/);
|
|
244
246
|
return subagentAgentName(labeled?.[1] || display);
|
|
245
247
|
}
|
|
@@ -490,7 +492,7 @@ function parseSubagentStatusText(text, previousRuns = new Map()) {
|
|
|
490
492
|
if (runMatch) {
|
|
491
493
|
const id = subagentText(runMatch[1], 160);
|
|
492
494
|
const segments = rawLine.split(" | ").map((part) => part.trim());
|
|
493
|
-
const mode = segments.
|
|
495
|
+
const mode = segments.map((part) => part.match(/^(single|parallel|chain)\b/)?.[1]).find(Boolean);
|
|
494
496
|
const previous = previousRuns.get(id);
|
|
495
497
|
current = {
|
|
496
498
|
id,
|