The best way to control Claude Code, Codex and more from any computer or phone

main
ts 15 lines 550 Bytes
Raw
1 import * as Core from "@alchemy.run/test/Core";
2
3 /**
4 * Cloud KMS never deletes key rings, and keeps destroyed keys for at least
5 * a day. Tests therefore reuse fixed ids, which the CryptoKey provider
6 * reclaims after destroy. Scope them by test stage so developers (and CI)
7 * sharing one project never contend for the same key.
8 */
9 export const kmsTestId = (name: string) =>
10 `alchemy-test-${name}-${Core.defaultStage()}`
11 .toLowerCase()
12 .replace(/[^a-z0-9_-]/g, "-")
13 .slice(0, 63);
14
15 export const KEY_RING_ID = "alchemy-test-keyring";