()
| 175 | * before any data is sent. |
| 176 | */ |
| 177 | export 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 | } |
nothing calls this directly
no test coverage detected