(text, limit = 72)
| 88 | } |
| 89 | |
| 90 | function shorten(text, limit = 72) { |
| 91 | const normalized = String(text ?? "").trim().replace(/\s+/g, " "); |
| 92 | if (!normalized) { |
| 93 | return ""; |
| 94 | } |
| 95 | if (normalized.length <= limit) { |
| 96 | return normalized; |
| 97 | } |
| 98 | return `${normalized.slice(0, limit - 3)}...`; |
| 99 | } |
| 100 | |
| 101 | function looksLikeVerificationCommand(command) { |
| 102 | return /\b(test|tests|lint|build|typecheck|type-check|check|verify|validate|pytest|jest|vitest|cargo test|npm test|pnpm test|yarn test|go test|mvn test|gradle test|tsc|eslint|ruff)\b/i.test( |
no outgoing calls
no test coverage detected