MCPcopy Create free account
hub / github.com/codeaashu/claude-code / parseXmlThinking

Function parseXmlThinking

src/utils/permissions/yoloClassifier.ts:601–604  ·  view source on GitHub ↗

* Parse XML thinking content: ...

(text: string)

Source from the content-addressed store, hash-verified

599 * Parse XML thinking content: <thinking>...</thinking>
600 */
601function parseXmlThinking(text: string): string | null {
602 const match = /<thinking>([\s\S]*?)<\/thinking>/.exec(text)
603 return match ? match[1]!.trim() : null
604}
605
606/**
607 * Extract usage stats from an API response.

Callers 1

classifyYoloActionXmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected