@elizaos/plugin-sql 1.7.3-alpha.4 → 2.0.0-alpha.10

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.
@@ -28,7 +28,7 @@ var __export = (target, all) => {
28
28
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
29
29
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
30
30
 
31
- // ../../node_modules/drizzle-orm/entity.js
31
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/entity.js
32
32
  function is(value, type) {
33
33
  if (!value || typeof value !== "object") {
34
34
  return false;
@@ -56,7 +56,7 @@ var init_entity = __esm(() => {
56
56
  hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
57
57
  });
58
58
 
59
- // ../../node_modules/drizzle-orm/logger.js
59
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/logger.js
60
60
  var ConsoleLogWriter, DefaultLogger, NoopLogger;
61
61
  var init_logger = __esm(() => {
62
62
  init_entity();
@@ -90,7 +90,7 @@ var init_logger = __esm(() => {
90
90
  };
91
91
  });
92
92
 
93
- // ../../node_modules/drizzle-orm/query-promise.js
93
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/query-promise.js
94
94
  var QueryPromise;
95
95
  var init_query_promise = __esm(() => {
96
96
  init_entity();
@@ -115,7 +115,7 @@ var init_query_promise = __esm(() => {
115
115
  };
116
116
  });
117
117
 
118
- // ../../node_modules/drizzle-orm/column.js
118
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/column.js
119
119
  var Column;
120
120
  var init_column = __esm(() => {
121
121
  init_entity();
@@ -169,7 +169,7 @@ var init_column = __esm(() => {
169
169
  };
170
170
  });
171
171
 
172
- // ../../node_modules/drizzle-orm/column-builder.js
172
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/column-builder.js
173
173
  var ColumnBuilder;
174
174
  var init_column_builder = __esm(() => {
175
175
  init_entity();
@@ -229,13 +229,13 @@ var init_column_builder = __esm(() => {
229
229
  };
230
230
  });
231
231
 
232
- // ../../node_modules/drizzle-orm/table.utils.js
232
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/table.utils.js
233
233
  var TableName;
234
234
  var init_table_utils = __esm(() => {
235
235
  TableName = Symbol.for("drizzle:Name");
236
236
  });
237
237
 
238
- // ../../node_modules/drizzle-orm/pg-core/foreign-keys.js
238
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/foreign-keys.js
239
239
  function foreignKey(config) {
240
240
  function mappedConfig() {
241
241
  const { name, columns, foreignColumns } = config;
@@ -304,13 +304,13 @@ var init_foreign_keys = __esm(() => {
304
304
  };
305
305
  });
306
306
 
307
- // ../../node_modules/drizzle-orm/tracing-utils.js
307
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/tracing-utils.js
308
308
  function iife(fn, ...args) {
309
309
  return fn(...args);
310
310
  }
311
311
  var init_tracing_utils = () => {};
312
312
 
313
- // ../../node_modules/drizzle-orm/pg-core/unique-constraint.js
313
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/unique-constraint.js
314
314
  function unique(name) {
315
315
  return new UniqueOnConstraintBuilder(name);
316
316
  }
@@ -364,7 +364,7 @@ var init_unique_constraint = __esm(() => {
364
364
  };
365
365
  });
366
366
 
367
- // ../../node_modules/drizzle-orm/pg-core/utils/array.js
367
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/utils/array.js
368
368
  function parsePgArrayValue(arrayString, startFrom, inQuotes) {
369
369
  for (let i = startFrom;i < arrayString.length; i++) {
370
370
  const char = arrayString[i];
@@ -441,7 +441,7 @@ function makePgArray(array) {
441
441
  }
442
442
  var init_array = () => {};
443
443
 
444
- // ../../node_modules/drizzle-orm/pg-core/columns/common.js
444
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/common.js
445
445
  var PgColumnBuilder, PgColumn, ExtraConfigColumn, IndexedColumn, PgArrayBuilder, PgArray;
446
446
  var init_common = __esm(() => {
447
447
  init_column_builder();
@@ -594,7 +594,7 @@ var init_common = __esm(() => {
594
594
  };
595
595
  });
596
596
 
597
- // ../../node_modules/drizzle-orm/pg-core/columns/enum.js
597
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/enum.js
598
598
  function isPgEnum(obj) {
599
599
  return !!obj && typeof obj === "function" && isPgEnumSym in obj && obj[isPgEnumSym] === true;
600
600
  }
@@ -629,7 +629,7 @@ var init_enum = __esm(() => {
629
629
  };
630
630
  });
631
631
 
632
- // ../../node_modules/drizzle-orm/subquery.js
632
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/subquery.js
633
633
  var Subquery, WithSubquery;
634
634
  var init_subquery = __esm(() => {
635
635
  init_entity();
@@ -651,11 +651,11 @@ var init_subquery = __esm(() => {
651
651
  };
652
652
  });
653
653
 
654
- // ../../node_modules/drizzle-orm/version.js
654
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/version.js
655
655
  var version = "0.45.1";
656
656
  var init_version = () => {};
657
657
 
658
- // ../../node_modules/drizzle-orm/tracing.js
658
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/tracing.js
659
659
  var otel, rawTracer, tracer;
660
660
  var init_tracing = __esm(() => {
661
661
  init_tracing_utils();
@@ -685,13 +685,13 @@ var init_tracing = __esm(() => {
685
685
  };
686
686
  });
687
687
 
688
- // ../../node_modules/drizzle-orm/view-common.js
688
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/view-common.js
689
689
  var ViewBaseConfig;
690
690
  var init_view_common = __esm(() => {
691
691
  ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
692
692
  });
693
693
 
694
- // ../../node_modules/drizzle-orm/table.js
694
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/table.js
695
695
  function getTableName(table) {
696
696
  return table[TableName];
697
697
  }
@@ -739,7 +739,7 @@ var init_table = __esm(() => {
739
739
  };
740
740
  });
741
741
 
742
- // ../../node_modules/drizzle-orm/sql/sql.js
742
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/sql/sql.js
743
743
  function isSQLWrapper(value) {
744
744
  return value !== null && value !== undefined && typeof value.getSQL === "function";
745
745
  }
@@ -1123,7 +1123,7 @@ var init_sql = __esm(() => {
1123
1123
  };
1124
1124
  });
1125
1125
 
1126
- // ../../node_modules/drizzle-orm/alias.js
1126
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/alias.js
1127
1127
  function aliasedTable(table, tableAlias) {
1128
1128
  return new Proxy(table, new TableAliasProxyHandler(tableAlias, false));
1129
1129
  }
@@ -1209,7 +1209,7 @@ var init_alias = __esm(() => {
1209
1209
  };
1210
1210
  });
1211
1211
 
1212
- // ../../node_modules/drizzle-orm/selection-proxy.js
1212
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/selection-proxy.js
1213
1213
  var SelectionProxyHandler;
1214
1214
  var init_selection_proxy = __esm(() => {
1215
1215
  init_alias();
@@ -1270,7 +1270,7 @@ var init_selection_proxy = __esm(() => {
1270
1270
  };
1271
1271
  });
1272
1272
 
1273
- // ../../node_modules/drizzle-orm/utils.js
1273
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/utils.js
1274
1274
  function mapResultRow(columns, row, joinsNotNullableMap) {
1275
1275
  const nullifyMap = {};
1276
1276
  const result = columns.reduce((result2, { path, field }, columnIndex) => {
@@ -1433,7 +1433,7 @@ var init_utils = __esm(() => {
1433
1433
  textDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder;
1434
1434
  });
1435
1435
 
1436
- // ../../node_modules/drizzle-orm/pg-core/columns/int.common.js
1436
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/int.common.js
1437
1437
  var PgIntColumnBaseBuilder;
1438
1438
  var init_int_common = __esm(() => {
1439
1439
  init_entity();
@@ -1477,7 +1477,7 @@ var init_int_common = __esm(() => {
1477
1477
  };
1478
1478
  });
1479
1479
 
1480
- // ../../node_modules/drizzle-orm/pg-core/columns/bigint.js
1480
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/bigint.js
1481
1481
  function bigint(a, b) {
1482
1482
  const { name, config } = getColumnNameAndConfig(a, b);
1483
1483
  if (config.mode === "number") {
@@ -1532,7 +1532,7 @@ var init_bigint = __esm(() => {
1532
1532
  };
1533
1533
  });
1534
1534
 
1535
- // ../../node_modules/drizzle-orm/pg-core/columns/bigserial.js
1535
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/bigserial.js
1536
1536
  function bigserial(a, b) {
1537
1537
  const { name, config } = getColumnNameAndConfig(a, b);
1538
1538
  if (config.mode === "number") {
@@ -1589,7 +1589,7 @@ var init_bigserial = __esm(() => {
1589
1589
  };
1590
1590
  });
1591
1591
 
1592
- // ../../node_modules/drizzle-orm/pg-core/columns/boolean.js
1592
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/boolean.js
1593
1593
  function boolean(name) {
1594
1594
  return new PgBooleanBuilder(name ?? "");
1595
1595
  }
@@ -1614,7 +1614,7 @@ var init_boolean = __esm(() => {
1614
1614
  };
1615
1615
  });
1616
1616
 
1617
- // ../../node_modules/drizzle-orm/pg-core/columns/char.js
1617
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/char.js
1618
1618
  function char(a, b = {}) {
1619
1619
  const { name, config } = getColumnNameAndConfig(a, b);
1620
1620
  return new PgCharBuilder(name, config);
@@ -1645,7 +1645,7 @@ var init_char = __esm(() => {
1645
1645
  };
1646
1646
  });
1647
1647
 
1648
- // ../../node_modules/drizzle-orm/pg-core/columns/cidr.js
1648
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/cidr.js
1649
1649
  function cidr(name) {
1650
1650
  return new PgCidrBuilder(name ?? "");
1651
1651
  }
@@ -1670,7 +1670,7 @@ var init_cidr = __esm(() => {
1670
1670
  };
1671
1671
  });
1672
1672
 
1673
- // ../../node_modules/drizzle-orm/pg-core/columns/custom.js
1673
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/custom.js
1674
1674
  function customType(customTypeParams) {
1675
1675
  return (a, b) => {
1676
1676
  const { name, config } = getColumnNameAndConfig(a, b);
@@ -1716,7 +1716,7 @@ var init_custom = __esm(() => {
1716
1716
  };
1717
1717
  });
1718
1718
 
1719
- // ../../node_modules/drizzle-orm/pg-core/columns/date.common.js
1719
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/date.common.js
1720
1720
  var PgDateColumnBaseBuilder;
1721
1721
  var init_date_common = __esm(() => {
1722
1722
  init_entity();
@@ -1730,7 +1730,7 @@ var init_date_common = __esm(() => {
1730
1730
  };
1731
1731
  });
1732
1732
 
1733
- // ../../node_modules/drizzle-orm/pg-core/columns/date.js
1733
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/date.js
1734
1734
  function date(a, b) {
1735
1735
  const { name, config } = getColumnNameAndConfig(a, b);
1736
1736
  if (config?.mode === "date") {
@@ -1789,7 +1789,7 @@ var init_date = __esm(() => {
1789
1789
  };
1790
1790
  });
1791
1791
 
1792
- // ../../node_modules/drizzle-orm/pg-core/columns/double-precision.js
1792
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/double-precision.js
1793
1793
  function doublePrecision(name) {
1794
1794
  return new PgDoublePrecisionBuilder(name ?? "");
1795
1795
  }
@@ -1820,7 +1820,7 @@ var init_double_precision = __esm(() => {
1820
1820
  };
1821
1821
  });
1822
1822
 
1823
- // ../../node_modules/drizzle-orm/pg-core/columns/inet.js
1823
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/inet.js
1824
1824
  function inet(name) {
1825
1825
  return new PgInetBuilder(name ?? "");
1826
1826
  }
@@ -1845,7 +1845,7 @@ var init_inet = __esm(() => {
1845
1845
  };
1846
1846
  });
1847
1847
 
1848
- // ../../node_modules/drizzle-orm/pg-core/columns/integer.js
1848
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/integer.js
1849
1849
  function integer(name) {
1850
1850
  return new PgIntegerBuilder(name ?? "");
1851
1851
  }
@@ -1877,7 +1877,7 @@ var init_integer = __esm(() => {
1877
1877
  };
1878
1878
  });
1879
1879
 
1880
- // ../../node_modules/drizzle-orm/pg-core/columns/interval.js
1880
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/interval.js
1881
1881
  function interval(a, b = {}) {
1882
1882
  const { name, config } = getColumnNameAndConfig(a, b);
1883
1883
  return new PgIntervalBuilder(name, config);
@@ -1909,7 +1909,7 @@ var init_interval = __esm(() => {
1909
1909
  };
1910
1910
  });
1911
1911
 
1912
- // ../../node_modules/drizzle-orm/pg-core/columns/json.js
1912
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/json.js
1913
1913
  function json(name) {
1914
1914
  return new PgJsonBuilder(name ?? "");
1915
1915
  }
@@ -1950,7 +1950,7 @@ var init_json = __esm(() => {
1950
1950
  };
1951
1951
  });
1952
1952
 
1953
- // ../../node_modules/drizzle-orm/pg-core/columns/jsonb.js
1953
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/jsonb.js
1954
1954
  function jsonb(name) {
1955
1955
  return new PgJsonbBuilder(name ?? "");
1956
1956
  }
@@ -1991,7 +1991,7 @@ var init_jsonb = __esm(() => {
1991
1991
  };
1992
1992
  });
1993
1993
 
1994
- // ../../node_modules/drizzle-orm/pg-core/columns/line.js
1994
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/line.js
1995
1995
  function line(a, b) {
1996
1996
  const { name, config } = getColumnNameAndConfig(a, b);
1997
1997
  if (!config?.mode || config.mode === "tuple") {
@@ -2050,7 +2050,7 @@ var init_line = __esm(() => {
2050
2050
  };
2051
2051
  });
2052
2052
 
2053
- // ../../node_modules/drizzle-orm/pg-core/columns/macaddr.js
2053
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/macaddr.js
2054
2054
  function macaddr(name) {
2055
2055
  return new PgMacaddrBuilder(name ?? "");
2056
2056
  }
@@ -2075,7 +2075,7 @@ var init_macaddr = __esm(() => {
2075
2075
  };
2076
2076
  });
2077
2077
 
2078
- // ../../node_modules/drizzle-orm/pg-core/columns/macaddr8.js
2078
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/macaddr8.js
2079
2079
  function macaddr8(name) {
2080
2080
  return new PgMacaddr8Builder(name ?? "");
2081
2081
  }
@@ -2100,7 +2100,7 @@ var init_macaddr8 = __esm(() => {
2100
2100
  };
2101
2101
  });
2102
2102
 
2103
- // ../../node_modules/drizzle-orm/pg-core/columns/numeric.js
2103
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/numeric.js
2104
2104
  function numeric(a, b) {
2105
2105
  const { name, config } = getColumnNameAndConfig(a, b);
2106
2106
  const mode = config?.mode;
@@ -2216,7 +2216,7 @@ var init_numeric = __esm(() => {
2216
2216
  };
2217
2217
  });
2218
2218
 
2219
- // ../../node_modules/drizzle-orm/pg-core/columns/point.js
2219
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/point.js
2220
2220
  function point(a, b) {
2221
2221
  const { name, config } = getColumnNameAndConfig(a, b);
2222
2222
  if (!config?.mode || config.mode === "tuple") {
@@ -2281,7 +2281,7 @@ var init_point = __esm(() => {
2281
2281
  };
2282
2282
  });
2283
2283
 
2284
- // ../../node_modules/drizzle-orm/pg-core/columns/postgis_extension/utils.js
2284
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/postgis_extension/utils.js
2285
2285
  function hexToBytes(hex) {
2286
2286
  const bytes = [];
2287
2287
  for (let c = 0;c < hex.length; c += 2) {
@@ -2321,7 +2321,7 @@ function parseEWKB(hex) {
2321
2321
  }
2322
2322
  var init_utils2 = () => {};
2323
2323
 
2324
- // ../../node_modules/drizzle-orm/pg-core/columns/postgis_extension/geometry.js
2324
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/postgis_extension/geometry.js
2325
2325
  function geometry(a, b) {
2326
2326
  const { name, config } = getColumnNameAndConfig(a, b);
2327
2327
  if (!config?.mode || config.mode === "tuple") {
@@ -2380,7 +2380,7 @@ var init_geometry = __esm(() => {
2380
2380
  };
2381
2381
  });
2382
2382
 
2383
- // ../../node_modules/drizzle-orm/pg-core/columns/real.js
2383
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/real.js
2384
2384
  function real(name) {
2385
2385
  return new PgRealBuilder(name ?? "");
2386
2386
  }
@@ -2415,7 +2415,7 @@ var init_real = __esm(() => {
2415
2415
  };
2416
2416
  });
2417
2417
 
2418
- // ../../node_modules/drizzle-orm/pg-core/columns/serial.js
2418
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/serial.js
2419
2419
  function serial(name) {
2420
2420
  return new PgSerialBuilder(name ?? "");
2421
2421
  }
@@ -2442,7 +2442,7 @@ var init_serial = __esm(() => {
2442
2442
  };
2443
2443
  });
2444
2444
 
2445
- // ../../node_modules/drizzle-orm/pg-core/columns/smallint.js
2445
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/smallint.js
2446
2446
  function smallint(name) {
2447
2447
  return new PgSmallIntBuilder(name ?? "");
2448
2448
  }
@@ -2474,7 +2474,7 @@ var init_smallint = __esm(() => {
2474
2474
  };
2475
2475
  });
2476
2476
 
2477
- // ../../node_modules/drizzle-orm/pg-core/columns/smallserial.js
2477
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/smallserial.js
2478
2478
  function smallserial(name) {
2479
2479
  return new PgSmallSerialBuilder(name ?? "");
2480
2480
  }
@@ -2501,7 +2501,7 @@ var init_smallserial = __esm(() => {
2501
2501
  };
2502
2502
  });
2503
2503
 
2504
- // ../../node_modules/drizzle-orm/pg-core/columns/text.js
2504
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/text.js
2505
2505
  function text(a, b = {}) {
2506
2506
  const { name, config } = getColumnNameAndConfig(a, b);
2507
2507
  return new PgTextBuilder(name, config);
@@ -2530,7 +2530,7 @@ var init_text = __esm(() => {
2530
2530
  };
2531
2531
  });
2532
2532
 
2533
- // ../../node_modules/drizzle-orm/pg-core/columns/time.js
2533
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/time.js
2534
2534
  function time(a, b = {}) {
2535
2535
  const { name, config } = getColumnNameAndConfig(a, b);
2536
2536
  return new PgTimeBuilder(name, config.withTimezone ?? false, config.precision);
@@ -2570,7 +2570,7 @@ var init_time = __esm(() => {
2570
2570
  };
2571
2571
  });
2572
2572
 
2573
- // ../../node_modules/drizzle-orm/pg-core/columns/timestamp.js
2573
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/timestamp.js
2574
2574
  function timestamp(a, b = {}) {
2575
2575
  const { name, config } = getColumnNameAndConfig(a, b);
2576
2576
  if (config?.mode === "string") {
@@ -2655,7 +2655,7 @@ var init_timestamp = __esm(() => {
2655
2655
  };
2656
2656
  });
2657
2657
 
2658
- // ../../node_modules/drizzle-orm/pg-core/columns/uuid.js
2658
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/uuid.js
2659
2659
  function uuid(name) {
2660
2660
  return new PgUUIDBuilder(name ?? "");
2661
2661
  }
@@ -2684,7 +2684,7 @@ var init_uuid = __esm(() => {
2684
2684
  };
2685
2685
  });
2686
2686
 
2687
- // ../../node_modules/drizzle-orm/pg-core/columns/varchar.js
2687
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/varchar.js
2688
2688
  function varchar(a, b = {}) {
2689
2689
  const { name, config } = getColumnNameAndConfig(a, b);
2690
2690
  return new PgVarcharBuilder(name, config);
@@ -2715,7 +2715,7 @@ var init_varchar = __esm(() => {
2715
2715
  };
2716
2716
  });
2717
2717
 
2718
- // ../../node_modules/drizzle-orm/pg-core/columns/vector_extension/bit.js
2718
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/vector_extension/bit.js
2719
2719
  function bit(a, b) {
2720
2720
  const { name, config } = getColumnNameAndConfig(a, b);
2721
2721
  return new PgBinaryVectorBuilder(name, config);
@@ -2744,7 +2744,7 @@ var init_bit = __esm(() => {
2744
2744
  };
2745
2745
  });
2746
2746
 
2747
- // ../../node_modules/drizzle-orm/pg-core/columns/vector_extension/halfvec.js
2747
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/vector_extension/halfvec.js
2748
2748
  function halfvec(a, b) {
2749
2749
  const { name, config } = getColumnNameAndConfig(a, b);
2750
2750
  return new PgHalfVectorBuilder(name, config);
@@ -2779,7 +2779,7 @@ var init_halfvec = __esm(() => {
2779
2779
  };
2780
2780
  });
2781
2781
 
2782
- // ../../node_modules/drizzle-orm/pg-core/columns/vector_extension/sparsevec.js
2782
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/vector_extension/sparsevec.js
2783
2783
  function sparsevec(a, b) {
2784
2784
  const { name, config } = getColumnNameAndConfig(a, b);
2785
2785
  return new PgSparseVectorBuilder(name, config);
@@ -2808,7 +2808,7 @@ var init_sparsevec = __esm(() => {
2808
2808
  };
2809
2809
  });
2810
2810
 
2811
- // ../../node_modules/drizzle-orm/pg-core/columns/vector_extension/vector.js
2811
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/vector_extension/vector.js
2812
2812
  function vector(a, b) {
2813
2813
  const { name, config } = getColumnNameAndConfig(a, b);
2814
2814
  return new PgVectorBuilder(name, config);
@@ -2843,7 +2843,7 @@ var init_vector = __esm(() => {
2843
2843
  };
2844
2844
  });
2845
2845
 
2846
- // ../../node_modules/drizzle-orm/pg-core/columns/all.js
2846
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/all.js
2847
2847
  function getPgColumnBuilders() {
2848
2848
  return {
2849
2849
  bigint,
@@ -2915,7 +2915,7 @@ var init_all = __esm(() => {
2915
2915
  init_vector();
2916
2916
  });
2917
2917
 
2918
- // ../../node_modules/drizzle-orm/pg-core/table.js
2918
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/table.js
2919
2919
  function pgTableWithSchema(name, columns, extraConfig, schema, baseName = name) {
2920
2920
  const rawTable = new PgTable(name, schema, baseName);
2921
2921
  const parsedColumns = typeof columns === "function" ? columns(getPgColumnBuilders()) : columns;
@@ -2967,7 +2967,7 @@ var init_table2 = __esm(() => {
2967
2967
  };
2968
2968
  });
2969
2969
 
2970
- // ../../node_modules/drizzle-orm/pg-core/checks.js
2970
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/checks.js
2971
2971
  function check(name, value) {
2972
2972
  return new CheckBuilder(name, value);
2973
2973
  }
@@ -2997,7 +2997,7 @@ var init_checks = __esm(() => {
2997
2997
  };
2998
2998
  });
2999
2999
 
3000
- // ../../node_modules/drizzle-orm/pg-core/columns/index.js
3000
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/columns/index.js
3001
3001
  var init_columns = __esm(() => {
3002
3002
  init_bigint();
3003
3003
  init_bigserial();
@@ -3036,7 +3036,7 @@ var init_columns = __esm(() => {
3036
3036
  init_vector();
3037
3037
  });
3038
3038
 
3039
- // ../../node_modules/drizzle-orm/pg-core/indexes.js
3039
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/indexes.js
3040
3040
  function index(name) {
3041
3041
  return new IndexBuilderOn(false, name);
3042
3042
  }
@@ -3122,7 +3122,7 @@ var init_indexes = __esm(() => {
3122
3122
  };
3123
3123
  });
3124
3124
 
3125
- // ../../node_modules/drizzle-orm/pg-core/policies.js
3125
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/policies.js
3126
3126
  var PgPolicy;
3127
3127
  var init_policies = __esm(() => {
3128
3128
  init_entity();
@@ -3151,7 +3151,7 @@ var init_policies = __esm(() => {
3151
3151
  };
3152
3152
  });
3153
3153
 
3154
- // ../../node_modules/drizzle-orm/pg-core/primary-keys.js
3154
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/primary-keys.js
3155
3155
  function primaryKey(...config) {
3156
3156
  if (config[0].columns) {
3157
3157
  return new PrimaryKeyBuilder(config[0].columns, config[0].name);
@@ -3189,13 +3189,13 @@ var init_primary_keys = __esm(() => {
3189
3189
  };
3190
3190
  });
3191
3191
 
3192
- // ../../node_modules/drizzle-orm/pg-core/view-common.js
3192
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/view-common.js
3193
3193
  var PgViewConfig;
3194
3194
  var init_view_common2 = __esm(() => {
3195
3195
  PgViewConfig = Symbol.for("drizzle:PgViewConfig");
3196
3196
  });
3197
3197
 
3198
- // ../../node_modules/drizzle-orm/casing.js
3198
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/casing.js
3199
3199
  function toSnakeCase(input) {
3200
3200
  const words = input.replace(/['\u2019]/g, "").match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g) ?? [];
3201
3201
  return words.map((word) => word.toLowerCase()).join("_");
@@ -3252,7 +3252,7 @@ var init_casing = __esm(() => {
3252
3252
  };
3253
3253
  });
3254
3254
 
3255
- // ../../node_modules/drizzle-orm/errors.js
3255
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/errors.js
3256
3256
  var DrizzleError, DrizzleQueryError, TransactionRollbackError;
3257
3257
  var init_errors = __esm(() => {
3258
3258
  init_entity();
@@ -3284,7 +3284,7 @@ params: ${params}`);
3284
3284
  };
3285
3285
  });
3286
3286
 
3287
- // ../../node_modules/drizzle-orm/sql/expressions/conditions.js
3287
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/sql/expressions/conditions.js
3288
3288
  function bindIfParam(value, column) {
3289
3289
  if (isDriverValueEncoder(column) && !isSQLWrapper(value) && !is(value, Param) && !is(value, Placeholder) && !is(value, Column) && !is(value, Table) && !is(value, View)) {
3290
3290
  return new Param(value, column);
@@ -3390,7 +3390,7 @@ var init_conditions = __esm(() => {
3390
3390
  init_sql();
3391
3391
  });
3392
3392
 
3393
- // ../../node_modules/drizzle-orm/sql/expressions/select.js
3393
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/sql/expressions/select.js
3394
3394
  function asc(column) {
3395
3395
  return sql`${column} asc`;
3396
3396
  }
@@ -3401,13 +3401,13 @@ var init_select = __esm(() => {
3401
3401
  init_sql();
3402
3402
  });
3403
3403
 
3404
- // ../../node_modules/drizzle-orm/sql/expressions/index.js
3404
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/sql/expressions/index.js
3405
3405
  var init_expressions = __esm(() => {
3406
3406
  init_conditions();
3407
3407
  init_select();
3408
3408
  });
3409
3409
 
3410
- // ../../node_modules/drizzle-orm/relations.js
3410
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/relations.js
3411
3411
  function getOperators() {
3412
3412
  return {
3413
3413
  and,
@@ -3639,7 +3639,7 @@ var init_relations = __esm(() => {
3639
3639
  };
3640
3640
  });
3641
3641
 
3642
- // ../../node_modules/drizzle-orm/sql/functions/aggregate.js
3642
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/sql/functions/aggregate.js
3643
3643
  function count(expression) {
3644
3644
  return sql`count(${expression || sql.raw("*")})`.mapWith(Number);
3645
3645
  }
@@ -3647,7 +3647,7 @@ var init_aggregate = __esm(() => {
3647
3647
  init_sql();
3648
3648
  });
3649
3649
 
3650
- // ../../node_modules/drizzle-orm/sql/functions/vector.js
3650
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/sql/functions/vector.js
3651
3651
  function toSql(value) {
3652
3652
  return JSON.stringify(value);
3653
3653
  }
@@ -3661,20 +3661,20 @@ var init_vector2 = __esm(() => {
3661
3661
  init_sql();
3662
3662
  });
3663
3663
 
3664
- // ../../node_modules/drizzle-orm/sql/functions/index.js
3664
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/sql/functions/index.js
3665
3665
  var init_functions = __esm(() => {
3666
3666
  init_aggregate();
3667
3667
  init_vector2();
3668
3668
  });
3669
3669
 
3670
- // ../../node_modules/drizzle-orm/sql/index.js
3670
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/sql/index.js
3671
3671
  var init_sql2 = __esm(() => {
3672
3672
  init_expressions();
3673
3673
  init_functions();
3674
3674
  init_sql();
3675
3675
  });
3676
3676
 
3677
- // ../../node_modules/drizzle-orm/pg-core/view-base.js
3677
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/view-base.js
3678
3678
  var PgViewBase;
3679
3679
  var init_view_base = __esm(() => {
3680
3680
  init_entity();
@@ -3684,7 +3684,7 @@ var init_view_base = __esm(() => {
3684
3684
  };
3685
3685
  });
3686
3686
 
3687
- // ../../node_modules/drizzle-orm/pg-core/dialect.js
3687
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/dialect.js
3688
3688
  var PgDialect;
3689
3689
  var init_dialect = __esm(() => {
3690
3690
  init_alias();
@@ -4271,7 +4271,7 @@ var init_dialect = __esm(() => {
4271
4271
  };
4272
4272
  });
4273
4273
 
4274
- // ../../node_modules/drizzle-orm/query-builders/query-builder.js
4274
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/query-builders/query-builder.js
4275
4275
  var TypedQueryBuilder;
4276
4276
  var init_query_builder = __esm(() => {
4277
4277
  init_entity();
@@ -4283,7 +4283,7 @@ var init_query_builder = __esm(() => {
4283
4283
  };
4284
4284
  });
4285
4285
 
4286
- // ../../node_modules/drizzle-orm/pg-core/query-builders/select.js
4286
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/query-builders/select.js
4287
4287
  function createSetOperator(type, isAll) {
4288
4288
  return (leftSelect, rightSelect, ...restSelects) => {
4289
4289
  const setOperators = [rightSelect, ...restSelects].map((select2) => ({
@@ -4614,7 +4614,7 @@ var init_select2 = __esm(() => {
4614
4614
  exceptAll = createSetOperator("except", true);
4615
4615
  });
4616
4616
 
4617
- // ../../node_modules/drizzle-orm/pg-core/query-builders/query-builder.js
4617
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/query-builders/query-builder.js
4618
4618
  var QueryBuilder;
4619
4619
  var init_query_builder2 = __esm(() => {
4620
4620
  init_entity();
@@ -4700,13 +4700,13 @@ var init_query_builder2 = __esm(() => {
4700
4700
  };
4701
4701
  });
4702
4702
 
4703
- // ../../node_modules/drizzle-orm/pg-core/view.js
4703
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/view.js
4704
4704
  var PgMaterializedViewConfig;
4705
4705
  var init_view = __esm(() => {
4706
4706
  PgMaterializedViewConfig = Symbol.for("drizzle:PgMaterializedViewConfig");
4707
4707
  });
4708
4708
 
4709
- // ../../node_modules/drizzle-orm/pg-core/utils.js
4709
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/utils.js
4710
4710
  function getTableConfig(table) {
4711
4711
  const columns = Object.values(table[Table.Symbol.Columns]);
4712
4712
  const indexes = [];
@@ -4777,7 +4777,7 @@ var init_utils3 = __esm(() => {
4777
4777
  init_unique_constraint();
4778
4778
  });
4779
4779
 
4780
- // ../../node_modules/drizzle-orm/pg-core/query-builders/delete.js
4780
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/query-builders/delete.js
4781
4781
  var PgDeleteBase;
4782
4782
  var init_delete = __esm(() => {
4783
4783
  init_entity();
@@ -4847,7 +4847,7 @@ var init_delete = __esm(() => {
4847
4847
  };
4848
4848
  });
4849
4849
 
4850
- // ../../node_modules/drizzle-orm/pg-core/query-builders/insert.js
4850
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/query-builders/insert.js
4851
4851
  var PgInsertBuilder, PgInsertBase;
4852
4852
  var init_insert = __esm(() => {
4853
4853
  init_entity();
@@ -4981,7 +4981,7 @@ var init_insert = __esm(() => {
4981
4981
  };
4982
4982
  });
4983
4983
 
4984
- // ../../node_modules/drizzle-orm/pg-core/query-builders/refresh-materialized-view.js
4984
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/query-builders/refresh-materialized-view.js
4985
4985
  var PgRefreshMaterializedView;
4986
4986
  var init_refresh_materialized_view = __esm(() => {
4987
4987
  init_entity();
@@ -5038,7 +5038,7 @@ var init_refresh_materialized_view = __esm(() => {
5038
5038
  };
5039
5039
  });
5040
5040
 
5041
- // ../../node_modules/drizzle-orm/pg-core/query-builders/update.js
5041
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/query-builders/update.js
5042
5042
  var PgUpdateBuilder, PgUpdateBase;
5043
5043
  var init_update = __esm(() => {
5044
5044
  init_entity();
@@ -5204,7 +5204,7 @@ var init_update = __esm(() => {
5204
5204
  };
5205
5205
  });
5206
5206
 
5207
- // ../../node_modules/drizzle-orm/pg-core/query-builders/index.js
5207
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/query-builders/index.js
5208
5208
  var init_query_builders = __esm(() => {
5209
5209
  init_delete();
5210
5210
  init_insert();
@@ -5214,7 +5214,7 @@ var init_query_builders = __esm(() => {
5214
5214
  init_update();
5215
5215
  });
5216
5216
 
5217
- // ../../node_modules/drizzle-orm/pg-core/query-builders/count.js
5217
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/query-builders/count.js
5218
5218
  var PgCountBuilder;
5219
5219
  var init_count = __esm(() => {
5220
5220
  init_entity();
@@ -5260,7 +5260,7 @@ var init_count = __esm(() => {
5260
5260
  };
5261
5261
  });
5262
5262
 
5263
- // ../../node_modules/drizzle-orm/pg-core/query-builders/query.js
5263
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/query-builders/query.js
5264
5264
  var RelationalQueryBuilder, PgRelationalQuery;
5265
5265
  var init_query = __esm(() => {
5266
5266
  init_entity();
@@ -5349,7 +5349,7 @@ var init_query = __esm(() => {
5349
5349
  };
5350
5350
  });
5351
5351
 
5352
- // ../../node_modules/drizzle-orm/pg-core/query-builders/raw.js
5352
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/query-builders/raw.js
5353
5353
  var PgRaw;
5354
5354
  var init_raw = __esm(() => {
5355
5355
  init_entity();
@@ -5381,7 +5381,7 @@ var init_raw = __esm(() => {
5381
5381
  };
5382
5382
  });
5383
5383
 
5384
- // ../../node_modules/drizzle-orm/pg-core/db.js
5384
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/db.js
5385
5385
  var PgDatabase;
5386
5386
  var init_db = __esm(() => {
5387
5387
  init_entity();
@@ -5519,19 +5519,19 @@ var init_db = __esm(() => {
5519
5519
  };
5520
5520
  });
5521
5521
 
5522
- // ../../node_modules/drizzle-orm/pg-core/alias.js
5522
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/alias.js
5523
5523
  var init_alias2 = () => {};
5524
5524
 
5525
- // ../../node_modules/drizzle-orm/pg-core/roles.js
5525
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/roles.js
5526
5526
  var init_roles = () => {};
5527
5527
 
5528
- // ../../node_modules/drizzle-orm/pg-core/sequence.js
5528
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/sequence.js
5529
5529
  var init_sequence = () => {};
5530
5530
 
5531
- // ../../node_modules/drizzle-orm/pg-core/schema.js
5531
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/schema.js
5532
5532
  var init_schema = () => {};
5533
5533
 
5534
- // ../../node_modules/drizzle-orm/cache/core/cache.js
5534
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/cache/core/cache.js
5535
5535
  async function hashQuery(sql3, params) {
5536
5536
  const dataToHash = `${sql3}-${JSON.stringify(params)}`;
5537
5537
  const encoder = new TextEncoder;
@@ -5560,7 +5560,7 @@ var init_cache = __esm(() => {
5560
5560
  };
5561
5561
  });
5562
5562
 
5563
- // ../../node_modules/drizzle-orm/pg-core/session.js
5563
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/session.js
5564
5564
  var PgPreparedQuery, PgSession, PgTransaction;
5565
5565
  var init_session = __esm(() => {
5566
5566
  init_cache();
@@ -5699,12 +5699,12 @@ var init_session = __esm(() => {
5699
5699
  };
5700
5700
  });
5701
5701
 
5702
- // ../../node_modules/drizzle-orm/pg-core/utils/index.js
5702
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/utils/index.js
5703
5703
  var init_utils4 = __esm(() => {
5704
5704
  init_array();
5705
5705
  });
5706
5706
 
5707
- // ../../node_modules/drizzle-orm/pg-core/index.js
5707
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pg-core/index.js
5708
5708
  var init_pg_core = __esm(() => {
5709
5709
  init_alias2();
5710
5710
  init_checks();
@@ -5728,7 +5728,7 @@ var init_pg_core = __esm(() => {
5728
5728
  init_view();
5729
5729
  });
5730
5730
 
5731
- // ../../node_modules/drizzle-orm/index.js
5731
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/index.js
5732
5732
  var init_drizzle_orm = __esm(() => {
5733
5733
  init_alias();
5734
5734
  init_column_builder();
@@ -5771,236 +5771,6 @@ var init_agent = __esm(() => {
5771
5771
  });
5772
5772
  });
5773
5773
 
5774
- // src/schema/entity.ts
5775
- var entityTable;
5776
- var init_entity2 = __esm(() => {
5777
- init_drizzle_orm();
5778
- init_pg_core();
5779
- init_agent();
5780
- entityTable = pgTable("entities", {
5781
- id: uuid("id").notNull().primaryKey(),
5782
- agentId: uuid("agent_id").notNull().references(() => agentTable.id, {
5783
- onDelete: "cascade"
5784
- }),
5785
- createdAt: timestamp("created_at").default(sql`now()`).notNull(),
5786
- names: text("names").array().default(sql`'{}'::text[]`).notNull(),
5787
- metadata: jsonb("metadata").$type().default(sql`'{}'::jsonb`).notNull()
5788
- }, (table3) => {
5789
- return {
5790
- idAgentIdUnique: unique("id_agent_id_unique").on(table3.id, table3.agentId)
5791
- };
5792
- });
5793
- });
5794
-
5795
- // src/schema/room.ts
5796
- var roomTable;
5797
- var init_room = __esm(() => {
5798
- init_drizzle_orm();
5799
- init_pg_core();
5800
- init_agent();
5801
- roomTable = pgTable("rooms", {
5802
- id: uuid("id").notNull().primaryKey().default(sql`gen_random_uuid()`),
5803
- agentId: uuid("agent_id").references(() => agentTable.id, {
5804
- onDelete: "cascade"
5805
- }),
5806
- source: text("source").notNull(),
5807
- type: text("type").notNull(),
5808
- messageServerId: uuid("message_server_id"),
5809
- worldId: uuid("world_id"),
5810
- name: text("name"),
5811
- metadata: jsonb("metadata").$type(),
5812
- channelId: text("channel_id"),
5813
- createdAt: timestamp("created_at").default(sql`now()`).notNull()
5814
- });
5815
- });
5816
-
5817
- // src/schema/memory.ts
5818
- var memoryTable, memoryRelations;
5819
- var init_memory = __esm(() => {
5820
- init_drizzle_orm();
5821
- init_pg_core();
5822
- init_agent();
5823
- init_embedding();
5824
- init_entity2();
5825
- init_room();
5826
- memoryTable = pgTable("memories", {
5827
- id: uuid("id").primaryKey().notNull(),
5828
- type: text("type").notNull(),
5829
- createdAt: timestamp("created_at").default(sql`now()`).notNull(),
5830
- content: jsonb("content").$type().notNull(),
5831
- entityId: uuid("entity_id").references(() => entityTable.id, {
5832
- onDelete: "cascade"
5833
- }),
5834
- agentId: uuid("agent_id").references(() => agentTable.id, {
5835
- onDelete: "cascade"
5836
- }).notNull(),
5837
- roomId: uuid("room_id").references(() => roomTable.id, {
5838
- onDelete: "cascade"
5839
- }),
5840
- worldId: uuid("world_id"),
5841
- unique: boolean("unique").default(true).notNull(),
5842
- metadata: jsonb("metadata").$type().default({}).notNull()
5843
- }, (table3) => [
5844
- index("idx_memories_type_room").on(table3.type, table3.roomId),
5845
- index("idx_memories_world_id").on(table3.worldId),
5846
- foreignKey({
5847
- name: "fk_room",
5848
- columns: [table3.roomId],
5849
- foreignColumns: [roomTable.id]
5850
- }).onDelete("cascade"),
5851
- foreignKey({
5852
- name: "fk_user",
5853
- columns: [table3.entityId],
5854
- foreignColumns: [entityTable.id]
5855
- }).onDelete("cascade"),
5856
- foreignKey({
5857
- name: "fk_agent",
5858
- columns: [table3.agentId],
5859
- foreignColumns: [agentTable.id]
5860
- }).onDelete("cascade"),
5861
- index("idx_memories_metadata_type").on(sql`((metadata->>'type'))`),
5862
- index("idx_memories_document_id").on(sql`((metadata->>'documentId'))`),
5863
- index("idx_fragments_order").on(sql`((metadata->>'documentId'))`, sql`((metadata->>'position'))`),
5864
- check("fragment_metadata_check", sql`
5865
- CASE
5866
- WHEN metadata->>'type' = 'fragment' THEN
5867
- metadata ? 'documentId' AND
5868
- metadata ? 'position'
5869
- ELSE true
5870
- END
5871
- `),
5872
- check("document_metadata_check", sql`
5873
- CASE
5874
- WHEN metadata->>'type' = 'document' THEN
5875
- metadata ? 'timestamp'
5876
- ELSE true
5877
- END
5878
- `)
5879
- ]);
5880
- memoryRelations = relations(memoryTable, ({ one }) => ({
5881
- embedding: one(embeddingTable)
5882
- }));
5883
- });
5884
-
5885
- // src/schema/embedding.ts
5886
- import { VECTOR_DIMS } from "@elizaos/core";
5887
- var DIMENSION_MAP, embeddingTable;
5888
- var init_embedding = __esm(() => {
5889
- init_drizzle_orm();
5890
- init_pg_core();
5891
- init_memory();
5892
- DIMENSION_MAP = {
5893
- [VECTOR_DIMS.SMALL]: "dim384",
5894
- [VECTOR_DIMS.MEDIUM]: "dim512",
5895
- [VECTOR_DIMS.LARGE]: "dim768",
5896
- [VECTOR_DIMS.XL]: "dim1024",
5897
- [VECTOR_DIMS.XXL]: "dim1536",
5898
- [VECTOR_DIMS.XXXL]: "dim3072"
5899
- };
5900
- embeddingTable = pgTable("embeddings", {
5901
- id: uuid("id").primaryKey().defaultRandom().notNull(),
5902
- memoryId: uuid("memory_id").references(() => memoryTable.id, { onDelete: "cascade" }),
5903
- createdAt: timestamp("created_at").default(sql`now()`).notNull(),
5904
- dim384: vector("dim_384", { dimensions: VECTOR_DIMS.SMALL }),
5905
- dim512: vector("dim_512", { dimensions: VECTOR_DIMS.MEDIUM }),
5906
- dim768: vector("dim_768", { dimensions: VECTOR_DIMS.LARGE }),
5907
- dim1024: vector("dim_1024", { dimensions: VECTOR_DIMS.XL }),
5908
- dim1536: vector("dim_1536", { dimensions: VECTOR_DIMS.XXL }),
5909
- dim3072: vector("dim_3072", { dimensions: VECTOR_DIMS.XXXL })
5910
- }, (table3) => [
5911
- check("embedding_source_check", sql`"memory_id" IS NOT NULL`),
5912
- index("idx_embedding_memory").on(table3.memoryId),
5913
- foreignKey({
5914
- name: "fk_embedding_memory",
5915
- columns: [table3.memoryId],
5916
- foreignColumns: [memoryTable.id]
5917
- }).onDelete("cascade")
5918
- ]);
5919
- });
5920
-
5921
- // src/schema/cache.ts
5922
- var cacheTable;
5923
- var init_cache2 = __esm(() => {
5924
- init_drizzle_orm();
5925
- init_pg_core();
5926
- init_agent();
5927
- cacheTable = pgTable("cache", {
5928
- key: text("key").notNull(),
5929
- agentId: uuid("agent_id").notNull().references(() => agentTable.id, { onDelete: "cascade" }),
5930
- value: jsonb("value").notNull(),
5931
- createdAt: timestamp("created_at", { withTimezone: true }).default(sql`now()`).notNull(),
5932
- expiresAt: timestamp("expires_at", { withTimezone: true })
5933
- }, (table3) => [primaryKey({ columns: [table3.key, table3.agentId] })]);
5934
- });
5935
-
5936
- // src/schema/world.ts
5937
- var worldTable;
5938
- var init_world = __esm(() => {
5939
- init_drizzle_orm();
5940
- init_pg_core();
5941
- init_agent();
5942
- worldTable = pgTable("worlds", {
5943
- id: uuid("id").notNull().primaryKey().default(sql`gen_random_uuid()`),
5944
- agentId: uuid("agent_id").notNull().references(() => agentTable.id, { onDelete: "cascade" }),
5945
- name: text("name").notNull(),
5946
- metadata: jsonb("metadata").$type(),
5947
- messageServerId: uuid("message_server_id"),
5948
- createdAt: timestamp("created_at").default(sql`now()`).notNull()
5949
- });
5950
- });
5951
-
5952
- // src/schema/component.ts
5953
- var componentTable;
5954
- var init_component = __esm(() => {
5955
- init_drizzle_orm();
5956
- init_pg_core();
5957
- init_agent();
5958
- init_entity2();
5959
- init_room();
5960
- init_world();
5961
- componentTable = pgTable("components", {
5962
- id: uuid("id").primaryKey().default(sql`gen_random_uuid()`).notNull(),
5963
- entityId: uuid("entity_id").references(() => entityTable.id, { onDelete: "cascade" }).notNull(),
5964
- agentId: uuid("agent_id").references(() => agentTable.id, { onDelete: "cascade" }).notNull(),
5965
- roomId: uuid("room_id").references(() => roomTable.id, { onDelete: "cascade" }).notNull(),
5966
- worldId: uuid("world_id").references(() => worldTable.id, { onDelete: "cascade" }),
5967
- sourceEntityId: uuid("source_entity_id").references(() => entityTable.id, {
5968
- onDelete: "cascade"
5969
- }),
5970
- type: text("type").notNull(),
5971
- data: jsonb("data").default(sql`'{}'::jsonb`),
5972
- createdAt: timestamp("created_at").default(sql`now()`).notNull()
5973
- });
5974
- });
5975
-
5976
- // src/schema/log.ts
5977
- var logTable;
5978
- var init_log = __esm(() => {
5979
- init_drizzle_orm();
5980
- init_pg_core();
5981
- init_entity2();
5982
- init_room();
5983
- logTable = pgTable("logs", {
5984
- id: uuid("id").defaultRandom().notNull(),
5985
- createdAt: timestamp("created_at", { withTimezone: true }).default(sql`now()`).notNull(),
5986
- entityId: uuid("entity_id").notNull().references(() => entityTable.id, { onDelete: "cascade" }),
5987
- body: jsonb("body").notNull(),
5988
- type: text("type").notNull(),
5989
- roomId: uuid("room_id").notNull().references(() => roomTable.id, { onDelete: "cascade" })
5990
- }, (table3) => [
5991
- foreignKey({
5992
- name: "fk_room",
5993
- columns: [table3.roomId],
5994
- foreignColumns: [roomTable.id]
5995
- }).onDelete("cascade"),
5996
- foreignKey({
5997
- name: "fk_user",
5998
- columns: [table3.entityId],
5999
- foreignColumns: [entityTable.id]
6000
- }).onDelete("cascade")
6001
- ]);
6002
- });
6003
-
6004
5774
  // src/schema/server.ts
6005
5775
  var serverTable;
6006
5776
  var init_server = __esm(() => {
@@ -6013,241 +5783,6 @@ var init_server = __esm(() => {
6013
5783
  });
6014
5784
  });
6015
5785
 
6016
- // src/schema/participant.ts
6017
- var participantTable;
6018
- var init_participant = __esm(() => {
6019
- init_drizzle_orm();
6020
- init_pg_core();
6021
- init_agent();
6022
- init_entity2();
6023
- init_room();
6024
- participantTable = pgTable("participants", {
6025
- id: uuid("id").notNull().primaryKey().default(sql`gen_random_uuid()`),
6026
- createdAt: timestamp("created_at", { withTimezone: true }).default(sql`now()`).notNull(),
6027
- entityId: uuid("entity_id").references(() => entityTable.id, {
6028
- onDelete: "cascade"
6029
- }),
6030
- roomId: uuid("room_id").references(() => roomTable.id, {
6031
- onDelete: "cascade"
6032
- }),
6033
- agentId: uuid("agent_id").references(() => agentTable.id, {
6034
- onDelete: "cascade"
6035
- }),
6036
- roomState: text("room_state")
6037
- }, (table3) => [
6038
- index("idx_participants_user").on(table3.entityId),
6039
- index("idx_participants_room").on(table3.roomId),
6040
- foreignKey({
6041
- name: "fk_room",
6042
- columns: [table3.roomId],
6043
- foreignColumns: [roomTable.id]
6044
- }).onDelete("cascade"),
6045
- foreignKey({
6046
- name: "fk_user",
6047
- columns: [table3.entityId],
6048
- foreignColumns: [entityTable.id]
6049
- }).onDelete("cascade")
6050
- ]);
6051
- });
6052
-
6053
- // src/schema/relationship.ts
6054
- var relationshipTable;
6055
- var init_relationship = __esm(() => {
6056
- init_drizzle_orm();
6057
- init_pg_core();
6058
- init_agent();
6059
- init_entity2();
6060
- relationshipTable = pgTable("relationships", {
6061
- id: uuid("id").notNull().primaryKey().default(sql`gen_random_uuid()`),
6062
- createdAt: timestamp("created_at", { withTimezone: true }).default(sql`now()`).notNull(),
6063
- sourceEntityId: uuid("source_entity_id").notNull().references(() => entityTable.id, { onDelete: "cascade" }),
6064
- targetEntityId: uuid("target_entity_id").notNull().references(() => entityTable.id, { onDelete: "cascade" }),
6065
- agentId: uuid("agent_id").notNull().references(() => agentTable.id, { onDelete: "cascade" }),
6066
- tags: text("tags").array(),
6067
- metadata: jsonb("metadata").$type()
6068
- }, (table3) => [
6069
- index("idx_relationships_users").on(table3.sourceEntityId, table3.targetEntityId),
6070
- unique("unique_relationship").on(table3.sourceEntityId, table3.targetEntityId, table3.agentId),
6071
- foreignKey({
6072
- name: "fk_user_a",
6073
- columns: [table3.sourceEntityId],
6074
- foreignColumns: [entityTable.id]
6075
- }).onDelete("cascade"),
6076
- foreignKey({
6077
- name: "fk_user_b",
6078
- columns: [table3.targetEntityId],
6079
- foreignColumns: [entityTable.id]
6080
- }).onDelete("cascade")
6081
- ]);
6082
- });
6083
-
6084
- // src/schema/tasks.ts
6085
- var taskTable;
6086
- var init_tasks = __esm(() => {
6087
- init_pg_core();
6088
- init_drizzle_orm();
6089
- init_agent();
6090
- taskTable = pgTable("tasks", {
6091
- id: uuid("id").primaryKey().defaultRandom(),
6092
- name: text("name").notNull(),
6093
- description: text("description"),
6094
- roomId: uuid("room_id"),
6095
- worldId: uuid("world_id"),
6096
- entityId: uuid("entity_id"),
6097
- agentId: uuid("agent_id").notNull().references(() => agentTable.id, { onDelete: "cascade" }),
6098
- tags: text("tags").array().default(sql`'{}'::text[]`),
6099
- metadata: jsonb("metadata").$type().default(sql`'{}'::jsonb`),
6100
- createdAt: timestamp("created_at", { withTimezone: true }).defaultNow(),
6101
- updatedAt: timestamp("updated_at", { withTimezone: true }).defaultNow()
6102
- });
6103
- });
6104
-
6105
- // src/schema/user.ts
6106
- var userTable;
6107
- var init_user = __esm(() => {
6108
- init_drizzle_orm();
6109
- init_pg_core();
6110
- userTable = pgTable("users", {
6111
- id: uuid("id").notNull().primaryKey().default(sql`gen_random_uuid()`),
6112
- email: text("email").notNull().unique(),
6113
- username: text("username").notNull(),
6114
- passwordHash: text("password_hash").notNull(),
6115
- createdAt: timestamp("created_at").default(sql`now()`).notNull(),
6116
- updatedAt: timestamp("updated_at").default(sql`now()`).notNull(),
6117
- lastLoginAt: timestamp("last_login_at")
6118
- }, (table3) => ({
6119
- emailIdx: index("idx_users_email").on(table3.email),
6120
- usernameIdx: index("idx_users_username").on(table3.username)
6121
- }));
6122
- });
6123
-
6124
- // src/schema/messageServer.ts
6125
- var messageServerTable;
6126
- var init_messageServer = __esm(() => {
6127
- init_pg_core();
6128
- init_drizzle_orm();
6129
- messageServerTable = pgTable("message_servers", {
6130
- id: uuid("id").primaryKey(),
6131
- name: text("name").notNull(),
6132
- sourceType: text("source_type").notNull(),
6133
- sourceId: text("source_id"),
6134
- metadata: jsonb("metadata").$type(),
6135
- createdAt: timestamp("created_at", { mode: "date" }).default(sql`CURRENT_TIMESTAMP`).notNull(),
6136
- updatedAt: timestamp("updated_at", { mode: "date" }).default(sql`CURRENT_TIMESTAMP`).notNull()
6137
- });
6138
- });
6139
-
6140
- // src/schema/channel.ts
6141
- var channelTable;
6142
- var init_channel = __esm(() => {
6143
- init_pg_core();
6144
- init_drizzle_orm();
6145
- init_messageServer();
6146
- channelTable = pgTable("channels", {
6147
- id: text("id").primaryKey(),
6148
- messageServerId: uuid("message_server_id").notNull().references(() => messageServerTable.id, { onDelete: "cascade" }),
6149
- name: text("name").notNull(),
6150
- type: text("type").notNull(),
6151
- sourceType: text("source_type"),
6152
- sourceId: text("source_id"),
6153
- topic: text("topic"),
6154
- metadata: jsonb("metadata").$type(),
6155
- createdAt: timestamp("created_at", { mode: "date" }).default(sql`CURRENT_TIMESTAMP`).notNull(),
6156
- updatedAt: timestamp("updated_at", { mode: "date" }).default(sql`CURRENT_TIMESTAMP`).notNull()
6157
- });
6158
- });
6159
-
6160
- // src/schema/message.ts
6161
- var messageTable;
6162
- var init_message = __esm(() => {
6163
- init_pg_core();
6164
- init_drizzle_orm();
6165
- init_channel();
6166
- messageTable = pgTable("central_messages", {
6167
- id: text("id").primaryKey(),
6168
- channelId: text("channel_id").notNull().references(() => channelTable.id, { onDelete: "cascade" }),
6169
- authorId: text("author_id").notNull(),
6170
- content: text("content").notNull(),
6171
- rawMessage: jsonb("raw_message"),
6172
- inReplyToRootMessageId: text("in_reply_to_root_message_id").references(() => messageTable.id, {
6173
- onDelete: "set null"
6174
- }),
6175
- sourceType: text("source_type"),
6176
- sourceId: text("source_id"),
6177
- metadata: jsonb("metadata").$type(),
6178
- createdAt: timestamp("created_at", { mode: "date" }).default(sql`CURRENT_TIMESTAMP`).notNull(),
6179
- updatedAt: timestamp("updated_at", { mode: "date" }).default(sql`CURRENT_TIMESTAMP`).notNull()
6180
- });
6181
- });
6182
-
6183
- // src/schema/channelParticipant.ts
6184
- var channelParticipantsTable;
6185
- var init_channelParticipant = __esm(() => {
6186
- init_pg_core();
6187
- init_channel();
6188
- channelParticipantsTable = pgTable("channel_participants", {
6189
- channelId: text("channel_id").notNull().references(() => channelTable.id, { onDelete: "cascade" }),
6190
- entityId: text("entity_id").notNull()
6191
- }, (table3) => [primaryKey({ columns: [table3.channelId, table3.entityId] })]);
6192
- });
6193
-
6194
- // src/schema/messageServerAgent.ts
6195
- var messageServerAgentsTable;
6196
- var init_messageServerAgent = __esm(() => {
6197
- init_pg_core();
6198
- init_messageServer();
6199
- init_agent();
6200
- messageServerAgentsTable = pgTable("message_server_agents", {
6201
- messageServerId: uuid("message_server_id").notNull().references(() => messageServerTable.id, { onDelete: "cascade" }),
6202
- agentId: uuid("agent_id").notNull().references(() => agentTable.id, { onDelete: "cascade" })
6203
- }, (table3) => [primaryKey({ columns: [table3.messageServerId, table3.agentId] })]);
6204
- });
6205
-
6206
- // src/schema/index.ts
6207
- var exports_schema = {};
6208
- __export(exports_schema, {
6209
- worldTable: () => worldTable,
6210
- userTable: () => userTable,
6211
- taskTable: () => taskTable,
6212
- serverTable: () => serverTable,
6213
- roomTable: () => roomTable,
6214
- relationshipTable: () => relationshipTable,
6215
- participantTable: () => participantTable,
6216
- messageTable: () => messageTable,
6217
- messageServerTable: () => messageServerTable,
6218
- messageServerAgentsTable: () => messageServerAgentsTable,
6219
- memoryTable: () => memoryTable,
6220
- logTable: () => logTable,
6221
- entityTable: () => entityTable,
6222
- embeddingTable: () => embeddingTable,
6223
- componentTable: () => componentTable,
6224
- channelTable: () => channelTable,
6225
- channelParticipantsTable: () => channelParticipantsTable,
6226
- cacheTable: () => cacheTable,
6227
- agentTable: () => agentTable
6228
- });
6229
- var init_schema2 = __esm(() => {
6230
- init_agent();
6231
- init_cache2();
6232
- init_component();
6233
- init_embedding();
6234
- init_entity2();
6235
- init_log();
6236
- init_memory();
6237
- init_server();
6238
- init_participant();
6239
- init_relationship();
6240
- init_room();
6241
- init_world();
6242
- init_tasks();
6243
- init_user();
6244
- init_messageServer();
6245
- init_channel();
6246
- init_message();
6247
- init_channelParticipant();
6248
- init_messageServerAgent();
6249
- });
6250
-
6251
5786
  // src/types.ts
6252
5787
  function getDb(adapter) {
6253
5788
  return adapter.db;
@@ -9463,7 +8998,7 @@ var init_migration_service = __esm(() => {
9463
8998
  init_rls();
9464
8999
  });
9465
9000
 
9466
- // ../../node_modules/ws/lib/constants.js
9001
+ // ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/constants.js
9467
9002
  var require_constants = __commonJS((exports, module) => {
9468
9003
  var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
9469
9004
  var hasBlob = typeof Blob !== "undefined";
@@ -9483,7 +9018,7 @@ var require_constants = __commonJS((exports, module) => {
9483
9018
  };
9484
9019
  });
9485
9020
 
9486
- // ../../node_modules/node-gyp-build/node-gyp-build.js
9021
+ // ../../node_modules/.bun/node-gyp-build@4.8.4/node_modules/node-gyp-build/node-gyp-build.js
9487
9022
  var require_node_gyp_build = __commonJS((exports, module) => {
9488
9023
  var fs = __require("fs");
9489
9024
  var path = __require("path");
@@ -9672,7 +9207,7 @@ var require_node_gyp_build = __commonJS((exports, module) => {
9672
9207
  load.compareTuples = compareTuples;
9673
9208
  });
9674
9209
 
9675
- // ../../node_modules/node-gyp-build/index.js
9210
+ // ../../node_modules/.bun/node-gyp-build@4.8.4/node_modules/node-gyp-build/index.js
9676
9211
  var require_node_gyp_build2 = __commonJS((exports, module) => {
9677
9212
  var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
9678
9213
  if (typeof runtimeRequire.addon === "function") {
@@ -9682,7 +9217,7 @@ var require_node_gyp_build2 = __commonJS((exports, module) => {
9682
9217
  }
9683
9218
  });
9684
9219
 
9685
- // ../../node_modules/bufferutil/fallback.js
9220
+ // ../../node_modules/.bun/bufferutil@4.1.0/node_modules/bufferutil/fallback.js
9686
9221
  var require_fallback = __commonJS((exports, module) => {
9687
9222
  var mask = (source, mask2, output, offset, length) => {
9688
9223
  for (var i = 0;i < length; i++) {
@@ -9698,9 +9233,9 @@ var require_fallback = __commonJS((exports, module) => {
9698
9233
  module.exports = { mask, unmask };
9699
9234
  });
9700
9235
 
9701
- // ../../node_modules/bufferutil/index.js
9236
+ // ../../node_modules/.bun/bufferutil@4.1.0/node_modules/bufferutil/index.js
9702
9237
  var require_bufferutil = __commonJS((exports, module) => {
9703
- var __dirname = "/home/runner/work/eliza/eliza/node_modules/bufferutil";
9238
+ var __dirname = "/Users/shawwalters/eliza-workspace/eliza/node_modules/.bun/bufferutil@4.1.0/node_modules/bufferutil";
9704
9239
  try {
9705
9240
  module.exports = require_node_gyp_build2()(__dirname);
9706
9241
  } catch (e) {
@@ -9708,7 +9243,7 @@ var require_bufferutil = __commonJS((exports, module) => {
9708
9243
  }
9709
9244
  });
9710
9245
 
9711
- // ../../node_modules/ws/lib/buffer-util.js
9246
+ // ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/buffer-util.js
9712
9247
  var require_buffer_util = __commonJS((exports, module) => {
9713
9248
  var { EMPTY_BUFFER } = require_constants();
9714
9249
  var FastBuffer = Buffer[Symbol.species];
@@ -9786,7 +9321,7 @@ var require_buffer_util = __commonJS((exports, module) => {
9786
9321
  }
9787
9322
  });
9788
9323
 
9789
- // ../../node_modules/ws/lib/limiter.js
9324
+ // ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/limiter.js
9790
9325
  var require_limiter = __commonJS((exports, module) => {
9791
9326
  var kDone = Symbol("kDone");
9792
9327
  var kRun = Symbol("kRun");
@@ -9818,7 +9353,7 @@ var require_limiter = __commonJS((exports, module) => {
9818
9353
  module.exports = Limiter;
9819
9354
  });
9820
9355
 
9821
- // ../../node_modules/ws/lib/permessage-deflate.js
9356
+ // ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js
9822
9357
  var require_permessage_deflate = __commonJS((exports, module) => {
9823
9358
  var zlib = __require("zlib");
9824
9359
  var bufferUtil = require_buffer_util();
@@ -10082,7 +9617,7 @@ var require_permessage_deflate = __commonJS((exports, module) => {
10082
9617
  }
10083
9618
  });
10084
9619
 
10085
- // ../../node_modules/utf-8-validate/fallback.js
9620
+ // ../../node_modules/.bun/utf-8-validate@5.0.10/node_modules/utf-8-validate/fallback.js
10086
9621
  var require_fallback2 = __commonJS((exports, module) => {
10087
9622
  function isValidUTF8(buf) {
10088
9623
  const len = buf.length;
@@ -10114,9 +9649,9 @@ var require_fallback2 = __commonJS((exports, module) => {
10114
9649
  module.exports = isValidUTF8;
10115
9650
  });
10116
9651
 
10117
- // ../../node_modules/utf-8-validate/index.js
9652
+ // ../../node_modules/.bun/utf-8-validate@5.0.10/node_modules/utf-8-validate/index.js
10118
9653
  var require_utf_8_validate = __commonJS((exports, module) => {
10119
- var __dirname = "/home/runner/work/eliza/eliza/node_modules/utf-8-validate";
9654
+ var __dirname = "/Users/shawwalters/eliza-workspace/eliza/node_modules/.bun/utf-8-validate@5.0.10/node_modules/utf-8-validate";
10120
9655
  try {
10121
9656
  module.exports = require_node_gyp_build2()(__dirname);
10122
9657
  } catch (e) {
@@ -10124,7 +9659,7 @@ var require_utf_8_validate = __commonJS((exports, module) => {
10124
9659
  }
10125
9660
  });
10126
9661
 
10127
- // ../../node_modules/ws/lib/validation.js
9662
+ // ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/validation.js
10128
9663
  var require_validation = __commonJS((exports, module) => {
10129
9664
  var { isUtf8 } = __require("buffer");
10130
9665
  var { hasBlob } = require_constants();
@@ -10311,7 +9846,7 @@ var require_validation = __commonJS((exports, module) => {
10311
9846
  }
10312
9847
  });
10313
9848
 
10314
- // ../../node_modules/ws/lib/receiver.js
9849
+ // ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/receiver.js
10315
9850
  var require_receiver = __commonJS((exports, module) => {
10316
9851
  var { Writable } = __require("stream");
10317
9852
  var PerMessageDeflate = require_permessage_deflate();
@@ -10692,7 +10227,7 @@ var require_receiver = __commonJS((exports, module) => {
10692
10227
  module.exports = Receiver;
10693
10228
  });
10694
10229
 
10695
- // ../../node_modules/ws/lib/sender.js
10230
+ // ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/sender.js
10696
10231
  var require_sender = __commonJS((exports, module) => {
10697
10232
  var { Duplex } = __require("stream");
10698
10233
  var { randomFillSync } = __require("crypto");
@@ -11046,7 +10581,7 @@ var require_sender = __commonJS((exports, module) => {
11046
10581
  }
11047
10582
  });
11048
10583
 
11049
- // ../../node_modules/ws/lib/event-target.js
10584
+ // ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/event-target.js
11050
10585
  var require_event_target = __commonJS((exports, module) => {
11051
10586
  var { kForOnEventAttribute, kListener } = require_constants();
11052
10587
  var kCode = Symbol("kCode");
@@ -11197,7 +10732,7 @@ var require_event_target = __commonJS((exports, module) => {
11197
10732
  }
11198
10733
  });
11199
10734
 
11200
- // ../../node_modules/ws/lib/extension.js
10735
+ // ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/extension.js
11201
10736
  var require_extension = __commonJS((exports, module) => {
11202
10737
  var { tokenChars } = require_validation();
11203
10738
  function push(dest, name, elem) {
@@ -11362,7 +10897,7 @@ var require_extension = __commonJS((exports, module) => {
11362
10897
  module.exports = { format, parse };
11363
10898
  });
11364
10899
 
11365
- // ../../node_modules/ws/lib/websocket.js
10900
+ // ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/websocket.js
11366
10901
  var require_websocket = __commonJS((exports, module) => {
11367
10902
  var EventEmitter = __require("events");
11368
10903
  var https = __require("https");
@@ -12124,7 +11659,7 @@ var require_websocket = __commonJS((exports, module) => {
12124
11659
  }
12125
11660
  });
12126
11661
 
12127
- // ../../node_modules/ws/lib/stream.js
11662
+ // ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/stream.js
12128
11663
  var require_stream = __commonJS((exports, module) => {
12129
11664
  var WebSocket2 = require_websocket();
12130
11665
  var { Duplex } = __require("stream");
@@ -12227,7 +11762,7 @@ var require_stream = __commonJS((exports, module) => {
12227
11762
  module.exports = createWebSocketStream;
12228
11763
  });
12229
11764
 
12230
- // ../../node_modules/ws/lib/subprotocol.js
11765
+ // ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/subprotocol.js
12231
11766
  var require_subprotocol = __commonJS((exports, module) => {
12232
11767
  var { tokenChars } = require_validation();
12233
11768
  function parse(header) {
@@ -12272,7 +11807,7 @@ var require_subprotocol = __commonJS((exports, module) => {
12272
11807
  module.exports = { parse };
12273
11808
  });
12274
11809
 
12275
- // ../../node_modules/ws/lib/websocket-server.js
11810
+ // ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/websocket-server.js
12276
11811
  var require_websocket_server = __commonJS((exports, module) => {
12277
11812
  var EventEmitter = __require("events");
12278
11813
  var http = __require("http");
@@ -12581,7 +12116,7 @@ import { mkdirSync } from "node:fs";
12581
12116
  // src/pglite/adapter.ts
12582
12117
  import { logger as logger18 } from "@elizaos/core";
12583
12118
 
12584
- // ../../node_modules/drizzle-orm/pglite/driver.js
12119
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pglite/driver.js
12585
12120
  init_entity();
12586
12121
  init_logger();
12587
12122
  init_db();
@@ -12590,7 +12125,7 @@ init_relations();
12590
12125
  init_utils();
12591
12126
  import { PGlite } from "@electric-sql/pglite";
12592
12127
 
12593
- // ../../node_modules/drizzle-orm/pglite/session.js
12128
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pglite/session.js
12594
12129
  init_entity();
12595
12130
  init_logger();
12596
12131
  init_pg_core();
@@ -12716,7 +12251,7 @@ class PgliteTransaction extends PgTransaction {
12716
12251
  }
12717
12252
  }
12718
12253
 
12719
- // ../../node_modules/drizzle-orm/pglite/driver.js
12254
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/pglite/driver.js
12720
12255
  class PgliteDriver {
12721
12256
  constructor(client, dialect2, options = {}) {
12722
12257
  this.client = client;
@@ -12790,13 +12325,371 @@ function drizzle(...params) {
12790
12325
 
12791
12326
  // src/base.ts
12792
12327
  init_drizzle_orm();
12793
- init_embedding();
12794
- init_schema2();
12795
12328
  import {
12796
12329
  DatabaseAdapter,
12797
12330
  logger as logger17
12798
12331
  } from "@elizaos/core";
12799
12332
 
12333
+ // src/schema/embedding.ts
12334
+ init_drizzle_orm();
12335
+ init_pg_core();
12336
+ import { VECTOR_DIMS } from "@elizaos/core";
12337
+
12338
+ // src/schema/memory.ts
12339
+ init_drizzle_orm();
12340
+ init_pg_core();
12341
+ init_agent();
12342
+
12343
+ // src/schema/entity.ts
12344
+ init_drizzle_orm();
12345
+ init_pg_core();
12346
+ init_agent();
12347
+ var entityTable = pgTable("entities", {
12348
+ id: uuid("id").notNull().primaryKey(),
12349
+ agentId: uuid("agent_id").notNull().references(() => agentTable.id, {
12350
+ onDelete: "cascade"
12351
+ }),
12352
+ createdAt: timestamp("created_at").default(sql`now()`).notNull(),
12353
+ names: text("names").array().default(sql`'{}'::text[]`).notNull(),
12354
+ metadata: jsonb("metadata").$type().default(sql`'{}'::jsonb`).notNull()
12355
+ }, (table3) => {
12356
+ return {
12357
+ idAgentIdUnique: unique("id_agent_id_unique").on(table3.id, table3.agentId)
12358
+ };
12359
+ });
12360
+
12361
+ // src/schema/room.ts
12362
+ init_drizzle_orm();
12363
+ init_pg_core();
12364
+ init_agent();
12365
+ var roomTable = pgTable("rooms", {
12366
+ id: uuid("id").notNull().primaryKey().default(sql`gen_random_uuid()`),
12367
+ agentId: uuid("agent_id").references(() => agentTable.id, {
12368
+ onDelete: "cascade"
12369
+ }),
12370
+ source: text("source").notNull(),
12371
+ type: text("type").notNull(),
12372
+ messageServerId: uuid("message_server_id"),
12373
+ worldId: uuid("world_id"),
12374
+ name: text("name"),
12375
+ metadata: jsonb("metadata").$type(),
12376
+ channelId: text("channel_id"),
12377
+ createdAt: timestamp("created_at").default(sql`now()`).notNull()
12378
+ });
12379
+
12380
+ // src/schema/memory.ts
12381
+ var memoryTable = pgTable("memories", {
12382
+ id: uuid("id").primaryKey().notNull(),
12383
+ type: text("type").notNull(),
12384
+ createdAt: timestamp("created_at").default(sql`now()`).notNull(),
12385
+ content: jsonb("content").$type().notNull(),
12386
+ entityId: uuid("entity_id").references(() => entityTable.id, {
12387
+ onDelete: "cascade"
12388
+ }),
12389
+ agentId: uuid("agent_id").references(() => agentTable.id, {
12390
+ onDelete: "cascade"
12391
+ }).notNull(),
12392
+ roomId: uuid("room_id").references(() => roomTable.id, {
12393
+ onDelete: "cascade"
12394
+ }),
12395
+ worldId: uuid("world_id"),
12396
+ unique: boolean("unique").default(true).notNull(),
12397
+ metadata: jsonb("metadata").$type().default({}).notNull()
12398
+ }, (table3) => [
12399
+ index("idx_memories_type_room").on(table3.type, table3.roomId),
12400
+ index("idx_memories_world_id").on(table3.worldId),
12401
+ foreignKey({
12402
+ name: "fk_room",
12403
+ columns: [table3.roomId],
12404
+ foreignColumns: [roomTable.id]
12405
+ }).onDelete("cascade"),
12406
+ foreignKey({
12407
+ name: "fk_user",
12408
+ columns: [table3.entityId],
12409
+ foreignColumns: [entityTable.id]
12410
+ }).onDelete("cascade"),
12411
+ foreignKey({
12412
+ name: "fk_agent",
12413
+ columns: [table3.agentId],
12414
+ foreignColumns: [agentTable.id]
12415
+ }).onDelete("cascade"),
12416
+ index("idx_memories_metadata_type").on(sql`((metadata->>'type'))`),
12417
+ index("idx_memories_document_id").on(sql`((metadata->>'documentId'))`),
12418
+ index("idx_fragments_order").on(sql`((metadata->>'documentId'))`, sql`((metadata->>'position'))`),
12419
+ check("fragment_metadata_check", sql`
12420
+ CASE
12421
+ WHEN metadata->>'type' = 'fragment' THEN
12422
+ metadata ? 'documentId' AND
12423
+ metadata ? 'position'
12424
+ ELSE true
12425
+ END
12426
+ `),
12427
+ check("document_metadata_check", sql`
12428
+ CASE
12429
+ WHEN metadata->>'type' = 'document' THEN
12430
+ metadata ? 'timestamp'
12431
+ ELSE true
12432
+ END
12433
+ `)
12434
+ ]);
12435
+ var memoryRelations = relations(memoryTable, ({ one }) => ({
12436
+ embedding: one(embeddingTable)
12437
+ }));
12438
+
12439
+ // src/schema/embedding.ts
12440
+ var DIMENSION_MAP = {
12441
+ [VECTOR_DIMS.SMALL]: "dim384",
12442
+ [VECTOR_DIMS.MEDIUM]: "dim512",
12443
+ [VECTOR_DIMS.LARGE]: "dim768",
12444
+ [VECTOR_DIMS.XL]: "dim1024",
12445
+ [VECTOR_DIMS.XXL]: "dim1536",
12446
+ [VECTOR_DIMS.XXXL]: "dim3072"
12447
+ };
12448
+ var embeddingTable = pgTable("embeddings", {
12449
+ id: uuid("id").primaryKey().defaultRandom().notNull(),
12450
+ memoryId: uuid("memory_id").references(() => memoryTable.id, { onDelete: "cascade" }),
12451
+ createdAt: timestamp("created_at").default(sql`now()`).notNull(),
12452
+ dim384: vector("dim_384", { dimensions: VECTOR_DIMS.SMALL }),
12453
+ dim512: vector("dim_512", { dimensions: VECTOR_DIMS.MEDIUM }),
12454
+ dim768: vector("dim_768", { dimensions: VECTOR_DIMS.LARGE }),
12455
+ dim1024: vector("dim_1024", { dimensions: VECTOR_DIMS.XL }),
12456
+ dim1536: vector("dim_1536", { dimensions: VECTOR_DIMS.XXL }),
12457
+ dim3072: vector("dim_3072", { dimensions: VECTOR_DIMS.XXXL })
12458
+ }, (table3) => [
12459
+ check("embedding_source_check", sql`"memory_id" IS NOT NULL`),
12460
+ index("idx_embedding_memory").on(table3.memoryId),
12461
+ foreignKey({
12462
+ name: "fk_embedding_memory",
12463
+ columns: [table3.memoryId],
12464
+ foreignColumns: [memoryTable.id]
12465
+ }).onDelete("cascade")
12466
+ ]);
12467
+
12468
+ // src/schema/index.ts
12469
+ init_agent();
12470
+ var exports_schema = {};
12471
+ __export(exports_schema, {
12472
+ worldTable: () => worldTable,
12473
+ taskTable: () => taskTable,
12474
+ serverTable: () => serverTable,
12475
+ roomTable: () => roomTable,
12476
+ relationshipTable: () => relationshipTable,
12477
+ participantTable: () => participantTable,
12478
+ messageTable: () => messageTable,
12479
+ messageServerTable: () => messageServerTable,
12480
+ messageServerAgentsTable: () => messageServerAgentsTable,
12481
+ memoryTable: () => memoryTable,
12482
+ logTable: () => logTable,
12483
+ entityTable: () => entityTable,
12484
+ embeddingTable: () => embeddingTable,
12485
+ componentTable: () => componentTable,
12486
+ channelTable: () => channelTable,
12487
+ channelParticipantsTable: () => channelParticipantsTable,
12488
+ cacheTable: () => cacheTable,
12489
+ agentTable: () => agentTable
12490
+ });
12491
+
12492
+ // src/schema/cache.ts
12493
+ init_drizzle_orm();
12494
+ init_pg_core();
12495
+ init_agent();
12496
+ var cacheTable = pgTable("cache", {
12497
+ key: text("key").notNull(),
12498
+ agentId: uuid("agent_id").notNull().references(() => agentTable.id, { onDelete: "cascade" }),
12499
+ value: jsonb("value").notNull(),
12500
+ createdAt: timestamp("created_at", { withTimezone: true }).default(sql`now()`).notNull(),
12501
+ expiresAt: timestamp("expires_at", { withTimezone: true })
12502
+ }, (table3) => [primaryKey({ columns: [table3.key, table3.agentId] })]);
12503
+ // src/schema/component.ts
12504
+ init_drizzle_orm();
12505
+ init_pg_core();
12506
+ init_agent();
12507
+
12508
+ // src/schema/world.ts
12509
+ init_drizzle_orm();
12510
+ init_pg_core();
12511
+ init_agent();
12512
+ var worldTable = pgTable("worlds", {
12513
+ id: uuid("id").notNull().primaryKey().default(sql`gen_random_uuid()`),
12514
+ agentId: uuid("agent_id").notNull().references(() => agentTable.id, { onDelete: "cascade" }),
12515
+ name: text("name").notNull(),
12516
+ metadata: jsonb("metadata").$type(),
12517
+ messageServerId: uuid("message_server_id"),
12518
+ createdAt: timestamp("created_at").default(sql`now()`).notNull()
12519
+ });
12520
+
12521
+ // src/schema/component.ts
12522
+ var componentTable = pgTable("components", {
12523
+ id: uuid("id").primaryKey().default(sql`gen_random_uuid()`).notNull(),
12524
+ entityId: uuid("entity_id").references(() => entityTable.id, { onDelete: "cascade" }).notNull(),
12525
+ agentId: uuid("agent_id").references(() => agentTable.id, { onDelete: "cascade" }).notNull(),
12526
+ roomId: uuid("room_id").references(() => roomTable.id, { onDelete: "cascade" }).notNull(),
12527
+ worldId: uuid("world_id").references(() => worldTable.id, { onDelete: "cascade" }),
12528
+ sourceEntityId: uuid("source_entity_id").references(() => entityTable.id, {
12529
+ onDelete: "cascade"
12530
+ }),
12531
+ type: text("type").notNull(),
12532
+ data: jsonb("data").default(sql`'{}'::jsonb`),
12533
+ createdAt: timestamp("created_at").default(sql`now()`).notNull()
12534
+ });
12535
+ // src/schema/log.ts
12536
+ init_drizzle_orm();
12537
+ init_pg_core();
12538
+ var logTable = pgTable("logs", {
12539
+ id: uuid("id").defaultRandom().notNull(),
12540
+ createdAt: timestamp("created_at", { withTimezone: true }).default(sql`now()`).notNull(),
12541
+ entityId: uuid("entity_id").notNull().references(() => entityTable.id, { onDelete: "cascade" }),
12542
+ body: jsonb("body").notNull(),
12543
+ type: text("type").notNull(),
12544
+ roomId: uuid("room_id").notNull().references(() => roomTable.id, { onDelete: "cascade" })
12545
+ }, (table3) => [
12546
+ foreignKey({
12547
+ name: "fk_room",
12548
+ columns: [table3.roomId],
12549
+ foreignColumns: [roomTable.id]
12550
+ }).onDelete("cascade"),
12551
+ foreignKey({
12552
+ name: "fk_user",
12553
+ columns: [table3.entityId],
12554
+ foreignColumns: [entityTable.id]
12555
+ }).onDelete("cascade")
12556
+ ]);
12557
+
12558
+ // src/schema/index.ts
12559
+ init_server();
12560
+
12561
+ // src/schema/participant.ts
12562
+ init_drizzle_orm();
12563
+ init_pg_core();
12564
+ init_agent();
12565
+ var participantTable = pgTable("participants", {
12566
+ id: uuid("id").notNull().primaryKey().default(sql`gen_random_uuid()`),
12567
+ createdAt: timestamp("created_at", { withTimezone: true }).default(sql`now()`).notNull(),
12568
+ entityId: uuid("entity_id").references(() => entityTable.id, {
12569
+ onDelete: "cascade"
12570
+ }),
12571
+ roomId: uuid("room_id").references(() => roomTable.id, {
12572
+ onDelete: "cascade"
12573
+ }),
12574
+ agentId: uuid("agent_id").references(() => agentTable.id, {
12575
+ onDelete: "cascade"
12576
+ }),
12577
+ roomState: text("room_state")
12578
+ }, (table3) => [
12579
+ index("idx_participants_user").on(table3.entityId),
12580
+ index("idx_participants_room").on(table3.roomId),
12581
+ foreignKey({
12582
+ name: "fk_room",
12583
+ columns: [table3.roomId],
12584
+ foreignColumns: [roomTable.id]
12585
+ }).onDelete("cascade"),
12586
+ foreignKey({
12587
+ name: "fk_user",
12588
+ columns: [table3.entityId],
12589
+ foreignColumns: [entityTable.id]
12590
+ }).onDelete("cascade")
12591
+ ]);
12592
+ // src/schema/relationship.ts
12593
+ init_drizzle_orm();
12594
+ init_pg_core();
12595
+ init_agent();
12596
+ var relationshipTable = pgTable("relationships", {
12597
+ id: uuid("id").notNull().primaryKey().default(sql`gen_random_uuid()`),
12598
+ createdAt: timestamp("created_at", { withTimezone: true }).default(sql`now()`).notNull(),
12599
+ sourceEntityId: uuid("source_entity_id").notNull().references(() => entityTable.id, { onDelete: "cascade" }),
12600
+ targetEntityId: uuid("target_entity_id").notNull().references(() => entityTable.id, { onDelete: "cascade" }),
12601
+ agentId: uuid("agent_id").notNull().references(() => agentTable.id, { onDelete: "cascade" }),
12602
+ tags: text("tags").array(),
12603
+ metadata: jsonb("metadata").$type()
12604
+ }, (table3) => [
12605
+ index("idx_relationships_users").on(table3.sourceEntityId, table3.targetEntityId),
12606
+ unique("unique_relationship").on(table3.sourceEntityId, table3.targetEntityId, table3.agentId),
12607
+ foreignKey({
12608
+ name: "fk_user_a",
12609
+ columns: [table3.sourceEntityId],
12610
+ foreignColumns: [entityTable.id]
12611
+ }).onDelete("cascade"),
12612
+ foreignKey({
12613
+ name: "fk_user_b",
12614
+ columns: [table3.targetEntityId],
12615
+ foreignColumns: [entityTable.id]
12616
+ }).onDelete("cascade")
12617
+ ]);
12618
+ // src/schema/tasks.ts
12619
+ init_pg_core();
12620
+ init_drizzle_orm();
12621
+ init_agent();
12622
+ var taskTable = pgTable("tasks", {
12623
+ id: uuid("id").primaryKey().defaultRandom(),
12624
+ name: text("name").notNull(),
12625
+ description: text("description"),
12626
+ roomId: uuid("room_id"),
12627
+ worldId: uuid("world_id"),
12628
+ entityId: uuid("entity_id"),
12629
+ agentId: uuid("agent_id").notNull().references(() => agentTable.id, { onDelete: "cascade" }),
12630
+ tags: text("tags").array().default(sql`'{}'::text[]`),
12631
+ metadata: jsonb("metadata").$type().default(sql`'{}'::jsonb`),
12632
+ createdAt: timestamp("created_at", { withTimezone: true }).defaultNow(),
12633
+ updatedAt: timestamp("updated_at", { withTimezone: true }).defaultNow()
12634
+ });
12635
+ // src/schema/messageServer.ts
12636
+ init_pg_core();
12637
+ init_drizzle_orm();
12638
+ var messageServerTable = pgTable("message_servers", {
12639
+ id: uuid("id").primaryKey(),
12640
+ name: text("name").notNull(),
12641
+ sourceType: text("source_type").notNull(),
12642
+ sourceId: text("source_id"),
12643
+ metadata: jsonb("metadata").$type(),
12644
+ createdAt: timestamp("created_at", { mode: "date" }).default(sql`CURRENT_TIMESTAMP`).notNull(),
12645
+ updatedAt: timestamp("updated_at", { mode: "date" }).default(sql`CURRENT_TIMESTAMP`).notNull()
12646
+ });
12647
+ // src/schema/channel.ts
12648
+ init_pg_core();
12649
+ init_drizzle_orm();
12650
+ var channelTable = pgTable("channels", {
12651
+ id: text("id").primaryKey(),
12652
+ messageServerId: uuid("message_server_id").notNull().references(() => messageServerTable.id, { onDelete: "cascade" }),
12653
+ name: text("name").notNull(),
12654
+ type: text("type").notNull(),
12655
+ sourceType: text("source_type"),
12656
+ sourceId: text("source_id"),
12657
+ topic: text("topic"),
12658
+ metadata: jsonb("metadata").$type(),
12659
+ createdAt: timestamp("created_at", { mode: "date" }).default(sql`CURRENT_TIMESTAMP`).notNull(),
12660
+ updatedAt: timestamp("updated_at", { mode: "date" }).default(sql`CURRENT_TIMESTAMP`).notNull()
12661
+ });
12662
+ // src/schema/message.ts
12663
+ init_pg_core();
12664
+ init_drizzle_orm();
12665
+ var messageTable = pgTable("central_messages", {
12666
+ id: text("id").primaryKey(),
12667
+ channelId: text("channel_id").notNull().references(() => channelTable.id, { onDelete: "cascade" }),
12668
+ authorId: text("author_id").notNull(),
12669
+ content: text("content").notNull(),
12670
+ rawMessage: jsonb("raw_message"),
12671
+ inReplyToRootMessageId: text("in_reply_to_root_message_id").references(() => messageTable.id, {
12672
+ onDelete: "set null"
12673
+ }),
12674
+ sourceType: text("source_type"),
12675
+ sourceId: text("source_id"),
12676
+ metadata: jsonb("metadata").$type(),
12677
+ createdAt: timestamp("created_at", { mode: "date" }).default(sql`CURRENT_TIMESTAMP`).notNull(),
12678
+ updatedAt: timestamp("updated_at", { mode: "date" }).default(sql`CURRENT_TIMESTAMP`).notNull()
12679
+ });
12680
+ // src/schema/channelParticipant.ts
12681
+ init_pg_core();
12682
+ var channelParticipantsTable = pgTable("channel_participants", {
12683
+ channelId: text("channel_id").notNull().references(() => channelTable.id, { onDelete: "cascade" }),
12684
+ entityId: text("entity_id").notNull()
12685
+ }, (table3) => [primaryKey({ columns: [table3.channelId, table3.entityId] })]);
12686
+ // src/schema/messageServerAgent.ts
12687
+ init_pg_core();
12688
+ init_agent();
12689
+ var messageServerAgentsTable = pgTable("message_server_agents", {
12690
+ messageServerId: uuid("message_server_id").notNull().references(() => messageServerTable.id, { onDelete: "cascade" }),
12691
+ agentId: uuid("agent_id").notNull().references(() => agentTable.id, { onDelete: "cascade" })
12692
+ }, (table3) => [primaryKey({ columns: [table3.messageServerId, table3.agentId] })]);
12800
12693
  // src/utils.ts
12801
12694
  function sanitizeJsonObject(value, seen = new WeakSet) {
12802
12695
  if (value === null || value === undefined) {
@@ -12827,9 +12720,7 @@ function sanitizeJsonObject(value, seen = new WeakSet) {
12827
12720
 
12828
12721
  // src/stores/agent.store.ts
12829
12722
  init_drizzle_orm();
12830
- init_schema2();
12831
12723
  import { logger as logger2 } from "@elizaos/core";
12832
-
12833
12724
  class AgentStore {
12834
12725
  ctx;
12835
12726
  constructor(ctx) {
@@ -13016,10 +12907,8 @@ class AgentStore {
13016
12907
 
13017
12908
  // src/stores/memory.store.ts
13018
12909
  init_drizzle_orm();
13019
- init_schema2();
13020
12910
  import { logger as logger3 } from "@elizaos/core";
13021
12911
  import { v4 } from "uuid";
13022
-
13023
12912
  class MemoryStore {
13024
12913
  ctx;
13025
12914
  constructor(ctx) {
@@ -13354,9 +13243,7 @@ class MemoryStore {
13354
13243
 
13355
13244
  // src/stores/room.store.ts
13356
13245
  init_drizzle_orm();
13357
- init_schema2();
13358
13246
  import { v4 as v42 } from "uuid";
13359
-
13360
13247
  class RoomStore {
13361
13248
  ctx;
13362
13249
  constructor(ctx) {
@@ -13443,9 +13330,7 @@ class RoomStore {
13443
13330
 
13444
13331
  // src/stores/participant.store.ts
13445
13332
  init_drizzle_orm();
13446
- init_schema2();
13447
13333
  import { logger as logger4 } from "@elizaos/core";
13448
-
13449
13334
  class ParticipantStore {
13450
13335
  ctx;
13451
13336
  constructor(ctx) {
@@ -13580,9 +13465,7 @@ class ParticipantStore {
13580
13465
 
13581
13466
  // src/stores/entity.store.ts
13582
13467
  init_drizzle_orm();
13583
- init_schema2();
13584
13468
  import { logger as logger5 } from "@elizaos/core";
13585
-
13586
13469
  class EntityStore {
13587
13470
  ctx;
13588
13471
  constructor(ctx) {
@@ -13782,8 +13665,6 @@ class EntityStore {
13782
13665
 
13783
13666
  // src/stores/component.store.ts
13784
13667
  init_drizzle_orm();
13785
- init_schema2();
13786
-
13787
13668
  class ComponentStore {
13788
13669
  ctx;
13789
13670
  constructor(ctx) {
@@ -13873,10 +13754,8 @@ class ComponentStore {
13873
13754
 
13874
13755
  // src/stores/relationship.store.ts
13875
13756
  init_drizzle_orm();
13876
- init_schema2();
13877
13757
  import { logger as logger6 } from "@elizaos/core";
13878
13758
  import { v4 as v43 } from "uuid";
13879
-
13880
13759
  class RelationshipStore {
13881
13760
  ctx;
13882
13761
  constructor(ctx) {
@@ -13980,9 +13859,7 @@ class RelationshipStore {
13980
13859
 
13981
13860
  // src/stores/cache.store.ts
13982
13861
  init_drizzle_orm();
13983
- init_schema2();
13984
13862
  import { logger as logger7 } from "@elizaos/core";
13985
-
13986
13863
  class CacheStore {
13987
13864
  ctx;
13988
13865
  constructor(ctx) {
@@ -14055,9 +13932,7 @@ class CacheStore {
14055
13932
 
14056
13933
  // src/stores/world.store.ts
14057
13934
  init_drizzle_orm();
14058
- init_schema2();
14059
13935
  import { v4 as v44 } from "uuid";
14060
-
14061
13936
  class WorldStore {
14062
13937
  ctx;
14063
13938
  constructor(ctx) {
@@ -14103,8 +13978,6 @@ class WorldStore {
14103
13978
 
14104
13979
  // src/stores/task.store.ts
14105
13980
  init_drizzle_orm();
14106
- init_schema2();
14107
-
14108
13981
  class TaskStore {
14109
13982
  ctx;
14110
13983
  constructor(ctx) {
@@ -14214,7 +14087,6 @@ class TaskStore {
14214
14087
 
14215
14088
  // src/stores/log.store.ts
14216
14089
  init_drizzle_orm();
14217
- init_schema2();
14218
14090
  import { logger as logger8 } from "@elizaos/core";
14219
14091
  class LogStore {
14220
14092
  ctx;
@@ -14439,10 +14311,8 @@ class LogStore {
14439
14311
 
14440
14312
  // src/stores/messaging.store.ts
14441
14313
  init_drizzle_orm();
14442
- init_schema2();
14443
14314
  import { ChannelType } from "@elizaos/core";
14444
14315
  import { v4 as v45 } from "uuid";
14445
-
14446
14316
  class MessagingStore {
14447
14317
  ctx;
14448
14318
  constructor(ctx) {
@@ -15189,6 +15059,9 @@ class BaseDrizzleAdapter extends DatabaseAdapter {
15189
15059
  return this.withDatabase(() => this.worldStore.remove(id));
15190
15060
  }
15191
15061
  async createTask(task) {
15062
+ if (!task.worldId) {
15063
+ task = { ...task, worldId: this.agentId };
15064
+ }
15192
15065
  return this.withDatabase(() => this.taskStore.create(task));
15193
15066
  }
15194
15067
  async getTasks(params) {
@@ -15310,45 +15183,9 @@ class BaseDrizzleAdapter extends DatabaseAdapter {
15310
15183
  async deleteMessage(messageId) {
15311
15184
  return this.messagingStore.deleteMessage(messageId);
15312
15185
  }
15313
- async getUserByEmail(email) {
15314
- return this.withDatabase(async () => {
15315
- const { userTable: userTable2 } = await Promise.resolve().then(() => (init_schema2(), exports_schema));
15316
- const rows = await this.db.select().from(userTable2).where(eq(userTable2.email, email.toLowerCase())).limit(1);
15317
- return rows.length > 0 ? rows[0] : null;
15318
- });
15319
- }
15320
- async getUserByUsername(username) {
15321
- return this.withDatabase(async () => {
15322
- const { userTable: userTable2 } = await Promise.resolve().then(() => (init_schema2(), exports_schema));
15323
- const rows = await this.db.select().from(userTable2).where(eq(userTable2.username, username)).limit(1);
15324
- return rows.length > 0 ? rows[0] : null;
15325
- });
15326
- }
15327
- async getUserById(id) {
15328
- return this.withDatabase(async () => {
15329
- const { userTable: userTable2 } = await Promise.resolve().then(() => (init_schema2(), exports_schema));
15330
- const rows = await this.db.select().from(userTable2).where(eq(userTable2.id, id)).limit(1);
15331
- return rows.length > 0 ? rows[0] : null;
15332
- });
15333
- }
15334
- async createUser(user) {
15335
- return this.withDatabase(async () => {
15336
- const { userTable: userTable2 } = await Promise.resolve().then(() => (init_schema2(), exports_schema));
15337
- await this.db.insert(userTable2).values(user);
15338
- return user;
15339
- });
15340
- }
15341
- async updateUserLastLogin(userId) {
15342
- return this.withDatabase(async () => {
15343
- const { userTable: userTable2 } = await Promise.resolve().then(() => (init_schema2(), exports_schema));
15344
- await this.db.update(userTable2).set({ lastLoginAt: new Date }).where(eq(userTable2.id, userId));
15345
- });
15346
- }
15347
15186
  }
15348
15187
 
15349
15188
  // src/pglite/adapter.ts
15350
- init_embedding();
15351
-
15352
15189
  class PgliteDatabaseAdapter extends BaseDrizzleAdapter {
15353
15190
  manager;
15354
15191
  embeddingDimension = DIMENSION_MAP[384];
@@ -15448,8 +15285,6 @@ class PGliteClientManager {
15448
15285
 
15449
15286
  // src/pg/adapter.ts
15450
15287
  import { logger as logger19 } from "@elizaos/core";
15451
- init_embedding();
15452
-
15453
15288
  class PgDatabaseAdapter extends BaseDrizzleAdapter {
15454
15289
  embeddingDimension = DIMENSION_MAP[384];
15455
15290
  manager;
@@ -15511,7 +15346,7 @@ class PgDatabaseAdapter extends BaseDrizzleAdapter {
15511
15346
  }
15512
15347
  }
15513
15348
 
15514
- // ../../node_modules/drizzle-orm/node-postgres/driver.js
15349
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/node-postgres/driver.js
15515
15350
  init_entity();
15516
15351
  init_logger();
15517
15352
  init_db();
@@ -15520,7 +15355,7 @@ init_relations();
15520
15355
  init_utils();
15521
15356
  import pg2 from "pg";
15522
15357
 
15523
- // ../../node_modules/drizzle-orm/node-postgres/session.js
15358
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/node-postgres/session.js
15524
15359
  import pg from "pg";
15525
15360
  init_entity();
15526
15361
  init_logger();
@@ -15726,7 +15561,7 @@ class NodePgTransaction extends PgTransaction {
15726
15561
  }
15727
15562
  }
15728
15563
 
15729
- // ../../node_modules/drizzle-orm/node-postgres/driver.js
15564
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/node-postgres/driver.js
15730
15565
  class NodePgDriver {
15731
15566
  constructor(client, dialect2, options = {}) {
15732
15567
  this.client = client;
@@ -15886,8 +15721,6 @@ class PostgresConnectionManager {
15886
15721
 
15887
15722
  // src/neon/adapter.ts
15888
15723
  import { logger as logger21 } from "@elizaos/core";
15889
- init_embedding();
15890
-
15891
15724
  class NeonDatabaseAdapter extends BaseDrizzleAdapter {
15892
15725
  embeddingDimension = DIMENSION_MAP[384];
15893
15726
  manager;
@@ -15949,7 +15782,7 @@ class NeonDatabaseAdapter extends BaseDrizzleAdapter {
15949
15782
  }
15950
15783
  }
15951
15784
 
15952
- // ../../node_modules/@neondatabase/serverless/index.mjs
15785
+ // ../../node_modules/.bun/@neondatabase+serverless@1.0.2/node_modules/@neondatabase/serverless/index.mjs
15953
15786
  var So = Object.create;
15954
15787
  var Ie = Object.defineProperty;
15955
15788
  var Eo = Object.getOwnPropertyDescriptor;
@@ -20854,7 +20687,7 @@ buffer/index.js:
20854
20687
  *)
20855
20688
  */
20856
20689
 
20857
- // ../../node_modules/drizzle-orm/neon-serverless/driver.js
20690
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/neon-serverless/driver.js
20858
20691
  init_entity();
20859
20692
  init_logger();
20860
20693
  init_db();
@@ -20862,7 +20695,7 @@ init_dialect();
20862
20695
  init_relations();
20863
20696
  init_utils();
20864
20697
 
20865
- // ../../node_modules/drizzle-orm/neon-serverless/session.js
20698
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/neon-serverless/session.js
20866
20699
  init_cache();
20867
20700
  init_entity();
20868
20701
  init_logger();
@@ -21057,7 +20890,7 @@ class NeonTransaction extends PgTransaction {
21057
20890
  }
21058
20891
  }
21059
20892
 
21060
- // ../../node_modules/drizzle-orm/neon-serverless/driver.js
20893
+ // ../../node_modules/.bun/drizzle-orm@0.45.1+fbfb323b6f05e91b/node_modules/drizzle-orm/neon-serverless/driver.js
21061
20894
  class NeonDriver {
21062
20895
  constructor(client, dialect2, options = {}) {
21063
20896
  this.client = client;
@@ -21135,7 +20968,7 @@ function drizzle3(...params) {
21135
20968
  init_drizzle_orm();
21136
20969
  import { logger as logger22, validateUuid as validateUuid3 } from "@elizaos/core";
21137
20970
 
21138
- // ../../node_modules/ws/wrapper.mjs
20971
+ // ../../node_modules/.bun/ws@8.19.0/node_modules/ws/wrapper.mjs
21139
20972
  var import_stream = __toESM(require_stream(), 1);
21140
20973
  var import_receiver = __toESM(require_receiver(), 1);
21141
20974
  var import_sender = __toESM(require_sender(), 1);
@@ -21264,7 +21097,6 @@ function resolvePgliteDir(dir, fallbackDir) {
21264
21097
  }
21265
21098
 
21266
21099
  // src/index.node.ts
21267
- init_schema2();
21268
21100
  init_migration_service();
21269
21101
  init_rls();
21270
21102
  var GLOBAL_SINGLETONS = Symbol.for("@elizaos/plugin-sql/global-singletons");
@@ -21370,5 +21202,5 @@ export {
21370
21202
  DatabaseMigrationService
21371
21203
  };
21372
21204
 
21373
- //# debugId=1548CB132A6A037C64756E2164756E21
21205
+ //# debugId=734C5330F43EC10E64756E2164756E21
21374
21206
  //# sourceMappingURL=index.node.js.map