@linxiraos/pi-mnemopi 1.1.12 → 1.1.13
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 +4 -0
- package/package.json +10 -7
- package/src/core/memory.ts +5 -3
- package/src/core/orchestrator.ts +1 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@linxiraos/pi-mnemopi",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.13",
|
|
5
5
|
"description": "Local SQLite memory engine for Oh My Pi agents",
|
|
6
6
|
"homepage": "https://linxira-os.github.io/zeta/",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -31,15 +31,18 @@
|
|
|
31
31
|
"mnemopi": "src/cli.ts"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
|
-
"check": "
|
|
34
|
+
"check": "oxlint . && oxfmt --check --no-error-on-unmatched-pattern 'src/**/*.{ts,tsx}' '{test,bench,examples,scripts}/**/*.ts' '*.ts' && bun run check:types",
|
|
35
35
|
"check:types": "tsgo -p tsconfig.json --noEmit",
|
|
36
|
-
"
|
|
36
|
+
"lint": "oxlint .",
|
|
37
|
+
"test": "bun test --parallel",
|
|
38
|
+
"fix": "oxlint --fix --fix-suggestions . && bun run fmt",
|
|
39
|
+
"fmt": "oxfmt --no-error-on-unmatched-pattern 'src/**/*.{ts,tsx}' '{test,bench,examples,scripts}/**/*.ts' '*.ts'"
|
|
37
40
|
},
|
|
38
41
|
"dependencies": {
|
|
39
|
-
"@linxiraos/pi-ai": "1.1.
|
|
40
|
-
"@linxiraos/pi-catalog": "1.1.
|
|
41
|
-
"@linxiraos/pi-natives": "1.1.
|
|
42
|
-
"@linxiraos/pi-utils": "1.1.
|
|
42
|
+
"@linxiraos/pi-ai": "1.1.13",
|
|
43
|
+
"@linxiraos/pi-catalog": "1.1.13",
|
|
44
|
+
"@linxiraos/pi-natives": "1.1.13",
|
|
45
|
+
"@linxiraos/pi-utils": "1.1.13"
|
|
43
46
|
},
|
|
44
47
|
"peerDependencies": {
|
|
45
48
|
"fastembed": "2.1.0",
|
package/src/core/memory.ts
CHANGED
|
@@ -99,8 +99,10 @@ export interface RememberFacadeOptions {
|
|
|
99
99
|
readonly memory_type?: string | null;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
export interface RecallFacadeOptions
|
|
103
|
-
|
|
102
|
+
export interface RecallFacadeOptions extends Omit<
|
|
103
|
+
RecallOptions,
|
|
104
|
+
"temporalHalflife" | "vecWeight" | "ftsWeight" | "importanceWeight"
|
|
105
|
+
> {
|
|
104
106
|
readonly from_date?: string | null;
|
|
105
107
|
readonly to_date?: string | null;
|
|
106
108
|
readonly source?: string | null;
|
|
@@ -212,7 +214,7 @@ function resolveRuntimeOptions(options: MnemopiOptions): ResolvedMnemopiRuntimeO
|
|
|
212
214
|
const llmEnabled = hasOwn(options, "llmEnabled")
|
|
213
215
|
? options.llmEnabled
|
|
214
216
|
: (nestedLlm?.enabled ??
|
|
215
|
-
|
|
217
|
+
(nestedLlm?.baseUrl !== undefined ||
|
|
216
218
|
nestedLlm?.apiKey !== undefined ||
|
|
217
219
|
nestedLlm?.maxTokens !== undefined ||
|
|
218
220
|
nestedLlm?.complete !== undefined ||
|
package/src/core/orchestrator.ts
CHANGED
|
@@ -13,8 +13,7 @@ export interface OrchestratorBeam extends BeamMemoryState {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export interface OrchestrateRecallOptions
|
|
16
|
-
extends Omit<RecallOptions, "queryEmbedding">,
|
|
17
|
-
Omit<PolyphonicRecallOptions, "queryEmbedding"> {
|
|
16
|
+
extends Omit<RecallOptions, "queryEmbedding">, Omit<PolyphonicRecallOptions, "queryEmbedding"> {
|
|
18
17
|
readonly queryEmbedding?: readonly number[] | Float32Array | null;
|
|
19
18
|
readonly enhanced?: boolean;
|
|
20
19
|
readonly forcePolyphonic?: boolean;
|