@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, 04:45 UTC

main
ts 24 lines 630 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 Api from "./src/Api.ts";
5 import { Destination, INBOX } from "./src/Email.ts";
6
7 export default Alchemy.Stack(
8 "CloudflareEmailExample",
9 {
10 providers: Cloudflare.providers(),
11 state: Cloudflare.state(),
12 },
13 Effect.gen(function* () {
14 const destination = yield* Destination;
15 const api = yield* Api;
16
17 return {
18 url: api.url.as<string>(),
19 destinationEmail: destination.email,
20 destinationVerified: destination.verified,
21 inbox: INBOX,
22 };
23 }),
24 );