@psiclawops/hypermem 0.8.2 → 0.8.3
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/INSTALL.md +129 -42
- package/README.md +29 -4
- package/docs/API_STABILITY.md +33 -0
- package/docs/KNOWN_LIMITATIONS.md +35 -0
- package/docs/MEMORY_MD_AUTHORING.md +243 -0
- package/docs/MIGRATION.md +56 -0
- package/docs/MIGRATION_GUIDE.md +1083 -0
- package/docs/PHASE1-VALIDATION.md +132 -0
- package/docs/RELEASE_0.8.0_VALIDATION.md +70 -0
- package/docs/RELEASE_PROCESS.md +10 -0
- package/docs/ROADMAP.md +39 -0
- package/docs/SLASH_COMMANDS.md +93 -0
- package/docs/TUNING.md +866 -0
- package/install.sh +516 -0
- package/memory-plugin/dist/index.d.ts +24 -0
- package/memory-plugin/dist/index.d.ts.map +1 -0
- package/memory-plugin/dist/index.js +300 -0
- package/memory-plugin/dist/index.js.map +1 -0
- package/memory-plugin/openclaw.plugin.json +13 -0
- package/memory-plugin/package.json +64 -0
- package/package.json +13 -2
- package/plugin/dist/index.d.ts +153 -0
- package/plugin/dist/index.d.ts.map +1 -0
- package/plugin/dist/index.js +3127 -0
- package/plugin/dist/index.js.map +1 -0
- package/plugin/openclaw.plugin.json +13 -0
- package/plugin/package.json +65 -0
- package/scripts/install-runtime.mjs +81 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# HyperMem Migration
|
|
2
|
+
|
|
3
|
+
Start here.
|
|
4
|
+
|
|
5
|
+
- **Operator guide:** [`MIGRATION_GUIDE.md`](./MIGRATION_GUIDE.md)
|
|
6
|
+
- **Current repo state:** source-specific migration examples live in `MIGRATION_GUIDE.md`. There is no bundled unified migration dispatcher in this repo yet.
|
|
7
|
+
|
|
8
|
+
All migration examples default to **dry-run** where shown. Add `--apply` only when you are ready to write data.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Multi-operator deployments (breaking change warning)
|
|
13
|
+
|
|
14
|
+
> ⚠️ **KL-01: No global-scope write gate (still open as of 0.8.0)**
|
|
15
|
+
>
|
|
16
|
+
> hypermem 0.5.0 ships without a write gate for `scope='global'` facts. In a
|
|
17
|
+
> **single-operator deployment** (one user, one fleet sharing `library.db`), this
|
|
18
|
+
> is acceptable — agents share context intentionally.
|
|
19
|
+
>
|
|
20
|
+
> In a **multi-operator deployment** (multiple users or tenants sharing one
|
|
21
|
+
> `library.db`), this is a **breaking isolation risk**: a global-scope write from
|
|
22
|
+
> one operator's agent propagates to all other operators' agents.
|
|
23
|
+
>
|
|
24
|
+
> **Do not run hypermem 0.5.0 in a multi-operator deployment without an external
|
|
25
|
+
> write gate at the application layer.** The write gate is deferred to 1.0.0
|
|
26
|
+
> where it will be enforced at the library DB level.
|
|
27
|
+
>
|
|
28
|
+
> A runtime warning is logged whenever `scope='global'` is written — monitor
|
|
29
|
+
> for this in production: `[hypermem] WARNING: ... scope='global'`
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Schema compatibility map
|
|
34
|
+
|
|
35
|
+
Current releases do **not** require Redis. The hot cache is SQLite `:memory:`.
|
|
36
|
+
Older versions below 0.5.0 used Redis, so the table keeps that history explicit.
|
|
37
|
+
|
|
38
|
+
| hypermem version | Main DB schema | Library DB schema | Min Node | External cache |
|
|
39
|
+
|---|---|---|---|---|
|
|
40
|
+
| 0.8.0 | v10 | v19 | 22.0.0 | none, SQLite `:memory:` hot cache |
|
|
41
|
+
| 0.7.0 | v7 | v13 | 22.0.0 | none, SQLite `:memory:` hot cache |
|
|
42
|
+
| 0.6.0 | v6 | v12 | 22.0.0 | none, SQLite `:memory:` hot cache |
|
|
43
|
+
| 0.5.0 | v6 | v12 | 22.0.0 | transition release, SQLite `:memory:` hot cache |
|
|
44
|
+
| 0.4.0 | v5 | v10 | 20.0.0 | Redis 6.0.0 |
|
|
45
|
+
|
|
46
|
+
Schema versions are importable for programmatic checks:
|
|
47
|
+
```ts
|
|
48
|
+
import { SCHEMA_COMPAT, HYPERMEM_COMPAT_VERSION } from 'hypermem';
|
|
49
|
+
// HYPERMEM_COMPAT_VERSION = '0.8.0'
|
|
50
|
+
// SCHEMA_COMPAT = { compatVersion: '0.8.0', mainSchema: 10, librarySchema: 19 }
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
If your DBs are behind, run:
|
|
54
|
+
```bash
|
|
55
|
+
node scripts/migrate-legacy-sessions.mjs --apply
|
|
56
|
+
```
|