/**
 * Process-wide handle to the live OrchestratorHub.
 *
 * The hub's session state lives in memory in the web-server process. The
 * advise_now tool (which runs in that same process during a chat turn) and
 * the server's periodic advisor tick both need it, so we expose it as a
 * tiny singleton the server sets at startup. Null until the server starts
 * (e.g. CLI-only runs) — callers must handle that.
 */
let current = null;
export function setCurrentHub(hub) {
    current = hub;
}
export function getCurrentHub() {
    return current;
}
//# sourceMappingURL=current-hub.js.map