@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, 07:15 UTC

main
ts 13 lines 434 Bytes
Raw
1 import * as Cloudflare from "@alchemy.run/cloudflare";
2
3 /** A K2 stream bound into an async (non-Effect) Worker through `env`. */
4 export const AsyncOrders = Cloudflare.K2.Stream("K2AsyncOrders");
5
6 export const K2AsyncWorker = Cloudflare.Worker("K2AsyncWorker", {
7 main: `${import.meta.dirname}/k2-async-worker.ts`,
8 env: {
9 ORDERS: AsyncOrders,
10 },
11 });
12
13 export type K2AsyncWorkerEnv = Cloudflare.InferEnv<typeof K2AsyncWorker>;