The item currently being synthesized, or null.
The currently executing phase item, or null.
Number of items waiting in the queue (excludes current).
A shallow copy of the queued items.
Get all override entries (shallow copy).
A shallow copy of the pending items (alias for items).
Remove all pending items from the queue. Does not affect the currently-running item.
The number of items removed.
Clear the current phase item.
Clear all override entries. Returns count removed.
Mark the currently-running synthesis as complete.
Remove and return the next item from the queue.
Dequeue the next override entry, or undefined if empty.
Add a path to the synthesis queue.
Meta path to synthesize.
If true, insert at front of queue.
Position and whether the path was already queued.
Add an explicit override entry (from POST /synthesize with path). Deduped by path. Returns position and whether already queued.
Get the 0-indexed position of a path in the queue.
Return a snapshot of queue state for the /status endpoint.
Check whether a path is in the queue or currently being synthesized.
Check if a path is in the override layer.
Set a callback to invoke when a new (non-duplicate) item is enqueued.
Process queued items one at a time until all queues are empty.
Override entries are processed first (FIFO), then legacy queue items. Re-entry is prevented: if already processing, the call returns immediately. Errors are logged and do not block subsequent items.
Async function that performs synthesis for a path.
Set the currently executing phase item.
Hybrid 3-layer synthesis queue.
Only one synthesis runs at a time. Override items (explicit triggers) take priority over automatic candidates.