mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
Master's Zstandard physical encoding (#416) and this branch's packed chunk rows compose as orthogonal layers: packChunks shapes the logical storage records, compression shapes the physical bytes. The backend keeps both config keys; eventLines(events, packChunks) replaces master's singular eventLine helper and feeds encodeMaterialization/encodeEventBatch so packed rows flow through either encoding. Demo apps carry both passthroughs. The packed-row layout tests pin compression: 'none' (they assert textual line tags) and read through rawLogPath; zstd spec fixtures inline JSON.stringify for verbatim lines.
session-persistence/ — persistence capability family
The durable session-persistence seam and its storage backends. The interface package owns the abstract SessionPersistence service and the shared write coordinator; the backends are concrete implementations that register on ctx.sessionPersistence. All product packages.
| Package | Role | ctx key |
|---|---|---|
session-persistence/ |
Persistence seam + shared write coordinator | ctx.sessionPersistence |
session-persistence-jsonl/ |
JSONL-sidecar persistence backend | (registers ctx.sessionPersistence) |
session-persistence-sqlite/ |
SQLite persistence backend | (registers ctx.sessionPersistence) |
The interface lives at session-persistence/session-persistence/; backends are flat siblings. A new storage backend joins here and registers on ctx.sessionPersistence. See session persistence.