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 TEST_PKIX_PUBLIC_KEY_PEM = `-----BEGIN PUBLIC KEY----- |
| 13 | MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWhkM5kl7ac/yZQwut5RYqCF6R9TA |
| 14 | zOV23AIF1+pYxbSAepfNDoU+tfNgHOFHzIjRNKB9Vv42auUzwwieQ6wK3Q== |
| 15 | -----END PUBLIC KEY-----`; |
| 16 | |
| 17 | export const TEST_RESOURCE_URI = |
| 18 | "https://example.com/alchemy-test@sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; |
| 19 | |
| 20 | export const TEST_ATTESTATION = { |
| 21 | serializedPayload: btoa("alchemy-payload"), |
| 22 | signatures: [ |
| 23 | { |
| 24 | publicKeyId: "https://example.com/keys/alchemy", |
| 25 | signature: btoa("alchemy-sig"), |
| 26 | }, |
| 27 | ], |
| 28 | }; |
| 29 | |
| 30 | export const TEST_POD = { |
| 31 | apiVersion: "v1", |
| 32 | kind: "Pod", |
| 33 | metadata: { name: "web", namespace: "default" }, |
| 34 | spec: { containers: [{ name: "nginx", image: "nginx" }] }, |
| 35 | }; |