| 85 | } |
| 86 | |
| 87 | function createStreamingContext(): StreamingContext { |
| 88 | return { |
| 89 | messageId: 'msg-1', |
| 90 | accumulatedContent: '', |
| 91 | finalAssistantContent: '', |
| 92 | sawMainToolCall: false, |
| 93 | contentBlocks: [], |
| 94 | toolCalls: new Map(), |
| 95 | pendingToolPromises: new Map(), |
| 96 | currentThinkingBlock: null, |
| 97 | subagentThinkingBlocks: new Map(), |
| 98 | isInThinkingBlock: false, |
| 99 | subAgentContent: {}, |
| 100 | subAgentToolCalls: {}, |
| 101 | pendingContent: '', |
| 102 | streamComplete: false, |
| 103 | wasAborted: false, |
| 104 | errors: [], |
| 105 | activeFileIntents: new Map(), |
| 106 | trace: new TraceCollector(), |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | describe('copilot go stream helpers', () => { |
| 111 | beforeEach(() => { |