@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 14 lines 471 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 ExternalContainerWorker from "./worker.ts";
5
6 export default (state = Cloudflare.state()) =>
7 Alchemy.Stack(
8 "ExternalContainerStack",
9 { providers: Cloudflare.providers(), state },
10 Effect.gen(function* () {
11 const worker = yield* ExternalContainerWorker;
12 return { url: worker.url.as<string>() };
13 }),
14 );