tempest.games 0.1.35 → 0.1.37

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.
@@ -2,7 +2,7 @@
2
2
  // @bun
3
3
 
4
4
  // __scripts__/interactive-db.bun.ts
5
- import { resolve } from "path";
5
+ import { resolve } from "node:path";
6
6
  var {$ } = globalThis.Bun;
7
7
  var applicationRoot = resolve(import.meta.dir, `..`);
8
8
  var drizzleConfig = resolve(applicationRoot, `drizzle.config.ts`);
@@ -2,12 +2,12 @@
2
2
  // @bun
3
3
 
4
4
  // __scripts__/setup-db.bun.ts
5
- import * as os2 from "os";
6
- import { resolve } from "path";
5
+ import * as os2 from "node:os";
6
+ import { resolve } from "node:path";
7
7
 
8
8
  // ../../node_modules/.pnpm/postgres@3.4.5/node_modules/postgres/src/index.js
9
- import os from "os";
10
- import fs from "fs";
9
+ import os from "node:os";
10
+ import fs from "node:fs";
11
11
 
12
12
  // ../../node_modules/.pnpm/postgres@3.4.5/node_modules/postgres/src/query.js
13
13
  var originCache = new Map;
@@ -472,11 +472,11 @@ var kebab = { ...toKebab };
472
472
  kebab.column.to = fromKebab;
473
473
 
474
474
  // ../../node_modules/.pnpm/postgres@3.4.5/node_modules/postgres/src/connection.js
475
- import net from "net";
476
- import tls from "tls";
477
- import crypto from "crypto";
478
- import Stream from "stream";
479
- import { performance } from "perf_hooks";
475
+ import net from "node:net";
476
+ import tls from "node:tls";
477
+ import crypto from "node:crypto";
478
+ import Stream from "node:stream";
479
+ import { performance } from "node:perf_hooks";
480
480
 
481
481
  // ../../node_modules/.pnpm/postgres@3.4.5/node_modules/postgres/src/result.js
482
482
  class Result extends Array {
@@ -1489,7 +1489,7 @@ function parseEvent(x) {
1489
1489
  }
1490
1490
 
1491
1491
  // ../../node_modules/.pnpm/postgres@3.4.5/node_modules/postgres/src/large.js
1492
- import Stream2 from "stream";
1492
+ import Stream2 from "node:stream";
1493
1493
  function largeObject(sql, oid, mode = 131072 | 262144) {
1494
1494
  return new Promise(async (resolve, reject) => {
1495
1495
  await sql.begin(async (sql2) => {
@@ -1947,7 +1947,7 @@ function osUsername() {
1947
1947
  }
1948
1948
  }
1949
1949
 
1950
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/entity.js
1950
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/entity.js
1951
1951
  var entityKind = Symbol.for("drizzle:entityKind");
1952
1952
  var hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
1953
1953
  function is(value, type) {
@@ -1972,7 +1972,7 @@ function is(value, type) {
1972
1972
  return false;
1973
1973
  }
1974
1974
 
1975
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/logger.js
1975
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/logger.js
1976
1976
  class ConsoleLogWriter {
1977
1977
  static [entityKind] = "ConsoleLogWriter";
1978
1978
  write(message) {
@@ -2004,7 +2004,7 @@ class NoopLogger {
2004
2004
  logQuery() {}
2005
2005
  }
2006
2006
 
2007
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/query-promise.js
2007
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/query-promise.js
2008
2008
  class QueryPromise {
2009
2009
  static [entityKind] = "QueryPromise";
2010
2010
  [Symbol.toStringTag] = "QueryPromise";
@@ -2025,7 +2025,7 @@ class QueryPromise {
2025
2025
  }
2026
2026
  }
2027
2027
 
2028
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/column.js
2028
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/column.js
2029
2029
  class Column {
2030
2030
  constructor(table, config) {
2031
2031
  this.table = table;
@@ -2075,20 +2075,20 @@ class Column {
2075
2075
  }
2076
2076
  }
2077
2077
 
2078
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/table.utils.js
2078
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/table.utils.js
2079
2079
  var TableName = Symbol.for("drizzle:Name");
2080
2080
 
2081
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/tracing-utils.js
2081
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/tracing-utils.js
2082
2082
  function iife(fn, ...args) {
2083
2083
  return fn(...args);
2084
2084
  }
2085
2085
 
2086
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/unique-constraint.js
2086
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/unique-constraint.js
2087
2087
  function uniqueKeyName(table, columns) {
2088
2088
  return `${table[TableName]}_${columns.join("_")}_unique`;
2089
2089
  }
2090
2090
 
2091
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/common.js
2091
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/common.js
2092
2092
  class PgColumn extends Column {
2093
2093
  constructor(table, config) {
2094
2094
  if (!config.uniqueName) {
@@ -2137,7 +2137,7 @@ class ExtraConfigColumn extends PgColumn {
2137
2137
  }
2138
2138
  }
2139
2139
 
2140
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/enum.js
2140
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/enum.js
2141
2141
  var isPgEnumSym = Symbol.for("drizzle:isPgEnum");
2142
2142
  function isPgEnum(obj) {
2143
2143
  return !!obj && typeof obj === "function" && isPgEnumSym in obj && obj[isPgEnumSym] === true;
@@ -2155,7 +2155,7 @@ class PgEnumColumn extends PgColumn {
2155
2155
  }
2156
2156
  }
2157
2157
 
2158
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/subquery.js
2158
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/subquery.js
2159
2159
  class Subquery {
2160
2160
  static [entityKind] = "Subquery";
2161
2161
  constructor(sql, selection, alias, isWith = false) {
@@ -2173,10 +2173,10 @@ class WithSubquery extends Subquery {
2173
2173
  static [entityKind] = "WithSubquery";
2174
2174
  }
2175
2175
 
2176
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/version.js
2177
- var version = "0.40.0";
2176
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/version.js
2177
+ var version = "0.41.0";
2178
2178
 
2179
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/tracing.js
2179
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/tracing.js
2180
2180
  var otel;
2181
2181
  var rawTracer;
2182
2182
  var tracer = {
@@ -2203,10 +2203,10 @@ var tracer = {
2203
2203
  }
2204
2204
  };
2205
2205
 
2206
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/view-common.js
2206
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/view-common.js
2207
2207
  var ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
2208
2208
 
2209
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/table.js
2209
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/table.js
2210
2210
  var Schema = Symbol.for("drizzle:Schema");
2211
2211
  var Columns = Symbol.for("drizzle:Columns");
2212
2212
  var ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
@@ -2250,7 +2250,7 @@ function getTableUniqueName(table) {
2250
2250
  return `${table[Schema] ?? "public"}.${table[TableName]}`;
2251
2251
  }
2252
2252
 
2253
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/sql/sql.js
2253
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/sql/sql.js
2254
2254
  function isSQLWrapper(value) {
2255
2255
  return value !== null && value !== undefined && typeof value.getSQL === "function";
2256
2256
  }
@@ -2623,7 +2623,7 @@ Subquery.prototype.getSQL = function() {
2623
2623
  return new SQL([this]);
2624
2624
  };
2625
2625
 
2626
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/alias.js
2626
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/alias.js
2627
2627
  class ColumnAliasProxyHandler {
2628
2628
  constructor(table) {
2629
2629
  this.table = table;
@@ -2702,7 +2702,7 @@ function mapColumnsInSQLToAlias(query, alias) {
2702
2702
  }));
2703
2703
  }
2704
2704
 
2705
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/selection-proxy.js
2705
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/selection-proxy.js
2706
2706
  class SelectionProxyHandler {
2707
2707
  static [entityKind] = "SelectionProxyHandler";
2708
2708
  config;
@@ -2754,7 +2754,7 @@ class SelectionProxyHandler {
2754
2754
  }
2755
2755
  }
2756
2756
 
2757
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/utils.js
2757
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/utils.js
2758
2758
  function mapResultRow(columns, row, joinsNotNullableMap) {
2759
2759
  const nullifyMap = {};
2760
2760
  const result = columns.reduce((result2, { path, field }, columnIndex) => {
@@ -2866,13 +2866,13 @@ function isConfig(data) {
2866
2866
  return true;
2867
2867
  }
2868
2868
  if ("schema" in data) {
2869
- const type = typeof data["logger"];
2869
+ const type = typeof data["schema"];
2870
2870
  if (type !== "object" && type !== "undefined")
2871
2871
  return false;
2872
2872
  return true;
2873
2873
  }
2874
2874
  if ("casing" in data) {
2875
- const type = typeof data["logger"];
2875
+ const type = typeof data["casing"];
2876
2876
  if (type !== "string" && type !== "undefined")
2877
2877
  return false;
2878
2878
  return true;
@@ -2899,7 +2899,7 @@ function isConfig(data) {
2899
2899
  return false;
2900
2900
  }
2901
2901
 
2902
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/delete.js
2902
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/delete.js
2903
2903
  class PgDeleteBase extends QueryPromise {
2904
2904
  constructor(table, session, dialect, withList) {
2905
2905
  super();
@@ -2955,7 +2955,7 @@ class PgDeleteBase extends QueryPromise {
2955
2955
  }
2956
2956
  }
2957
2957
 
2958
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/casing.js
2958
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/casing.js
2959
2959
  function toSnakeCase(input) {
2960
2960
  const words = input.replace(/['\u2019]/g, "").match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g) ?? [];
2961
2961
  return words.map((word) => word.toLowerCase()).join("_");
@@ -3008,7 +3008,7 @@ class CasingCache {
3008
3008
  }
3009
3009
  }
3010
3010
 
3011
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/errors.js
3011
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/errors.js
3012
3012
  class DrizzleError extends Error {
3013
3013
  static [entityKind] = "DrizzleError";
3014
3014
  constructor({ message, cause }) {
@@ -3025,7 +3025,7 @@ class TransactionRollbackError extends DrizzleError {
3025
3025
  }
3026
3026
  }
3027
3027
 
3028
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/date.js
3028
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/date.js
3029
3029
  class PgDate extends PgColumn {
3030
3030
  static [entityKind] = "PgDate";
3031
3031
  getSQLType() {
@@ -3045,7 +3045,7 @@ class PgDateString extends PgColumn {
3045
3045
  }
3046
3046
  }
3047
3047
 
3048
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/json.js
3048
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/json.js
3049
3049
  class PgJson extends PgColumn {
3050
3050
  static [entityKind] = "PgJson";
3051
3051
  constructor(table, config) {
@@ -3069,7 +3069,7 @@ class PgJson extends PgColumn {
3069
3069
  }
3070
3070
  }
3071
3071
 
3072
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/jsonb.js
3072
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/jsonb.js
3073
3073
  class PgJsonb extends PgColumn {
3074
3074
  static [entityKind] = "PgJsonb";
3075
3075
  constructor(table, config) {
@@ -3093,7 +3093,7 @@ class PgJsonb extends PgColumn {
3093
3093
  }
3094
3094
  }
3095
3095
 
3096
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/numeric.js
3096
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/numeric.js
3097
3097
  class PgNumeric extends PgColumn {
3098
3098
  static [entityKind] = "PgNumeric";
3099
3099
  precision;
@@ -3103,6 +3103,11 @@ class PgNumeric extends PgColumn {
3103
3103
  this.precision = config.precision;
3104
3104
  this.scale = config.scale;
3105
3105
  }
3106
+ mapFromDriverValue(value) {
3107
+ if (typeof value === "string")
3108
+ return value;
3109
+ return String(value);
3110
+ }
3106
3111
  getSQLType() {
3107
3112
  if (this.precision !== undefined && this.scale !== undefined) {
3108
3113
  return `numeric(${this.precision}, ${this.scale})`;
@@ -3114,7 +3119,7 @@ class PgNumeric extends PgColumn {
3114
3119
  }
3115
3120
  }
3116
3121
 
3117
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/time.js
3122
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/time.js
3118
3123
  class PgTime extends PgColumn {
3119
3124
  static [entityKind] = "PgTime";
3120
3125
  withTimezone;
@@ -3130,7 +3135,7 @@ class PgTime extends PgColumn {
3130
3135
  }
3131
3136
  }
3132
3137
 
3133
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/timestamp.js
3138
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/timestamp.js
3134
3139
  class PgTimestamp extends PgColumn {
3135
3140
  static [entityKind] = "PgTimestamp";
3136
3141
  withTimezone;
@@ -3166,7 +3171,7 @@ class PgTimestampString extends PgColumn {
3166
3171
  }
3167
3172
  }
3168
3173
 
3169
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/uuid.js
3174
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/columns/uuid.js
3170
3175
  class PgUUID extends PgColumn {
3171
3176
  static [entityKind] = "PgUUID";
3172
3177
  getSQLType() {
@@ -3174,7 +3179,7 @@ class PgUUID extends PgColumn {
3174
3179
  }
3175
3180
  }
3176
3181
 
3177
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/table.js
3182
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/table.js
3178
3183
  var InlineForeignKeys = Symbol.for("drizzle:PgInlineForeignKeys");
3179
3184
  var EnableRLS = Symbol.for("drizzle:EnableRLS");
3180
3185
 
@@ -3190,7 +3195,7 @@ class PgTable extends Table {
3190
3195
  [Table.Symbol.ExtraConfigColumns] = {};
3191
3196
  }
3192
3197
 
3193
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/primary-keys.js
3198
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/primary-keys.js
3194
3199
  class PrimaryKeyBuilder {
3195
3200
  static [entityKind] = "PgPrimaryKeyBuilder";
3196
3201
  columns;
@@ -3218,7 +3223,7 @@ class PrimaryKey {
3218
3223
  }
3219
3224
  }
3220
3225
 
3221
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/sql/expressions/conditions.js
3226
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/sql/expressions/conditions.js
3222
3227
  function bindIfParam(value, column) {
3223
3228
  if (isDriverValueEncoder(column) && !isSQLWrapper(value) && !is(value, Param) && !is(value, Placeholder) && !is(value, Column) && !is(value, Table) && !is(value, View)) {
3224
3229
  return new Param(value, column);
@@ -3323,7 +3328,7 @@ function notIlike(column, value) {
3323
3328
  return sql`${column} not ilike ${value}`;
3324
3329
  }
3325
3330
 
3326
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/sql/expressions/select.js
3331
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/sql/expressions/select.js
3327
3332
  function asc(column) {
3328
3333
  return sql`${column} asc`;
3329
3334
  }
@@ -3331,7 +3336,7 @@ function desc(column) {
3331
3336
  return sql`${column} desc`;
3332
3337
  }
3333
3338
 
3334
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/relations.js
3339
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/relations.js
3335
3340
  class Relation {
3336
3341
  constructor(sourceTable, referencedTable, relationName) {
3337
3342
  this.sourceTable = sourceTable;
@@ -3551,12 +3556,12 @@ function mapRelationalRow(tablesConfig, tableConfig, row, buildQueryResultSelect
3551
3556
  return result;
3552
3557
  }
3553
3558
 
3554
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/view-base.js
3559
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/view-base.js
3555
3560
  class PgViewBase extends View {
3556
3561
  static [entityKind] = "PgViewBase";
3557
3562
  }
3558
3563
 
3559
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/dialect.js
3564
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/dialect.js
3560
3565
  class PgDialect {
3561
3566
  static [entityKind] = "PgDialect";
3562
3567
  casing;
@@ -3712,7 +3717,7 @@ class PgDialect {
3712
3717
  return sql.join(joinsArray);
3713
3718
  }
3714
3719
  buildFromTable(table) {
3715
- if (is(table, Table) && table[Table.Symbol.OriginalName] !== table[Table.Symbol.Name]) {
3720
+ if (is(table, Table) && table[Table.Symbol.IsAlias]) {
3716
3721
  let fullName = sql`${sql.identifier(table[Table.Symbol.OriginalName])}`;
3717
3722
  if (table[Table.Symbol.Schema]) {
3718
3723
  fullName = sql`${sql.identifier(table[Table.Symbol.Schema])}.${fullName}`;
@@ -4113,7 +4118,7 @@ class PgDialect {
4113
4118
  }
4114
4119
  }
4115
4120
 
4116
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/query-builders/query-builder.js
4121
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/query-builders/query-builder.js
4117
4122
  class TypedQueryBuilder {
4118
4123
  static [entityKind] = "TypedQueryBuilder";
4119
4124
  getSelectedFields() {
@@ -4121,7 +4126,7 @@ class TypedQueryBuilder {
4121
4126
  }
4122
4127
  }
4123
4128
 
4124
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/select.js
4129
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/select.js
4125
4130
  class PgSelectBuilder {
4126
4131
  static [entityKind] = "PgSelectBuilder";
4127
4132
  fields;
@@ -4410,7 +4415,7 @@ var intersectAll = createSetOperator("intersect", true);
4410
4415
  var except = createSetOperator("except", false);
4411
4416
  var exceptAll = createSetOperator("except", true);
4412
4417
 
4413
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/query-builder.js
4418
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/query-builder.js
4414
4419
  class QueryBuilder {
4415
4420
  static [entityKind] = "PgQueryBuilder";
4416
4421
  dialect;
@@ -4488,7 +4493,7 @@ class QueryBuilder {
4488
4493
  }
4489
4494
  }
4490
4495
 
4491
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/insert.js
4496
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/insert.js
4492
4497
  class PgInsertBuilder {
4493
4498
  constructor(table, session, dialect, withList, overridingSystemValue_) {
4494
4499
  this.table = table;
@@ -4607,7 +4612,7 @@ class PgInsertBase extends QueryPromise {
4607
4612
  }
4608
4613
  }
4609
4614
 
4610
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/refresh-materialized-view.js
4615
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/refresh-materialized-view.js
4611
4616
  class PgRefreshMaterializedView extends QueryPromise {
4612
4617
  constructor(view, session, dialect) {
4613
4618
  super();
@@ -4658,7 +4663,7 @@ class PgRefreshMaterializedView extends QueryPromise {
4658
4663
  };
4659
4664
  }
4660
4665
 
4661
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/update.js
4666
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/update.js
4662
4667
  class PgUpdateBuilder {
4663
4668
  constructor(table, session, dialect, withList) {
4664
4669
  this.table = table;
@@ -4808,7 +4813,7 @@ class PgUpdateBase extends QueryPromise {
4808
4813
  }
4809
4814
  }
4810
4815
 
4811
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/count.js
4816
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/count.js
4812
4817
  class PgCountBuilder extends SQL {
4813
4818
  constructor(params) {
4814
4819
  super(PgCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
@@ -4849,7 +4854,7 @@ class PgCountBuilder extends SQL {
4849
4854
  }
4850
4855
  }
4851
4856
 
4852
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/query.js
4857
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/query.js
4853
4858
  class RelationalQueryBuilder {
4854
4859
  constructor(fullSchema, schema, tableNamesMap, table, tableConfig, dialect, session) {
4855
4860
  this.fullSchema = fullSchema;
@@ -4932,7 +4937,7 @@ class PgRelationalQuery extends QueryPromise {
4932
4937
  }
4933
4938
  }
4934
4939
 
4935
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/raw.js
4940
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/query-builders/raw.js
4936
4941
  class PgRaw extends QueryPromise {
4937
4942
  constructor(execute, sql2, query, mapBatchResult) {
4938
4943
  super();
@@ -4959,7 +4964,7 @@ class PgRaw extends QueryPromise {
4959
4964
  }
4960
4965
  }
4961
4966
 
4962
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/db.js
4967
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/db.js
4963
4968
  class PgDatabase {
4964
4969
  constructor(dialect, session, schema) {
4965
4970
  this.dialect = dialect;
@@ -5083,7 +5088,7 @@ class PgDatabase {
5083
5088
  }
5084
5089
  }
5085
5090
 
5086
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/session.js
5091
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/pg-core/session.js
5087
5092
  class PgPreparedQuery {
5088
5093
  constructor(query) {
5089
5094
  this.query = query;
@@ -5153,7 +5158,7 @@ class PgTransaction extends PgDatabase {
5153
5158
  }
5154
5159
  }
5155
5160
 
5156
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/postgres-js/session.js
5161
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/postgres-js/session.js
5157
5162
  class PostgresJsPreparedQuery extends PgPreparedQuery {
5158
5163
  constructor(client, queryString, params, logger, fields, _isResponseInArrayMode, customResultMapper) {
5159
5164
  super({ sql: queryString, params });
@@ -5261,13 +5266,13 @@ class PostgresJsTransaction extends PgTransaction {
5261
5266
  }
5262
5267
  }
5263
5268
 
5264
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/postgres-js/driver.js
5269
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/postgres-js/driver.js
5265
5270
  class PostgresJsDatabase extends PgDatabase {
5266
5271
  static [entityKind] = "PostgresJsDatabase";
5267
5272
  }
5268
5273
  function construct(client, config = {}) {
5269
5274
  const transparentParser = (val) => val;
5270
- for (const type of ["1184", "1082", "1083", "1114"]) {
5275
+ for (const type of ["1184", "1082", "1083", "1114", "1182", "1185", "1115", "1231"]) {
5271
5276
  client.options.parsers[type] = transparentParser;
5272
5277
  client.options.serializers[type] = transparentParser;
5273
5278
  }
@@ -5325,9 +5330,9 @@ function drizzle(...params) {
5325
5330
  drizzle2.mock = mock;
5326
5331
  })(drizzle || (drizzle = {}));
5327
5332
 
5328
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/migrator.js
5329
- import crypto2 from "crypto";
5330
- import fs2 from "fs";
5333
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/migrator.js
5334
+ import crypto2 from "node:crypto";
5335
+ import fs2 from "node:fs";
5331
5336
  function readMigrationFiles(config) {
5332
5337
  const migrationFolderTo = config.migrationsFolder;
5333
5338
  const migrationQueries = [];
@@ -5357,7 +5362,7 @@ function readMigrationFiles(config) {
5357
5362
  return migrationQueries;
5358
5363
  }
5359
5364
 
5360
- // ../../node_modules/.pnpm/drizzle-orm@0.40.0_@cloudflare+workers-types@4.20250313.0_bun-types@1.2.5_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/postgres-js/migrator.js
5365
+ // ../../node_modules/.pnpm/drizzle-orm@0.41.0_@cloudflare+workers-types@4.20250327.0_bun-types@1.2.8_gel@2.0.0_postgres@3.4.5/node_modules/drizzle-orm/postgres-js/migrator.js
5361
5366
  async function migrate(db, config) {
5362
5367
  const migrations = readMigrationFiles(config);
5363
5368
  await db.dialect.migrate(migrations, db.session, config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tempest.games",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -26,46 +26,46 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@t3-oss/env-core": "0.12.0",
29
- "cron": "4.1.0",
30
- "drizzle-orm": "0.40.0",
31
- "openai": "4.87.3",
29
+ "cron": "4.1.3",
30
+ "drizzle-orm": "0.41.0",
31
+ "openai": "4.91.0",
32
32
  "postgres": "3.4.5",
33
- "react": "19.0.0",
34
- "react-dom": "19.0.0",
33
+ "react": "19.1.0",
34
+ "react-dom": "19.1.0",
35
35
  "safegen": "0.2.12",
36
36
  "socket.io": "4.8.1",
37
37
  "socket.io-client": "4.8.1",
38
38
  "zod": "3.24.2",
39
- "zod-to-json-schema": "3.24.4",
39
+ "zod-to-json-schema": "3.24.5",
40
40
  "atom.io": "0.32.3",
41
41
  "safedeposit": "0.1.0",
42
- "treetrunks": "0.0.5"
42
+ "treetrunks": "0.1.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@eslint/js": "9.22.0",
46
- "@types/node": "22.13.10",
47
- "@types/react": "19.0.10",
45
+ "@eslint/js": "9.23.0",
46
+ "@types/node": "22.13.15",
47
+ "@types/react": "19.0.12",
48
48
  "@types/react-dom": "19.0.4",
49
- "@vitejs/plugin-react-swc": "3.8.0",
50
- "bun-types": "1.2.5",
49
+ "@vitejs/plugin-react-swc": "3.8.1",
50
+ "bun-types": "1.2.8",
51
51
  "concurrently": "9.1.2",
52
52
  "cross-env": "7.0.3",
53
53
  "dotenv": "16.4.7",
54
54
  "dotenv-cli": "8.0.0",
55
- "drizzle-kit": "0.30.5",
56
- "eslint": "9.22.0",
55
+ "drizzle-kit": "0.30.6",
56
+ "eslint": "9.23.0",
57
57
  "eslint-plugin-react-refresh": "0.4.19",
58
58
  "globals": "16.0.0",
59
59
  "rimraf": "6.0.1",
60
- "sass-embedded": "1.85.1",
60
+ "sass-embedded": "1.86.1",
61
61
  "tsx": "4.19.3",
62
62
  "typescript": "5.8.2",
63
- "typescript-eslint": "8.26.1",
64
- "vite": "6.2.2",
63
+ "typescript-eslint": "8.29.0",
64
+ "vite": "6.2.4",
65
65
  "vite-tsconfig-paths": "5.1.4",
66
- "vitest": "3.0.8",
67
- "flightdeck": "0.2.20",
68
- "varmint": "0.4.4"
66
+ "vitest": "3.1.1",
67
+ "flightdeck": "0.2.22",
68
+ "varmint": "0.4.6"
69
69
  },
70
70
  "scripts": {
71
71
  "dev": "bun run env:dev && concurrently \"bun:dev:*\"",