@intentface/latch-memory 0.21.0 → 0.22.0

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.
Files changed (2) hide show
  1. package/README.md +4 -6
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -80,15 +80,13 @@ agent and the platform does all upkeep:
80
80
  | `prompts/*` | injection block, extractor/consolidator instructions + prompt builders |
81
81
  | `jobs/types` | `MemoryJobStore` (implemented in `@intentface/latch-drizzle`: `createMemoryJobStore`) |
82
82
 
83
- The sweep itself is platform glue (`apps/latch-platform/src/lib/memory/sweep.ts`),
84
- following the Codex pattern: idle-gated parallel extraction, per-scope
83
+ The sweep itself is host glue, not shipped here. It follows the Codex pattern: idle-gated parallel extraction, per-scope
85
84
  lease-serialized consolidation with cooldown + watermark, usage-based expiry
86
85
  (default 30 days unrecalled).
87
86
 
88
87
  ## Wiring it into a host
89
88
 
90
- This package ships the ingredients, not the jobs — a host app (see
91
- `apps/latch-platform` for the reference implementation of every step) wires:
89
+ This package ships the ingredients, not the jobs — a host app wires:
92
90
 
93
91
  1. **Tables + job store** — `@intentface/latch-drizzle`'s migrations create
94
92
  `latch_memory_chat_state` / `latch_memory_scope_state` / `latch_memory_usage`;
@@ -120,8 +118,8 @@ This package ships the ingredients, not the jobs — a host app (see
120
118
  `runtime.runAgent("memory-extractor", …)` under the chat's own reconstructed
121
119
  principal → advance the seq watermark; claim dirty scopes past cooldown →
122
120
  `runtime.runAgent("memory-consolidator", …)` → clear consumed episodes.
123
- Copy `apps/latch-platform/src/lib/memory/sweep.ts` — the always-advance
124
- eligibility discipline (no hot loops) and the lease fencing live there.
121
+ Always advance eligibility, even when a job fails (no hot loops), and
122
+ fence consolidation with the scope lease.
125
123
  5. **Declare memory on agents** — `memory: { scope, connection }` in
126
124
  `defineAgent` config or the UI agent record; the connection must be one the
127
125
  agent itself declares.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentface/latch-memory",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "Experimental: Latch agent memory — always-loaded compiled index, searchable episodic store, and background extraction/consolidation over a pluggable MemoryStore (Loredex-backed first).",
5
5
  "keywords": [
6
6
  "ai",
@@ -29,7 +29,7 @@
29
29
  "registry": "https://registry.npmjs.org"
30
30
  },
31
31
  "dependencies": {
32
- "@intentface/latch-core": "^0.21.0"
32
+ "@intentface/latch-core": "^0.22.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "ai": ">=7.0.0"
@@ -40,7 +40,7 @@
40
40
  "tsx": "^4.19.0",
41
41
  "typescript": "^5.7.0",
42
42
  "vitest": "^4",
43
- "@intentface/latch-mcp": "0.21.0"
43
+ "@intentface/latch-mcp": "0.22.0"
44
44
  },
45
45
  "repository": {
46
46
  "type": "git",