@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, 06:00 UTC

main
ts 23 lines 635 Bytes
Raw
1 import * as GCP from "@alchemy.run/gcp";
2 import * as Alchemy from "alchemy";
3 import * as Effect from "effect/Effect";
4 import Monitor from "./src/Monitor.ts";
5 import { Heartbeats } from "./src/resources.ts";
6
7 export default Alchemy.Stack(
8 "GcpCronExample",
9 { providers: GCP.providers(), state: Alchemy.localState() },
10 Effect.gen(function* () {
11 const table = yield* Heartbeats;
12 const monitor = yield* Monitor;
13
14 return {
15 url: monitor.uri,
16 project: monitor.project,
17 location: monitor.location,
18 tableName: table.name,
19 datasetId: table.datasetId,
20 tableId: table.tableId,
21 };
22 }),
23 );