@kybernesis/brain-contracts 0.14.0 → 0.16.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.
- package/README.md +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,6 +19,11 @@ pnpm add @kybernesis/brain-contracts
|
|
|
19
19
|
|
|
20
20
|
- **Provider interfaces** — `StorageProvider` (and its repositories: timeline, entity-graph,
|
|
21
21
|
fact, sleep, vector), plus the shapes the kernel injects. The seams a backend must satisfy.
|
|
22
|
+
- **`BrainProvider`** — the Layer-2, consumer-facing facade interface (ADR-0016):
|
|
23
|
+
bound-tenant, all-async, coarse-grained brain operations (`remember` / `addNote` / `query` /
|
|
24
|
+
`timeline` / entity ops / `graph` / `listEntities` / `stats` / `sleep`). Implemented locally
|
|
25
|
+
by `createLocalBrainProvider` in [`brain-core`](../brain-core); the seam a future remote
|
|
26
|
+
cloud provider also satisfies. Exported from the package root.
|
|
22
27
|
- **Zod schemas + types** — `TimelineEvent`, `Entity`, `Fact`, sleep types, etc. Canonical
|
|
23
28
|
field shapes (snake_case to match the wire format), with a guard test enforcing it.
|
|
24
29
|
- **`TenantContext` + `pathsFor`** — the per-brain context describing where its SQLite files
|
package/package.json
CHANGED