Archilyzer · Source

archilyzer

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

commit 1d87571935a88075dd313eb77703fee955508670
parent 084c824729303d630e6ad63bbabebe6babcc6cd5
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Fri, 13 Nov 2026 00:38:22 -0500

reportDraft: no progress metric for the memory wait (the log line is its status); a test reads ENV_VARS without a cast

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

Diffstat:
Mcommon/controller/reportDraft.ts | 2--
Mcommon/lib/llm/localOnly.test.ts | 2+-
2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/common/controller/reportDraft.ts b/common/controller/reportDraft.ts @@ -899,7 +899,6 @@ async function runReportDraft( const started = Date.now(); const minutes = maxWaitMs >= 60_000 ? `${Math.round(maxWaitMs / 60_000)} min` : `${Math.round(maxWaitMs / 1000)} s`; onLog(`waiting for memory — ${mb} MB available, the floor is ${floor} MB (LOCAL_MODEL_MIN_FREE_MB); waits up to ${minutes}`); - o.setProgress?.({ metric: "MB free", initial: 0, target: floor, current: mb }); while (mb !== null && mb < floor) { if (Date.now() - started >= maxWaitMs) { const refusal = `refused: ${mb} MB available is under the ${floor} MB a local model's run starts with, after waiting ${minutes} — run it when the machine is quieter`; @@ -919,7 +918,6 @@ async function runReportDraft( signal.addEventListener("abort", onAbort, { once: true }); }); mb = await readMb(); - if (mb !== null) o.setProgress?.({ metric: "MB free", initial: 0, target: floor, current: Math.min(mb, floor) }); } onLog(`memory: ${mb ?? "unknown"} MB available — going on`); } diff --git a/common/lib/llm/localOnly.test.ts b/common/lib/llm/localOnly.test.ts @@ -258,6 +258,6 @@ test("a settings write: any route but local refused under the flag, nothing refu test("the claim the docs make is the one this module states (ENVIRONMENT.md's row quotes LOCAL_ONLY_CLAIM)", async () => { const { ENV_VARS } = await import("../envVars"); - const row = (ENV_VARS as { name: string; doc: string }[]).find((v) => v.name === "ARCHILYZER_LOCAL_ONLY"); + const row = ENV_VARS.find((v) => v.name === "ARCHILYZER_LOCAL_ONLY"); assert.ok(row?.doc.includes(LOCAL_ONLY_CLAIM), "ENVIRONMENT.md states the claim word for word"); });