The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import * as Effect from "effect/Effect"; |
| 2 | import { MinimumLogLevel } from "effect/References"; |
| 3 | |
| 4 | export const logLevel = Effect.provideService( |
| 5 | MinimumLogLevel, |
| 6 | process.env.DEBUG ? "Debug" : "Info", |
| 7 | ); |
| 8 | |
| 9 | export const customer = process.env.GCP_CLOUDIDENTITY_CUSTOMER?.trim() || "customers/my_customer"; |
| 10 | |
| 11 | export const domain = process.env.GCP_CLOUDIDENTITY_DOMAIN?.trim() || undefined; |
| 12 | |
| 13 | export const memberEmail = process.env.GCP_CLOUDIDENTITY_MEMBER?.trim() || undefined; |
| 14 | |
| 15 | // Cloud Identity needs a Workspace/Cloud Identity customer: the testing |
| 16 | // project's creates fail with ServiceDisabled "Cloud Identity API has not been used |
| 17 | // in project ... before or it is disabled" (Device: "Request had insufficient |
| 18 | // authentication scopes."). Set GCP_TEST_CLOUDIDENTITY=1 plus the |
| 19 | // GCP_CLOUDIDENTITY_* fixtures on an entitled customer. |
| 20 | export const runLifecycle = !process.env.FAST && !!process.env.GCP_TEST_CLOUDIDENTITY; |
| 21 | |
| 22 | export const runGroupLifecycle = runLifecycle && !!domain; |
| 23 | |
| 24 | export const runMembershipLifecycle = runGroupLifecycle && !!memberEmail; |