/** * Read-only session-list projection — the pure core of the CLI `sessions list` * command (formerly `showHistory` in `packages/cli/src/commands/history.ts`). * * Re-homed here (ADR-0084) so `@opensip-cli/mcp` can list runs without importing * the composition root (`cli` is layer 6; a tool→cli edge would cycle). The CLI * command file is now a thin re-export over this function — `sessions list` * behavior is byte-for-byte unchanged. * * It uses `SessionRepo` internally (session-store is the sanctioned owner) but * exposes a read-only, DTO-returning signature — callers never see the repo * class. MCP imports this free function, never `SessionRepo`. */ import type { HistoryResult, RunStepReference } from '@opensip-cli/contracts'; import type { ToolRegistry, ToolShortId } from '@opensip-cli/core'; import type { DataStore } from '@opensip-cli/datastore'; /** Filters for {@link listSessionSummaries}. */ export interface ListSessionSummariesOptions { readonly tool?: ToolShortId; readonly limit?: number; readonly cwdWithin?: string; readonly summaryOnly?: boolean; /** When set, the session list displays canonical tool names. */ readonly registry?: ToolRegistry; } /** * Read-only projection of stored sessions into a {@link HistoryResult} DTO — the * pure core of `opensip sessions list`, also consumed by `@opensip-cli/mcp`. * Applies the {@link ListSessionSummariesOptions} filters and, when a registry is * supplied, renders canonical tool names. Callers never see {@link SessionRepo}. */ export declare function listSessionSummaries(store: DataStore, opts?: ListSessionSummariesOptions): HistoryResult; export declare function resolveSessionLedgerReference(store: DataStore, sessionId: string): RunStepReference | undefined; //# sourceMappingURL=list-summaries.d.ts.map