@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 19 lines 446 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 * as Layer from "effect/Layer";
5 import Api from "./api-07-worker.ts";
6
7 // #region show
8 export default Alchemy.Stack(
9 "App",
10 {
11 providers: Layer.empty,
12 state: Cloudflare.state(),
13 },
14 Effect.gen(function* () {
15 const api = yield* Api;
16 return { url: api.url };
17 }),
18 );
19 // #endregion show