Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion src/agents/planner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export async function runPlanner(spec: string): Promise<DomainSpec> {
const delay = (ms: number): Promise<void> => new Promise((r) => { setTimeout(r, ms); });

async function runStubPlanner(spec: string): Promise<DomainSpec> {
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);
Expand Down
4 changes: 2 additions & 2 deletions src/stub.ts
Original file line number Diff line number Diff line change
@@ -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";
}
Loading