MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / globalProviderKeysFile

Function globalProviderKeysFile

src/core/config.ts:23–26  ·  view source on GitHub ↗

Resolved per call (not module-const) so tests / portable installs can * point it elsewhere via OPENALICE_GLOBAL_DIR.

()

Source from the content-addressed store, hash-verified

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

Callers 2

readGlobalProviderKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected