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 +1 -0
- package/CHANGELOG.md +6 -0
- package/README.md +13 -0
- package/package.json +2 -1
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
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.
|
|
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
|
}
|