Trim comments and docs to what the code needs

AI Assisted
This commit is contained in:
Seth committed 2026-12-05 13:19:59 -08:00
1 parent eba3c3bf0c
commit 0bd721fc27
33 files changed
+292 -392

No files matched your search

+4 -6
View File
@@ -2,10 +2,8 @@
// macOS smoke run starts in place of a real agent CLI. Run with:
// node --test scripts/test-app-smoke-agent.mjs
//
// The stand-in has one job: open a real web console the way an agent would,
// so the app's dashboard frame has something to connect to. This runs it
// outside the app, under a throwaway console home, and checks a live session
// appears and the stand-in ends when its input closes.
// Runs it outside the app, under a throwaway console home, and checks a live
// session appears and the stand-in ends when its input closes.
import test from "node:test";
import assert from "node:assert/strict";
@@ -19,8 +17,8 @@ const HERE = path.dirname(fileURLToPath(import.meta.url));
const AGENT = path.join(HERE, "../plan2code-app/scripts/smoke-agent.mjs");
const CONSOLE_DIR = path.join(HERE, "../src/web-console");
// The desktop app's own variables would have the console announce itself to
// a live window. Deleted from the spawned environment, never inherited.
// The desktop app's own variables, removed so the console does not announce
// itself to a live window.
const APP_VARS = ["PLAN2CODE_IN_APP", "PLAN2CODE_APP_TOKEN", "PLAN2CODE_APP_VERSION", "PLAN2CODE_APP_ANNOUNCE", "PLAN2CODE_EMBED_ORIGIN", "PLAN2CODE_CONSOLE_SID"];
function outsideAppEnv(extra) {