Files
deepseek-harness/packages/storage
_Kerman 08e546eff1 feat(storage-json): one-time migration of a legacy whole-unit file to per-record
Opening a per-record unit splits a legacy `<root>/<name>.json` (the
pre-per-record single-file layout) into per-record documents; an
already-present new record wins, and the legacy file is deleted once
every record migrated. The migration also runs when the new tree is
absent — the fresh-upgrade shape — and foreign, shapeless, or malformed
legacy files are left alone. This preserves previously cached session
titles, list metadata, stats, and subagent identity across the medium
change.
2026-08-20 16:25:39 +08:00
..
2026-08-19 23:00:28 +08:00

storage/ — non-session storage family

English | 中文

This family persists application data other than session event logs through named backends and typed data forms.

Package Role ctx key
storage/ Connects registered backends with typed data forms ctx.storage
storage-json/ Stores data in JSON files registers backend json
storage-sqlite/ Stores data in SQLite registers backend sqlite
storage-domain/ Provides validated domain-record storage ctx.storageDomain

Consumers use a data form rather than accessing a backend directly. The domain storage decision records the family design.

The subsystem reference — the backend contract, StorageForms, DomainSpec/Domain, domain/changed — is docs/subsystems/storage.md.