(message: MuxMessage)
| 36 | }); |
| 37 | |
| 38 | function getMessageText(message: MuxMessage): string { |
| 39 | const textPart = message.parts.find((part) => part.type === "text"); |
| 40 | if (textPart?.type !== "text") { |
| 41 | throw new Error(`Expected text part for message ${message.id}`); |
| 42 | } |
| 43 | return textPart.text; |
| 44 | } |
| 45 | |
| 46 | async function createSessionHarness(args: { |
| 47 | workspacePath: string; |
no outgoing calls
no test coverage detected