@firstpick/pi-package-webui 0.8.3 → 0.8.4
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 +67 -16
- package/bin/pi-webui.mjs +769 -130
- package/lib/WEBUI_TUI_NATIVE_PARITY.json +26 -0
- package/lib/optional-feature-catalog.mjs +29 -0
- package/lib/optional-feature-migration.mjs +410 -0
- package/lib/session-summary-core.mjs +320 -0
- package/lib/session-summary-preferences.mjs +267 -0
- package/package.json +5 -42
- package/public/app.js +1280 -51
- package/public/index.html +42 -0
- package/public/styles.css +345 -1
- package/session-summary.ts +403 -0
- package/tests/aur-review-widget-static.test.mjs +3 -2
- package/tests/browser/session-summary.spec.mjs +271 -0
- package/tests/codex-fast-mode-static.test.mjs +8 -7
- package/tests/http-endpoints-harness.test.mjs +419 -3
- package/tests/mobile-static.test.mjs +90 -92
- package/tests/native-parity-harness.test.mjs +9 -1
- package/tests/native-parity.test.mjs +23 -1
- package/tests/optional-feature-migration-frontend.test.mjs +72 -0
- package/tests/optional-feature-migration.test.mjs +142 -0
- package/tests/session-summary-core.test.mjs +491 -0
- package/tests/session-summary-preferences.test.mjs +103 -0
package/public/index.html
CHANGED
|
@@ -126,6 +126,8 @@
|
|
|
126
126
|
</div>
|
|
127
127
|
</section>
|
|
128
128
|
|
|
129
|
+
<section id="optionalFeatureMigrationSurface" class="optional-feature-migration-surface" role="status" aria-live="polite" aria-atomic="false" hidden></section>
|
|
130
|
+
|
|
129
131
|
<!-- Flagged phone/tablet shell: route content reuses the canonical nodes below. -->
|
|
130
132
|
<div id="mobileShellV2" class="mobile-shell-v2" hidden>
|
|
131
133
|
<p id="mobileLifecycleAnnouncer" class="sr-only" role="status" aria-live="polite" aria-atomic="true"></p>
|
|
@@ -172,6 +174,24 @@
|
|
|
172
174
|
</section>
|
|
173
175
|
</div>
|
|
174
176
|
|
|
177
|
+
<dialog id="optionalFeatureMigrationDialog" class="optional-feature-migration-dialog" aria-labelledby="optionalFeatureMigrationDialogTitle" aria-describedby="optionalFeatureMigrationDialogMessage">
|
|
178
|
+
<div class="optional-feature-migration-dialog-content">
|
|
179
|
+
<h2 id="optionalFeatureMigrationDialogTitle">Migrate optional features</h2>
|
|
180
|
+
<p id="optionalFeatureMigrationDialogMessage" class="muted">Choose the previously available companions to restore. This is the only confirmation before Pi installs them sequentially.</p>
|
|
181
|
+
<div id="optionalFeatureMigrationDialogSummary" class="optional-feature-migration-dialog-summary" role="status" aria-live="polite"></div>
|
|
182
|
+
<details id="optionalFeatureMigrationChooseDetails" class="optional-feature-migration-choose">
|
|
183
|
+
<summary>Choose features</summary>
|
|
184
|
+
<div id="optionalFeatureMigrationChoices" class="optional-feature-migration-choices"></div>
|
|
185
|
+
</details>
|
|
186
|
+
<div id="optionalFeatureMigrationDialogError" class="optional-feature-migration-dialog-error" role="alert" hidden></div>
|
|
187
|
+
<menu>
|
|
188
|
+
<button id="optionalFeatureMigrationCancelButton" type="button">Cancel</button>
|
|
189
|
+
<button id="optionalFeatureMigrationLaterButton" type="button">Later</button>
|
|
190
|
+
<button id="optionalFeatureMigrationConfirmButton" class="primary" type="button">Migrate selected</button>
|
|
191
|
+
</menu>
|
|
192
|
+
</div>
|
|
193
|
+
</dialog>
|
|
194
|
+
|
|
175
195
|
<main class="layout">
|
|
176
196
|
<section class="chat-panel">
|
|
177
197
|
<header class="terminal-tabs-shell">
|
|
@@ -189,6 +209,7 @@
|
|
|
189
209
|
<div class="terminal-sidebar-actions" aria-label="Tab and workspace actions">
|
|
190
210
|
<button id="splitTabButton" class="terminal-split-button" type="button" aria-label="Split the active terminal to the right" aria-pressed="false"><svg class="terminal-split-icon terminal-split-icon-split" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><rect x="4" y="5" width="16" height="14" rx="2" fill="none" stroke="currentColor" stroke-width="2"/><path d="M12 5v14M15 12h4m0 0-2-2m2 2-2 2" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg><svg class="terminal-split-icon terminal-split-icon-unsplit" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><rect x="4" y="5" width="16" height="14" rx="2" fill="none" stroke="currentColor" stroke-width="2"/><path d="M12 5v14M19 12h-4m0 0 2-2m-2 2 2 2" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
|
|
191
211
|
<button id="workspaceSaveButton" class="terminal-workspace-save-button" type="button" aria-label="Save workspace" data-tooltip="Save workspace: • Captures all open tabs, sessions, order, custom groups, and the active tab. • Available when at least one tab is open."><svg class="terminal-workspace-save-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M5 4h11l3 3v13H5z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/><path d="M8 4v6h7V4M8 19v-5h8v5" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/></svg></button>
|
|
212
|
+
<button id="summaryHeaderButton" class="terminal-summary-button" type="button" aria-label="Open session summary" aria-controls="sessionSummaryOverlay" hidden><svg class="composer-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M5 4h14v16H5z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/><path d="M8 8h8M8 12h8M8 16h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg></button>
|
|
192
213
|
<button id="commandPaletteButton" class="terminal-command-palette-button" type="button" aria-label="Open command palette" data-tooltip="Command palette: • Search and run actions, slash commands, models, and tabs. • Shortcut: Ctrl/Cmd+K."><svg class="composer-icon command-palette-launcher-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M5 7.5h14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M5 12h9" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M5 16.5h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M17 14.5 19.5 17 17 19.5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
|
|
193
214
|
<button id="workspaceDashboardToggleButton" class="terminal-dashboard-button" type="button" aria-controls="workspaceDashboard" aria-expanded="false" aria-label="Show workspace overview" data-tooltip="Workspace overview: • Shows current tab, cwd, model, context, session, and queue. • Opens common workspace/session actions from one place."><svg class="composer-icon workspace-overview-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M4 11.4 12 4l8 7.4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.5 10.5V20h11v-9.5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M10 20v-5h4v5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
|
|
194
215
|
</div>
|
|
@@ -364,6 +385,7 @@
|
|
|
364
385
|
<div id="composerActionsPanel" class="composer-actions-panel" aria-label="Composer actions">
|
|
365
386
|
<button id="newSessionButton" class="composer-new-button" type="button" data-composer-action-id="new" data-composer-action-span="1">New</button>
|
|
366
387
|
<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>
|
|
388
|
+
<button id="summaryActionButton" class="composer-icon-button composer-summary-button" type="button" data-composer-action-id="summary" data-composer-action-span="1" aria-label="Open session summary" aria-controls="sessionSummaryOverlay" hidden><svg class="composer-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M5 4h14v16H5z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/><path d="M8 8h8M8 12h8M8 16h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg></button>
|
|
367
389
|
<button
|
|
368
390
|
id="gitWorkflowButton"
|
|
369
391
|
class="composer-icon-button composer-git-button"
|
|
@@ -454,6 +476,9 @@
|
|
|
454
476
|
<button id="optionsSettingsButton" class="composer-publish-menu-item composer-options-menu-item" type="button" role="menuitem" data-command="/settings">
|
|
455
477
|
<span>Settings</span>
|
|
456
478
|
</button>
|
|
479
|
+
<button id="optionsSummarySetupButton" class="composer-publish-menu-item composer-options-menu-item" type="button" role="menuitem" data-command="/summary-setup" hidden>
|
|
480
|
+
<span>Session Summary Setup</span>
|
|
481
|
+
</button>
|
|
457
482
|
<button id="optionsWorkflowSetupButton" class="composer-publish-menu-item composer-options-menu-item" type="button" role="menuitem" data-command="/workflow-setup" hidden>
|
|
458
483
|
<span>Workflow Permission Setup</span>
|
|
459
484
|
</button>
|
|
@@ -1243,6 +1268,23 @@
|
|
|
1243
1268
|
</form>
|
|
1244
1269
|
</dialog>
|
|
1245
1270
|
|
|
1271
|
+
<section id="sessionSummaryOverlay" class="session-summary-overlay" role="dialog" aria-modal="false" aria-labelledby="sessionSummaryOverlayTitle" aria-describedby="sessionSummaryOverlayStatus" hidden>
|
|
1272
|
+
<header class="session-summary-overlay-header">
|
|
1273
|
+
<div>
|
|
1274
|
+
<span class="session-summary-overlay-kicker">Session summary</span>
|
|
1275
|
+
<h2 id="sessionSummaryOverlayTitle">Session summary</h2>
|
|
1276
|
+
<p id="sessionSummaryOverlayMeta" class="muted"></p>
|
|
1277
|
+
</div>
|
|
1278
|
+
<button id="sessionSummaryOverlayCloseButton" class="session-summary-overlay-close" type="button" aria-label="Close session summary">Close</button>
|
|
1279
|
+
</header>
|
|
1280
|
+
<p id="sessionSummaryOverlayStatus" class="session-summary-overlay-status muted" role="status" aria-live="polite"></p>
|
|
1281
|
+
<div id="sessionSummaryOverlayBody" class="session-summary-overlay-body"></div>
|
|
1282
|
+
<footer class="session-summary-overlay-actions">
|
|
1283
|
+
<button id="sessionSummaryOverlayCopyButton" type="button">Copy Markdown</button>
|
|
1284
|
+
<button id="sessionSummaryOverlayRefreshButton" class="primary" type="button">Refresh</button>
|
|
1285
|
+
</footer>
|
|
1286
|
+
</section>
|
|
1287
|
+
|
|
1246
1288
|
<dialog id="extensionDialog" class="extension-dialog" aria-labelledby="dialogTitle" aria-describedby="dialogMessage">
|
|
1247
1289
|
<form id="dialogForm" method="dialog">
|
|
1248
1290
|
<h2 id="dialogTitle">Pi request</h2>
|
package/public/styles.css
CHANGED
|
@@ -3140,6 +3140,233 @@ button.subagent-gate-attempt:focus-visible {
|
|
|
3140
3140
|
50% { opacity: 1; transform: scale(1); }
|
|
3141
3141
|
}
|
|
3142
3142
|
|
|
3143
|
+
.optional-feature-migration-surface {
|
|
3144
|
+
position: fixed;
|
|
3145
|
+
top: max(0.65rem, env(safe-area-inset-top));
|
|
3146
|
+
left: 50%;
|
|
3147
|
+
z-index: 190;
|
|
3148
|
+
width: min(46rem, calc(100vw - 2rem));
|
|
3149
|
+
transform: translateX(-50%);
|
|
3150
|
+
pointer-events: none;
|
|
3151
|
+
}
|
|
3152
|
+
.optional-feature-migration-card {
|
|
3153
|
+
display: grid;
|
|
3154
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
3155
|
+
gap: 0.65rem;
|
|
3156
|
+
align-items: center;
|
|
3157
|
+
max-height: min(48vh, 24rem);
|
|
3158
|
+
overflow: auto;
|
|
3159
|
+
padding: 0.7rem 0.78rem;
|
|
3160
|
+
border: 1px solid rgba(180, 190, 254, 0.28);
|
|
3161
|
+
border-radius: 0.86rem;
|
|
3162
|
+
color: var(--ctp-text);
|
|
3163
|
+
background: linear-gradient(145deg, rgba(var(--ctp-base-rgb), 0.97), rgba(var(--ctp-crust-rgb), 0.97));
|
|
3164
|
+
box-shadow: 0 1rem 2.4rem rgba(var(--ctp-crust-rgb), 0.62), 0 0 1.2rem rgba(137, 180, 250, 0.12);
|
|
3165
|
+
pointer-events: auto;
|
|
3166
|
+
}
|
|
3167
|
+
.optional-feature-migration-card.phase-action-required,
|
|
3168
|
+
.optional-feature-migration-card.phase-degraded,
|
|
3169
|
+
.optional-feature-migration-card.phase-partial {
|
|
3170
|
+
border-color: rgba(249, 226, 175, 0.48);
|
|
3171
|
+
}
|
|
3172
|
+
.optional-feature-migration-card.phase-complete {
|
|
3173
|
+
border-color: rgba(166, 227, 161, 0.46);
|
|
3174
|
+
}
|
|
3175
|
+
.optional-feature-migration-card:focus-visible {
|
|
3176
|
+
outline: 3px solid rgba(148, 226, 213, 0.5);
|
|
3177
|
+
outline-offset: 3px;
|
|
3178
|
+
}
|
|
3179
|
+
.optional-feature-migration-copy {
|
|
3180
|
+
display: grid;
|
|
3181
|
+
gap: 0.2rem;
|
|
3182
|
+
min-width: 0;
|
|
3183
|
+
}
|
|
3184
|
+
.optional-feature-migration-title {
|
|
3185
|
+
color: rgba(var(--ctp-text-rgb), 0.96);
|
|
3186
|
+
font-size: 0.84rem;
|
|
3187
|
+
}
|
|
3188
|
+
.optional-feature-migration-detail {
|
|
3189
|
+
color: rgba(var(--ctp-subtext-rgb), 0.82);
|
|
3190
|
+
font-size: var(--text-xs);
|
|
3191
|
+
line-height: 1.4;
|
|
3192
|
+
}
|
|
3193
|
+
.optional-feature-migration-actions,
|
|
3194
|
+
.optional-feature-batch-actions {
|
|
3195
|
+
display: flex;
|
|
3196
|
+
flex-wrap: wrap;
|
|
3197
|
+
gap: 0.42rem;
|
|
3198
|
+
justify-content: flex-end;
|
|
3199
|
+
}
|
|
3200
|
+
.optional-feature-migration-actions button,
|
|
3201
|
+
.optional-feature-restart-notice button {
|
|
3202
|
+
min-height: 2rem;
|
|
3203
|
+
padding: 0.3rem 0.58rem;
|
|
3204
|
+
font-size: var(--text-xs);
|
|
3205
|
+
font-weight: 850;
|
|
3206
|
+
}
|
|
3207
|
+
.optional-feature-migration-output {
|
|
3208
|
+
grid-column: 1 / -1;
|
|
3209
|
+
max-height: 7rem;
|
|
3210
|
+
overflow: auto;
|
|
3211
|
+
margin: 0;
|
|
3212
|
+
padding: 0.5rem;
|
|
3213
|
+
border: 1px solid rgba(243, 139, 168, 0.24);
|
|
3214
|
+
border-radius: 0.58rem;
|
|
3215
|
+
background: rgba(var(--ctp-crust-rgb), 0.62);
|
|
3216
|
+
font-size: var(--text-xs);
|
|
3217
|
+
line-height: 1.35;
|
|
3218
|
+
white-space: pre-wrap;
|
|
3219
|
+
}
|
|
3220
|
+
.optional-feature-restart-notice {
|
|
3221
|
+
grid-column: 1 / -1;
|
|
3222
|
+
display: flex;
|
|
3223
|
+
flex-wrap: wrap;
|
|
3224
|
+
gap: 0.45rem;
|
|
3225
|
+
align-items: center;
|
|
3226
|
+
justify-content: flex-end;
|
|
3227
|
+
padding-top: 0.5rem;
|
|
3228
|
+
border-top: 1px solid rgba(166, 227, 161, 0.22);
|
|
3229
|
+
color: var(--ctp-green);
|
|
3230
|
+
font-size: var(--text-xs);
|
|
3231
|
+
font-weight: 800;
|
|
3232
|
+
}
|
|
3233
|
+
.optional-feature-restart-notice span { margin-right: auto; }
|
|
3234
|
+
.optional-feature-migration-dialog {
|
|
3235
|
+
width: min(44rem, calc(100vw - 2rem));
|
|
3236
|
+
max-height: min(86vh, 46rem);
|
|
3237
|
+
overflow: auto;
|
|
3238
|
+
padding: 0;
|
|
3239
|
+
border: 1px solid rgba(180, 190, 254, 0.34);
|
|
3240
|
+
border-radius: 1rem;
|
|
3241
|
+
color: var(--ctp-text);
|
|
3242
|
+
background: linear-gradient(145deg, rgba(var(--ctp-base-rgb), 0.99), rgba(var(--ctp-crust-rgb), 0.99));
|
|
3243
|
+
box-shadow: 0 1.5rem 4rem rgba(var(--ctp-crust-rgb), 0.72);
|
|
3244
|
+
}
|
|
3245
|
+
.optional-feature-migration-dialog::backdrop {
|
|
3246
|
+
background: rgba(var(--ctp-crust-rgb), 0.76);
|
|
3247
|
+
backdrop-filter: blur(4px);
|
|
3248
|
+
}
|
|
3249
|
+
.optional-feature-migration-dialog-content {
|
|
3250
|
+
display: grid;
|
|
3251
|
+
gap: 0.75rem;
|
|
3252
|
+
padding: clamp(1rem, 3vw, 1.4rem);
|
|
3253
|
+
}
|
|
3254
|
+
.optional-feature-migration-dialog h2,
|
|
3255
|
+
.optional-feature-migration-dialog p,
|
|
3256
|
+
.optional-feature-migration-dialog menu { margin: 0; }
|
|
3257
|
+
.optional-feature-migration-dialog-summary {
|
|
3258
|
+
padding: 0.62rem;
|
|
3259
|
+
border: 1px solid rgba(148, 226, 213, 0.24);
|
|
3260
|
+
border-radius: 0.68rem;
|
|
3261
|
+
color: rgba(var(--ctp-text-rgb), 0.9);
|
|
3262
|
+
background: rgba(148, 226, 213, 0.07);
|
|
3263
|
+
font-size: 0.82rem;
|
|
3264
|
+
line-height: 1.45;
|
|
3265
|
+
}
|
|
3266
|
+
.optional-feature-migration-choose {
|
|
3267
|
+
border: 1px solid rgba(180, 190, 254, 0.18);
|
|
3268
|
+
border-radius: 0.72rem;
|
|
3269
|
+
background: rgba(var(--ctp-surface-rgb), 0.22);
|
|
3270
|
+
}
|
|
3271
|
+
.optional-feature-migration-choose > summary {
|
|
3272
|
+
padding: 0.68rem;
|
|
3273
|
+
cursor: pointer;
|
|
3274
|
+
color: var(--ctp-lavender);
|
|
3275
|
+
font-weight: 850;
|
|
3276
|
+
}
|
|
3277
|
+
.optional-feature-migration-choices {
|
|
3278
|
+
display: grid;
|
|
3279
|
+
gap: 0.5rem;
|
|
3280
|
+
padding: 0 0.68rem 0.68rem;
|
|
3281
|
+
}
|
|
3282
|
+
.optional-feature-migration-choice {
|
|
3283
|
+
display: grid;
|
|
3284
|
+
gap: 0.38rem;
|
|
3285
|
+
padding: 0.58rem;
|
|
3286
|
+
border: 1px solid rgba(180, 190, 254, 0.14);
|
|
3287
|
+
border-radius: 0.62rem;
|
|
3288
|
+
background: rgba(var(--ctp-crust-rgb), 0.46);
|
|
3289
|
+
}
|
|
3290
|
+
.optional-feature-migration-choice-label {
|
|
3291
|
+
display: grid;
|
|
3292
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
3293
|
+
gap: 0.55rem;
|
|
3294
|
+
align-items: start;
|
|
3295
|
+
cursor: pointer;
|
|
3296
|
+
}
|
|
3297
|
+
.optional-feature-migration-choice-label input {
|
|
3298
|
+
width: 1.1rem;
|
|
3299
|
+
min-height: 1.1rem;
|
|
3300
|
+
margin-top: 0.12rem;
|
|
3301
|
+
accent-color: var(--ctp-mauve);
|
|
3302
|
+
}
|
|
3303
|
+
.optional-feature-migration-choice-label span {
|
|
3304
|
+
display: grid;
|
|
3305
|
+
gap: 0.16rem;
|
|
3306
|
+
min-width: 0;
|
|
3307
|
+
}
|
|
3308
|
+
.optional-feature-migration-choice-package,
|
|
3309
|
+
.optional-feature-migration-choice-details {
|
|
3310
|
+
color: rgba(var(--ctp-subtext-rgb), 0.76);
|
|
3311
|
+
font-size: var(--text-xs);
|
|
3312
|
+
line-height: 1.4;
|
|
3313
|
+
overflow-wrap: anywhere;
|
|
3314
|
+
}
|
|
3315
|
+
.optional-feature-migration-choice-details > summary {
|
|
3316
|
+
width: fit-content;
|
|
3317
|
+
cursor: pointer;
|
|
3318
|
+
color: var(--ctp-blue);
|
|
3319
|
+
font-weight: 800;
|
|
3320
|
+
}
|
|
3321
|
+
.optional-feature-migration-choice-details > span { display: block; padding-top: 0.3rem; }
|
|
3322
|
+
.optional-feature-migration-dialog-error {
|
|
3323
|
+
color: var(--ctp-red);
|
|
3324
|
+
font-size: 0.82rem;
|
|
3325
|
+
font-weight: 800;
|
|
3326
|
+
}
|
|
3327
|
+
.optional-feature-migration-dialog menu {
|
|
3328
|
+
display: flex;
|
|
3329
|
+
flex-wrap: wrap;
|
|
3330
|
+
gap: 0.55rem;
|
|
3331
|
+
justify-content: flex-end;
|
|
3332
|
+
padding: 0;
|
|
3333
|
+
}
|
|
3334
|
+
|
|
3335
|
+
.optional-feature-batch-toolbar {
|
|
3336
|
+
display: flex;
|
|
3337
|
+
flex-wrap: wrap;
|
|
3338
|
+
justify-content: space-between;
|
|
3339
|
+
gap: 0.48rem;
|
|
3340
|
+
align-items: center;
|
|
3341
|
+
padding: 0.58rem;
|
|
3342
|
+
border: 1px solid rgba(148, 226, 213, 0.18);
|
|
3343
|
+
border-radius: 0.72rem;
|
|
3344
|
+
background: rgba(var(--ctp-surface-rgb), 0.28);
|
|
3345
|
+
}
|
|
3346
|
+
.optional-feature-batch-status {
|
|
3347
|
+
min-width: 0;
|
|
3348
|
+
color: rgba(var(--ctp-subtext-rgb), 0.78);
|
|
3349
|
+
font-size: var(--text-xs);
|
|
3350
|
+
font-weight: 750;
|
|
3351
|
+
line-height: 1.35;
|
|
3352
|
+
}
|
|
3353
|
+
.optional-feature-batch-status.warning { color: var(--ctp-yellow); }
|
|
3354
|
+
.optional-feature-batch-action,
|
|
3355
|
+
.optional-feature-section-install {
|
|
3356
|
+
min-height: 2rem;
|
|
3357
|
+
padding: 0.3rem 0.54rem;
|
|
3358
|
+
color: var(--ctp-teal);
|
|
3359
|
+
border-color: rgba(148, 226, 213, 0.30);
|
|
3360
|
+
font-size: var(--text-xs);
|
|
3361
|
+
font-weight: 850;
|
|
3362
|
+
white-space: nowrap;
|
|
3363
|
+
}
|
|
3364
|
+
.optional-feature-batch-action:not(:disabled):hover,
|
|
3365
|
+
.optional-feature-section-install:not(:disabled):hover {
|
|
3366
|
+
color: #11111b;
|
|
3367
|
+
border-color: transparent;
|
|
3368
|
+
background: linear-gradient(120deg, var(--ctp-teal), var(--ctp-sky));
|
|
3369
|
+
}
|
|
3143
3370
|
.optional-feature-section {
|
|
3144
3371
|
display: grid;
|
|
3145
3372
|
gap: 0.48rem;
|
|
@@ -3155,6 +3382,12 @@ button.subagent-gate-attempt:focus-visible {
|
|
|
3155
3382
|
gap: 0.55rem;
|
|
3156
3383
|
align-items: center;
|
|
3157
3384
|
}
|
|
3385
|
+
.optional-feature-section-actions {
|
|
3386
|
+
display: flex;
|
|
3387
|
+
flex: 0 0 auto;
|
|
3388
|
+
gap: 0.38rem;
|
|
3389
|
+
align-items: center;
|
|
3390
|
+
}
|
|
3158
3391
|
.optional-feature-section-title {
|
|
3159
3392
|
min-width: 0;
|
|
3160
3393
|
color: rgba(var(--ctp-text-rgb), 0.92);
|
|
@@ -3568,6 +3801,35 @@ button.subagent-gate-attempt:focus-visible {
|
|
|
3568
3801
|
border-color: transparent;
|
|
3569
3802
|
background: linear-gradient(120deg, var(--ctp-yellow), var(--ctp-peach));
|
|
3570
3803
|
}
|
|
3804
|
+
@media (max-width: 34rem) {
|
|
3805
|
+
.optional-feature-migration-surface {
|
|
3806
|
+
top: max(0.35rem, env(safe-area-inset-top));
|
|
3807
|
+
width: calc(100vw - 0.7rem);
|
|
3808
|
+
}
|
|
3809
|
+
.optional-feature-migration-card {
|
|
3810
|
+
grid-template-columns: 1fr;
|
|
3811
|
+
max-height: min(52vh, 25rem);
|
|
3812
|
+
}
|
|
3813
|
+
.optional-feature-migration-actions,
|
|
3814
|
+
.optional-feature-batch-actions,
|
|
3815
|
+
.optional-feature-migration-dialog menu { justify-content: stretch; }
|
|
3816
|
+
.optional-feature-migration-actions button,
|
|
3817
|
+
.optional-feature-batch-actions button,
|
|
3818
|
+
.optional-feature-migration-dialog menu button { flex: 1 1 8rem; }
|
|
3819
|
+
.optional-feature-batch-toolbar,
|
|
3820
|
+
.optional-feature-section-header {
|
|
3821
|
+
align-items: stretch;
|
|
3822
|
+
flex-direction: column;
|
|
3823
|
+
}
|
|
3824
|
+
.optional-feature-section-actions { justify-content: space-between; }
|
|
3825
|
+
.optional-feature-batch-action,
|
|
3826
|
+
.optional-feature-section-install { width: 100%; }
|
|
3827
|
+
.optional-feature-row { grid-template-columns: 1fr; }
|
|
3828
|
+
.optional-feature-actions {
|
|
3829
|
+
grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
|
|
3830
|
+
justify-items: stretch;
|
|
3831
|
+
}
|
|
3832
|
+
}
|
|
3571
3833
|
|
|
3572
3834
|
.terminal-tabs-shell {
|
|
3573
3835
|
position: relative;
|
|
@@ -4263,7 +4525,7 @@ button.subagent-gate-attempt:focus-visible {
|
|
|
4263
4525
|
}
|
|
4264
4526
|
body.terminal-tabs-left .terminal-sidebar-actions {
|
|
4265
4527
|
display: grid;
|
|
4266
|
-
grid-template-columns: repeat(
|
|
4528
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
4267
4529
|
gap: 0.42rem;
|
|
4268
4530
|
width: 100%;
|
|
4269
4531
|
padding: 0.42rem;
|
|
@@ -16506,3 +16768,85 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
|
|
|
16506
16768
|
.issue-wizard-actions #issueWizardCopyButton { margin-left: 0; }
|
|
16507
16769
|
.issue-wizard-actions #issueWizardBotButton { grid-column: 1 / -1; }
|
|
16508
16770
|
}
|
|
16771
|
+
|
|
16772
|
+
/* Native Pi session-summary controls and non-blocking Markdown panel. */
|
|
16773
|
+
.terminal-summary-button {
|
|
16774
|
+
position: relative;
|
|
16775
|
+
flex: 0 0 auto;
|
|
16776
|
+
display: inline-grid;
|
|
16777
|
+
place-items: center;
|
|
16778
|
+
width: 34px;
|
|
16779
|
+
height: 30px;
|
|
16780
|
+
padding: 0;
|
|
16781
|
+
border: 1px solid rgba(203, 166, 247, 0.28);
|
|
16782
|
+
border-radius: 0.62rem;
|
|
16783
|
+
color: var(--ctp-mauve);
|
|
16784
|
+
background: linear-gradient(120deg, rgba(203, 166, 247, 0.13), rgba(137, 180, 250, 0.08)), rgba(var(--ctp-crust-rgb), 0.58);
|
|
16785
|
+
}
|
|
16786
|
+
.terminal-summary-button:hover:not(:disabled),
|
|
16787
|
+
.terminal-summary-button:focus-visible {
|
|
16788
|
+
color: #11111b;
|
|
16789
|
+
border-color: transparent;
|
|
16790
|
+
background: linear-gradient(120deg, var(--ctp-mauve), var(--ctp-blue));
|
|
16791
|
+
}
|
|
16792
|
+
.terminal-summary-button svg { width: 1.08rem; height: 1.08rem; }
|
|
16793
|
+
.terminal-summary-button[aria-busy="true"] svg { animation: terminal-summary-pulse 1.1s ease-in-out infinite alternate; }
|
|
16794
|
+
@keyframes terminal-summary-pulse { to { opacity: 0.38; transform: scale(0.9); } }
|
|
16795
|
+
.native-settings-textarea-field { min-width: 0; }
|
|
16796
|
+
.native-settings-textarea {
|
|
16797
|
+
box-sizing: border-box;
|
|
16798
|
+
width: 100%;
|
|
16799
|
+
min-height: 6rem;
|
|
16800
|
+
resize: vertical;
|
|
16801
|
+
line-height: 1.45;
|
|
16802
|
+
}
|
|
16803
|
+
.session-summary-overlay {
|
|
16804
|
+
position: fixed;
|
|
16805
|
+
z-index: 146;
|
|
16806
|
+
top: clamp(4.5rem, 10vh, 7.5rem);
|
|
16807
|
+
right: clamp(0.75rem, 3vw, 2.5rem);
|
|
16808
|
+
display: grid;
|
|
16809
|
+
grid-template-rows: auto auto minmax(0, 1fr) auto;
|
|
16810
|
+
width: min(42rem, calc(100vw - 1.5rem));
|
|
16811
|
+
max-height: min(44rem, calc(var(--visual-viewport-height, 100dvh) - 6rem));
|
|
16812
|
+
overflow: hidden;
|
|
16813
|
+
border: 1px solid rgba(203, 166, 247, 0.42);
|
|
16814
|
+
border-radius: 1rem;
|
|
16815
|
+
background: linear-gradient(145deg, rgba(var(--ctp-mantle-rgb), 0.99), rgba(var(--ctp-crust-rgb), 0.98));
|
|
16816
|
+
box-shadow: 0 1.4rem 4rem rgba(var(--ctp-crust-rgb), 0.58), 0 0 1.6rem rgba(203, 166, 247, 0.16);
|
|
16817
|
+
}
|
|
16818
|
+
.session-summary-overlay[hidden] { display: none; }
|
|
16819
|
+
.session-summary-overlay-header,
|
|
16820
|
+
.session-summary-overlay-actions {
|
|
16821
|
+
display: flex;
|
|
16822
|
+
align-items: center;
|
|
16823
|
+
gap: 0.65rem;
|
|
16824
|
+
padding: 0.75rem 0.9rem;
|
|
16825
|
+
}
|
|
16826
|
+
.session-summary-overlay-header {
|
|
16827
|
+
border-bottom: 1px solid rgba(203, 166, 247, 0.16);
|
|
16828
|
+
background: rgba(203, 166, 247, 0.05);
|
|
16829
|
+
}
|
|
16830
|
+
.session-summary-overlay-heading { flex: 1 1 auto; min-width: 0; }
|
|
16831
|
+
.session-summary-overlay-heading h2 { margin: 0; overflow: hidden; color: var(--ctp-mauve); font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
|
|
16832
|
+
.session-summary-overlay-meta { margin: 0.18rem 0 0; overflow: hidden; color: var(--ctp-subtext0); font-size: var(--text-xs); text-overflow: ellipsis; white-space: nowrap; }
|
|
16833
|
+
.session-summary-overlay-status { margin: 0; padding: 0.55rem 0.9rem; color: var(--ctp-subtext1); background: rgba(var(--ctp-surface-rgb), 0.22); font-size: var(--text-xs); line-height: 1.4; }
|
|
16834
|
+
.session-summary-overlay-status.error { color: var(--ctp-red); background: rgba(243, 139, 168, 0.08); }
|
|
16835
|
+
.session-summary-overlay-body { min-height: 9rem; overflow: auto; padding: 0.9rem 1rem 1.25rem; color: var(--ctp-text); line-height: 1.55; }
|
|
16836
|
+
.session-summary-overlay-body > :first-child { margin-top: 0; }
|
|
16837
|
+
.session-summary-overlay-body > :last-child { margin-bottom: 0; }
|
|
16838
|
+
.session-summary-overlay-actions { justify-content: flex-end; border-top: 1px solid rgba(203, 166, 247, 0.16); }
|
|
16839
|
+
.session-summary-overlay-actions button { min-width: 5.5rem; }
|
|
16840
|
+
|
|
16841
|
+
@media (max-width: 720px), (max-device-width: 720px), (pointer: coarse) and (hover: none) {
|
|
16842
|
+
.terminal-summary-button { width: 32px; min-height: 28px; border-radius: 0.58rem; }
|
|
16843
|
+
.session-summary-overlay {
|
|
16844
|
+
inset: auto 0 0;
|
|
16845
|
+
width: 100vw;
|
|
16846
|
+
max-height: min(76dvh, calc(var(--visual-viewport-height, 100dvh) - env(safe-area-inset-top) - 0.5rem));
|
|
16847
|
+
border-radius: 1rem 1rem 0 0;
|
|
16848
|
+
}
|
|
16849
|
+
.session-summary-overlay-body { min-height: 8rem; }
|
|
16850
|
+
.session-summary-overlay-actions { padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
|
|
16851
|
+
.session-summary-overlay-actions button { flex: 1 1 0; min-width: 0; }
|
|
16852
|
+
}
|