MCPcopy
hub / github.com/claude-code-best/claude-code / isBridgeSafeCommand

Function isBridgeSafeCommand

src/commands.ts:759–763  ·  view source on GitHub ↗
(cmd: Command)

Source from the content-addressed store, hash-verified

757 * BRIDGE_SAFE_COMMANDS; 'local-jsx' commands render Ink UI and stay blocked.
758 */
759export 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
765export function getBridgeCommandSafety(
766 cmd: Command,

Callers 2

getBridgeCommandSafetyFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected