The best way to control Claude Code, Codex and more from any computer or phone

main
ts 13 lines 535 Bytes
Raw
1 import * as GCP from "@alchemy.run/gcp";
2 import * as Effect from "effect/Effect";
3 import * as HttpServerResponse from "effect/http/HttpServerResponse";
4
5 /**
6 * Minimal Effect-native Cloud Function the Cloud Functions bindings are
7 * granted on. Declared by {@link ./bindings-host.ts}.
8 */
9 export default class TargetFunction extends GCP.CloudFunctions.Function<TargetFunction>()(
10 "TargetFunction",
11 { main: import.meta.url, location: "us-central1" },
12 Effect.succeed({ fetch: Effect.succeed(HttpServerResponse.text("ok")) }),
13 ) {}