MCPcopy Index your code
hub / github.com/codeaashu/claude-code / contentToText

Function contentToText

src/utils/ultraplan/ccrSession.ts:310–316  ·  view source on GitHub ↗
(content: ToolResultBlockParam['content'])

Source from the content-addressed store, hash-verified

308// tool_result content may be string or [{type:'text',text}] depending on
309// threadstore encoding.
310function contentToText(content: ToolResultBlockParam['content']): string {
311 return typeof content === 'string'
312 ? content
313 : Array.isArray(content)
314 ? content.map(b => ('text' in b ? b.text : '')).join('')
315 : ''
316}
317
318// Extracts the plan text after the ULTRAPLAN_TELEPORT_SENTINEL marker.
319// Returns null when the sentinel is absent — callers treat null as a normal

Callers 2

extractTeleportPlanFunction · 0.85
extractApprovedPlanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected