diff --git a/package.json b/package.json index b4a6297..123e439 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "dev": "tsx src/index.ts", "start": "node dist/index.js", "typecheck:tests": "tsc --noEmit -p tsconfig.test.json", - "test": "NATEMPLATE_STUB_ALL=1 node --import tsx --test tests/smoke.test.ts", + "test": "NATIVEAPPTEMPLATE_STUB_ALL=1 node --import tsx --test tests/smoke.test.ts", "ci": "npm run build && npm run typecheck:tests && npm test", "cost": "bash scripts/cost.sh" }, diff --git a/src/agents/planner.ts b/src/agents/planner.ts index 354046d..deda03f 100644 --- a/src/agents/planner.ts +++ b/src/agents/planner.ts @@ -143,7 +143,7 @@ export async function runPlanner(spec: string): Promise { const delay = (ms: number): Promise => new Promise((r) => { setTimeout(r, ms); }); async function runStubPlanner(spec: string): Promise { - trace("planner", "(stub mode — NATEMPLATE_STUB_ALL or NATEMPLATE_STUB_PLANNER set)"); + trace("planner", "(stub mode — NATIVEAPPTEMPLATE_STUB_ALL or NATIVEAPPTEMPLATE_STUB_PLANNER set)"); await delay(200); trace("planner", "extracting entities and fields"); await delay(250); diff --git a/src/stub.ts b/src/stub.ts index 2c538eb..78e2d5a 100644 --- a/src/stub.ts +++ b/src/stub.ts @@ -1,6 +1,6 @@ import type { AgentName } from "./agents/types.js"; export function isStub(agent: AgentName): boolean { - if (process.env['NATEMPLATE_STUB_ALL'] === "1") return true; - return process.env[`NATEMPLATE_STUB_${agent.toUpperCase()}`] === "1"; + if (process.env['NATIVEAPPTEMPLATE_STUB_ALL'] === "1") return true; + return process.env[`NATIVEAPPTEMPLATE_STUB_${agent.toUpperCase()}`] === "1"; }