(text: string)
| 38 | * @returns The content inside the $$$ block, or null if not found. |
| 39 | */ |
| 40 | export function extractAgentConfig(text: string): string | null { |
| 41 | const agentBlockRegex = /\$\$\$\s*\n?([\s\S]*?)\n?\$\$\$/; |
| 42 | const match = text.match(agentBlockRegex); |
| 43 | return match && match[1] ? match[1].trim() : null; |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Extracts all agent configuration blocks from a string. |
nothing calls this directly
no outgoing calls
no test coverage detected