MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isSDKControlRequest

Function isSDKControlRequest

src/bridge/bridgeMessaging.ts:59–70  ·  view source on GitHub ↗
(
  value: unknown,
)

Source from the content-addressed store, hash-verified

57
58/** Type predicate for control_request messages from the server. */
59export function isSDKControlRequest(
60 value: unknown,
61): value is SDKControlRequest {
62 return (
63 value !== null &&
64 typeof value === 'object' &&
65 'type' in value &&
66 value.type === 'control_request' &&
67 'request_id' in value &&
68 'request' in value
69 )
70}
71
72/**
73 * True for message types that should be forwarded to the bridge transport.

Callers 1

handleIngressMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected