mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:50:42 +00:00
refactor: trim subagent test helper exports
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user