@gamaze/hicortex 0.21.0 → 0.22.1

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 (50) hide show
  1. package/assets/dashboard.html +282 -27
  2. package/dist/calibration.d.ts +77 -12
  3. package/dist/calibration.js +82 -15
  4. package/dist/capture-health.d.ts +42 -5
  5. package/dist/capture-health.js +57 -7
  6. package/dist/capture-pause.d.ts +7 -4
  7. package/dist/capture-pause.js +7 -4
  8. package/dist/consolidate.d.ts +19 -0
  9. package/dist/consolidate.js +125 -51
  10. package/dist/dashboard.d.ts +41 -16
  11. package/dist/dashboard.js +110 -41
  12. package/dist/db.js +16 -0
  13. package/dist/dedup.js +4 -1
  14. package/dist/eval/decay-eval.d.ts +6 -5
  15. package/dist/eval/decay-eval.js +10 -48
  16. package/dist/eval/eval-clock.d.ts +32 -0
  17. package/dist/eval/eval-clock.js +47 -0
  18. package/dist/eval/graph-eval.d.ts +15 -2
  19. package/dist/eval/graph-eval.js +51 -5
  20. package/dist/eval/planted-eval.d.ts +4 -0
  21. package/dist/eval/planted-eval.js +27 -2
  22. package/dist/eval/planted-harness.d.ts +7 -0
  23. package/dist/eval/planted-harness.js +2 -0
  24. package/dist/eval/ranking-battery.d.ts +49 -2
  25. package/dist/eval/ranking-battery.js +110 -2
  26. package/dist/eval/ranking-eval.d.ts +26 -6
  27. package/dist/eval/ranking-eval.js +197 -34
  28. package/dist/eval/ranking-fixtures.d.ts +46 -6
  29. package/dist/eval/ranking-fixtures.js +268 -9
  30. package/dist/eval/recall-sweep.d.ts +7 -2
  31. package/dist/eval/recall-sweep.js +42 -13
  32. package/dist/eval/relevance-eval.d.ts +115 -1
  33. package/dist/eval/relevance-eval.js +318 -32
  34. package/dist/eval/run-eval.d.ts +7 -4
  35. package/dist/eval/run-eval.js +37 -10
  36. package/dist/graph.d.ts +1 -2
  37. package/dist/graph.js +3 -4
  38. package/dist/mcp-server.js +3 -2
  39. package/dist/nofit.d.ts +2 -1
  40. package/dist/nofit.js +2 -1
  41. package/dist/recall-index.d.ts +3 -2
  42. package/dist/recall-index.js +3 -2
  43. package/dist/retrieval.d.ts +43 -18
  44. package/dist/retrieval.js +148 -86
  45. package/dist/status.js +18 -0
  46. package/dist/storage.d.ts +2 -1
  47. package/dist/storage.js +6 -1
  48. package/dist/types.d.ts +25 -4
  49. package/package.json +1 -1
  50. package/server.json +4 -4
package/dist/types.d.ts CHANGED
@@ -62,6 +62,16 @@ export interface Memory {
62
62
  * rows, which stay NULL for exactly one scoring under the new rubric).
63
63
  */
64
64
  importance_scored_at?: string | null;
65
+ /**
66
+ * Promotion baseline (#448, migration v20): the access_count the nightly
67
+ * promotion stage (stagePromotion) last consumed — the delta
68
+ * access_count − promotion_last_count drives the per-use strength bump.
69
+ * Written by the stage, the migration backfill, and dedup merges (the
70
+ * baseline moves with the summed counter so a merge never replays the
71
+ * losers' lifetime accesses as fresh promotions). Optional because
72
+ * rowToMemory is a cast over SELECT * rows.
73
+ */
74
+ promotion_last_count?: number | null;
65
75
  }
66
76
  /** A link between two memories. */
67
77
  export interface MemoryLink {
@@ -228,10 +238,6 @@ export interface ConsolidationReport {
228
238
  no_association_decayed?: number;
229
239
  reason?: string;
230
240
  };
231
- hub_boost?: {
232
- hubs_found: number;
233
- boosted: number;
234
- };
235
241
  links?: {
236
242
  auto_linked: number;
237
243
  llm_classified?: number;
@@ -391,6 +397,21 @@ export interface ConsolidationReport {
391
397
  pruned: number;
392
398
  failed: number;
393
399
  };
400
+ /**
401
+ * Strength promotion (#448) — runs PRE-SKIP (quiet nights still promote
402
+ * the day's uses), BEFORE memory_cap eviction (a promoted row survives a
403
+ * cap it would otherwise lose). Zero LLM: it sits in the deterministic
404
+ * zone, before the BudgetTracker exists.
405
+ */
406
+ promotion?: {
407
+ /** Memories whose base_strength was bumped this run (delta iterations). */
408
+ promoted: number;
409
+ /**
410
+ * Demotion-set rows (superseded/retracted/absorbed + superseded_by-link
411
+ * sources) with a use delta — no bump, baseline advanced only.
412
+ */
413
+ demoted_skipped: number;
414
+ };
394
415
  /** Capacity eviction (#245) — runs after decay_prune. When the corpus
395
416
  * exceeds `memorySoftCap`, the lowest-effectiveStrength memories are
396
417
  * evicted until under the cap. `cap = 0` (disabled) → evicted = 0. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamaze/hicortex",
3
- "version": "0.21.0",
3
+ "version": "0.22.1",
4
4
  "description": "Persistent agent identity for AI agents \u2014 a hand-edited identity layer, nightly-distilled experience, and lessons injected every session, shared across your whole fleet. Works with Hermes, OpenClaw, Claude Code, Pi, and opencode.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
package/server.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
3
  "name": "io.github.gamaze-labs/hicortex",
4
- "title": "Hicortex",
4
+ "title": "Hicortex \u2014 AI Fleet Memory",
5
5
  "description": "Shared fleet memory for AI agents: nightly self-correction, recall every prompt (supported agents).",
6
- "version": "0.20.9",
6
+ "version": "0.22.1",
7
7
  "packages": [
8
8
  {
9
9
  "registryType": "npm",
10
10
  "identifier": "@gamaze/hicortex",
11
- "version": "0.20.9",
11
+ "version": "0.22.1",
12
12
  "transport": {
13
13
  "type": "stdio",
14
14
  "command": "npx",
@@ -41,4 +41,4 @@
41
41
  "source": "github"
42
42
  },
43
43
  "websiteUrl": "https://hicortex.gamaze.com"
44
- }
44
+ }