MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / findQueuedPromptIndexById

Function findQueuedPromptIndexById

desktop/runtime/composer-queue.ts:63–72  ·  view source on GitHub ↗
(
  mode: ComposerQueueMode,
  prompts: string[],
  queueId: string,
)

Source from the content-addressed store, hash-verified

61}
62
63export function findQueuedPromptIndexById(
64 mode: ComposerQueueMode,
65 prompts: string[],
66 queueId: string,
67) {
68 return (
69 buildQueuedPromptsForMode(mode, prompts).find((prompt) => prompt.id === queueId)?.queueIndex ??
70 null
71 )
72}
73
74export function removeQueuedPromptById(
75 queue: ComposerQueueSnapshot,

Callers 3

dequeueComposerPromptFunction · 0.90
dequeueComposerPromptFunction · 0.90
removeQueuedPromptByIdFunction · 0.85

Calls 1

Tested by

no test coverage detected