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
| 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 Chat from "./ChatModules.ts"; |
| 6 | |
| 7 | // #region show |
| 8 | export default Alchemy.Stack( |
| 9 | "Chat", |
| 10 | { |
| 11 | // #region providers |
| 12 | providers: Layer.empty, |
| 13 | // #endregion providers |
| 14 | // #region state |
| 15 | state: Cloudflare.state(), |
| 16 | // #endregion state |
| 17 | }, |
| 18 | Effect.gen(function* () { |
| 19 | // #region chat |
| 20 | const chat = yield* Chat; |
| 21 | // #endregion chat |
| 22 | // #region ret |
| 23 | return { url: chat.url.as<string>() }; |
| 24 | // #endregion ret |
| 25 | }), |
| 26 | ); |
| 27 | // #endregion show |