(msg)
| 4131 | ) |
| 4132 | const handle = await initReplBridge({ |
| 4133 | onInboundMessage(msg) { |
| 4134 | const fields = extractInboundMessageFields(msg) |
| 4135 | if (!fields) return |
| 4136 | const { content, uuid } = fields |
| 4137 | enqueue({ |
| 4138 | value: content, |
| 4139 | mode: 'prompt' as const, |
| 4140 | uuid, |
| 4141 | skipSlashCommands: true, |
| 4142 | }) |
| 4143 | void run() |
| 4144 | }, |
| 4145 | onPermissionResponse(response) { |
| 4146 | // Forward bridge permission responses into the |
| 4147 | // stdin processing loop so they resolve pending |
no test coverage detected