(msg)
| 3921 | ) |
| 3922 | const handle = await initReplBridge({ |
| 3923 | onInboundMessage(msg) { |
| 3924 | const fields = extractInboundMessageFields(msg) |
| 3925 | if (!fields) return |
| 3926 | const { content, uuid } = fields |
| 3927 | enqueue({ |
| 3928 | value: content, |
| 3929 | mode: 'prompt' as const, |
| 3930 | uuid, |
| 3931 | skipSlashCommands: true, |
| 3932 | }) |
| 3933 | void run() |
| 3934 | }, |
| 3935 | onPermissionResponse(response) { |
| 3936 | // Forward bridge permission responses into the |
| 3937 | // stdin processing loop so they resolve pending |
no test coverage detected