The best way to control Claude Code, Codex and more from any computer or phone

main
ts 20 lines 695 Bytes
Raw
1 import * as Cloudflare from "@alchemy.run/cloudflare";
2 import * as Alchemy from "alchemy";
3 import * as Effect from "effect/Effect";
4 import InterceptContainerWorker from "./worker.ts";
5
6 /**
7 * Dev-only stack for a container whose outbound HTTP its owning Durable
8 * Object intercepts. Owns its own fixture identity so it never shares state
9 * with the other container suites when files run concurrently.
10 */
11 export const state = Alchemy.inMemoryState();
12
13 export default Alchemy.Stack(
14 "InterceptContainerStack",
15 { providers: Cloudflare.providers(), state },
16 Effect.gen(function* () {
17 const worker = yield* InterceptContainerWorker;
18 return { url: worker.url.as<string>() };
19 }),
20 );