MCPcopy
hub / github.com/codeaashu/claude-code / enqueue

Function enqueue

src/utils/messageQueueManager.ts:128–135  ·  view source on GitHub ↗
(command: QueuedCommand)

Source from the content-addressed store, hash-verified

126 * Defaults priority to 'next' (processed before task notifications).
127 */
128export function enqueue(command: QueuedCommand): void {
129 commandQueue.push({ ...command, priority: command.priority ?? 'next' })
130 notifySubscribers()
131 logOperation(
132 'enqueue',
133 typeof command.value === 'string' ? command.value : undefined,
134 )
135}
136
137/**
138 * 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 3

notifySubscribersFunction · 0.85
logOperationFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected