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