The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import * as Cloudflare from "@alchemy.run/cloudflare"; |
| 2 | import * as Alchemy from "alchemy"; |
| 3 | import * as Effect from "effect/Effect"; |
| 4 | import { state } from "../remote/local-stack.ts"; |
| 5 | import FuseContainerWorker from "./worker.ts"; |
| 6 | |
| 7 | /** |
| 8 | * Dev-only stack whose container mounts a FUSE filesystem. Shares |
| 9 | * `LocalContainer.test.ts`'s in-memory state under its own stack name and |
| 10 | * fixture identity. |
| 11 | */ |
| 12 | |
| 13 | export default Alchemy.Stack( |
| 14 | "FuseContainerStack", |
| 15 | { providers: Cloudflare.providers(), state }, |
| 16 | Effect.gen(function* () { |
| 17 | const worker = yield* FuseContainerWorker; |
| 18 | return { url: worker.url.as<string>() }; |
| 19 | }), |
| 20 | ); |