@firstpick/pi-package-webui 0.6.7 → 0.6.9
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 +14 -9
- package/bin/pi-webui.mjs +477 -157
- package/lib/WEBUI_TUI_NATIVE_PARITY.json +13 -0
- package/lib/auth-actions.mjs +30 -51
- package/lib/codex-usage-auth.mjs +61 -0
- package/lib/git-command-errors.mjs +68 -0
- package/lib/git-workflow-preferences.mjs +34 -1
- package/lib/native-export-payload.mjs +13 -0
- package/lib/npm-command.mjs +105 -0
- package/lib/process-tree.mjs +53 -0
- package/lib/trust-boundaries.mjs +1 -0
- package/package.json +8 -8
- package/public/app.js +1864 -238
- package/public/index.html +217 -102
- package/public/service-worker.js +1 -1
- package/public/styles.css +1144 -209
- package/tests/app-runner-process-tree-harness.test.mjs +162 -0
- package/tests/codex-usage-auth.test.mjs +65 -0
- package/tests/fixtures/fake-pi.mjs +77 -3
- package/tests/git-command-errors.test.mjs +42 -0
- package/tests/git-workflow-preferences.test.mjs +14 -2
- package/tests/http-endpoints-harness.test.mjs +240 -3
- package/tests/mobile-static.test.mjs +138 -27
- package/tests/native-export-payload.test.mjs +26 -0
- package/tests/native-parity-harness.test.mjs +1 -1
- package/tests/native-parity.test.mjs +11 -2
- package/tests/npm-command.test.mjs +64 -0
- package/tests/remote-auth-settings-harness.test.mjs +33 -1
- package/tests/resource-defaults-helper.test.mjs +126 -0
- package/tests/session-auth-harness.test.mjs +2 -2
- package/webui-rpc-helper.mjs +47 -16
package/public/index.html
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
13
13
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
14
14
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
15
|
-
<link rel="stylesheet" href="/styles.css?v=
|
|
15
|
+
<link rel="stylesheet" href="/styles.css?v=80" />
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
|
18
18
|
<button id="sidePanelExpandButton" class="side-panel-expand-button" type="button" aria-controls="sidePanel" aria-expanded="false" aria-label="Expand side panel" title="Expand side panel">
|
|
@@ -73,9 +73,12 @@
|
|
|
73
73
|
</div>
|
|
74
74
|
</div>
|
|
75
75
|
</div>
|
|
76
|
-
<
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
<div class="terminal-sidebar-actions" aria-label="Tab and workspace actions">
|
|
77
|
+
<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><span class="terminal-sidebar-action-label terminal-sidebar-action-label-split">Split</span><span class="terminal-sidebar-action-label terminal-sidebar-action-label-unsplit">Unsplit</span></button>
|
|
78
|
+
<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><span class="terminal-sidebar-action-label">Commands</span></button>
|
|
79
|
+
<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><span class="terminal-sidebar-action-label">Overview</span></button>
|
|
80
|
+
</div>
|
|
81
|
+
<div id="remoteAccessIndicator" class="remote-access-indicator" role="status" aria-live="polite" hidden>Remote access open</div>
|
|
79
82
|
<button id="closeAllTabsButton" class="terminal-close-all-button" type="button" aria-label="Close all terminal tabs">Close all Tabs</button>
|
|
80
83
|
</header>
|
|
81
84
|
<section id="workspaceDashboard" class="workspace-dashboard" aria-label="Workspace dashboard"></section>
|
|
@@ -125,6 +128,7 @@
|
|
|
125
128
|
>Follow-up</button>
|
|
126
129
|
<div id="sessionSkillTags" class="composer-skill-tags" aria-live="polite" hidden></div>
|
|
127
130
|
<button id="conversationModeChip" class="composer-conversation-mode-chip" type="button" aria-live="polite" hidden>Voice: off</button>
|
|
131
|
+
<button id="workflowModeChip" class="composer-workflow-mode-chip" type="button" aria-live="polite" aria-pressed="true" hidden>Workflow: on</button>
|
|
128
132
|
</div>
|
|
129
133
|
<div id="busyPromptBehaviorMenu" class="composer-busy-mode-menu" role="menu" aria-labelledby="busyPromptBehaviorTag" hidden>
|
|
130
134
|
<button class="composer-busy-mode-menu-item" type="button" role="menuitemradio" data-busy-prompt-behavior="followUp" aria-checked="true">
|
|
@@ -136,7 +140,7 @@
|
|
|
136
140
|
<span class="composer-busy-mode-menu-description">Guide the active run immediately.</span>
|
|
137
141
|
</button>
|
|
138
142
|
</div>
|
|
139
|
-
<textarea id="promptInput" rows="1" enterkeyhint="enter" placeholder="Ask Pi…" autofocus></textarea>
|
|
143
|
+
<textarea id="promptInput" rows="1" enterkeyhint="enter" placeholder="Ask Pi…" role="combobox" aria-autocomplete="list" aria-controls="commandSuggest" aria-expanded="false" autofocus></textarea>
|
|
140
144
|
<button
|
|
141
145
|
id="attachButton"
|
|
142
146
|
class="composer-icon-button composer-attach-button"
|
|
@@ -153,6 +157,14 @@
|
|
|
153
157
|
<div id="composerActionsPanel" class="composer-actions-panel" aria-label="Composer actions">
|
|
154
158
|
<button id="newSessionButton" class="composer-new-button" type="button">New</button>
|
|
155
159
|
<button id="compactButton" class="composer-compact-button" type="button" title="Compact the current Pi session context">Compact</button>
|
|
160
|
+
<button
|
|
161
|
+
id="workflowModeButton"
|
|
162
|
+
class="composer-workflow-mode-button"
|
|
163
|
+
type="button"
|
|
164
|
+
aria-pressed="false"
|
|
165
|
+
data-tooltip="Workflow Mode: generate and run reusable JavaScript orchestration for substantive prompts."
|
|
166
|
+
hidden
|
|
167
|
+
><span>Workflow</span></button>
|
|
156
168
|
<button
|
|
157
169
|
id="gitWorkflowButton"
|
|
158
170
|
class="composer-icon-button composer-git-button"
|
|
@@ -214,7 +226,7 @@
|
|
|
214
226
|
aria-haspopup="menu"
|
|
215
227
|
aria-expanded="false"
|
|
216
228
|
aria-controls="optionsMenu"
|
|
217
|
-
data-tooltip="Options: command palette, Guided Git Setup, Git-footer Visibility, natural conversation, resume, reload, remote, name, clone, settings, export, fork, or tree."
|
|
229
|
+
data-tooltip="Options: command palette, Safety Guard Setup, Guided Git Setup, Git-footer Visibility, natural conversation, resume, reload, remote, name, clone, settings, export, fork, or tree."
|
|
218
230
|
><svg class="composer-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M4 7h16M4 12h16M4 17h16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><circle cx="8" cy="7" r="1.6" fill="currentColor"/><circle cx="16" cy="12" r="1.6" fill="currentColor"/><circle cx="11" cy="17" r="1.6" fill="currentColor"/></svg></button>
|
|
219
231
|
<div id="optionsMenu" class="composer-publish-menu-panel composer-options-menu-panel composer-auto-height-menu-panel" role="menu" aria-label="Common Pi options">
|
|
220
232
|
<button id="optionsCommandPaletteButton" class="composer-publish-menu-item composer-options-menu-item" type="button" role="menuitem">
|
|
@@ -241,6 +253,9 @@
|
|
|
241
253
|
<button id="optionsSettingsButton" class="composer-publish-menu-item composer-options-menu-item" type="button" role="menuitem" data-command="/settings">
|
|
242
254
|
<span>Settings</span>
|
|
243
255
|
</button>
|
|
256
|
+
<button id="optionsSafetyGuardSetupButton" class="composer-publish-menu-item composer-options-menu-item" type="button" role="menuitem" data-command="/safety-guard-setup" hidden>
|
|
257
|
+
<span>Safety Guard Setup</span>
|
|
258
|
+
</button>
|
|
244
259
|
<button id="optionsGitWorkflowSetupButton" class="composer-publish-menu-item composer-options-menu-item" type="button" role="menuitem" data-command="/git-workflow-setup">
|
|
245
260
|
<span>Guided Git Setup</span>
|
|
246
261
|
</button>
|
|
@@ -371,15 +386,16 @@
|
|
|
371
386
|
</section>
|
|
372
387
|
|
|
373
388
|
<button id="sidePanelBackdrop" class="side-panel-backdrop" type="button" aria-label="Close side panel" hidden></button>
|
|
374
|
-
<aside id="sidePanel" class="side-panel">
|
|
389
|
+
<aside id="sidePanel" class="side-panel" role="dialog" aria-label="Control Deck">
|
|
375
390
|
<div class="side-panel-header">
|
|
376
|
-
<div>
|
|
391
|
+
<div class="side-panel-heading">
|
|
377
392
|
<span class="side-panel-kicker">Pi Web UI</span>
|
|
378
|
-
<strong class="side-panel-title">
|
|
379
|
-
|
|
380
|
-
<
|
|
393
|
+
<strong class="side-panel-title">Control Deck</strong>
|
|
394
|
+
<div class="side-panel-version-row" aria-label="Version and build information">
|
|
395
|
+
<button id="piVersionButton" class="pi-version-button" type="button" aria-label="View Pi release notes" aria-haspopup="dialog" aria-controls="piReleaseNotesDialog" hidden></button>
|
|
396
|
+
<button id="webuiVersionButton" class="webui-version-button" type="button" aria-label="Open Pi Web UI package page" aria-haspopup="dialog" aria-controls="confirmationDialog" hidden></button>
|
|
381
397
|
<span id="webuiDevBadge" class="webui-dev-badge" aria-label="Pi Web UI dev server" hidden>DEV</span>
|
|
382
|
-
</
|
|
398
|
+
</div>
|
|
383
399
|
</div>
|
|
384
400
|
<button id="toggleSidePanelButton" class="side-panel-toggle-button" type="button" aria-controls="sidePanel" aria-expanded="true" aria-label="Collapse side panel" title="Collapse side panel">
|
|
385
401
|
<span class="side-panel-button-icon" aria-hidden="true">
|
|
@@ -398,68 +414,126 @@
|
|
|
398
414
|
</h2>
|
|
399
415
|
<div id="sidePanelSectionControls" class="side-panel-section-content" hidden>
|
|
400
416
|
<div class="side-panel-controls">
|
|
401
|
-
<
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
<
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
<select id="thinkingSelect" title="Thinking level">
|
|
411
|
-
<option value="off">off</option>
|
|
412
|
-
<option value="minimal">minimal</option>
|
|
413
|
-
<option value="low">low</option>
|
|
414
|
-
<option value="medium">medium</option>
|
|
415
|
-
<option value="high">high</option>
|
|
416
|
-
<option value="xhigh">xhigh</option>
|
|
417
|
-
<option value="max">max</option>
|
|
418
|
-
</select>
|
|
419
|
-
<button id="setThinkingButton" type="button">Set thinking</button>
|
|
420
|
-
</div>
|
|
421
|
-
<div class="control-field thinking-visibility-control-field">
|
|
422
|
-
<span class="control-label">Output</span>
|
|
423
|
-
<label class="toggle-control" for="thinkingVisibilityToggle">
|
|
424
|
-
<input id="thinkingVisibilityToggle" type="checkbox" checked />
|
|
425
|
-
<span>
|
|
426
|
-
<span class="toggle-control-label">Show thinking output</span>
|
|
427
|
-
<span id="thinkingVisibilityStatus" class="toggle-control-hint">Visible</span>
|
|
428
|
-
</span>
|
|
429
|
-
</label>
|
|
430
|
-
</div>
|
|
431
|
-
<div class="control-field terminal-tabs-layout-control-field">
|
|
432
|
-
<label for="terminalTabsLayoutSelect">Tabs layout</label>
|
|
433
|
-
<select id="terminalTabsLayoutSelect" title="Terminal tabs layout" aria-describedby="terminalTabsLayoutStatus">
|
|
434
|
-
<option value="top">Top bar</option>
|
|
435
|
-
<option value="left">Left sidebar</option>
|
|
436
|
-
</select>
|
|
437
|
-
<div id="terminalTabsLayoutStatus" class="terminal-tabs-layout-status toggle-control-hint">Top bar</div>
|
|
438
|
-
</div>
|
|
439
|
-
<div class="control-field">
|
|
440
|
-
<label for="themeSelect" id="themeControlLabel" title="Open or close theme search" tabindex="0">Theme</label>
|
|
441
|
-
<div id="themeSchemeToggle" class="theme-scheme-toggle" role="group" aria-label="Theme mode">
|
|
442
|
-
<button type="button" data-scheme-mode="light" aria-pressed="false" title="Always use your light theme">Light</button>
|
|
443
|
-
<button type="button" data-scheme-mode="dark" aria-pressed="false" title="Always use your dark theme">Dark</button>
|
|
444
|
-
<button type="button" data-scheme-mode="auto" aria-pressed="false" title="Follow your system light/dark setting">Auto</button>
|
|
417
|
+
<p class="controls-intro">Session controls affect the active Pi tab. Interface preferences are saved in this browser.</p>
|
|
418
|
+
|
|
419
|
+
<section class="control-group" aria-labelledby="sessionControlsTitle">
|
|
420
|
+
<div class="control-group-header">
|
|
421
|
+
<div class="control-group-heading">
|
|
422
|
+
<h3 id="sessionControlsTitle">Active session</h3>
|
|
423
|
+
<p>Choose how Pi responds in the current tab.</p>
|
|
424
|
+
</div>
|
|
425
|
+
<span class="control-scope-badge">This tab</span>
|
|
445
426
|
</div>
|
|
446
|
-
|
|
447
|
-
<
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
427
|
+
|
|
428
|
+
<div class="control-field">
|
|
429
|
+
<div class="control-field-header">
|
|
430
|
+
<label id="modelControlLabel" for="modelSelect" title="Open or close model search" tabindex="0">Model</label>
|
|
431
|
+
<span class="control-field-context">Provider and model</span>
|
|
432
|
+
</div>
|
|
433
|
+
<input id="modelSearchInput" class="model-search-input" type="search" placeholder="Search models…" autocomplete="off" spellcheck="false" hidden />
|
|
434
|
+
<div class="control-action-row">
|
|
435
|
+
<select id="modelSelect" title="Model"></select>
|
|
436
|
+
<button id="setModelButton" class="control-apply-button" type="button" aria-label="Apply selected model">Apply</button>
|
|
437
|
+
</div>
|
|
438
|
+
<div id="modelSearchResults" class="model-search-results" role="listbox" aria-label="Model search results" hidden></div>
|
|
439
|
+
</div>
|
|
440
|
+
|
|
441
|
+
<div class="control-field">
|
|
442
|
+
<div class="control-field-header">
|
|
443
|
+
<label for="thinkingSelect">Thinking effort</label>
|
|
444
|
+
<span class="control-field-context">Speed and depth</span>
|
|
445
|
+
</div>
|
|
446
|
+
<div class="control-action-row">
|
|
447
|
+
<select id="thinkingSelect" title="Thinking effort">
|
|
448
|
+
<option value="off">off</option>
|
|
449
|
+
<option value="minimal">minimal</option>
|
|
450
|
+
<option value="low">low</option>
|
|
451
|
+
<option value="medium">medium</option>
|
|
452
|
+
<option value="high">high</option>
|
|
453
|
+
<option value="xhigh">xhigh</option>
|
|
454
|
+
<option value="max">max</option>
|
|
455
|
+
</select>
|
|
456
|
+
<button id="setThinkingButton" class="control-apply-button" type="button" aria-label="Apply selected thinking effort">Apply</button>
|
|
457
|
+
</div>
|
|
458
|
+
</div>
|
|
459
|
+
|
|
460
|
+
<div class="control-field thinking-visibility-control-field">
|
|
461
|
+
<span class="control-label">Transcript</span>
|
|
462
|
+
<label class="toggle-control" for="thinkingVisibilityToggle">
|
|
463
|
+
<input id="thinkingVisibilityToggle" type="checkbox" checked />
|
|
464
|
+
<span>
|
|
465
|
+
<span class="toggle-control-label">Show thinking output</span>
|
|
466
|
+
<span id="thinkingVisibilityStatus" class="toggle-control-hint">Visible</span>
|
|
467
|
+
</span>
|
|
468
|
+
</label>
|
|
469
|
+
</div>
|
|
470
|
+
</section>
|
|
471
|
+
|
|
472
|
+
<section class="control-group" aria-labelledby="interfaceControlsTitle">
|
|
473
|
+
<div class="control-group-header">
|
|
474
|
+
<div class="control-group-heading">
|
|
475
|
+
<h3 id="interfaceControlsTitle">Interface</h3>
|
|
476
|
+
<p>Personalise layout, appearance, and alerts.</p>
|
|
477
|
+
</div>
|
|
478
|
+
<span class="control-scope-badge">This browser</span>
|
|
479
|
+
</div>
|
|
480
|
+
|
|
481
|
+
<div class="control-field terminal-tabs-layout-control-field">
|
|
482
|
+
<label for="terminalTabsLayoutSelect">Tab placement</label>
|
|
483
|
+
<select id="terminalTabsLayoutSelect" title="Terminal tabs layout" aria-describedby="terminalTabsLayoutStatus">
|
|
484
|
+
<option value="top">Top bar</option>
|
|
485
|
+
<option value="left">Left sidebar</option>
|
|
486
|
+
</select>
|
|
487
|
+
<div id="terminalTabsLayoutStatus" class="terminal-tabs-layout-status toggle-control-hint">Top bar · saved in this browser</div>
|
|
488
|
+
</div>
|
|
489
|
+
|
|
490
|
+
<div class="control-field theme-control-field">
|
|
491
|
+
<div class="control-field-header">
|
|
492
|
+
<label for="themeSelect" id="themeControlLabel" title="Open or close theme search" tabindex="0">Theme</label>
|
|
493
|
+
<span class="control-field-context">Colour scheme</span>
|
|
494
|
+
</div>
|
|
495
|
+
<div id="themeSchemeToggle" class="theme-scheme-toggle" role="group" aria-label="Theme mode">
|
|
496
|
+
<button type="button" data-scheme-mode="light" aria-pressed="false" title="Always use your light theme">Light</button>
|
|
497
|
+
<button type="button" data-scheme-mode="dark" aria-pressed="false" title="Always use your dark theme">Dark</button>
|
|
498
|
+
<button type="button" data-scheme-mode="auto" aria-pressed="false" title="Follow your system light/dark setting">Auto</button>
|
|
499
|
+
</div>
|
|
500
|
+
<input id="themeSearchInput" class="model-search-input theme-search-input" type="search" placeholder="Search themes…" autocomplete="off" spellcheck="false" hidden />
|
|
501
|
+
<select id="themeSelect" title="Theme"></select>
|
|
502
|
+
<div id="themeSearchResults" class="model-search-results theme-search-results" role="listbox" aria-label="Theme search results" hidden></div>
|
|
503
|
+
</div>
|
|
504
|
+
|
|
505
|
+
<div class="control-field background-control-field">
|
|
506
|
+
<label for="backgroundInput">Custom background</label>
|
|
507
|
+
<input id="backgroundInput" class="background-input" type="file" accept="image/png,image/jpeg,image/webp,image/gif" />
|
|
508
|
+
<div class="background-control-row">
|
|
509
|
+
<button id="backgroundChooseButton" type="button">Choose image</button>
|
|
510
|
+
<button id="backgroundClearButton" class="background-clear-button" type="button" aria-label="Remove custom background" title="Remove custom background" hidden>×</button>
|
|
511
|
+
</div>
|
|
512
|
+
<div id="backgroundStatus" class="background-status muted">Theme default</div>
|
|
513
|
+
</div>
|
|
514
|
+
|
|
515
|
+
<div class="control-field notification-control-field">
|
|
516
|
+
<span class="control-label">Notifications</span>
|
|
517
|
+
<label class="toggle-control" for="agentDoneNotificationsToggle">
|
|
518
|
+
<input id="agentDoneNotificationsToggle" type="checkbox" />
|
|
519
|
+
<span>
|
|
520
|
+
<span class="toggle-control-label">Agent done notifications</span>
|
|
521
|
+
<span id="agentDoneNotificationsStatus" class="toggle-control-hint">Off</span>
|
|
522
|
+
</span>
|
|
523
|
+
</label>
|
|
524
|
+
</div>
|
|
525
|
+
</section>
|
|
526
|
+
|
|
527
|
+
<section id="networkControlField" class="control-group network-control-field" aria-labelledby="remoteAccessControlsTitle" hidden>
|
|
528
|
+
<div class="control-group-header">
|
|
529
|
+
<div class="control-group-heading">
|
|
530
|
+
<h3 id="remoteAccessControlsTitle">Remote access</h3>
|
|
531
|
+
<p>Control trusted-LAN access and PIN protection.</p>
|
|
532
|
+
</div>
|
|
533
|
+
<span class="control-scope-badge warning">Network</span>
|
|
456
534
|
</div>
|
|
457
|
-
<div id="backgroundStatus" class="background-status muted">Theme default</div>
|
|
458
|
-
</div>
|
|
459
|
-
<div id="networkControlField" class="control-field network-control-field" hidden>
|
|
460
|
-
<label>Remote WebUI</label>
|
|
461
535
|
<div id="networkStatus" class="network-status closed">Local only</div>
|
|
462
|
-
<label class="toggle-control remote-auth-toggle" for="remoteAuthToggle">
|
|
536
|
+
<label class="toggle-control remote-auth-toggle" for="remoteAuthToggle" hidden>
|
|
463
537
|
<input id="remoteAuthToggle" type="checkbox" />
|
|
464
538
|
<span>
|
|
465
539
|
<span class="toggle-control-label">Remote PIN auth</span>
|
|
@@ -467,34 +541,34 @@
|
|
|
467
541
|
</span>
|
|
468
542
|
</label>
|
|
469
543
|
<div class="network-action-row">
|
|
470
|
-
<button id="openNetworkButton" type="button">Open
|
|
544
|
+
<button id="openNetworkButton" type="button">Open for remote access</button>
|
|
471
545
|
<button id="showRemoteQrButton" type="button" hidden>Show QR code</button>
|
|
472
546
|
</div>
|
|
473
|
-
</
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
<div class="
|
|
477
|
-
<
|
|
478
|
-
<
|
|
479
|
-
<
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
<option value="stop">Stop Server</option>
|
|
483
|
-
</select>
|
|
484
|
-
<button id="runServerActionButton" type="button" disabled>Run</button>
|
|
547
|
+
</section>
|
|
548
|
+
|
|
549
|
+
<section class="control-group server-control-group" aria-labelledby="serverControlsTitle">
|
|
550
|
+
<div class="control-group-header">
|
|
551
|
+
<div class="control-group-heading">
|
|
552
|
+
<h3 id="serverControlsTitle">Server</h3>
|
|
553
|
+
<p>Maintenance actions may interrupt every open tab.</p>
|
|
554
|
+
</div>
|
|
555
|
+
<span class="control-scope-badge danger">System</span>
|
|
485
556
|
</div>
|
|
486
|
-
<div
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
557
|
+
<div class="control-field server-control-field">
|
|
558
|
+
<label for="serverActionSelect">Choose an action</label>
|
|
559
|
+
<div class="server-action-row">
|
|
560
|
+
<select id="serverActionSelect" title="Server action" aria-label="Server action">
|
|
561
|
+
<option value="" selected>Choose action…</option>
|
|
562
|
+
<option value="restart">Restart Server</option>
|
|
563
|
+
<option value="update">Update Pi & Restart</option>
|
|
564
|
+
<option value="update-all">Update Pi + Packages & Restart</option>
|
|
565
|
+
<option value="stop">Stop Server</option>
|
|
566
|
+
</select>
|
|
567
|
+
<button id="runServerActionButton" type="button" disabled>Run</button>
|
|
568
|
+
</div>
|
|
569
|
+
<div id="serverActionStatus" class="server-action-status muted" role="status" aria-live="polite"></div>
|
|
570
|
+
</div>
|
|
571
|
+
</section>
|
|
498
572
|
</div>
|
|
499
573
|
</div>
|
|
500
574
|
</section>
|
|
@@ -518,7 +592,6 @@
|
|
|
518
592
|
<input id="fileTreeSearchInput" class="file-tree-search-input" type="search" placeholder="Search files and folders…" autocomplete="off" spellcheck="false" aria-label="Search workspace files and folders" />
|
|
519
593
|
<button id="fileTreeSearchClearButton" type="button" aria-label="Clear file search" hidden disabled>Clear</button>
|
|
520
594
|
</div>
|
|
521
|
-
<p class="file-tree-hint muted">Double-click a file to open it in WebUI. Right-click files or folders for WebUI/default-editor actions. Folders expand lazily and start collapsed.</p>
|
|
522
595
|
<div id="fileTreeRoot" class="file-tree" role="tree" aria-label="Workspace file tree"></div>
|
|
523
596
|
<p id="fileTreeStatus" class="file-tree-status muted" role="status" aria-live="polite"></p>
|
|
524
597
|
</div>
|
|
@@ -576,7 +649,7 @@
|
|
|
576
649
|
</button>
|
|
577
650
|
</h2>
|
|
578
651
|
<div id="sidePanelSectionSession" class="side-panel-section-content" hidden>
|
|
579
|
-
<
|
|
652
|
+
<div id="stateDetails" class="session-details" aria-label="Current session details"></div>
|
|
580
653
|
</div>
|
|
581
654
|
</section>
|
|
582
655
|
<section class="side-panel-section collapsed" data-side-panel-section="subagents">
|
|
@@ -590,6 +663,7 @@
|
|
|
590
663
|
</button>
|
|
591
664
|
</h2>
|
|
592
665
|
<div id="sidePanelSectionSubagents" class="side-panel-section-content" hidden>
|
|
666
|
+
<p class="subagents-help"><strong>How to use:</strong> Ask Pi to call the <code>subagent</code> tool in foreground or async mode—for example, “Use a subagent to review this change.” Only active runs launched through that tool appear here.</p>
|
|
593
667
|
<p id="subagentsStatus" class="subagents-status muted" role="status" aria-live="polite">Checking running subagents…</p>
|
|
594
668
|
<div id="subagentsBox" class="subagents-box muted">Checking running subagents…</div>
|
|
595
669
|
</div>
|
|
@@ -650,6 +724,47 @@
|
|
|
650
724
|
<button type="button" role="menuitem" class="danger" data-file-menu-action="delete">Delete…</button>
|
|
651
725
|
</div>
|
|
652
726
|
|
|
727
|
+
<aside id="undoToast" class="undo-toast" aria-live="polite" aria-atomic="true" hidden>
|
|
728
|
+
<span id="undoToastMessage" class="undo-toast-message"></span>
|
|
729
|
+
<span id="undoToastTime" class="undo-toast-time">Undo available for 10 seconds</span>
|
|
730
|
+
<button id="undoToastButton" class="undo-toast-button" type="button">Undo</button>
|
|
731
|
+
<button id="undoToastDismissButton" class="undo-toast-dismiss" type="button" aria-label="Dismiss Undo message">×</button>
|
|
732
|
+
<span class="undo-toast-progress" aria-hidden="true"></span>
|
|
733
|
+
</aside>
|
|
734
|
+
|
|
735
|
+
<dialog id="piReleaseNotesDialog" class="extension-dialog pi-release-notes-dialog" aria-labelledby="piReleaseNotesTitle">
|
|
736
|
+
<form method="dialog">
|
|
737
|
+
<div class="pi-release-notes-header">
|
|
738
|
+
<div>
|
|
739
|
+
<span class="pi-release-notes-kicker">Pi release</span>
|
|
740
|
+
<h2 id="piReleaseNotesTitle">Release notes</h2>
|
|
741
|
+
</div>
|
|
742
|
+
<button id="piReleaseNotesCloseButton" type="button" aria-label="Close Pi release notes">Close</button>
|
|
743
|
+
</div>
|
|
744
|
+
<p id="piReleaseNotesStatus" class="pi-release-notes-status muted" role="status" aria-live="polite"></p>
|
|
745
|
+
<div id="piReleaseNotesBody" class="pi-release-notes-body markdown-body"></div>
|
|
746
|
+
<menu>
|
|
747
|
+
<a id="piReleaseNotesGithubLink" class="pi-release-notes-link" target="_blank" rel="noopener noreferrer" hidden>View on GitHub</a>
|
|
748
|
+
<button value="close">Close</button>
|
|
749
|
+
</menu>
|
|
750
|
+
</form>
|
|
751
|
+
</dialog>
|
|
752
|
+
|
|
753
|
+
<dialog id="confirmationDialog" class="extension-dialog confirmation-dialog">
|
|
754
|
+
<form method="dialog">
|
|
755
|
+
<h2 id="confirmationTitle">Confirm action</h2>
|
|
756
|
+
<p id="confirmationSummary"></p>
|
|
757
|
+
<dl class="confirmation-details">
|
|
758
|
+
<div><dt>Affected</dt><dd id="confirmationAffected"></dd></div>
|
|
759
|
+
<div><dt>Undo</dt><dd id="confirmationUndo"></dd></div>
|
|
760
|
+
</dl>
|
|
761
|
+
<menu>
|
|
762
|
+
<button id="confirmationCancelButton" type="button">Cancel</button>
|
|
763
|
+
<button id="confirmationConfirmButton" class="danger" type="button">Continue</button>
|
|
764
|
+
</menu>
|
|
765
|
+
</form>
|
|
766
|
+
</dialog>
|
|
767
|
+
|
|
653
768
|
<dialog id="extensionDialog" class="extension-dialog">
|
|
654
769
|
<form id="dialogForm" method="dialog">
|
|
655
770
|
<h2 id="dialogTitle">Pi request</h2>
|
|
@@ -768,7 +883,7 @@
|
|
|
768
883
|
<button id="commandPaletteCloseButton" class="command-palette-close-button" type="button" aria-label="Close command palette" title="Close command palette">Close</button>
|
|
769
884
|
</div>
|
|
770
885
|
</div>
|
|
771
|
-
<input id="commandPaletteInput" class="dialog-input command-palette-input" type="search" autocomplete="off" spellcheck="false" placeholder="Search commands, tabs, models, sessions…" aria-label="Search command palette" />
|
|
886
|
+
<input id="commandPaletteInput" class="dialog-input command-palette-input" type="search" autocomplete="off" spellcheck="false" placeholder="Search commands, tabs, models, sessions…" role="combobox" aria-autocomplete="list" aria-controls="commandPaletteList" aria-expanded="true" aria-label="Search command palette" />
|
|
772
887
|
<div id="commandPaletteList" class="command-palette-list" role="listbox" aria-label="Command palette results"></div>
|
|
773
888
|
<p id="commandPaletteHint" class="command-palette-hint muted">Use ↑/↓ then Enter. Escape closes.</p>
|
|
774
889
|
</form>
|
|
@@ -832,7 +947,7 @@
|
|
|
832
947
|
<dialog id="gitFooterVisibilityDialog" class="extension-dialog git-footer-visibility-dialog">
|
|
833
948
|
<form method="dialog">
|
|
834
949
|
<h2>Git-footer Visibility</h2>
|
|
835
|
-
<p class="muted">Select which Git footer cards, buttons, popovers, and modal affordances are visible in the Web UI. Changes
|
|
950
|
+
<p class="muted">Select which Git footer cards, buttons, popovers, and modal affordances are visible in the Web UI. Changes are saved globally through <code>/git-footer-visibility</code> and reused by every Pi session.</p>
|
|
836
951
|
<div class="git-footer-visibility-toolbar" aria-label="Git-footer Visibility quick actions">
|
|
837
952
|
<button id="gitFooterVisibilitySelectAllButton" type="button">Select all</button>
|
|
838
953
|
<button id="gitFooterVisibilitySelectNoneButton" type="button">Select none</button>
|
|
@@ -842,7 +957,7 @@
|
|
|
842
957
|
<menu>
|
|
843
958
|
<button id="gitFooterVisibilityCloseButton" type="button">Cancel</button>
|
|
844
959
|
<button id="gitFooterVisibilityResetButton" type="button">Reset WebUI</button>
|
|
845
|
-
<button id="gitFooterVisibilityApplyButton" class="primary" type="button">
|
|
960
|
+
<button id="gitFooterVisibilityApplyButton" class="primary" type="button">Save globally</button>
|
|
846
961
|
</menu>
|
|
847
962
|
</form>
|
|
848
963
|
</dialog>
|
|
@@ -901,6 +1016,6 @@
|
|
|
901
1016
|
</form>
|
|
902
1017
|
</dialog>
|
|
903
1018
|
|
|
904
|
-
<script type="module" src="/app.js?v=
|
|
1019
|
+
<script type="module" src="/app.js?v=80"></script>
|
|
905
1020
|
</body>
|
|
906
1021
|
</html>
|
package/public/service-worker.js
CHANGED