MCPcopy
hub / github.com/claude-code-best/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 15

onDoneFunction · 0.70
handlePromptSubmitFunction · 0.70
executeUserInputFunction · 0.70
SleepTool.test.tsFile · 0.50
queryFunction · 0.50
REPLFunction · 0.50
runHeadlessStreamingFunction · 0.50
drainCommandQueueFunction · 0.50
runFunction · 0.50

Calls 3

notifySubscribersFunction · 0.85
logOperationFunction · 0.85
pushMethod · 0.45

Tested by 1