@linxiraos/pi-mnemopi 1.1.7 → 1.1.9

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 (75) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +102 -108
  3. package/src/cli.ts +0 -0
  4. package/src/core/beam/index.ts +1 -1
  5. package/src/core/beam/recall.ts +2 -0
  6. package/src/core/entities.ts +2 -0
  7. package/src/core/patterns.ts +1 -1
  8. package/src/mcp-tools.ts +1 -1
  9. package/THIRD-PARTY-NOTICES.txt +0 -22909
  10. package/dist/types/cli.d.ts +0 -35
  11. package/dist/types/config.d.ts +0 -108
  12. package/dist/types/core/aaak.d.ts +0 -55
  13. package/dist/types/core/annotations.d.ts +0 -75
  14. package/dist/types/core/banks.d.ts +0 -33
  15. package/dist/types/core/beam/consolidate.d.ts +0 -38
  16. package/dist/types/core/beam/helpers.d.ts +0 -69
  17. package/dist/types/core/beam/index.d.ts +0 -59
  18. package/dist/types/core/beam/recall.d.ts +0 -52
  19. package/dist/types/core/beam/schema.d.ts +0 -2
  20. package/dist/types/core/beam/store.d.ts +0 -57
  21. package/dist/types/core/beam/types.d.ts +0 -268
  22. package/dist/types/core/binary-vectors.d.ts +0 -54
  23. package/dist/types/core/chat-normalize.d.ts +0 -13
  24. package/dist/types/core/content-sanitizer.d.ts +0 -18
  25. package/dist/types/core/cost-log.d.ts +0 -13
  26. package/dist/types/core/embeddings.d.ts +0 -93
  27. package/dist/types/core/entities.d.ts +0 -9
  28. package/dist/types/core/episodic-graph.d.ts +0 -89
  29. package/dist/types/core/extraction/client.d.ts +0 -35
  30. package/dist/types/core/extraction/diagnostics.d.ts +0 -51
  31. package/dist/types/core/extraction/prompts.d.ts +0 -2
  32. package/dist/types/core/extraction.d.ts +0 -34
  33. package/dist/types/core/fastembed-model-cache.d.ts +0 -2
  34. package/dist/types/core/fastembed-runtime.d.ts +0 -41
  35. package/dist/types/core/index.d.ts +0 -6
  36. package/dist/types/core/llm-backends.d.ts +0 -23
  37. package/dist/types/core/local-llm.d.ts +0 -20
  38. package/dist/types/core/memory.d.ts +0 -186
  39. package/dist/types/core/migrations/e6-triplestore-split.d.ts +0 -17
  40. package/dist/types/core/migrations/index.d.ts +0 -1
  41. package/dist/types/core/mmr.d.ts +0 -8
  42. package/dist/types/core/orchestrator.d.ts +0 -20
  43. package/dist/types/core/patterns.d.ts +0 -61
  44. package/dist/types/core/plugins.d.ts +0 -109
  45. package/dist/types/core/polyphonic-recall.d.ts +0 -66
  46. package/dist/types/core/query-cache.d.ts +0 -45
  47. package/dist/types/core/query-intent.d.ts +0 -20
  48. package/dist/types/core/recall-diagnostics.d.ts +0 -48
  49. package/dist/types/core/runtime-options.d.ts +0 -81
  50. package/dist/types/core/shmr.d.ts +0 -62
  51. package/dist/types/core/streaming.d.ts +0 -136
  52. package/dist/types/core/synonyms.d.ts +0 -46
  53. package/dist/types/core/temporal-parser.d.ts +0 -16
  54. package/dist/types/core/token-counter.d.ts +0 -8
  55. package/dist/types/core/triples.d.ts +0 -63
  56. package/dist/types/core/typed-memory.d.ts +0 -39
  57. package/dist/types/core/vector-index.d.ts +0 -16
  58. package/dist/types/core/vector-math.d.ts +0 -1
  59. package/dist/types/core/veracity-consolidation.d.ts +0 -60
  60. package/dist/types/core/weibull.d.ts +0 -96
  61. package/dist/types/db.d.ts +0 -18
  62. package/dist/types/diagnose.d.ts +0 -24
  63. package/dist/types/dr/index.d.ts +0 -1
  64. package/dist/types/dr/recovery.d.ts +0 -68
  65. package/dist/types/index.d.ts +0 -6
  66. package/dist/types/mcp-server.d.ts +0 -40
  67. package/dist/types/mcp-tools.d.ts +0 -484
  68. package/dist/types/migrations/e6-triplestore-split.d.ts +0 -1
  69. package/dist/types/migrations/index.d.ts +0 -1
  70. package/dist/types/types.d.ts +0 -145
  71. package/dist/types/util/datetime.d.ts +0 -8
  72. package/dist/types/util/env.d.ts +0 -10
  73. package/dist/types/util/ids.d.ts +0 -3
  74. package/dist/types/util/lru.d.ts +0 -12
  75. package/dist/types/util/regex.d.ts +0 -11
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [1.1.9] - 2026-09-05
6
+
7
+ - v18.1.10 sync baseline; embeddings requests send the zeta User-Agent again.
8
+
9
+ ## [1.1.8] - 2026-09-04
10
+
11
+ - OMP sync v18.1.2–v18.1.5: memory-backend plumbing aligned with the upstream mnemopi updates.
12
+
5
13
  ## [1.1.7] - 2026-09-01
6
14
 
7
15
  - 同步上游 OMP v18.0.11(`b8ce33a58911c26bed1d84f0db9a5e2e727c49a2`)。
package/package.json CHANGED
@@ -1,110 +1,104 @@
1
1
  {
2
- "type": "module",
3
- "name": "@linxiraos/pi-mnemopi",
4
- "version": "1.1.7",
5
- "description": "Local SQLite memory engine for Oh My Pi agents",
6
- "homepage": "https://linxira-os.github.io/zeta/",
7
- "author": "Can Boluk",
8
- "contributors": [
9
- "Abdias J"
10
- ],
11
- "license": "MIT",
12
- "repository": {
13
- "type": "git",
14
- "url": "git+https://github.com/Linxira-OS/linxira-zeta.git",
15
- "directory": "packages/mnemopi"
16
- },
17
- "bugs": {
18
- "url": "https://github.com/Linxira-OS/linxira-zeta/issues"
19
- },
20
- "keywords": [
21
- "memory",
22
- "sqlite",
23
- "agent",
24
- "embeddings",
25
- "mcp"
26
- ],
27
- "main": "./src/index.ts",
28
- "module": "./src/index.ts",
29
- "types": "./dist/types/index.d.ts",
30
- "bin": {
31
- "mnemopi": "src/cli.ts"
32
- },
33
- "scripts": {
34
- "check": "biome check . && bun run check:types",
35
- "check:types": "tsgo -p tsconfig.json --noEmit",
36
- "lint": "biome lint .",
37
- "test": "bun test --parallel",
38
- "fix": "biome check --write --unsafe .",
39
- "fmt": "biome format --write ."
40
- },
41
- "dependencies": {
42
- "@linxiraos/pi-ai": "1.1.7",
43
- "@linxiraos/pi-catalog": "1.1.7",
44
- "@linxiraos/pi-natives": "1.1.7",
45
- "@linxiraos/pi-utils": "1.1.7"
46
- },
47
- "peerDependencies": {
48
- "fastembed": "2.1.0",
49
- "onnxruntime-node": "1.21.0"
50
- },
51
- "peerDependenciesMeta": {
52
- "fastembed": {
53
- "optional": true
54
- },
55
- "onnxruntime-node": {
56
- "optional": true
57
- }
58
- },
59
- "devDependencies": {
60
- "@types/bun": "^1.3.14",
61
- "fastembed": "2.1.0",
62
- "onnxruntime-node": "1.26.0"
63
- },
64
- "engines": {
65
- "bun": ">=1.3.14"
66
- },
67
- "files": [
68
- "src",
69
- "README.md",
70
- "CHANGELOG.md",
71
- "LICENSE",
72
- "THIRD-PARTY-NOTICES.txt",
73
- "dist/types"
74
- ],
75
- "exports": {
76
- ".": {
77
- "types": "./dist/types/index.d.ts",
78
- "import": "./src/index.ts"
79
- },
80
- "./core": {
81
- "types": "./dist/types/core/index.d.ts",
82
- "import": "./src/core/index.ts"
83
- },
84
- "./core/beam": {
85
- "types": "./dist/types/core/beam/index.d.ts",
86
- "import": "./src/core/beam/index.ts"
87
- },
88
- "./beam": {
89
- "types": "./dist/types/core/beam/index.d.ts",
90
- "import": "./src/core/beam/index.ts"
91
- },
92
- "./diagnose": {
93
- "types": "./dist/types/diagnose.d.ts",
94
- "import": "./src/diagnose.ts"
95
- },
96
- "./mcp": {
97
- "types": "./dist/types/mcp-tools.d.ts",
98
- "import": "./src/mcp-tools.ts"
99
- },
100
- "./cli": {
101
- "types": "./dist/types/cli.d.ts",
102
- "import": "./src/cli.ts"
103
- },
104
- "./*": {
105
- "types": "./dist/types/*.d.ts",
106
- "import": "./src/*.ts"
107
- },
108
- "./*.js": "./src/*.ts"
109
- }
2
+ "exports": {
3
+ "./*.js": "./src/*.ts",
4
+ "./*": {
5
+ "import": "./src/*.ts",
6
+ "types": "./src/*.ts"
7
+ },
8
+ "./cli": {
9
+ "import": "./src/cli.ts",
10
+ "types": "./src/cli.ts"
11
+ },
12
+ "./mcp": {
13
+ "import": "./src/mcp-tools.ts",
14
+ "types": "./src/mcp-tools.ts"
15
+ },
16
+ "./diagnose": {
17
+ "import": "./src/diagnose.ts",
18
+ "types": "./src/diagnose.ts"
19
+ },
20
+ "./beam": {
21
+ "import": "./src/core/beam/index.ts",
22
+ "types": "./src/core/beam/index.ts"
23
+ },
24
+ "./core/beam": {
25
+ "import": "./src/core/beam/index.ts",
26
+ "types": "./src/core/beam/index.ts"
27
+ },
28
+ "./core": {
29
+ "import": "./src/core/index.ts",
30
+ "types": "./src/core/index.ts"
31
+ },
32
+ ".": {
33
+ "import": "./src/index.ts",
34
+ "types": "./src/index.ts"
35
+ }
36
+ },
37
+ "files": [
38
+ "src",
39
+ "README.md",
40
+ "CHANGELOG.md"
41
+ ],
42
+ "engines": {
43
+ "bun": ">=1.3.14"
44
+ },
45
+ "devDependencies": {
46
+ "onnxruntime-node": "1.26.0",
47
+ "fastembed": "2.1.0",
48
+ "@types/bun": "^1.3.14"
49
+ },
50
+ "peerDependenciesMeta": {
51
+ "onnxruntime-node": {
52
+ "optional": true
53
+ },
54
+ "fastembed": {
55
+ "optional": true
56
+ }
57
+ },
58
+ "peerDependencies": {
59
+ "onnxruntime-node": "1.21.0",
60
+ "fastembed": "2.1.0"
61
+ },
62
+ "dependencies": {
63
+ "@linxiraos/pi-utils": "1.1.9",
64
+ "@linxiraos/pi-natives": "1.1.9",
65
+ "@linxiraos/pi-catalog": "1.1.9",
66
+ "@linxiraos/pi-ai": "1.1.9"
67
+ },
68
+ "scripts": {
69
+ "test": "bun test --parallel",
70
+ "check:types": "tsgo -p tsconfig.json --noEmit",
71
+ "check": "tsgo -p tsconfig.json --noEmit"
72
+ },
73
+ "bin": {
74
+ "mnemopi": "src/cli.ts"
75
+ },
76
+ "types": "./src/index.ts",
77
+ "module": "./src/index.ts",
78
+ "main": "./src/index.ts",
79
+ "keywords": [
80
+ "memory",
81
+ "sqlite",
82
+ "agent",
83
+ "embeddings",
84
+ "mcp"
85
+ ],
86
+ "bugs": {
87
+ "url": "https://github.com/Linxira-OS/linxira-zeta/issues"
88
+ },
89
+ "repository": {
90
+ "directory": "packages/mnemopi",
91
+ "url": "git+https://github.com/Linxira-OS/linxira-zeta.git",
92
+ "type": "git"
93
+ },
94
+ "license": "MIT",
95
+ "contributors": [
96
+ "Abdias J"
97
+ ],
98
+ "author": "Can Boluk",
99
+ "homepage": "https://linxira-os.github.io/zeta/",
100
+ "description": "Local SQLite memory engine for Oh My Pi agents",
101
+ "version": "1.1.9",
102
+ "name": "@linxiraos/pi-mnemopi",
103
+ "type": "module"
110
104
  }
package/src/cli.ts CHANGED
File without changes
@@ -201,7 +201,7 @@ export class BeamMemory implements BeamMemoryState {
201
201
 
202
202
  async flushExtractions(): Promise<void> {
203
203
  while (this.pendingExtractions.size > 0) {
204
- await Promise.allSettled([...this.pendingExtractions]);
204
+ await Promise.allSettled(this.pendingExtractions);
205
205
  }
206
206
  }
207
207
 
@@ -442,6 +442,7 @@ function ftsQuery(query: string, useSynonyms = true): string {
442
442
  }
443
443
 
444
444
  function placeholders(count: number): string {
445
+ // [suppressed] length preallocation
445
446
  return new Array<string>(count).fill("?").join(",");
446
447
  }
447
448
 
@@ -600,6 +601,7 @@ function parseEmbedding(raw: unknown): number[] | null {
600
601
  try {
601
602
  const parsed = JSON.parse(raw) as unknown;
602
603
  if (!Array.isArray(parsed)) return null;
604
+ // [suppressed] length preallocation
603
605
  const vector = new Array<number>(parsed.length);
604
606
  for (let i = 0; i < parsed.length; i += 1) {
605
607
  const value = Number(parsed[i]);
@@ -144,7 +144,9 @@ export function levenshteinDistance(s1: string, s2: string): number {
144
144
  }
145
145
  if (right.length === 0) return left.length;
146
146
 
147
+ // [suppressed] length preallocation
147
148
  let previousRow = new Array<number>(right.length + 1);
149
+ // [suppressed] length preallocation
148
150
  let currentRow = new Array<number>(right.length + 1).fill(0);
149
151
  for (let i = 0; i <= right.length; i++) previousRow[i] = i;
150
152
 
@@ -203,7 +203,7 @@ export class DetectedPattern {
203
203
  this.description = init.description;
204
204
  this.confidence = init.confidence;
205
205
  this.samples = [...(init.samples ?? [])];
206
- this.metadata = { ...(init.metadata ?? {}) };
206
+ this.metadata = { ...init.metadata };
207
207
  }
208
208
 
209
209
  toDict(): Record<string, unknown> {
package/src/mcp-tools.ts CHANGED
@@ -759,7 +759,7 @@ async function handleSharedRemember(args: ToolArguments): Promise<ToolResult> {
759
759
  const memoryId = beam.remember(labelled, {
760
760
  source: "surface_manual",
761
761
  importance: Math.max(0, Math.min(1, numberArg(args, "importance", 0.8))),
762
- metadata: { ...(metadataArg(args) ?? {}), shared_memory: true, surface_kind: kind },
762
+ metadata: { ...metadataArg(args), shared_memory: true, surface_kind: kind },
763
763
  veracity: stringArg(args, "veracity", "unknown"),
764
764
  scope: "global",
765
765
  });