@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 16 lines 522 Bytes
Raw
1 import { GcpEnvironment } from "@alchemy.run/gcp/Environment";
2 import * as Effect from "effect/Effect";
3 import { MinimumLogLevel } from "effect/References";
4
5 export const logLevel = Effect.provideService(
6 MinimumLogLevel,
7 process.env.DEBUG ? "Debug" : "Info",
8 );
9
10 export const currentProject = GcpEnvironment.current.pipe(Effect.map((env) => env.project));
11
12 export const location = "global";
13
14 export const currentParent = currentProject.pipe(
15 Effect.map((project) => `projects/${project}/locations/${location}`),
16 );