@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, 04:45 UTC

main
ts 16 lines 527 Bytes
Raw
1 import * as Neon from "@alchemy.run/neon";
2 import * as Effect from "effect/Effect";
3 import * as HttpServerResponse from "effect/http/HttpServerResponse";
4 import { resources } from "../resources.ts";
5
6 export class LayerApi extends Neon.Function<LayerApi>()("LayerApi") {}
7
8 export default LayerApi.make(
9 Effect.gen(function* () {
10 const { branch } = yield* resources;
11 return { branch, main: import.meta.url };
12 }),
13 Effect.succeed({
14 fetch: Effect.succeed(HttpServerResponse.text("Layer implementation")),
15 }),
16 );