Commit 0564853
committed
fix CRITICAL: add missing ReasoningTokenEvent interface + union variant
REASONING_TOKEN was declared in the ExecutionEventType union (line 22) and
yielded from AgentExecutor.ts (lines 174, 388), but no ReasoningTokenEvent
interface existed and it was not in the ExecutionEvent discriminated union
(lines 525-574). This caused TypeScript to flag type errors when yielding
these events and made ExecutionSessionManager.ts:1110 rely on 'any' coercion.
Added interface with type: 'REASONING_TOKEN', executionId, token, timestamp.1 parent c0d5f24 commit 0564853
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
215 | 222 | | |
216 | 223 | | |
217 | 224 | | |
| |||
541 | 548 | | |
542 | 549 | | |
543 | 550 | | |
| 551 | + | |
544 | 552 | | |
545 | 553 | | |
546 | 554 | | |
| |||
0 commit comments