test(agent): time the connector registry against a store without spies (P1.2)
This commit is contained in:
@@ -11,7 +11,8 @@ import { composePersonaPrompt, PERSONAS, getPersona } from '../../src/personas.j
|
||||
import { AgentMessageBus } from '../../src/agent-message-bus.js';
|
||||
import { needsConfirmation, getApprovalClass } from '../../src/confirmation.js';
|
||||
import { WorkspaceSessionManager } from '../../../server/src/local/workspace-sessions.js';
|
||||
import { createMemorySecretStore, type MockSecretStore } from '../helpers/memory-secret-store.js';
|
||||
import type { SecretStore } from '@waggle/core';
|
||||
import { createPlainSecretStore } from '../helpers/memory-secret-store.js';
|
||||
// The session manager is typed against the published @waggle/agent surface.
|
||||
import type { Orchestrator } from '@waggle/agent';
|
||||
import type { ConnectorHealth } from '@waggle/shared';
|
||||
@@ -50,8 +51,8 @@ class PerfConnector extends BaseConnector {
|
||||
}
|
||||
}
|
||||
|
||||
function createMockVault(connectedIds: string[]): MockSecretStore {
|
||||
return createMemorySecretStore({
|
||||
function createMockVault(connectedIds: string[]): SecretStore {
|
||||
return createPlainSecretStore({
|
||||
connectors: Object.fromEntries(connectedIds.map(id => [id, { type: 'bearer' as const, value: 'tok' }])),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user