fix(ci): align test fixtures with current runner types

This commit is contained in:
Peter Steinberger 2026-04-05 11:22:39 +01:00
parent 8c1ca1f245
commit 4559ece355
No known key found for this signature in database
5 changed files with 11 additions and 3 deletions

View File

@ -204,6 +204,7 @@ const makeAttempt = (overrides: Partial<EmbeddedRunAttemptResult>): EmbeddedRunA
messagingToolSentMediaUrls: [],
messagingToolSentTargets: [],
cloudCodeAssistFormatError: false,
itemLifecycle: { startedCount: 0, completedCount: 0, activeCount: 0 },
...overrides,
};
};

View File

@ -61,7 +61,6 @@ function createToolHandlerCtx() {
},
hookRunner: hookMocks.runner,
state: {
toolMetaById: new Map<string, unknown>(),
...createBaseToolHandlerState(),
successfulCronAdds: 0,
},

View File

@ -123,6 +123,7 @@ export function makeEmbeddedRunnerAttempt(
messagingToolSentMediaUrls: [],
messagingToolSentTargets: [],
cloudCodeAssistFormatError: false,
itemLifecycle: { startedCount: 0, completedCount: 0, activeCount: 0 },
...overrides,
};
}

View File

@ -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;
};

View File

@ -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() },