MCPcopy Create free account
hub / github.com/freecodexyz/free-code / sendControlRequest

Function sendControlRequest

src/bridge/replBridge.ts:1779–1791  ·  view source on GitHub ↗
(request: SDKControlRequest)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

logForDebuggingFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected