(state: State, event: Event)
| 257 | } |
| 258 | |
| 259 | function feed(state: State, event: Event): void { |
| 260 | const out = reduceSessionData({ |
| 261 | data: state.data, |
| 262 | event, |
| 263 | sessionID: state.id, |
| 264 | thinking: state.thinking, |
| 265 | limits: state.limits(), |
| 266 | }) |
| 267 | state.data = out.data |
| 268 | writeSessionOutput( |
| 269 | { |
| 270 | footer: state.footer, |
| 271 | }, |
| 272 | out, |
| 273 | ) |
| 274 | } |
| 275 | |
| 276 | function open(state: State): string { |
| 277 | const id = take(state, "msg", "msg") |
no test coverage detected