(cmd: Command)
| 757 | * BRIDGE_SAFE_COMMANDS; 'local-jsx' commands render Ink UI and stay blocked. |
| 758 | */ |
| 759 | export function isBridgeSafeCommand(cmd: Command): boolean { |
| 760 | if (cmd.type === 'local-jsx') return cmd.bridgeSafe === true |
| 761 | if (cmd.type === 'prompt') return true |
| 762 | return cmd.bridgeSafe === true || BRIDGE_SAFE_COMMANDS.has(cmd) |
| 763 | } |
| 764 | |
| 765 | export function getBridgeCommandSafety( |
| 766 | cmd: Command, |
no test coverage detected