@firstpick/pi-package-webui 0.7.2 → 0.7.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 +38 -25
- package/bin/pi-webui.mjs +469 -106
- package/index.ts +10 -1
- package/lib/git-live-watcher.mjs +135 -0
- package/lib/git-message-artifacts.mjs +103 -0
- package/lib/git-workflow-preferences.mjs +10 -3
- package/lib/process-tree.mjs +3 -1
- package/lib/webui-output-mode.mjs +97 -0
- package/package.json +7 -6
- package/public/app.js +1170 -97
- package/public/fast-output-live.mjs +179 -0
- package/public/index.html +31 -5
- package/public/service-worker.js +2 -1
- package/public/styles.css +474 -12
- package/tests/app-runner-windows-conpty-harness.test.mjs +140 -0
- package/tests/danger-button-contrast-static.test.mjs +32 -0
- package/tests/fast-mode-client-static.test.mjs +121 -0
- package/tests/fast-mode-output-work.test.mjs +69 -0
- package/tests/fast-mode-sse-harness.test.mjs +204 -0
- package/tests/fast-output-live.test.mjs +106 -0
- package/tests/fixtures/fake-pi.mjs +59 -0
- package/tests/fixtures/fast-mode-output-events.mjs +50 -0
- package/tests/footer-middle-truncation.test.mjs +118 -0
- package/tests/git-live-watcher.test.mjs +93 -0
- package/tests/git-message-artifacts.test.mjs +59 -0
- package/tests/git-panel-live-updates-static.test.mjs +54 -0
- package/tests/git-panel-render-stability-static.test.mjs +1 -1
- package/tests/git-workflow-preferences.test.mjs +8 -2
- package/tests/guided-git-message-reliability-static.test.mjs +38 -0
- package/tests/http-endpoints-harness.test.mjs +61 -5
- package/tests/image-payload-hardening-harness.test.mjs +115 -0
- package/tests/mobile-static.test.mjs +79 -20
- package/tests/pi-footer-calibration-static.test.mjs +55 -0
- package/tests/remote-auth-settings-harness.test.mjs +1 -1
- package/tests/runtime-error-visibility.test.mjs +63 -0
- package/tests/side-panel-context-menu-static.test.mjs +74 -0
- package/tests/webui-output-mode.test.mjs +73 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import { readFile } from "node:fs/promises";
|
|
3
|
+
import { test } from "node:test";
|
|
4
|
+
import { dirname, join } from "node:path";
|
|
5
|
+
import { fileURLToPath } from "node:url";
|
|
6
|
+
|
|
7
|
+
const root = join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
8
|
+
const [app, gitFooterExtension] = await Promise.all([
|
|
9
|
+
readFile(join(root, "public", "app.js"), "utf8"),
|
|
10
|
+
readFile(join(root, "..", "pi-extension-git-footer-status", "index.ts"), "utf8"),
|
|
11
|
+
]);
|
|
12
|
+
const readFunction = (name) => app.match(new RegExp(`(?:async )?function ${name}\\([^]*?\\n\\}`))?.[0] || "";
|
|
13
|
+
|
|
14
|
+
test("PI footer metric always exposes the calibration click action", () => {
|
|
15
|
+
const applyOptions = readFunction("applyGitFooterPiCalibrationOptions");
|
|
16
|
+
assert.match(applyOptions, /if \(chip\?\.key !== "pi"\) return "";/);
|
|
17
|
+
assert.doesNotMatch(applyOptions, /chip\?\.action|FOOTER_PAYLOAD_ACTIONS/);
|
|
18
|
+
assert.match(applyOptions, /void runGitFooterPiCalibration\(\)/);
|
|
19
|
+
assert.match(applyOptions, /ariaBusy/);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
test("PI footer click dispatches exactly /calibrate in the background", () => {
|
|
23
|
+
const runCalibration = readFunction("runGitFooterPiCalibration");
|
|
24
|
+
assert.match(runCalibration, /resolveAvailableCommandName\("calibrate", \{ rpcOnly: true \}\)/);
|
|
25
|
+
assert.match(runCalibration, /await sendPrompt\("prompt", `\/\$\{commandName\}`, \{ targetTabId: tabContext\.tabId, throwOnError: true \}\)/);
|
|
26
|
+
assert.doesNotMatch(runCalibration, /commandName\} current|appConfirmText/);
|
|
27
|
+
assert.match(runCalibration, /gitFooterPiCalibrationInFlightByTab\.has\(tabContext\.tabId\)/);
|
|
28
|
+
assert.match(runCalibration, /currentState\?\.isStreaming \|\| currentState\?\.isCompacting/);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
test("PI calibration schedules bounded delayed footer refreshes", () => {
|
|
32
|
+
const scheduleRefresh = readFunction("scheduleGitFooterPiCalibrationRefresh");
|
|
33
|
+
const runCalibration = readFunction("runGitFooterPiCalibration");
|
|
34
|
+
assert.match(scheduleRefresh, /delays = \[5000, 14000, 30000\]/);
|
|
35
|
+
assert.match(scheduleRefresh, /requestGitFooterWebuiPayload\(tabContext, \{ force: true \}\)/);
|
|
36
|
+
assert.match(runCalibration, /scheduleGitFooterPiCalibrationRefresh\(tabContext\)/);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
test("PI calibration busy state invalidates the footer render cache key", () => {
|
|
40
|
+
const pickerStateKey = readFunction("gitFooterPickerStateKey");
|
|
41
|
+
assert.match(pickerStateKey, /gitFooterPiCalibrationInFlightByTab\.has\(tabContext\.tabId\)/);
|
|
42
|
+
assert.match(pickerStateKey, /piCalibrationInFlight \? 1 : 0/);
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
test("PI refresh scheduling survives an immediate tab switch", () => {
|
|
46
|
+
const runCalibration = readFunction("runGitFooterPiCalibration");
|
|
47
|
+
assert.match(runCalibration, /scheduleGitFooterPiCalibrationRefresh\(tabContext\);\s+if \(!isCurrentTabContext\(tabContext\)\) return;/);
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
test("explicit git-footer refresh invalidates stale calibration records", () => {
|
|
51
|
+
assert.match(
|
|
52
|
+
gitFooterExtension,
|
|
53
|
+
/pi\.registerCommand\("git-footer-refresh"[\s\S]*promptCalibrationCache = null;\s+await refreshPromptInjectionEstimate\(ctx\)/,
|
|
54
|
+
);
|
|
55
|
+
});
|
|
@@ -136,7 +136,7 @@ try {
|
|
|
136
136
|
const disableAuth = await request("/api/remote-auth/settings", { method: "POST", body: { enabled: false } });
|
|
137
137
|
assert.equal(disableAuth.status, 200);
|
|
138
138
|
const savedAfterDisable = JSON.parse(await readFile(settingsFile, "utf8"));
|
|
139
|
-
assert.equal(savedAfterDisable.version,
|
|
139
|
+
assert.equal(savedAfterDisable.version, 4, "Web UI settings should migrate to the output-mode schema version");
|
|
140
140
|
assert.equal(savedAfterDisable.remoteAuthEnabled, false, "disabling Remote PIN auth should persist the off preference");
|
|
141
141
|
assert.equal(savedAfterDisable.gitWorkflow?.generation?.modelId, "fake-model", "Remote PIN updates should preserve guided Git preferences");
|
|
142
142
|
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import { readFile } from "node:fs/promises";
|
|
3
|
+
import { dirname, join } from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
|
|
6
|
+
const root = join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
7
|
+
const app = await readFile(join(root, "public", "app.js"), "utf8");
|
|
8
|
+
|
|
9
|
+
assert.match(
|
|
10
|
+
app,
|
|
11
|
+
/function surfaceRuntimeDiagnostic\(title, content, level = "error"\)[\s\S]*?addEvent\(message, level\);[\s\S]*?addTransientMessage\(\{ role: level === "error" \? "error" : "warn", title, content: message, level \}\);/,
|
|
12
|
+
"runtime diagnostics should be written to both the event log and the visible transcript",
|
|
13
|
+
);
|
|
14
|
+
assert.match(
|
|
15
|
+
app,
|
|
16
|
+
/function assistantStreamErrorMessage\(event,[\s\S]*?update\.error\?\.errorMessage[\s\S]*?update\.partial\?\.errorMessage[\s\S]*?event\?\.message\?\.errorMessage/,
|
|
17
|
+
"assistant stream errors should prefer the provider's detailed final error message",
|
|
18
|
+
);
|
|
19
|
+
assert.match(
|
|
20
|
+
app,
|
|
21
|
+
/update\.type === "error"[\s\S]*?streamProviderErrorText = assistantStreamErrorMessage\(event, update\)[\s\S]*?content: streamProviderErrorText/,
|
|
22
|
+
"streaming provider errors should immediately render their detailed text",
|
|
23
|
+
);
|
|
24
|
+
assert.match(
|
|
25
|
+
app,
|
|
26
|
+
/case "message_end":[\s\S]*?event\.message\.stopReason === "error"[\s\S]*?surfaceRuntimeDiagnostic\("Assistant error", message\)[\s\S]*?assistantErrorSurfacedThisRun = true/,
|
|
27
|
+
"final assistant errors should remain visible after transcript reconciliation",
|
|
28
|
+
);
|
|
29
|
+
assert.match(
|
|
30
|
+
app,
|
|
31
|
+
/function assistantErrorFromAgentEnd\(event\)[\s\S]*?event\?\.messages[\s\S]*?findLast\(\(item\) => item\?\.role === "assistant"\)[\s\S]*?message\?\.stopReason !== "error"[\s\S]*?message\.errorMessage/,
|
|
32
|
+
"agent_end should recover provider errors from its terminal assistant message",
|
|
33
|
+
);
|
|
34
|
+
assert.match(
|
|
35
|
+
app,
|
|
36
|
+
/case "agent_end":[\s\S]*?!assistantErrorSurfacedThisRun && event\.willRetry !== true[\s\S]*?assistantErrorFromAgentEnd\(event\)[\s\S]*?surfaceRuntimeDiagnostic\("Assistant error", message\)/,
|
|
37
|
+
"agent_end should visibly surface a non-retrying provider error when message_end was absent",
|
|
38
|
+
);
|
|
39
|
+
assert.match(
|
|
40
|
+
app,
|
|
41
|
+
/function toolImagePayloadError\(event\)[\s\S]*?event\?\.result\?\.content[\s\S]*?block\?\.type !== "image"[\s\S]*?btoa\(atob\(data\)\) === data[\s\S]*?invalid base64 data/,
|
|
42
|
+
"tool image payloads should be checked for canonical base64 without exposing their contents",
|
|
43
|
+
);
|
|
44
|
+
assert.match(
|
|
45
|
+
app,
|
|
46
|
+
/case "tool_execution_end":[\s\S]*?toolImagePayloadError\(event\)[\s\S]*?surfaceRuntimeDiagnostic\("Tool image payload error", imagePayloadError\)/,
|
|
47
|
+
"malformed tool image payloads should immediately surface in the transcript",
|
|
48
|
+
);
|
|
49
|
+
for (const eventType of ["pi_process_exit", "pi_process_error", "pi_stderr", "pi_stderr_sink_error", "pi_stdout_line_too_large", "pi_stdout_parse_error"]) {
|
|
50
|
+
assert.match(app, new RegExp(`case "${eventType}":[\\s\\S]*?surfaceRuntimeDiagnostic\\(`), `${eventType} should surface in the transcript`);
|
|
51
|
+
}
|
|
52
|
+
assert.match(
|
|
53
|
+
app,
|
|
54
|
+
/case "compaction_end":[\s\S]*?event\.errorMessage[\s\S]*?surfaceRuntimeDiagnostic\("Compaction error", event\.errorMessage\)/,
|
|
55
|
+
"compaction failures should surface in the transcript",
|
|
56
|
+
);
|
|
57
|
+
assert.match(
|
|
58
|
+
app,
|
|
59
|
+
/case "response":[\s\S]*?event\.success === false[\s\S]*?surfaceRuntimeDiagnostic\(/,
|
|
60
|
+
"failed RPC command responses should surface in the transcript",
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
console.log("runtime error visibility test passed");
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import { readFile } from "node:fs/promises";
|
|
3
|
+
import { dirname, join } from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
|
|
6
|
+
const root = join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
7
|
+
const [html, app, css] = await Promise.all([
|
|
8
|
+
readFile(join(root, "public", "index.html"), "utf8"),
|
|
9
|
+
readFile(join(root, "public", "app.js"), "utf8"),
|
|
10
|
+
readFile(join(root, "public", "styles.css"), "utf8"),
|
|
11
|
+
]);
|
|
12
|
+
|
|
13
|
+
assert.match(
|
|
14
|
+
html,
|
|
15
|
+
/id="sidePanelContextMenu"[^>]*role="menu"[^>]*aria-label="Choose visible side panel sections"[^>]*hidden/,
|
|
16
|
+
"the page should provide an initially hidden, labelled side-panel context menu",
|
|
17
|
+
);
|
|
18
|
+
assert.match(
|
|
19
|
+
app,
|
|
20
|
+
/const SIDE_PANEL_SECTION_VISIBILITY_STORAGE_KEY = "pi-webui-side-panel-sections-hidden"/,
|
|
21
|
+
"hidden section IDs should use their own browser storage key",
|
|
22
|
+
);
|
|
23
|
+
assert.match(
|
|
24
|
+
app,
|
|
25
|
+
/function persistSidePanelSectionVisibility\(\)[\s\S]*section\.hidden[\s\S]*localStorage\.setItem\(SIDE_PANEL_SECTION_VISIBILITY_STORAGE_KEY, JSON\.stringify\(hidden\)\)/,
|
|
26
|
+
"section visibility should persist independently from accordion collapse state",
|
|
27
|
+
);
|
|
28
|
+
assert.match(
|
|
29
|
+
app,
|
|
30
|
+
/function restoreSidePanelSectionVisibility\(\)[\s\S]*readStoredSidePanelSectionHiddenIds\(\)[\s\S]*setSidePanelSectionVisible\(record, !hiddenIds\.has\(record\.id\), \{ persist: false \}\)/,
|
|
31
|
+
"stored hidden section IDs should be restored without rewriting storage",
|
|
32
|
+
);
|
|
33
|
+
assert.match(
|
|
34
|
+
app,
|
|
35
|
+
/function showSidePanelContextMenu\(event\)[\s\S]*sidePanelSectionRecords\(\)\.map[\s\S]*role", "menuitemcheckbox"[\s\S]*aria-checked[\s\S]*setSidePanelSectionVisible\(record, nextVisible\)/,
|
|
36
|
+
"the context menu should dynamically include every section as a checkable visibility item",
|
|
37
|
+
);
|
|
38
|
+
assert.match(
|
|
39
|
+
app,
|
|
40
|
+
/function setSidePanelSectionVisible\(record, visible[\s\S]*visible && record\.id === "git"[\s\S]*renderGitPanel\(\)[\s\S]*ensureGitPanelRepositoriesDiscovered/,
|
|
41
|
+
"re-showing an expanded Git section should immediately refresh its deferred content",
|
|
42
|
+
);
|
|
43
|
+
assert.match(
|
|
44
|
+
app,
|
|
45
|
+
/const focusTarget = trigger\?\.isConnected[\s\S]*elements\.toggleSidePanelButton[\s\S]*focusTarget\.focus/,
|
|
46
|
+
"closing the menu should return focus to its trigger or the persistent panel toggle",
|
|
47
|
+
);
|
|
48
|
+
assert.match(
|
|
49
|
+
app,
|
|
50
|
+
/side-panel-context-menu-label", "Show sections"[\s\S]*role", "presentation"[\s\S]*aria-hidden", "true"/,
|
|
51
|
+
"the visual menu heading should not violate the menu's accessibility structure",
|
|
52
|
+
);
|
|
53
|
+
assert.match(
|
|
54
|
+
app,
|
|
55
|
+
/function bindSidePanelContextMenu\(\)[\s\S]*addEventListener\("contextmenu", showSidePanelContextMenu\)[\s\S]*event\.key !== "ContextMenu"[\s\S]*event\.shiftKey && event\.key === "F10"/,
|
|
56
|
+
"the menu should support pointer and standard keyboard context-menu activation",
|
|
57
|
+
);
|
|
58
|
+
assert.match(
|
|
59
|
+
app,
|
|
60
|
+
/restoreSidePanelSectionVisibility\(\);\s*restoreSidePanelSectionState\(\);/,
|
|
61
|
+
"visibility should restore alongside the existing collapse state during startup",
|
|
62
|
+
);
|
|
63
|
+
assert.match(
|
|
64
|
+
app,
|
|
65
|
+
/event\.key === "ArrowDown" \|\| event\.key === "ArrowUp"[\s\S]*elements\.sidePanelContextMenu\?\.addEventListener\("keydown"[\s\S]*event\.key === "Home" \|\| event\.key === "End"/,
|
|
66
|
+
"context-menu items should be keyboard navigable",
|
|
67
|
+
);
|
|
68
|
+
assert.match(
|
|
69
|
+
css,
|
|
70
|
+
/\.side-panel-context-menu[\s\S]*max-height:[^;]+[\s\S]*overflow-y: auto[\s\S]*\.side-panel-context-menu-item\[aria-checked="true"\]::before/,
|
|
71
|
+
"the section menu should remain viewport-bounded and visibly mark selected sections",
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
console.log("side-panel-context-menu-static.test.mjs passed");
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import {
|
|
3
|
+
browserOutputEvent,
|
|
4
|
+
encodeBrowserSseEvent,
|
|
5
|
+
isOutputModeSemanticBarrier,
|
|
6
|
+
negotiateOutputMode,
|
|
7
|
+
normalizeOutputMode,
|
|
8
|
+
OUTPUT_MODE_COMPACT_V1,
|
|
9
|
+
OUTPUT_MODE_NORMAL,
|
|
10
|
+
resolveOutputModeDefault,
|
|
11
|
+
} from "../lib/webui-output-mode.mjs";
|
|
12
|
+
|
|
13
|
+
assert.equal(normalizeOutputMode("compact-v1"), OUTPUT_MODE_COMPACT_V1);
|
|
14
|
+
assert.equal(normalizeOutputMode("unknown", OUTPUT_MODE_COMPACT_V1), OUTPUT_MODE_COMPACT_V1);
|
|
15
|
+
assert.equal(normalizeOutputMode(undefined), OUTPUT_MODE_NORMAL);
|
|
16
|
+
assert.deepEqual(resolveOutputModeDefault({ cliMode: "compact-v1", envMode: "normal", persistedMode: "normal" }), { mode: "compact-v1", source: "cli" });
|
|
17
|
+
assert.deepEqual(resolveOutputModeDefault({ envMode: "compact-v1", persistedMode: "normal" }), { mode: "compact-v1", source: "env" });
|
|
18
|
+
assert.deepEqual(resolveOutputModeDefault({ persistedMode: "compact-v1" }), { mode: "compact-v1", source: "persisted" });
|
|
19
|
+
assert.deepEqual(resolveOutputModeDefault({ persistedMode: "invalid" }), { mode: "normal", source: "normal" });
|
|
20
|
+
|
|
21
|
+
assert.deepEqual(negotiateOutputMode({ requestedMode: "auto", protocolVersion: "1", serverDefault: "compact-v1" }), {
|
|
22
|
+
requestedMode: "auto",
|
|
23
|
+
protocolVersion: 1,
|
|
24
|
+
activeMode: "compact-v1",
|
|
25
|
+
});
|
|
26
|
+
assert.deepEqual(negotiateOutputMode({ requestedMode: "compact-v1", protocolVersion: 1, serverDefault: "normal" }), {
|
|
27
|
+
requestedMode: "compact-v1",
|
|
28
|
+
protocolVersion: 1,
|
|
29
|
+
activeMode: "compact-v1",
|
|
30
|
+
});
|
|
31
|
+
assert.deepEqual(negotiateOutputMode({ requestedMode: "compact-v1", protocolVersion: undefined, serverDefault: "compact-v1" }), {
|
|
32
|
+
requestedMode: "normal",
|
|
33
|
+
protocolVersion: 0,
|
|
34
|
+
activeMode: "normal",
|
|
35
|
+
});
|
|
36
|
+
assert.deepEqual(negotiateOutputMode({ requestedMode: "auto", protocolVersion: "2", serverDefault: "compact-v1" }), {
|
|
37
|
+
requestedMode: "normal",
|
|
38
|
+
protocolVersion: 0,
|
|
39
|
+
activeMode: "normal",
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const canonical = {
|
|
43
|
+
type: "message_update",
|
|
44
|
+
tabId: "tab-1",
|
|
45
|
+
tabActivity: { status: "working" },
|
|
46
|
+
message: { role: "assistant", content: [{ type: "text", text: "accumulated text" }] },
|
|
47
|
+
assistantMessageEvent: {
|
|
48
|
+
type: "text_delta",
|
|
49
|
+
delta: "",
|
|
50
|
+
contentIndex: 2,
|
|
51
|
+
partial: { role: "assistant", content: [{ type: "text", text: "accumulated text" }] },
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
const original = structuredClone(canonical);
|
|
55
|
+
const compact = browserOutputEvent(canonical, { outputMode: "compact-v1" });
|
|
56
|
+
assert.notStrictEqual(compact, canonical, "compact output must be browser-only");
|
|
57
|
+
assert.equal(compact.message, undefined, "duplicate accumulated top-level message should be removed");
|
|
58
|
+
assert.equal(compact.assistantMessageEvent.partial, undefined, "duplicate accumulated partial should be removed");
|
|
59
|
+
assert.equal(compact.assistantMessageEvent.delta, "", "empty deltas are semantically meaningful");
|
|
60
|
+
assert.equal(compact.assistantMessageEvent.contentIndex, 2);
|
|
61
|
+
assert.deepEqual(canonical, original, "the parsed/scoped source event must never be mutated");
|
|
62
|
+
assert.equal(JSON.parse(encodeBrowserSseEvent(canonical, { outputMode: "compact-v1" })).assistantMessageEvent.delta, "");
|
|
63
|
+
|
|
64
|
+
const malformed = { type: "message_update", assistantMessageEvent: { type: "text_delta", delta: 4, partial: { text: "must remain" } }, message: { role: "assistant" } };
|
|
65
|
+
assert.strictEqual(browserOutputEvent(malformed, { outputMode: "compact-v1" }), malformed, "malformed delta shapes fail open");
|
|
66
|
+
const unknown = { type: "message_update", assistantMessageEvent: { type: "unknown_delta", delta: "x", partial: { text: "must remain" } }, message: { role: "assistant" } };
|
|
67
|
+
assert.strictEqual(browserOutputEvent(unknown, { outputMode: "compact-v1" }), unknown, "unknown update shapes fail open");
|
|
68
|
+
assert.equal(browserOutputEvent({ type: "tool_execution_update", partialResult: {} }, { outputMode: "compact-v1" }), undefined, "compact v1 omits only intermediate tool updates");
|
|
69
|
+
assert.deepEqual(browserOutputEvent({ type: "tool_execution_end", result: { content: [] } }, { outputMode: "compact-v1" }), { type: "tool_execution_end", result: { content: [] } });
|
|
70
|
+
assert.equal(isOutputModeSemanticBarrier({ type: "message_end" }), true);
|
|
71
|
+
assert.equal(isOutputModeSemanticBarrier({ type: "agent_start" }), false);
|
|
72
|
+
|
|
73
|
+
console.log("webui-output-mode.test.mjs passed");
|