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
| 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 catalogParentOf = (project: string) => `projects/${project}/locations/global`; |
| 13 | |
| 14 | export const defaultCatalogOf = (project: string) => |
| 15 | `${catalogParentOf(project)}/catalogs/default_catalog`; |
| 16 | |
| 17 | export const missingNameOf = (project: string) => |
| 18 | `${defaultCatalogOf(project)}/catalogItems/alchemy-missing`; |
| 19 | |
| 20 | // Recommendations AI (Beta) is not enabled in the testing project. Set |
| 21 | // GCP_TEST_RECOMMENDATION_ENGINE=1 on a project where it is. |
| 22 | export const entitled = !!process.env.GCP_TEST_RECOMMENDATION_ENGINE; |