@tekmidian/pai 0.9.11 → 0.9.12
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/dist/cli/index.mjs
CHANGED
|
@@ -3794,7 +3794,7 @@ function cmdLogs(opts) {
|
|
|
3794
3794
|
}
|
|
3795
3795
|
function registerDaemonCommands(daemonCmd) {
|
|
3796
3796
|
daemonCmd.command("serve").description("Start the PAI daemon in the foreground").action(async () => {
|
|
3797
|
-
const { serve } = await import("../daemon-
|
|
3797
|
+
const { serve } = await import("../daemon-DaTQ-VtJ.mjs").then((n) => n.t);
|
|
3798
3798
|
const { loadConfig: lc, ensureConfigDir } = await import("../config-BuhHWyOK.mjs").then((n) => n.r);
|
|
3799
3799
|
ensureConfigDir();
|
|
3800
3800
|
await serve(lc());
|
package/dist/daemon/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import "../kg-extraction-Uvr9fTlz.mjs";
|
|
|
9
9
|
import { t as PaiClient } from "../ipc-client-CoyUHPod.mjs";
|
|
10
10
|
import { i as ensureConfigDir, o as loadConfig } from "../config-BuhHWyOK.mjs";
|
|
11
11
|
import "../factory-BDBIfTDC.mjs";
|
|
12
|
-
import { n as serve } from "../daemon-
|
|
12
|
+
import { n as serve } from "../daemon-DaTQ-VtJ.mjs";
|
|
13
13
|
import "../state-BIlxNRUn.mjs";
|
|
14
14
|
import "../tools-BNBvJNph.mjs";
|
|
15
15
|
import "../detector-AzVtGLtL.mjs";
|
|
@@ -762,16 +762,25 @@ async function dispatchTool(method, params) {
|
|
|
762
762
|
return toolMemoryTunnels(registryDb, storageBackend, p);
|
|
763
763
|
}
|
|
764
764
|
case "memory_feedback": {
|
|
765
|
-
const federationDb =
|
|
766
|
-
|
|
767
|
-
|
|
765
|
+
const federationDb = openFederation();
|
|
766
|
+
try {
|
|
767
|
+
return await toolMemoryFeedback(federationDb, p);
|
|
768
|
+
} finally {
|
|
769
|
+
federationDb.close();
|
|
770
|
+
}
|
|
768
771
|
}
|
|
769
772
|
case "memory_kg_search": {
|
|
770
|
-
const federationDb =
|
|
771
|
-
if (!federationDb) throw new Error("memory_kg_search requires a SQLite federation backend (getSqliteDb not available)");
|
|
773
|
+
const federationDb = openFederation();
|
|
772
774
|
const pgPool = storageBackend.getPool?.() ?? null;
|
|
773
|
-
if (!pgPool)
|
|
774
|
-
|
|
775
|
+
if (!pgPool) {
|
|
776
|
+
federationDb.close();
|
|
777
|
+
throw new Error("memory_kg_search requires a Postgres storage backend for KG triple expansion");
|
|
778
|
+
}
|
|
779
|
+
try {
|
|
780
|
+
return await toolMemoryKgSearch(federationDb, pgPool, p);
|
|
781
|
+
} finally {
|
|
782
|
+
federationDb.close();
|
|
783
|
+
}
|
|
775
784
|
}
|
|
776
785
|
default: throw new Error(`Unknown method: ${method}`);
|
|
777
786
|
}
|
|
@@ -3156,4 +3165,4 @@ var daemon_exports = /* @__PURE__ */ __exportAll({ serve: () => serve });
|
|
|
3156
3165
|
|
|
3157
3166
|
//#endregion
|
|
3158
3167
|
export { serve as n, daemon_exports as t };
|
|
3159
|
-
//# sourceMappingURL=daemon-
|
|
3168
|
+
//# sourceMappingURL=daemon-DaTQ-VtJ.mjs.map
|