UNPKG

breaker-ai

Version:

CLI to scan prompts for injection risks

4 lines (3 loc) 160 B
export function lengthWarning(text: string): string | undefined { return text.length > 3000 ? "Prompt is very long; risk of context overflow." : undefined; }