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
| 1 | import * as AWS from "@alchemy.run/aws"; |
| 2 | import * as Effect from "effect/Effect"; |
| 3 | import * as HttpServerResponse from "effect/http/HttpServerResponse"; |
| 4 | |
| 5 | const main = import.meta.url; |
| 6 | |
| 7 | /** |
| 8 | * Minimal Lambda for API Gateway `AWS_PROXY` — returns plain text. |
| 9 | */ |
| 10 | export default class JobFunction extends AWS.Lambda.Function<AWS.Lambda.Function>()( |
| 11 | "JobFunction", |
| 12 | { |
| 13 | main, |
| 14 | }, |
| 15 | Effect.gen(function* () { |
| 16 | return { |
| 17 | fetch: Effect.gen(function* () { |
| 18 | return HttpServerResponse.text("Hello from REST API + Lambda"); |
| 19 | }), |
| 20 | }; |
| 21 | }), |
| 22 | ) {} |