Resolved per call (not module-const) so tests / portable installs can * point it elsewhere via OPENALICE_GLOBAL_DIR.
()
| 21 | /** Resolved per call (not module-const) so tests / portable installs can |
| 22 | * point it elsewhere via OPENALICE_GLOBAL_DIR. */ |
| 23 | function globalProviderKeysFile(): string { |
| 24 | const root = process.env['OPENALICE_GLOBAL_DIR'] ?? join(homedir(), '.openalice') |
| 25 | return join(root, 'provider-keys.json') |
| 26 | } |
| 27 | |
| 28 | async function readGlobalProviderKeys(): Promise<Record<string, string>> { |
| 29 | try { |
no outgoing calls
no test coverage detected