mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-11 09:11:13 +00:00
fix(ci): align test fixtures with current runner types
This commit is contained in:
@@ -204,6 +204,7 @@ const makeAttempt = (overrides: Partial<EmbeddedRunAttemptResult>): EmbeddedRunA
|
||||
messagingToolSentMediaUrls: [],
|
||||
messagingToolSentTargets: [],
|
||||
cloudCodeAssistFormatError: false,
|
||||
itemLifecycle: { startedCount: 0, completedCount: 0, activeCount: 0 },
|
||||
...overrides,
|
||||
};
|
||||
};
|
||||
|
||||
@@ -61,7 +61,6 @@ function createToolHandlerCtx() {
|
||||
},
|
||||
hookRunner: hookMocks.runner,
|
||||
state: {
|
||||
toolMetaById: new Map<string, unknown>(),
|
||||
...createBaseToolHandlerState(),
|
||||
successfulCronAdds: 0,
|
||||
},
|
||||
|
||||
@@ -123,6 +123,7 @@ export function makeEmbeddedRunnerAttempt(
|
||||
messagingToolSentMediaUrls: [],
|
||||
messagingToolSentTargets: [],
|
||||
cloudCodeAssistFormatError: false,
|
||||
itemLifecycle: { startedCount: 0, completedCount: 0, activeCount: 0 },
|
||||
...overrides,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -127,7 +127,15 @@ type EmbeddedAgentParams = {
|
||||
}) => Promise<void> | void;
|
||||
onAgentEvent?: (payload: {
|
||||
stream: string;
|
||||
data: { phase?: string; completed?: boolean };
|
||||
data: {
|
||||
itemId?: string;
|
||||
kind?: string;
|
||||
title?: string;
|
||||
name?: string;
|
||||
phase?: string;
|
||||
status?: string;
|
||||
completed?: boolean;
|
||||
};
|
||||
}) => Promise<void> | void;
|
||||
};
|
||||
|
||||
|
||||
@@ -39,7 +39,6 @@ function createToolHandlerCtx(params: {
|
||||
},
|
||||
hookRunner: hookMocks.runner,
|
||||
state: {
|
||||
toolMetaById: new Map<string, string | undefined>(),
|
||||
...createBaseToolHandlerState(),
|
||||
},
|
||||
log: { debug: vi.fn(), warn: vi.fn() },
|
||||
|
||||
Reference in New Issue
Block a user