wolbarg 0.3.2 → 0.4.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/CHANGELOG.md CHANGED
@@ -5,6 +5,27 @@ All notable changes to this project are documented here.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/).
7
7
 
8
+ ## [0.4.0] — 2026-07-18
9
+
10
+ ### Added
11
+
12
+ - **`subscribe()`** — real-time memory change events (SQLite in-process EventEmitter; Postgres LISTEN/NOTIFY with reconnect)
13
+ - **Multi-writer SQLite concurrency** — `BEGIN IMMEDIATE`, exponential backoff retry, `concurrency` constructor config, stable error code `WOLBARG_STORAGE_LOCKED`
14
+ - **Embedding cache** — transparent `hash(content)+model` cache with optional LRU/TTL (`embeddingCache` config); additive `cacheHit` path via cache wrapper stats
15
+ - **Memory upsert / dedupe** — opt-in write-time exact and near-duplicate detection updates existing active memories instead of inserting (`memory.dedupe`); `RememberResult.action`; history event `"updated"`; public `update()`
16
+ - **Schema v3** — `content_hash` column, unique active hash index, `embedding_cache` table, history CHECK allows `'updated'`
17
+ - **Docs** — Concurrency, Real-time events, Embedding cache, Memory upsert pages
18
+ - **Benchmarks** — `benchmark/multiprocess-levels.ts`, `benchmark/embedding-cache-bench.ts`
19
+
20
+ ### Changed
21
+
22
+ - SQLite mutating transactions use `BEGIN IMMEDIATE` instead of deferred `BEGIN`
23
+ - `remember()` / `rememberBatch()` return `RememberResult` (MemoryRecord + `action`) — additive field
24
+
25
+ ### Compatibility
26
+
27
+ - All features are additive. Dedupe defaults **off**. Embedding cache defaults **on**. No required constructor changes for upgrades from 0.3.x.
28
+
8
29
  ## [0.3.2] — 2026-07-18
9
30
 
10
31
  ### Changed
@@ -126,6 +147,7 @@ const ctx = wolbarg({
126
147
 
127
148
  - Initial npm release path (pre–modular storage / ingest)
128
149
 
150
+ [0.4.0]: https://github.com/wolbarg/wolbarg/releases/tag/v0.4.0
129
151
  [0.3.2]: https://github.com/wolbarg/wolbarg/releases/tag/v0.3.2
130
152
  [0.3.1]: https://github.com/wolbarg/wolbarg/releases/tag/v0.3.1
131
153
  [0.3.0]: https://github.com/wolbarg/wolbarg/releases/tag/v0.3.0