@firstpick/pi-package-webui 0.6.2 → 0.6.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/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=63" />
15
+ <link rel="stylesheet" href="/styles.css?v=66" />
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">
@@ -331,6 +331,39 @@
331
331
  <iframe id="terminalSplitFrame" class="terminal-split-frame" title="Independent split terminal"></iframe>
332
332
  </section>
333
333
 
334
+ <section id="fileViewerPane" class="file-viewer-pane" aria-label="File viewer and editor" hidden>
335
+ <div id="fileViewerResizeHandle" class="file-viewer-resize-handle" role="separator" aria-orientation="vertical" aria-label="Resize file viewer width" tabindex="0" title="Drag to resize file viewer"></div>
336
+ <header class="file-viewer-header">
337
+ <div class="file-viewer-title-block">
338
+ <span class="file-viewer-kicker">File</span>
339
+ <strong id="fileViewerTitle">No file open</strong>
340
+ <span id="fileViewerMeta" class="file-viewer-meta muted"></span>
341
+ </div>
342
+ <div class="file-viewer-actions">
343
+ <button id="fileViewerOpenDefaultButton" type="button">Open in Default Editor</button>
344
+ <button id="fileViewerSaveButton" class="primary" type="button" disabled>Save</button>
345
+ <button id="fileViewerCloseButton" type="button" aria-label="Close file viewer">Close</button>
346
+ </div>
347
+ </header>
348
+ <p id="fileViewerHelp" class="file-viewer-help muted">Markdown files can be viewed as Preview or Source. Select text in the file, add a one-line comment, then Send to include the selection and surrounding context in this Pi session.</p>
349
+ <div id="fileSelectionBar" class="file-selection-bar" hidden>
350
+ <span id="fileSelectionSummary" class="file-selection-summary">No selection</span>
351
+ <input id="fileSelectionCommentInput" class="file-selection-comment" type="text" placeholder="Comment for Pi about this selection…" autocomplete="off" />
352
+ <button id="fileSelectionSendButton" class="primary" type="button">Send</button>
353
+ </div>
354
+ <div class="file-viewer-mode-row">
355
+ <div class="file-viewer-mode-toggle" role="group" aria-label="File view mode">
356
+ <button id="fileViewerSourceModeButton" type="button" aria-pressed="true">Source</button>
357
+ <button id="fileViewerPreviewModeButton" type="button" aria-pressed="false">Preview</button>
358
+ </div>
359
+ </div>
360
+ <div class="file-viewer-content">
361
+ <textarea id="fileViewerEditor" class="file-viewer-editor" spellcheck="false" aria-label="File contents"></textarea>
362
+ <div id="fileViewerPreview" class="file-viewer-preview markdown-body" tabindex="0" hidden></div>
363
+ </div>
364
+ <p id="fileViewerStatus" class="file-viewer-status muted" role="status" aria-live="polite"></p>
365
+ </section>
366
+
334
367
  <button id="sidePanelBackdrop" class="side-panel-backdrop" type="button" aria-label="Close side panel" hidden></button>
335
368
  <aside id="sidePanel" class="side-panel">
336
369
  <div class="side-panel-header">
@@ -458,6 +491,32 @@
458
491
  </div>
459
492
  </div>
460
493
  </section>
494
+ <section class="side-panel-section collapsed" data-side-panel-section="files">
495
+ <h2>
496
+ <button id="sidePanelSectionToggleFiles" class="side-panel-section-toggle" type="button" aria-expanded="false" aria-controls="sidePanelSectionFiles" aria-label="Expand Files section" title="Expand Files section" data-side-panel-section-toggle="files">
497
+ <span class="side-panel-section-label">Files</span>
498
+ <span class="side-panel-section-chevron" aria-hidden="true">›</span>
499
+ </button>
500
+ </h2>
501
+ <div id="sidePanelSectionFiles" class="side-panel-section-content" hidden>
502
+ <div class="file-tree-panel">
503
+ <div class="file-tree-toolbar">
504
+ <div>
505
+ <strong>Workspace files</strong>
506
+ <p id="fileTreeCwd" class="file-tree-cwd muted"></p>
507
+ </div>
508
+ <button id="fileTreeRefreshButton" type="button">Refresh</button>
509
+ </div>
510
+ <div class="file-tree-search" role="search">
511
+ <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" />
512
+ <button id="fileTreeSearchClearButton" type="button" aria-label="Clear file search" hidden disabled>Clear</button>
513
+ </div>
514
+ <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>
515
+ <div id="fileTreeRoot" class="file-tree" role="tree" aria-label="Workspace file tree"></div>
516
+ <p id="fileTreeStatus" class="file-tree-status muted" role="status" aria-live="polite"></p>
517
+ </div>
518
+ </div>
519
+ </section>
461
520
  <section class="side-panel-section collapsed" data-side-panel-section="optional-features">
462
521
  <h2>
463
522
  <button id="sidePanelSectionToggleOptionalFeatures" class="side-panel-section-toggle" type="button" aria-expanded="false" aria-controls="sidePanelSectionOptionalFeatures" aria-label="Expand Optional features section" title="Expand Optional features section" data-side-panel-section-toggle="optional-features">
@@ -488,6 +547,20 @@
488
547
  <div id="codexUsageBox" class="codex-usage-box muted">Checking Codex usage…</div>
489
548
  </div>
490
549
  </section>
550
+ <section class="side-panel-section collapsed" data-side-panel-section="claude-usage">
551
+ <h2>
552
+ <button id="sidePanelSectionToggleClaudeUsage" class="side-panel-section-toggle" type="button" aria-expanded="false" aria-controls="sidePanelSectionClaudeUsage" aria-label="Expand Claude Usage section" title="Expand Claude Usage section" data-side-panel-section-toggle="claude-usage">
553
+ <span class="side-panel-section-label">Claude Usage</span>
554
+ <span class="side-panel-section-chevron" aria-hidden="true">›</span>
555
+ </button>
556
+ </h2>
557
+ <div id="sidePanelSectionClaudeUsage" class="side-panel-section-content" hidden>
558
+ <div class="claude-usage-actions">
559
+ <button id="refreshClaudeUsageButton" type="button">Refresh usage</button>
560
+ </div>
561
+ <div id="claudeUsageBox" class="claude-usage-box muted">Checking Claude usage…</div>
562
+ </div>
563
+ </section>
491
564
  <section class="side-panel-section collapsed" data-side-panel-section="session">
492
565
  <h2>
493
566
  <button id="sidePanelSectionToggleSession" class="side-panel-section-toggle" type="button" aria-expanded="false" aria-controls="sidePanelSectionSession" aria-label="Expand Session section" title="Expand Session section" data-side-panel-section-toggle="session">
@@ -548,6 +621,11 @@
548
621
  </aside>
549
622
  </main>
550
623
 
624
+ <div id="fileContextMenu" class="file-context-menu" role="menu" hidden>
625
+ <button type="button" role="menuitem" data-file-menu-action="open-default">Open in Default Editor</button>
626
+ <button type="button" role="menuitem" data-file-menu-action="open-webui">Open in WebUI</button>
627
+ </div>
628
+
551
629
  <dialog id="extensionDialog" class="extension-dialog">
552
630
  <form id="dialogForm" method="dialog">
553
631
  <h2 id="dialogTitle">Pi request</h2>
@@ -780,6 +858,6 @@
780
858
  </form>
781
859
  </dialog>
782
860
 
783
- <script type="module" src="/app.js?v=62"></script>
861
+ <script type="module" src="/app.js?v=66"></script>
784
862
  </body>
785
863
  </html>