Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 0f3c0921203ba095e0225a863c376cad713fe8de
parent 18dca1004ec5e824cbb5b5aadd1e3620ea8a2f1d
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue, 17 Nov 2026 17:16:31 -0500

no unit run can reach a live editor: the test scripts set a dead editor address and no token (review 1, SHOULD 7)

The guard was opt-in (noLiveEditor.mjs, this lane's tests). `pnpm test:scripts` and umtool's `test`
now run with ARCHILYZER_EDITOR_URL and UMTOOL_URL at the discard port on loopback and WORKER_TOKEN
empty, so editor/.env's token is never read and nothing resolves to a running editor or umtool; a
test that needs an editor sets its own stub's address, as before. Every old test passes under it
(test:scripts 3598 pass, 0 fail; umtool 82/82): none was reaching for a real editor. common's tests
run no umtool code and are unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>

Diffstat:
Mpackage.json | 2+-
Mumtool/package.json | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package.json b/package.json @@ -25,7 +25,7 @@ "e2e:sharded": "node scripts/run-sharded-e2e.mjs", "e2e:all": "node scripts/e2e-all.mjs", "test:files": "node scripts/test-files.mjs", - "test:scripts": "ARCHILYZER_NO_NETWORK=1 NODE_OPTIONS=\"--import=\\\"$PWD/common/lib/noNetwork.mjs\\\" $NODE_OPTIONS\" node --test scripts/*.test.mjs umtool/report-to-video/*.test.mjs umtool/report-to-video/modules/*.test.mjs umtool/lib/*.test.mjs umtool/lib/report/*.test.mjs umtool/lib/annotations/*.test.mjs umtool/lib/articles/*.test.mjs umtool/lib/pieces/*.test.mjs umtool/lib/inbox/*.test.mjs umtool/lib/research/*.test.mjs umtool/lib/work/*.test.mjs umtool/lib/create/*.test.mjs umtool/lib/settings/*.test.mjs umtool/lib/queue/*.test.mjs umtool/lib/ingredients/*.test.mjs umtool/lib/cli/*.test.mjs", + "test:scripts": "ARCHILYZER_EDITOR_URL=http://127.0.0.1:9 WORKER_TOKEN= UMTOOL_URL=http://127.0.0.1:9 ARCHILYZER_NO_NETWORK=1 NODE_OPTIONS=\"--import=\\\"$PWD/common/lib/noNetwork.mjs\\\" $NODE_OPTIONS\" node --test scripts/*.test.mjs umtool/report-to-video/*.test.mjs umtool/report-to-video/modules/*.test.mjs umtool/lib/*.test.mjs umtool/lib/report/*.test.mjs umtool/lib/annotations/*.test.mjs umtool/lib/articles/*.test.mjs umtool/lib/pieces/*.test.mjs umtool/lib/inbox/*.test.mjs umtool/lib/research/*.test.mjs umtool/lib/work/*.test.mjs umtool/lib/create/*.test.mjs umtool/lib/settings/*.test.mjs umtool/lib/queue/*.test.mjs umtool/lib/ingredients/*.test.mjs umtool/lib/cli/*.test.mjs", "test": "pnpm -r --no-bail --no-sort --workspace-concurrency=1 run test; a=$?; pnpm run test:scripts; b=$?; [ $a -eq 0 ] && [ $b -eq 0 ]", "typecheck": "pnpm -r --no-bail --no-sort --workspace-concurrency=1 exec tsc --noEmit", "lint": "pnpm --filter export run lint", diff --git a/umtool/package.json b/umtool/package.json @@ -8,7 +8,7 @@ "build": "NEXT_TELEMETRY_DISABLED=1 next build", "start": "NEXT_TELEMETRY_DISABLED=1 next start --port ${UMTOOL_PORT:-3050}", "typecheck": "tsc --noEmit", - "test": "ARCHILYZER_NO_NETWORK=1 NODE_OPTIONS=\"--import=\\\"$PWD/../common/lib/noNetwork.mjs\\\" $NODE_OPTIONS\" tsx --test lib/brandIcon.test.ts lib/privacy.test.ts lib/articles/*.test.ts lib/research/*.test.ts lib/inbox/*.test.ts lib/clips/*.test.ts components/projects/bench/*.test.ts", + "test": "ARCHILYZER_EDITOR_URL=http://127.0.0.1:9 WORKER_TOKEN= UMTOOL_URL=http://127.0.0.1:9 ARCHILYZER_NO_NETWORK=1 NODE_OPTIONS=\"--import=\\\"$PWD/../common/lib/noNetwork.mjs\\\" $NODE_OPTIONS\" tsx --test lib/brandIcon.test.ts lib/privacy.test.ts lib/articles/*.test.ts lib/research/*.test.ts lib/inbox/*.test.ts lib/clips/*.test.ts components/projects/bench/*.test.ts", "e2e": "node ../scripts/worktree.mjs run -- node ../scripts/queue-lock.mjs --name e2e-umtool --estimate 1500 --prebuild umtool --ports UMTOOL_E2E_PORT:3051,EDITOR_STUB_PORT:3052 -- playwright test" }, "dependencies": {