MCPcopy Create free account
hub / github.com/oboard/claude-code-rev / onInboundMessage

Function onInboundMessage

src/cli/print.ts:3924–3935  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

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

Callers 1

handleIngressMessageFunction · 0.85

Calls 3

enqueueFunction · 0.85
runFunction · 0.70

Tested by

no test coverage detected