(dir: string)
| 197 | // the (idempotent, lock-guarded) migration on every pass. Fails open. |
| 198 | const migratedConfigDirs = new Set<string>(); |
| 199 | function ensureConfigLocationsMigrated(dir: string): void { |
| 200 | if (migratedConfigDirs.has(dir)) return; |
| 201 | migratedConfigDirs.add(dir); |
| 202 | migrateMagicContextConfigLocations(dir, { |
| 203 | warn: (m) => warn(m), |
| 204 | info: (m) => info(m), |
| 205 | }); |
| 206 | } |
| 207 | |
| 208 | function formatTokens(value: number): string { |
| 209 | return value.toLocaleString(); |
no test coverage detected