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

main
ts 24 lines 669 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 MyContainerLive from "./container.ts";
5 import { Storage } from "./storage.ts";
6 import Worker from "./worker.ts";
7
8 export default Alchemy.Stack(
9 "EffectfulContainerStack",
10 {
11 providers: Cloudflare.providers(),
12 state: Cloudflare.state(),
13 },
14 Effect.gen(function* () {
15 const worker = yield* Worker;
16 const storage = yield* Storage;
17 // yield* MyContainer.Application
18
19 return {
20 url: worker.url.as<string>(),
21 bucketName: storage.bucketName,
22 };
23 }).pipe(Effect.provide(MyContainerLive)),
24 );