(output: unknown)
| 746 | const textDecoder = new TextDecoder() |
| 747 | |
| 748 | const readSpawnOutput = (output: unknown): string => { |
| 749 | if (!output) return '' |
| 750 | if (typeof output === 'string') return output.trim() |
| 751 | if (output instanceof Uint8Array) return textDecoder.decode(output).trim() |
| 752 | return '' |
| 753 | } |
| 754 | |
| 755 | const runSystemCommand = (command: string[]): string | null => { |
| 756 | if (typeof Bun === 'undefined') return null |