refactor: trim subagent test helper exports · openclaw/openclaw@aa74888
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,7 @@ import { vi } from "vitest";
|
4 | 4 | |
5 | 5 | type SessionStore = Record<string, Record<string, unknown>>; |
6 | 6 | |
7 | | -export function resolveSubagentSessionStorePath(stateDir: string, agentId: string): string { |
| 7 | +function resolveSubagentSessionStorePath(stateDir: string, agentId: string): string { |
8 | 8 | return path.join(stateDir, "agents", agentId, "sessions", "sessions.json"); |
9 | 9 | } |
10 | 10 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -58,11 +58,11 @@ export function setupAcceptedSubagentGatewayMock(callGatewayMock: MockImplementa
|
58 | 58 | }); |
59 | 59 | } |
60 | 60 | |
61 | | -export function identityDeliveryContext(value: unknown) { |
| 61 | +function identityDeliveryContext(value: unknown) { |
62 | 62 | return value; |
63 | 63 | } |
64 | 64 | |
65 | | -export function createDefaultSessionHelperMocks() { |
| 65 | +function createDefaultSessionHelperMocks() { |
66 | 66 | return { |
67 | 67 | resolveMainSessionAlias: () => ({ mainKey: "main", alias: "main" }), |
68 | 68 | resolveInternalSessionKey: ({ key }: { key?: string }) => key ?? "agent:main:main", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。