@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

main
ts 22 lines 847 Bytes
Raw
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 packageName =
10 process.env.GCP_ANDROIDPUBLISHER_PACKAGE_NAME?.trim() ||
11 process.env.GCP_PLAY_PACKAGE_NAME?.trim();
12
13 // Lifecycles need a Play Console app the credentials can manage; set
14 // GCP_ANDROIDPUBLISHER_PACKAGE_NAME to run them.
15 export const runLifecycle = !!packageName;
16
17 export const probePackageName = packageName ?? "com.alchemy.missing.app";
18
19 // The cloud-platform token of the testing profile lacks the androidpublisher
20 // scope, so without a Play app every call is rejected with Forbidden
21 // ("Request had insufficient authentication scopes.").
22 export const missingTag = runLifecycle ? "NotFound" : "Forbidden";