/** * hivemind-session-view handler — unified session state query. * * Aggregates data from session-tracker, delegations, and trajectory * into a single response. Read-only — never mutates state. * * @module sidecar/server/tool-proxy/handlers/hivemind-session-view */ import type { SidecarDependencyRegistry } from "../../registry.js"; export interface HivemindSessionViewArgs { sessionId?: string; } /** * Handle a hivemind-session-view tool call. * * GAP-01 fix (sidecar-completeness-2026-06-06): the previous implementation * called `st.get(sessionId)` but DISCARDED the result, always returning * `{ ok: true, data: { sessionId } }` with no real data. This fix: * - Uses the typed `registry.sessionTracker` getter (no `(registry as any)`) * - Captures the `sessionTracker.get()` result and returns the full record * - Throws `[Hivemind]` if `sessionTracker` is not bound (registry design * contract — typed getter throws on unbound access) * - Returns a NOT_FOUND error envelope if the session is not found * * @param options.args - Query args (sessionId). * @param options.registry - Sidecar dependency registry. * @returns Unified session view, or an error envelope. */ export declare function handleHivemindSessionView(options: { args: HivemindSessionViewArgs; registry: SidecarDependencyRegistry; }): Promise<{ ok: false; error: { code: string; message: string; }; data?: undefined; } | { ok: true; data: { session: {}; }; error?: undefined; }>; //# sourceMappingURL=hivemind-session-view.d.ts.map