@elizaos/plugin-sql 1.5.12 → 1.5.13-alpha.2
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/browser/index.browser.js +5 -3
- package/dist/browser/index.browser.js.map +3 -3
- package/dist/browser/tsconfig.build.tsbuildinfo +1 -1
- package/dist/node/index.node.js +6 -4
- package/dist/node/index.node.js.map +4 -4
- package/dist/node/tsconfig.build.node.tsbuildinfo +1 -1
- package/package.json +3 -3
package/dist/node/index.node.js
CHANGED
|
@@ -5656,7 +5656,7 @@ class BaseDrizzleAdapter extends DatabaseAdapter {
|
|
|
5656
5656
|
});
|
|
5657
5657
|
}
|
|
5658
5658
|
async getAgents() {
|
|
5659
|
-
|
|
5659
|
+
const result = await this.withDatabase(async () => {
|
|
5660
5660
|
const rows = await this.db.select({
|
|
5661
5661
|
id: agentTable.id,
|
|
5662
5662
|
name: agentTable.name,
|
|
@@ -5668,6 +5668,7 @@ class BaseDrizzleAdapter extends DatabaseAdapter {
|
|
|
5668
5668
|
bio: row.bio === null ? "" : row.bio
|
|
5669
5669
|
}));
|
|
5670
5670
|
});
|
|
5671
|
+
return result || [];
|
|
5671
5672
|
}
|
|
5672
5673
|
async createAgent(agent) {
|
|
5673
5674
|
return this.withDatabase(async () => {
|
|
@@ -7048,7 +7049,7 @@ class BaseDrizzleAdapter extends DatabaseAdapter {
|
|
|
7048
7049
|
});
|
|
7049
7050
|
}
|
|
7050
7051
|
async getMessageServers() {
|
|
7051
|
-
|
|
7052
|
+
const result = await this.withDatabase(async () => {
|
|
7052
7053
|
const results = await this.db.select().from(messageServerTable);
|
|
7053
7054
|
return results.map((r) => ({
|
|
7054
7055
|
id: r.id,
|
|
@@ -7060,6 +7061,7 @@ class BaseDrizzleAdapter extends DatabaseAdapter {
|
|
|
7060
7061
|
updatedAt: r.updatedAt
|
|
7061
7062
|
}));
|
|
7062
7063
|
});
|
|
7064
|
+
return result || [];
|
|
7063
7065
|
}
|
|
7064
7066
|
async getMessageServerById(serverId) {
|
|
7065
7067
|
return this.withDatabase(async () => {
|
|
@@ -8842,7 +8844,7 @@ var plugin = {
|
|
|
8842
8844
|
return;
|
|
8843
8845
|
}
|
|
8844
8846
|
const postgresUrl = runtime.getSetting("POSTGRES_URL");
|
|
8845
|
-
const dataDir = runtime.getSetting("
|
|
8847
|
+
const dataDir = runtime.getSetting("PGLITE_DATA_DIR") || undefined;
|
|
8846
8848
|
const dbAdapter = createDatabaseAdapter({
|
|
8847
8849
|
dataDir,
|
|
8848
8850
|
postgresUrl
|
|
@@ -8859,5 +8861,5 @@ export {
|
|
|
8859
8861
|
DatabaseMigrationService
|
|
8860
8862
|
};
|
|
8861
8863
|
|
|
8862
|
-
//# debugId=
|
|
8864
|
+
//# debugId=16FBE8772BAA544764756E2164756E21
|
|
8863
8865
|
//# sourceMappingURL=index.node.js.map
|