diff --git a/tools/smoke-c0/common.ts b/tools/smoke-c0/common.ts index 148a4f1..0b873a3 100644 --- a/tools/smoke-c0/common.ts +++ b/tools/smoke-c0/common.ts @@ -17,16 +17,20 @@ import { TranslateError } from "../../runtime/src/plan/mod.ts"; import type { WirePlan } from "../../runtime/src/plan/format.ts"; export const REPO_ROOT = new URL("../../", import.meta.url); -export const POLYMORPH = "/home/lmartin/p/polymorph"; +export const POLYMORPH = Deno.env.get("POLYMORPH_ROOT") ?? + "/home/lmartin/p/polymorph"; +/** experiment-mosh renamed and moved out of the polymorph tree + * (2026-08-10): it is `wosh`, a sibling OF the polymorph directory. */ +export const WOSH = Deno.env.get("WOSH_ROOT") ?? "/home/lmartin/p/wosh"; /** Absolute paths to the consumer artifacts under test (never copied). */ export const ARTIFACTS = { - tdz: `${POLYMORPH}/experiment-mosh/spikes/compose-async-tdz/composed.wasm`, + tdz: `${WOSH}/spikes/compose-async-tdz/composed.wasm`, execModel: `${POLYMORPH}/polymorph-iroh/target/wasm32-wasip2/release/iroh_exec_model_guest.wasm`, - engineGo: `${POLYMORPH}/experiment-mosh/engine-go/main.wasm`, - composedClient: `${POLYMORPH}/experiment-mosh/client-core/composed-client.wasm`, - composedProxy: `${POLYMORPH}/experiment-mosh/proxy/composed-proxy.wasm`, + engineGo: `${WOSH}/engine-go/main.wasm`, + composedClient: `${WOSH}/client-core/composed-client.wasm`, + composedProxy: `${WOSH}/proxy/composed-proxy.wasm`, irohEndpoint: `${POLYMORPH}/polymorph-iroh/target/wasm32-wasip2/release/iroh_endpoint.wasm`, } as const; diff --git a/tools/smoke-c0/deno.json b/tools/smoke-c0/deno.json index 3688b4c..1353307 100644 --- a/tools/smoke-c0/deno.json +++ b/tools/smoke-c0/deno.json @@ -3,10 +3,10 @@ "version": "0.0.0", "exports": "./common.ts", "tasks": { - "leg1": "deno run --allow-read leg1_tdz.ts", - "leg2": "deno run --allow-read leg2_exec_model.ts", - "leg3": "deno run --allow-read leg3_throughput.ts", - "leg4": "deno run --allow-read leg4_websocket.ts", - "repro": "deno run --allow-read repro_stream_pump.ts" + "leg1": "deno run --allow-read --allow-env=POLYMORPH_ROOT,WOSH_ROOT leg1_tdz.ts", + "leg2": "deno run --allow-read --allow-env=POLYMORPH_ROOT,WOSH_ROOT leg2_exec_model.ts", + "leg3": "deno run --allow-read --allow-env=POLYMORPH_ROOT,WOSH_ROOT leg3_throughput.ts", + "leg4": "deno run --allow-read --allow-env=POLYMORPH_ROOT,WOSH_ROOT leg4_websocket.ts", + "repro": "deno run --allow-read --allow-env=POLYMORPH_ROOT,WOSH_ROOT repro_stream_pump.ts" } } diff --git a/tools/smoke-c0/leg1_tdz.ts b/tools/smoke-c0/leg1_tdz.ts index b9759da..bdbd501 100644 --- a/tools/smoke-c0/leg1_tdz.ts +++ b/tools/smoke-c0/leg1_tdz.ts @@ -2,7 +2,8 @@ // // deno run --allow-read leg1_tdz.ts // -// Artifact: experiment-mosh/spikes/compose-async-tdz/composed.wasm — a wac +// Artifact: wosh/spikes/compose-async-tdz/composed.wasm (the consumer +// formerly named experiment-mosh) — a wac // composition of `tdz:plug` (async factory returning own) into // `tdz:socket` (async export awaiting it, plus an exported `handoff` // interface that names the same resource in a signature). That combination