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