tempest.games 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/app/assets/index-Cedsqfu2.js +4302 -0
- package/app/index.html +1 -1
- package/bin/backend.bun.js +32349 -32376
- package/bin/backend.worker.bug-rangers.bun.js +980 -363
- package/bin/frontend.bun.js +14 -16
- package/bin/setup-db.bun.js +7 -6
- package/package.json +8 -8
- package/app/assets/index-CHjZDDSa.js +0 -4123
- package/bin/backend.worker.tribunal.bun.js +0 -48825
package/bin/frontend.bun.js
CHANGED
|
@@ -12166,13 +12166,17 @@ var init_internal = __esm(() => {
|
|
|
12166
12166
|
});
|
|
12167
12167
|
|
|
12168
12168
|
// ../../packages/atom.io/dist/realtime/index.js
|
|
12169
|
+
function employSocket(socket, event, handleEvent) {
|
|
12170
|
+
socket.on(event, handleEvent);
|
|
12171
|
+
return socket.off.bind(socket, event, handleEvent);
|
|
12172
|
+
}
|
|
12169
12173
|
function onLoad(loadable, fn2) {
|
|
12170
12174
|
if (loadable instanceof Promise)
|
|
12171
12175
|
loadable.then(fn2);
|
|
12172
12176
|
else
|
|
12173
12177
|
fn2(loadable);
|
|
12174
12178
|
}
|
|
12175
|
-
function
|
|
12179
|
+
function guardSocket(socket, guard, logError) {
|
|
12176
12180
|
if (guard === `TRUST`)
|
|
12177
12181
|
return socket;
|
|
12178
12182
|
return {
|
|
@@ -12204,13 +12208,6 @@ function castSocket(socket, guard, logError) {
|
|
|
12204
12208
|
emit: socket.emit.bind(socket)
|
|
12205
12209
|
};
|
|
12206
12210
|
}
|
|
12207
|
-
function employSocket(socket, event, handleEvent) {
|
|
12208
|
-
socket.on(event, handleEvent);
|
|
12209
|
-
const retireSocket = () => {
|
|
12210
|
-
socket.off(event, handleEvent);
|
|
12211
|
-
};
|
|
12212
|
-
return retireSocket;
|
|
12213
|
-
}
|
|
12214
12211
|
var mutexAtoms, InvariantMap, SyncGroup, isSocketKey = (key) => key.startsWith(`socket::`), isUserKey = (key) => key.startsWith(`user::`), isRoomKey = (key) => key.startsWith(`room::`), roomKeysAtom, usersInRooms, visibleUsersInRoomsSelector, visibilityFromRoomSelector, mutualUsersSelector, ownersOfRooms;
|
|
12215
12212
|
var init_realtime = __esm(() => {
|
|
12216
12213
|
init_main();
|
|
@@ -13030,7 +13027,7 @@ function provideRooms({
|
|
|
13030
13027
|
roomNames,
|
|
13031
13028
|
userKey
|
|
13032
13029
|
}) {
|
|
13033
|
-
const roomSocket =
|
|
13030
|
+
const roomSocket = guardSocket(socket, createRoomSocketGuard(roomNames));
|
|
13034
13031
|
const exposeMutable = realtimeMutableProvider({
|
|
13035
13032
|
socket,
|
|
13036
13033
|
store,
|
|
@@ -13452,7 +13449,7 @@ var init_realtime_server = __esm(() => {
|
|
|
13452
13449
|
init_server_socket_state();
|
|
13453
13450
|
});
|
|
13454
13451
|
|
|
13455
|
-
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.10_arktype@2.1.29_typescript@5.9.3_zod@4.
|
|
13452
|
+
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.10_arktype@2.1.29_typescript@5.9.3_zod@4.3.4/node_modules/@t3-oss/env-core/dist/standard.js
|
|
13456
13453
|
function ensureSynchronous(value2, message) {
|
|
13457
13454
|
if (value2 instanceof Promise)
|
|
13458
13455
|
throw new Error(message);
|
|
@@ -13479,7 +13476,7 @@ function parseWithDictionary(dictionary, value2) {
|
|
|
13479
13476
|
}
|
|
13480
13477
|
var init_standard = () => {};
|
|
13481
13478
|
|
|
13482
|
-
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.10_arktype@2.1.29_typescript@5.9.3_zod@4.
|
|
13479
|
+
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.10_arktype@2.1.29_typescript@5.9.3_zod@4.3.4/node_modules/@t3-oss/env-core/dist/index.js
|
|
13483
13480
|
function createEnv(opts) {
|
|
13484
13481
|
const runtimeEnv = opts.runtimeEnvStrict ?? opts.runtimeEnv ?? process.env;
|
|
13485
13482
|
if (opts.emptyStringAsUndefined ?? false) {
|
|
@@ -13546,7 +13543,7 @@ var init_dist = __esm(() => {
|
|
|
13546
13543
|
});
|
|
13547
13544
|
|
|
13548
13545
|
// src/library/env.ts
|
|
13549
|
-
var BUILDING_WITH_VITE, HAS_WINDOW, IS_SERVER, IS_TEST, str,
|
|
13546
|
+
var BUILDING_WITH_VITE, HAS_WINDOW, IS_SERVER, IS_TEST, str, requiredBool, optionalBool, env2;
|
|
13550
13547
|
var init_env = __esm(() => {
|
|
13551
13548
|
init_dist();
|
|
13552
13549
|
init_out4();
|
|
@@ -13555,7 +13552,8 @@ var init_env = __esm(() => {
|
|
|
13555
13552
|
IS_SERVER = !BUILDING_WITH_VITE && !HAS_WINDOW;
|
|
13556
13553
|
IS_TEST = `vitest` in globalThis;
|
|
13557
13554
|
str = type(`string`);
|
|
13558
|
-
|
|
13555
|
+
requiredBool = type(`"true" | "false"`).pipe((s) => s === `true`);
|
|
13556
|
+
optionalBool = type(`"true" | "false" | undefined`).pipe((s) => s === `true`);
|
|
13559
13557
|
env2 = createEnv({
|
|
13560
13558
|
isServer: IS_SERVER,
|
|
13561
13559
|
server: {
|
|
@@ -13566,7 +13564,7 @@ var init_env = __esm(() => {
|
|
|
13566
13564
|
POSTGRES_HOST: str,
|
|
13567
13565
|
POSTGRES_PORT: str.pipe((s) => Number.parseInt(s, 10)),
|
|
13568
13566
|
BACKEND_PORT: str.pipe((s) => Number.parseInt(s, 10)),
|
|
13569
|
-
RUN_WORKERS_FROM_SOURCE:
|
|
13567
|
+
RUN_WORKERS_FROM_SOURCE: optionalBool,
|
|
13570
13568
|
FRONTEND_PORT: str.pipe((s) => Number.parseInt(s, 10)),
|
|
13571
13569
|
FRONTEND_ORIGINS: str.pipe.try((s) => JSON.parse(s), type(`string[]`)),
|
|
13572
13570
|
API_KEY_OPENAI: type(`string | undefined`),
|
|
@@ -13574,10 +13572,10 @@ var init_env = __esm(() => {
|
|
|
13574
13572
|
},
|
|
13575
13573
|
clientPrefix: `VITE_`,
|
|
13576
13574
|
client: {
|
|
13577
|
-
VITE_HIDE_DEVTOOLS:
|
|
13575
|
+
VITE_HIDE_DEVTOOLS: requiredBool,
|
|
13578
13576
|
VITE_BACKEND_ORIGIN: str,
|
|
13579
13577
|
VITE_DEV_FRONTEND_HOST: type(`string | undefined`),
|
|
13580
|
-
VITE_DEV_HTTPS:
|
|
13578
|
+
VITE_DEV_HTTPS: optionalBool
|
|
13581
13579
|
},
|
|
13582
13580
|
runtimeEnv: import.meta.env,
|
|
13583
13581
|
emptyStringAsUndefined: true
|
package/bin/setup-db.bun.js
CHANGED
|
@@ -5598,7 +5598,7 @@ async function migrate(db, config) {
|
|
|
5598
5598
|
await db.dialect.migrate(migrations, db.session, config);
|
|
5599
5599
|
}
|
|
5600
5600
|
|
|
5601
|
-
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.10_arktype@2.1.29_typescript@5.9.3_zod@4.
|
|
5601
|
+
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.10_arktype@2.1.29_typescript@5.9.3_zod@4.3.4/node_modules/@t3-oss/env-core/dist/standard.js
|
|
5602
5602
|
function ensureSynchronous(value, message) {
|
|
5603
5603
|
if (value instanceof Promise)
|
|
5604
5604
|
throw new Error(message);
|
|
@@ -5624,7 +5624,7 @@ function parseWithDictionary(dictionary, value) {
|
|
|
5624
5624
|
return { value: result };
|
|
5625
5625
|
}
|
|
5626
5626
|
|
|
5627
|
-
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.10_arktype@2.1.29_typescript@5.9.3_zod@4.
|
|
5627
|
+
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.10_arktype@2.1.29_typescript@5.9.3_zod@4.3.4/node_modules/@t3-oss/env-core/dist/index.js
|
|
5628
5628
|
function createEnv(opts) {
|
|
5629
5629
|
const runtimeEnv = opts.runtimeEnvStrict ?? opts.runtimeEnv ?? process.env;
|
|
5630
5630
|
if (opts.emptyStringAsUndefined ?? false) {
|
|
@@ -13900,7 +13900,8 @@ var HAS_WINDOW = typeof window !== `undefined`;
|
|
|
13900
13900
|
var IS_SERVER = !BUILDING_WITH_VITE && !HAS_WINDOW;
|
|
13901
13901
|
var IS_TEST = `vitest` in globalThis;
|
|
13902
13902
|
var str = type(`string`);
|
|
13903
|
-
var
|
|
13903
|
+
var requiredBool = type(`"true" | "false"`).pipe((s) => s === `true`);
|
|
13904
|
+
var optionalBool = type(`"true" | "false" | undefined`).pipe((s) => s === `true`);
|
|
13904
13905
|
var env2 = createEnv({
|
|
13905
13906
|
isServer: IS_SERVER,
|
|
13906
13907
|
server: {
|
|
@@ -13911,7 +13912,7 @@ var env2 = createEnv({
|
|
|
13911
13912
|
POSTGRES_HOST: str,
|
|
13912
13913
|
POSTGRES_PORT: str.pipe((s) => Number.parseInt(s, 10)),
|
|
13913
13914
|
BACKEND_PORT: str.pipe((s) => Number.parseInt(s, 10)),
|
|
13914
|
-
RUN_WORKERS_FROM_SOURCE:
|
|
13915
|
+
RUN_WORKERS_FROM_SOURCE: optionalBool,
|
|
13915
13916
|
FRONTEND_PORT: str.pipe((s) => Number.parseInt(s, 10)),
|
|
13916
13917
|
FRONTEND_ORIGINS: str.pipe.try((s) => JSON.parse(s), type(`string[]`)),
|
|
13917
13918
|
API_KEY_OPENAI: type(`string | undefined`),
|
|
@@ -13919,10 +13920,10 @@ var env2 = createEnv({
|
|
|
13919
13920
|
},
|
|
13920
13921
|
clientPrefix: `VITE_`,
|
|
13921
13922
|
client: {
|
|
13922
|
-
VITE_HIDE_DEVTOOLS:
|
|
13923
|
+
VITE_HIDE_DEVTOOLS: requiredBool,
|
|
13923
13924
|
VITE_BACKEND_ORIGIN: str,
|
|
13924
13925
|
VITE_DEV_FRONTEND_HOST: type(`string | undefined`),
|
|
13925
|
-
VITE_DEV_HTTPS:
|
|
13926
|
+
VITE_DEV_HTTPS: optionalBool
|
|
13926
13927
|
},
|
|
13927
13928
|
runtimeEnv: import.meta.env,
|
|
13928
13929
|
emptyStringAsUndefined: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tempest.games",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"safegen": "0.8.3",
|
|
49
49
|
"socket.io": "4.8.3",
|
|
50
50
|
"socket.io-client": "4.8.3",
|
|
51
|
-
"three": "0.
|
|
51
|
+
"three": "0.182.0",
|
|
52
52
|
"three-stdlib": "2.36.1",
|
|
53
|
-
"atom.io": "0.46.
|
|
53
|
+
"atom.io": "0.46.14",
|
|
54
54
|
"safedeposit": "0.1.2",
|
|
55
55
|
"treetrunks": "0.1.5"
|
|
56
56
|
},
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@types/node": "25.0.3",
|
|
62
62
|
"@types/react": "19.2.7",
|
|
63
63
|
"@types/react-dom": "19.2.3",
|
|
64
|
-
"@types/three": "0.
|
|
64
|
+
"@types/three": "0.182.0",
|
|
65
65
|
"@vitejs/plugin-react": "npm:@vitejs/plugin-react-swc@4.2.2",
|
|
66
66
|
"concurrently": "9.2.1",
|
|
67
67
|
"cors": "2.8.5",
|
|
@@ -70,14 +70,14 @@
|
|
|
70
70
|
"dotenv-cli": "11.0.0",
|
|
71
71
|
"drizzle-kit": "0.31.8",
|
|
72
72
|
"eslint": "9.39.2",
|
|
73
|
-
"globals": "
|
|
73
|
+
"globals": "17.0.0",
|
|
74
74
|
"rimraf": "6.1.2",
|
|
75
75
|
"sass-embedded": "1.97.1",
|
|
76
76
|
"vite": "7.3.0",
|
|
77
77
|
"vite-tsconfig-paths": "6.0.3",
|
|
78
78
|
"vitest": "4.0.16",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
79
|
+
"flightdeck": "0.3.34",
|
|
80
|
+
"varmint": "0.5.11"
|
|
81
81
|
},
|
|
82
82
|
"scripts": {
|
|
83
83
|
"dev": "bun run env:dev && concurrently \"bun:dev:*\"",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"env:dev": "[ -f .env.development ] && echo '.env.development already present' || cp .env.defaults .env.development",
|
|
95
95
|
"env:pre": "[ -f .env.preview ] && echo '.env.preview already present' || cp .env.defaults .env.preview",
|
|
96
96
|
"env:test": "[ -f .env.test ] && echo '.env.test already present' || cp .env.defaults .env.test",
|
|
97
|
-
"env:prod": "[ -f .env.production ] && echo '.env.production already present' || echo 'VITE_BACKEND_ORIGIN=https://realtime.tempest.games' >> .env.production",
|
|
97
|
+
"env:prod": "[ -f .env.production ] && echo '.env.production already present' || echo 'VITE_BACKEND_ORIGIN=https://realtime.tempest.games' >> .env.production && echo 'VITE_HIDE_DEVTOOLS=true' >> .env.production",
|
|
98
98
|
"test": "bun env:test && vitest",
|
|
99
99
|
"test:once": "bun env:test && varmint track && vitest run; varmint clean --ci-flag=CI",
|
|
100
100
|
"lint:biome": "biome check -- .",
|