@firstpick/pi-package-webui 0.9.9 → 0.10.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.
- package/DEVELOPMENT.md +42 -13
- package/README.md +7 -7
- package/TECHNICAL.md +8 -8
- package/bin/pi-webui.mjs +197 -63
- package/index.ts +23 -33
- package/lib/git-workflow-preferences.mjs +51 -12
- package/lib/tui-model-profile-selector.mjs +183 -0
- package/lib/tui-resource-selector.mjs +173 -0
- package/package.json +1 -1
- package/public/app.js +220 -73
- package/public/index.html +2 -2
- package/public/service-worker.js +1 -1
- package/public/styles.css +63 -15
- package/tests/boot-failure-diagnostics.test.mjs +3 -3
- package/tests/browser/intercom-conversation-viewer.spec.mjs +76 -53
- package/tests/browser/user-noticeable-fixes.spec.mjs +51 -0
- package/tests/codex-fast-mode-static.test.mjs +2 -2
- package/tests/composer-action-grid-reorder-static.test.mjs +3 -3
- package/tests/control-visibility-static.test.mjs +3 -3
- package/tests/controls-layout-static.test.mjs +3 -3
- package/tests/durable-rpc-supervisor-harness.test.mjs +9 -0
- package/tests/events-tree-context-menu-static.test.mjs +3 -3
- package/tests/fast-mode-client-static.test.mjs +1 -1
- package/tests/feature-decision-output-popup-static.test.mjs +2 -2
- package/tests/file-viewer-image-static.test.mjs +3 -3
- package/tests/fixtures/fake-pi.mjs +3 -3
- package/tests/guided-git-activation-static.test.mjs +24 -12
- package/tests/guided-git-fallback-runtime.test.mjs +209 -270
- package/tests/guided-git-fallback-ui-static.test.mjs +2 -2
- package/tests/guided-git-message-reliability-static.test.mjs +2 -1
- package/tests/guided-git-optional-feature.test.mjs +8 -5
- package/tests/http-endpoints-harness.test.mjs +22 -4
- package/tests/intercom-conversation-viewer-static.test.mjs +7 -6
- package/tests/intercom-tag-layout-static.test.mjs +35 -16
- package/tests/intercom-tag-overflow-layout.test.mjs +87 -0
- package/tests/main-output-loading-static.test.mjs +3 -3
- package/tests/middle-button-drag-scroll-static.test.mjs +3 -3
- package/tests/mobile-continuity-tablet-static.test.mjs +3 -3
- package/tests/mobile-foundation-static.test.mjs +3 -3
- package/tests/mobile-phone-experience-static.test.mjs +1 -1
- package/tests/mobile-static.test.mjs +11 -6
- package/tests/open-issue-wizard-static.test.mjs +1 -1
- package/tests/persistent-ui-layout-static.test.mjs +3 -3
- package/tests/prompt-input-vertical-scroll-static.test.mjs +3 -3
- package/tests/questionnaire-dialog.test.mjs +3 -3
- package/tests/remote-auth-settings-harness.test.mjs +18 -3
- package/tests/resource-tui-extension.test.mjs +2 -1
- package/tests/session-sampling-ui-static.test.mjs +3 -3
- package/tests/side-panel-section-height-removal-static.test.mjs +3 -3
- package/tests/subagent-observability-static.test.mjs +2 -2
- package/tests/syntax-highlighting-static.test.mjs +3 -3
- package/tests/theme-customizer-static.test.mjs +1 -1
- package/tests/tui-model-profile-selector.test.mjs +102 -0
- package/tests/tui-resource-selector.test.mjs +74 -0
- package/tests/webui-settings-locking.test.mjs +32 -1
- package/tests/windows-drive-cwd-picker-static.test.mjs +3 -3
|
@@ -27,8 +27,8 @@ assert.doesNotMatch(layout, /sectionHeightMin|sectionHeightMax|validateSectionHe
|
|
|
27
27
|
assert.match(app, /const UI_LAYOUT_SIDE_PANEL_FIELDS = \["placement", "sectionLayout", "collapsedSectionIds", "hiddenSectionIds", "collapsedPanels", "panelWidths"\];/, "the browser durable layout field list should omit section heights");
|
|
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
|
-
assert.match(html, /styles\.css\?v=
|
|
31
|
-
assert.match(html, /app\.js\?v=
|
|
32
|
-
assert.match(serviceWorker, /const CACHE_NAME = "pi-webui-pwa-
|
|
30
|
+
assert.match(html, /styles\.css\?v=145/, "removing section resize styles should advance the stylesheet revision");
|
|
31
|
+
assert.match(html, /app\.js\?v=177/, "removing section resize behavior should advance the app revision");
|
|
32
|
+
assert.match(serviceWorker, /const CACHE_NAME = "pi-webui-pwa-v145"/, "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=
|
|
32
|
-
assert.match(worker, /pi-webui-pwa-
|
|
31
|
+
assert.match(html, /styles\.css\?v=145[\s\S]*app\.js\?v=177/, "browser assets should use the current subagent-observability revisions");
|
|
32
|
+
assert.match(worker, /pi-webui-pwa-v145/, "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-
|
|
64
|
-
assert.match(html, /styles\.css\?v=
|
|
65
|
-
assert.match(html, /data-app-src="\/app\.js\?v=
|
|
63
|
+
assert.match(serviceWorker, /const CACHE_NAME = "pi-webui-pwa-v145"/, "adding a startup module should advance the PWA cache identity");
|
|
64
|
+
assert.match(html, /styles\.css\?v=145/, "new token styles should advance the stylesheet revision");
|
|
65
|
+
assert.match(html, /data-app-src="\/app\.js\?v=177"/, "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-
|
|
37
|
+
assert.match(serviceWorker, /const CACHE_NAME = "pi-webui-pwa-v145"/, "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");
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import { KeybindingsManager, setKeybindings, TUI_KEYBINDINGS } from "@earendil-works/pi-tui";
|
|
3
|
+
import { TuiModelProfileSelectorComponent } from "../lib/tui-model-profile-selector.mjs";
|
|
4
|
+
|
|
5
|
+
const theme = {
|
|
6
|
+
fg: (_color, text) => text,
|
|
7
|
+
bold: (text) => text,
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
function createSelector(config) {
|
|
11
|
+
const selected = [];
|
|
12
|
+
let cancelled = 0;
|
|
13
|
+
const selector = new TuiModelProfileSelectorComponent(
|
|
14
|
+
{
|
|
15
|
+
title: "Tools Model Profile",
|
|
16
|
+
subtitle: "Choose a profile to edit. This does not switch the active model.",
|
|
17
|
+
configuredModelKeys: [],
|
|
18
|
+
...config,
|
|
19
|
+
},
|
|
20
|
+
theme,
|
|
21
|
+
{
|
|
22
|
+
onSelect: (model) => selected.push(model),
|
|
23
|
+
onCancel: () => cancelled++,
|
|
24
|
+
},
|
|
25
|
+
);
|
|
26
|
+
return { selector, selected, cancelled: () => cancelled };
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
setKeybindings(new KeybindingsManager(TUI_KEYBINDINGS));
|
|
30
|
+
|
|
31
|
+
{
|
|
32
|
+
const models = Array.from({ length: 15 }, (_, index) => ({
|
|
33
|
+
provider: index % 2 === 0 ? "alpha" : "beta",
|
|
34
|
+
id: `model-${String(index).padStart(2, "0")}`,
|
|
35
|
+
name: `Model ${index}`,
|
|
36
|
+
}));
|
|
37
|
+
const active = models[12];
|
|
38
|
+
const { selector, selected } = createSelector({
|
|
39
|
+
models,
|
|
40
|
+
activeModelKey: `${active.provider}\0${active.id}`,
|
|
41
|
+
configuredModelKeys: [`${active.provider}\0${active.id}`],
|
|
42
|
+
});
|
|
43
|
+
const rendered = selector.render(120).join("\n");
|
|
44
|
+
assert.match(rendered, /model-12 \[alpha\] \[active\] \[profile\]/, "the picker should open around the active model and mark configured profiles");
|
|
45
|
+
assert.match(rendered, /Model Name: Model 12 · Profile: configured/);
|
|
46
|
+
|
|
47
|
+
selector.handleInput("\x1b[B");
|
|
48
|
+
selector.handleInput("\r");
|
|
49
|
+
assert.equal(selected[0], models[13], "selection should return the exact model object rather than decoding its label");
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
{
|
|
53
|
+
const models = Array.from({ length: 15 }, (_, index) => ({
|
|
54
|
+
provider: "alpha",
|
|
55
|
+
id: `model-${String(index).padStart(2, "0")}`,
|
|
56
|
+
name: `Model ${index}`,
|
|
57
|
+
}));
|
|
58
|
+
const active = models[12];
|
|
59
|
+
const { selector, selected } = createSelector({ models, activeModelKey: `${active.provider}\0${active.id}` });
|
|
60
|
+
for (const character of "model-00") selector.handleInput(character);
|
|
61
|
+
selector.handleInput("\r");
|
|
62
|
+
assert.equal(selected[0], models[0], "a narrowing search should select its first match instead of retaining a stale list index");
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
{
|
|
66
|
+
const models = [
|
|
67
|
+
{ provider: "alpha", id: "shared-a", name: "Shared Model" },
|
|
68
|
+
{ provider: "beta", id: "shared-b", name: "Shared Model" },
|
|
69
|
+
{ provider: "gamma", id: "other", name: "Other" },
|
|
70
|
+
];
|
|
71
|
+
const { selector, selected } = createSelector({ models, activeModelKey: "" });
|
|
72
|
+
for (const character of "beta") selector.handleInput(character);
|
|
73
|
+
assert.equal(selector.getSearchInput().getValue(), "beta");
|
|
74
|
+
assert.doesNotMatch(selector.render(100).join("\n"), /\[alpha\]/);
|
|
75
|
+
selector.handleInput("\r");
|
|
76
|
+
assert.equal(selected[0], models[1], "provider search should disambiguate models with the same display name");
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
{
|
|
80
|
+
const { selector, cancelled } = createSelector({
|
|
81
|
+
models: [{ provider: "alpha", id: "one", name: "One" }],
|
|
82
|
+
activeModelKey: "",
|
|
83
|
+
});
|
|
84
|
+
for (const character of "missing") selector.handleInput(character);
|
|
85
|
+
assert.match(selector.render(100).join("\n"), /No matching models/);
|
|
86
|
+
selector.handleInput("\x03");
|
|
87
|
+
assert.equal(selector.getSearchInput().getValue(), "", "Ctrl+C should clear search before cancelling");
|
|
88
|
+
assert.equal(cancelled(), 0);
|
|
89
|
+
selector.handleInput("\x03");
|
|
90
|
+
assert.equal(cancelled(), 1);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
{
|
|
94
|
+
const { selector, cancelled } = createSelector({
|
|
95
|
+
models: [{ provider: "alpha", id: "one", name: "One" }],
|
|
96
|
+
activeModelKey: "",
|
|
97
|
+
});
|
|
98
|
+
selector.handleInput("\x1b");
|
|
99
|
+
assert.equal(cancelled(), 1, "Escape should cancel model profile selection");
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
console.log("tui-model-profile-selector.test.mjs passed");
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import { KeybindingsManager, setKeybindings, TUI_KEYBINDINGS } from "@earendil-works/pi-tui";
|
|
3
|
+
import { TuiResourceSelectorComponent } from "../lib/tui-resource-selector.mjs";
|
|
4
|
+
|
|
5
|
+
const theme = {
|
|
6
|
+
fg: (_color, text) => text,
|
|
7
|
+
bold: (text) => text,
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
function createSelector(enabledResourceNames = ["alpha", "gamma"]) {
|
|
11
|
+
const saved = [];
|
|
12
|
+
let cancelled = 0;
|
|
13
|
+
const selector = new TuiResourceSelectorComponent(
|
|
14
|
+
{
|
|
15
|
+
title: "Tools Configuration",
|
|
16
|
+
subtitle: "Session only. Changes apply only after Ctrl+S.",
|
|
17
|
+
resources: ["alpha", "beta", "gamma"],
|
|
18
|
+
enabledResourceNames,
|
|
19
|
+
},
|
|
20
|
+
theme,
|
|
21
|
+
{
|
|
22
|
+
onSave: (selection) => saved.push(selection),
|
|
23
|
+
onCancel: () => cancelled++,
|
|
24
|
+
},
|
|
25
|
+
);
|
|
26
|
+
return { selector, saved, cancelled: () => cancelled };
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
setKeybindings(new KeybindingsManager(TUI_KEYBINDINGS));
|
|
30
|
+
|
|
31
|
+
{
|
|
32
|
+
const { selector, saved } = createSelector();
|
|
33
|
+
selector.handleInput("\x1b[B");
|
|
34
|
+
selector.handleInput("\r");
|
|
35
|
+
assert.match(selector.render(100).join("\n"), /3\/3 enabled.*\(unsaved\)/);
|
|
36
|
+
selector.handleInput("\x13");
|
|
37
|
+
assert.deepEqual(saved, [["alpha", "beta", "gamma"]], "Ctrl+S should save the current explicit selection");
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
{
|
|
41
|
+
const { selector, saved } = createSelector();
|
|
42
|
+
selector.handleInput("b");
|
|
43
|
+
selector.handleInput("e");
|
|
44
|
+
assert.equal(selector.getSearchInput().getValue(), "be");
|
|
45
|
+
assert.doesNotMatch(selector.render(100).join("\n"), /alpha/);
|
|
46
|
+
|
|
47
|
+
selector.handleInput("\x18");
|
|
48
|
+
selector.handleInput("\x13");
|
|
49
|
+
assert.deepEqual(saved.at(-1), ["alpha", "gamma"], "Ctrl+X should clear only resources matching the active search");
|
|
50
|
+
|
|
51
|
+
selector.handleInput("\x01");
|
|
52
|
+
selector.handleInput("\x13");
|
|
53
|
+
assert.deepEqual(saved.at(-1), ["alpha", "beta", "gamma"], "Ctrl+A should enable only resources matching the active search");
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
{
|
|
57
|
+
const { selector, cancelled } = createSelector();
|
|
58
|
+
selector.handleInput("z");
|
|
59
|
+
selector.handleInput("z");
|
|
60
|
+
assert.match(selector.render(100).join("\n"), /No matching resources/);
|
|
61
|
+
selector.handleInput("\x03");
|
|
62
|
+
assert.equal(selector.getSearchInput().getValue(), "", "Ctrl+C should clear a non-empty search before cancelling");
|
|
63
|
+
assert.equal(cancelled(), 0);
|
|
64
|
+
selector.handleInput("\x03");
|
|
65
|
+
assert.equal(cancelled(), 1, "Ctrl+C on an empty search should cancel");
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
{
|
|
69
|
+
const { selector, cancelled } = createSelector();
|
|
70
|
+
selector.handleInput("\x1b");
|
|
71
|
+
assert.equal(cancelled(), 1, "Escape should cancel without saving");
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
console.log("tui-resource-selector.test.mjs passed");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import assert from "node:assert/strict";
|
|
2
2
|
import { execFile, spawn } from "node:child_process";
|
|
3
3
|
import { once } from "node:events";
|
|
4
|
-
import { mkdtemp, readFile, readdir, rm, stat, writeFile } from "node:fs/promises";
|
|
4
|
+
import { mkdtemp, readFile, readdir, rm, stat, utimes, writeFile } from "node:fs/promises";
|
|
5
5
|
import { homedir, tmpdir } from "node:os";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { promisify } from "node:util";
|
|
@@ -170,9 +170,40 @@ try {
|
|
|
170
170
|
assert.equal(JSON.parse(await readFile(liveLockRecord, "utf8")).token, "live");
|
|
171
171
|
await rm(liveLockRecord);
|
|
172
172
|
|
|
173
|
+
const liveIncompleteRecord = path.join(liveLockDirectory, `${process.pid}-${Date.now() - 100}-incomplete.json`);
|
|
174
|
+
await writeFile(liveIncompleteRecord, "", "utf8");
|
|
175
|
+
await assert.rejects(
|
|
176
|
+
withWebuiSettingsLock(liveLockTarget, () => true, { timeoutMs: 35, retryMs: 5 }),
|
|
177
|
+
(error) => error?.code === "WEBUI_SETTINGS_LOCK_TIMEOUT",
|
|
178
|
+
"a newly created incomplete record from a live owner must retain a short write grace period",
|
|
179
|
+
);
|
|
180
|
+
await rm(liveIncompleteRecord);
|
|
181
|
+
|
|
173
182
|
const exited = spawn(process.execPath, ["-e", "process.exit(0)"], { stdio: "ignore" });
|
|
174
183
|
const deadPid = exited.pid;
|
|
175
184
|
await once(exited, "exit");
|
|
185
|
+
const deadIncompleteRecord = path.join(liveLockDirectory, `${deadPid}-${Date.now()}-incomplete.json`);
|
|
186
|
+
await writeFile(deadIncompleteRecord, "", "utf8");
|
|
187
|
+
assert.equal(
|
|
188
|
+
await withWebuiSettingsLock(liveLockTarget, () => "recovered incomplete", { timeoutMs: 250, retryMs: 5 }),
|
|
189
|
+
"recovered incomplete",
|
|
190
|
+
"an incomplete record from a dead owner must not block future saves",
|
|
191
|
+
);
|
|
192
|
+
await assert.rejects(readFile(deadIncompleteRecord, "utf8"), { code: "ENOENT" });
|
|
193
|
+
|
|
194
|
+
await mkdir(liveLockDirectory, { recursive: true });
|
|
195
|
+
const malformedLockRecord = path.join(liveLockDirectory, "malformed.json");
|
|
196
|
+
await writeFile(malformedLockRecord, "{", "utf8");
|
|
197
|
+
const staleTime = new Date(Date.now() - 5_000);
|
|
198
|
+
await utimes(malformedLockRecord, staleTime, staleTime);
|
|
199
|
+
assert.equal(
|
|
200
|
+
await withWebuiSettingsLock(liveLockTarget, () => "recovered malformed", { timeoutMs: 250, retryMs: 5 }),
|
|
201
|
+
"recovered malformed",
|
|
202
|
+
"an old malformed record without owner metadata must not block future saves",
|
|
203
|
+
);
|
|
204
|
+
await assert.rejects(readFile(malformedLockRecord, "utf8"), { code: "ENOENT" });
|
|
205
|
+
|
|
206
|
+
await mkdir(liveLockDirectory, { recursive: true });
|
|
176
207
|
const deadLockRecord = path.join(liveLockDirectory, "dead.json");
|
|
177
208
|
await writeFile(deadLockRecord, `${JSON.stringify({ pid: deadPid, token: "dead", state: "active" })}\n`, "utf8");
|
|
178
209
|
assert.equal(await withWebuiSettingsLock(liveLockTarget, () => "recovered", { timeoutMs: 250, retryMs: 5 }), "recovered");
|
|
@@ -74,8 +74,8 @@ assert.match(technical, /working-directory picker accepts a direct path[\s\S]*\*
|
|
|
74
74
|
assert.match(development, /virtual \*\*This PC\*\* response with an empty cwd and `selectable: false`/i, "the contributor guide should record the server/browser virtual-view contract");
|
|
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
|
-
assert.match(html, /styles\.css\?v=
|
|
78
|
-
assert.match(html, /app\.js\?v=
|
|
79
|
-
assert.match(serviceWorker, /pi-webui-pwa-
|
|
77
|
+
assert.match(html, /styles\.css\?v=145/, "the existing picker layout should retain its stylesheet revision");
|
|
78
|
+
assert.match(html, /app\.js\?v=177/, "the changed picker behavior should advance the app revision");
|
|
79
|
+
assert.match(serviceWorker, /pi-webui-pwa-v145/, "the changed browser assets should advance the PWA cache identity");
|
|
80
80
|
|
|
81
81
|
console.log("windows-drive-cwd-picker-static.test.mjs passed");
|