(uuid: string)
| 198 | * Deterministic: same UUID always produces the same short ID. |
| 199 | */ |
| 200 | export function deriveShortMessageId(uuid: string): string { |
| 201 | // Take first 10 hex chars from the UUID (skipping dashes) |
| 202 | const hex = uuid.replace(/-/g, '').slice(0, 10) |
| 203 | // Convert to base36 for shorter representation, take 6 chars |
| 204 | return parseInt(hex, 16).toString(36).slice(0, 6) |
| 205 | } |
| 206 | |
| 207 | export const INTERRUPT_MESSAGE = '[Request interrupted by user]' |
| 208 | export const INTERRUPT_MESSAGE_FOR_TOOL_USE = |
no test coverage detected