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

Function sendControlResponseSuccess

src/cli/print.ts:2736–2748  ·  view source on GitHub ↗
(
    message: SDKControlRequest,
    response?: Record<string, unknown>,
  )

Source from the content-addressed store, hash-verified

2734 }
2735
2736 const sendControlResponseSuccess = function (
2737 message: SDKControlRequest,
2738 response?: Record<string, unknown>,
2739 ) {
2740 output.enqueue({
2741 type: 'control_response',
2742 response: {
2743 subtype: 'success',
2744 request_id: message.request_id,
2745 response: response,
2746 },
2747 })
2748 }
2749
2750 const sendControlResponseError = function (
2751 message: SDKControlRequest,

Callers 1

runHeadlessStreamingFunction · 0.85

Calls 1

enqueueMethod · 0.45

Tested by

no test coverage detected