(callID: string)
| 66 | return Schema.decodeUnknownSync(SessionMessage.Assistant)({ ...row.data, id: row.id, type: row.type }) |
| 67 | }) |
| 68 | const start = (callID: string) => |
| 69 | Effect.gen(function* () { |
| 70 | yield* service.publish(SessionEvent.Tool.Input.Started, { |
| 71 | sessionID, |
| 72 | timestamp, |
| 73 | assistantMessageID, |
| 74 | callID, |
| 75 | name: "bash", |
| 76 | }) |
| 77 | yield* service.publish(SessionEvent.Tool.Called, { |
| 78 | sessionID, |
| 79 | timestamp, |
| 80 | assistantMessageID, |
| 81 | callID, |
| 82 | tool: "bash", |
| 83 | input: { command: "pwd" }, |
| 84 | provider: { executed: false }, |
| 85 | }) |
| 86 | }) |
| 87 | |
| 88 | yield* start("call-success") |
| 89 | expect((yield* readAssistant).content[0]).toMatchObject({ |
no test coverage detected