@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 31 lines 724 Bytes
Raw
1 import * as Fly from "@alchemy.run/fly";
2 /**
3 * A Fly.io Sprite that exercises the Platform class form:
4 *
5 * - `Box` — HTTP Sprite (`src/box.ts`)
6 *
7 * A Sprite is org-scoped. There is no parent App. Alchemy bundles
8 * `main` and runs it on the Sprite. Auth is FLY_API_TOKEN.
9 */
10 import * as Alchemy from "alchemy";
11 import * as Effect from "effect/Effect";
12 import Box from "./src/box.ts";
13
14 export default Alchemy.Stack(
15 "FlySprite",
16 {
17 providers: Fly.providers(),
18 state: Alchemy.localState(),
19 },
20 Effect.gen(function* () {
21 const box = yield* Box;
22
23 return {
24 spriteId: box.spriteId,
25 name: box.name,
26 url: box.url,
27 status: box.status,
28 urlAuth: box.urlAuth,
29 };
30 }),
31 );