@firstpick/pi-package-webui 0.10.8 → 0.11.0

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.
Files changed (43) hide show
  1. package/DEVELOPMENT.md +12 -2
  2. package/README.md +4 -2
  3. package/TECHNICAL.md +7 -1
  4. package/bin/pi-webui.mjs +26 -16
  5. package/package.json +14 -8
  6. package/public/app.js +48 -24
  7. package/public/codex-speed-mode.mjs +36 -0
  8. package/public/index.html +6 -5
  9. package/public/service-worker.js +2 -1
  10. package/tests/boot-failure-diagnostics.test.mjs +2 -2
  11. package/tests/codex-fast-mode-static.test.mjs +12 -11
  12. package/tests/codex-speed-mode-browser-state.test.mjs +149 -0
  13. package/tests/codex-speed-mode.test.mjs +36 -0
  14. package/tests/composer-action-grid-reorder-static.test.mjs +2 -2
  15. package/tests/control-visibility-static.test.mjs +2 -2
  16. package/tests/controls-layout-static.test.mjs +2 -2
  17. package/tests/events-tree-context-menu-static.test.mjs +2 -2
  18. package/tests/fast-mode-client-static.test.mjs +1 -1
  19. package/tests/feature-decision-output-popup-static.test.mjs +1 -1
  20. package/tests/file-viewer-image-static.test.mjs +2 -2
  21. package/tests/fixtures/fake-pi.mjs +18 -8
  22. package/tests/guided-git-activation-static.test.mjs +2 -2
  23. package/tests/guided-git-fallback-ui-static.test.mjs +2 -2
  24. package/tests/host-peer-dependencies.test.mjs +24 -0
  25. package/tests/http-endpoints-harness.test.mjs +52 -0
  26. package/tests/intercom-conversation-viewer-static.test.mjs +2 -2
  27. package/tests/main-output-loading-static.test.mjs +2 -2
  28. package/tests/middle-button-drag-scroll-static.test.mjs +2 -2
  29. package/tests/mobile-continuity-tablet-static.test.mjs +2 -2
  30. package/tests/mobile-foundation-static.test.mjs +2 -2
  31. package/tests/mobile-phone-experience-static.test.mjs +1 -1
  32. package/tests/native-update-lifecycle.test.mjs +3 -1
  33. package/tests/open-issue-wizard-static.test.mjs +1 -1
  34. package/tests/optional-feature-prompt-impact-static.test.mjs +2 -2
  35. package/tests/persistent-ui-layout-static.test.mjs +2 -2
  36. package/tests/prompt-input-vertical-scroll-static.test.mjs +2 -2
  37. package/tests/questionnaire-dialog.test.mjs +2 -2
  38. package/tests/session-sampling-ui-static.test.mjs +2 -2
  39. package/tests/side-panel-section-height-removal-static.test.mjs +2 -2
  40. package/tests/subagent-observability-static.test.mjs +2 -2
  41. package/tests/syntax-highlighting-static.test.mjs +2 -2
  42. package/tests/theme-customizer-static.test.mjs +1 -1
  43. package/tests/windows-drive-cwd-picker-static.test.mjs +2 -2
@@ -57,10 +57,10 @@ assert.match(css, /\.sampling-parameter-control\.unsupported:hover:not\(\.sampli
57
57
  assert.match(css, /\.sampling-parameter-control\.unsupported:focus-visible:not\(\.sampling-tooltip-dismissed\) > \.sampling-parameter-unsupported-tooltip/, "keyboard focus should reveal dismissible unsupported reasons");
58
58
  assert.match(css, /\.sampling-parameter-unsupported-tooltip\.sampling-tooltip-below/, "bounded placement should support flipping below top-edge rows");
59
59
  assert.match(css, /pointer-events: auto;/, "a visible unsupported tooltip should remain pointer-hoverable");
60
- assert.match(serviceWorker, /const CACHE_NAME = "pi-webui-pwa-v155"/, "native-control assets should advance the cache identity");
60
+ assert.match(serviceWorker, /const CACHE_NAME = "pi-webui-pwa-v156"/, "native-control assets should advance the cache identity");
61
61
  assert.match(serviceWorker, /"\/sampling-parameter-controls\.mjs"/, "the pure sampling module should be part of the offline app shell");
62
62
  assert.match(html, /styles\.css\?v=154/, "the changed stylesheet should have a new revision");
63
- assert.match(html, /app\.js\?v=184/, "the changed app module should have a new revision");
63
+ assert.match(html, /app\.js\?v=185/, "the changed app module should have a new revision");
64
64
 
65
65
  // --- Browser state behavior -------------------------------------------------
66
66
 
@@ -28,7 +28,7 @@ assert.match(app, /const UI_LAYOUT_SIDE_PANEL_FIELDS = \["placement", "sectionLa
28
28
  assert.match(app, /function clearRemovedSidePanelSectionHeightState\(\)[\s\S]*localStorage\.removeItem\(REMOVED_SIDE_PANEL_SECTION_HEIGHT_STORAGE_KEY\)[\s\S]*record\.field === "sidePanel" && record\.subfield === "sectionHeights"/, "startup should remove the retired cache and pending mutations");
29
29
  assert.match(app, /clearRemovedSidePanelSectionHeightState\(\);\s*restoreDurableUiLayoutPendingJournal\(\);/, "retired height state should be cleared before pending layout restoration");
30
30
  assert.match(html, /styles\.css\?v=154/, "removing section resize styles should advance the stylesheet revision");
31
- assert.match(html, /app\.js\?v=184/, "removing section resize behavior should advance the app revision");
32
- assert.match(serviceWorker, /const CACHE_NAME = "pi-webui-pwa-v155"/, "removing browser assets should advance the PWA cache identity");
31
+ assert.match(html, /app\.js\?v=185/, "removing section resize behavior should advance the app revision");
32
+ assert.match(serviceWorker, /const CACHE_NAME = "pi-webui-pwa-v156"/, "removing browser assets should advance the PWA cache identity");
33
33
 
34
34
  console.log("side-panel-section-height-removal-static.test.mjs passed");
@@ -28,7 +28,7 @@ assert.match(app, /const SUBAGENT_ASYNC_WIDGET_KEY = "subagent-async"[\s\S]*case
28
28
  assert.match(app, /for \(const \[key, value\] of widgets\)[\s\S]*if \(key === SUBAGENT_ASYNC_WIDGET_KEY\) continue;/, "stale cached async-status widgets should remain hidden defensively");
29
29
  assert.match(css, /\.subagent-source-badge[\s\S]*text-overflow: ellipsis[\s\S]*@media \(max-width: 720px\)/, "source badges should remain compact and responsive");
30
30
  assert.match(html, /Managed and registered Pi agent runs[\s\S]*External agents/, "help should explain managed, registered, and external groups");
31
- assert.match(html, /styles\.css\?v=154[\s\S]*app\.js\?v=184/, "browser assets should use the current subagent-observability revisions");
32
- assert.match(worker, /pi-webui-pwa-v155/, "PWA cache identity should advance with subagent widget suppression");
31
+ assert.match(html, /styles\.css\?v=154[\s\S]*app\.js\?v=185/, "browser assets should use the current subagent-observability revisions");
32
+ assert.match(worker, /pi-webui-pwa-v156/, "PWA cache identity should advance with subagent widget suppression");
33
33
 
34
34
  console.log("subagent-observability-static.test.mjs passed");
@@ -60,9 +60,9 @@ assert.match(css, /\.markdown-code \.syntax-comment \{[^}]*font-style: italic;/,
60
60
 
61
61
  // --- Offline/PWA startup closure and coherent revisions ---
62
62
  assert.match(serviceWorker, /"\/syntax-highlight\.mjs",/, "the eagerly imported tokenizer must be part of the offline app shell");
63
- assert.match(serviceWorker, /const CACHE_NAME = "pi-webui-pwa-v155"/, "adding a startup module should advance the PWA cache identity");
63
+ assert.match(serviceWorker, /const CACHE_NAME = "pi-webui-pwa-v156"/, "adding a startup module should advance the PWA cache identity");
64
64
  assert.match(html, /styles\.css\?v=154/, "new token styles should advance the stylesheet revision");
65
- assert.match(html, /data-app-src="\/app\.js\?v=184"/, "new renderer wiring should advance the app module revision");
65
+ assert.match(html, /data-app-src="\/app\.js\?v=185"/, "new renderer wiring should advance the app module revision");
66
66
  assert.match(pkg, /node --check public\/syntax-highlight\.mjs/, "the package check should syntax-check the startup-critical tokenizer");
67
67
 
68
68
  const appShell = serviceWorker.slice(serviceWorker.indexOf("const APP_SHELL"), serviceWorker.indexOf("];", serviceWorker.indexOf("const APP_SHELL")));
@@ -34,7 +34,7 @@ assert.match(html, /role="alert" hidden>[\s\S]*Replace this exact target\?/, "ov
34
34
 
35
35
  assert.match(app, /from "\.\/theme-contract\.mjs"/, "frontend should consume the shared browser-safe theme contract");
36
36
  assert.match(serviceWorker, /"\/theme-contract\.mjs"/, "the PWA app shell should cache the startup-critical theme contract");
37
- assert.match(serviceWorker, /const CACHE_NAME = "pi-webui-pwa-v155"/, "adding the theme contract to the startup graph should advance the PWA cache identity");
37
+ assert.match(serviceWorker, /const CACHE_NAME = "pi-webui-pwa-v156"/, "adding the theme contract to the startup graph should advance the PWA cache identity");
38
38
  assert.match(pkg, /node --check public\/theme-contract\.mjs/, "the package check should syntax-check the startup-critical theme contract");
39
39
  assert.match(app, /function themeDraftFromCatalog\(theme, name = theme\?\.name\)[\s\S]*colors: cloneThemeDraft\(theme\?\.colors \|\| \{\}\)/, "catalog metadata should be projected into a schema-only editable draft");
40
40
  assert.match(app, /for \(const \{ name, label \} of group\.tokens\)/, "visual controls should render from the exact shared token inventory");
@@ -75,7 +75,7 @@ assert.match(development, /virtual \*\*This PC\*\* response with an empty cwd an
75
75
  assert.ok(packageJson.files.includes("TECHNICAL.md"), "the published package should include its advanced user reference");
76
76
  assert.ok(packageJson.files.includes("DEVELOPMENT.md"), "the published package should include its contributor guide");
77
77
  assert.match(html, /styles\.css\?v=154/, "the existing picker layout should retain its stylesheet revision");
78
- assert.match(html, /app\.js\?v=184/, "the changed picker behavior should advance the app revision");
79
- assert.match(serviceWorker, /pi-webui-pwa-v155/, "the changed browser assets should advance the PWA cache identity");
78
+ assert.match(html, /app\.js\?v=185/, "the changed picker behavior should advance the app revision");
79
+ assert.match(serviceWorker, /pi-webui-pwa-v156/, "the changed browser assets should advance the PWA cache identity");
80
80
 
81
81
  console.log("windows-drive-cwd-picker-static.test.mjs passed");