(text: string, platform: DeliveryTarget['platform'])
| 55 | |
| 56 | /** Hard-truncate to a platform's message limit, keeping the head (the verdict lives there). PURE. */ |
| 57 | export function clampForPlatform(text: string, platform: DeliveryTarget['platform']): string { |
| 58 | const max = MAX_LEN[platform]; |
| 59 | return text.length <= max ? text : text.slice(0, max - 1) + '…'; |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Send `text` to a parsed target. Best-effort: loads ~/.qodex/.env so tokens are present |
no outgoing calls
no test coverage detected