@lmzhen/dsh-memory 0.32.4 → 0.32.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -18
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
1
1
|
# @lmzhen/dsh-memory
|
|
2
2
|
|
|
3
|
-
Memory provider registry
|
|
3
|
+
Memory provider registry. It delegates reads, batch writes, snapshots, and context rendering to the selected provider; it does not implement a memory file format itself.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
`provider` pins a provider by name. Empty uses the first registered provider; a named miss throws instead of silently writing through another store. Re-registering the identical provider object is idempotent, while a different object under the same name fails loudly.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- **Prompt prefix / KV cache:** unchanged by this package: family-level rules single-sourced in `packages/README.md` §"Model-visible prompt prefix and the KV cache".
|
|
9
|
-
- **Mount it?** yes — the `memory` row, `evolution-host`/`evolution-all`/one-click `evolution-preset`; a seam whose shipped provider is `memory-files`.
|
|
7
|
+
Successful writes through this registry emit `evolution/memory-applied`, including writes that bypass the foreground memory tool. Provider registration emits `evolution/memory-provider-registered` so prompt snapshots can initialize after a late mount.
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
- `provider` (default `''`): pins one provider for all reads and writes; empty = first registered.
|
|
14
|
-
|
|
15
|
-
## Known limitations
|
|
16
|
-
|
|
17
|
-
- A pin no mounted provider satisfies warns when a differently-named provider registers, then fails the first read/write with the pin named: there is no earlier check (registry and registration API are one service).
|
|
18
|
-
|
|
19
|
-
**Runtime invariant:** No companion is published. The platform auto-assembles nothing and the family mounts no `<pkg>/invariant` cordis row, so a companion here would never execute (v37 S2.1 / I-3).
|
|
20
|
-
|
|
21
|
-
## Notes and history
|
|
22
|
-
|
|
23
|
-
- `provider` pins the registry to one provider name (V27 G6.3); empty (the default) serves the FIRST registered provider, so with two providers mounted the choice is row order.
|
|
9
|
+
The model-facing tool lives in [tool-memory](../tool-memory/README.md), and the default local provider lives in [memory-files](../memory-files/README.md). This package has no direct command or panel.
|