(timestamp = staleTimestamp)
| 143 | } |
| 144 | |
| 145 | function makeInteractiveAssistantMessage(timestamp = staleTimestamp): MuxMessage { |
| 146 | const assistantMessage = createMuxMessage("2", "assistant", "asking", { timestamp }); |
| 147 | (assistantMessage as unknown as { parts: unknown[] }).parts = [ |
| 148 | { type: "text", text: "Let me ask...", state: "done" }, |
| 149 | { |
| 150 | type: "dynamic-tool", |
| 151 | toolName: "ask_user_question", |
| 152 | state: "input-available", |
| 153 | toolCallId: "tc1", |
| 154 | args: {}, |
| 155 | output: undefined, |
| 156 | }, |
| 157 | ]; |
| 158 | return assistantMessage; |
| 159 | } |
| 160 | |
| 161 | function makeIdleSessionMock(): ReturnType<typeof mock<() => AgentSession>> { |
| 162 | return mock( |
no test coverage detected