Files
hyperframes/packages/cli/src/auth/paths.ts
T
James Russo 3e462f4277 feat(cli): use dedicated HyperFrames OAuth clients (#6687)
* feat(cli): use dedicated HyperFrames OAuth clients

* docs(cli): shorten credential store contract comment

* fix(cli): respect Windows modes in OAuth media test

* fix(cli): keep media workflows on HyperFrames OAuth

* test(cli): scope billing status assertions to wallet rows

* test(cli): align telemetry fixtures and CI auth inputs
2026-10-29 21:25:20 +00:00

22 lines
633 B
TypeScript

/**
* HyperFrames credentials are isolated from the HeyGen CLI and between environments.
*/
import { homedir } from "node:os";
import { join } from "node:path";
import { oauthEnvironment } from "./config.js";
/**
* Filename for the HyperFrames credential store (JSON, no extension).
*/
export const CREDENTIAL_FILENAME = "credentials";
export function configDir(): string {
const root = process.env["HYPERFRAMES_CONFIG_DIR"] || join(homedir(), ".hyperframes");
return oauthEnvironment() === "dev" ? join(root, "dev") : root;
}
export function credentialPath(): string {
return join(configDir(), CREDENTIAL_FILENAME);
}