refactor: trim subagent test helper exports

This commit is contained in:
Peter Steinberger
2026-05-01 12:14:08 +01:00
parent 7301e57632
commit aa74888cf7
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ import { vi } from "vitest";
type SessionStore = Record<string, Record<string, unknown>>;
export function resolveSubagentSessionStorePath(stateDir: string, agentId: string): string {
function resolveSubagentSessionStorePath(stateDir: string, agentId: string): string {
return path.join(stateDir, "agents", agentId, "sessions", "sessions.json");
}

View File

@@ -58,11 +58,11 @@ export function setupAcceptedSubagentGatewayMock(callGatewayMock: MockImplementa
});
}
export function identityDeliveryContext(value: unknown) {
function identityDeliveryContext(value: unknown) {
return value;
}
export function createDefaultSessionHelperMocks() {
function createDefaultSessionHelperMocks() {
return {
resolveMainSessionAlias: () => ({ mainKey: "main", alias: "main" }),
resolveInternalSessionKey: ({ key }: { key?: string }) => key ?? "agent:main:main",