@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 18 lines 618 Bytes
Raw
1 import * as Cloudflare from "@alchemy.run/cloudflare";
2 import * as GitHub from "@alchemy.run/github";
3 import * as Effect from "effect/Effect";
4 import * as HttpServerResponse from "effect/http/HttpServerResponse";
5
6 // #region show
7 export default Cloudflare.Worker(
8 "Archive",
9 { main: import.meta.url },
10 Effect.gen(function* () {
11 yield* GitHub.consumeRepositoryEvents({ owner: "alchemy-run", repository: "chat" }, (event) =>
12 Effect.log(event),
13 );
14
15 return { fetch: Effect.succeed(HttpServerResponse.text("ok")) };
16 }).pipe(Effect.provide(GitHub.RepositoryEventSourceLive)),
17 );
18 // #endregion show