( cmd: Command, args: string, )
| 763 | } |
| 764 | |
| 765 | export function getBridgeCommandSafety( |
| 766 | cmd: Command, |
| 767 | args: string, |
| 768 | ): { ok: true } | { ok: false; reason?: string } { |
| 769 | if (!isBridgeSafeCommand(cmd)) return { ok: false } |
| 770 | const reason = cmd.getBridgeInvocationError?.(args) |
| 771 | return reason ? { ok: false, reason } : { ok: true } |
| 772 | } |
| 773 | |
| 774 | /** |
| 775 | * Filter commands to only include those safe for remote mode. |
no test coverage detected