Skip to content

Commit 1f0cab1

Browse files
committed
fix(copilot): type the sim_cli test frame as a tool call
1 parent 23fed10 commit 1f0cab1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎apps/sim/lib/mothership/request/handlers/handlers.test.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ import {
6262
MothershipStreamV1ResourceOp,
6363
MothershipStreamV1RunKind,
6464
MothershipStreamV1TextChannel,
65+
type MothershipStreamV1ToolCallDescriptor,
6566
MothershipStreamV1ToolExecutor,
6667
MothershipStreamV1ToolMode,
6768
MothershipStreamV1ToolOutcome,
@@ -434,7 +435,11 @@ describe('sse-handlers tool lifecycle', () => {
434435
describe('sim_cli approval', () => {
435436
const activate = ['workflows', 'activate', 'create', 'wf-1', '1', '--yes']
436437

437-
function cliFrame(toolCallId: string, toolName: string, argv: string[]): StreamEvent {
438+
function cliFrame(
439+
toolCallId: string,
440+
toolName: string,
441+
argv: string[]
442+
): StreamEvent & { payload: MothershipStreamV1ToolCallDescriptor } {
438443
return {
439444
type: MothershipStreamV1EventType.tool,
440445
payload: {

0 commit comments

Comments
 (0)