(input: {
detail: DetailState
event: Event
thinking: boolean
limits: Record<string, number>
})
| 555 | } |
| 556 | |
| 557 | function applyChildEvent(input: { |
| 558 | detail: DetailState |
| 559 | event: Event |
| 560 | thinking: boolean |
| 561 | limits: Record<string, number> |
| 562 | }) { |
| 563 | const before = queueSnapshot(input.detail.data) |
| 564 | const out = reduceSessionData({ |
| 565 | data: input.detail.data, |
| 566 | event: input.event, |
| 567 | sessionID: input.detail.sessionID, |
| 568 | thinking: input.thinking, |
| 569 | limits: input.limits, |
| 570 | }) |
| 571 | const changed = appendCommits(input.detail, out.commits) |
| 572 | compactDetail(input.detail) |
| 573 | |
| 574 | return changed || queueChanged(input.detail.data, before) |
| 575 | } |
| 576 | |
| 577 | function bootstrapChildEvent(input: { |
| 578 | detail: DetailState |
no test coverage detected