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:
@@ -12,7 +12,7 @@ import Fastify from 'fastify';
|
||||
import * as fs from 'node:fs';
|
||||
import * as path from 'node:path';
|
||||
import * as os from 'node:os';
|
||||
import { MindDB, InstallAuditStore, VaultStore } from '@waggle/core';
|
||||
import { MindDB, InstallAuditStore, VaultStore, type SecretStore } from '@waggle/core';
|
||||
import {
|
||||
ConnectorRegistry,
|
||||
BaseConnector,
|
||||
@@ -46,7 +46,7 @@ class TestConnector extends BaseConnector {
|
||||
credentialValue: string | null = null;
|
||||
connectGate: Promise<void> | null = null;
|
||||
connectError: Error | null = null;
|
||||
async connect(vault: VaultStore): Promise<void> {
|
||||
async connect(vault: SecretStore): Promise<void> {
|
||||
this.connectCalls += 1;
|
||||
if (this.connectGate) await this.connectGate;
|
||||
if (this.connectError) throw this.connectError;
|
||||
|
||||
Reference in New Issue
Block a user