MCPcopy Create free account
hub / github.com/Noumena-Network/code / onInboundMessage

Function onInboundMessage

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

Source from the content-addressed store, hash-verified

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

Callers 1

handleIngressMessageFunction · 0.85

Calls 3

enqueueFunction · 0.85
runFunction · 0.70

Tested by

no test coverage detected