refactor: depend on SecretStore instead of the VaultStore class (P1.2)
Connectors, the connector SDK and registry, setup-connectors, provider-env, the LiteLLM runtime config and the sidecar's `vault` decoration only read and write secrets, so they now take the SecretStore interface. VaultStore is still constructed in the sidecar and the service startup, and its file format is unchanged. AGENTS.md now points at the interface.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
import type { WaggleConnector, ConnectorResult } from './connector-sdk.js';
|
||||
import { getConnectorCredential } from './connectors/connector-credentials.js';
|
||||
import type { ToolDefinition } from './tools.js';
|
||||
import type { VaultStore } from '@waggle/core';
|
||||
import type { SecretStore } from '@waggle/core';
|
||||
import type { ConnectorDefinition, ConnectorHealth } from '@waggle/shared';
|
||||
|
||||
export interface AuditLogger {
|
||||
@@ -25,10 +25,10 @@ interface ConnectorHydration {
|
||||
export class ConnectorRegistry {
|
||||
private connectors = new Map<string, WaggleConnector>();
|
||||
private hydration = new WeakMap<WaggleConnector, ConnectorHydration>();
|
||||
private vault: VaultStore;
|
||||
private vault: SecretStore;
|
||||
private auditLogger?: AuditLogger;
|
||||
|
||||
constructor(vault: VaultStore, auditLogger?: AuditLogger) {
|
||||
constructor(vault: SecretStore, auditLogger?: AuditLogger) {
|
||||
this.vault = vault;
|
||||
this.auditLogger = auditLogger;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user