(command: string)
| 128 | } |
| 129 | |
| 130 | function firstCommandToken(command: string): string { |
| 131 | const trimmed = command.trim() |
| 132 | const spaceIdx = trimmed.search(/\s/) |
| 133 | return spaceIdx === -1 ? trimmed : trimmed.slice(0, spaceIdx) |
| 134 | } |
| 135 | |
| 136 | // ============================================================================ |
| 137 | // Pending-hint store (useSyncExternalStore interface) |
no test coverage detected