@oh-my-pi/pi-mnemopi 18.12.2 → 18.12.4

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
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [18.12.4] - 2026-10-20
6
+
7
+ ### Fixed
8
+
9
+ - Fixed background fact extraction storing only the first 5 facts of a plain-line extractor answer; it now keeps up to 20, matching JSON answers ([#16377](https://github.com/can1357/oh-my-pi/pull/16377) by [@alphastorm](https://github.com/alphastorm))
10
+
5
11
  ## [18.11.2] - 2026-10-16
6
12
 
7
13
  ### Fixed
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-mnemopi",
4
- "version": "18.12.2",
4
+ "version": "18.12.4",
5
5
  "description": "Local SQLite memory engine for omp agents",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": {
@@ -42,10 +42,10 @@
42
42
  "fmt": "oxfmt --no-error-on-unmatched-pattern 'src/**/*.{ts,tsx}' '{test,bench,examples,scripts}/**/*.ts' '*.ts'"
43
43
  },
44
44
  "dependencies": {
45
- "@oh-my-pi/pi-ai": "18.12.2",
46
- "@oh-my-pi/pi-catalog": "18.12.2",
47
- "@oh-my-pi/pi-natives": "18.12.2",
48
- "@oh-my-pi/pi-utils": "18.12.2"
45
+ "@oh-my-pi/pi-ai": "18.12.4",
46
+ "@oh-my-pi/pi-catalog": "18.12.4",
47
+ "@oh-my-pi/pi-natives": "18.12.4",
48
+ "@oh-my-pi/pi-utils": "18.12.4"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "fastembed": "3.0.0",
@@ -87,6 +87,8 @@ function stripFence(raw: string): string {
87
87
  const FLAT_FACT_LIMIT = 5;
88
88
  const STRUCTURED_CATEGORY_LIMIT = 5;
89
89
  const STRING_CATEGORY_KEYS = ["facts", "instructions", "preferences", "timelines"] as const;
90
+ /** Plain-line output gets the same total as the JSON path's string categories. */
91
+ const PLAIN_LINE_FACT_LIMIT = STRING_CATEGORY_KEYS.length * STRUCTURED_CATEGORY_LIMIT;
90
92
  const FACT_TEXT_FIELD_KEYS = ["fact", "text", "content", "value", "statement"] as const;
91
93
  const INSTRUCTION_TEXT_FIELD_KEYS = ["instruction", "rule", ...FACT_TEXT_FIELD_KEYS] as const;
92
94
  const PREFERENCE_TEXT_FIELD_KEYS = ["preference", ...FACT_TEXT_FIELD_KEYS] as const;
@@ -268,7 +270,7 @@ export function parseExtractedFactCategories(rawOutput: string | null | undefine
268
270
  cleaned.push(normalized);
269
271
  }
270
272
  }
271
- if (cleaned.length >= FLAT_FACT_LIMIT) break;
273
+ if (cleaned.length >= PLAIN_LINE_FACT_LIMIT) break;
272
274
  }
273
275
  return { ...emptyFactCategories(), facts: cleaned };
274
276
  });