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