MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / enqueue

Function enqueue

source code/utils/messageQueueManager.ts:130–137  ·  view source on GitHub ↗
(command: QueuedCommand)

Source from the content-addressed store, hash-verified

128 * Defaults priority to 'next' (processed before task notifications).
129 */
130export function enqueue(command: QueuedCommand): void {
131 commandQueue.push({ ...command, priority: command.priority ?? 'next' })
132 notifySubscribers()
133 logOperation(
134 'enqueue',
135 typeof command.value === 'string' ? command.value : undefined,
136 )
137}
138
139/**
140 * Add a task notification to the queue.

Callers 12

onDoneFunction · 0.85
handlePromptSubmitFunction · 0.85
executeUserInputFunction · 0.85
REPLFunction · 0.85
runHeadlessStreamingFunction · 0.85
runFunction · 0.85
onInboundMessageFunction · 0.85
handleChannelEnableFunction · 0.85
useManageMCPConnectionsFunction · 0.85
handleInboundMessageFunction · 0.85

Calls 2

notifySubscribersFunction · 0.85
logOperationFunction · 0.85

Tested by

no test coverage detected