(msg)
| 3951 | ) |
| 3952 | const handle = await initReplBridge({ |
| 3953 | onInboundMessage(msg) { |
| 3954 | const fields = extractInboundMessageFields(msg) |
| 3955 | if (!fields) return |
| 3956 | const { content, uuid } = fields |
| 3957 | enqueue({ |
| 3958 | value: content, |
| 3959 | mode: 'prompt' as const, |
| 3960 | uuid, |
| 3961 | skipSlashCommands: true, |
| 3962 | }) |
| 3963 | void run() |
| 3964 | }, |
| 3965 | onPermissionResponse(response) { |
| 3966 | // Forward bridge permission responses into the |
| 3967 | // stdin processing loop so they resolve pending |
no test coverage detected