The best way to control Claude Code, Codex and more from any computer or phone
| 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 | // AI Platform Training & Prediction (`ml.googleapis.com`) is deprecated: new |
| 11 | // projects get AiPlatformDeprecated ("Cloud AI Platform has been deprecated. Please use |
| 12 | // Vertex AI … instead."). Set GCP_TEST_ML_LEGACY_PROJECT=1 on a project that |
| 13 | // still has legacy access. Version create also needs a trained SavedModel at |
| 14 | // GCP_TEST_ML_DEPLOYMENT_URI. |
| 15 | export const runLifecycle = !!process.env.GCP_TEST_ML_LEGACY_PROJECT; |
| 16 | |
| 17 | export const runVersionLifecycle = runLifecycle && !!process.env.GCP_TEST_ML_DEPLOYMENT_URI; |
| 18 | |
| 19 | export const currentProject = GcpEnvironment.current.pipe(Effect.map((env) => env.project)); |
| 20 | |
| 21 | export const region = "us-central1"; |