(content: ToolResultBlockParam['content'])
| 308 | // tool_result content may be string or [{type:'text',text}] depending on |
| 309 | // threadstore encoding. |
| 310 | function 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 |
no outgoing calls
no test coverage detected