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

Function showTelemetryNotice

packages/cli/src/telemetry/client.ts:177–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175 * before any data is sent.
176 */
177export function showTelemetryNotice(): boolean {
178 if (!shouldTrack()) return false;
179
180 const config = readConfig();
181 if (config.telemetryNoticeShown) return false;
182
183 // Persist the notice flag first, before any tracking occurs,
184 // so the user is never tracked without having seen the disclosure.
185 config.telemetryNoticeShown = true;
186 writeConfig(config);
187
188 console.log();
189 console.log(` ${c.dim("Hyperframes collects anonymous usage data to improve the tool.")}`);
190 console.log(` ${c.dim("No personal info, file paths, or content is collected.")}`);
191 console.log();
192 console.log(` ${c.dim("Disable anytime:")} ${c.accent("hyperframes telemetry disable")}`);
193 console.log();
194
195 return true;
196}

Callers

nothing calls this directly

Calls 3

readConfigFunction · 0.85
writeConfigFunction · 0.85
shouldTrackFunction · 0.70

Tested by

no test coverage detected