/** * Optional Harness projection hints for session-list titles. * * The adopted Harness generation exposes a persisted projection cache, but the * cache is optional. Keeping this reader in one small module means dshline * consumes the generic Harness service without making the cache a runtime * dependency or teaching the catalog about storage paths. A hint is always * provisional; exact title reads remain authoritative. * @module dshline/sessions/hints */ import type { Context } from '@deepseek-ai/cordis'; import type { SessionRecord } from '@deepseek-ai/dsh-session-query'; import type { SessionTitleHint } from './model.ts'; /** * Build a title-hint reader for a Harness context. * * A cold row's hint comes from the projection cache's header-only read, and the * adopted generation serves a seeded row and an unseeded row from it the same * way: Harness matches the cached checkpoint against the lifecycle identity a * `SessionHeader` alone witnesses (`formatVersion`, `createdAt`, `cwd`, * `isSeeded`) and returns nothing at all on a mismatch. The reader therefore * passes the header and nothing else — it never reconstructs an inherited event * count, which `SessionRecord` does not carry and the current read no longer * asks for. * * A live row may use the attached Session's current projection cells; those are * still presented as provisional hints because the metadata listing and the * projection observation are separate cuts. * @param ctx - the Host context. * @returns a per-record hint reader, or undefined when no optional source exists. */ export declare function sessionTitleHints(ctx: Context): ((record: SessionRecord) => SessionTitleHint | undefined) | undefined; //# sourceMappingURL=hints.d.ts.map