mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 07:50:13 +00:00
* 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
22 lines
610 B
TypeScript
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);
|
|
}
|