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

Function onInboundMessage

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

Source from the content-addressed store, hash-verified

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

Callers 1

handleIngressMessageFunction · 0.85

Calls 3

enqueueFunction · 0.85
runFunction · 0.70

Tested by

no test coverage detected