MCPcopy Create free account
hub / github.com/QuantiaAI/helm-agents / hasProviderKey

Method hasProviderKey

apps/api/src/lib/key-store.ts:99–102  ·  view source on GitHub ↗

Returns true if the provider's key is stored.

(provider: string)

Source from the content-addressed store, hash-verified

97
98 /** Returns true if the provider's key is stored. */
99 hasProviderKey(provider: string): boolean {
100 const env = PROVIDER_API_KEY_ENV[provider];
101 return env != null && this.keys[env] !== undefined;
102 }
103
104 private persist(): void {
105 writeFileSync(this.file, JSON.stringify(this.keys, null, 2), { mode: 0o600 });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected