(type: "turn.abort" | "turn.cancel")
| 872 | }) |
| 873 | |
| 874 | const flush = (type: "turn.abort" | "turn.cancel") => { |
| 875 | const commits: StreamCommit[] = [] |
| 876 | flushInterrupted(state.data, commits) |
| 877 | syncFooter(commits) |
| 878 | input.trace?.write(type, { |
| 879 | sessionID: input.sessionID, |
| 880 | }) |
| 881 | } |
| 882 | |
| 883 | const applyEvent = Effect.fn("RunStreamTransport.applyEvent")(function* (event: Event) { |
| 884 | if (event.type === "message.part.delta" && event.properties.sessionID === input.sessionID) { |
no test coverage detected