(input: string)
| 5 | typeof value === "object" && value !== null && !Array.isArray(value); |
| 6 | |
| 7 | const stripRepeatedErrorPrefix = (input: string): string => { |
| 8 | let output = input.trim(); |
| 9 | while (output.toLowerCase().startsWith("error:")) { |
| 10 | output = output.slice("error:".length).trimStart(); |
| 11 | } |
| 12 | return output; |
| 13 | }; |
| 14 | |
| 15 | export const sanitizeCliOutputText = (input: string): string => |
| 16 | input |
no outgoing calls
no test coverage detected