@oh-my-pi/pi-mnemopi 17.2.2 → 17.2.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
+ ## [17.2.3] - 2026-08-01
6
+
7
+ ### Fixed
8
+
9
+ - Stripped `<think>…</think>` reasoning blocks from remote LLM output in `cleanOutput`, so reasoning-model responses no longer leak into consolidated memories or corrupt fact extraction (the reasoning wrapper previously survived parsing and every stored fact became reasoning prose). ([#7231](https://github.com/can1357/oh-my-pi/issues/7231))
10
+
5
11
  ## [17.2.2] - 2026-07-31
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": "17.2.2",
4
+ "version": "17.2.4",
5
5
  "description": "Local SQLite memory engine for Oh My Pi agents",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",
@@ -39,10 +39,10 @@
39
39
  "fmt": "biome format --write ."
40
40
  },
41
41
  "dependencies": {
42
- "@oh-my-pi/pi-ai": "17.2.2",
43
- "@oh-my-pi/pi-catalog": "17.2.2",
44
- "@oh-my-pi/pi-natives": "17.2.2",
45
- "@oh-my-pi/pi-utils": "17.2.2",
42
+ "@oh-my-pi/pi-ai": "17.2.4",
43
+ "@oh-my-pi/pi-catalog": "17.2.4",
44
+ "@oh-my-pi/pi-natives": "17.2.4",
45
+ "@oh-my-pi/pi-utils": "17.2.4",
46
46
  "lru-cache": "11.5.2"
47
47
  },
48
48
  "peerDependencies": {
@@ -254,6 +254,7 @@ export function cleanOutput(text: string): string {
254
254
  .replaceAll("<|user|>", "")
255
255
  .replaceAll("</s>", "")
256
256
  .trim()
257
+ .replace(/^(?:\s*<think>[\s\S]*?<\/think>)+\s*/i, "")
257
258
  .replace(/^(Summarize the following memories.*?[.!?:]\s*)/is, "")
258
259
  .replace(/^(Preserve facts.*?[.!?:]\s*)/is, "")
259
260
  .replace(/^Source:.*?\n/im, "")