MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / getBridgeCommandSafety

Function getBridgeCommandSafety

src/commands.ts:765–772  ·  view source on GitHub ↗
(
  cmd: Command,
  args: string,
)

Source from the content-addressed store, hash-verified

763}
764
765export 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.

Callers 1

processUserInputBaseFunction · 0.85

Calls 1

isBridgeSafeCommandFunction · 0.85

Tested by

no test coverage detected