()
| 521 | } |
| 522 | |
| 523 | const getTextBlock = () => { |
| 524 | const existing = openBlocks.find(block => block.kind === 'text') |
| 525 | if (existing) return existing |
| 526 | const created: OpenBlock = { |
| 527 | kind: 'text', |
| 528 | index: nextIndex++, |
| 529 | closed: false, |
| 530 | } |
| 531 | openBlocks.push(created) |
| 532 | return created |
| 533 | } |
| 534 | |
| 535 | const getToolBlock = (toolIndex: number, id?: string, name?: string) => { |
| 536 | const existing = openBlocks.find( |
no outgoing calls
no test coverage detected