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:
shumeiko.it
2026-10-24 16:44:28 +02:00
parent 9aae9d6537
commit 4ed21fe519
39 changed files with 84 additions and 84 deletions

View File

@@ -7,7 +7,7 @@
*/
import type { ConnectorDefinition, ConnectorHealth, ConnectorStatus, ConnectorActionMeta } from '@waggle/shared';
import type { VaultStore } from '@waggle/core';
import type { SecretStore } from '@waggle/core';
/** Full action definition with input/output schemas (runtime-only) */
export interface ConnectorAction {
@@ -58,7 +58,7 @@ export interface WaggleConnector {
readonly setupGuide?: string;
/** Initialize connector with vault credentials */
connect(vault: VaultStore): Promise<void>;
connect(vault: SecretStore): Promise<void>;
/** Check if connection is healthy */
healthCheck(): Promise<ConnectorHealth>;
/** Execute an action by name */
@@ -83,7 +83,7 @@ export abstract class BaseConnector implements WaggleConnector {
readonly category?: 'productivity' | 'development' | 'crm' | 'data' | 'communication' | 'storage' | 'integration';
readonly setupGuide?: string;
abstract connect(vault: VaultStore): Promise<void>;
abstract connect(vault: SecretStore): Promise<void>;
abstract healthCheck(): Promise<ConnectorHealth>;
abstract execute(action: string, params: Record<string, unknown>): Promise<ConnectorResult>;