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

Function isSDKControlResponse

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

Source from the content-addressed store, hash-verified

44
45/** Type predicate for control_response messages from the server. */
46export function isSDKControlResponse(
47 value: unknown,
48): value is SDKControlResponse {
49 return (
50 value !== null &&
51 typeof value === 'object' &&
52 'type' in value &&
53 value.type === 'control_response' &&
54 'response' in value
55 )
56}
57
58/** Type predicate for control_request messages from the server. */
59export function isSDKControlRequest(

Callers 1

handleIngressMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected