@elizaos/plugin-sql 1.0.12 → 1.0.14

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/index.d.ts CHANGED
@@ -2008,7 +2008,7 @@ declare const messageServerTable: drizzle_orm_pg_core.PgTableWithColumns<{
2008
2008
  name: "id";
2009
2009
  tableName: "message_servers";
2010
2010
  dataType: "string";
2011
- columnType: "PgText";
2011
+ columnType: "PgUUID";
2012
2012
  data: string;
2013
2013
  driverParam: string;
2014
2014
  notNull: true;
@@ -2016,7 +2016,7 @@ declare const messageServerTable: drizzle_orm_pg_core.PgTableWithColumns<{
2016
2016
  isPrimaryKey: true;
2017
2017
  isAutoincrement: false;
2018
2018
  hasRuntimeDefault: false;
2019
- enumValues: [string, ...string[]];
2019
+ enumValues: undefined;
2020
2020
  baseColumn: never;
2021
2021
  identity: undefined;
2022
2022
  generated: undefined;
@@ -2152,7 +2152,7 @@ declare const channelTable: drizzle_orm_pg_core.PgTableWithColumns<{
2152
2152
  name: "server_id";
2153
2153
  tableName: "channels";
2154
2154
  dataType: "string";
2155
- columnType: "PgText";
2155
+ columnType: "PgUUID";
2156
2156
  data: string;
2157
2157
  driverParam: string;
2158
2158
  notNull: true;
@@ -2160,7 +2160,7 @@ declare const channelTable: drizzle_orm_pg_core.PgTableWithColumns<{
2160
2160
  isPrimaryKey: false;
2161
2161
  isAutoincrement: false;
2162
2162
  hasRuntimeDefault: false;
2163
- enumValues: [string, ...string[]];
2163
+ enumValues: undefined;
2164
2164
  baseColumn: never;
2165
2165
  identity: undefined;
2166
2166
  generated: undefined;
package/dist/index.js CHANGED
@@ -430,11 +430,10 @@ var taskTable = pgTable12("tasks", {
430
430
  });
431
431
 
432
432
  // src/schema/messageServer.ts
433
- import { pgTable as pgTable13, text as text12, jsonb as jsonb11, timestamp as timestamp13 } from "drizzle-orm/pg-core";
433
+ import { pgTable as pgTable13, text as text12, jsonb as jsonb11, timestamp as timestamp13, uuid as uuid13 } from "drizzle-orm/pg-core";
434
434
  import { sql as sql13 } from "drizzle-orm";
435
435
  var messageServerTable = pgTable13("message_servers", {
436
- id: text12("id").primaryKey(),
437
- // UUID stored as text
436
+ id: uuid13("id").primaryKey(),
438
437
  name: text12("name").notNull(),
439
438
  sourceType: text12("source_type").notNull(),
440
439
  sourceId: text12("source_id"),
@@ -444,12 +443,12 @@ var messageServerTable = pgTable13("message_servers", {
444
443
  });
445
444
 
446
445
  // src/schema/channel.ts
447
- import { pgTable as pgTable14, text as text13, jsonb as jsonb12, timestamp as timestamp14 } from "drizzle-orm/pg-core";
446
+ import { pgTable as pgTable14, text as text13, jsonb as jsonb12, timestamp as timestamp14, uuid as uuid14 } from "drizzle-orm/pg-core";
448
447
  import { sql as sql14 } from "drizzle-orm";
449
448
  var channelTable = pgTable14("channels", {
450
449
  id: text13("id").primaryKey(),
451
450
  // UUID stored as text
452
- messageServerId: text13("server_id").notNull().references(() => messageServerTable.id, { onDelete: "cascade" }),
451
+ messageServerId: uuid14("server_id").notNull().references(() => messageServerTable.id, { onDelete: "cascade" }),
453
452
  name: text13("name").notNull(),
454
453
  type: text13("type").notNull(),
455
454
  // Store ChannelType enum values as text
@@ -496,12 +495,12 @@ var channelParticipantsTable = pgTable16(
496
495
  );
497
496
 
498
497
  // src/schema/serverAgent.ts
499
- import { pgTable as pgTable17, uuid as uuid13, primaryKey as primaryKey3 } from "drizzle-orm/pg-core";
498
+ import { pgTable as pgTable17, uuid as uuid15, primaryKey as primaryKey3 } from "drizzle-orm/pg-core";
500
499
  var serverAgentsTable = pgTable17(
501
500
  "server_agents",
502
501
  {
503
- serverId: uuid13("server_id").notNull().references(() => messageServerTable.id, { onDelete: "cascade" }),
504
- agentId: uuid13("agent_id").notNull().references(() => agentTable.id, { onDelete: "cascade" })
502
+ serverId: uuid15("server_id").notNull().references(() => messageServerTable.id, { onDelete: "cascade" }),
503
+ agentId: uuid15("agent_id").notNull().references(() => agentTable.id, { onDelete: "cascade" })
505
504
  },
506
505
  (table) => ({
507
506
  pk: primaryKey3({ columns: [table.serverId, table.agentId] })
@@ -1678,8 +1677,7 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
1678
1677
  } else {
1679
1678
  const embeddingValues = {
1680
1679
  id: v4(),
1681
- memoryId: memory.id,
1682
- createdAt: (/* @__PURE__ */ new Date()).getTime()
1680
+ memoryId: memory.id
1683
1681
  };
1684
1682
  embeddingValues[this.embeddingDimension] = cleanVector;
1685
1683
  await tx.insert(embeddingTable).values([embeddingValues]);