MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / sendControlRequest

Function sendControlRequest

source code/bridge/replBridge.ts:1781–1793  ·  view source on GitHub ↗
(request: SDKControlRequest)

Source from the content-addressed store, hash-verified

1779 void transport.writeBatch(events)
1780 },
1781 sendControlRequest(request: SDKControlRequest) {
1782 if (!transport) {
1783 logForDebugging(
1784 '[bridge:repl] Transport not configured, skipping control_request',
1785 )
1786 return
1787 }
1788 const event = { ...request, session_id: currentSessionId }
1789 void transport.write(event)
1790 logForDebugging(
1791 `[bridge:repl] Sent control_request request_id=${request.request_id}`,
1792 )
1793 },
1794 sendControlResponse(response: SDKControlResponse) {
1795 if (!transport) {
1796 logForDebugging(

Callers

nothing calls this directly

Calls 2

logForDebuggingFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected