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 | export const currentProject = GcpEnvironment.current.pipe(Effect.map((env) => env.project)); |
| 11 | export const location = "us-central1"; |
| 12 | |
| 13 | export const TEST_RESOURCE_URI = |
| 14 | "https://example.com/alchemy-test@sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; |
| 15 | |
| 16 | export const TEST_ATTESTATION = { |
| 17 | serializedPayload: btoa("alchemy-payload"), |
| 18 | signatures: [ |
| 19 | { |
| 20 | publicKeyId: "https://example.com/keys/alchemy", |
| 21 | signature: btoa("alchemy-sig"), |
| 22 | }, |
| 23 | ], |
| 24 | }; |