SessionQueryService — provided by @deepseek-ai/dsh-session-query.
Live-preferred logical-corpus exact-read and relationship-tracing service.
listSessions(): Promise<SessionRecord[]>
List the complete logical corpus using live-preferred records.
Returns deterministic newest-first cloned session records.
async listEvents(sessionId: SessionId): Promise<SessionEventRecord[]>
List lightweight raw-log event records for one logical session.
sessionId — live-preferred session id to read.Returns event records in ascending seq order.
async traceSession(sessionId: SessionId): Promise<SessionLineageTrace>
Trace known ancestry and descendants from one corpus observation.
sessionId — logical session id to trace.Returns a complete lineage or an explicit unresolved parent boundary.
async traceEvent(request: SessionEventTraceRequest): Promise<SessionEventTrace>
Trace one event's direct positional and provenance relationships.
request — target session id and event seq.Returns direct links plus the target's positional replacement chain.
async readEvent(request: SessionEventReadRequest): Promise<SessionEventWindow>
Read one full event plus a bounded raw-log context window.
request — target session/seq and context sizes.Returns cloned target and neighboring events.