Files
deepseek-harness/packages/session-query
_Kerman a597763393 fix(session): type turn/end error as one structured failure
TurnEndReasonMap.error now carries a single `error: LlmFailure` field:
an LlmError keeps its structured facts, any other error flattens to
errorChain text under the UNKNOWN code. Consumers read message/code
directly instead of defending against an unknown union — this also fixes
errorChain() rendering structured failures as '[object Object]' in the
TUI and ACP error paths. Document the turn-stopping contract: a
concludesTurn result never short-circuits already-submitted next-step
work (same-step additionalContexts or racing steering still runs), data
decides.
2026-08-03 16:33:23 +08:00
..
2026-07-26 05:06:39 +08:00

session-query/ — session retrieval capability family

English | 中文

Trusted exact reads, relationship traces, provider-independent semantic filtering, and SQLite full-text search over live and durable session logs.

Package Role ctx key
session-query/ Combined service contract with concrete logical-corpus reads, traces, and semantic filters plus abstract full-text methods ctx.sessionQuery
session-query-sqlite/ Concrete service backend with SQLite FTS5 persistent bases and live overlays ctx.sessionQuery
tool-session-query/ Workspace-authorized model-facing search, lineage, relationship, and exact event tools

The query service is independent of compaction: it reads canonical lineage, surface operations, logged provenance, and semantic event text but does not participate in compaction policy or execution. One abstract service combines every query operation, one concrete backend owns the full-text lifecycle without a provider registry or coordinator, and the consumer leaves oversized plain-text results to the generic post-execute spill policy.