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 { Function } from "@alchemy.run/neon/Function"; |
| 2 | import * as Effect from "effect/Effect"; |
| 3 | import { ConnectProject } from "./connect-database.ts"; |
| 4 | import { connectHandler } from "./connect-handler.ts"; |
| 5 | |
| 6 | export default class ConnectProjectFunction extends Function<ConnectProjectFunction>()( |
| 7 | "ConnectProjectFunction", |
| 8 | Effect.gen(function* () { |
| 9 | const project = yield* ConnectProject; |
| 10 | return { project: { projectId: project.projectId }, main: import.meta.url }; |
| 11 | }), |
| 12 | connectHandler, |
| 13 | ) {} |