Files
hyperframes/packages/cli/src/auth/paths.ts
T
Miguel Ángel 216395e98e fix(cli): every settings file follows HYPERFRAMES_CONFIG_DIR (#7229)
* fix(cli): every settings file follows HYPERFRAMES_CONFIG_DIR

* fix(cli): the media-use skill copy reads its config from HYPERFRAMES_CONFIG_DIR too

* test(cli): expect the config folder as a normalized path on every platform

* chore(skills): refresh the media-use manifest hash

* fix(cli): a moved settings folder starts from ~/.hyperframes, keeping an opt-out

* fix(cli): drop the updater's unused path import

* style(cli): keep the settings-seed comment under 120 characters
2026-11-05 11:34:36 +00:00

22 lines
610 B
TypeScript

/**
* HyperFrames credentials are isolated from the HeyGen CLI and between environments.
*/
import { join } from "node:path";
import { hyperframesConfigDir } from "../utils/configDir.js";
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 = hyperframesConfigDir();
return oauthEnvironment() === "dev" ? join(root, "dev") : root;
}
export function credentialPath(): string {
return join(configDir(), CREDENTIAL_FILENAME);
}