@elizaos/plugin-sql 1.6.5-alpha.19 → 1.6.5-alpha.20
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/node/index.node.js
CHANGED
|
@@ -8759,6 +8759,7 @@ var init_migration_service = __esm(() => {
|
|
|
8759
8759
|
|
|
8760
8760
|
// src/index.node.ts
|
|
8761
8761
|
import { logger as logger14, stringToUuid } from "@elizaos/core";
|
|
8762
|
+
import { mkdirSync } from "node:fs";
|
|
8762
8763
|
|
|
8763
8764
|
// src/pglite/adapter.ts
|
|
8764
8765
|
import { logger as logger11 } from "@elizaos/core";
|
|
@@ -11943,6 +11944,9 @@ function createDatabaseAdapter(config, agentId) {
|
|
|
11943
11944
|
return new PgDatabaseAdapter(agentId, manager);
|
|
11944
11945
|
}
|
|
11945
11946
|
const dataDir = resolvePgliteDir(config.dataDir);
|
|
11947
|
+
if (dataDir && !dataDir.includes("://")) {
|
|
11948
|
+
mkdirSync(dataDir, { recursive: true });
|
|
11949
|
+
}
|
|
11946
11950
|
if (!globalSingletons.pgLiteClientManager) {
|
|
11947
11951
|
globalSingletons.pgLiteClientManager = new PGliteClientManager({ dataDir });
|
|
11948
11952
|
}
|
|
@@ -11992,5 +11996,5 @@ export {
|
|
|
11992
11996
|
DatabaseMigrationService
|
|
11993
11997
|
};
|
|
11994
11998
|
|
|
11995
|
-
//# debugId=
|
|
11999
|
+
//# debugId=C2608A88C2C2BA8564756E2164756E21
|
|
11996
12000
|
//# sourceMappingURL=index.node.js.map
|