(payload: Record<string, unknown>)
| 627 | const argsJson = msg.argsJson as string | undefined |
| 628 | |
| 629 | const sendResponse = (payload: Record<string, unknown>) => { |
| 630 | try { |
| 631 | workerInfo.process.send({ type: 'brokerResponse', brokerId, ...payload }) |
| 632 | } catch (err) { |
| 633 | logger.error('Failed to send broker response to worker', { |
| 634 | err, |
| 635 | brokerId, |
| 636 | brokerName, |
| 637 | workerId: workerInfo.id, |
| 638 | }) |
| 639 | } |
| 640 | } |
| 641 | |
| 642 | const logReject = (reason: string, extra?: Record<string, unknown>) => { |
| 643 | logger.warn('Sandbox broker call rejected', { |
no test coverage detected