Tracks pending server-side runs created via multitaskStrategy: "enqueue".
Uses the same subscribe/getSnapshot pattern as StreamManager to integrate with framework-specific reactivity systems.
class PendingRunsTrackerReturn the current version number, incremented on each state change.
Useful as a cache key for external sync (e.g. useSyncExternalStore).
Remove a specific entry by ID.
Remove all entries from the tracker.
Remove and return the next pending entry (FIFO).
Register a listener that is called whenever the orchestrator state changes.