MCPcopy Create free account
hub / github.com/oboard/claude-code-rev / getTextBlock

Function getTextBlock

src/services/api/openaiCompatibleClient.ts:523–533  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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(

Callers 1

createOpenAIEventStreamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected