humemory 0.2.10 → 0.2.11

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/AGENTS.md CHANGED
@@ -93,6 +93,7 @@ scripts/hook-session-start.ts # Claude Code SessionStart hook → inject contex
93
93
  scripts/maintenance-worker.ts # async extraction/storage; deterministic by default
94
94
  scripts/verify-package.ts # packs, installs outside the checkout, drives every entry point
95
95
  scripts/measure-recall.ts # cognitive-quality report over tests/fixtures/relevance.corpus.json
96
+ scripts/bench-scale.ts # cost of loadIntoMemory() and the index rebuild vs corpus size
96
97
  tests/ # bun test (hermetic; helpers/ + fixtures/)
97
98
  data/humemory.db # legacy in-checkout DB; new installs use the OS data dir (core/paths.ts)
98
99
  ```
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.11] - 2026-09-08
4
+ **Features:**
5
+ - measure what the index rebuild actually costs
6
+
7
+
8
+
3
9
  ## [0.2.10] - 2026-09-08
4
10
  **Features:**
5
11
  - measure whether the right memory comes back
package/README.md CHANGED
@@ -627,6 +627,19 @@ measurement into a regression floor.
627
627
  Thresholds there are floors recording current behaviour, not targets. Raising
628
628
  one is a result; lowering one needs a reason in the commit that lowers it.
629
629
 
630
+ ### Measuring cost at scale
631
+
632
+ ```bash
633
+ pnpm bench:scale
634
+ ```
635
+
636
+ `loadIntoMemory()` reads every trace and rebuilds the whole search index. It
637
+ runs in the store's constructor — so every CLI command, every SessionStart hook
638
+ and every post-commit hook pays it — and again inside `search()` whenever
639
+ another process has committed since the last load. This measures what that
640
+ costs as the corpus grows. `--sizes=250,1000,5000` to choose the points,
641
+ `--json` for the raw rows.
642
+
630
643
  ### Verifying the published package
631
644
 
632
645
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "humemory",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "Memory for AI agents that forgets like a human — decaying traces, inverse search, and prospective loops that resurface on a cue",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -98,6 +98,7 @@
98
98
  "typecheck:web": "tsc -p web/tsconfig.json",
99
99
  "verify:package": "bun run scripts/verify-package.ts",
100
100
  "measure:recall": "bun run scripts/measure-recall.ts",
101
+ "bench:scale": "bun run scripts/bench-scale.ts",
101
102
  "clean:web": "node -e \"require('fs').rmSync('public/app',{recursive:true,force:true})\""
102
103
  }
103
104
  }