(tagName: string)
| 106 | } |
| 107 | |
| 108 | function extractTaggedBullets(tagName: string): string[] { |
| 109 | const match = EXTERNAL_PERMISSIONS_TEMPLATE.match( |
| 110 | new RegExp(`<${tagName}>([\\s\\S]*?)</${tagName}>`), |
| 111 | ) |
| 112 | if (!match) return [] |
| 113 | return (match[1] ?? '') |
| 114 | .split('\n') |
| 115 | .map(line => line.trim()) |
| 116 | .filter(line => line.startsWith('- ')) |
| 117 | .map(line => line.slice(2)) |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * Returns the full external classifier system prompt with default rules (no user |
no outgoing calls
no test coverage detected