MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / writeConfig

Function writeConfig

packages/cli/src/telemetry/config.ts:126–134  ·  view source on GitHub ↗
(config: HyperframesConfig)

Source from the content-addressed store, hash-verified

124 * Persist config to disk. Updates the in-memory cache.
125 */
126export function writeConfig(config: HyperframesConfig): void {
127 try {
128 mkdirSync(CONFIG_DIR, { recursive: true, mode: 0o700 });
129 writeFileSync(CONFIG_FILE, JSON.stringify(config, null, 2) + "\n", { mode: 0o600 });
130 cachedConfig = { ...config };
131 } catch {
132 // Non-fatal — telemetry should never break the CLI
133 }
134}
135
136/**
137 * Increment the command counter and persist.

Callers 10

refreshSkillsCacheFunction · 0.85
checkForUpdateFunction · 0.85
reportCompletedUpdateFunction · 0.85
showTelemetryNoticeFunction · 0.85
readConfigFunction · 0.85
incrementCommandCountFunction · 0.85
runEnableFunction · 0.85
runDisableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected