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

Function dequeueAll

source code/utils/messageQueueManager.ts:201–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199 * Logs a dequeue operation for each command.
200 */
201export function dequeueAll(): QueuedCommand[] {
202 if (commandQueue.length === 0) {
203 return []
204 }
205
206 const commands = [...commandQueue]
207 commandQueue.length = 0
208 notifySubscribers()
209
210 for (const _cmd of commands) {
211 logOperation('dequeue')
212 }
213
214 return commands
215}
216
217/**
218 * Return the highest-priority command without removing it, or undefined if empty.

Callers

nothing calls this directly

Calls 2

notifySubscribersFunction · 0.85
logOperationFunction · 0.85

Tested by

no test coverage detected