(value: string)
| 20 | } |
| 21 | |
| 22 | function sanitizeValue(value: string): string { |
| 23 | return value |
| 24 | .replace(/[\u0000-\u001f\u007f]/g, ' ') |
| 25 | .replace(/[\[\]]/g, '') |
| 26 | .replace(/\s+/g, ' ') |
| 27 | .trim() |
| 28 | .slice(0, MAX_MARKER_LEN) |
| 29 | } |
| 30 | |
| 31 | function formatStatus(): string { |
| 32 | const current = getSystemPromptInjection() |
no outgoing calls
no test coverage detected