2025-07-13 20:09:08.973 | 2025-07-13 20:09:08.973 | ===================================== 2025-07-13 20:09:08.974 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:09:08.974 | ===================================== 2025-07-13 20:09:08.974 | 2025-07-13 20:09:09.563 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:09:09.563 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:09:09.701 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:09:09.701 | 2025-07-13 20:09:09.701 | ===================================== 2025-07-13 20:09:09.701 | STARTING SERVER 2025-07-13 20:09:09.701 | ===================================== 2025-07-13 20:09:09.701 | 2025-07-13 20:09:09.703 | Server starting at Sun Jul 13 19:09:09 UTC 2025 2025-07-13 20:09:09.783 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:09:09.783 | { 2025-07-13 20:09:09.783 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:09:09.783 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:09:09.783 | PORT: 5123, 2025-07-13 20:09:09.783 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:09:09.783 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:09:09.783 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:09:09.783 | SERVER_MODE: "individual", 2025-07-13 20:09:09.783 | } 2025-07-13 20:09:09.808 | 2 | // @bun 2025-07-13 20:09:09.808 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:09:09.808 | 4 | `).slice(1).join(` 2025-07-13 20:09:09.808 | 5 | `);return err.stack+=` 2025-07-13 20:09:09.808 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:09:09.808 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:09:09.808 | 2025-07-13 20:09:09.808 | TypeError: not enough arguments 2025-07-13 20:09:09.808 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:09:09.808 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:09:09.808 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:09:09.808 | at /$bunfs/root/server:178:154285 2025-07-13 20:09:09.808 | at loadAndEvaluateModule (1:11) 2025-07-13 20:09:09.808 | 2025-07-13 20:09:09.808 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:09:10.817 | 2025-07-13 20:09:10.817 | ===================================== 2025-07-13 20:09:10.817 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:09:10.817 | ===================================== 2025-07-13 20:09:10.817 | 2025-07-13 20:09:11.160 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:09:11.160 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:09:11.269 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:09:11.269 | 2025-07-13 20:09:11.269 | ===================================== 2025-07-13 20:09:11.269 | STARTING SERVER 2025-07-13 20:09:11.269 | ===================================== 2025-07-13 20:09:11.269 | 2025-07-13 20:09:11.270 | Server starting at Sun Jul 13 19:09:11 UTC 2025 2025-07-13 20:09:11.337 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:09:11.337 | { 2025-07-13 20:09:11.337 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:09:11.337 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:09:11.337 | PORT: 5123, 2025-07-13 20:09:11.337 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:09:11.337 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:09:11.337 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:09:11.337 | SERVER_MODE: "individual", 2025-07-13 20:09:11.337 | } 2025-07-13 20:09:11.362 | 2 | // @bun 2025-07-13 20:09:11.362 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:09:11.362 | 4 | `).slice(1).join(` 2025-07-13 20:09:11.362 | 5 | `);return err.stack+=` 2025-07-13 20:09:11.362 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:09:11.362 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:09:11.362 | 2025-07-13 20:09:11.362 | TypeError: not enough arguments 2025-07-13 20:09:11.362 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:09:11.362 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:09:11.362 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:09:11.362 | at /$bunfs/root/server:178:154285 2025-07-13 20:09:11.362 | at loadAndEvaluateModule (1:11) 2025-07-13 20:09:11.362 | 2025-07-13 20:09:11.362 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:09:12.258 | 2025-07-13 20:09:12.258 | ===================================== 2025-07-13 20:09:12.258 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:09:12.258 | ===================================== 2025-07-13 20:09:12.258 | 2025-07-13 20:09:12.564 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:09:12.564 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:09:12.670 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:09:12.670 | 2025-07-13 20:09:12.670 | ===================================== 2025-07-13 20:09:12.670 | STARTING SERVER 2025-07-13 20:09:12.670 | ===================================== 2025-07-13 20:09:12.670 | 2025-07-13 20:09:12.671 | Server starting at Sun Jul 13 19:09:12 UTC 2025 2025-07-13 20:09:12.733 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:09:12.733 | { 2025-07-13 20:09:12.733 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:09:12.733 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:09:12.733 | PORT: 5123, 2025-07-13 20:09:12.733 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:09:12.733 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:09:12.733 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:09:12.733 | SERVER_MODE: "individual", 2025-07-13 20:09:12.733 | } 2025-07-13 20:09:12.755 | 2 | // @bun 2025-07-13 20:09:12.755 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:09:12.755 | 4 | `).slice(1).join(` 2025-07-13 20:09:12.755 | 5 | `);return err.stack+=` 2025-07-13 20:09:12.755 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:09:12.755 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:09:12.755 | 2025-07-13 20:09:12.755 | TypeError: not enough arguments 2025-07-13 20:09:12.755 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:09:12.755 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:09:12.755 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:09:12.755 | at /$bunfs/root/server:178:154285 2025-07-13 20:09:12.755 | at loadAndEvaluateModule (1:11) 2025-07-13 20:09:12.755 | 2025-07-13 20:09:12.755 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:09:13.720 | 2025-07-13 20:09:13.720 | ===================================== 2025-07-13 20:09:13.720 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:09:13.720 | ===================================== 2025-07-13 20:09:13.720 | 2025-07-13 20:09:13.966 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:09:13.966 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:09:14.049 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:09:14.049 | 2025-07-13 20:09:14.049 | ===================================== 2025-07-13 20:09:14.049 | STARTING SERVER 2025-07-13 20:09:14.049 | ===================================== 2025-07-13 20:09:14.049 | 2025-07-13 20:09:14.050 | Server starting at Sun Jul 13 19:09:14 UTC 2025 2025-07-13 20:09:14.110 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:09:14.110 | { 2025-07-13 20:09:14.110 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:09:14.110 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:09:14.110 | PORT: 5123, 2025-07-13 20:09:14.110 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:09:14.110 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:09:14.110 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:09:14.110 | SERVER_MODE: "individual", 2025-07-13 20:09:14.110 | } 2025-07-13 20:09:14.133 | 2 | // @bun 2025-07-13 20:09:14.133 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:09:14.133 | 4 | `).slice(1).join(` 2025-07-13 20:09:14.133 | 5 | `);return err.stack+=` 2025-07-13 20:09:14.133 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:09:14.133 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:09:14.133 | 2025-07-13 20:09:14.133 | TypeError: not enough arguments 2025-07-13 20:09:14.133 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:09:14.133 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:09:14.133 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:09:14.133 | at /$bunfs/root/server:178:154285 2025-07-13 20:09:14.133 | at loadAndEvaluateModule (1:11) 2025-07-13 20:09:14.133 | 2025-07-13 20:09:14.133 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:09:15.178 | 2025-07-13 20:09:15.178 | ===================================== 2025-07-13 20:09:15.178 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:09:15.178 | ===================================== 2025-07-13 20:09:15.178 | 2025-07-13 20:09:15.464 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:09:15.464 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:09:15.557 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:09:15.557 | 2025-07-13 20:09:15.557 | ===================================== 2025-07-13 20:09:15.557 | STARTING SERVER 2025-07-13 20:09:15.557 | ===================================== 2025-07-13 20:09:15.557 | 2025-07-13 20:09:15.558 | Server starting at Sun Jul 13 19:09:15 UTC 2025 2025-07-13 20:09:15.618 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:09:15.618 | { 2025-07-13 20:09:15.618 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:09:15.618 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:09:15.618 | PORT: 5123, 2025-07-13 20:09:15.618 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:09:15.618 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:09:15.618 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:09:15.618 | SERVER_MODE: "individual", 2025-07-13 20:09:15.618 | } 2025-07-13 20:09:15.643 | 2 | // @bun 2025-07-13 20:09:15.643 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:09:15.643 | 4 | `).slice(1).join(` 2025-07-13 20:09:15.643 | 5 | `);return err.stack+=` 2025-07-13 20:09:15.643 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:09:15.643 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:09:15.643 | 2025-07-13 20:09:15.643 | TypeError: not enough arguments 2025-07-13 20:09:15.643 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:09:15.643 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:09:15.643 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:09:15.643 | at /$bunfs/root/server:178:154285 2025-07-13 20:09:15.643 | at loadAndEvaluateModule (1:11) 2025-07-13 20:09:15.643 | 2025-07-13 20:09:15.643 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:09:17.482 | 2025-07-13 20:09:17.482 | ===================================== 2025-07-13 20:09:17.482 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:09:17.482 | ===================================== 2025-07-13 20:09:17.482 | 2025-07-13 20:09:17.761 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:09:17.761 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:09:17.858 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:09:17.858 | 2025-07-13 20:09:17.858 | ===================================== 2025-07-13 20:09:17.858 | STARTING SERVER 2025-07-13 20:09:17.858 | ===================================== 2025-07-13 20:09:17.858 | 2025-07-13 20:09:17.859 | Server starting at Sun Jul 13 19:09:17 UTC 2025 2025-07-13 20:09:17.918 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:09:17.918 | { 2025-07-13 20:09:17.918 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:09:17.918 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:09:17.918 | PORT: 5123, 2025-07-13 20:09:17.918 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:09:17.918 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:09:17.918 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:09:17.918 | SERVER_MODE: "individual", 2025-07-13 20:09:17.918 | } 2025-07-13 20:09:17.941 | 2 | // @bun 2025-07-13 20:09:17.941 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:09:17.941 | 4 | `).slice(1).join(` 2025-07-13 20:09:17.941 | 5 | `);return err.stack+=` 2025-07-13 20:09:17.941 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:09:17.941 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:09:17.941 | 2025-07-13 20:09:17.941 | TypeError: not enough arguments 2025-07-13 20:09:17.941 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:09:17.941 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:09:17.941 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:09:17.941 | at /$bunfs/root/server:178:154285 2025-07-13 20:09:17.941 | at loadAndEvaluateModule (1:11) 2025-07-13 20:09:17.941 | 2025-07-13 20:09:17.941 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:09:21.357 | 2025-07-13 20:09:21.357 | ===================================== 2025-07-13 20:09:21.357 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:09:21.357 | ===================================== 2025-07-13 20:09:21.357 | 2025-07-13 20:09:21.612 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:09:21.612 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:09:21.702 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:09:21.702 | 2025-07-13 20:09:21.702 | ===================================== 2025-07-13 20:09:21.702 | STARTING SERVER 2025-07-13 20:09:21.702 | ===================================== 2025-07-13 20:09:21.702 | 2025-07-13 20:09:21.703 | Server starting at Sun Jul 13 19:09:21 UTC 2025 2025-07-13 20:09:21.764 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:09:21.764 | { 2025-07-13 20:09:21.764 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:09:21.764 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:09:21.764 | PORT: 5123, 2025-07-13 20:09:21.764 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:09:21.764 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:09:21.764 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:09:21.764 | SERVER_MODE: "individual", 2025-07-13 20:09:21.764 | } 2025-07-13 20:09:21.786 | 2 | // @bun 2025-07-13 20:09:21.786 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:09:21.786 | 4 | `).slice(1).join(` 2025-07-13 20:09:21.786 | 5 | `);return err.stack+=` 2025-07-13 20:09:21.786 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:09:21.786 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:09:21.786 | 2025-07-13 20:09:21.786 | TypeError: not enough arguments 2025-07-13 20:09:21.786 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:09:21.786 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:09:21.786 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:09:21.786 | at /$bunfs/root/server:178:154285 2025-07-13 20:09:21.786 | at loadAndEvaluateModule (1:11) 2025-07-13 20:09:21.786 | 2025-07-13 20:09:21.786 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:09:28.473 | 2025-07-13 20:09:28.473 | ===================================== 2025-07-13 20:09:28.473 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:09:28.473 | ===================================== 2025-07-13 20:09:28.473 | 2025-07-13 20:09:28.769 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:09:28.769 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:09:28.864 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:09:28.864 | 2025-07-13 20:09:28.864 | ===================================== 2025-07-13 20:09:28.864 | STARTING SERVER 2025-07-13 20:09:28.864 | ===================================== 2025-07-13 20:09:28.864 | 2025-07-13 20:09:28.865 | Server starting at Sun Jul 13 19:09:28 UTC 2025 2025-07-13 20:09:28.926 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:09:28.926 | { 2025-07-13 20:09:28.926 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:09:28.926 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:09:28.926 | PORT: 5123, 2025-07-13 20:09:28.926 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:09:28.926 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:09:28.926 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:09:28.926 | SERVER_MODE: "individual", 2025-07-13 20:09:28.926 | } 2025-07-13 20:09:28.950 | 2 | // @bun 2025-07-13 20:09:28.950 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:09:28.950 | 4 | `).slice(1).join(` 2025-07-13 20:09:28.950 | 5 | `);return err.stack+=` 2025-07-13 20:09:28.950 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:09:28.950 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:09:28.950 | 2025-07-13 20:09:28.950 | TypeError: not enough arguments 2025-07-13 20:09:28.950 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:09:28.950 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:09:28.950 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:09:28.950 | at /$bunfs/root/server:178:154285 2025-07-13 20:09:28.950 | at loadAndEvaluateModule (1:11) 2025-07-13 20:09:28.950 | 2025-07-13 20:09:28.950 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:09:41.976 | 2025-07-13 20:09:41.976 | ===================================== 2025-07-13 20:09:41.976 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:09:41.976 | ===================================== 2025-07-13 20:09:41.976 | 2025-07-13 20:09:42.276 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:09:42.276 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:09:42.371 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:09:42.371 | 2025-07-13 20:09:42.371 | ===================================== 2025-07-13 20:09:42.371 | STARTING SERVER 2025-07-13 20:09:42.371 | ===================================== 2025-07-13 20:09:42.371 | 2025-07-13 20:09:42.372 | Server starting at Sun Jul 13 19:09:42 UTC 2025 2025-07-13 20:09:42.430 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:09:42.430 | { 2025-07-13 20:09:42.430 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:09:42.430 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:09:42.430 | PORT: 5123, 2025-07-13 20:09:42.430 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:09:42.430 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:09:42.430 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:09:42.430 | SERVER_MODE: "individual", 2025-07-13 20:09:42.430 | } 2025-07-13 20:09:42.452 | 2 | // @bun 2025-07-13 20:09:42.452 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:09:42.452 | 4 | `).slice(1).join(` 2025-07-13 20:09:42.452 | 5 | `);return err.stack+=` 2025-07-13 20:09:42.452 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:09:42.452 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:09:42.452 | 2025-07-13 20:09:42.452 | TypeError: not enough arguments 2025-07-13 20:09:42.452 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:09:42.452 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:09:42.452 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:09:42.452 | at /$bunfs/root/server:178:154285 2025-07-13 20:09:42.452 | at loadAndEvaluateModule (1:11) 2025-07-13 20:09:42.452 | 2025-07-13 20:09:42.452 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:10:08.287 | 2025-07-13 20:10:08.287 | ===================================== 2025-07-13 20:10:08.287 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:10:08.287 | ===================================== 2025-07-13 20:10:08.287 | 2025-07-13 20:10:08.557 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:10:08.557 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:10:08.642 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:10:08.642 | 2025-07-13 20:10:08.642 | ===================================== 2025-07-13 20:10:08.642 | STARTING SERVER 2025-07-13 20:10:08.642 | ===================================== 2025-07-13 20:10:08.642 | 2025-07-13 20:10:08.643 | Server starting at Sun Jul 13 19:10:08 UTC 2025 2025-07-13 20:10:08.703 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:10:08.703 | { 2025-07-13 20:10:08.703 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:10:08.703 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:10:08.703 | PORT: 5123, 2025-07-13 20:10:08.703 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:10:08.703 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:10:08.703 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:10:08.703 | SERVER_MODE: "individual", 2025-07-13 20:10:08.703 | } 2025-07-13 20:10:08.727 | 2 | // @bun 2025-07-13 20:10:08.727 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:10:08.727 | 4 | `).slice(1).join(` 2025-07-13 20:10:08.727 | 5 | `);return err.stack+=` 2025-07-13 20:10:08.727 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:10:08.727 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:10:08.727 | 2025-07-13 20:10:08.727 | TypeError: not enough arguments 2025-07-13 20:10:08.727 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:10:08.727 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:10:08.727 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:10:08.727 | at /$bunfs/root/server:178:154285 2025-07-13 20:10:08.727 | at loadAndEvaluateModule (1:11) 2025-07-13 20:10:08.727 | 2025-07-13 20:10:08.727 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:11:00.132 | 2025-07-13 20:11:00.132 | ===================================== 2025-07-13 20:11:00.132 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:11:00.132 | ===================================== 2025-07-13 20:11:00.132 | 2025-07-13 20:11:00.401 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:11:00.401 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:11:00.489 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:11:00.489 | 2025-07-13 20:11:00.489 | ===================================== 2025-07-13 20:11:00.489 | STARTING SERVER 2025-07-13 20:11:00.489 | ===================================== 2025-07-13 20:11:00.489 | 2025-07-13 20:11:00.490 | Server starting at Sun Jul 13 19:11:00 UTC 2025 2025-07-13 20:11:00.551 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:11:00.551 | { 2025-07-13 20:11:00.551 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:11:00.551 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:11:00.551 | PORT: 5123, 2025-07-13 20:11:00.551 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:11:00.551 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:11:00.551 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:11:00.551 | SERVER_MODE: "individual", 2025-07-13 20:11:00.551 | } 2025-07-13 20:11:00.573 | 2 | // @bun 2025-07-13 20:11:00.573 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:11:00.573 | 4 | `).slice(1).join(` 2025-07-13 20:11:00.573 | 5 | `);return err.stack+=` 2025-07-13 20:11:00.573 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:11:00.573 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:11:00.573 | 2025-07-13 20:11:00.573 | TypeError: not enough arguments 2025-07-13 20:11:00.573 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:11:00.573 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:11:00.573 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:11:00.573 | at /$bunfs/root/server:178:154285 2025-07-13 20:11:00.573 | at loadAndEvaluateModule (1:11) 2025-07-13 20:11:00.573 | 2025-07-13 20:11:00.573 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:12:00.800 | 2025-07-13 20:12:00.800 | ===================================== 2025-07-13 20:12:00.800 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:12:00.800 | ===================================== 2025-07-13 20:12:00.800 | 2025-07-13 20:12:01.068 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:12:01.068 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:12:01.154 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:12:01.154 | 2025-07-13 20:12:01.154 | ===================================== 2025-07-13 20:12:01.154 | STARTING SERVER 2025-07-13 20:12:01.154 | ===================================== 2025-07-13 20:12:01.154 | 2025-07-13 20:12:01.155 | Server starting at Sun Jul 13 19:12:01 UTC 2025 2025-07-13 20:12:01.212 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:12:01.212 | { 2025-07-13 20:12:01.212 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:12:01.212 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:12:01.212 | PORT: 5123, 2025-07-13 20:12:01.212 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:12:01.212 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:12:01.212 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:12:01.212 | SERVER_MODE: "individual", 2025-07-13 20:12:01.212 | } 2025-07-13 20:12:01.233 | 2 | // @bun 2025-07-13 20:12:01.233 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:12:01.233 | 4 | `).slice(1).join(` 2025-07-13 20:12:01.233 | 5 | `);return err.stack+=` 2025-07-13 20:12:01.233 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:12:01.233 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:12:01.233 | 2025-07-13 20:12:01.233 | TypeError: not enough arguments 2025-07-13 20:12:01.233 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:12:01.233 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:12:01.233 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:12:01.233 | at /$bunfs/root/server:178:154285 2025-07-13 20:12:01.233 | at loadAndEvaluateModule (1:11) 2025-07-13 20:12:01.233 | 2025-07-13 20:12:01.233 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:13:01.499 | 2025-07-13 20:13:01.499 | ===================================== 2025-07-13 20:13:01.499 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:13:01.499 | ===================================== 2025-07-13 20:13:01.499 | 2025-07-13 20:13:01.785 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:13:01.785 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:13:01.877 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:13:01.877 | 2025-07-13 20:13:01.877 | ===================================== 2025-07-13 20:13:01.877 | STARTING SERVER 2025-07-13 20:13:01.877 | ===================================== 2025-07-13 20:13:01.877 | 2025-07-13 20:13:01.878 | Server starting at Sun Jul 13 19:13:01 UTC 2025 2025-07-13 20:13:01.940 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:13:01.940 | { 2025-07-13 20:13:01.940 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:13:01.940 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:13:01.940 | PORT: 5123, 2025-07-13 20:13:01.940 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:13:01.940 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:13:01.940 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:13:01.940 | SERVER_MODE: "individual", 2025-07-13 20:13:01.940 | } 2025-07-13 20:13:01.962 | 2 | // @bun 2025-07-13 20:13:01.962 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:13:01.962 | 4 | `).slice(1).join(` 2025-07-13 20:13:01.962 | 5 | `);return err.stack+=` 2025-07-13 20:13:01.962 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:13:01.962 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:13:01.962 | 2025-07-13 20:13:01.962 | TypeError: not enough arguments 2025-07-13 20:13:01.962 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:13:01.962 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:13:01.962 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:13:01.962 | at /$bunfs/root/server:178:154285 2025-07-13 20:13:01.962 | at loadAndEvaluateModule (1:11) 2025-07-13 20:13:01.962 | 2025-07-13 20:13:01.962 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:14:02.184 | 2025-07-13 20:14:02.184 | ===================================== 2025-07-13 20:14:02.184 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:14:02.184 | ===================================== 2025-07-13 20:14:02.184 | 2025-07-13 20:14:02.438 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:14:02.438 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:14:02.531 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:14:02.531 | 2025-07-13 20:14:02.531 | ===================================== 2025-07-13 20:14:02.531 | STARTING SERVER 2025-07-13 20:14:02.531 | ===================================== 2025-07-13 20:14:02.531 | 2025-07-13 20:14:02.531 | Server starting at Sun Jul 13 19:14:02 UTC 2025 2025-07-13 20:14:02.597 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:14:02.597 | { 2025-07-13 20:14:02.597 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:14:02.597 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:14:02.597 | PORT: 5123, 2025-07-13 20:14:02.598 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:14:02.598 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:14:02.598 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:14:02.598 | SERVER_MODE: "individual", 2025-07-13 20:14:02.598 | } 2025-07-13 20:14:02.621 | 2 | // @bun 2025-07-13 20:14:02.621 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:14:02.621 | 4 | `).slice(1).join(` 2025-07-13 20:14:02.621 | 5 | `);return err.stack+=` 2025-07-13 20:14:02.621 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:14:02.621 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:14:02.621 | 2025-07-13 20:14:02.621 | TypeError: not enough arguments 2025-07-13 20:14:02.621 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:14:02.621 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:14:02.621 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:14:02.621 | at /$bunfs/root/server:178:154285 2025-07-13 20:14:02.621 | at loadAndEvaluateModule (1:11) 2025-07-13 20:14:02.621 | 2025-07-13 20:14:02.621 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:15:02.843 | 2025-07-13 20:15:02.843 | ===================================== 2025-07-13 20:15:02.843 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:15:02.843 | ===================================== 2025-07-13 20:15:02.843 | 2025-07-13 20:15:03.111 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:15:03.111 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:15:03.199 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:15:03.199 | 2025-07-13 20:15:03.199 | ===================================== 2025-07-13 20:15:03.199 | STARTING SERVER 2025-07-13 20:15:03.199 | ===================================== 2025-07-13 20:15:03.199 | 2025-07-13 20:15:03.200 | Server starting at Sun Jul 13 19:15:03 UTC 2025 2025-07-13 20:15:03.256 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:15:03.256 | { 2025-07-13 20:15:03.256 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:15:03.256 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:15:03.256 | PORT: 5123, 2025-07-13 20:15:03.256 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:15:03.256 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:15:03.256 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:15:03.256 | SERVER_MODE: "individual", 2025-07-13 20:15:03.256 | } 2025-07-13 20:15:03.279 | 2 | // @bun 2025-07-13 20:15:03.279 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:15:03.279 | 4 | `).slice(1).join(` 2025-07-13 20:15:03.279 | 5 | `);return err.stack+=` 2025-07-13 20:15:03.279 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:15:03.279 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:15:03.279 | 2025-07-13 20:15:03.279 | TypeError: not enough arguments 2025-07-13 20:15:03.279 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:15:03.279 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:15:03.279 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:15:03.279 | at /$bunfs/root/server:178:154285 2025-07-13 20:15:03.279 | at loadAndEvaluateModule (1:11) 2025-07-13 20:15:03.279 | 2025-07-13 20:15:03.279 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:16:03.510 | 2025-07-13 20:16:03.510 | ===================================== 2025-07-13 20:16:03.510 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:16:03.510 | ===================================== 2025-07-13 20:16:03.510 | 2025-07-13 20:16:03.772 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:16:03.772 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:16:03.855 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:16:03.855 | 2025-07-13 20:16:03.855 | ===================================== 2025-07-13 20:16:03.855 | STARTING SERVER 2025-07-13 20:16:03.855 | ===================================== 2025-07-13 20:16:03.855 | 2025-07-13 20:16:03.856 | Server starting at Sun Jul 13 19:16:03 UTC 2025 2025-07-13 20:16:03.919 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:16:03.919 | { 2025-07-13 20:16:03.919 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:16:03.919 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:16:03.919 | PORT: 5123, 2025-07-13 20:16:03.919 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:16:03.919 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:16:03.919 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:16:03.919 | SERVER_MODE: "individual", 2025-07-13 20:16:03.919 | } 2025-07-13 20:16:03.943 | 2 | // @bun 2025-07-13 20:16:03.943 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:16:03.943 | 4 | `).slice(1).join(` 2025-07-13 20:16:03.943 | 5 | `);return err.stack+=` 2025-07-13 20:16:03.943 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:16:03.943 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:16:03.943 | 2025-07-13 20:16:03.943 | TypeError: not enough arguments 2025-07-13 20:16:03.943 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:16:03.943 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:16:03.943 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:16:03.943 | at /$bunfs/root/server:178:154285 2025-07-13 20:16:03.943 | at loadAndEvaluateModule (1:11) 2025-07-13 20:16:03.943 | 2025-07-13 20:16:03.943 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:17:04.167 | 2025-07-13 20:17:04.168 | ===================================== 2025-07-13 20:17:04.168 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:17:04.168 | ===================================== 2025-07-13 20:17:04.168 | 2025-07-13 20:17:04.439 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:17:04.439 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:17:04.525 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:17:04.525 | 2025-07-13 20:17:04.525 | ===================================== 2025-07-13 20:17:04.525 | STARTING SERVER 2025-07-13 20:17:04.525 | ===================================== 2025-07-13 20:17:04.525 | 2025-07-13 20:17:04.526 | Server starting at Sun Jul 13 19:17:04 UTC 2025 2025-07-13 20:17:04.583 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:17:04.583 | { 2025-07-13 20:17:04.583 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:17:04.583 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:17:04.583 | PORT: 5123, 2025-07-13 20:17:04.583 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:17:04.583 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:17:04.583 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:17:04.583 | SERVER_MODE: "individual", 2025-07-13 20:17:04.583 | } 2025-07-13 20:17:04.605 | 2 | // @bun 2025-07-13 20:17:04.605 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:17:04.605 | 4 | `).slice(1).join(` 2025-07-13 20:17:04.605 | 5 | `);return err.stack+=` 2025-07-13 20:17:04.605 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:17:04.605 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:17:04.605 | 2025-07-13 20:17:04.605 | TypeError: not enough arguments 2025-07-13 20:17:04.605 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:17:04.605 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:17:04.605 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:17:04.605 | at /$bunfs/root/server:178:154285 2025-07-13 20:17:04.605 | at loadAndEvaluateModule (1:11) 2025-07-13 20:17:04.605 | 2025-07-13 20:17:04.605 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:18:04.793 | 2025-07-13 20:18:04.793 | ===================================== 2025-07-13 20:18:04.793 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:18:04.793 | ===================================== 2025-07-13 20:18:04.793 | 2025-07-13 20:18:05.056 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:18:05.056 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:18:05.139 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:18:05.139 | 2025-07-13 20:18:05.139 | ===================================== 2025-07-13 20:18:05.139 | STARTING SERVER 2025-07-13 20:18:05.139 | ===================================== 2025-07-13 20:18:05.139 | 2025-07-13 20:18:05.140 | Server starting at Sun Jul 13 19:18:05 UTC 2025 2025-07-13 20:18:05.197 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:18:05.197 | { 2025-07-13 20:18:05.197 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:18:05.197 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:18:05.197 | PORT: 5123, 2025-07-13 20:18:05.197 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:18:05.197 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:18:05.197 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:18:05.197 | SERVER_MODE: "individual", 2025-07-13 20:18:05.197 | } 2025-07-13 20:18:05.218 | 2 | // @bun 2025-07-13 20:18:05.218 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:18:05.218 | 4 | `).slice(1).join(` 2025-07-13 20:18:05.218 | 5 | `);return err.stack+=` 2025-07-13 20:18:05.218 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:18:05.218 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:18:05.218 | 2025-07-13 20:18:05.218 | TypeError: not enough arguments 2025-07-13 20:18:05.218 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:18:05.218 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:18:05.218 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:18:05.218 | at /$bunfs/root/server:178:154285 2025-07-13 20:18:05.218 | at loadAndEvaluateModule (1:11) 2025-07-13 20:18:05.218 | 2025-07-13 20:18:05.218 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:19:05.559 | 2025-07-13 20:19:05.559 | ===================================== 2025-07-13 20:19:05.559 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:19:05.559 | ===================================== 2025-07-13 20:19:05.559 | 2025-07-13 20:19:06.045 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:19:06.045 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:19:06.211 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:19:06.211 | 2025-07-13 20:19:06.211 | ===================================== 2025-07-13 20:19:06.211 | STARTING SERVER 2025-07-13 20:19:06.211 | ===================================== 2025-07-13 20:19:06.212 | 2025-07-13 20:19:06.213 | Server starting at Sun Jul 13 19:19:06 UTC 2025 2025-07-13 20:19:06.345 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:19:06.346 | { 2025-07-13 20:19:06.346 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:19:06.346 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:19:06.346 | PORT: 5123, 2025-07-13 20:19:06.346 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:19:06.346 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:19:06.346 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:19:06.346 | SERVER_MODE: "individual", 2025-07-13 20:19:06.346 | } 2025-07-13 20:19:06.382 | 2 | // @bun 2025-07-13 20:19:06.382 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:19:06.382 | 4 | `).slice(1).join(` 2025-07-13 20:19:06.382 | 5 | `);return err.stack+=` 2025-07-13 20:19:06.382 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:19:06.382 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:19:06.382 | 2025-07-13 20:19:06.382 | TypeError: not enough arguments 2025-07-13 20:19:06.382 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:19:06.382 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:19:06.382 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:19:06.382 | at /$bunfs/root/server:178:154285 2025-07-13 20:19:06.382 | at loadAndEvaluateModule (1:11) 2025-07-13 20:19:06.382 | 2025-07-13 20:19:06.382 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:20:06.651 | 2025-07-13 20:20:06.651 | ===================================== 2025-07-13 20:20:06.651 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:20:06.651 | ===================================== 2025-07-13 20:20:06.651 | 2025-07-13 20:20:06.959 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:20:06.959 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:20:07.060 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:20:07.060 | 2025-07-13 20:20:07.060 | ===================================== 2025-07-13 20:20:07.060 | STARTING SERVER 2025-07-13 20:20:07.060 | ===================================== 2025-07-13 20:20:07.060 | 2025-07-13 20:20:07.060 | Server starting at Sun Jul 13 19:20:07 UTC 2025 2025-07-13 20:20:07.118 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:20:07.118 | { 2025-07-13 20:20:07.118 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:20:07.118 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:20:07.118 | PORT: 5123, 2025-07-13 20:20:07.118 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:20:07.118 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:20:07.118 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:20:07.118 | SERVER_MODE: "individual", 2025-07-13 20:20:07.118 | } 2025-07-13 20:20:07.139 | 2 | // @bun 2025-07-13 20:20:07.139 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:20:07.139 | 4 | `).slice(1).join(` 2025-07-13 20:20:07.139 | 5 | `);return err.stack+=` 2025-07-13 20:20:07.139 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:20:07.139 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:20:07.139 | 2025-07-13 20:20:07.139 | TypeError: not enough arguments 2025-07-13 20:20:07.139 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:20:07.139 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:20:07.139 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:20:07.139 | at /$bunfs/root/server:178:154285 2025-07-13 20:20:07.139 | at loadAndEvaluateModule (1:11) 2025-07-13 20:20:07.139 | 2025-07-13 20:20:07.139 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:21:07.347 | 2025-07-13 20:21:07.347 | ===================================== 2025-07-13 20:21:07.347 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:21:07.347 | ===================================== 2025-07-13 20:21:07.347 | 2025-07-13 20:21:07.582 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:21:07.582 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:21:07.666 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:21:07.666 | 2025-07-13 20:21:07.666 | ===================================== 2025-07-13 20:21:07.666 | STARTING SERVER 2025-07-13 20:21:07.666 | ===================================== 2025-07-13 20:21:07.666 | 2025-07-13 20:21:07.666 | Server starting at Sun Jul 13 19:21:07 UTC 2025 2025-07-13 20:21:07.724 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:21:07.725 | { 2025-07-13 20:21:07.725 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:21:07.725 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:21:07.725 | PORT: 5123, 2025-07-13 20:21:07.725 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:21:07.725 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:21:07.725 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:21:07.725 | SERVER_MODE: "individual", 2025-07-13 20:21:07.725 | } 2025-07-13 20:21:07.745 | 2 | // @bun 2025-07-13 20:21:07.745 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:21:07.745 | 4 | `).slice(1).join(` 2025-07-13 20:21:07.745 | 5 | `);return err.stack+=` 2025-07-13 20:21:07.745 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:21:07.745 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:21:07.745 | 2025-07-13 20:21:07.745 | TypeError: not enough arguments 2025-07-13 20:21:07.745 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:21:07.745 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:21:07.745 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:21:07.745 | at /$bunfs/root/server:178:154285 2025-07-13 20:21:07.745 | at loadAndEvaluateModule (1:11) 2025-07-13 20:21:07.745 | 2025-07-13 20:21:07.745 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:22:07.976 | 2025-07-13 20:22:07.976 | ===================================== 2025-07-13 20:22:07.976 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:22:07.976 | ===================================== 2025-07-13 20:22:07.976 | 2025-07-13 20:22:08.242 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:22:08.242 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:22:08.334 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:22:08.334 | 2025-07-13 20:22:08.334 | ===================================== 2025-07-13 20:22:08.334 | STARTING SERVER 2025-07-13 20:22:08.334 | ===================================== 2025-07-13 20:22:08.334 | 2025-07-13 20:22:08.335 | Server starting at Sun Jul 13 19:22:08 UTC 2025 2025-07-13 20:22:08.399 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:22:08.399 | { 2025-07-13 20:22:08.399 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:22:08.399 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:22:08.399 | PORT: 5123, 2025-07-13 20:22:08.399 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:22:08.399 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:22:08.399 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:22:08.399 | SERVER_MODE: "individual", 2025-07-13 20:22:08.399 | } 2025-07-13 20:22:08.424 | 2 | // @bun 2025-07-13 20:22:08.424 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:22:08.424 | 4 | `).slice(1).join(` 2025-07-13 20:22:08.424 | 5 | `);return err.stack+=` 2025-07-13 20:22:08.424 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:22:08.424 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:22:08.424 | 2025-07-13 20:22:08.424 | TypeError: not enough arguments 2025-07-13 20:22:08.424 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:22:08.424 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:22:08.424 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:22:08.424 | at /$bunfs/root/server:178:154285 2025-07-13 20:22:08.424 | at loadAndEvaluateModule (1:11) 2025-07-13 20:22:08.424 | 2025-07-13 20:22:08.424 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:23:08.643 | 2025-07-13 20:23:08.643 | ===================================== 2025-07-13 20:23:08.643 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:23:08.643 | ===================================== 2025-07-13 20:23:08.643 | 2025-07-13 20:23:08.919 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:23:08.919 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:23:09.009 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:23:09.009 | 2025-07-13 20:23:09.009 | ===================================== 2025-07-13 20:23:09.009 | STARTING SERVER 2025-07-13 20:23:09.009 | ===================================== 2025-07-13 20:23:09.009 | 2025-07-13 20:23:09.010 | Server starting at Sun Jul 13 19:23:09 UTC 2025 2025-07-13 20:23:09.069 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:23:09.069 | { 2025-07-13 20:23:09.069 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:23:09.069 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:23:09.069 | PORT: 5123, 2025-07-13 20:23:09.069 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:23:09.069 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:23:09.069 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:23:09.069 | SERVER_MODE: "individual", 2025-07-13 20:23:09.069 | } 2025-07-13 20:23:09.092 | 2 | // @bun 2025-07-13 20:23:09.092 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:23:09.092 | 4 | `).slice(1).join(` 2025-07-13 20:23:09.092 | 5 | `);return err.stack+=` 2025-07-13 20:23:09.092 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:23:09.092 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:23:09.092 | 2025-07-13 20:23:09.092 | TypeError: not enough arguments 2025-07-13 20:23:09.092 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:23:09.092 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:23:09.092 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:23:09.092 | at /$bunfs/root/server:178:154285 2025-07-13 20:23:09.092 | at loadAndEvaluateModule (1:11) 2025-07-13 20:23:09.092 | 2025-07-13 20:23:09.092 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:24:09.339 | 2025-07-13 20:24:09.339 | ===================================== 2025-07-13 20:24:09.339 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:24:09.339 | ===================================== 2025-07-13 20:24:09.339 | 2025-07-13 20:24:09.607 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:24:09.607 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:24:09.692 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:24:09.692 | 2025-07-13 20:24:09.692 | ===================================== 2025-07-13 20:24:09.692 | STARTING SERVER 2025-07-13 20:24:09.692 | ===================================== 2025-07-13 20:24:09.692 | 2025-07-13 20:24:09.693 | Server starting at Sun Jul 13 19:24:09 UTC 2025 2025-07-13 20:24:09.752 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:24:09.752 | { 2025-07-13 20:24:09.752 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:24:09.752 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:24:09.752 | PORT: 5123, 2025-07-13 20:24:09.752 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:24:09.752 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:24:09.752 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:24:09.752 | SERVER_MODE: "individual", 2025-07-13 20:24:09.752 | } 2025-07-13 20:24:09.773 | 2 | // @bun 2025-07-13 20:24:09.773 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:24:09.773 | 4 | `).slice(1).join(` 2025-07-13 20:24:09.773 | 5 | `);return err.stack+=` 2025-07-13 20:24:09.773 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:24:09.773 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:24:09.773 | 2025-07-13 20:24:09.773 | TypeError: not enough arguments 2025-07-13 20:24:09.773 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:24:09.773 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:24:09.773 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:24:09.773 | at /$bunfs/root/server:178:154285 2025-07-13 20:24:09.773 | at loadAndEvaluateModule (1:11) 2025-07-13 20:24:09.773 | 2025-07-13 20:24:09.773 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:25:09.988 | 2025-07-13 20:25:09.988 | ===================================== 2025-07-13 20:25:09.988 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:25:09.988 | ===================================== 2025-07-13 20:25:09.988 | 2025-07-13 20:25:10.253 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:25:10.253 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:25:10.340 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:25:10.340 | 2025-07-13 20:25:10.340 | ===================================== 2025-07-13 20:25:10.340 | STARTING SERVER 2025-07-13 20:25:10.340 | ===================================== 2025-07-13 20:25:10.340 | 2025-07-13 20:25:10.341 | Server starting at Sun Jul 13 19:25:10 UTC 2025 2025-07-13 20:25:10.399 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:25:10.399 | { 2025-07-13 20:25:10.399 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:25:10.399 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:25:10.399 | PORT: 5123, 2025-07-13 20:25:10.399 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:25:10.399 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:25:10.399 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:25:10.399 | SERVER_MODE: "individual", 2025-07-13 20:25:10.399 | } 2025-07-13 20:25:10.421 | 2 | // @bun 2025-07-13 20:25:10.421 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:25:10.421 | 4 | `).slice(1).join(` 2025-07-13 20:25:10.421 | 5 | `);return err.stack+=` 2025-07-13 20:25:10.421 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:25:10.421 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:25:10.421 | 2025-07-13 20:25:10.421 | TypeError: not enough arguments 2025-07-13 20:25:10.421 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:25:10.421 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:25:10.421 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:25:10.421 | at /$bunfs/root/server:178:154285 2025-07-13 20:25:10.421 | at loadAndEvaluateModule (1:11) 2025-07-13 20:25:10.421 | 2025-07-13 20:25:10.421 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:26:10.625 | 2025-07-13 20:26:10.625 | ===================================== 2025-07-13 20:26:10.625 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:26:10.625 | ===================================== 2025-07-13 20:26:10.625 | 2025-07-13 20:26:10.888 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:26:10.888 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:26:10.975 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:26:10.975 | 2025-07-13 20:26:10.975 | ===================================== 2025-07-13 20:26:10.975 | STARTING SERVER 2025-07-13 20:26:10.975 | ===================================== 2025-07-13 20:26:10.975 | 2025-07-13 20:26:10.976 | Server starting at Sun Jul 13 19:26:10 UTC 2025 2025-07-13 20:26:11.033 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:26:11.033 | { 2025-07-13 20:26:11.033 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:26:11.033 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:26:11.033 | PORT: 5123, 2025-07-13 20:26:11.033 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:26:11.033 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:26:11.033 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:26:11.033 | SERVER_MODE: "individual", 2025-07-13 20:26:11.033 | } 2025-07-13 20:26:11.054 | 2 | // @bun 2025-07-13 20:26:11.054 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:26:11.054 | 4 | `).slice(1).join(` 2025-07-13 20:26:11.054 | 5 | `);return err.stack+=` 2025-07-13 20:26:11.054 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:26:11.054 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:26:11.054 | 2025-07-13 20:26:11.054 | TypeError: not enough arguments 2025-07-13 20:26:11.054 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:26:11.054 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:26:11.054 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:26:11.054 | at /$bunfs/root/server:178:154285 2025-07-13 20:26:11.054 | at loadAndEvaluateModule (1:11) 2025-07-13 20:26:11.054 | 2025-07-13 20:26:11.054 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:27:11.284 | 2025-07-13 20:27:11.284 | ===================================== 2025-07-13 20:27:11.284 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:27:11.284 | ===================================== 2025-07-13 20:27:11.284 | 2025-07-13 20:27:11.555 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:27:11.555 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:27:11.645 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:27:11.645 | 2025-07-13 20:27:11.645 | ===================================== 2025-07-13 20:27:11.645 | STARTING SERVER 2025-07-13 20:27:11.645 | ===================================== 2025-07-13 20:27:11.645 | 2025-07-13 20:27:11.645 | Server starting at Sun Jul 13 19:27:11 UTC 2025 2025-07-13 20:27:11.707 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:27:11.707 | { 2025-07-13 20:27:11.707 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:27:11.707 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:27:11.707 | PORT: 5123, 2025-07-13 20:27:11.707 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:27:11.707 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:27:11.707 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:27:11.707 | SERVER_MODE: "individual", 2025-07-13 20:27:11.707 | } 2025-07-13 20:27:11.731 | 2 | // @bun 2025-07-13 20:27:11.731 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:27:11.731 | 4 | `).slice(1).join(` 2025-07-13 20:27:11.731 | 5 | `);return err.stack+=` 2025-07-13 20:27:11.731 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:27:11.731 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:27:11.731 | 2025-07-13 20:27:11.731 | TypeError: not enough arguments 2025-07-13 20:27:11.731 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:27:11.731 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:27:11.731 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:27:11.731 | at /$bunfs/root/server:178:154285 2025-07-13 20:27:11.731 | at loadAndEvaluateModule (1:11) 2025-07-13 20:27:11.731 | 2025-07-13 20:27:11.731 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:28:11.950 | 2025-07-13 20:28:11.950 | ===================================== 2025-07-13 20:28:11.950 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:28:11.950 | ===================================== 2025-07-13 20:28:11.950 | 2025-07-13 20:28:12.215 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:28:12.215 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:28:12.303 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:28:12.303 | 2025-07-13 20:28:12.303 | ===================================== 2025-07-13 20:28:12.303 | STARTING SERVER 2025-07-13 20:28:12.303 | ===================================== 2025-07-13 20:28:12.303 | 2025-07-13 20:28:12.304 | Server starting at Sun Jul 13 19:28:12 UTC 2025 2025-07-13 20:28:12.365 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:28:12.365 | { 2025-07-13 20:28:12.365 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:28:12.365 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:28:12.365 | PORT: 5123, 2025-07-13 20:28:12.365 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:28:12.365 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:28:12.365 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:28:12.365 | SERVER_MODE: "individual", 2025-07-13 20:28:12.365 | } 2025-07-13 20:28:12.388 | 2 | // @bun 2025-07-13 20:28:12.388 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:28:12.388 | 4 | `).slice(1).join(` 2025-07-13 20:28:12.388 | 5 | `);return err.stack+=` 2025-07-13 20:28:12.388 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:28:12.388 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:28:12.388 | 2025-07-13 20:28:12.388 | TypeError: not enough arguments 2025-07-13 20:28:12.388 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:28:12.388 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:28:12.388 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:28:12.388 | at /$bunfs/root/server:178:154285 2025-07-13 20:28:12.388 | at loadAndEvaluateModule (1:11) 2025-07-13 20:28:12.388 | 2025-07-13 20:28:12.388 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:29:12.616 | 2025-07-13 20:29:12.616 | ===================================== 2025-07-13 20:29:12.616 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:29:12.616 | ===================================== 2025-07-13 20:29:12.616 | 2025-07-13 20:29:12.897 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:29:12.897 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:29:12.993 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:29:12.993 | 2025-07-13 20:29:12.993 | ===================================== 2025-07-13 20:29:12.993 | STARTING SERVER 2025-07-13 20:29:12.993 | ===================================== 2025-07-13 20:29:12.993 | 2025-07-13 20:29:12.994 | Server starting at Sun Jul 13 19:29:12 UTC 2025 2025-07-13 20:29:13.058 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:29:13.058 | { 2025-07-13 20:29:13.058 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:29:13.058 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:29:13.058 | PORT: 5123, 2025-07-13 20:29:13.058 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:29:13.058 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:29:13.058 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:29:13.058 | SERVER_MODE: "individual", 2025-07-13 20:29:13.058 | } 2025-07-13 20:29:13.081 | 2 | // @bun 2025-07-13 20:29:13.081 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:29:13.081 | 4 | `).slice(1).join(` 2025-07-13 20:29:13.081 | 5 | `);return err.stack+=` 2025-07-13 20:29:13.081 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:29:13.081 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:29:13.081 | 2025-07-13 20:29:13.081 | TypeError: not enough arguments 2025-07-13 20:29:13.081 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:29:13.081 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:29:13.082 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:29:13.082 | at /$bunfs/root/server:178:154285 2025-07-13 20:29:13.082 | at loadAndEvaluateModule (1:11) 2025-07-13 20:29:13.082 | 2025-07-13 20:29:13.082 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:30:13.338 | 2025-07-13 20:30:13.338 | ===================================== 2025-07-13 20:30:13.338 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:30:13.338 | ===================================== 2025-07-13 20:30:13.338 | 2025-07-13 20:30:13.634 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:30:13.634 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:30:13.728 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:30:13.728 | 2025-07-13 20:30:13.728 | ===================================== 2025-07-13 20:30:13.728 | STARTING SERVER 2025-07-13 20:30:13.728 | ===================================== 2025-07-13 20:30:13.728 | 2025-07-13 20:30:13.728 | Server starting at Sun Jul 13 19:30:13 UTC 2025 2025-07-13 20:30:13.793 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:30:13.793 | { 2025-07-13 20:30:13.793 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:30:13.793 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:30:13.793 | PORT: 5123, 2025-07-13 20:30:13.793 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:30:13.793 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:30:13.793 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:30:13.793 | SERVER_MODE: "individual", 2025-07-13 20:30:13.793 | } 2025-07-13 20:30:13.818 | 2 | // @bun 2025-07-13 20:30:13.818 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:30:13.818 | 4 | `).slice(1).join(` 2025-07-13 20:30:13.818 | 5 | `);return err.stack+=` 2025-07-13 20:30:13.818 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:30:13.818 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:30:13.818 | 2025-07-13 20:30:13.818 | TypeError: not enough arguments 2025-07-13 20:30:13.818 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:30:13.818 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:30:13.818 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:30:13.818 | at /$bunfs/root/server:178:154285 2025-07-13 20:30:13.818 | at loadAndEvaluateModule (1:11) 2025-07-13 20:30:13.818 | 2025-07-13 20:30:13.818 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:31:14.054 | 2025-07-13 20:31:14.054 | ===================================== 2025-07-13 20:31:14.054 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:31:14.054 | ===================================== 2025-07-13 20:31:14.054 | 2025-07-13 20:31:14.329 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:31:14.329 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:31:14.417 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:31:14.417 | 2025-07-13 20:31:14.417 | ===================================== 2025-07-13 20:31:14.417 | STARTING SERVER 2025-07-13 20:31:14.417 | ===================================== 2025-07-13 20:31:14.417 | 2025-07-13 20:31:14.418 | Server starting at Sun Jul 13 19:31:14 UTC 2025 2025-07-13 20:31:14.479 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:31:14.479 | { 2025-07-13 20:31:14.479 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:31:14.479 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:31:14.479 | PORT: 5123, 2025-07-13 20:31:14.479 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:31:14.479 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:31:14.479 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:31:14.479 | SERVER_MODE: "individual", 2025-07-13 20:31:14.479 | } 2025-07-13 20:31:14.502 | 2 | // @bun 2025-07-13 20:31:14.502 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:31:14.502 | 4 | `).slice(1).join(` 2025-07-13 20:31:14.502 | 5 | `);return err.stack+=` 2025-07-13 20:31:14.502 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:31:14.502 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:31:14.502 | 2025-07-13 20:31:14.502 | TypeError: not enough arguments 2025-07-13 20:31:14.502 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:31:14.502 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:31:14.502 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:31:14.502 | at /$bunfs/root/server:178:154285 2025-07-13 20:31:14.502 | at loadAndEvaluateModule (1:11) 2025-07-13 20:31:14.502 | 2025-07-13 20:31:14.502 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:32:14.719 | 2025-07-13 20:32:14.719 | ===================================== 2025-07-13 20:32:14.719 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:32:14.719 | ===================================== 2025-07-13 20:32:14.719 | 2025-07-13 20:32:14.988 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:32:14.988 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:32:15.078 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:32:15.078 | 2025-07-13 20:32:15.078 | ===================================== 2025-07-13 20:32:15.078 | STARTING SERVER 2025-07-13 20:32:15.078 | ===================================== 2025-07-13 20:32:15.078 | 2025-07-13 20:32:15.079 | Server starting at Sun Jul 13 19:32:15 UTC 2025 2025-07-13 20:32:15.142 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:32:15.142 | { 2025-07-13 20:32:15.142 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:32:15.142 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:32:15.142 | PORT: 5123, 2025-07-13 20:32:15.142 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:32:15.142 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:32:15.142 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:32:15.142 | SERVER_MODE: "individual", 2025-07-13 20:32:15.142 | } 2025-07-13 20:32:15.166 | 2 | // @bun 2025-07-13 20:32:15.166 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:32:15.166 | 4 | `).slice(1).join(` 2025-07-13 20:32:15.166 | 5 | `);return err.stack+=` 2025-07-13 20:32:15.166 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:32:15.166 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:32:15.166 | 2025-07-13 20:32:15.166 | TypeError: not enough arguments 2025-07-13 20:32:15.166 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:32:15.166 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:32:15.166 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:32:15.166 | at /$bunfs/root/server:178:154285 2025-07-13 20:32:15.166 | at loadAndEvaluateModule (1:11) 2025-07-13 20:32:15.166 | 2025-07-13 20:32:15.166 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:33:15.398 | 2025-07-13 20:33:15.398 | ===================================== 2025-07-13 20:33:15.398 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:33:15.398 | ===================================== 2025-07-13 20:33:15.398 | 2025-07-13 20:33:15.677 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:33:15.677 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:33:15.766 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:33:15.766 | 2025-07-13 20:33:15.766 | ===================================== 2025-07-13 20:33:15.766 | STARTING SERVER 2025-07-13 20:33:15.766 | ===================================== 2025-07-13 20:33:15.766 | 2025-07-13 20:33:15.766 | Server starting at Sun Jul 13 19:33:15 UTC 2025 2025-07-13 20:33:15.828 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:33:15.828 | { 2025-07-13 20:33:15.828 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:33:15.828 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:33:15.828 | PORT: 5123, 2025-07-13 20:33:15.828 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:33:15.828 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:33:15.828 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:33:15.828 | SERVER_MODE: "individual", 2025-07-13 20:33:15.828 | } 2025-07-13 20:33:15.851 | 2 | // @bun 2025-07-13 20:33:15.851 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:33:15.851 | 4 | `).slice(1).join(` 2025-07-13 20:33:15.851 | 5 | `);return err.stack+=` 2025-07-13 20:33:15.851 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:33:15.851 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:33:15.851 | 2025-07-13 20:33:15.851 | TypeError: not enough arguments 2025-07-13 20:33:15.851 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:33:15.851 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:33:15.851 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:33:15.851 | at /$bunfs/root/server:178:154285 2025-07-13 20:33:15.851 | at loadAndEvaluateModule (1:11) 2025-07-13 20:33:15.851 | 2025-07-13 20:33:15.851 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:34:16.064 | 2025-07-13 20:34:16.064 | ===================================== 2025-07-13 20:34:16.064 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:34:16.064 | ===================================== 2025-07-13 20:34:16.064 | 2025-07-13 20:34:16.333 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:34:16.333 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:34:16.419 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:34:16.419 | 2025-07-13 20:34:16.419 | ===================================== 2025-07-13 20:34:16.419 | STARTING SERVER 2025-07-13 20:34:16.419 | ===================================== 2025-07-13 20:34:16.419 | 2025-07-13 20:34:16.420 | Server starting at Sun Jul 13 19:34:16 UTC 2025 2025-07-13 20:34:16.478 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:34:16.478 | { 2025-07-13 20:34:16.478 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:34:16.478 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:34:16.478 | PORT: 5123, 2025-07-13 20:34:16.478 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:34:16.478 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:34:16.478 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:34:16.478 | SERVER_MODE: "individual", 2025-07-13 20:34:16.478 | } 2025-07-13 20:34:16.500 | 2 | // @bun 2025-07-13 20:34:16.500 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:34:16.500 | 4 | `).slice(1).join(` 2025-07-13 20:34:16.500 | 5 | `);return err.stack+=` 2025-07-13 20:34:16.500 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:34:16.500 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:34:16.500 | 2025-07-13 20:34:16.500 | TypeError: not enough arguments 2025-07-13 20:34:16.500 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:34:16.500 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:34:16.500 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:34:16.500 | at /$bunfs/root/server:178:154285 2025-07-13 20:34:16.500 | at loadAndEvaluateModule (1:11) 2025-07-13 20:34:16.500 | 2025-07-13 20:34:16.500 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:35:16.734 | 2025-07-13 20:35:16.734 | ===================================== 2025-07-13 20:35:16.734 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:35:16.734 | ===================================== 2025-07-13 20:35:16.734 | 2025-07-13 20:35:17.014 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:35:17.014 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:35:17.102 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:35:17.102 | 2025-07-13 20:35:17.102 | ===================================== 2025-07-13 20:35:17.102 | STARTING SERVER 2025-07-13 20:35:17.102 | ===================================== 2025-07-13 20:35:17.102 | 2025-07-13 20:35:17.103 | Server starting at Sun Jul 13 19:35:17 UTC 2025 2025-07-13 20:35:17.162 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:35:17.163 | { 2025-07-13 20:35:17.163 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:35:17.163 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:35:17.163 | PORT: 5123, 2025-07-13 20:35:17.163 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:35:17.163 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:35:17.163 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:35:17.163 | SERVER_MODE: "individual", 2025-07-13 20:35:17.163 | } 2025-07-13 20:35:17.184 | 2 | // @bun 2025-07-13 20:35:17.184 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:35:17.184 | 4 | `).slice(1).join(` 2025-07-13 20:35:17.184 | 5 | `);return err.stack+=` 2025-07-13 20:35:17.184 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:35:17.184 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:35:17.184 | 2025-07-13 20:35:17.184 | TypeError: not enough arguments 2025-07-13 20:35:17.184 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:35:17.184 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:35:17.184 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:35:17.184 | at /$bunfs/root/server:178:154285 2025-07-13 20:35:17.184 | at loadAndEvaluateModule (1:11) 2025-07-13 20:35:17.184 | 2025-07-13 20:35:17.184 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:36:17.411 | 2025-07-13 20:36:17.411 | ===================================== 2025-07-13 20:36:17.411 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:36:17.411 | ===================================== 2025-07-13 20:36:17.411 | 2025-07-13 20:36:17.687 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:36:17.687 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:36:17.773 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:36:17.773 | 2025-07-13 20:36:17.773 | ===================================== 2025-07-13 20:36:17.773 | STARTING SERVER 2025-07-13 20:36:17.773 | ===================================== 2025-07-13 20:36:17.773 | 2025-07-13 20:36:17.774 | Server starting at Sun Jul 13 19:36:17 UTC 2025 2025-07-13 20:36:17.833 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:36:17.833 | { 2025-07-13 20:36:17.833 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:36:17.833 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:36:17.833 | PORT: 5123, 2025-07-13 20:36:17.833 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:36:17.833 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:36:17.833 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:36:17.833 | SERVER_MODE: "individual", 2025-07-13 20:36:17.833 | } 2025-07-13 20:36:17.855 | 2 | // @bun 2025-07-13 20:36:17.855 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:36:17.855 | 4 | `).slice(1).join(` 2025-07-13 20:36:17.855 | 5 | `);return err.stack+=` 2025-07-13 20:36:17.855 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:36:17.855 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:36:17.855 | 2025-07-13 20:36:17.855 | TypeError: not enough arguments 2025-07-13 20:36:17.855 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:36:17.855 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:36:17.855 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:36:17.855 | at /$bunfs/root/server:178:154285 2025-07-13 20:36:17.855 | at loadAndEvaluateModule (1:11) 2025-07-13 20:36:17.855 | 2025-07-13 20:36:17.855 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:37:18.109 | 2025-07-13 20:37:18.109 | ===================================== 2025-07-13 20:37:18.109 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:37:18.109 | ===================================== 2025-07-13 20:37:18.109 | 2025-07-13 20:37:18.386 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:37:18.386 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:37:18.474 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:37:18.474 | 2025-07-13 20:37:18.474 | ===================================== 2025-07-13 20:37:18.474 | STARTING SERVER 2025-07-13 20:37:18.474 | ===================================== 2025-07-13 20:37:18.474 | 2025-07-13 20:37:18.475 | Server starting at Sun Jul 13 19:37:18 UTC 2025 2025-07-13 20:37:18.532 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:37:18.532 | { 2025-07-13 20:37:18.532 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:37:18.532 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:37:18.532 | PORT: 5123, 2025-07-13 20:37:18.532 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:37:18.532 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:37:18.532 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:37:18.532 | SERVER_MODE: "individual", 2025-07-13 20:37:18.532 | } 2025-07-13 20:37:18.553 | 2 | // @bun 2025-07-13 20:37:18.553 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:37:18.553 | 4 | `).slice(1).join(` 2025-07-13 20:37:18.553 | 5 | `);return err.stack+=` 2025-07-13 20:37:18.553 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:37:18.553 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:37:18.553 | 2025-07-13 20:37:18.553 | TypeError: not enough arguments 2025-07-13 20:37:18.553 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:37:18.553 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:37:18.553 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:37:18.553 | at /$bunfs/root/server:178:154285 2025-07-13 20:37:18.553 | at loadAndEvaluateModule (1:11) 2025-07-13 20:37:18.553 | 2025-07-13 20:37:18.553 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:38:18.756 | 2025-07-13 20:38:18.756 | ===================================== 2025-07-13 20:38:18.756 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:38:18.756 | ===================================== 2025-07-13 20:38:18.756 | 2025-07-13 20:38:19.026 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:38:19.027 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:38:19.115 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:38:19.115 | 2025-07-13 20:38:19.115 | ===================================== 2025-07-13 20:38:19.115 | STARTING SERVER 2025-07-13 20:38:19.115 | ===================================== 2025-07-13 20:38:19.115 | 2025-07-13 20:38:19.115 | Server starting at Sun Jul 13 19:38:19 UTC 2025 2025-07-13 20:38:19.178 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:38:19.178 | { 2025-07-13 20:38:19.178 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:38:19.178 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:38:19.178 | PORT: 5123, 2025-07-13 20:38:19.178 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:38:19.178 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:38:19.178 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:38:19.178 | SERVER_MODE: "individual", 2025-07-13 20:38:19.178 | } 2025-07-13 20:38:19.201 | 2 | // @bun 2025-07-13 20:38:19.201 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:38:19.201 | 4 | `).slice(1).join(` 2025-07-13 20:38:19.201 | 5 | `);return err.stack+=` 2025-07-13 20:38:19.201 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:38:19.201 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:38:19.201 | 2025-07-13 20:38:19.201 | TypeError: not enough arguments 2025-07-13 20:38:19.201 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:38:19.201 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:38:19.201 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:38:19.201 | at /$bunfs/root/server:178:154285 2025-07-13 20:38:19.201 | at loadAndEvaluateModule (1:11) 2025-07-13 20:38:19.201 | 2025-07-13 20:38:19.201 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:39:19.433 | 2025-07-13 20:39:19.433 | ===================================== 2025-07-13 20:39:19.433 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:39:19.433 | ===================================== 2025-07-13 20:39:19.433 | 2025-07-13 20:39:19.705 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:39:19.706 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:39:19.792 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:39:19.792 | 2025-07-13 20:39:19.792 | ===================================== 2025-07-13 20:39:19.792 | STARTING SERVER 2025-07-13 20:39:19.792 | ===================================== 2025-07-13 20:39:19.792 | 2025-07-13 20:39:19.793 | Server starting at Sun Jul 13 19:39:19 UTC 2025 2025-07-13 20:39:19.850 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:39:19.850 | { 2025-07-13 20:39:19.850 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:39:19.850 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:39:19.850 | PORT: 5123, 2025-07-13 20:39:19.850 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:39:19.850 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:39:19.850 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:39:19.850 | SERVER_MODE: "individual", 2025-07-13 20:39:19.850 | } 2025-07-13 20:39:19.871 | 2 | // @bun 2025-07-13 20:39:19.871 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:39:19.871 | 4 | `).slice(1).join(` 2025-07-13 20:39:19.871 | 5 | `);return err.stack+=` 2025-07-13 20:39:19.871 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:39:19.871 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:39:19.871 | 2025-07-13 20:39:19.871 | TypeError: not enough arguments 2025-07-13 20:39:19.871 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:39:19.871 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:39:19.871 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:39:19.871 | at /$bunfs/root/server:178:154285 2025-07-13 20:39:19.871 | at loadAndEvaluateModule (1:11) 2025-07-13 20:39:19.871 | 2025-07-13 20:39:19.871 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:40:20.090 | 2025-07-13 20:40:20.090 | ===================================== 2025-07-13 20:40:20.090 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:40:20.090 | ===================================== 2025-07-13 20:40:20.090 | 2025-07-13 20:40:20.357 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:40:20.357 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:40:20.441 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:40:20.441 | 2025-07-13 20:40:20.441 | ===================================== 2025-07-13 20:40:20.441 | STARTING SERVER 2025-07-13 20:40:20.441 | ===================================== 2025-07-13 20:40:20.441 | 2025-07-13 20:40:20.442 | Server starting at Sun Jul 13 19:40:20 UTC 2025 2025-07-13 20:40:20.501 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:40:20.501 | { 2025-07-13 20:40:20.501 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:40:20.501 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:40:20.501 | PORT: 5123, 2025-07-13 20:40:20.501 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:40:20.501 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:40:20.501 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:40:20.501 | SERVER_MODE: "individual", 2025-07-13 20:40:20.501 | } 2025-07-13 20:40:20.522 | 2 | // @bun 2025-07-13 20:40:20.522 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:40:20.522 | 4 | `).slice(1).join(` 2025-07-13 20:40:20.522 | 5 | `);return err.stack+=` 2025-07-13 20:40:20.522 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:40:20.522 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:40:20.522 | 2025-07-13 20:40:20.522 | TypeError: not enough arguments 2025-07-13 20:40:20.522 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:40:20.522 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:40:20.522 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:40:20.522 | at /$bunfs/root/server:178:154285 2025-07-13 20:40:20.522 | at loadAndEvaluateModule (1:11) 2025-07-13 20:40:20.522 | 2025-07-13 20:40:20.522 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:41:20.757 | 2025-07-13 20:41:20.757 | ===================================== 2025-07-13 20:41:20.757 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:41:20.757 | ===================================== 2025-07-13 20:41:20.757 | 2025-07-13 20:41:21.026 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:41:21.026 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:41:21.110 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:41:21.110 | 2025-07-13 20:41:21.110 | ===================================== 2025-07-13 20:41:21.110 | STARTING SERVER 2025-07-13 20:41:21.110 | ===================================== 2025-07-13 20:41:21.110 | 2025-07-13 20:41:21.110 | Server starting at Sun Jul 13 19:41:21 UTC 2025 2025-07-13 20:41:21.169 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:41:21.169 | { 2025-07-13 20:41:21.169 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:41:21.169 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:41:21.169 | PORT: 5123, 2025-07-13 20:41:21.169 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:41:21.169 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:41:21.169 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:41:21.169 | SERVER_MODE: "individual", 2025-07-13 20:41:21.169 | } 2025-07-13 20:41:21.191 | 2 | // @bun 2025-07-13 20:41:21.191 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:41:21.191 | 4 | `).slice(1).join(` 2025-07-13 20:41:21.191 | 5 | `);return err.stack+=` 2025-07-13 20:41:21.191 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:41:21.191 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:41:21.191 | 2025-07-13 20:41:21.191 | TypeError: not enough arguments 2025-07-13 20:41:21.191 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:41:21.191 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:41:21.191 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:41:21.191 | at /$bunfs/root/server:178:154285 2025-07-13 20:41:21.191 | at loadAndEvaluateModule (1:11) 2025-07-13 20:41:21.191 | 2025-07-13 20:41:21.191 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:42:21.436 | 2025-07-13 20:42:21.436 | ===================================== 2025-07-13 20:42:21.436 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:42:21.436 | ===================================== 2025-07-13 20:42:21.436 | 2025-07-13 20:42:21.706 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:42:21.706 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:42:21.792 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:42:21.792 | 2025-07-13 20:42:21.792 | ===================================== 2025-07-13 20:42:21.792 | STARTING SERVER 2025-07-13 20:42:21.792 | ===================================== 2025-07-13 20:42:21.792 | 2025-07-13 20:42:21.792 | Server starting at Sun Jul 13 19:42:21 UTC 2025 2025-07-13 20:42:21.855 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:42:21.855 | { 2025-07-13 20:42:21.855 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:42:21.855 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:42:21.855 | PORT: 5123, 2025-07-13 20:42:21.855 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:42:21.855 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:42:21.855 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:42:21.855 | SERVER_MODE: "individual", 2025-07-13 20:42:21.855 | } 2025-07-13 20:42:21.878 | 2 | // @bun 2025-07-13 20:42:21.878 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:42:21.878 | 4 | `).slice(1).join(` 2025-07-13 20:42:21.878 | 5 | `);return err.stack+=` 2025-07-13 20:42:21.878 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:42:21.878 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:42:21.878 | 2025-07-13 20:42:21.878 | TypeError: not enough arguments 2025-07-13 20:42:21.878 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:42:21.878 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:42:21.878 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:42:21.878 | at /$bunfs/root/server:178:154285 2025-07-13 20:42:21.878 | at loadAndEvaluateModule (1:11) 2025-07-13 20:42:21.878 | 2025-07-13 20:42:21.878 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:43:22.104 | 2025-07-13 20:43:22.104 | ===================================== 2025-07-13 20:43:22.104 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:43:22.104 | ===================================== 2025-07-13 20:43:22.104 | 2025-07-13 20:43:22.372 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:43:22.372 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:43:22.460 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:43:22.460 | 2025-07-13 20:43:22.460 | ===================================== 2025-07-13 20:43:22.460 | STARTING SERVER 2025-07-13 20:43:22.460 | ===================================== 2025-07-13 20:43:22.460 | 2025-07-13 20:43:22.460 | Server starting at Sun Jul 13 19:43:22 UTC 2025 2025-07-13 20:43:22.522 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:43:22.522 | { 2025-07-13 20:43:22.522 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:43:22.522 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:43:22.522 | PORT: 5123, 2025-07-13 20:43:22.522 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:43:22.522 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:43:22.522 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:43:22.522 | SERVER_MODE: "individual", 2025-07-13 20:43:22.522 | } 2025-07-13 20:43:22.547 | 2 | // @bun 2025-07-13 20:43:22.547 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:43:22.547 | 4 | `).slice(1).join(` 2025-07-13 20:43:22.547 | 5 | `);return err.stack+=` 2025-07-13 20:43:22.547 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:43:22.547 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:43:22.547 | 2025-07-13 20:43:22.547 | TypeError: not enough arguments 2025-07-13 20:43:22.547 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:43:22.547 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:43:22.547 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:43:22.547 | at /$bunfs/root/server:178:154285 2025-07-13 20:43:22.547 | at loadAndEvaluateModule (1:11) 2025-07-13 20:43:22.547 | 2025-07-13 20:43:22.547 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:44:22.782 | 2025-07-13 20:44:22.782 | ===================================== 2025-07-13 20:44:22.782 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:44:22.782 | ===================================== 2025-07-13 20:44:22.782 | 2025-07-13 20:44:23.063 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:44:23.063 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:44:23.153 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:44:23.153 | 2025-07-13 20:44:23.153 | ===================================== 2025-07-13 20:44:23.153 | STARTING SERVER 2025-07-13 20:44:23.153 | ===================================== 2025-07-13 20:44:23.153 | 2025-07-13 20:44:23.153 | Server starting at Sun Jul 13 19:44:23 UTC 2025 2025-07-13 20:44:23.214 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:44:23.214 | { 2025-07-13 20:44:23.214 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:44:23.214 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:44:23.214 | PORT: 5123, 2025-07-13 20:44:23.214 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:44:23.214 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:44:23.214 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:44:23.214 | SERVER_MODE: "individual", 2025-07-13 20:44:23.214 | } 2025-07-13 20:44:23.238 | 2 | // @bun 2025-07-13 20:44:23.238 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:44:23.238 | 4 | `).slice(1).join(` 2025-07-13 20:44:23.238 | 5 | `);return err.stack+=` 2025-07-13 20:44:23.238 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:44:23.238 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:44:23.238 | 2025-07-13 20:44:23.238 | TypeError: not enough arguments 2025-07-13 20:44:23.238 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:44:23.238 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:44:23.238 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:44:23.238 | at /$bunfs/root/server:178:154285 2025-07-13 20:44:23.238 | at loadAndEvaluateModule (1:11) 2025-07-13 20:44:23.238 | 2025-07-13 20:44:23.238 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:45:23.459 | 2025-07-13 20:45:23.459 | ===================================== 2025-07-13 20:45:23.459 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:45:23.459 | ===================================== 2025-07-13 20:45:23.459 | 2025-07-13 20:45:23.732 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:45:23.732 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:45:23.823 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:45:23.823 | 2025-07-13 20:45:23.823 | ===================================== 2025-07-13 20:45:23.823 | STARTING SERVER 2025-07-13 20:45:23.823 | ===================================== 2025-07-13 20:45:23.823 | 2025-07-13 20:45:23.824 | Server starting at Sun Jul 13 19:45:23 UTC 2025 2025-07-13 20:45:23.886 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:45:23.886 | { 2025-07-13 20:45:23.886 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:45:23.886 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:45:23.886 | PORT: 5123, 2025-07-13 20:45:23.886 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:45:23.886 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:45:23.886 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:45:23.886 | SERVER_MODE: "individual", 2025-07-13 20:45:23.886 | } 2025-07-13 20:45:23.910 | 2 | // @bun 2025-07-13 20:45:23.910 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:45:23.910 | 4 | `).slice(1).join(` 2025-07-13 20:45:23.910 | 5 | `);return err.stack+=` 2025-07-13 20:45:23.910 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:45:23.910 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:45:23.910 | 2025-07-13 20:45:23.910 | TypeError: not enough arguments 2025-07-13 20:45:23.910 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:45:23.910 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:45:23.910 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:45:23.910 | at /$bunfs/root/server:178:154285 2025-07-13 20:45:23.910 | at loadAndEvaluateModule (1:11) 2025-07-13 20:45:23.910 | 2025-07-13 20:45:23.910 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:46:24.147 | 2025-07-13 20:46:24.147 | ===================================== 2025-07-13 20:46:24.147 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:46:24.147 | ===================================== 2025-07-13 20:46:24.147 | 2025-07-13 20:46:24.439 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:46:24.439 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:46:24.536 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:46:24.536 | 2025-07-13 20:46:24.536 | ===================================== 2025-07-13 20:46:24.536 | STARTING SERVER 2025-07-13 20:46:24.536 | ===================================== 2025-07-13 20:46:24.536 | 2025-07-13 20:46:24.537 | Server starting at Sun Jul 13 19:46:24 UTC 2025 2025-07-13 20:46:24.602 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:46:24.602 | { 2025-07-13 20:46:24.602 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:46:24.602 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:46:24.602 | PORT: 5123, 2025-07-13 20:46:24.602 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:46:24.602 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:46:24.602 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:46:24.602 | SERVER_MODE: "individual", 2025-07-13 20:46:24.602 | } 2025-07-13 20:46:24.626 | 2 | // @bun 2025-07-13 20:46:24.626 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:46:24.626 | 4 | `).slice(1).join(` 2025-07-13 20:46:24.626 | 5 | `);return err.stack+=` 2025-07-13 20:46:24.626 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:46:24.626 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:46:24.626 | 2025-07-13 20:46:24.626 | TypeError: not enough arguments 2025-07-13 20:46:24.626 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:46:24.626 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:46:24.626 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:46:24.626 | at /$bunfs/root/server:178:154285 2025-07-13 20:46:24.626 | at loadAndEvaluateModule (1:11) 2025-07-13 20:46:24.626 | 2025-07-13 20:46:24.626 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:47:24.845 | 2025-07-13 20:47:24.846 | ===================================== 2025-07-13 20:47:24.846 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:47:24.846 | ===================================== 2025-07-13 20:47:24.846 | 2025-07-13 20:47:25.130 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:47:25.130 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:47:25.226 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:47:25.226 | 2025-07-13 20:47:25.226 | ===================================== 2025-07-13 20:47:25.226 | STARTING SERVER 2025-07-13 20:47:25.226 | ===================================== 2025-07-13 20:47:25.226 | 2025-07-13 20:47:25.227 | Server starting at Sun Jul 13 19:47:25 UTC 2025 2025-07-13 20:47:25.292 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:47:25.292 | { 2025-07-13 20:47:25.292 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:47:25.292 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:47:25.292 | PORT: 5123, 2025-07-13 20:47:25.292 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:47:25.292 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:47:25.292 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:47:25.292 | SERVER_MODE: "individual", 2025-07-13 20:47:25.292 | } 2025-07-13 20:47:25.319 | 2 | // @bun 2025-07-13 20:47:25.319 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:47:25.319 | 4 | `).slice(1).join(` 2025-07-13 20:47:25.319 | 5 | `);return err.stack+=` 2025-07-13 20:47:25.319 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:47:25.319 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:47:25.319 | 2025-07-13 20:47:25.319 | TypeError: not enough arguments 2025-07-13 20:47:25.319 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:47:25.319 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:47:25.319 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:47:25.319 | at /$bunfs/root/server:178:154285 2025-07-13 20:47:25.319 | at loadAndEvaluateModule (1:11) 2025-07-13 20:47:25.319 | 2025-07-13 20:47:25.319 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:48:25.571 | 2025-07-13 20:48:25.571 | ===================================== 2025-07-13 20:48:25.571 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:48:25.571 | ===================================== 2025-07-13 20:48:25.571 | 2025-07-13 20:48:25.850 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:48:25.850 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:48:25.937 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:48:25.937 | 2025-07-13 20:48:25.937 | ===================================== 2025-07-13 20:48:25.937 | STARTING SERVER 2025-07-13 20:48:25.937 | ===================================== 2025-07-13 20:48:25.937 | 2025-07-13 20:48:25.937 | Server starting at Sun Jul 13 19:48:25 UTC 2025 2025-07-13 20:48:25.999 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:48:25.999 | { 2025-07-13 20:48:25.999 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:48:25.999 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:48:25.999 | PORT: 5123, 2025-07-13 20:48:25.999 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:48:25.999 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:48:25.999 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:48:25.999 | SERVER_MODE: "individual", 2025-07-13 20:48:25.999 | } 2025-07-13 20:48:26.022 | 2 | // @bun 2025-07-13 20:48:26.022 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:48:26.022 | 4 | `).slice(1).join(` 2025-07-13 20:48:26.022 | 5 | `);return err.stack+=` 2025-07-13 20:48:26.022 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:48:26.022 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:48:26.022 | 2025-07-13 20:48:26.022 | TypeError: not enough arguments 2025-07-13 20:48:26.022 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:48:26.022 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:48:26.022 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:48:26.022 | at /$bunfs/root/server:178:154285 2025-07-13 20:48:26.022 | at loadAndEvaluateModule (1:11) 2025-07-13 20:48:26.022 | 2025-07-13 20:48:26.022 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:49:26.267 | 2025-07-13 20:49:26.267 | ===================================== 2025-07-13 20:49:26.267 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:49:26.267 | ===================================== 2025-07-13 20:49:26.267 | 2025-07-13 20:49:26.543 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:49:26.543 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:49:26.628 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:49:26.628 | 2025-07-13 20:49:26.628 | ===================================== 2025-07-13 20:49:26.628 | STARTING SERVER 2025-07-13 20:49:26.628 | ===================================== 2025-07-13 20:49:26.628 | 2025-07-13 20:49:26.629 | Server starting at Sun Jul 13 19:49:26 UTC 2025 2025-07-13 20:49:26.687 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:49:26.687 | { 2025-07-13 20:49:26.687 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:49:26.687 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:49:26.687 | PORT: 5123, 2025-07-13 20:49:26.687 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:49:26.687 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:49:26.687 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:49:26.687 | SERVER_MODE: "individual", 2025-07-13 20:49:26.687 | } 2025-07-13 20:49:26.710 | 2 | // @bun 2025-07-13 20:49:26.710 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:49:26.710 | 4 | `).slice(1).join(` 2025-07-13 20:49:26.710 | 5 | `);return err.stack+=` 2025-07-13 20:49:26.710 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:49:26.710 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:49:26.710 | 2025-07-13 20:49:26.710 | TypeError: not enough arguments 2025-07-13 20:49:26.710 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:49:26.710 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:49:26.710 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:49:26.710 | at /$bunfs/root/server:178:154285 2025-07-13 20:49:26.710 | at loadAndEvaluateModule (1:11) 2025-07-13 20:49:26.710 | 2025-07-13 20:49:26.710 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:50:27.210 | 2025-07-13 20:50:27.210 | ===================================== 2025-07-13 20:50:27.210 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:50:27.210 | ===================================== 2025-07-13 20:50:27.210 | 2025-07-13 20:50:27.637 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:50:27.637 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:50:27.853 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:50:27.854 | 2025-07-13 20:50:27.854 | ===================================== 2025-07-13 20:50:27.854 | STARTING SERVER 2025-07-13 20:50:27.854 | ===================================== 2025-07-13 20:50:27.854 | 2025-07-13 20:50:27.856 | Server starting at Sun Jul 13 19:50:27 UTC 2025 2025-07-13 20:50:28.018 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:50:28.019 | { 2025-07-13 20:50:28.019 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:50:28.019 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:50:28.019 | PORT: 5123, 2025-07-13 20:50:28.019 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:50:28.019 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:50:28.019 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:50:28.019 | SERVER_MODE: "individual", 2025-07-13 20:50:28.019 | } 2025-07-13 20:50:28.060 | 2 | // @bun 2025-07-13 20:50:28.060 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:50:28.060 | 4 | `).slice(1).join(` 2025-07-13 20:50:28.060 | 5 | `);return err.stack+=` 2025-07-13 20:50:28.060 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:50:28.060 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:50:28.060 | 2025-07-13 20:50:28.060 | TypeError: not enough arguments 2025-07-13 20:50:28.060 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:50:28.060 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:50:28.060 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:50:28.060 | at /$bunfs/root/server:178:154285 2025-07-13 20:50:28.060 | at loadAndEvaluateModule (1:11) 2025-07-13 20:50:28.060 | 2025-07-13 20:50:28.060 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:51:28.422 | 2025-07-13 20:51:28.422 | ===================================== 2025-07-13 20:51:28.422 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:51:28.422 | ===================================== 2025-07-13 20:51:28.422 | 2025-07-13 20:51:28.805 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:51:28.805 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:51:28.992 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:51:28.992 | 2025-07-13 20:51:28.992 | ===================================== 2025-07-13 20:51:28.992 | STARTING SERVER 2025-07-13 20:51:28.992 | ===================================== 2025-07-13 20:51:28.992 | 2025-07-13 20:51:28.993 | Server starting at Sun Jul 13 19:51:28 UTC 2025 2025-07-13 20:51:29.134 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:51:29.135 | { 2025-07-13 20:51:29.135 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:51:29.135 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:51:29.135 | PORT: 5123, 2025-07-13 20:51:29.135 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:51:29.135 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:51:29.135 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:51:29.135 | SERVER_MODE: "individual", 2025-07-13 20:51:29.135 | } 2025-07-13 20:51:29.174 | 2 | // @bun 2025-07-13 20:51:29.174 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:51:29.174 | 4 | `).slice(1).join(` 2025-07-13 20:51:29.174 | 5 | `);return err.stack+=` 2025-07-13 20:51:29.174 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:51:29.174 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:51:29.174 | 2025-07-13 20:51:29.174 | TypeError: not enough arguments 2025-07-13 20:51:29.174 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:51:29.174 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:51:29.174 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:51:29.174 | at /$bunfs/root/server:178:154285 2025-07-13 20:51:29.174 | at loadAndEvaluateModule (1:11) 2025-07-13 20:51:29.174 | 2025-07-13 20:51:29.174 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:52:29.421 | 2025-07-13 20:52:29.421 | ===================================== 2025-07-13 20:52:29.421 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:52:29.421 | ===================================== 2025-07-13 20:52:29.421 | 2025-07-13 20:52:29.697 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:52:29.697 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:52:29.782 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:52:29.782 | 2025-07-13 20:52:29.782 | ===================================== 2025-07-13 20:52:29.782 | STARTING SERVER 2025-07-13 20:52:29.782 | ===================================== 2025-07-13 20:52:29.782 | 2025-07-13 20:52:29.783 | Server starting at Sun Jul 13 19:52:29 UTC 2025 2025-07-13 20:52:29.844 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:52:29.844 | { 2025-07-13 20:52:29.844 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:52:29.844 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:52:29.844 | PORT: 5123, 2025-07-13 20:52:29.844 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:52:29.844 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:52:29.844 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:52:29.844 | SERVER_MODE: "individual", 2025-07-13 20:52:29.844 | } 2025-07-13 20:52:29.865 | 2 | // @bun 2025-07-13 20:52:29.865 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:52:29.865 | 4 | `).slice(1).join(` 2025-07-13 20:52:29.865 | 5 | `);return err.stack+=` 2025-07-13 20:52:29.865 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:52:29.865 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:52:29.865 | 2025-07-13 20:52:29.865 | TypeError: not enough arguments 2025-07-13 20:52:29.865 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:52:29.865 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:52:29.865 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:52:29.865 | at /$bunfs/root/server:178:154285 2025-07-13 20:52:29.865 | at loadAndEvaluateModule (1:11) 2025-07-13 20:52:29.865 | 2025-07-13 20:52:29.865 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:53:30.140 | 2025-07-13 20:53:30.140 | ===================================== 2025-07-13 20:53:30.140 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:53:30.140 | ===================================== 2025-07-13 20:53:30.140 | 2025-07-13 20:53:30.481 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:53:30.481 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:53:30.639 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:53:30.639 | 2025-07-13 20:53:30.639 | ===================================== 2025-07-13 20:53:30.639 | STARTING SERVER 2025-07-13 20:53:30.639 | ===================================== 2025-07-13 20:53:30.639 | 2025-07-13 20:53:30.641 | Server starting at Sun Jul 13 19:53:30 UTC 2025 2025-07-13 20:53:30.776 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:53:30.777 | { 2025-07-13 20:53:30.777 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:53:30.777 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:53:30.777 | PORT: 5123, 2025-07-13 20:53:30.777 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:53:30.777 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:53:30.777 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:53:30.777 | SERVER_MODE: "individual", 2025-07-13 20:53:30.777 | } 2025-07-13 20:53:30.814 | 2 | // @bun 2025-07-13 20:53:30.814 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:53:30.814 | 4 | `).slice(1).join(` 2025-07-13 20:53:30.814 | 5 | `);return err.stack+=` 2025-07-13 20:53:30.814 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:53:30.814 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:53:30.814 | 2025-07-13 20:53:30.814 | TypeError: not enough arguments 2025-07-13 20:53:30.814 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:53:30.814 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:53:30.814 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:53:30.814 | at /$bunfs/root/server:178:154285 2025-07-13 20:53:30.814 | at loadAndEvaluateModule (1:11) 2025-07-13 20:53:30.814 | 2025-07-13 20:53:30.814 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:54:31.031 | 2025-07-13 20:54:31.031 | ===================================== 2025-07-13 20:54:31.031 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:54:31.031 | ===================================== 2025-07-13 20:54:31.031 | 2025-07-13 20:54:31.274 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:54:31.274 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:54:31.368 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:54:31.368 | 2025-07-13 20:54:31.368 | ===================================== 2025-07-13 20:54:31.368 | STARTING SERVER 2025-07-13 20:54:31.368 | ===================================== 2025-07-13 20:54:31.368 | 2025-07-13 20:54:31.369 | Server starting at Sun Jul 13 19:54:31 UTC 2025 2025-07-13 20:54:31.429 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:54:31.429 | { 2025-07-13 20:54:31.429 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:54:31.429 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:54:31.429 | PORT: 5123, 2025-07-13 20:54:31.429 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:54:31.429 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:54:31.429 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:54:31.429 | SERVER_MODE: "individual", 2025-07-13 20:54:31.429 | } 2025-07-13 20:54:31.451 | 2 | // @bun 2025-07-13 20:54:31.451 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:54:31.451 | 4 | `).slice(1).join(` 2025-07-13 20:54:31.451 | 5 | `);return err.stack+=` 2025-07-13 20:54:31.451 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:54:31.451 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:54:31.451 | 2025-07-13 20:54:31.451 | TypeError: not enough arguments 2025-07-13 20:54:31.451 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:54:31.451 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:54:31.451 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:54:31.451 | at /$bunfs/root/server:178:154285 2025-07-13 20:54:31.451 | at loadAndEvaluateModule (1:11) 2025-07-13 20:54:31.451 | 2025-07-13 20:54:31.451 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:55:31.668 | 2025-07-13 20:55:31.668 | ===================================== 2025-07-13 20:55:31.668 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:55:31.668 | ===================================== 2025-07-13 20:55:31.668 | 2025-07-13 20:55:31.917 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:55:31.917 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:55:32.000 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:55:32.000 | 2025-07-13 20:55:32.000 | ===================================== 2025-07-13 20:55:32.000 | STARTING SERVER 2025-07-13 20:55:32.000 | ===================================== 2025-07-13 20:55:32.000 | 2025-07-13 20:55:32.001 | Server starting at Sun Jul 13 19:55:32 UTC 2025 2025-07-13 20:55:32.058 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:55:32.058 | { 2025-07-13 20:55:32.058 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:55:32.058 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:55:32.058 | PORT: 5123, 2025-07-13 20:55:32.058 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:55:32.058 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:55:32.058 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:55:32.058 | SERVER_MODE: "individual", 2025-07-13 20:55:32.058 | } 2025-07-13 20:55:32.079 | 2 | // @bun 2025-07-13 20:55:32.079 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:55:32.079 | 4 | `).slice(1).join(` 2025-07-13 20:55:32.079 | 5 | `);return err.stack+=` 2025-07-13 20:55:32.079 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:55:32.079 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:55:32.079 | 2025-07-13 20:55:32.079 | TypeError: not enough arguments 2025-07-13 20:55:32.079 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:55:32.079 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:55:32.079 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:55:32.079 | at /$bunfs/root/server:178:154285 2025-07-13 20:55:32.079 | at loadAndEvaluateModule (1:11) 2025-07-13 20:55:32.079 | 2025-07-13 20:55:32.079 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:56:32.286 | 2025-07-13 20:56:32.286 | ===================================== 2025-07-13 20:56:32.286 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:56:32.286 | ===================================== 2025-07-13 20:56:32.286 | 2025-07-13 20:56:32.551 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:56:32.551 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:56:32.639 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:56:32.639 | 2025-07-13 20:56:32.639 | ===================================== 2025-07-13 20:56:32.639 | STARTING SERVER 2025-07-13 20:56:32.639 | ===================================== 2025-07-13 20:56:32.639 | 2025-07-13 20:56:32.640 | Server starting at Sun Jul 13 19:56:32 UTC 2025 2025-07-13 20:56:32.698 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:56:32.698 | { 2025-07-13 20:56:32.698 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:56:32.698 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:56:32.698 | PORT: 5123, 2025-07-13 20:56:32.698 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:56:32.698 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:56:32.698 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:56:32.698 | SERVER_MODE: "individual", 2025-07-13 20:56:32.698 | } 2025-07-13 20:56:32.719 | 2 | // @bun 2025-07-13 20:56:32.719 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:56:32.719 | 4 | `).slice(1).join(` 2025-07-13 20:56:32.719 | 5 | `);return err.stack+=` 2025-07-13 20:56:32.719 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:56:32.719 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:56:32.719 | 2025-07-13 20:56:32.719 | TypeError: not enough arguments 2025-07-13 20:56:32.719 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:56:32.719 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:56:32.719 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:56:32.719 | at /$bunfs/root/server:178:154285 2025-07-13 20:56:32.719 | at loadAndEvaluateModule (1:11) 2025-07-13 20:56:32.719 | 2025-07-13 20:56:32.719 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:57:33.008 | 2025-07-13 20:57:33.008 | ===================================== 2025-07-13 20:57:33.008 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:57:33.008 | ===================================== 2025-07-13 20:57:33.008 | 2025-07-13 20:57:33.355 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:57:33.355 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:57:33.524 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:57:33.524 | 2025-07-13 20:57:33.524 | ===================================== 2025-07-13 20:57:33.524 | STARTING SERVER 2025-07-13 20:57:33.524 | ===================================== 2025-07-13 20:57:33.524 | 2025-07-13 20:57:33.525 | Server starting at Sun Jul 13 19:57:33 UTC 2025 2025-07-13 20:57:33.663 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:57:33.664 | { 2025-07-13 20:57:33.664 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:57:33.664 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:57:33.664 | PORT: 5123, 2025-07-13 20:57:33.664 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:57:33.664 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:57:33.664 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:57:33.664 | SERVER_MODE: "individual", 2025-07-13 20:57:33.664 | } 2025-07-13 20:57:33.700 | 2 | // @bun 2025-07-13 20:57:33.700 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:57:33.700 | 4 | `).slice(1).join(` 2025-07-13 20:57:33.700 | 5 | `);return err.stack+=` 2025-07-13 20:57:33.700 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:57:33.700 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:57:33.700 | 2025-07-13 20:57:33.700 | TypeError: not enough arguments 2025-07-13 20:57:33.700 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:57:33.700 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:57:33.700 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:57:33.700 | at /$bunfs/root/server:178:154285 2025-07-13 20:57:33.700 | at loadAndEvaluateModule (1:11) 2025-07-13 20:57:33.700 | 2025-07-13 20:57:33.700 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:58:33.923 | 2025-07-13 20:58:33.923 | ===================================== 2025-07-13 20:58:33.923 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:58:33.923 | ===================================== 2025-07-13 20:58:33.923 | 2025-07-13 20:58:34.210 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:58:34.210 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:58:34.300 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:58:34.300 | 2025-07-13 20:58:34.300 | ===================================== 2025-07-13 20:58:34.300 | STARTING SERVER 2025-07-13 20:58:34.300 | ===================================== 2025-07-13 20:58:34.300 | 2025-07-13 20:58:34.301 | Server starting at Sun Jul 13 19:58:34 UTC 2025 2025-07-13 20:58:34.366 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:58:34.366 | { 2025-07-13 20:58:34.366 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:58:34.366 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:58:34.366 | PORT: 5123, 2025-07-13 20:58:34.366 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:58:34.366 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:58:34.366 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:58:34.366 | SERVER_MODE: "individual", 2025-07-13 20:58:34.366 | } 2025-07-13 20:58:34.389 | 2 | // @bun 2025-07-13 20:58:34.389 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:58:34.389 | 4 | `).slice(1).join(` 2025-07-13 20:58:34.389 | 5 | `);return err.stack+=` 2025-07-13 20:58:34.389 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:58:34.389 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:58:34.389 | 2025-07-13 20:58:34.389 | TypeError: not enough arguments 2025-07-13 20:58:34.389 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:58:34.389 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:58:34.389 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:58:34.389 | at /$bunfs/root/server:178:154285 2025-07-13 20:58:34.389 | at loadAndEvaluateModule (1:11) 2025-07-13 20:58:34.389 | 2025-07-13 20:58:34.389 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 20:59:34.618 | 2025-07-13 20:59:34.618 | ===================================== 2025-07-13 20:59:34.618 | RUNNING DATABASE MIGRATIONS 2025-07-13 20:59:34.618 | ===================================== 2025-07-13 20:59:34.618 | 2025-07-13 20:59:34.886 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 20:59:34.886 | Reading config file '/app/drizzle.config.ts' 2025-07-13 20:59:34.968 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 20:59:34.968 | 2025-07-13 20:59:34.968 | ===================================== 2025-07-13 20:59:34.968 | STARTING SERVER 2025-07-13 20:59:34.968 | ===================================== 2025-07-13 20:59:34.968 | 2025-07-13 20:59:34.969 | Server starting at Sun Jul 13 19:59:34 UTC 2025 2025-07-13 20:59:35.031 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 20:59:35.031 | { 2025-07-13 20:59:35.031 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 20:59:35.031 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 20:59:35.031 | PORT: 5123, 2025-07-13 20:59:35.031 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 20:59:35.031 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 20:59:35.031 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 20:59:35.031 | SERVER_MODE: "individual", 2025-07-13 20:59:35.031 | } 2025-07-13 20:59:35.052 | 2 | // @bun 2025-07-13 20:59:35.052 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 20:59:35.052 | 4 | `).slice(1).join(` 2025-07-13 20:59:35.052 | 5 | `);return err.stack+=` 2025-07-13 20:59:35.052 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 20:59:35.052 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 20:59:35.052 | 2025-07-13 20:59:35.052 | TypeError: not enough arguments 2025-07-13 20:59:35.052 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 20:59:35.052 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 20:59:35.052 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 20:59:35.052 | at /$bunfs/root/server:178:154285 2025-07-13 20:59:35.052 | at loadAndEvaluateModule (1:11) 2025-07-13 20:59:35.052 | 2025-07-13 20:59:35.052 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:00:35.285 | 2025-07-13 21:00:35.285 | ===================================== 2025-07-13 21:00:35.285 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:00:35.285 | ===================================== 2025-07-13 21:00:35.285 | 2025-07-13 21:00:35.556 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:00:35.556 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:00:35.643 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:00:35.643 | 2025-07-13 21:00:35.643 | ===================================== 2025-07-13 21:00:35.643 | STARTING SERVER 2025-07-13 21:00:35.643 | ===================================== 2025-07-13 21:00:35.643 | 2025-07-13 21:00:35.644 | Server starting at Sun Jul 13 20:00:35 UTC 2025 2025-07-13 21:00:35.701 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:00:35.701 | { 2025-07-13 21:00:35.701 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:00:35.701 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:00:35.701 | PORT: 5123, 2025-07-13 21:00:35.701 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:00:35.701 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:00:35.701 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:00:35.701 | SERVER_MODE: "individual", 2025-07-13 21:00:35.701 | } 2025-07-13 21:00:35.723 | 2 | // @bun 2025-07-13 21:00:35.723 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:00:35.723 | 4 | `).slice(1).join(` 2025-07-13 21:00:35.723 | 5 | `);return err.stack+=` 2025-07-13 21:00:35.723 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:00:35.723 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:00:35.723 | 2025-07-13 21:00:35.723 | TypeError: not enough arguments 2025-07-13 21:00:35.723 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:00:35.723 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:00:35.723 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:00:35.723 | at /$bunfs/root/server:178:154285 2025-07-13 21:00:35.723 | at loadAndEvaluateModule (1:11) 2025-07-13 21:00:35.723 | 2025-07-13 21:00:35.723 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:01:35.962 | 2025-07-13 21:01:35.962 | ===================================== 2025-07-13 21:01:35.962 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:01:35.962 | ===================================== 2025-07-13 21:01:35.962 | 2025-07-13 21:01:36.233 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:01:36.233 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:01:36.317 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:01:36.317 | 2025-07-13 21:01:36.317 | ===================================== 2025-07-13 21:01:36.317 | STARTING SERVER 2025-07-13 21:01:36.317 | ===================================== 2025-07-13 21:01:36.317 | 2025-07-13 21:01:36.317 | Server starting at Sun Jul 13 20:01:36 UTC 2025 2025-07-13 21:01:36.375 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:01:36.375 | { 2025-07-13 21:01:36.375 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:01:36.375 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:01:36.375 | PORT: 5123, 2025-07-13 21:01:36.375 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:01:36.375 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:01:36.375 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:01:36.375 | SERVER_MODE: "individual", 2025-07-13 21:01:36.375 | } 2025-07-13 21:01:36.395 | 2 | // @bun 2025-07-13 21:01:36.395 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:01:36.395 | 4 | `).slice(1).join(` 2025-07-13 21:01:36.395 | 5 | `);return err.stack+=` 2025-07-13 21:01:36.395 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:01:36.395 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:01:36.395 | 2025-07-13 21:01:36.395 | TypeError: not enough arguments 2025-07-13 21:01:36.395 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:01:36.395 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:01:36.395 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:01:36.395 | at /$bunfs/root/server:178:154285 2025-07-13 21:01:36.395 | at loadAndEvaluateModule (1:11) 2025-07-13 21:01:36.395 | 2025-07-13 21:01:36.395 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:02:36.702 | 2025-07-13 21:02:36.703 | ===================================== 2025-07-13 21:02:36.703 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:02:36.703 | ===================================== 2025-07-13 21:02:36.703 | 2025-07-13 21:02:37.043 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:02:37.043 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:02:37.194 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:02:37.194 | 2025-07-13 21:02:37.194 | ===================================== 2025-07-13 21:02:37.194 | STARTING SERVER 2025-07-13 21:02:37.194 | ===================================== 2025-07-13 21:02:37.194 | 2025-07-13 21:02:37.195 | Server starting at Sun Jul 13 20:02:37 UTC 2025 2025-07-13 21:02:37.324 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:02:37.325 | { 2025-07-13 21:02:37.325 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:02:37.325 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:02:37.325 | PORT: 5123, 2025-07-13 21:02:37.325 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:02:37.325 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:02:37.325 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:02:37.325 | SERVER_MODE: "individual", 2025-07-13 21:02:37.325 | } 2025-07-13 21:02:37.362 | 2 | // @bun 2025-07-13 21:02:37.362 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:02:37.362 | 4 | `).slice(1).join(` 2025-07-13 21:02:37.362 | 5 | `);return err.stack+=` 2025-07-13 21:02:37.362 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:02:37.362 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:02:37.362 | 2025-07-13 21:02:37.362 | TypeError: not enough arguments 2025-07-13 21:02:37.362 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:02:37.362 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:02:37.362 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:02:37.362 | at /$bunfs/root/server:178:154285 2025-07-13 21:02:37.362 | at loadAndEvaluateModule (1:11) 2025-07-13 21:02:37.362 | 2025-07-13 21:02:37.363 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:03:37.579 | 2025-07-13 21:03:37.579 | ===================================== 2025-07-13 21:03:37.579 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:03:37.579 | ===================================== 2025-07-13 21:03:37.579 | 2025-07-13 21:03:37.855 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:03:37.856 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:03:37.943 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:03:37.943 | 2025-07-13 21:03:37.943 | ===================================== 2025-07-13 21:03:37.943 | STARTING SERVER 2025-07-13 21:03:37.943 | ===================================== 2025-07-13 21:03:37.943 | 2025-07-13 21:03:37.944 | Server starting at Sun Jul 13 20:03:37 UTC 2025 2025-07-13 21:03:38.003 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:03:38.003 | { 2025-07-13 21:03:38.003 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:03:38.003 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:03:38.003 | PORT: 5123, 2025-07-13 21:03:38.003 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:03:38.003 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:03:38.003 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:03:38.003 | SERVER_MODE: "individual", 2025-07-13 21:03:38.003 | } 2025-07-13 21:03:38.024 | 2 | // @bun 2025-07-13 21:03:38.024 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:03:38.024 | 4 | `).slice(1).join(` 2025-07-13 21:03:38.024 | 5 | `);return err.stack+=` 2025-07-13 21:03:38.024 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:03:38.024 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:03:38.024 | 2025-07-13 21:03:38.024 | TypeError: not enough arguments 2025-07-13 21:03:38.024 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:03:38.024 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:03:38.024 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:03:38.024 | at /$bunfs/root/server:178:154285 2025-07-13 21:03:38.024 | at loadAndEvaluateModule (1:11) 2025-07-13 21:03:38.024 | 2025-07-13 21:03:38.024 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:04:38.246 | 2025-07-13 21:04:38.246 | ===================================== 2025-07-13 21:04:38.246 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:04:38.246 | ===================================== 2025-07-13 21:04:38.246 | 2025-07-13 21:04:38.515 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:04:38.516 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:04:38.610 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:04:38.611 | 2025-07-13 21:04:38.611 | ===================================== 2025-07-13 21:04:38.611 | STARTING SERVER 2025-07-13 21:04:38.611 | ===================================== 2025-07-13 21:04:38.611 | 2025-07-13 21:04:38.611 | Server starting at Sun Jul 13 20:04:38 UTC 2025 2025-07-13 21:04:38.669 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:04:38.669 | { 2025-07-13 21:04:38.669 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:04:38.669 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:04:38.669 | PORT: 5123, 2025-07-13 21:04:38.669 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:04:38.669 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:04:38.669 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:04:38.669 | SERVER_MODE: "individual", 2025-07-13 21:04:38.669 | } 2025-07-13 21:04:38.690 | 2 | // @bun 2025-07-13 21:04:38.690 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:04:38.690 | 4 | `).slice(1).join(` 2025-07-13 21:04:38.690 | 5 | `);return err.stack+=` 2025-07-13 21:04:38.690 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:04:38.690 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:04:38.690 | 2025-07-13 21:04:38.690 | TypeError: not enough arguments 2025-07-13 21:04:38.690 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:04:38.690 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:04:38.690 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:04:38.690 | at /$bunfs/root/server:178:154285 2025-07-13 21:04:38.690 | at loadAndEvaluateModule (1:11) 2025-07-13 21:04:38.690 | 2025-07-13 21:04:38.690 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:05:39.006 | 2025-07-13 21:05:39.007 | ===================================== 2025-07-13 21:05:39.007 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:05:39.007 | ===================================== 2025-07-13 21:05:39.007 | 2025-07-13 21:05:39.341 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:05:39.341 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:05:39.491 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:05:39.491 | 2025-07-13 21:05:39.491 | ===================================== 2025-07-13 21:05:39.491 | STARTING SERVER 2025-07-13 21:05:39.491 | ===================================== 2025-07-13 21:05:39.491 | 2025-07-13 21:05:39.492 | Server starting at Sun Jul 13 20:05:39 UTC 2025 2025-07-13 21:05:39.621 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:05:39.622 | { 2025-07-13 21:05:39.622 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:05:39.622 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:05:39.622 | PORT: 5123, 2025-07-13 21:05:39.622 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:05:39.622 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:05:39.622 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:05:39.622 | SERVER_MODE: "individual", 2025-07-13 21:05:39.622 | } 2025-07-13 21:05:39.658 | 2 | // @bun 2025-07-13 21:05:39.658 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:05:39.658 | 4 | `).slice(1).join(` 2025-07-13 21:05:39.658 | 5 | `);return err.stack+=` 2025-07-13 21:05:39.658 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:05:39.658 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:05:39.658 | 2025-07-13 21:05:39.658 | TypeError: not enough arguments 2025-07-13 21:05:39.658 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:05:39.658 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:05:39.658 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:05:39.658 | at /$bunfs/root/server:178:154285 2025-07-13 21:05:39.658 | at loadAndEvaluateModule (1:11) 2025-07-13 21:05:39.658 | 2025-07-13 21:05:39.658 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:06:39.890 | 2025-07-13 21:06:39.890 | ===================================== 2025-07-13 21:06:39.890 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:06:39.890 | ===================================== 2025-07-13 21:06:39.890 | 2025-07-13 21:06:40.172 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:06:40.172 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:06:40.259 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:06:40.259 | 2025-07-13 21:06:40.259 | ===================================== 2025-07-13 21:06:40.259 | STARTING SERVER 2025-07-13 21:06:40.259 | ===================================== 2025-07-13 21:06:40.259 | 2025-07-13 21:06:40.260 | Server starting at Sun Jul 13 20:06:40 UTC 2025 2025-07-13 21:06:40.317 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:06:40.317 | { 2025-07-13 21:06:40.317 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:06:40.317 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:06:40.317 | PORT: 5123, 2025-07-13 21:06:40.317 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:06:40.317 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:06:40.317 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:06:40.317 | SERVER_MODE: "individual", 2025-07-13 21:06:40.317 | } 2025-07-13 21:06:40.339 | 2 | // @bun 2025-07-13 21:06:40.339 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:06:40.339 | 4 | `).slice(1).join(` 2025-07-13 21:06:40.339 | 5 | `);return err.stack+=` 2025-07-13 21:06:40.339 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:06:40.339 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:06:40.339 | 2025-07-13 21:06:40.339 | TypeError: not enough arguments 2025-07-13 21:06:40.339 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:06:40.339 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:06:40.339 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:06:40.339 | at /$bunfs/root/server:178:154285 2025-07-13 21:06:40.339 | at loadAndEvaluateModule (1:11) 2025-07-13 21:06:40.339 | 2025-07-13 21:06:40.339 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:07:40.613 | 2025-07-13 21:07:40.613 | ===================================== 2025-07-13 21:07:40.613 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:07:40.613 | ===================================== 2025-07-13 21:07:40.613 | 2025-07-13 21:07:40.959 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:07:40.959 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:07:41.119 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:07:41.119 | 2025-07-13 21:07:41.119 | ===================================== 2025-07-13 21:07:41.119 | STARTING SERVER 2025-07-13 21:07:41.119 | ===================================== 2025-07-13 21:07:41.119 | 2025-07-13 21:07:41.121 | Server starting at Sun Jul 13 20:07:41 UTC 2025 2025-07-13 21:07:41.260 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:07:41.261 | { 2025-07-13 21:07:41.261 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:07:41.261 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:07:41.261 | PORT: 5123, 2025-07-13 21:07:41.261 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:07:41.261 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:07:41.261 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:07:41.261 | SERVER_MODE: "individual", 2025-07-13 21:07:41.261 | } 2025-07-13 21:07:41.300 | 2 | // @bun 2025-07-13 21:07:41.300 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:07:41.300 | 4 | `).slice(1).join(` 2025-07-13 21:07:41.300 | 5 | `);return err.stack+=` 2025-07-13 21:07:41.300 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:07:41.300 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:07:41.300 | 2025-07-13 21:07:41.300 | TypeError: not enough arguments 2025-07-13 21:07:41.300 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:07:41.300 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:07:41.300 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:07:41.300 | at /$bunfs/root/server:178:154285 2025-07-13 21:07:41.300 | at loadAndEvaluateModule (1:11) 2025-07-13 21:07:41.300 | 2025-07-13 21:07:41.300 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:08:41.534 | 2025-07-13 21:08:41.534 | ===================================== 2025-07-13 21:08:41.534 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:08:41.534 | ===================================== 2025-07-13 21:08:41.534 | 2025-07-13 21:08:41.818 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:08:41.818 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:08:41.909 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:08:41.909 | 2025-07-13 21:08:41.909 | ===================================== 2025-07-13 21:08:41.909 | STARTING SERVER 2025-07-13 21:08:41.909 | ===================================== 2025-07-13 21:08:41.909 | 2025-07-13 21:08:41.910 | Server starting at Sun Jul 13 20:08:41 UTC 2025 2025-07-13 21:08:41.971 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:08:41.971 | { 2025-07-13 21:08:41.971 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:08:41.971 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:08:41.971 | PORT: 5123, 2025-07-13 21:08:41.971 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:08:41.971 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:08:41.971 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:08:41.971 | SERVER_MODE: "individual", 2025-07-13 21:08:41.971 | } 2025-07-13 21:08:41.995 | 2 | // @bun 2025-07-13 21:08:41.995 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:08:41.995 | 4 | `).slice(1).join(` 2025-07-13 21:08:41.995 | 5 | `);return err.stack+=` 2025-07-13 21:08:41.995 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:08:41.995 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:08:41.995 | 2025-07-13 21:08:41.995 | TypeError: not enough arguments 2025-07-13 21:08:41.995 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:08:41.995 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:08:41.995 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:08:41.995 | at /$bunfs/root/server:178:154285 2025-07-13 21:08:41.995 | at loadAndEvaluateModule (1:11) 2025-07-13 21:08:41.995 | 2025-07-13 21:08:41.995 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:09:42.296 | 2025-07-13 21:09:42.297 | ===================================== 2025-07-13 21:09:42.297 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:09:42.297 | ===================================== 2025-07-13 21:09:42.297 | 2025-07-13 21:09:42.643 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:09:42.643 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:09:42.805 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:09:42.805 | 2025-07-13 21:09:42.805 | ===================================== 2025-07-13 21:09:42.805 | STARTING SERVER 2025-07-13 21:09:42.805 | ===================================== 2025-07-13 21:09:42.805 | 2025-07-13 21:09:42.807 | Server starting at Sun Jul 13 20:09:42 UTC 2025 2025-07-13 21:09:42.943 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:09:42.944 | { 2025-07-13 21:09:42.944 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:09:42.944 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:09:42.944 | PORT: 5123, 2025-07-13 21:09:42.944 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:09:42.944 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:09:42.944 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:09:42.944 | SERVER_MODE: "individual", 2025-07-13 21:09:42.944 | } 2025-07-13 21:09:42.980 | 2 | // @bun 2025-07-13 21:09:42.980 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:09:42.980 | 4 | `).slice(1).join(` 2025-07-13 21:09:42.980 | 5 | `);return err.stack+=` 2025-07-13 21:09:42.980 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:09:42.980 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:09:42.980 | 2025-07-13 21:09:42.980 | TypeError: not enough arguments 2025-07-13 21:09:42.980 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:09:42.980 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:09:42.980 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:09:42.980 | at /$bunfs/root/server:178:154285 2025-07-13 21:09:42.980 | at loadAndEvaluateModule (1:11) 2025-07-13 21:09:42.980 | 2025-07-13 21:09:42.980 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:10:43.252 | 2025-07-13 21:10:43.252 | ===================================== 2025-07-13 21:10:43.253 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:10:43.253 | ===================================== 2025-07-13 21:10:43.253 | 2025-07-13 21:10:43.599 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:10:43.599 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:10:43.756 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:10:43.756 | 2025-07-13 21:10:43.756 | ===================================== 2025-07-13 21:10:43.756 | STARTING SERVER 2025-07-13 21:10:43.756 | ===================================== 2025-07-13 21:10:43.756 | 2025-07-13 21:10:43.757 | Server starting at Sun Jul 13 20:10:43 UTC 2025 2025-07-13 21:10:43.886 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:10:43.887 | { 2025-07-13 21:10:43.887 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:10:43.887 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:10:43.887 | PORT: 5123, 2025-07-13 21:10:43.887 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:10:43.887 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:10:43.887 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:10:43.887 | SERVER_MODE: "individual", 2025-07-13 21:10:43.887 | } 2025-07-13 21:10:43.922 | 2 | // @bun 2025-07-13 21:10:43.922 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:10:43.922 | 4 | `).slice(1).join(` 2025-07-13 21:10:43.922 | 5 | `);return err.stack+=` 2025-07-13 21:10:43.922 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:10:43.922 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:10:43.922 | 2025-07-13 21:10:43.922 | TypeError: not enough arguments 2025-07-13 21:10:43.922 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:10:43.922 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:10:43.922 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:10:43.922 | at /$bunfs/root/server:178:154285 2025-07-13 21:10:43.922 | at loadAndEvaluateModule (1:11) 2025-07-13 21:10:43.922 | 2025-07-13 21:10:43.922 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:11:44.166 | 2025-07-13 21:11:44.166 | ===================================== 2025-07-13 21:11:44.166 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:11:44.166 | ===================================== 2025-07-13 21:11:44.166 | 2025-07-13 21:11:44.451 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:11:44.451 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:11:44.542 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:11:44.542 | 2025-07-13 21:11:44.542 | ===================================== 2025-07-13 21:11:44.542 | STARTING SERVER 2025-07-13 21:11:44.542 | ===================================== 2025-07-13 21:11:44.542 | 2025-07-13 21:11:44.543 | Server starting at Sun Jul 13 20:11:44 UTC 2025 2025-07-13 21:11:44.602 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:11:44.602 | { 2025-07-13 21:11:44.602 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:11:44.602 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:11:44.602 | PORT: 5123, 2025-07-13 21:11:44.602 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:11:44.602 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:11:44.602 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:11:44.602 | SERVER_MODE: "individual", 2025-07-13 21:11:44.602 | } 2025-07-13 21:11:44.623 | 2 | // @bun 2025-07-13 21:11:44.623 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:11:44.623 | 4 | `).slice(1).join(` 2025-07-13 21:11:44.623 | 5 | `);return err.stack+=` 2025-07-13 21:11:44.623 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:11:44.623 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:11:44.623 | 2025-07-13 21:11:44.623 | TypeError: not enough arguments 2025-07-13 21:11:44.623 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:11:44.623 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:11:44.623 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:11:44.623 | at /$bunfs/root/server:178:154285 2025-07-13 21:11:44.623 | at loadAndEvaluateModule (1:11) 2025-07-13 21:11:44.623 | 2025-07-13 21:11:44.623 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:12:44.876 | 2025-07-13 21:12:44.876 | ===================================== 2025-07-13 21:12:44.876 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:12:44.876 | ===================================== 2025-07-13 21:12:44.876 | 2025-07-13 21:12:45.213 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:12:45.213 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:12:45.366 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:12:45.366 | 2025-07-13 21:12:45.366 | ===================================== 2025-07-13 21:12:45.366 | STARTING SERVER 2025-07-13 21:12:45.366 | ===================================== 2025-07-13 21:12:45.366 | 2025-07-13 21:12:45.367 | Server starting at Sun Jul 13 20:12:45 UTC 2025 2025-07-13 21:12:45.500 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:12:45.501 | { 2025-07-13 21:12:45.501 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:12:45.501 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:12:45.501 | PORT: 5123, 2025-07-13 21:12:45.501 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:12:45.501 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:12:45.501 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:12:45.501 | SERVER_MODE: "individual", 2025-07-13 21:12:45.501 | } 2025-07-13 21:12:45.537 | 2 | // @bun 2025-07-13 21:12:45.537 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:12:45.537 | 4 | `).slice(1).join(` 2025-07-13 21:12:45.537 | 5 | `);return err.stack+=` 2025-07-13 21:12:45.537 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:12:45.537 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:12:45.537 | 2025-07-13 21:12:45.537 | TypeError: not enough arguments 2025-07-13 21:12:45.537 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:12:45.537 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:12:45.537 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:12:45.537 | at /$bunfs/root/server:178:154285 2025-07-13 21:12:45.537 | at loadAndEvaluateModule (1:11) 2025-07-13 21:12:45.537 | 2025-07-13 21:12:45.537 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:13:45.749 | 2025-07-13 21:13:45.749 | ===================================== 2025-07-13 21:13:45.749 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:13:45.749 | ===================================== 2025-07-13 21:13:45.749 | 2025-07-13 21:13:46.029 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:13:46.029 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:13:46.119 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:13:46.119 | 2025-07-13 21:13:46.119 | ===================================== 2025-07-13 21:13:46.119 | STARTING SERVER 2025-07-13 21:13:46.119 | ===================================== 2025-07-13 21:13:46.119 | 2025-07-13 21:13:46.119 | Server starting at Sun Jul 13 20:13:46 UTC 2025 2025-07-13 21:13:46.181 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:13:46.182 | { 2025-07-13 21:13:46.182 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:13:46.182 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:13:46.182 | PORT: 5123, 2025-07-13 21:13:46.182 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:13:46.182 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:13:46.182 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:13:46.182 | SERVER_MODE: "individual", 2025-07-13 21:13:46.182 | } 2025-07-13 21:13:46.205 | 2 | // @bun 2025-07-13 21:13:46.205 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:13:46.205 | 4 | `).slice(1).join(` 2025-07-13 21:13:46.205 | 5 | `);return err.stack+=` 2025-07-13 21:13:46.205 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:13:46.205 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:13:46.205 | 2025-07-13 21:13:46.205 | TypeError: not enough arguments 2025-07-13 21:13:46.205 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:13:46.205 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:13:46.205 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:13:46.205 | at /$bunfs/root/server:178:154285 2025-07-13 21:13:46.205 | at loadAndEvaluateModule (1:11) 2025-07-13 21:13:46.205 | 2025-07-13 21:13:46.205 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:14:46.532 | 2025-07-13 21:14:46.532 | ===================================== 2025-07-13 21:14:46.532 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:14:46.532 | ===================================== 2025-07-13 21:14:46.532 | 2025-07-13 21:14:46.874 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:14:46.874 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:14:47.033 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:14:47.033 | 2025-07-13 21:14:47.033 | ===================================== 2025-07-13 21:14:47.033 | STARTING SERVER 2025-07-13 21:14:47.033 | ===================================== 2025-07-13 21:14:47.033 | 2025-07-13 21:14:47.035 | Server starting at Sun Jul 13 20:14:47 UTC 2025 2025-07-13 21:14:47.171 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:14:47.172 | { 2025-07-13 21:14:47.172 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:14:47.172 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:14:47.172 | PORT: 5123, 2025-07-13 21:14:47.172 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:14:47.172 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:14:47.172 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:14:47.172 | SERVER_MODE: "individual", 2025-07-13 21:14:47.172 | } 2025-07-13 21:14:47.208 | 2 | // @bun 2025-07-13 21:14:47.208 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:14:47.208 | 4 | `).slice(1).join(` 2025-07-13 21:14:47.208 | 5 | `);return err.stack+=` 2025-07-13 21:14:47.208 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:14:47.208 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:14:47.208 | 2025-07-13 21:14:47.208 | TypeError: not enough arguments 2025-07-13 21:14:47.208 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:14:47.208 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:14:47.208 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:14:47.208 | at /$bunfs/root/server:178:154285 2025-07-13 21:14:47.208 | at loadAndEvaluateModule (1:11) 2025-07-13 21:14:47.208 | 2025-07-13 21:14:47.208 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:15:47.404 | 2025-07-13 21:15:47.404 | ===================================== 2025-07-13 21:15:47.404 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:15:47.404 | ===================================== 2025-07-13 21:15:47.404 | 2025-07-13 21:15:47.687 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:15:47.687 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:15:47.777 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:15:47.777 | 2025-07-13 21:15:47.777 | ===================================== 2025-07-13 21:15:47.777 | STARTING SERVER 2025-07-13 21:15:47.777 | ===================================== 2025-07-13 21:15:47.777 | 2025-07-13 21:15:47.778 | Server starting at Sun Jul 13 20:15:47 UTC 2025 2025-07-13 21:15:47.834 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:15:47.834 | { 2025-07-13 21:15:47.834 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:15:47.834 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:15:47.834 | PORT: 5123, 2025-07-13 21:15:47.834 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:15:47.834 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:15:47.834 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:15:47.834 | SERVER_MODE: "individual", 2025-07-13 21:15:47.834 | } 2025-07-13 21:15:47.858 | 2 | // @bun 2025-07-13 21:15:47.858 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:15:47.858 | 4 | `).slice(1).join(` 2025-07-13 21:15:47.858 | 5 | `);return err.stack+=` 2025-07-13 21:15:47.858 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:15:47.858 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:15:47.858 | 2025-07-13 21:15:47.858 | TypeError: not enough arguments 2025-07-13 21:15:47.858 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:15:47.858 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:15:47.858 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:15:47.858 | at /$bunfs/root/server:178:154285 2025-07-13 21:15:47.858 | at loadAndEvaluateModule (1:11) 2025-07-13 21:15:47.858 | 2025-07-13 21:15:47.858 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:16:48.124 | 2025-07-13 21:16:48.125 | ===================================== 2025-07-13 21:16:48.125 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:16:48.125 | ===================================== 2025-07-13 21:16:48.125 | 2025-07-13 21:16:48.458 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:16:48.458 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:16:48.610 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:16:48.610 | 2025-07-13 21:16:48.610 | ===================================== 2025-07-13 21:16:48.610 | STARTING SERVER 2025-07-13 21:16:48.610 | ===================================== 2025-07-13 21:16:48.610 | 2025-07-13 21:16:48.612 | Server starting at Sun Jul 13 20:16:48 UTC 2025 2025-07-13 21:16:48.745 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:16:48.746 | { 2025-07-13 21:16:48.746 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:16:48.746 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:16:48.746 | PORT: 5123, 2025-07-13 21:16:48.746 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:16:48.746 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:16:48.746 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:16:48.746 | SERVER_MODE: "individual", 2025-07-13 21:16:48.746 | } 2025-07-13 21:16:48.783 | 2 | // @bun 2025-07-13 21:16:48.783 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:16:48.783 | 4 | `).slice(1).join(` 2025-07-13 21:16:48.783 | 5 | `);return err.stack+=` 2025-07-13 21:16:48.783 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:16:48.783 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:16:48.783 | 2025-07-13 21:16:48.783 | TypeError: not enough arguments 2025-07-13 21:16:48.783 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:16:48.783 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:16:48.783 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:16:48.783 | at /$bunfs/root/server:178:154285 2025-07-13 21:16:48.783 | at loadAndEvaluateModule (1:11) 2025-07-13 21:16:48.783 | 2025-07-13 21:16:48.783 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:17:48.979 | 2025-07-13 21:17:48.979 | ===================================== 2025-07-13 21:17:48.979 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:17:48.979 | ===================================== 2025-07-13 21:17:48.979 | 2025-07-13 21:17:49.261 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:17:49.262 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:17:49.349 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:17:49.349 | 2025-07-13 21:17:49.349 | ===================================== 2025-07-13 21:17:49.349 | STARTING SERVER 2025-07-13 21:17:49.350 | ===================================== 2025-07-13 21:17:49.350 | 2025-07-13 21:17:49.350 | Server starting at Sun Jul 13 20:17:49 UTC 2025 2025-07-13 21:17:49.411 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:17:49.411 | { 2025-07-13 21:17:49.411 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:17:49.411 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:17:49.411 | PORT: 5123, 2025-07-13 21:17:49.411 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:17:49.411 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:17:49.411 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:17:49.411 | SERVER_MODE: "individual", 2025-07-13 21:17:49.411 | } 2025-07-13 21:17:49.433 | 2 | // @bun 2025-07-13 21:17:49.433 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:17:49.433 | 4 | `).slice(1).join(` 2025-07-13 21:17:49.433 | 5 | `);return err.stack+=` 2025-07-13 21:17:49.433 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:17:49.433 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:17:49.433 | 2025-07-13 21:17:49.433 | TypeError: not enough arguments 2025-07-13 21:17:49.433 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:17:49.433 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:17:49.433 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:17:49.433 | at /$bunfs/root/server:178:154285 2025-07-13 21:17:49.433 | at loadAndEvaluateModule (1:11) 2025-07-13 21:17:49.433 | 2025-07-13 21:17:49.433 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:18:49.657 | 2025-07-13 21:18:49.657 | ===================================== 2025-07-13 21:18:49.657 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:18:49.657 | ===================================== 2025-07-13 21:18:49.657 | 2025-07-13 21:18:49.930 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:18:49.930 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:18:50.016 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:18:50.016 | 2025-07-13 21:18:50.016 | ===================================== 2025-07-13 21:18:50.016 | STARTING SERVER 2025-07-13 21:18:50.016 | ===================================== 2025-07-13 21:18:50.016 | 2025-07-13 21:18:50.017 | Server starting at Sun Jul 13 20:18:50 UTC 2025 2025-07-13 21:18:50.075 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:18:50.075 | { 2025-07-13 21:18:50.075 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:18:50.075 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:18:50.075 | PORT: 5123, 2025-07-13 21:18:50.075 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:18:50.075 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:18:50.075 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:18:50.075 | SERVER_MODE: "individual", 2025-07-13 21:18:50.075 | } 2025-07-13 21:18:50.097 | 2 | // @bun 2025-07-13 21:18:50.097 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:18:50.097 | 4 | `).slice(1).join(` 2025-07-13 21:18:50.097 | 5 | `);return err.stack+=` 2025-07-13 21:18:50.097 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:18:50.097 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:18:50.097 | 2025-07-13 21:18:50.097 | TypeError: not enough arguments 2025-07-13 21:18:50.097 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:18:50.097 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:18:50.097 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:18:50.097 | at /$bunfs/root/server:178:154285 2025-07-13 21:18:50.097 | at loadAndEvaluateModule (1:11) 2025-07-13 21:18:50.097 | 2025-07-13 21:18:50.097 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:19:50.314 | 2025-07-13 21:19:50.314 | ===================================== 2025-07-13 21:19:50.314 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:19:50.314 | ===================================== 2025-07-13 21:19:50.314 | 2025-07-13 21:19:50.619 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:19:50.619 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:19:50.707 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:19:50.707 | 2025-07-13 21:19:50.707 | ===================================== 2025-07-13 21:19:50.707 | STARTING SERVER 2025-07-13 21:19:50.707 | ===================================== 2025-07-13 21:19:50.707 | 2025-07-13 21:19:50.708 | Server starting at Sun Jul 13 20:19:50 UTC 2025 2025-07-13 21:19:50.768 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:19:50.768 | { 2025-07-13 21:19:50.768 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:19:50.768 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:19:50.768 | PORT: 5123, 2025-07-13 21:19:50.768 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:19:50.768 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:19:50.768 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:19:50.768 | SERVER_MODE: "individual", 2025-07-13 21:19:50.768 | } 2025-07-13 21:19:50.794 | 2 | // @bun 2025-07-13 21:19:50.794 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:19:50.794 | 4 | `).slice(1).join(` 2025-07-13 21:19:50.794 | 5 | `);return err.stack+=` 2025-07-13 21:19:50.794 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:19:50.794 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:19:50.794 | 2025-07-13 21:19:50.794 | TypeError: not enough arguments 2025-07-13 21:19:50.794 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:19:50.794 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:19:50.794 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:19:50.794 | at /$bunfs/root/server:178:154285 2025-07-13 21:19:50.794 | at loadAndEvaluateModule (1:11) 2025-07-13 21:19:50.794 | 2025-07-13 21:19:50.794 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:20:51.114 | 2025-07-13 21:20:51.114 | ===================================== 2025-07-13 21:20:51.114 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:20:51.114 | ===================================== 2025-07-13 21:20:51.114 | 2025-07-13 21:20:51.461 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:20:51.461 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:20:51.610 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:20:51.610 | 2025-07-13 21:20:51.610 | ===================================== 2025-07-13 21:20:51.610 | STARTING SERVER 2025-07-13 21:20:51.610 | ===================================== 2025-07-13 21:20:51.610 | 2025-07-13 21:20:51.611 | Server starting at Sun Jul 13 20:20:51 UTC 2025 2025-07-13 21:20:51.760 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:20:51.761 | { 2025-07-13 21:20:51.761 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:20:51.761 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:20:51.761 | PORT: 5123, 2025-07-13 21:20:51.761 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:20:51.761 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:20:51.761 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:20:51.761 | SERVER_MODE: "individual", 2025-07-13 21:20:51.761 | } 2025-07-13 21:20:51.798 | 2 | // @bun 2025-07-13 21:20:51.798 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:20:51.798 | 4 | `).slice(1).join(` 2025-07-13 21:20:51.798 | 5 | `);return err.stack+=` 2025-07-13 21:20:51.798 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:20:51.798 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:20:51.798 | 2025-07-13 21:20:51.798 | TypeError: not enough arguments 2025-07-13 21:20:51.798 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:20:51.798 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:20:51.798 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:20:51.798 | at /$bunfs/root/server:178:154285 2025-07-13 21:20:51.798 | at loadAndEvaluateModule (1:11) 2025-07-13 21:20:51.799 | 2025-07-13 21:20:51.799 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:21:52.030 | 2025-07-13 21:21:52.030 | ===================================== 2025-07-13 21:21:52.030 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:21:52.030 | ===================================== 2025-07-13 21:21:52.030 | 2025-07-13 21:21:52.297 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:21:52.297 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:21:52.389 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:21:52.389 | 2025-07-13 21:21:52.389 | ===================================== 2025-07-13 21:21:52.389 | STARTING SERVER 2025-07-13 21:21:52.389 | ===================================== 2025-07-13 21:21:52.389 | 2025-07-13 21:21:52.390 | Server starting at Sun Jul 13 20:21:52 UTC 2025 2025-07-13 21:21:52.450 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:21:52.450 | { 2025-07-13 21:21:52.450 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:21:52.450 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:21:52.450 | PORT: 5123, 2025-07-13 21:21:52.450 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:21:52.450 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:21:52.450 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:21:52.450 | SERVER_MODE: "individual", 2025-07-13 21:21:52.450 | } 2025-07-13 21:21:52.472 | 2 | // @bun 2025-07-13 21:21:52.472 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:21:52.472 | 4 | `).slice(1).join(` 2025-07-13 21:21:52.472 | 5 | `);return err.stack+=` 2025-07-13 21:21:52.472 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:21:52.472 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:21:52.472 | 2025-07-13 21:21:52.472 | TypeError: not enough arguments 2025-07-13 21:21:52.472 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:21:52.472 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:21:52.472 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:21:52.472 | at /$bunfs/root/server:178:154285 2025-07-13 21:21:52.472 | at loadAndEvaluateModule (1:11) 2025-07-13 21:21:52.472 | 2025-07-13 21:21:52.472 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:22:52.788 | 2025-07-13 21:22:52.788 | ===================================== 2025-07-13 21:22:52.788 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:22:52.788 | ===================================== 2025-07-13 21:22:52.788 | 2025-07-13 21:22:53.134 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:22:53.134 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:22:53.287 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:22:53.288 | 2025-07-13 21:22:53.288 | ===================================== 2025-07-13 21:22:53.288 | STARTING SERVER 2025-07-13 21:22:53.288 | ===================================== 2025-07-13 21:22:53.288 | 2025-07-13 21:22:53.289 | Server starting at Sun Jul 13 20:22:53 UTC 2025 2025-07-13 21:22:53.418 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:22:53.419 | { 2025-07-13 21:22:53.419 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:22:53.419 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:22:53.419 | PORT: 5123, 2025-07-13 21:22:53.419 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:22:53.419 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:22:53.419 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:22:53.419 | SERVER_MODE: "individual", 2025-07-13 21:22:53.419 | } 2025-07-13 21:22:53.455 | 2 | // @bun 2025-07-13 21:22:53.455 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:22:53.455 | 4 | `).slice(1).join(` 2025-07-13 21:22:53.455 | 5 | `);return err.stack+=` 2025-07-13 21:22:53.455 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:22:53.455 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:22:53.455 | 2025-07-13 21:22:53.455 | TypeError: not enough arguments 2025-07-13 21:22:53.455 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:22:53.455 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:22:53.455 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:22:53.455 | at /$bunfs/root/server:178:154285 2025-07-13 21:22:53.455 | at loadAndEvaluateModule (1:11) 2025-07-13 21:22:53.455 | 2025-07-13 21:22:53.455 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:23:53.702 | 2025-07-13 21:23:53.702 | ===================================== 2025-07-13 21:23:53.702 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:23:53.702 | ===================================== 2025-07-13 21:23:53.702 | 2025-07-13 21:23:53.980 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:23:53.980 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:23:54.069 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:23:54.069 | 2025-07-13 21:23:54.069 | ===================================== 2025-07-13 21:23:54.069 | STARTING SERVER 2025-07-13 21:23:54.069 | ===================================== 2025-07-13 21:23:54.069 | 2025-07-13 21:23:54.070 | Server starting at Sun Jul 13 20:23:54 UTC 2025 2025-07-13 21:23:54.129 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:23:54.129 | { 2025-07-13 21:23:54.129 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:23:54.129 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:23:54.129 | PORT: 5123, 2025-07-13 21:23:54.129 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:23:54.129 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:23:54.129 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:23:54.129 | SERVER_MODE: "individual", 2025-07-13 21:23:54.129 | } 2025-07-13 21:23:54.150 | 2 | // @bun 2025-07-13 21:23:54.150 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:23:54.150 | 4 | `).slice(1).join(` 2025-07-13 21:23:54.150 | 5 | `);return err.stack+=` 2025-07-13 21:23:54.150 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:23:54.150 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:23:54.150 | 2025-07-13 21:23:54.150 | TypeError: not enough arguments 2025-07-13 21:23:54.150 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:23:54.150 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:23:54.150 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:23:54.150 | at /$bunfs/root/server:178:154285 2025-07-13 21:23:54.150 | at loadAndEvaluateModule (1:11) 2025-07-13 21:23:54.150 | 2025-07-13 21:23:54.150 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:24:54.349 | 2025-07-13 21:24:54.349 | ===================================== 2025-07-13 21:24:54.349 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:24:54.349 | ===================================== 2025-07-13 21:24:54.349 | 2025-07-13 21:24:54.618 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:24:54.618 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:24:54.705 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:24:54.705 | 2025-07-13 21:24:54.705 | ===================================== 2025-07-13 21:24:54.705 | STARTING SERVER 2025-07-13 21:24:54.705 | ===================================== 2025-07-13 21:24:54.705 | 2025-07-13 21:24:54.706 | Server starting at Sun Jul 13 20:24:54 UTC 2025 2025-07-13 21:24:54.766 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:24:54.766 | { 2025-07-13 21:24:54.766 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:24:54.766 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:24:54.766 | PORT: 5123, 2025-07-13 21:24:54.766 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:24:54.766 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:24:54.766 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:24:54.766 | SERVER_MODE: "individual", 2025-07-13 21:24:54.766 | } 2025-07-13 21:24:54.787 | 2 | // @bun 2025-07-13 21:24:54.787 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:24:54.787 | 4 | `).slice(1).join(` 2025-07-13 21:24:54.787 | 5 | `);return err.stack+=` 2025-07-13 21:24:54.787 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:24:54.787 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:24:54.787 | 2025-07-13 21:24:54.787 | TypeError: not enough arguments 2025-07-13 21:24:54.787 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:24:54.787 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:24:54.787 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:24:54.787 | at /$bunfs/root/server:178:154285 2025-07-13 21:24:54.787 | at loadAndEvaluateModule (1:11) 2025-07-13 21:24:54.787 | 2025-07-13 21:24:54.787 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:25:54.997 | 2025-07-13 21:25:54.997 | ===================================== 2025-07-13 21:25:54.997 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:25:54.997 | ===================================== 2025-07-13 21:25:54.997 | 2025-07-13 21:25:55.269 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:25:55.269 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:25:55.357 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:25:55.357 | 2025-07-13 21:25:55.357 | ===================================== 2025-07-13 21:25:55.357 | STARTING SERVER 2025-07-13 21:25:55.357 | ===================================== 2025-07-13 21:25:55.357 | 2025-07-13 21:25:55.358 | Server starting at Sun Jul 13 20:25:55 UTC 2025 2025-07-13 21:25:55.418 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:25:55.418 | { 2025-07-13 21:25:55.418 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:25:55.418 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:25:55.418 | PORT: 5123, 2025-07-13 21:25:55.418 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:25:55.418 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:25:55.418 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:25:55.418 | SERVER_MODE: "individual", 2025-07-13 21:25:55.418 | } 2025-07-13 21:25:55.439 | 2 | // @bun 2025-07-13 21:25:55.439 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:25:55.439 | 4 | `).slice(1).join(` 2025-07-13 21:25:55.439 | 5 | `);return err.stack+=` 2025-07-13 21:25:55.439 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:25:55.439 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:25:55.439 | 2025-07-13 21:25:55.439 | TypeError: not enough arguments 2025-07-13 21:25:55.439 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:25:55.439 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:25:55.439 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:25:55.439 | at /$bunfs/root/server:178:154285 2025-07-13 21:25:55.439 | at loadAndEvaluateModule (1:11) 2025-07-13 21:25:55.439 | 2025-07-13 21:25:55.439 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:26:55.653 | 2025-07-13 21:26:55.653 | ===================================== 2025-07-13 21:26:55.653 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:26:55.653 | ===================================== 2025-07-13 21:26:55.653 | 2025-07-13 21:26:55.928 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:26:55.928 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:26:56.016 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:26:56.017 | 2025-07-13 21:26:56.017 | ===================================== 2025-07-13 21:26:56.017 | STARTING SERVER 2025-07-13 21:26:56.017 | ===================================== 2025-07-13 21:26:56.017 | 2025-07-13 21:26:56.017 | Server starting at Sun Jul 13 20:26:56 UTC 2025 2025-07-13 21:26:56.076 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:26:56.076 | { 2025-07-13 21:26:56.076 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:26:56.076 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:26:56.076 | PORT: 5123, 2025-07-13 21:26:56.076 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:26:56.076 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:26:56.076 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:26:56.076 | SERVER_MODE: "individual", 2025-07-13 21:26:56.076 | } 2025-07-13 21:26:56.099 | 2 | // @bun 2025-07-13 21:26:56.099 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:26:56.099 | 4 | `).slice(1).join(` 2025-07-13 21:26:56.099 | 5 | `);return err.stack+=` 2025-07-13 21:26:56.099 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:26:56.099 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:26:56.099 | 2025-07-13 21:26:56.099 | TypeError: not enough arguments 2025-07-13 21:26:56.099 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:26:56.099 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:26:56.099 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:26:56.099 | at /$bunfs/root/server:178:154285 2025-07-13 21:26:56.099 | at loadAndEvaluateModule (1:11) 2025-07-13 21:26:56.099 | 2025-07-13 21:26:56.099 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:27:56.363 | 2025-07-13 21:27:56.363 | ===================================== 2025-07-13 21:27:56.363 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:27:56.363 | ===================================== 2025-07-13 21:27:56.363 | 2025-07-13 21:27:56.679 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:27:56.679 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:27:56.766 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:27:56.766 | 2025-07-13 21:27:56.766 | ===================================== 2025-07-13 21:27:56.766 | STARTING SERVER 2025-07-13 21:27:56.766 | ===================================== 2025-07-13 21:27:56.766 | 2025-07-13 21:27:56.767 | Server starting at Sun Jul 13 20:27:56 UTC 2025 2025-07-13 21:27:56.831 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:27:56.831 | { 2025-07-13 21:27:56.831 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:27:56.831 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:27:56.831 | PORT: 5123, 2025-07-13 21:27:56.831 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:27:56.831 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:27:56.831 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:27:56.831 | SERVER_MODE: "individual", 2025-07-13 21:27:56.831 | } 2025-07-13 21:27:56.854 | 2 | // @bun 2025-07-13 21:27:56.854 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:27:56.854 | 4 | `).slice(1).join(` 2025-07-13 21:27:56.854 | 5 | `);return err.stack+=` 2025-07-13 21:27:56.854 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:27:56.854 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:27:56.854 | 2025-07-13 21:27:56.854 | TypeError: not enough arguments 2025-07-13 21:27:56.854 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:27:56.854 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:27:56.854 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:27:56.854 | at /$bunfs/root/server:178:154285 2025-07-13 21:27:56.854 | at loadAndEvaluateModule (1:11) 2025-07-13 21:27:56.854 | 2025-07-13 21:27:56.854 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:28:57.079 | 2025-07-13 21:28:57.079 | ===================================== 2025-07-13 21:28:57.079 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:28:57.079 | ===================================== 2025-07-13 21:28:57.079 | 2025-07-13 21:28:57.346 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:28:57.346 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:28:57.437 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:28:57.437 | 2025-07-13 21:28:57.437 | ===================================== 2025-07-13 21:28:57.437 | STARTING SERVER 2025-07-13 21:28:57.437 | ===================================== 2025-07-13 21:28:57.437 | 2025-07-13 21:28:57.438 | Server starting at Sun Jul 13 20:28:57 UTC 2025 2025-07-13 21:28:57.498 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:28:57.498 | { 2025-07-13 21:28:57.498 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:28:57.498 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:28:57.498 | PORT: 5123, 2025-07-13 21:28:57.498 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:28:57.498 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:28:57.498 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:28:57.498 | SERVER_MODE: "individual", 2025-07-13 21:28:57.498 | } 2025-07-13 21:28:57.520 | 2 | // @bun 2025-07-13 21:28:57.520 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:28:57.520 | 4 | `).slice(1).join(` 2025-07-13 21:28:57.520 | 5 | `);return err.stack+=` 2025-07-13 21:28:57.520 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:28:57.520 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:28:57.520 | 2025-07-13 21:28:57.520 | TypeError: not enough arguments 2025-07-13 21:28:57.520 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:28:57.520 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:28:57.520 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:28:57.520 | at /$bunfs/root/server:178:154285 2025-07-13 21:28:57.520 | at loadAndEvaluateModule (1:11) 2025-07-13 21:28:57.520 | 2025-07-13 21:28:57.520 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:29:57.716 | 2025-07-13 21:29:57.716 | ===================================== 2025-07-13 21:29:57.716 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:29:57.716 | ===================================== 2025-07-13 21:29:57.716 | 2025-07-13 21:29:57.984 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:29:57.984 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:29:58.070 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:29:58.070 | 2025-07-13 21:29:58.070 | ===================================== 2025-07-13 21:29:58.070 | STARTING SERVER 2025-07-13 21:29:58.070 | ===================================== 2025-07-13 21:29:58.070 | 2025-07-13 21:29:58.071 | Server starting at Sun Jul 13 20:29:58 UTC 2025 2025-07-13 21:29:58.131 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:29:58.131 | { 2025-07-13 21:29:58.131 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:29:58.131 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:29:58.131 | PORT: 5123, 2025-07-13 21:29:58.131 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:29:58.131 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:29:58.131 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:29:58.131 | SERVER_MODE: "individual", 2025-07-13 21:29:58.131 | } 2025-07-13 21:29:58.152 | 2 | // @bun 2025-07-13 21:29:58.152 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:29:58.152 | 4 | `).slice(1).join(` 2025-07-13 21:29:58.152 | 5 | `);return err.stack+=` 2025-07-13 21:29:58.152 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:29:58.152 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:29:58.152 | 2025-07-13 21:29:58.152 | TypeError: not enough arguments 2025-07-13 21:29:58.152 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:29:58.152 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:29:58.152 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:29:58.152 | at /$bunfs/root/server:178:154285 2025-07-13 21:29:58.152 | at loadAndEvaluateModule (1:11) 2025-07-13 21:29:58.152 | 2025-07-13 21:29:58.152 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:30:58.372 | 2025-07-13 21:30:58.372 | ===================================== 2025-07-13 21:30:58.372 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:30:58.372 | ===================================== 2025-07-13 21:30:58.372 | 2025-07-13 21:30:58.632 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:30:58.632 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:30:58.719 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:30:58.719 | 2025-07-13 21:30:58.719 | ===================================== 2025-07-13 21:30:58.719 | STARTING SERVER 2025-07-13 21:30:58.719 | ===================================== 2025-07-13 21:30:58.719 | 2025-07-13 21:30:58.720 | Server starting at Sun Jul 13 20:30:58 UTC 2025 2025-07-13 21:30:58.779 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:30:58.779 | { 2025-07-13 21:30:58.779 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:30:58.779 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:30:58.779 | PORT: 5123, 2025-07-13 21:30:58.779 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:30:58.779 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:30:58.779 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:30:58.779 | SERVER_MODE: "individual", 2025-07-13 21:30:58.779 | } 2025-07-13 21:30:58.801 | 2 | // @bun 2025-07-13 21:30:58.801 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:30:58.801 | 4 | `).slice(1).join(` 2025-07-13 21:30:58.801 | 5 | `);return err.stack+=` 2025-07-13 21:30:58.801 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:30:58.801 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:30:58.801 | 2025-07-13 21:30:58.801 | TypeError: not enough arguments 2025-07-13 21:30:58.801 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:30:58.801 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:30:58.801 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:30:58.801 | at /$bunfs/root/server:178:154285 2025-07-13 21:30:58.801 | at loadAndEvaluateModule (1:11) 2025-07-13 21:30:58.801 | 2025-07-13 21:30:58.801 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:31:59.062 | 2025-07-13 21:31:59.062 | ===================================== 2025-07-13 21:31:59.062 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:31:59.062 | ===================================== 2025-07-13 21:31:59.062 | 2025-07-13 21:31:59.336 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:31:59.336 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:31:59.423 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:31:59.423 | 2025-07-13 21:31:59.423 | ===================================== 2025-07-13 21:31:59.423 | STARTING SERVER 2025-07-13 21:31:59.423 | ===================================== 2025-07-13 21:31:59.423 | 2025-07-13 21:31:59.423 | Server starting at Sun Jul 13 20:31:59 UTC 2025 2025-07-13 21:31:59.479 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:31:59.479 | { 2025-07-13 21:31:59.479 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:31:59.479 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:31:59.479 | PORT: 5123, 2025-07-13 21:31:59.479 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:31:59.479 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:31:59.479 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:31:59.479 | SERVER_MODE: "individual", 2025-07-13 21:31:59.479 | } 2025-07-13 21:31:59.501 | 2 | // @bun 2025-07-13 21:31:59.501 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:31:59.501 | 4 | `).slice(1).join(` 2025-07-13 21:31:59.501 | 5 | `);return err.stack+=` 2025-07-13 21:31:59.501 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:31:59.501 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:31:59.501 | 2025-07-13 21:31:59.501 | TypeError: not enough arguments 2025-07-13 21:31:59.501 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:31:59.501 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:31:59.501 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:31:59.501 | at /$bunfs/root/server:178:154285 2025-07-13 21:31:59.501 | at loadAndEvaluateModule (1:11) 2025-07-13 21:31:59.501 | 2025-07-13 21:31:59.501 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:32:59.739 | 2025-07-13 21:32:59.739 | ===================================== 2025-07-13 21:32:59.739 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:32:59.739 | ===================================== 2025-07-13 21:32:59.739 | 2025-07-13 21:33:00.019 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:33:00.019 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:33:00.109 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:33:00.109 | 2025-07-13 21:33:00.109 | ===================================== 2025-07-13 21:33:00.109 | STARTING SERVER 2025-07-13 21:33:00.109 | ===================================== 2025-07-13 21:33:00.109 | 2025-07-13 21:33:00.110 | Server starting at Sun Jul 13 20:33:00 UTC 2025 2025-07-13 21:33:00.172 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:33:00.172 | { 2025-07-13 21:33:00.172 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:33:00.172 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:33:00.172 | PORT: 5123, 2025-07-13 21:33:00.172 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:33:00.172 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:33:00.172 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:33:00.172 | SERVER_MODE: "individual", 2025-07-13 21:33:00.172 | } 2025-07-13 21:33:00.194 | 2 | // @bun 2025-07-13 21:33:00.194 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:33:00.194 | 4 | `).slice(1).join(` 2025-07-13 21:33:00.194 | 5 | `);return err.stack+=` 2025-07-13 21:33:00.194 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:33:00.194 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:33:00.194 | 2025-07-13 21:33:00.194 | TypeError: not enough arguments 2025-07-13 21:33:00.194 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:33:00.194 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:33:00.194 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:33:00.194 | at /$bunfs/root/server:178:154285 2025-07-13 21:33:00.194 | at loadAndEvaluateModule (1:11) 2025-07-13 21:33:00.194 | 2025-07-13 21:33:00.194 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:34:00.411 | 2025-07-13 21:34:00.411 | ===================================== 2025-07-13 21:34:00.411 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:34:00.411 | ===================================== 2025-07-13 21:34:00.411 | 2025-07-13 21:34:00.681 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:34:00.681 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:34:00.770 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:34:00.771 | 2025-07-13 21:34:00.771 | ===================================== 2025-07-13 21:34:00.771 | STARTING SERVER 2025-07-13 21:34:00.771 | ===================================== 2025-07-13 21:34:00.771 | 2025-07-13 21:34:00.771 | Server starting at Sun Jul 13 20:34:00 UTC 2025 2025-07-13 21:34:00.829 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:34:00.829 | { 2025-07-13 21:34:00.829 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:34:00.829 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:34:00.829 | PORT: 5123, 2025-07-13 21:34:00.829 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:34:00.829 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:34:00.829 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:34:00.829 | SERVER_MODE: "individual", 2025-07-13 21:34:00.829 | } 2025-07-13 21:34:00.850 | 2 | // @bun 2025-07-13 21:34:00.850 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:34:00.850 | 4 | `).slice(1).join(` 2025-07-13 21:34:00.850 | 5 | `);return err.stack+=` 2025-07-13 21:34:00.850 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:34:00.850 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:34:00.850 | 2025-07-13 21:34:00.850 | TypeError: not enough arguments 2025-07-13 21:34:00.850 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:34:00.850 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:34:00.850 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:34:00.850 | at /$bunfs/root/server:178:154285 2025-07-13 21:34:00.850 | at loadAndEvaluateModule (1:11) 2025-07-13 21:34:00.850 | 2025-07-13 21:34:00.850 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:35:01.068 | 2025-07-13 21:35:01.068 | ===================================== 2025-07-13 21:35:01.068 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:35:01.068 | ===================================== 2025-07-13 21:35:01.068 | 2025-07-13 21:35:01.347 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:35:01.347 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:35:01.430 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:35:01.430 | 2025-07-13 21:35:01.430 | ===================================== 2025-07-13 21:35:01.430 | STARTING SERVER 2025-07-13 21:35:01.430 | ===================================== 2025-07-13 21:35:01.430 | 2025-07-13 21:35:01.431 | Server starting at Sun Jul 13 20:35:01 UTC 2025 2025-07-13 21:35:01.488 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:35:01.488 | { 2025-07-13 21:35:01.488 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:35:01.488 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:35:01.488 | PORT: 5123, 2025-07-13 21:35:01.488 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:35:01.488 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:35:01.488 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:35:01.488 | SERVER_MODE: "individual", 2025-07-13 21:35:01.488 | } 2025-07-13 21:35:01.509 | 2 | // @bun 2025-07-13 21:35:01.509 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:35:01.509 | 4 | `).slice(1).join(` 2025-07-13 21:35:01.509 | 5 | `);return err.stack+=` 2025-07-13 21:35:01.509 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:35:01.509 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:35:01.509 | 2025-07-13 21:35:01.509 | TypeError: not enough arguments 2025-07-13 21:35:01.509 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:35:01.509 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:35:01.509 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:35:01.509 | at /$bunfs/root/server:178:154285 2025-07-13 21:35:01.509 | at loadAndEvaluateModule (1:11) 2025-07-13 21:35:01.509 | 2025-07-13 21:35:01.509 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:36:01.725 | 2025-07-13 21:36:01.725 | ===================================== 2025-07-13 21:36:01.725 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:36:01.725 | ===================================== 2025-07-13 21:36:01.725 | 2025-07-13 21:36:02.001 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:36:02.001 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:36:02.091 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:36:02.092 | 2025-07-13 21:36:02.092 | ===================================== 2025-07-13 21:36:02.092 | STARTING SERVER 2025-07-13 21:36:02.092 | ===================================== 2025-07-13 21:36:02.092 | 2025-07-13 21:36:02.092 | Server starting at Sun Jul 13 20:36:02 UTC 2025 2025-07-13 21:36:02.155 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:36:02.155 | { 2025-07-13 21:36:02.155 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:36:02.155 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:36:02.155 | PORT: 5123, 2025-07-13 21:36:02.155 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:36:02.155 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:36:02.155 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:36:02.155 | SERVER_MODE: "individual", 2025-07-13 21:36:02.155 | } 2025-07-13 21:36:02.179 | 2 | // @bun 2025-07-13 21:36:02.179 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:36:02.179 | 4 | `).slice(1).join(` 2025-07-13 21:36:02.179 | 5 | `);return err.stack+=` 2025-07-13 21:36:02.179 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:36:02.179 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:36:02.179 | 2025-07-13 21:36:02.179 | TypeError: not enough arguments 2025-07-13 21:36:02.179 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:36:02.179 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:36:02.179 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:36:02.179 | at /$bunfs/root/server:178:154285 2025-07-13 21:36:02.179 | at loadAndEvaluateModule (1:11) 2025-07-13 21:36:02.179 | 2025-07-13 21:36:02.179 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:37:02.422 | 2025-07-13 21:37:02.422 | ===================================== 2025-07-13 21:37:02.422 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:37:02.422 | ===================================== 2025-07-13 21:37:02.422 | 2025-07-13 21:37:02.691 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:37:02.691 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:37:02.772 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:37:02.772 | 2025-07-13 21:37:02.772 | ===================================== 2025-07-13 21:37:02.772 | STARTING SERVER 2025-07-13 21:37:02.772 | ===================================== 2025-07-13 21:37:02.772 | 2025-07-13 21:37:02.773 | Server starting at Sun Jul 13 20:37:02 UTC 2025 2025-07-13 21:37:02.831 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:37:02.832 | { 2025-07-13 21:37:02.832 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:37:02.832 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:37:02.832 | PORT: 5123, 2025-07-13 21:37:02.832 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:37:02.832 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:37:02.832 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:37:02.832 | SERVER_MODE: "individual", 2025-07-13 21:37:02.832 | } 2025-07-13 21:37:02.853 | 2 | // @bun 2025-07-13 21:37:02.853 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:37:02.853 | 4 | `).slice(1).join(` 2025-07-13 21:37:02.853 | 5 | `);return err.stack+=` 2025-07-13 21:37:02.853 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:37:02.853 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:37:02.853 | 2025-07-13 21:37:02.853 | TypeError: not enough arguments 2025-07-13 21:37:02.853 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:37:02.853 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:37:02.853 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:37:02.853 | at /$bunfs/root/server:178:154285 2025-07-13 21:37:02.853 | at loadAndEvaluateModule (1:11) 2025-07-13 21:37:02.853 | 2025-07-13 21:37:02.853 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:38:03.096 | 2025-07-13 21:38:03.096 | ===================================== 2025-07-13 21:38:03.096 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:38:03.096 | ===================================== 2025-07-13 21:38:03.096 | 2025-07-13 21:38:03.370 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:38:03.370 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:38:03.458 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:38:03.458 | 2025-07-13 21:38:03.458 | ===================================== 2025-07-13 21:38:03.458 | STARTING SERVER 2025-07-13 21:38:03.458 | ===================================== 2025-07-13 21:38:03.458 | 2025-07-13 21:38:03.459 | Server starting at Sun Jul 13 20:38:03 UTC 2025 2025-07-13 21:38:03.517 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:38:03.517 | { 2025-07-13 21:38:03.517 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:38:03.517 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:38:03.517 | PORT: 5123, 2025-07-13 21:38:03.517 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:38:03.517 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:38:03.517 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:38:03.517 | SERVER_MODE: "individual", 2025-07-13 21:38:03.517 | } 2025-07-13 21:38:03.538 | 2 | // @bun 2025-07-13 21:38:03.538 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:38:03.538 | 4 | `).slice(1).join(` 2025-07-13 21:38:03.538 | 5 | `);return err.stack+=` 2025-07-13 21:38:03.538 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:38:03.538 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:38:03.538 | 2025-07-13 21:38:03.538 | TypeError: not enough arguments 2025-07-13 21:38:03.538 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:38:03.538 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:38:03.538 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:38:03.538 | at /$bunfs/root/server:178:154285 2025-07-13 21:38:03.538 | at loadAndEvaluateModule (1:11) 2025-07-13 21:38:03.538 | 2025-07-13 21:38:03.538 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:39:03.744 | 2025-07-13 21:39:03.744 | ===================================== 2025-07-13 21:39:03.744 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:39:03.744 | ===================================== 2025-07-13 21:39:03.744 | 2025-07-13 21:39:04.019 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:39:04.019 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:39:04.104 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:39:04.104 | 2025-07-13 21:39:04.104 | ===================================== 2025-07-13 21:39:04.104 | STARTING SERVER 2025-07-13 21:39:04.104 | ===================================== 2025-07-13 21:39:04.104 | 2025-07-13 21:39:04.105 | Server starting at Sun Jul 13 20:39:04 UTC 2025 2025-07-13 21:39:04.162 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:39:04.162 | { 2025-07-13 21:39:04.162 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:39:04.162 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:39:04.162 | PORT: 5123, 2025-07-13 21:39:04.162 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:39:04.162 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:39:04.162 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:39:04.162 | SERVER_MODE: "individual", 2025-07-13 21:39:04.162 | } 2025-07-13 21:39:04.183 | 2 | // @bun 2025-07-13 21:39:04.183 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:39:04.183 | 4 | `).slice(1).join(` 2025-07-13 21:39:04.183 | 5 | `);return err.stack+=` 2025-07-13 21:39:04.183 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:39:04.183 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:39:04.183 | 2025-07-13 21:39:04.183 | TypeError: not enough arguments 2025-07-13 21:39:04.183 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:39:04.183 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:39:04.183 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:39:04.183 | at /$bunfs/root/server:178:154285 2025-07-13 21:39:04.183 | at loadAndEvaluateModule (1:11) 2025-07-13 21:39:04.183 | 2025-07-13 21:39:04.183 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:40:04.401 | 2025-07-13 21:40:04.401 | ===================================== 2025-07-13 21:40:04.401 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:40:04.401 | ===================================== 2025-07-13 21:40:04.401 | 2025-07-13 21:40:04.677 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:40:04.677 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:40:04.766 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:40:04.766 | 2025-07-13 21:40:04.766 | ===================================== 2025-07-13 21:40:04.766 | STARTING SERVER 2025-07-13 21:40:04.766 | ===================================== 2025-07-13 21:40:04.766 | 2025-07-13 21:40:04.767 | Server starting at Sun Jul 13 20:40:04 UTC 2025 2025-07-13 21:40:04.825 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:40:04.825 | { 2025-07-13 21:40:04.825 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:40:04.825 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:40:04.825 | PORT: 5123, 2025-07-13 21:40:04.825 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:40:04.825 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:40:04.825 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:40:04.825 | SERVER_MODE: "individual", 2025-07-13 21:40:04.825 | } 2025-07-13 21:40:04.847 | 2 | // @bun 2025-07-13 21:40:04.847 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:40:04.847 | 4 | `).slice(1).join(` 2025-07-13 21:40:04.847 | 5 | `);return err.stack+=` 2025-07-13 21:40:04.847 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:40:04.847 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:40:04.848 | 2025-07-13 21:40:04.848 | TypeError: not enough arguments 2025-07-13 21:40:04.848 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:40:04.848 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:40:04.848 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:40:04.848 | at /$bunfs/root/server:178:154285 2025-07-13 21:40:04.848 | at loadAndEvaluateModule (1:11) 2025-07-13 21:40:04.848 | 2025-07-13 21:40:04.848 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:41:05.079 | 2025-07-13 21:41:05.079 | ===================================== 2025-07-13 21:41:05.079 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:41:05.079 | ===================================== 2025-07-13 21:41:05.079 | 2025-07-13 21:41:05.350 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:41:05.350 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:41:05.433 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:41:05.433 | 2025-07-13 21:41:05.433 | ===================================== 2025-07-13 21:41:05.433 | STARTING SERVER 2025-07-13 21:41:05.433 | ===================================== 2025-07-13 21:41:05.433 | 2025-07-13 21:41:05.433 | Server starting at Sun Jul 13 20:41:05 UTC 2025 2025-07-13 21:41:05.490 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:41:05.490 | { 2025-07-13 21:41:05.490 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:41:05.490 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:41:05.490 | PORT: 5123, 2025-07-13 21:41:05.490 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:41:05.490 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:41:05.490 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:41:05.490 | SERVER_MODE: "individual", 2025-07-13 21:41:05.490 | } 2025-07-13 21:41:05.512 | 2 | // @bun 2025-07-13 21:41:05.512 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:41:05.512 | 4 | `).slice(1).join(` 2025-07-13 21:41:05.512 | 5 | `);return err.stack+=` 2025-07-13 21:41:05.512 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:41:05.512 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:41:05.512 | 2025-07-13 21:41:05.512 | TypeError: not enough arguments 2025-07-13 21:41:05.512 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:41:05.512 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:41:05.512 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:41:05.512 | at /$bunfs/root/server:178:154285 2025-07-13 21:41:05.512 | at loadAndEvaluateModule (1:11) 2025-07-13 21:41:05.512 | 2025-07-13 21:41:05.512 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:42:05.745 | 2025-07-13 21:42:05.745 | ===================================== 2025-07-13 21:42:05.745 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:42:05.745 | ===================================== 2025-07-13 21:42:05.745 | 2025-07-13 21:42:06.027 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:42:06.027 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:42:06.111 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:42:06.111 | 2025-07-13 21:42:06.111 | ===================================== 2025-07-13 21:42:06.111 | STARTING SERVER 2025-07-13 21:42:06.111 | ===================================== 2025-07-13 21:42:06.111 | 2025-07-13 21:42:06.111 | Server starting at Sun Jul 13 20:42:06 UTC 2025 2025-07-13 21:42:06.171 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:42:06.171 | { 2025-07-13 21:42:06.171 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:42:06.171 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:42:06.171 | PORT: 5123, 2025-07-13 21:42:06.171 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:42:06.171 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:42:06.171 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:42:06.171 | SERVER_MODE: "individual", 2025-07-13 21:42:06.171 | } 2025-07-13 21:42:06.193 | 2 | // @bun 2025-07-13 21:42:06.193 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:42:06.193 | 4 | `).slice(1).join(` 2025-07-13 21:42:06.193 | 5 | `);return err.stack+=` 2025-07-13 21:42:06.193 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:42:06.193 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:42:06.193 | 2025-07-13 21:42:06.193 | TypeError: not enough arguments 2025-07-13 21:42:06.193 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:42:06.193 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:42:06.193 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:42:06.193 | at /$bunfs/root/server:178:154285 2025-07-13 21:42:06.193 | at loadAndEvaluateModule (1:11) 2025-07-13 21:42:06.193 | 2025-07-13 21:42:06.193 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:43:06.402 | 2025-07-13 21:43:06.402 | ===================================== 2025-07-13 21:43:06.402 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:43:06.402 | ===================================== 2025-07-13 21:43:06.402 | 2025-07-13 21:43:06.680 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:43:06.680 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:43:06.774 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:43:06.775 | 2025-07-13 21:43:06.775 | ===================================== 2025-07-13 21:43:06.775 | STARTING SERVER 2025-07-13 21:43:06.775 | ===================================== 2025-07-13 21:43:06.775 | 2025-07-13 21:43:06.775 | Server starting at Sun Jul 13 20:43:06 UTC 2025 2025-07-13 21:43:06.839 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:43:06.839 | { 2025-07-13 21:43:06.839 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:43:06.839 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:43:06.839 | PORT: 5123, 2025-07-13 21:43:06.839 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:43:06.839 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:43:06.839 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:43:06.839 | SERVER_MODE: "individual", 2025-07-13 21:43:06.839 | } 2025-07-13 21:43:06.862 | 2 | // @bun 2025-07-13 21:43:06.862 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:43:06.862 | 4 | `).slice(1).join(` 2025-07-13 21:43:06.862 | 5 | `);return err.stack+=` 2025-07-13 21:43:06.862 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:43:06.862 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:43:06.862 | 2025-07-13 21:43:06.862 | TypeError: not enough arguments 2025-07-13 21:43:06.862 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:43:06.862 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:43:06.862 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:43:06.862 | at /$bunfs/root/server:178:154285 2025-07-13 21:43:06.862 | at loadAndEvaluateModule (1:11) 2025-07-13 21:43:06.862 | 2025-07-13 21:43:06.862 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:44:07.089 | 2025-07-13 21:44:07.089 | ===================================== 2025-07-13 21:44:07.089 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:44:07.089 | ===================================== 2025-07-13 21:44:07.089 | 2025-07-13 21:44:07.356 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:44:07.356 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:44:07.448 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:44:07.448 | 2025-07-13 21:44:07.448 | ===================================== 2025-07-13 21:44:07.448 | STARTING SERVER 2025-07-13 21:44:07.448 | ===================================== 2025-07-13 21:44:07.448 | 2025-07-13 21:44:07.449 | Server starting at Sun Jul 13 20:44:07 UTC 2025 2025-07-13 21:44:07.512 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:44:07.512 | { 2025-07-13 21:44:07.512 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:44:07.512 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:44:07.512 | PORT: 5123, 2025-07-13 21:44:07.512 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:44:07.512 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:44:07.512 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:44:07.512 | SERVER_MODE: "individual", 2025-07-13 21:44:07.512 | } 2025-07-13 21:44:07.536 | 2 | // @bun 2025-07-13 21:44:07.536 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:44:07.536 | 4 | `).slice(1).join(` 2025-07-13 21:44:07.536 | 5 | `);return err.stack+=` 2025-07-13 21:44:07.536 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:44:07.536 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:44:07.536 | 2025-07-13 21:44:07.536 | TypeError: not enough arguments 2025-07-13 21:44:07.536 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:44:07.536 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:44:07.536 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:44:07.536 | at /$bunfs/root/server:178:154285 2025-07-13 21:44:07.536 | at loadAndEvaluateModule (1:11) 2025-07-13 21:44:07.536 | 2025-07-13 21:44:07.536 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:45:07.756 | 2025-07-13 21:45:07.756 | ===================================== 2025-07-13 21:45:07.756 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:45:07.756 | ===================================== 2025-07-13 21:45:07.756 | 2025-07-13 21:45:08.032 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:45:08.032 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:45:08.117 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:45:08.117 | 2025-07-13 21:45:08.117 | ===================================== 2025-07-13 21:45:08.117 | STARTING SERVER 2025-07-13 21:45:08.117 | ===================================== 2025-07-13 21:45:08.117 | 2025-07-13 21:45:08.118 | Server starting at Sun Jul 13 20:45:08 UTC 2025 2025-07-13 21:45:08.177 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:45:08.177 | { 2025-07-13 21:45:08.177 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:45:08.177 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:45:08.177 | PORT: 5123, 2025-07-13 21:45:08.177 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:45:08.177 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:45:08.177 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:45:08.177 | SERVER_MODE: "individual", 2025-07-13 21:45:08.177 | } 2025-07-13 21:45:08.198 | 2 | // @bun 2025-07-13 21:45:08.198 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:45:08.198 | 4 | `).slice(1).join(` 2025-07-13 21:45:08.198 | 5 | `);return err.stack+=` 2025-07-13 21:45:08.198 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:45:08.198 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:45:08.198 | 2025-07-13 21:45:08.198 | TypeError: not enough arguments 2025-07-13 21:45:08.198 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:45:08.198 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:45:08.198 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:45:08.198 | at /$bunfs/root/server:178:154285 2025-07-13 21:45:08.198 | at loadAndEvaluateModule (1:11) 2025-07-13 21:45:08.198 | 2025-07-13 21:45:08.198 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:46:08.443 | 2025-07-13 21:46:08.443 | ===================================== 2025-07-13 21:46:08.443 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:46:08.443 | ===================================== 2025-07-13 21:46:08.443 | 2025-07-13 21:46:08.725 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:46:08.725 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:46:08.813 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:46:08.813 | 2025-07-13 21:46:08.813 | ===================================== 2025-07-13 21:46:08.813 | STARTING SERVER 2025-07-13 21:46:08.813 | ===================================== 2025-07-13 21:46:08.813 | 2025-07-13 21:46:08.814 | Server starting at Sun Jul 13 20:46:08 UTC 2025 2025-07-13 21:46:08.872 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:46:08.872 | { 2025-07-13 21:46:08.872 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:46:08.872 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:46:08.872 | PORT: 5123, 2025-07-13 21:46:08.872 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:46:08.872 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:46:08.872 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:46:08.872 | SERVER_MODE: "individual", 2025-07-13 21:46:08.872 | } 2025-07-13 21:46:08.894 | 2 | // @bun 2025-07-13 21:46:08.894 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:46:08.894 | 4 | `).slice(1).join(` 2025-07-13 21:46:08.894 | 5 | `);return err.stack+=` 2025-07-13 21:46:08.894 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:46:08.894 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:46:08.894 | 2025-07-13 21:46:08.894 | TypeError: not enough arguments 2025-07-13 21:46:08.894 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:46:08.894 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:46:08.894 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:46:08.894 | at /$bunfs/root/server:178:154285 2025-07-13 21:46:08.894 | at loadAndEvaluateModule (1:11) 2025-07-13 21:46:08.894 | 2025-07-13 21:46:08.894 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:47:09.131 | 2025-07-13 21:47:09.131 | ===================================== 2025-07-13 21:47:09.131 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:47:09.131 | ===================================== 2025-07-13 21:47:09.131 | 2025-07-13 21:47:09.498 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:47:09.498 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:47:09.656 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:47:09.656 | 2025-07-13 21:47:09.656 | ===================================== 2025-07-13 21:47:09.656 | STARTING SERVER 2025-07-13 21:47:09.656 | ===================================== 2025-07-13 21:47:09.656 | 2025-07-13 21:47:09.657 | Server starting at Sun Jul 13 20:47:09 UTC 2025 2025-07-13 21:47:09.790 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:47:09.791 | { 2025-07-13 21:47:09.791 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:47:09.791 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:47:09.791 | PORT: 5123, 2025-07-13 21:47:09.791 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:47:09.791 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:47:09.791 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:47:09.791 | SERVER_MODE: "individual", 2025-07-13 21:47:09.791 | } 2025-07-13 21:47:09.827 | 2 | // @bun 2025-07-13 21:47:09.828 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:47:09.828 | 4 | `).slice(1).join(` 2025-07-13 21:47:09.828 | 5 | `);return err.stack+=` 2025-07-13 21:47:09.828 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:47:09.828 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:47:09.828 | 2025-07-13 21:47:09.828 | TypeError: not enough arguments 2025-07-13 21:47:09.828 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:47:09.828 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:47:09.828 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:47:09.828 | at /$bunfs/root/server:178:154285 2025-07-13 21:47:09.828 | at loadAndEvaluateModule (1:11) 2025-07-13 21:47:09.828 | 2025-07-13 21:47:09.828 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:48:10.046 | 2025-07-13 21:48:10.046 | ===================================== 2025-07-13 21:48:10.046 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:48:10.046 | ===================================== 2025-07-13 21:48:10.046 | 2025-07-13 21:48:10.327 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:48:10.327 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:48:10.416 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:48:10.416 | 2025-07-13 21:48:10.416 | ===================================== 2025-07-13 21:48:10.416 | STARTING SERVER 2025-07-13 21:48:10.416 | ===================================== 2025-07-13 21:48:10.416 | 2025-07-13 21:48:10.417 | Server starting at Sun Jul 13 20:48:10 UTC 2025 2025-07-13 21:48:10.474 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:48:10.474 | { 2025-07-13 21:48:10.474 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:48:10.474 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:48:10.474 | PORT: 5123, 2025-07-13 21:48:10.474 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:48:10.474 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:48:10.474 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:48:10.474 | SERVER_MODE: "individual", 2025-07-13 21:48:10.474 | } 2025-07-13 21:48:10.496 | 2 | // @bun 2025-07-13 21:48:10.496 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:48:10.496 | 4 | `).slice(1).join(` 2025-07-13 21:48:10.496 | 5 | `);return err.stack+=` 2025-07-13 21:48:10.496 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:48:10.496 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:48:10.496 | 2025-07-13 21:48:10.496 | TypeError: not enough arguments 2025-07-13 21:48:10.496 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:48:10.496 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:48:10.496 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:48:10.496 | at /$bunfs/root/server:178:154285 2025-07-13 21:48:10.496 | at loadAndEvaluateModule (1:11) 2025-07-13 21:48:10.496 | 2025-07-13 21:48:10.496 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:49:10.774 | 2025-07-13 21:49:10.774 | ===================================== 2025-07-13 21:49:10.774 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:49:10.774 | ===================================== 2025-07-13 21:49:10.774 | 2025-07-13 21:49:11.045 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:49:11.045 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:49:11.141 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:49:11.141 | 2025-07-13 21:49:11.141 | ===================================== 2025-07-13 21:49:11.141 | STARTING SERVER 2025-07-13 21:49:11.141 | ===================================== 2025-07-13 21:49:11.141 | 2025-07-13 21:49:11.142 | Server starting at Sun Jul 13 20:49:11 UTC 2025 2025-07-13 21:49:11.201 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:49:11.201 | { 2025-07-13 21:49:11.201 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:49:11.201 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:49:11.201 | PORT: 5123, 2025-07-13 21:49:11.201 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:49:11.201 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:49:11.201 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:49:11.201 | SERVER_MODE: "individual", 2025-07-13 21:49:11.201 | } 2025-07-13 21:49:11.223 | 2 | // @bun 2025-07-13 21:49:11.223 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:49:11.224 | 4 | `).slice(1).join(` 2025-07-13 21:49:11.224 | 5 | `);return err.stack+=` 2025-07-13 21:49:11.224 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:49:11.224 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:49:11.224 | 2025-07-13 21:49:11.224 | TypeError: not enough arguments 2025-07-13 21:49:11.224 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:49:11.224 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:49:11.224 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:49:11.224 | at /$bunfs/root/server:178:154285 2025-07-13 21:49:11.224 | at loadAndEvaluateModule (1:11) 2025-07-13 21:49:11.224 | 2025-07-13 21:49:11.224 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:50:11.448 | 2025-07-13 21:50:11.448 | ===================================== 2025-07-13 21:50:11.448 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:50:11.448 | ===================================== 2025-07-13 21:50:11.448 | 2025-07-13 21:50:11.735 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:50:11.735 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:50:11.823 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:50:11.823 | 2025-07-13 21:50:11.823 | ===================================== 2025-07-13 21:50:11.823 | STARTING SERVER 2025-07-13 21:50:11.823 | ===================================== 2025-07-13 21:50:11.823 | 2025-07-13 21:50:11.824 | Server starting at Sun Jul 13 20:50:11 UTC 2025 2025-07-13 21:50:11.889 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:50:11.889 | { 2025-07-13 21:50:11.889 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:50:11.889 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:50:11.889 | PORT: 5123, 2025-07-13 21:50:11.889 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:50:11.889 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:50:11.889 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:50:11.889 | SERVER_MODE: "individual", 2025-07-13 21:50:11.889 | } 2025-07-13 21:50:11.913 | 2 | // @bun 2025-07-13 21:50:11.913 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:50:11.913 | 4 | `).slice(1).join(` 2025-07-13 21:50:11.913 | 5 | `);return err.stack+=` 2025-07-13 21:50:11.913 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:50:11.914 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:50:11.914 | 2025-07-13 21:50:11.914 | TypeError: not enough arguments 2025-07-13 21:50:11.914 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:50:11.914 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:50:11.914 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:50:11.914 | at /$bunfs/root/server:178:154285 2025-07-13 21:50:11.914 | at loadAndEvaluateModule (1:11) 2025-07-13 21:50:11.914 | 2025-07-13 21:50:11.914 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:51:12.155 | 2025-07-13 21:51:12.155 | ===================================== 2025-07-13 21:51:12.155 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:51:12.155 | ===================================== 2025-07-13 21:51:12.155 | 2025-07-13 21:51:12.426 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:51:12.426 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:51:12.512 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:51:12.512 | 2025-07-13 21:51:12.512 | ===================================== 2025-07-13 21:51:12.512 | STARTING SERVER 2025-07-13 21:51:12.512 | ===================================== 2025-07-13 21:51:12.512 | 2025-07-13 21:51:12.513 | Server starting at Sun Jul 13 20:51:12 UTC 2025 2025-07-13 21:51:12.577 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:51:12.577 | { 2025-07-13 21:51:12.577 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:51:12.577 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:51:12.577 | PORT: 5123, 2025-07-13 21:51:12.577 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:51:12.577 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:51:12.577 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:51:12.577 | SERVER_MODE: "individual", 2025-07-13 21:51:12.577 | } 2025-07-13 21:51:12.599 | 2 | // @bun 2025-07-13 21:51:12.599 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:51:12.599 | 4 | `).slice(1).join(` 2025-07-13 21:51:12.599 | 5 | `);return err.stack+=` 2025-07-13 21:51:12.599 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:51:12.599 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:51:12.599 | 2025-07-13 21:51:12.599 | TypeError: not enough arguments 2025-07-13 21:51:12.599 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:51:12.599 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:51:12.599 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:51:12.599 | at /$bunfs/root/server:178:154285 2025-07-13 21:51:12.599 | at loadAndEvaluateModule (1:11) 2025-07-13 21:51:12.599 | 2025-07-13 21:51:12.599 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:52:12.907 | 2025-07-13 21:52:12.907 | ===================================== 2025-07-13 21:52:12.907 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:52:12.907 | ===================================== 2025-07-13 21:52:12.907 | 2025-07-13 21:52:13.259 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:52:13.259 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:52:13.422 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:52:13.422 | 2025-07-13 21:52:13.422 | ===================================== 2025-07-13 21:52:13.422 | STARTING SERVER 2025-07-13 21:52:13.422 | ===================================== 2025-07-13 21:52:13.422 | 2025-07-13 21:52:13.423 | Server starting at Sun Jul 13 20:52:13 UTC 2025 2025-07-13 21:52:13.559 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:52:13.560 | { 2025-07-13 21:52:13.560 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:52:13.560 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:52:13.560 | PORT: 5123, 2025-07-13 21:52:13.560 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:52:13.560 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:52:13.560 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:52:13.560 | SERVER_MODE: "individual", 2025-07-13 21:52:13.560 | } 2025-07-13 21:52:13.596 | 2 | // @bun 2025-07-13 21:52:13.596 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:52:13.596 | 4 | `).slice(1).join(` 2025-07-13 21:52:13.596 | 5 | `);return err.stack+=` 2025-07-13 21:52:13.596 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:52:13.596 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:52:13.596 | 2025-07-13 21:52:13.596 | TypeError: not enough arguments 2025-07-13 21:52:13.596 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:52:13.596 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:52:13.596 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:52:13.596 | at /$bunfs/root/server:178:154285 2025-07-13 21:52:13.596 | at loadAndEvaluateModule (1:11) 2025-07-13 21:52:13.596 | 2025-07-13 21:52:13.596 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:53:13.780 | 2025-07-13 21:53:13.781 | ===================================== 2025-07-13 21:53:13.781 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:53:13.781 | ===================================== 2025-07-13 21:53:13.781 | 2025-07-13 21:53:14.043 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:53:14.043 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:53:14.134 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:53:14.134 | 2025-07-13 21:53:14.134 | ===================================== 2025-07-13 21:53:14.134 | STARTING SERVER 2025-07-13 21:53:14.134 | ===================================== 2025-07-13 21:53:14.134 | 2025-07-13 21:53:14.135 | Server starting at Sun Jul 13 20:53:14 UTC 2025 2025-07-13 21:53:14.193 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:53:14.193 | { 2025-07-13 21:53:14.193 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:53:14.193 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:53:14.193 | PORT: 5123, 2025-07-13 21:53:14.193 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:53:14.193 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:53:14.193 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:53:14.193 | SERVER_MODE: "individual", 2025-07-13 21:53:14.193 | } 2025-07-13 21:53:14.214 | 2 | // @bun 2025-07-13 21:53:14.214 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:53:14.214 | 4 | `).slice(1).join(` 2025-07-13 21:53:14.214 | 5 | `);return err.stack+=` 2025-07-13 21:53:14.214 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:53:14.214 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:53:14.214 | 2025-07-13 21:53:14.214 | TypeError: not enough arguments 2025-07-13 21:53:14.214 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:53:14.214 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:53:14.214 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:53:14.214 | at /$bunfs/root/server:178:154285 2025-07-13 21:53:14.214 | at loadAndEvaluateModule (1:11) 2025-07-13 21:53:14.214 | 2025-07-13 21:53:14.214 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:54:14.418 | 2025-07-13 21:54:14.418 | ===================================== 2025-07-13 21:54:14.418 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:54:14.418 | ===================================== 2025-07-13 21:54:14.418 | 2025-07-13 21:54:14.680 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:54:14.680 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:54:14.767 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:54:14.767 | 2025-07-13 21:54:14.767 | ===================================== 2025-07-13 21:54:14.767 | STARTING SERVER 2025-07-13 21:54:14.767 | ===================================== 2025-07-13 21:54:14.767 | 2025-07-13 21:54:14.768 | Server starting at Sun Jul 13 20:54:14 UTC 2025 2025-07-13 21:54:14.825 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:54:14.825 | { 2025-07-13 21:54:14.825 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:54:14.825 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:54:14.825 | PORT: 5123, 2025-07-13 21:54:14.825 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:54:14.825 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:54:14.825 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:54:14.825 | SERVER_MODE: "individual", 2025-07-13 21:54:14.825 | } 2025-07-13 21:54:14.848 | 2 | // @bun 2025-07-13 21:54:14.848 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:54:14.848 | 4 | `).slice(1).join(` 2025-07-13 21:54:14.848 | 5 | `);return err.stack+=` 2025-07-13 21:54:14.848 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:54:14.848 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:54:14.848 | 2025-07-13 21:54:14.848 | TypeError: not enough arguments 2025-07-13 21:54:14.848 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:54:14.848 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:54:14.848 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:54:14.848 | at /$bunfs/root/server:178:154285 2025-07-13 21:54:14.848 | at loadAndEvaluateModule (1:11) 2025-07-13 21:54:14.848 | 2025-07-13 21:54:14.848 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:55:15.151 | 2025-07-13 21:55:15.152 | ===================================== 2025-07-13 21:55:15.152 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:55:15.152 | ===================================== 2025-07-13 21:55:15.152 | 2025-07-13 21:55:15.496 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:55:15.496 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:55:15.650 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:55:15.650 | 2025-07-13 21:55:15.650 | ===================================== 2025-07-13 21:55:15.650 | STARTING SERVER 2025-07-13 21:55:15.650 | ===================================== 2025-07-13 21:55:15.650 | 2025-07-13 21:55:15.651 | Server starting at Sun Jul 13 20:55:15 UTC 2025 2025-07-13 21:55:15.789 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:55:15.790 | { 2025-07-13 21:55:15.790 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:55:15.790 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:55:15.790 | PORT: 5123, 2025-07-13 21:55:15.790 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:55:15.790 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:55:15.790 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:55:15.790 | SERVER_MODE: "individual", 2025-07-13 21:55:15.790 | } 2025-07-13 21:55:15.826 | 2 | // @bun 2025-07-13 21:55:15.826 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:55:15.826 | 4 | `).slice(1).join(` 2025-07-13 21:55:15.826 | 5 | `);return err.stack+=` 2025-07-13 21:55:15.826 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:55:15.826 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:55:15.826 | 2025-07-13 21:55:15.826 | TypeError: not enough arguments 2025-07-13 21:55:15.826 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:55:15.826 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:55:15.826 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:55:15.826 | at /$bunfs/root/server:178:154285 2025-07-13 21:55:15.826 | at loadAndEvaluateModule (1:11) 2025-07-13 21:55:15.826 | 2025-07-13 21:55:15.826 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:56:16.033 | 2025-07-13 21:56:16.033 | ===================================== 2025-07-13 21:56:16.033 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:56:16.033 | ===================================== 2025-07-13 21:56:16.033 | 2025-07-13 21:56:16.303 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:56:16.303 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:56:16.390 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:56:16.390 | 2025-07-13 21:56:16.390 | ===================================== 2025-07-13 21:56:16.390 | STARTING SERVER 2025-07-13 21:56:16.390 | ===================================== 2025-07-13 21:56:16.390 | 2025-07-13 21:56:16.391 | Server starting at Sun Jul 13 20:56:16 UTC 2025 2025-07-13 21:56:16.452 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:56:16.452 | { 2025-07-13 21:56:16.452 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:56:16.452 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:56:16.452 | PORT: 5123, 2025-07-13 21:56:16.452 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:56:16.452 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:56:16.452 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:56:16.452 | SERVER_MODE: "individual", 2025-07-13 21:56:16.452 | } 2025-07-13 21:56:16.476 | 2 | // @bun 2025-07-13 21:56:16.476 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:56:16.476 | 4 | `).slice(1).join(` 2025-07-13 21:56:16.476 | 5 | `);return err.stack+=` 2025-07-13 21:56:16.476 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:56:16.476 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:56:16.476 | 2025-07-13 21:56:16.476 | TypeError: not enough arguments 2025-07-13 21:56:16.476 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:56:16.476 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:56:16.476 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:56:16.476 | at /$bunfs/root/server:178:154285 2025-07-13 21:56:16.476 | at loadAndEvaluateModule (1:11) 2025-07-13 21:56:16.476 | 2025-07-13 21:56:16.476 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:57:16.700 | 2025-07-13 21:57:16.700 | ===================================== 2025-07-13 21:57:16.700 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:57:16.700 | ===================================== 2025-07-13 21:57:16.700 | 2025-07-13 21:57:16.974 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:57:16.974 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:57:17.063 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:57:17.063 | 2025-07-13 21:57:17.063 | ===================================== 2025-07-13 21:57:17.063 | STARTING SERVER 2025-07-13 21:57:17.063 | ===================================== 2025-07-13 21:57:17.063 | 2025-07-13 21:57:17.064 | Server starting at Sun Jul 13 20:57:17 UTC 2025 2025-07-13 21:57:17.126 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:57:17.126 | { 2025-07-13 21:57:17.126 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:57:17.126 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:57:17.126 | PORT: 5123, 2025-07-13 21:57:17.126 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:57:17.126 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:57:17.126 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:57:17.126 | SERVER_MODE: "individual", 2025-07-13 21:57:17.126 | } 2025-07-13 21:57:17.149 | 2 | // @bun 2025-07-13 21:57:17.150 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:57:17.150 | 4 | `).slice(1).join(` 2025-07-13 21:57:17.150 | 5 | `);return err.stack+=` 2025-07-13 21:57:17.150 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:57:17.150 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:57:17.150 | 2025-07-13 21:57:17.150 | TypeError: not enough arguments 2025-07-13 21:57:17.150 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:57:17.150 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:57:17.150 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:57:17.150 | at /$bunfs/root/server:178:154285 2025-07-13 21:57:17.150 | at loadAndEvaluateModule (1:11) 2025-07-13 21:57:17.150 | 2025-07-13 21:57:17.150 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:58:17.445 | 2025-07-13 21:58:17.445 | ===================================== 2025-07-13 21:58:17.445 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:58:17.445 | ===================================== 2025-07-13 21:58:17.445 | 2025-07-13 21:58:17.809 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:58:17.809 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:58:17.976 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:58:17.976 | 2025-07-13 21:58:17.976 | ===================================== 2025-07-13 21:58:17.976 | STARTING SERVER 2025-07-13 21:58:17.976 | ===================================== 2025-07-13 21:58:17.976 | 2025-07-13 21:58:17.977 | Server starting at Sun Jul 13 20:58:17 UTC 2025 2025-07-13 21:58:18.111 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:58:18.112 | { 2025-07-13 21:58:18.112 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:58:18.112 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:58:18.112 | PORT: 5123, 2025-07-13 21:58:18.112 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:58:18.112 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:58:18.112 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:58:18.112 | SERVER_MODE: "individual", 2025-07-13 21:58:18.112 | } 2025-07-13 21:58:18.150 | 2 | // @bun 2025-07-13 21:58:18.150 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:58:18.150 | 4 | `).slice(1).join(` 2025-07-13 21:58:18.150 | 5 | `);return err.stack+=` 2025-07-13 21:58:18.150 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:58:18.150 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:58:18.150 | 2025-07-13 21:58:18.150 | TypeError: not enough arguments 2025-07-13 21:58:18.150 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:58:18.150 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:58:18.150 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:58:18.150 | at /$bunfs/root/server:178:154285 2025-07-13 21:58:18.150 | at loadAndEvaluateModule (1:11) 2025-07-13 21:58:18.150 | 2025-07-13 21:58:18.150 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 21:59:18.365 | 2025-07-13 21:59:18.365 | ===================================== 2025-07-13 21:59:18.365 | RUNNING DATABASE MIGRATIONS 2025-07-13 21:59:18.365 | ===================================== 2025-07-13 21:59:18.365 | 2025-07-13 21:59:18.643 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 21:59:18.643 | Reading config file '/app/drizzle.config.ts' 2025-07-13 21:59:18.737 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 21:59:18.737 | 2025-07-13 21:59:18.737 | ===================================== 2025-07-13 21:59:18.737 | STARTING SERVER 2025-07-13 21:59:18.737 | ===================================== 2025-07-13 21:59:18.737 | 2025-07-13 21:59:18.737 | Server starting at Sun Jul 13 20:59:18 UTC 2025 2025-07-13 21:59:18.799 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 21:59:18.799 | { 2025-07-13 21:59:18.799 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 21:59:18.799 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 21:59:18.799 | PORT: 5123, 2025-07-13 21:59:18.799 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 21:59:18.799 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 21:59:18.799 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 21:59:18.799 | SERVER_MODE: "individual", 2025-07-13 21:59:18.799 | } 2025-07-13 21:59:18.820 | 2 | // @bun 2025-07-13 21:59:18.820 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 21:59:18.821 | 4 | `).slice(1).join(` 2025-07-13 21:59:18.821 | 5 | `);return err.stack+=` 2025-07-13 21:59:18.821 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 21:59:18.821 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 21:59:18.821 | 2025-07-13 21:59:18.821 | TypeError: not enough arguments 2025-07-13 21:59:18.821 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 21:59:18.821 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 21:59:18.821 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 21:59:18.821 | at /$bunfs/root/server:178:154285 2025-07-13 21:59:18.821 | at loadAndEvaluateModule (1:11) 2025-07-13 21:59:18.821 | 2025-07-13 21:59:18.821 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:00:19.128 | 2025-07-13 22:00:19.128 | ===================================== 2025-07-13 22:00:19.128 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:00:19.128 | ===================================== 2025-07-13 22:00:19.128 | 2025-07-13 22:00:19.475 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:00:19.475 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:00:19.641 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:00:19.641 | 2025-07-13 22:00:19.641 | ===================================== 2025-07-13 22:00:19.641 | STARTING SERVER 2025-07-13 22:00:19.641 | ===================================== 2025-07-13 22:00:19.641 | 2025-07-13 22:00:19.642 | Server starting at Sun Jul 13 21:00:19 UTC 2025 2025-07-13 22:00:19.775 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:00:19.776 | { 2025-07-13 22:00:19.776 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:00:19.776 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:00:19.776 | PORT: 5123, 2025-07-13 22:00:19.776 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:00:19.776 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:00:19.776 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:00:19.776 | SERVER_MODE: "individual", 2025-07-13 22:00:19.776 | } 2025-07-13 22:00:19.812 | 2 | // @bun 2025-07-13 22:00:19.812 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:00:19.812 | 4 | `).slice(1).join(` 2025-07-13 22:00:19.812 | 5 | `);return err.stack+=` 2025-07-13 22:00:19.812 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:00:19.812 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:00:19.812 | 2025-07-13 22:00:19.812 | TypeError: not enough arguments 2025-07-13 22:00:19.812 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:00:19.812 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:00:19.812 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:00:19.812 | at /$bunfs/root/server:178:154285 2025-07-13 22:00:19.812 | at loadAndEvaluateModule (1:11) 2025-07-13 22:00:19.812 | 2025-07-13 22:00:19.812 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:01:20.021 | 2025-07-13 22:01:20.021 | ===================================== 2025-07-13 22:01:20.021 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:01:20.021 | ===================================== 2025-07-13 22:01:20.021 | 2025-07-13 22:01:20.311 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:01:20.311 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:01:20.399 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:01:20.400 | 2025-07-13 22:01:20.400 | ===================================== 2025-07-13 22:01:20.400 | STARTING SERVER 2025-07-13 22:01:20.400 | ===================================== 2025-07-13 22:01:20.400 | 2025-07-13 22:01:20.400 | Server starting at Sun Jul 13 21:01:20 UTC 2025 2025-07-13 22:01:20.461 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:01:20.461 | { 2025-07-13 22:01:20.461 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:01:20.461 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:01:20.461 | PORT: 5123, 2025-07-13 22:01:20.461 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:01:20.461 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:01:20.461 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:01:20.461 | SERVER_MODE: "individual", 2025-07-13 22:01:20.461 | } 2025-07-13 22:01:20.483 | 2 | // @bun 2025-07-13 22:01:20.484 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:01:20.484 | 4 | `).slice(1).join(` 2025-07-13 22:01:20.484 | 5 | `);return err.stack+=` 2025-07-13 22:01:20.484 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:01:20.484 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:01:20.484 | 2025-07-13 22:01:20.484 | TypeError: not enough arguments 2025-07-13 22:01:20.484 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:01:20.484 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:01:20.484 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:01:20.484 | at /$bunfs/root/server:178:154285 2025-07-13 22:01:20.484 | at loadAndEvaluateModule (1:11) 2025-07-13 22:01:20.484 | 2025-07-13 22:01:20.484 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:02:20.719 | 2025-07-13 22:02:20.719 | ===================================== 2025-07-13 22:02:20.719 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:02:20.719 | ===================================== 2025-07-13 22:02:20.719 | 2025-07-13 22:02:20.989 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:02:20.989 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:02:21.080 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:02:21.080 | 2025-07-13 22:02:21.080 | ===================================== 2025-07-13 22:02:21.080 | STARTING SERVER 2025-07-13 22:02:21.080 | ===================================== 2025-07-13 22:02:21.080 | 2025-07-13 22:02:21.081 | Server starting at Sun Jul 13 21:02:21 UTC 2025 2025-07-13 22:02:21.161 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:02:21.161 | { 2025-07-13 22:02:21.161 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:02:21.161 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:02:21.161 | PORT: 5123, 2025-07-13 22:02:21.161 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:02:21.161 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:02:21.161 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:02:21.161 | SERVER_MODE: "individual", 2025-07-13 22:02:21.161 | } 2025-07-13 22:02:21.189 | 2 | // @bun 2025-07-13 22:02:21.189 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:02:21.189 | 4 | `).slice(1).join(` 2025-07-13 22:02:21.189 | 5 | `);return err.stack+=` 2025-07-13 22:02:21.189 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:02:21.189 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:02:21.189 | 2025-07-13 22:02:21.189 | TypeError: not enough arguments 2025-07-13 22:02:21.189 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:02:21.189 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:02:21.189 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:02:21.189 | at /$bunfs/root/server:178:154285 2025-07-13 22:02:21.189 | at loadAndEvaluateModule (1:11) 2025-07-13 22:02:21.189 | 2025-07-13 22:02:21.189 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:03:21.501 | 2025-07-13 22:03:21.501 | ===================================== 2025-07-13 22:03:21.501 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:03:21.501 | ===================================== 2025-07-13 22:03:21.501 | 2025-07-13 22:03:21.873 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:03:21.873 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:03:22.042 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:03:22.042 | 2025-07-13 22:03:22.042 | ===================================== 2025-07-13 22:03:22.042 | STARTING SERVER 2025-07-13 22:03:22.042 | ===================================== 2025-07-13 22:03:22.042 | 2025-07-13 22:03:22.043 | Server starting at Sun Jul 13 21:03:22 UTC 2025 2025-07-13 22:03:22.179 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:03:22.180 | { 2025-07-13 22:03:22.180 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:03:22.180 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:03:22.180 | PORT: 5123, 2025-07-13 22:03:22.180 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:03:22.180 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:03:22.180 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:03:22.180 | SERVER_MODE: "individual", 2025-07-13 22:03:22.180 | } 2025-07-13 22:03:22.217 | 2 | // @bun 2025-07-13 22:03:22.217 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:03:22.217 | 4 | `).slice(1).join(` 2025-07-13 22:03:22.217 | 5 | `);return err.stack+=` 2025-07-13 22:03:22.217 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:03:22.217 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:03:22.217 | 2025-07-13 22:03:22.217 | TypeError: not enough arguments 2025-07-13 22:03:22.217 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:03:22.217 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:03:22.217 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:03:22.217 | at /$bunfs/root/server:178:154285 2025-07-13 22:03:22.217 | at loadAndEvaluateModule (1:11) 2025-07-13 22:03:22.217 | 2025-07-13 22:03:22.217 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:04:22.443 | 2025-07-13 22:04:22.443 | ===================================== 2025-07-13 22:04:22.443 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:04:22.443 | ===================================== 2025-07-13 22:04:22.443 | 2025-07-13 22:04:22.706 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:04:22.706 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:04:22.788 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:04:22.788 | 2025-07-13 22:04:22.788 | ===================================== 2025-07-13 22:04:22.788 | STARTING SERVER 2025-07-13 22:04:22.788 | ===================================== 2025-07-13 22:04:22.788 | 2025-07-13 22:04:22.789 | Server starting at Sun Jul 13 21:04:22 UTC 2025 2025-07-13 22:04:22.845 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:04:22.845 | { 2025-07-13 22:04:22.845 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:04:22.845 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:04:22.845 | PORT: 5123, 2025-07-13 22:04:22.845 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:04:22.845 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:04:22.845 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:04:22.845 | SERVER_MODE: "individual", 2025-07-13 22:04:22.845 | } 2025-07-13 22:04:22.866 | 2 | // @bun 2025-07-13 22:04:22.866 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:04:22.866 | 4 | `).slice(1).join(` 2025-07-13 22:04:22.866 | 5 | `);return err.stack+=` 2025-07-13 22:04:22.866 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:04:22.866 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:04:22.866 | 2025-07-13 22:04:22.866 | TypeError: not enough arguments 2025-07-13 22:04:22.866 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:04:22.866 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:04:22.866 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:04:22.866 | at /$bunfs/root/server:178:154285 2025-07-13 22:04:22.866 | at loadAndEvaluateModule (1:11) 2025-07-13 22:04:22.866 | 2025-07-13 22:04:22.866 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:05:23.175 | 2025-07-13 22:05:23.175 | ===================================== 2025-07-13 22:05:23.175 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:05:23.175 | ===================================== 2025-07-13 22:05:23.175 | 2025-07-13 22:05:23.531 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:05:23.531 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:05:23.691 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:05:23.691 | 2025-07-13 22:05:23.691 | ===================================== 2025-07-13 22:05:23.691 | STARTING SERVER 2025-07-13 22:05:23.691 | ===================================== 2025-07-13 22:05:23.691 | 2025-07-13 22:05:23.692 | Server starting at Sun Jul 13 21:05:23 UTC 2025 2025-07-13 22:05:23.828 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:05:23.829 | { 2025-07-13 22:05:23.829 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:05:23.829 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:05:23.829 | PORT: 5123, 2025-07-13 22:05:23.829 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:05:23.829 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:05:23.829 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:05:23.829 | SERVER_MODE: "individual", 2025-07-13 22:05:23.829 | } 2025-07-13 22:05:23.866 | 2 | // @bun 2025-07-13 22:05:23.866 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:05:23.866 | 4 | `).slice(1).join(` 2025-07-13 22:05:23.866 | 5 | `);return err.stack+=` 2025-07-13 22:05:23.866 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:05:23.866 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:05:23.866 | 2025-07-13 22:05:23.866 | TypeError: not enough arguments 2025-07-13 22:05:23.866 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:05:23.866 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:05:23.866 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:05:23.866 | at /$bunfs/root/server:178:154285 2025-07-13 22:05:23.866 | at loadAndEvaluateModule (1:11) 2025-07-13 22:05:23.866 | 2025-07-13 22:05:23.866 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:06:24.158 | 2025-07-13 22:06:24.158 | ===================================== 2025-07-13 22:06:24.158 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:06:24.158 | ===================================== 2025-07-13 22:06:24.158 | 2025-07-13 22:06:24.429 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:06:24.429 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:06:24.518 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:06:24.518 | 2025-07-13 22:06:24.518 | ===================================== 2025-07-13 22:06:24.518 | STARTING SERVER 2025-07-13 22:06:24.518 | ===================================== 2025-07-13 22:06:24.518 | 2025-07-13 22:06:24.519 | Server starting at Sun Jul 13 21:06:24 UTC 2025 2025-07-13 22:06:24.576 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:06:24.576 | { 2025-07-13 22:06:24.576 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:06:24.576 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:06:24.576 | PORT: 5123, 2025-07-13 22:06:24.576 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:06:24.576 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:06:24.576 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:06:24.576 | SERVER_MODE: "individual", 2025-07-13 22:06:24.576 | } 2025-07-13 22:06:24.597 | 2 | // @bun 2025-07-13 22:06:24.597 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:06:24.597 | 4 | `).slice(1).join(` 2025-07-13 22:06:24.597 | 5 | `);return err.stack+=` 2025-07-13 22:06:24.597 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:06:24.597 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:06:24.597 | 2025-07-13 22:06:24.597 | TypeError: not enough arguments 2025-07-13 22:06:24.597 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:06:24.597 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:06:24.597 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:06:24.597 | at /$bunfs/root/server:178:154285 2025-07-13 22:06:24.597 | at loadAndEvaluateModule (1:11) 2025-07-13 22:06:24.597 | 2025-07-13 22:06:24.597 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:07:24.815 | 2025-07-13 22:07:24.815 | ===================================== 2025-07-13 22:07:24.815 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:07:24.815 | ===================================== 2025-07-13 22:07:24.815 | 2025-07-13 22:07:25.090 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:07:25.090 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:07:25.173 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:07:25.173 | 2025-07-13 22:07:25.173 | ===================================== 2025-07-13 22:07:25.173 | STARTING SERVER 2025-07-13 22:07:25.173 | ===================================== 2025-07-13 22:07:25.173 | 2025-07-13 22:07:25.174 | Server starting at Sun Jul 13 21:07:25 UTC 2025 2025-07-13 22:07:25.230 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:07:25.230 | { 2025-07-13 22:07:25.230 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:07:25.230 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:07:25.230 | PORT: 5123, 2025-07-13 22:07:25.230 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:07:25.230 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:07:25.230 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:07:25.230 | SERVER_MODE: "individual", 2025-07-13 22:07:25.230 | } 2025-07-13 22:07:25.252 | 2 | // @bun 2025-07-13 22:07:25.252 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:07:25.252 | 4 | `).slice(1).join(` 2025-07-13 22:07:25.252 | 5 | `);return err.stack+=` 2025-07-13 22:07:25.252 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:07:25.252 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:07:25.252 | 2025-07-13 22:07:25.252 | TypeError: not enough arguments 2025-07-13 22:07:25.252 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:07:25.252 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:07:25.252 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:07:25.252 | at /$bunfs/root/server:178:154285 2025-07-13 22:07:25.252 | at loadAndEvaluateModule (1:11) 2025-07-13 22:07:25.252 | 2025-07-13 22:07:25.252 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:08:25.493 | 2025-07-13 22:08:25.493 | ===================================== 2025-07-13 22:08:25.493 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:08:25.493 | ===================================== 2025-07-13 22:08:25.493 | 2025-07-13 22:08:25.766 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:08:25.766 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:08:25.850 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:08:25.850 | 2025-07-13 22:08:25.850 | ===================================== 2025-07-13 22:08:25.850 | STARTING SERVER 2025-07-13 22:08:25.850 | ===================================== 2025-07-13 22:08:25.850 | 2025-07-13 22:08:25.851 | Server starting at Sun Jul 13 21:08:25 UTC 2025 2025-07-13 22:08:25.909 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:08:25.909 | { 2025-07-13 22:08:25.909 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:08:25.909 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:08:25.909 | PORT: 5123, 2025-07-13 22:08:25.909 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:08:25.909 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:08:25.909 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:08:25.909 | SERVER_MODE: "individual", 2025-07-13 22:08:25.909 | } 2025-07-13 22:08:25.931 | 2 | // @bun 2025-07-13 22:08:25.931 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:08:25.931 | 4 | `).slice(1).join(` 2025-07-13 22:08:25.931 | 5 | `);return err.stack+=` 2025-07-13 22:08:25.931 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:08:25.931 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:08:25.931 | 2025-07-13 22:08:25.931 | TypeError: not enough arguments 2025-07-13 22:08:25.931 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:08:25.931 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:08:25.931 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:08:25.931 | at /$bunfs/root/server:178:154285 2025-07-13 22:08:25.931 | at loadAndEvaluateModule (1:11) 2025-07-13 22:08:25.931 | 2025-07-13 22:08:25.931 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:09:26.152 | 2025-07-13 22:09:26.152 | ===================================== 2025-07-13 22:09:26.152 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:09:26.152 | ===================================== 2025-07-13 22:09:26.152 | 2025-07-13 22:09:26.430 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:09:26.430 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:09:26.516 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:09:26.516 | 2025-07-13 22:09:26.516 | ===================================== 2025-07-13 22:09:26.516 | STARTING SERVER 2025-07-13 22:09:26.516 | ===================================== 2025-07-13 22:09:26.516 | 2025-07-13 22:09:26.517 | Server starting at Sun Jul 13 21:09:26 UTC 2025 2025-07-13 22:09:26.578 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:09:26.578 | { 2025-07-13 22:09:26.578 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:09:26.578 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:09:26.578 | PORT: 5123, 2025-07-13 22:09:26.578 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:09:26.578 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:09:26.578 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:09:26.578 | SERVER_MODE: "individual", 2025-07-13 22:09:26.578 | } 2025-07-13 22:09:26.599 | 2 | // @bun 2025-07-13 22:09:26.599 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:09:26.599 | 4 | `).slice(1).join(` 2025-07-13 22:09:26.599 | 5 | `);return err.stack+=` 2025-07-13 22:09:26.599 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:09:26.599 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:09:26.599 | 2025-07-13 22:09:26.599 | TypeError: not enough arguments 2025-07-13 22:09:26.599 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:09:26.599 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:09:26.599 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:09:26.599 | at /$bunfs/root/server:178:154285 2025-07-13 22:09:26.599 | at loadAndEvaluateModule (1:11) 2025-07-13 22:09:26.599 | 2025-07-13 22:09:26.599 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:10:26.797 | 2025-07-13 22:10:26.797 | ===================================== 2025-07-13 22:10:26.797 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:10:26.797 | ===================================== 2025-07-13 22:10:26.797 | 2025-07-13 22:10:27.075 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:10:27.075 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:10:27.166 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:10:27.166 | 2025-07-13 22:10:27.166 | ===================================== 2025-07-13 22:10:27.166 | STARTING SERVER 2025-07-13 22:10:27.166 | ===================================== 2025-07-13 22:10:27.166 | 2025-07-13 22:10:27.167 | Server starting at Sun Jul 13 21:10:27 UTC 2025 2025-07-13 22:10:27.225 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:10:27.225 | { 2025-07-13 22:10:27.225 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:10:27.225 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:10:27.225 | PORT: 5123, 2025-07-13 22:10:27.225 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:10:27.225 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:10:27.225 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:10:27.225 | SERVER_MODE: "individual", 2025-07-13 22:10:27.225 | } 2025-07-13 22:10:27.247 | 2 | // @bun 2025-07-13 22:10:27.247 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:10:27.247 | 4 | `).slice(1).join(` 2025-07-13 22:10:27.247 | 5 | `);return err.stack+=` 2025-07-13 22:10:27.247 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:10:27.247 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:10:27.247 | 2025-07-13 22:10:27.247 | TypeError: not enough arguments 2025-07-13 22:10:27.247 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:10:27.247 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:10:27.247 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:10:27.247 | at /$bunfs/root/server:178:154285 2025-07-13 22:10:27.247 | at loadAndEvaluateModule (1:11) 2025-07-13 22:10:27.247 | 2025-07-13 22:10:27.247 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:11:27.467 | 2025-07-13 22:11:27.467 | ===================================== 2025-07-13 22:11:27.467 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:11:27.467 | ===================================== 2025-07-13 22:11:27.467 | 2025-07-13 22:11:27.751 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:11:27.751 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:11:27.838 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:11:27.838 | 2025-07-13 22:11:27.838 | ===================================== 2025-07-13 22:11:27.838 | STARTING SERVER 2025-07-13 22:11:27.838 | ===================================== 2025-07-13 22:11:27.838 | 2025-07-13 22:11:27.838 | Server starting at Sun Jul 13 21:11:27 UTC 2025 2025-07-13 22:11:27.902 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:11:27.902 | { 2025-07-13 22:11:27.902 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:11:27.902 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:11:27.902 | PORT: 5123, 2025-07-13 22:11:27.902 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:11:27.902 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:11:27.902 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:11:27.902 | SERVER_MODE: "individual", 2025-07-13 22:11:27.902 | } 2025-07-13 22:11:27.925 | 2 | // @bun 2025-07-13 22:11:27.925 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:11:27.925 | 4 | `).slice(1).join(` 2025-07-13 22:11:27.925 | 5 | `);return err.stack+=` 2025-07-13 22:11:27.925 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:11:27.925 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:11:27.925 | 2025-07-13 22:11:27.925 | TypeError: not enough arguments 2025-07-13 22:11:27.925 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:11:27.925 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:11:27.925 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:11:27.925 | at /$bunfs/root/server:178:154285 2025-07-13 22:11:27.925 | at loadAndEvaluateModule (1:11) 2025-07-13 22:11:27.925 | 2025-07-13 22:11:27.925 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:12:28.175 | 2025-07-13 22:12:28.175 | ===================================== 2025-07-13 22:12:28.175 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:12:28.175 | ===================================== 2025-07-13 22:12:28.175 | 2025-07-13 22:12:28.447 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:12:28.447 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:12:28.543 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:12:28.543 | 2025-07-13 22:12:28.543 | ===================================== 2025-07-13 22:12:28.543 | STARTING SERVER 2025-07-13 22:12:28.543 | ===================================== 2025-07-13 22:12:28.543 | 2025-07-13 22:12:28.544 | Server starting at Sun Jul 13 21:12:28 UTC 2025 2025-07-13 22:12:28.604 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:12:28.604 | { 2025-07-13 22:12:28.604 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:12:28.604 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:12:28.604 | PORT: 5123, 2025-07-13 22:12:28.604 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:12:28.604 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:12:28.604 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:12:28.604 | SERVER_MODE: "individual", 2025-07-13 22:12:28.604 | } 2025-07-13 22:12:28.626 | 2 | // @bun 2025-07-13 22:12:28.626 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:12:28.626 | 4 | `).slice(1).join(` 2025-07-13 22:12:28.626 | 5 | `);return err.stack+=` 2025-07-13 22:12:28.626 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:12:28.626 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:12:28.626 | 2025-07-13 22:12:28.626 | TypeError: not enough arguments 2025-07-13 22:12:28.626 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:12:28.626 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:12:28.626 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:12:28.626 | at /$bunfs/root/server:178:154285 2025-07-13 22:12:28.626 | at loadAndEvaluateModule (1:11) 2025-07-13 22:12:28.626 | 2025-07-13 22:12:28.626 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:13:28.831 | 2025-07-13 22:13:28.831 | ===================================== 2025-07-13 22:13:28.831 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:13:28.831 | ===================================== 2025-07-13 22:13:28.831 | 2025-07-13 22:13:29.110 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:13:29.110 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:13:29.193 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:13:29.193 | 2025-07-13 22:13:29.193 | ===================================== 2025-07-13 22:13:29.193 | STARTING SERVER 2025-07-13 22:13:29.193 | ===================================== 2025-07-13 22:13:29.193 | 2025-07-13 22:13:29.194 | Server starting at Sun Jul 13 21:13:29 UTC 2025 2025-07-13 22:13:29.254 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:13:29.254 | { 2025-07-13 22:13:29.254 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:13:29.254 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:13:29.254 | PORT: 5123, 2025-07-13 22:13:29.254 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:13:29.254 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:13:29.254 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:13:29.254 | SERVER_MODE: "individual", 2025-07-13 22:13:29.254 | } 2025-07-13 22:13:29.277 | 2 | // @bun 2025-07-13 22:13:29.277 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:13:29.277 | 4 | `).slice(1).join(` 2025-07-13 22:13:29.277 | 5 | `);return err.stack+=` 2025-07-13 22:13:29.277 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:13:29.277 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:13:29.277 | 2025-07-13 22:13:29.277 | TypeError: not enough arguments 2025-07-13 22:13:29.277 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:13:29.277 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:13:29.277 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:13:29.277 | at /$bunfs/root/server:178:154285 2025-07-13 22:13:29.277 | at loadAndEvaluateModule (1:11) 2025-07-13 22:13:29.277 | 2025-07-13 22:13:29.277 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:14:29.498 | 2025-07-13 22:14:29.498 | ===================================== 2025-07-13 22:14:29.498 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:14:29.498 | ===================================== 2025-07-13 22:14:29.498 | 2025-07-13 22:14:29.773 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:14:29.773 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:14:29.859 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:14:29.859 | 2025-07-13 22:14:29.859 | ===================================== 2025-07-13 22:14:29.859 | STARTING SERVER 2025-07-13 22:14:29.859 | ===================================== 2025-07-13 22:14:29.859 | 2025-07-13 22:14:29.860 | Server starting at Sun Jul 13 21:14:29 UTC 2025 2025-07-13 22:14:29.919 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:14:29.919 | { 2025-07-13 22:14:29.919 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:14:29.919 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:14:29.919 | PORT: 5123, 2025-07-13 22:14:29.919 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:14:29.919 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:14:29.919 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:14:29.919 | SERVER_MODE: "individual", 2025-07-13 22:14:29.919 | } 2025-07-13 22:14:29.940 | 2 | // @bun 2025-07-13 22:14:29.940 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:14:29.940 | 4 | `).slice(1).join(` 2025-07-13 22:14:29.940 | 5 | `);return err.stack+=` 2025-07-13 22:14:29.940 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:14:29.940 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:14:29.940 | 2025-07-13 22:14:29.940 | TypeError: not enough arguments 2025-07-13 22:14:29.940 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:14:29.940 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:14:29.940 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:14:29.940 | at /$bunfs/root/server:178:154285 2025-07-13 22:14:29.940 | at loadAndEvaluateModule (1:11) 2025-07-13 22:14:29.940 | 2025-07-13 22:14:29.940 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:15:30.146 | 2025-07-13 22:15:30.146 | ===================================== 2025-07-13 22:15:30.146 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:15:30.146 | ===================================== 2025-07-13 22:15:30.146 | 2025-07-13 22:15:30.417 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:15:30.417 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:15:30.500 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:15:30.500 | 2025-07-13 22:15:30.500 | ===================================== 2025-07-13 22:15:30.500 | STARTING SERVER 2025-07-13 22:15:30.500 | ===================================== 2025-07-13 22:15:30.500 | 2025-07-13 22:15:30.501 | Server starting at Sun Jul 13 21:15:30 UTC 2025 2025-07-13 22:15:30.558 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:15:30.558 | { 2025-07-13 22:15:30.558 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:15:30.558 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:15:30.558 | PORT: 5123, 2025-07-13 22:15:30.558 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:15:30.558 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:15:30.558 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:15:30.558 | SERVER_MODE: "individual", 2025-07-13 22:15:30.558 | } 2025-07-13 22:15:30.579 | 2 | // @bun 2025-07-13 22:15:30.579 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:15:30.579 | 4 | `).slice(1).join(` 2025-07-13 22:15:30.579 | 5 | `);return err.stack+=` 2025-07-13 22:15:30.579 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:15:30.579 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:15:30.579 | 2025-07-13 22:15:30.579 | TypeError: not enough arguments 2025-07-13 22:15:30.579 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:15:30.579 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:15:30.579 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:15:30.579 | at /$bunfs/root/server:178:154285 2025-07-13 22:15:30.579 | at loadAndEvaluateModule (1:11) 2025-07-13 22:15:30.579 | 2025-07-13 22:15:30.579 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:16:30.802 | 2025-07-13 22:16:30.802 | ===================================== 2025-07-13 22:16:30.802 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:16:30.802 | ===================================== 2025-07-13 22:16:30.802 | 2025-07-13 22:16:31.068 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:16:31.068 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:16:31.152 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:16:31.152 | 2025-07-13 22:16:31.152 | ===================================== 2025-07-13 22:16:31.152 | STARTING SERVER 2025-07-13 22:16:31.152 | ===================================== 2025-07-13 22:16:31.152 | 2025-07-13 22:16:31.153 | Server starting at Sun Jul 13 21:16:31 UTC 2025 2025-07-13 22:16:31.212 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:16:31.212 | { 2025-07-13 22:16:31.212 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:16:31.212 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:16:31.212 | PORT: 5123, 2025-07-13 22:16:31.212 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:16:31.212 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:16:31.212 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:16:31.212 | SERVER_MODE: "individual", 2025-07-13 22:16:31.212 | } 2025-07-13 22:16:31.233 | 2 | // @bun 2025-07-13 22:16:31.233 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:16:31.233 | 4 | `).slice(1).join(` 2025-07-13 22:16:31.233 | 5 | `);return err.stack+=` 2025-07-13 22:16:31.233 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:16:31.233 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:16:31.233 | 2025-07-13 22:16:31.233 | TypeError: not enough arguments 2025-07-13 22:16:31.233 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:16:31.233 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:16:31.233 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:16:31.233 | at /$bunfs/root/server:178:154285 2025-07-13 22:16:31.233 | at loadAndEvaluateModule (1:11) 2025-07-13 22:16:31.233 | 2025-07-13 22:16:31.233 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:17:31.498 | 2025-07-13 22:17:31.498 | ===================================== 2025-07-13 22:17:31.498 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:17:31.498 | ===================================== 2025-07-13 22:17:31.498 | 2025-07-13 22:17:31.771 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:17:31.771 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:17:31.862 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:17:31.862 | 2025-07-13 22:17:31.862 | ===================================== 2025-07-13 22:17:31.862 | STARTING SERVER 2025-07-13 22:17:31.862 | ===================================== 2025-07-13 22:17:31.862 | 2025-07-13 22:17:31.863 | Server starting at Sun Jul 13 21:17:31 UTC 2025 2025-07-13 22:17:31.922 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:17:31.922 | { 2025-07-13 22:17:31.922 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:17:31.922 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:17:31.922 | PORT: 5123, 2025-07-13 22:17:31.922 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:17:31.922 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:17:31.922 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:17:31.922 | SERVER_MODE: "individual", 2025-07-13 22:17:31.922 | } 2025-07-13 22:17:31.945 | 2 | // @bun 2025-07-13 22:17:31.946 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:17:31.946 | 4 | `).slice(1).join(` 2025-07-13 22:17:31.946 | 5 | `);return err.stack+=` 2025-07-13 22:17:31.946 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:17:31.946 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:17:31.946 | 2025-07-13 22:17:31.946 | TypeError: not enough arguments 2025-07-13 22:17:31.946 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:17:31.946 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:17:31.946 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:17:31.946 | at /$bunfs/root/server:178:154285 2025-07-13 22:17:31.946 | at loadAndEvaluateModule (1:11) 2025-07-13 22:17:31.946 | 2025-07-13 22:17:31.946 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:18:32.188 | 2025-07-13 22:18:32.188 | ===================================== 2025-07-13 22:18:32.188 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:18:32.188 | ===================================== 2025-07-13 22:18:32.188 | 2025-07-13 22:18:32.462 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:18:32.462 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:18:32.548 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:18:32.549 | 2025-07-13 22:18:32.549 | ===================================== 2025-07-13 22:18:32.549 | STARTING SERVER 2025-07-13 22:18:32.549 | ===================================== 2025-07-13 22:18:32.549 | 2025-07-13 22:18:32.549 | Server starting at Sun Jul 13 21:18:32 UTC 2025 2025-07-13 22:18:32.608 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:18:32.608 | { 2025-07-13 22:18:32.608 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:18:32.608 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:18:32.608 | PORT: 5123, 2025-07-13 22:18:32.608 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:18:32.608 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:18:32.608 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:18:32.608 | SERVER_MODE: "individual", 2025-07-13 22:18:32.608 | } 2025-07-13 22:18:32.630 | 2 | // @bun 2025-07-13 22:18:32.630 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:18:32.630 | 4 | `).slice(1).join(` 2025-07-13 22:18:32.630 | 5 | `);return err.stack+=` 2025-07-13 22:18:32.630 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:18:32.630 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:18:32.630 | 2025-07-13 22:18:32.630 | TypeError: not enough arguments 2025-07-13 22:18:32.630 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:18:32.630 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:18:32.630 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:18:32.630 | at /$bunfs/root/server:178:154285 2025-07-13 22:18:32.630 | at loadAndEvaluateModule (1:11) 2025-07-13 22:18:32.630 | 2025-07-13 22:18:32.630 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:19:32.863 | 2025-07-13 22:19:32.863 | ===================================== 2025-07-13 22:19:32.863 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:19:32.863 | ===================================== 2025-07-13 22:19:32.863 | 2025-07-13 22:19:33.140 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:19:33.140 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:19:33.228 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:19:33.228 | 2025-07-13 22:19:33.228 | ===================================== 2025-07-13 22:19:33.228 | STARTING SERVER 2025-07-13 22:19:33.228 | ===================================== 2025-07-13 22:19:33.228 | 2025-07-13 22:19:33.229 | Server starting at Sun Jul 13 21:19:33 UTC 2025 2025-07-13 22:19:33.290 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:19:33.290 | { 2025-07-13 22:19:33.290 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:19:33.290 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:19:33.290 | PORT: 5123, 2025-07-13 22:19:33.290 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:19:33.290 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:19:33.290 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:19:33.290 | SERVER_MODE: "individual", 2025-07-13 22:19:33.290 | } 2025-07-13 22:19:33.312 | 2 | // @bun 2025-07-13 22:19:33.312 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:19:33.312 | 4 | `).slice(1).join(` 2025-07-13 22:19:33.312 | 5 | `);return err.stack+=` 2025-07-13 22:19:33.312 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:19:33.312 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:19:33.312 | 2025-07-13 22:19:33.312 | TypeError: not enough arguments 2025-07-13 22:19:33.312 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:19:33.312 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:19:33.312 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:19:33.312 | at /$bunfs/root/server:178:154285 2025-07-13 22:19:33.312 | at loadAndEvaluateModule (1:11) 2025-07-13 22:19:33.312 | 2025-07-13 22:19:33.312 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:20:33.530 | 2025-07-13 22:20:33.530 | ===================================== 2025-07-13 22:20:33.530 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:20:33.530 | ===================================== 2025-07-13 22:20:33.530 | 2025-07-13 22:20:33.813 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:20:33.813 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:20:33.899 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:20:33.899 | 2025-07-13 22:20:33.899 | ===================================== 2025-07-13 22:20:33.899 | STARTING SERVER 2025-07-13 22:20:33.899 | ===================================== 2025-07-13 22:20:33.899 | 2025-07-13 22:20:33.900 | Server starting at Sun Jul 13 21:20:33 UTC 2025 2025-07-13 22:20:33.958 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:20:33.959 | { 2025-07-13 22:20:33.959 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:20:33.959 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:20:33.959 | PORT: 5123, 2025-07-13 22:20:33.959 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:20:33.959 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:20:33.959 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:20:33.959 | SERVER_MODE: "individual", 2025-07-13 22:20:33.959 | } 2025-07-13 22:20:33.980 | 2 | // @bun 2025-07-13 22:20:33.980 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:20:33.980 | 4 | `).slice(1).join(` 2025-07-13 22:20:33.980 | 5 | `);return err.stack+=` 2025-07-13 22:20:33.980 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:20:33.980 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:20:33.980 | 2025-07-13 22:20:33.980 | TypeError: not enough arguments 2025-07-13 22:20:33.980 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:20:33.980 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:20:33.980 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:20:33.980 | at /$bunfs/root/server:178:154285 2025-07-13 22:20:33.980 | at loadAndEvaluateModule (1:11) 2025-07-13 22:20:33.980 | 2025-07-13 22:20:33.980 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:21:34.220 | 2025-07-13 22:21:34.220 | ===================================== 2025-07-13 22:21:34.220 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:21:34.220 | ===================================== 2025-07-13 22:21:34.220 | 2025-07-13 22:21:34.502 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:21:34.503 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:21:34.590 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:21:34.590 | 2025-07-13 22:21:34.590 | ===================================== 2025-07-13 22:21:34.590 | STARTING SERVER 2025-07-13 22:21:34.590 | ===================================== 2025-07-13 22:21:34.590 | 2025-07-13 22:21:34.591 | Server starting at Sun Jul 13 21:21:34 UTC 2025 2025-07-13 22:21:34.650 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:21:34.650 | { 2025-07-13 22:21:34.650 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:21:34.650 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:21:34.650 | PORT: 5123, 2025-07-13 22:21:34.650 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:21:34.650 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:21:34.650 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:21:34.650 | SERVER_MODE: "individual", 2025-07-13 22:21:34.650 | } 2025-07-13 22:21:34.672 | 2 | // @bun 2025-07-13 22:21:34.672 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:21:34.672 | 4 | `).slice(1).join(` 2025-07-13 22:21:34.672 | 5 | `);return err.stack+=` 2025-07-13 22:21:34.672 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:21:34.672 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:21:34.672 | 2025-07-13 22:21:34.672 | TypeError: not enough arguments 2025-07-13 22:21:34.672 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:21:34.672 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:21:34.672 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:21:34.672 | at /$bunfs/root/server:178:154285 2025-07-13 22:21:34.672 | at loadAndEvaluateModule (1:11) 2025-07-13 22:21:34.672 | 2025-07-13 22:21:34.672 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:22:34.875 | 2025-07-13 22:22:34.876 | ===================================== 2025-07-13 22:22:34.876 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:22:34.876 | ===================================== 2025-07-13 22:22:34.876 | 2025-07-13 22:22:35.149 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:22:35.149 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:22:35.235 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:22:35.235 | 2025-07-13 22:22:35.235 | ===================================== 2025-07-13 22:22:35.235 | STARTING SERVER 2025-07-13 22:22:35.235 | ===================================== 2025-07-13 22:22:35.235 | 2025-07-13 22:22:35.236 | Server starting at Sun Jul 13 21:22:35 UTC 2025 2025-07-13 22:22:35.296 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:22:35.296 | { 2025-07-13 22:22:35.296 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:22:35.296 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:22:35.296 | PORT: 5123, 2025-07-13 22:22:35.296 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:22:35.296 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:22:35.296 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:22:35.296 | SERVER_MODE: "individual", 2025-07-13 22:22:35.296 | } 2025-07-13 22:22:35.319 | 2 | // @bun 2025-07-13 22:22:35.319 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:22:35.319 | 4 | `).slice(1).join(` 2025-07-13 22:22:35.319 | 5 | `);return err.stack+=` 2025-07-13 22:22:35.319 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:22:35.319 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:22:35.319 | 2025-07-13 22:22:35.319 | TypeError: not enough arguments 2025-07-13 22:22:35.319 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:22:35.319 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:22:35.319 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:22:35.319 | at /$bunfs/root/server:178:154285 2025-07-13 22:22:35.319 | at loadAndEvaluateModule (1:11) 2025-07-13 22:22:35.319 | 2025-07-13 22:22:35.319 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:23:35.552 | 2025-07-13 22:23:35.552 | ===================================== 2025-07-13 22:23:35.552 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:23:35.552 | ===================================== 2025-07-13 22:23:35.552 | 2025-07-13 22:23:35.817 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:23:35.817 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:23:35.901 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:23:35.901 | 2025-07-13 22:23:35.901 | ===================================== 2025-07-13 22:23:35.901 | STARTING SERVER 2025-07-13 22:23:35.901 | ===================================== 2025-07-13 22:23:35.901 | 2025-07-13 22:23:35.902 | Server starting at Sun Jul 13 21:23:35 UTC 2025 2025-07-13 22:23:35.959 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:23:35.959 | { 2025-07-13 22:23:35.959 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:23:35.959 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:23:35.959 | PORT: 5123, 2025-07-13 22:23:35.959 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:23:35.959 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:23:35.959 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:23:35.959 | SERVER_MODE: "individual", 2025-07-13 22:23:35.959 | } 2025-07-13 22:23:35.980 | 2 | // @bun 2025-07-13 22:23:35.980 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:23:35.980 | 4 | `).slice(1).join(` 2025-07-13 22:23:35.980 | 5 | `);return err.stack+=` 2025-07-13 22:23:35.980 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:23:35.980 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:23:35.980 | 2025-07-13 22:23:35.980 | TypeError: not enough arguments 2025-07-13 22:23:35.980 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:23:35.980 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:23:35.980 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:23:35.980 | at /$bunfs/root/server:178:154285 2025-07-13 22:23:35.980 | at loadAndEvaluateModule (1:11) 2025-07-13 22:23:35.980 | 2025-07-13 22:23:35.980 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:24:36.221 | 2025-07-13 22:24:36.221 | ===================================== 2025-07-13 22:24:36.221 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:24:36.221 | ===================================== 2025-07-13 22:24:36.221 | 2025-07-13 22:24:36.488 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:24:36.488 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:24:36.571 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:24:36.571 | 2025-07-13 22:24:36.571 | ===================================== 2025-07-13 22:24:36.571 | STARTING SERVER 2025-07-13 22:24:36.571 | ===================================== 2025-07-13 22:24:36.571 | 2025-07-13 22:24:36.572 | Server starting at Sun Jul 13 21:24:36 UTC 2025 2025-07-13 22:24:36.629 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:24:36.629 | { 2025-07-13 22:24:36.629 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:24:36.629 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:24:36.629 | PORT: 5123, 2025-07-13 22:24:36.629 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:24:36.629 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:24:36.629 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:24:36.629 | SERVER_MODE: "individual", 2025-07-13 22:24:36.629 | } 2025-07-13 22:24:36.651 | 2 | // @bun 2025-07-13 22:24:36.651 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:24:36.651 | 4 | `).slice(1).join(` 2025-07-13 22:24:36.651 | 5 | `);return err.stack+=` 2025-07-13 22:24:36.651 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:24:36.651 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:24:36.651 | 2025-07-13 22:24:36.651 | TypeError: not enough arguments 2025-07-13 22:24:36.651 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:24:36.651 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:24:36.651 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:24:36.651 | at /$bunfs/root/server:178:154285 2025-07-13 22:24:36.651 | at loadAndEvaluateModule (1:11) 2025-07-13 22:24:36.651 | 2025-07-13 22:24:36.651 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:25:36.867 | 2025-07-13 22:25:36.867 | ===================================== 2025-07-13 22:25:36.867 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:25:36.867 | ===================================== 2025-07-13 22:25:36.867 | 2025-07-13 22:25:37.139 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:25:37.139 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:25:37.222 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:25:37.222 | 2025-07-13 22:25:37.222 | ===================================== 2025-07-13 22:25:37.222 | STARTING SERVER 2025-07-13 22:25:37.222 | ===================================== 2025-07-13 22:25:37.222 | 2025-07-13 22:25:37.223 | Server starting at Sun Jul 13 21:25:37 UTC 2025 2025-07-13 22:25:37.282 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:25:37.282 | { 2025-07-13 22:25:37.282 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:25:37.282 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:25:37.282 | PORT: 5123, 2025-07-13 22:25:37.282 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:25:37.282 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:25:37.282 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:25:37.282 | SERVER_MODE: "individual", 2025-07-13 22:25:37.282 | } 2025-07-13 22:25:37.305 | 2 | // @bun 2025-07-13 22:25:37.305 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:25:37.305 | 4 | `).slice(1).join(` 2025-07-13 22:25:37.305 | 5 | `);return err.stack+=` 2025-07-13 22:25:37.305 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:25:37.306 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:25:37.306 | 2025-07-13 22:25:37.306 | TypeError: not enough arguments 2025-07-13 22:25:37.306 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:25:37.306 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:25:37.306 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:25:37.306 | at /$bunfs/root/server:178:154285 2025-07-13 22:25:37.306 | at loadAndEvaluateModule (1:11) 2025-07-13 22:25:37.306 | 2025-07-13 22:25:37.306 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:26:37.546 | 2025-07-13 22:26:37.546 | ===================================== 2025-07-13 22:26:37.546 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:26:37.546 | ===================================== 2025-07-13 22:26:37.546 | 2025-07-13 22:26:37.832 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:26:37.832 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:26:37.917 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:26:37.917 | 2025-07-13 22:26:37.917 | ===================================== 2025-07-13 22:26:37.917 | STARTING SERVER 2025-07-13 22:26:37.917 | ===================================== 2025-07-13 22:26:37.917 | 2025-07-13 22:26:37.918 | Server starting at Sun Jul 13 21:26:37 UTC 2025 2025-07-13 22:26:37.979 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:26:37.979 | { 2025-07-13 22:26:37.979 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:26:37.979 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:26:37.979 | PORT: 5123, 2025-07-13 22:26:37.979 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:26:37.979 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:26:37.979 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:26:37.979 | SERVER_MODE: "individual", 2025-07-13 22:26:37.979 | } 2025-07-13 22:26:37.999 | 2 | // @bun 2025-07-13 22:26:38.000 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:26:38.000 | 4 | `).slice(1).join(` 2025-07-13 22:26:38.000 | 5 | `);return err.stack+=` 2025-07-13 22:26:38.000 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:26:38.000 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:26:38.000 | 2025-07-13 22:26:38.000 | TypeError: not enough arguments 2025-07-13 22:26:38.000 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:26:38.000 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:26:38.000 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:26:38.000 | at /$bunfs/root/server:178:154285 2025-07-13 22:26:38.000 | at loadAndEvaluateModule (1:11) 2025-07-13 22:26:38.000 | 2025-07-13 22:26:38.000 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:27:38.234 | 2025-07-13 22:27:38.234 | ===================================== 2025-07-13 22:27:38.234 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:27:38.234 | ===================================== 2025-07-13 22:27:38.234 | 2025-07-13 22:27:38.500 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:27:38.500 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:27:38.588 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:27:38.588 | 2025-07-13 22:27:38.588 | ===================================== 2025-07-13 22:27:38.588 | STARTING SERVER 2025-07-13 22:27:38.588 | ===================================== 2025-07-13 22:27:38.588 | 2025-07-13 22:27:38.589 | Server starting at Sun Jul 13 21:27:38 UTC 2025 2025-07-13 22:27:38.646 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:27:38.646 | { 2025-07-13 22:27:38.646 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:27:38.646 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:27:38.646 | PORT: 5123, 2025-07-13 22:27:38.646 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:27:38.646 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:27:38.646 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:27:38.646 | SERVER_MODE: "individual", 2025-07-13 22:27:38.646 | } 2025-07-13 22:27:38.666 | 2 | // @bun 2025-07-13 22:27:38.666 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:27:38.666 | 4 | `).slice(1).join(` 2025-07-13 22:27:38.666 | 5 | `);return err.stack+=` 2025-07-13 22:27:38.666 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:27:38.666 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:27:38.666 | 2025-07-13 22:27:38.666 | TypeError: not enough arguments 2025-07-13 22:27:38.666 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:27:38.666 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:27:38.666 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:27:38.666 | at /$bunfs/root/server:178:154285 2025-07-13 22:27:38.666 | at loadAndEvaluateModule (1:11) 2025-07-13 22:27:38.666 | 2025-07-13 22:27:38.666 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:28:38.941 | 2025-07-13 22:28:38.941 | ===================================== 2025-07-13 22:28:38.941 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:28:38.941 | ===================================== 2025-07-13 22:28:38.941 | 2025-07-13 22:28:39.213 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:28:39.213 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:28:39.300 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:28:39.300 | 2025-07-13 22:28:39.300 | ===================================== 2025-07-13 22:28:39.300 | STARTING SERVER 2025-07-13 22:28:39.300 | ===================================== 2025-07-13 22:28:39.300 | 2025-07-13 22:28:39.300 | Server starting at Sun Jul 13 21:28:39 UTC 2025 2025-07-13 22:28:39.359 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:28:39.359 | { 2025-07-13 22:28:39.359 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:28:39.359 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:28:39.359 | PORT: 5123, 2025-07-13 22:28:39.359 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:28:39.359 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:28:39.359 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:28:39.359 | SERVER_MODE: "individual", 2025-07-13 22:28:39.359 | } 2025-07-13 22:28:39.380 | 2 | // @bun 2025-07-13 22:28:39.380 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:28:39.380 | 4 | `).slice(1).join(` 2025-07-13 22:28:39.380 | 5 | `);return err.stack+=` 2025-07-13 22:28:39.380 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:28:39.380 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:28:39.380 | 2025-07-13 22:28:39.380 | TypeError: not enough arguments 2025-07-13 22:28:39.380 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:28:39.380 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:28:39.380 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:28:39.380 | at /$bunfs/root/server:178:154285 2025-07-13 22:28:39.380 | at loadAndEvaluateModule (1:11) 2025-07-13 22:28:39.380 | 2025-07-13 22:28:39.380 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:29:39.598 | 2025-07-13 22:29:39.598 | ===================================== 2025-07-13 22:29:39.598 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:29:39.598 | ===================================== 2025-07-13 22:29:39.598 | 2025-07-13 22:29:39.875 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:29:39.875 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:29:39.964 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:29:39.964 | 2025-07-13 22:29:39.964 | ===================================== 2025-07-13 22:29:39.964 | STARTING SERVER 2025-07-13 22:29:39.964 | ===================================== 2025-07-13 22:29:39.964 | 2025-07-13 22:29:39.965 | Server starting at Sun Jul 13 21:29:39 UTC 2025 2025-07-13 22:29:40.024 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:29:40.024 | { 2025-07-13 22:29:40.024 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:29:40.024 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:29:40.024 | PORT: 5123, 2025-07-13 22:29:40.024 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:29:40.024 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:29:40.024 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:29:40.024 | SERVER_MODE: "individual", 2025-07-13 22:29:40.024 | } 2025-07-13 22:29:40.047 | 2 | // @bun 2025-07-13 22:29:40.047 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:29:40.047 | 4 | `).slice(1).join(` 2025-07-13 22:29:40.047 | 5 | `);return err.stack+=` 2025-07-13 22:29:40.047 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:29:40.047 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:29:40.047 | 2025-07-13 22:29:40.047 | TypeError: not enough arguments 2025-07-13 22:29:40.047 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:29:40.047 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:29:40.047 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:29:40.047 | at /$bunfs/root/server:178:154285 2025-07-13 22:29:40.047 | at loadAndEvaluateModule (1:11) 2025-07-13 22:29:40.047 | 2025-07-13 22:29:40.047 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:30:40.264 | 2025-07-13 22:30:40.264 | ===================================== 2025-07-13 22:30:40.264 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:30:40.264 | ===================================== 2025-07-13 22:30:40.264 | 2025-07-13 22:30:40.542 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:30:40.542 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:30:40.628 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:30:40.628 | 2025-07-13 22:30:40.628 | ===================================== 2025-07-13 22:30:40.628 | STARTING SERVER 2025-07-13 22:30:40.628 | ===================================== 2025-07-13 22:30:40.628 | 2025-07-13 22:30:40.629 | Server starting at Sun Jul 13 21:30:40 UTC 2025 2025-07-13 22:30:40.688 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:30:40.688 | { 2025-07-13 22:30:40.688 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:30:40.688 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:30:40.688 | PORT: 5123, 2025-07-13 22:30:40.688 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:30:40.688 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:30:40.688 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:30:40.688 | SERVER_MODE: "individual", 2025-07-13 22:30:40.688 | } 2025-07-13 22:30:40.711 | 2 | // @bun 2025-07-13 22:30:40.711 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:30:40.711 | 4 | `).slice(1).join(` 2025-07-13 22:30:40.711 | 5 | `);return err.stack+=` 2025-07-13 22:30:40.711 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:30:40.711 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:30:40.711 | 2025-07-13 22:30:40.711 | TypeError: not enough arguments 2025-07-13 22:30:40.711 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:30:40.711 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:30:40.711 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:30:40.711 | at /$bunfs/root/server:178:154285 2025-07-13 22:30:40.711 | at loadAndEvaluateModule (1:11) 2025-07-13 22:30:40.711 | 2025-07-13 22:30:40.711 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:31:40.934 | 2025-07-13 22:31:40.934 | ===================================== 2025-07-13 22:31:40.934 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:31:40.934 | ===================================== 2025-07-13 22:31:40.934 | 2025-07-13 22:31:41.211 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:31:41.211 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:31:41.298 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:31:41.298 | 2025-07-13 22:31:41.298 | ===================================== 2025-07-13 22:31:41.298 | STARTING SERVER 2025-07-13 22:31:41.298 | ===================================== 2025-07-13 22:31:41.298 | 2025-07-13 22:31:41.299 | Server starting at Sun Jul 13 21:31:41 UTC 2025 2025-07-13 22:31:41.358 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:31:41.358 | { 2025-07-13 22:31:41.358 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:31:41.358 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:31:41.358 | PORT: 5123, 2025-07-13 22:31:41.358 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:31:41.358 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:31:41.358 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:31:41.358 | SERVER_MODE: "individual", 2025-07-13 22:31:41.358 | } 2025-07-13 22:31:41.379 | 2 | // @bun 2025-07-13 22:31:41.379 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:31:41.379 | 4 | `).slice(1).join(` 2025-07-13 22:31:41.379 | 5 | `);return err.stack+=` 2025-07-13 22:31:41.379 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:31:41.379 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:31:41.379 | 2025-07-13 22:31:41.379 | TypeError: not enough arguments 2025-07-13 22:31:41.379 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:31:41.379 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:31:41.379 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:31:41.379 | at /$bunfs/root/server:178:154285 2025-07-13 22:31:41.379 | at loadAndEvaluateModule (1:11) 2025-07-13 22:31:41.379 | 2025-07-13 22:31:41.379 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:32:41.611 | 2025-07-13 22:32:41.611 | ===================================== 2025-07-13 22:32:41.611 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:32:41.611 | ===================================== 2025-07-13 22:32:41.611 | 2025-07-13 22:32:41.890 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:32:41.890 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:32:41.978 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:32:41.978 | 2025-07-13 22:32:41.978 | ===================================== 2025-07-13 22:32:41.978 | STARTING SERVER 2025-07-13 22:32:41.978 | ===================================== 2025-07-13 22:32:41.978 | 2025-07-13 22:32:41.979 | Server starting at Sun Jul 13 21:32:41 UTC 2025 2025-07-13 22:32:42.037 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:32:42.037 | { 2025-07-13 22:32:42.037 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:32:42.037 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:32:42.037 | PORT: 5123, 2025-07-13 22:32:42.037 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:32:42.037 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:32:42.037 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:32:42.037 | SERVER_MODE: "individual", 2025-07-13 22:32:42.037 | } 2025-07-13 22:32:42.058 | 2 | // @bun 2025-07-13 22:32:42.058 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:32:42.058 | 4 | `).slice(1).join(` 2025-07-13 22:32:42.058 | 5 | `);return err.stack+=` 2025-07-13 22:32:42.058 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:32:42.058 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:32:42.058 | 2025-07-13 22:32:42.058 | TypeError: not enough arguments 2025-07-13 22:32:42.058 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:32:42.058 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:32:42.058 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:32:42.058 | at /$bunfs/root/server:178:154285 2025-07-13 22:32:42.058 | at loadAndEvaluateModule (1:11) 2025-07-13 22:32:42.058 | 2025-07-13 22:32:42.058 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:33:42.310 | 2025-07-13 22:33:42.310 | ===================================== 2025-07-13 22:33:42.310 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:33:42.310 | ===================================== 2025-07-13 22:33:42.310 | 2025-07-13 22:33:42.593 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:33:42.593 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:33:42.682 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:33:42.682 | 2025-07-13 22:33:42.682 | ===================================== 2025-07-13 22:33:42.682 | STARTING SERVER 2025-07-13 22:33:42.682 | ===================================== 2025-07-13 22:33:42.682 | 2025-07-13 22:33:42.683 | Server starting at Sun Jul 13 21:33:42 UTC 2025 2025-07-13 22:33:42.741 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:33:42.741 | { 2025-07-13 22:33:42.741 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:33:42.741 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:33:42.741 | PORT: 5123, 2025-07-13 22:33:42.741 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:33:42.741 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:33:42.741 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:33:42.741 | SERVER_MODE: "individual", 2025-07-13 22:33:42.741 | } 2025-07-13 22:33:42.764 | 2 | // @bun 2025-07-13 22:33:42.764 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:33:42.764 | 4 | `).slice(1).join(` 2025-07-13 22:33:42.764 | 5 | `);return err.stack+=` 2025-07-13 22:33:42.764 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:33:42.764 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:33:42.764 | 2025-07-13 22:33:42.764 | TypeError: not enough arguments 2025-07-13 22:33:42.764 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:33:42.764 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:33:42.764 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:33:42.764 | at /$bunfs/root/server:178:154285 2025-07-13 22:33:42.764 | at loadAndEvaluateModule (1:11) 2025-07-13 22:33:42.764 | 2025-07-13 22:33:42.764 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:34:42.976 | 2025-07-13 22:34:42.977 | ===================================== 2025-07-13 22:34:42.977 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:34:42.977 | ===================================== 2025-07-13 22:34:42.977 | 2025-07-13 22:34:43.257 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:34:43.257 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:34:43.350 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:34:43.350 | 2025-07-13 22:34:43.350 | ===================================== 2025-07-13 22:34:43.350 | STARTING SERVER 2025-07-13 22:34:43.350 | ===================================== 2025-07-13 22:34:43.350 | 2025-07-13 22:34:43.351 | Server starting at Sun Jul 13 21:34:43 UTC 2025 2025-07-13 22:34:43.411 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:34:43.411 | { 2025-07-13 22:34:43.411 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:34:43.411 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:34:43.411 | PORT: 5123, 2025-07-13 22:34:43.411 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:34:43.411 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:34:43.411 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:34:43.411 | SERVER_MODE: "individual", 2025-07-13 22:34:43.411 | } 2025-07-13 22:34:43.434 | 2 | // @bun 2025-07-13 22:34:43.434 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:34:43.434 | 4 | `).slice(1).join(` 2025-07-13 22:34:43.434 | 5 | `);return err.stack+=` 2025-07-13 22:34:43.434 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:34:43.434 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:34:43.434 | 2025-07-13 22:34:43.434 | TypeError: not enough arguments 2025-07-13 22:34:43.434 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:34:43.434 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:34:43.434 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:34:43.434 | at /$bunfs/root/server:178:154285 2025-07-13 22:34:43.434 | at loadAndEvaluateModule (1:11) 2025-07-13 22:34:43.434 | 2025-07-13 22:34:43.434 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:35:43.693 | 2025-07-13 22:35:43.693 | ===================================== 2025-07-13 22:35:43.693 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:35:43.693 | ===================================== 2025-07-13 22:35:43.693 | 2025-07-13 22:35:43.978 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:35:43.978 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:35:44.064 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:35:44.064 | 2025-07-13 22:35:44.064 | ===================================== 2025-07-13 22:35:44.064 | STARTING SERVER 2025-07-13 22:35:44.064 | ===================================== 2025-07-13 22:35:44.064 | 2025-07-13 22:35:44.064 | Server starting at Sun Jul 13 21:35:44 UTC 2025 2025-07-13 22:35:44.121 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:35:44.121 | { 2025-07-13 22:35:44.121 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:35:44.121 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:35:44.121 | PORT: 5123, 2025-07-13 22:35:44.121 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:35:44.121 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:35:44.121 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:35:44.121 | SERVER_MODE: "individual", 2025-07-13 22:35:44.121 | } 2025-07-13 22:35:44.143 | 2 | // @bun 2025-07-13 22:35:44.143 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:35:44.143 | 4 | `).slice(1).join(` 2025-07-13 22:35:44.143 | 5 | `);return err.stack+=` 2025-07-13 22:35:44.143 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:35:44.143 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:35:44.143 | 2025-07-13 22:35:44.143 | TypeError: not enough arguments 2025-07-13 22:35:44.143 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:35:44.143 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:35:44.143 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:35:44.143 | at /$bunfs/root/server:178:154285 2025-07-13 22:35:44.143 | at loadAndEvaluateModule (1:11) 2025-07-13 22:35:44.143 | 2025-07-13 22:35:44.143 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:36:44.394 | 2025-07-13 22:36:44.395 | ===================================== 2025-07-13 22:36:44.395 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:36:44.395 | ===================================== 2025-07-13 22:36:44.395 | 2025-07-13 22:36:44.796 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:36:44.796 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:36:44.962 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:36:44.962 | 2025-07-13 22:36:44.962 | ===================================== 2025-07-13 22:36:44.962 | STARTING SERVER 2025-07-13 22:36:44.962 | ===================================== 2025-07-13 22:36:44.962 | 2025-07-13 22:36:44.963 | Server starting at Sun Jul 13 21:36:44 UTC 2025 2025-07-13 22:36:45.097 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:36:45.098 | { 2025-07-13 22:36:45.098 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:36:45.098 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:36:45.098 | PORT: 5123, 2025-07-13 22:36:45.098 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:36:45.098 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:36:45.098 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:36:45.098 | SERVER_MODE: "individual", 2025-07-13 22:36:45.098 | } 2025-07-13 22:36:45.137 | 2 | // @bun 2025-07-13 22:36:45.137 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:36:45.137 | 4 | `).slice(1).join(` 2025-07-13 22:36:45.137 | 5 | `);return err.stack+=` 2025-07-13 22:36:45.137 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:36:45.137 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:36:45.137 | 2025-07-13 22:36:45.137 | TypeError: not enough arguments 2025-07-13 22:36:45.137 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:36:45.137 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:36:45.137 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:36:45.137 | at /$bunfs/root/server:178:154285 2025-07-13 22:36:45.137 | at loadAndEvaluateModule (1:11) 2025-07-13 22:36:45.137 | 2025-07-13 22:36:45.137 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:37:45.384 | 2025-07-13 22:37:45.384 | ===================================== 2025-07-13 22:37:45.384 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:37:45.384 | ===================================== 2025-07-13 22:37:45.384 | 2025-07-13 22:37:45.656 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:37:45.656 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:37:45.746 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:37:45.746 | 2025-07-13 22:37:45.746 | ===================================== 2025-07-13 22:37:45.746 | STARTING SERVER 2025-07-13 22:37:45.746 | ===================================== 2025-07-13 22:37:45.746 | 2025-07-13 22:37:45.747 | Server starting at Sun Jul 13 21:37:45 UTC 2025 2025-07-13 22:37:45.806 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:37:45.806 | { 2025-07-13 22:37:45.806 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:37:45.806 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:37:45.806 | PORT: 5123, 2025-07-13 22:37:45.806 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:37:45.806 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:37:45.806 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:37:45.806 | SERVER_MODE: "individual", 2025-07-13 22:37:45.806 | } 2025-07-13 22:37:45.827 | 2 | // @bun 2025-07-13 22:37:45.827 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:37:45.827 | 4 | `).slice(1).join(` 2025-07-13 22:37:45.827 | 5 | `);return err.stack+=` 2025-07-13 22:37:45.827 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:37:45.827 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:37:45.827 | 2025-07-13 22:37:45.827 | TypeError: not enough arguments 2025-07-13 22:37:45.827 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:37:45.827 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:37:45.827 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:37:45.827 | at /$bunfs/root/server:178:154285 2025-07-13 22:37:45.827 | at loadAndEvaluateModule (1:11) 2025-07-13 22:37:45.827 | 2025-07-13 22:37:45.827 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:38:46.081 | 2025-07-13 22:38:46.081 | ===================================== 2025-07-13 22:38:46.081 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:38:46.081 | ===================================== 2025-07-13 22:38:46.081 | 2025-07-13 22:38:46.352 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:38:46.352 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:38:46.452 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:38:46.452 | 2025-07-13 22:38:46.452 | ===================================== 2025-07-13 22:38:46.452 | STARTING SERVER 2025-07-13 22:38:46.452 | ===================================== 2025-07-13 22:38:46.452 | 2025-07-13 22:38:46.453 | Server starting at Sun Jul 13 21:38:46 UTC 2025 2025-07-13 22:38:46.521 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:38:46.521 | { 2025-07-13 22:38:46.521 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:38:46.521 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:38:46.521 | PORT: 5123, 2025-07-13 22:38:46.521 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:38:46.521 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:38:46.521 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:38:46.521 | SERVER_MODE: "individual", 2025-07-13 22:38:46.521 | } 2025-07-13 22:38:46.548 | 2 | // @bun 2025-07-13 22:38:46.548 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:38:46.548 | 4 | `).slice(1).join(` 2025-07-13 22:38:46.548 | 5 | `);return err.stack+=` 2025-07-13 22:38:46.548 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:38:46.548 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:38:46.548 | 2025-07-13 22:38:46.548 | TypeError: not enough arguments 2025-07-13 22:38:46.548 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:38:46.548 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:38:46.548 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:38:46.548 | at /$bunfs/root/server:178:154285 2025-07-13 22:38:46.548 | at loadAndEvaluateModule (1:11) 2025-07-13 22:38:46.548 | 2025-07-13 22:38:46.548 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:39:46.817 | 2025-07-13 22:39:46.817 | ===================================== 2025-07-13 22:39:46.817 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:39:46.818 | ===================================== 2025-07-13 22:39:46.818 | 2025-07-13 22:39:47.087 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:39:47.087 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:39:47.176 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:39:47.176 | 2025-07-13 22:39:47.176 | ===================================== 2025-07-13 22:39:47.176 | STARTING SERVER 2025-07-13 22:39:47.176 | ===================================== 2025-07-13 22:39:47.176 | 2025-07-13 22:39:47.177 | Server starting at Sun Jul 13 21:39:47 UTC 2025 2025-07-13 22:39:47.237 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:39:47.237 | { 2025-07-13 22:39:47.237 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:39:47.237 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:39:47.237 | PORT: 5123, 2025-07-13 22:39:47.237 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:39:47.237 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:39:47.237 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:39:47.237 | SERVER_MODE: "individual", 2025-07-13 22:39:47.237 | } 2025-07-13 22:39:47.260 | 2 | // @bun 2025-07-13 22:39:47.260 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:39:47.260 | 4 | `).slice(1).join(` 2025-07-13 22:39:47.260 | 5 | `);return err.stack+=` 2025-07-13 22:39:47.260 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:39:47.260 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:39:47.260 | 2025-07-13 22:39:47.260 | TypeError: not enough arguments 2025-07-13 22:39:47.260 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:39:47.260 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:39:47.260 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:39:47.260 | at /$bunfs/root/server:178:154285 2025-07-13 22:39:47.260 | at loadAndEvaluateModule (1:11) 2025-07-13 22:39:47.260 | 2025-07-13 22:39:47.260 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:40:47.459 | 2025-07-13 22:40:47.459 | ===================================== 2025-07-13 22:40:47.459 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:40:47.459 | ===================================== 2025-07-13 22:40:47.459 | 2025-07-13 22:40:47.712 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:40:47.713 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:40:47.798 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:40:47.798 | 2025-07-13 22:40:47.798 | ===================================== 2025-07-13 22:40:47.799 | STARTING SERVER 2025-07-13 22:40:47.799 | ===================================== 2025-07-13 22:40:47.799 | 2025-07-13 22:40:47.799 | Server starting at Sun Jul 13 21:40:47 UTC 2025 2025-07-13 22:40:47.858 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:40:47.858 | { 2025-07-13 22:40:47.858 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:40:47.858 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:40:47.858 | PORT: 5123, 2025-07-13 22:40:47.858 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:40:47.858 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:40:47.858 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:40:47.858 | SERVER_MODE: "individual", 2025-07-13 22:40:47.858 | } 2025-07-13 22:40:47.881 | 2 | // @bun 2025-07-13 22:40:47.881 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:40:47.881 | 4 | `).slice(1).join(` 2025-07-13 22:40:47.881 | 5 | `);return err.stack+=` 2025-07-13 22:40:47.881 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:40:47.881 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:40:47.881 | 2025-07-13 22:40:47.881 | TypeError: not enough arguments 2025-07-13 22:40:47.881 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:40:47.881 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:40:47.881 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:40:47.881 | at /$bunfs/root/server:178:154285 2025-07-13 22:40:47.881 | at loadAndEvaluateModule (1:11) 2025-07-13 22:40:47.881 | 2025-07-13 22:40:47.881 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:41:48.096 | 2025-07-13 22:41:48.096 | ===================================== 2025-07-13 22:41:48.096 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:41:48.096 | ===================================== 2025-07-13 22:41:48.096 | 2025-07-13 22:41:48.372 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:41:48.372 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:41:48.464 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:41:48.464 | 2025-07-13 22:41:48.464 | ===================================== 2025-07-13 22:41:48.464 | STARTING SERVER 2025-07-13 22:41:48.464 | ===================================== 2025-07-13 22:41:48.464 | 2025-07-13 22:41:48.465 | Server starting at Sun Jul 13 21:41:48 UTC 2025 2025-07-13 22:41:48.525 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:41:48.525 | { 2025-07-13 22:41:48.525 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:41:48.525 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:41:48.525 | PORT: 5123, 2025-07-13 22:41:48.525 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:41:48.525 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:41:48.525 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:41:48.525 | SERVER_MODE: "individual", 2025-07-13 22:41:48.526 | } 2025-07-13 22:41:48.550 | 2 | // @bun 2025-07-13 22:41:48.550 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:41:48.550 | 4 | `).slice(1).join(` 2025-07-13 22:41:48.550 | 5 | `);return err.stack+=` 2025-07-13 22:41:48.550 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:41:48.550 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:41:48.550 | 2025-07-13 22:41:48.550 | TypeError: not enough arguments 2025-07-13 22:41:48.550 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:41:48.550 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:41:48.550 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:41:48.550 | at /$bunfs/root/server:178:154285 2025-07-13 22:41:48.550 | at loadAndEvaluateModule (1:11) 2025-07-13 22:41:48.550 | 2025-07-13 22:41:48.550 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:42:48.785 | 2025-07-13 22:42:48.785 | ===================================== 2025-07-13 22:42:48.785 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:42:48.785 | ===================================== 2025-07-13 22:42:48.785 | 2025-07-13 22:42:49.032 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:42:49.032 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:42:49.116 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:42:49.116 | 2025-07-13 22:42:49.116 | ===================================== 2025-07-13 22:42:49.116 | STARTING SERVER 2025-07-13 22:42:49.116 | ===================================== 2025-07-13 22:42:49.117 | 2025-07-13 22:42:49.117 | Server starting at Sun Jul 13 21:42:49 UTC 2025 2025-07-13 22:42:49.175 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:42:49.175 | { 2025-07-13 22:42:49.175 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:42:49.175 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:42:49.175 | PORT: 5123, 2025-07-13 22:42:49.175 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:42:49.175 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:42:49.175 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:42:49.175 | SERVER_MODE: "individual", 2025-07-13 22:42:49.175 | } 2025-07-13 22:42:49.197 | 2 | // @bun 2025-07-13 22:42:49.197 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:42:49.197 | 4 | `).slice(1).join(` 2025-07-13 22:42:49.197 | 5 | `);return err.stack+=` 2025-07-13 22:42:49.197 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:42:49.197 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:42:49.197 | 2025-07-13 22:42:49.197 | TypeError: not enough arguments 2025-07-13 22:42:49.197 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:42:49.197 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:42:49.197 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:42:49.197 | at /$bunfs/root/server:178:154285 2025-07-13 22:42:49.197 | at loadAndEvaluateModule (1:11) 2025-07-13 22:42:49.197 | 2025-07-13 22:42:49.197 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:43:49.406 | 2025-07-13 22:43:49.406 | ===================================== 2025-07-13 22:43:49.406 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:43:49.406 | ===================================== 2025-07-13 22:43:49.406 | 2025-07-13 22:43:49.673 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:43:49.673 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:43:49.773 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:43:49.773 | 2025-07-13 22:43:49.773 | ===================================== 2025-07-13 22:43:49.773 | STARTING SERVER 2025-07-13 22:43:49.773 | ===================================== 2025-07-13 22:43:49.773 | 2025-07-13 22:43:49.774 | Server starting at Sun Jul 13 21:43:49 UTC 2025 2025-07-13 22:43:49.834 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:43:49.834 | { 2025-07-13 22:43:49.834 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:43:49.834 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:43:49.834 | PORT: 5123, 2025-07-13 22:43:49.834 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:43:49.834 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:43:49.834 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:43:49.834 | SERVER_MODE: "individual", 2025-07-13 22:43:49.834 | } 2025-07-13 22:43:49.856 | 2 | // @bun 2025-07-13 22:43:49.856 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:43:49.856 | 4 | `).slice(1).join(` 2025-07-13 22:43:49.856 | 5 | `);return err.stack+=` 2025-07-13 22:43:49.856 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:43:49.856 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:43:49.856 | 2025-07-13 22:43:49.856 | TypeError: not enough arguments 2025-07-13 22:43:49.856 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:43:49.856 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:43:49.856 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:43:49.856 | at /$bunfs/root/server:178:154285 2025-07-13 22:43:49.856 | at loadAndEvaluateModule (1:11) 2025-07-13 22:43:49.856 | 2025-07-13 22:43:49.856 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:44:50.060 | 2025-07-13 22:44:50.060 | ===================================== 2025-07-13 22:44:50.060 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:44:50.060 | ===================================== 2025-07-13 22:44:50.060 | 2025-07-13 22:44:50.328 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:44:50.329 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:44:50.414 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:44:50.414 | 2025-07-13 22:44:50.414 | ===================================== 2025-07-13 22:44:50.414 | STARTING SERVER 2025-07-13 22:44:50.414 | ===================================== 2025-07-13 22:44:50.414 | 2025-07-13 22:44:50.415 | Server starting at Sun Jul 13 21:44:50 UTC 2025 2025-07-13 22:44:50.470 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:44:50.470 | { 2025-07-13 22:44:50.470 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:44:50.470 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:44:50.470 | PORT: 5123, 2025-07-13 22:44:50.470 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:44:50.470 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:44:50.470 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:44:50.470 | SERVER_MODE: "individual", 2025-07-13 22:44:50.470 | } 2025-07-13 22:44:50.493 | 2 | // @bun 2025-07-13 22:44:50.493 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:44:50.493 | 4 | `).slice(1).join(` 2025-07-13 22:44:50.493 | 5 | `);return err.stack+=` 2025-07-13 22:44:50.493 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:44:50.493 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:44:50.493 | 2025-07-13 22:44:50.493 | TypeError: not enough arguments 2025-07-13 22:44:50.493 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:44:50.493 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:44:50.493 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:44:50.493 | at /$bunfs/root/server:178:154285 2025-07-13 22:44:50.493 | at loadAndEvaluateModule (1:11) 2025-07-13 22:44:50.493 | 2025-07-13 22:44:50.493 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:45:50.697 | 2025-07-13 22:45:50.697 | ===================================== 2025-07-13 22:45:50.697 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:45:50.697 | ===================================== 2025-07-13 22:45:50.697 | 2025-07-13 22:45:50.972 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:45:50.972 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:45:51.064 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:45:51.064 | 2025-07-13 22:45:51.064 | ===================================== 2025-07-13 22:45:51.064 | STARTING SERVER 2025-07-13 22:45:51.064 | ===================================== 2025-07-13 22:45:51.064 | 2025-07-13 22:45:51.065 | Server starting at Sun Jul 13 21:45:51 UTC 2025 2025-07-13 22:45:51.130 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:45:51.130 | { 2025-07-13 22:45:51.130 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:45:51.130 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:45:51.130 | PORT: 5123, 2025-07-13 22:45:51.130 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:45:51.130 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:45:51.130 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:45:51.130 | SERVER_MODE: "individual", 2025-07-13 22:45:51.130 | } 2025-07-13 22:45:51.153 | 2 | // @bun 2025-07-13 22:45:51.153 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:45:51.153 | 4 | `).slice(1).join(` 2025-07-13 22:45:51.153 | 5 | `);return err.stack+=` 2025-07-13 22:45:51.153 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:45:51.153 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:45:51.153 | 2025-07-13 22:45:51.153 | TypeError: not enough arguments 2025-07-13 22:45:51.153 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:45:51.153 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:45:51.153 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:45:51.153 | at /$bunfs/root/server:178:154285 2025-07-13 22:45:51.153 | at loadAndEvaluateModule (1:11) 2025-07-13 22:45:51.153 | 2025-07-13 22:45:51.153 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:46:51.354 | 2025-07-13 22:46:51.354 | ===================================== 2025-07-13 22:46:51.354 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:46:51.354 | ===================================== 2025-07-13 22:46:51.354 | 2025-07-13 22:46:51.616 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:46:51.617 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:46:51.702 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:46:51.702 | 2025-07-13 22:46:51.702 | ===================================== 2025-07-13 22:46:51.702 | STARTING SERVER 2025-07-13 22:46:51.702 | ===================================== 2025-07-13 22:46:51.702 | 2025-07-13 22:46:51.703 | Server starting at Sun Jul 13 21:46:51 UTC 2025 2025-07-13 22:46:51.765 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:46:51.765 | { 2025-07-13 22:46:51.765 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:46:51.765 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:46:51.765 | PORT: 5123, 2025-07-13 22:46:51.765 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:46:51.765 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:46:51.765 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:46:51.765 | SERVER_MODE: "individual", 2025-07-13 22:46:51.765 | } 2025-07-13 22:46:51.787 | 2 | // @bun 2025-07-13 22:46:51.787 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:46:51.787 | 4 | `).slice(1).join(` 2025-07-13 22:46:51.787 | 5 | `);return err.stack+=` 2025-07-13 22:46:51.787 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:46:51.787 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:46:51.787 | 2025-07-13 22:46:51.787 | TypeError: not enough arguments 2025-07-13 22:46:51.787 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:46:51.787 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:46:51.787 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:46:51.787 | at /$bunfs/root/server:178:154285 2025-07-13 22:46:51.787 | at loadAndEvaluateModule (1:11) 2025-07-13 22:46:51.787 | 2025-07-13 22:46:51.787 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:47:52.037 | 2025-07-13 22:47:52.037 | ===================================== 2025-07-13 22:47:52.037 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:47:52.037 | ===================================== 2025-07-13 22:47:52.037 | 2025-07-13 22:47:52.346 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:47:52.346 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:47:52.437 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:47:52.437 | 2025-07-13 22:47:52.437 | ===================================== 2025-07-13 22:47:52.437 | STARTING SERVER 2025-07-13 22:47:52.437 | ===================================== 2025-07-13 22:47:52.437 | 2025-07-13 22:47:52.438 | Server starting at Sun Jul 13 21:47:52 UTC 2025 2025-07-13 22:47:52.497 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:47:52.497 | { 2025-07-13 22:47:52.497 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:47:52.497 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:47:52.497 | PORT: 5123, 2025-07-13 22:47:52.497 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:47:52.497 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:47:52.497 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:47:52.497 | SERVER_MODE: "individual", 2025-07-13 22:47:52.497 | } 2025-07-13 22:47:52.518 | 2 | // @bun 2025-07-13 22:47:52.518 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:47:52.518 | 4 | `).slice(1).join(` 2025-07-13 22:47:52.518 | 5 | `);return err.stack+=` 2025-07-13 22:47:52.518 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:47:52.518 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:47:52.518 | 2025-07-13 22:47:52.518 | TypeError: not enough arguments 2025-07-13 22:47:52.518 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:47:52.518 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:47:52.518 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:47:52.518 | at /$bunfs/root/server:178:154285 2025-07-13 22:47:52.518 | at loadAndEvaluateModule (1:11) 2025-07-13 22:47:52.518 | 2025-07-13 22:47:52.518 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:48:52.724 | 2025-07-13 22:48:52.724 | ===================================== 2025-07-13 22:48:52.724 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:48:52.724 | ===================================== 2025-07-13 22:48:52.724 | 2025-07-13 22:48:53.036 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:48:53.036 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:48:53.123 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:48:53.123 | 2025-07-13 22:48:53.123 | ===================================== 2025-07-13 22:48:53.123 | STARTING SERVER 2025-07-13 22:48:53.123 | ===================================== 2025-07-13 22:48:53.123 | 2025-07-13 22:48:53.123 | Server starting at Sun Jul 13 21:48:53 UTC 2025 2025-07-13 22:48:53.183 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:48:53.183 | { 2025-07-13 22:48:53.183 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:48:53.183 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:48:53.183 | PORT: 5123, 2025-07-13 22:48:53.183 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:48:53.183 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:48:53.183 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:48:53.183 | SERVER_MODE: "individual", 2025-07-13 22:48:53.183 | } 2025-07-13 22:48:53.206 | 2 | // @bun 2025-07-13 22:48:53.206 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:48:53.206 | 4 | `).slice(1).join(` 2025-07-13 22:48:53.206 | 5 | `);return err.stack+=` 2025-07-13 22:48:53.206 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:48:53.206 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:48:53.206 | 2025-07-13 22:48:53.206 | TypeError: not enough arguments 2025-07-13 22:48:53.206 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:48:53.206 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:48:53.206 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:48:53.206 | at /$bunfs/root/server:178:154285 2025-07-13 22:48:53.206 | at loadAndEvaluateModule (1:11) 2025-07-13 22:48:53.206 | 2025-07-13 22:48:53.206 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:49:53.448 | 2025-07-13 22:49:53.448 | ===================================== 2025-07-13 22:49:53.448 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:49:53.448 | ===================================== 2025-07-13 22:49:53.448 | 2025-07-13 22:49:53.762 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:49:53.762 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:49:53.855 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:49:53.855 | 2025-07-13 22:49:53.855 | ===================================== 2025-07-13 22:49:53.855 | STARTING SERVER 2025-07-13 22:49:53.855 | ===================================== 2025-07-13 22:49:53.855 | 2025-07-13 22:49:53.856 | Server starting at Sun Jul 13 21:49:53 UTC 2025 2025-07-13 22:49:53.917 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:49:53.917 | { 2025-07-13 22:49:53.917 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:49:53.917 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:49:53.917 | PORT: 5123, 2025-07-13 22:49:53.917 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:49:53.917 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:49:53.917 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:49:53.917 | SERVER_MODE: "individual", 2025-07-13 22:49:53.917 | } 2025-07-13 22:49:53.939 | 2 | // @bun 2025-07-13 22:49:53.939 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:49:53.939 | 4 | `).slice(1).join(` 2025-07-13 22:49:53.939 | 5 | `);return err.stack+=` 2025-07-13 22:49:53.939 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:49:53.939 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:49:53.939 | 2025-07-13 22:49:53.939 | TypeError: not enough arguments 2025-07-13 22:49:53.939 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:49:53.939 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:49:53.939 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:49:53.939 | at /$bunfs/root/server:178:154285 2025-07-13 22:49:53.939 | at loadAndEvaluateModule (1:11) 2025-07-13 22:49:53.939 | 2025-07-13 22:49:53.939 | Bun v1.2.18 (Linux x64 baseline) 2025-07-13 22:50:54.226 | 2025-07-13 22:50:54.226 | ===================================== 2025-07-13 22:50:54.226 | RUNNING DATABASE MIGRATIONS 2025-07-13 22:50:54.226 | ===================================== 2025-07-13 22:50:54.226 | 2025-07-13 22:50:54.513 | No config path provided, using default 'drizzle.config.ts' 2025-07-13 22:50:54.513 | Reading config file '/app/drizzle.config.ts' 2025-07-13 22:50:54.599 | [⣷] applying migrations...[✓] migrations applied successfully!✅ Migrations completed successfully 2025-07-13 22:50:54.599 | 2025-07-13 22:50:54.599 | ===================================== 2025-07-13 22:50:54.599 | STARTING SERVER 2025-07-13 22:50:54.599 | ===================================== 2025-07-13 22:50:54.599 | 2025-07-13 22:50:54.600 | Server starting at Sun Jul 13 21:50:54 UTC 2025 2025-07-13 22:50:54.658 | trusted_origins [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ] 2025-07-13 22:50:54.658 | { 2025-07-13 22:50:54.658 | BETTER_AUTH_SECRET: "d59b11c6967cafb000850cee8a7087133be96659aa3b68a8e389030a2cf87a55", 2025-07-13 22:50:54.658 | BETTER_AUTH_TRUSTED_ORIGINS: [ "http://localhost:3000", "http://localhost:8080", "http://localhost:5123" ], 2025-07-13 22:50:54.658 | PORT: 5123, 2025-07-13 22:50:54.658 | DATABASE_URL: "file:/app/data/database.db", 2025-07-13 22:50:54.658 | UI_CLIENT_SECRET: "default-ui-client-secret", 2025-07-13 22:50:54.658 | API_CLIENT_SECRET: "awjdwiadjawidjamn21n2421nn4kj", 2025-07-13 22:50:54.658 | SERVER_MODE: "individual", 2025-07-13 22:50:54.658 | } 2025-07-13 22:50:54.679 | 2 | // @bun 2025-07-13 22:50:54.679 | 3 | var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames}=Object;var __hasOwnProp=Object.prototype.hasOwnProperty;var __toESM=(mod,isNodeMode,target)=>{target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:()=>mod[key],enumerable:!0});return to};var __commonJS=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports);var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:(newValue)=>all[name]=()=>newValue})};var __esm=(fn,res)=>()=>(fn&&(res=fn(fn=0)),res);var __require=import.meta.require;function isUndefined(obj){return typeof obj==="undefined"||obj===void 0}function isString(obj){return typeof obj==="string"}function isNumber(obj){return typeof obj==="number"}function isBoolean(obj){retu 2025-07-13 22:50:54.679 | 4 | `).slice(1).join(` 2025-07-13 22:50:54.679 | 5 | `);return err.stack+=` 2025-07-13 22:50:54.679 | 6 | ${stackExtension}`,err}return err}function isStackHolder(obj){return isObject(obj)&&isString(obj.stack)}var init_stack_trace_utils=__esm(()=>{init_object_utils()});class MysqlDriver{#config;#connections=new WeakMap;#pool;constructor(configOrPool){this.#config=freeze({...configOrPool})}async init(){this.#pool=isFunction2(this.#config.pool)?await this.#config.pool():this.#config.pool}async acquireConnection(){let rawConnection=await this.#acquireConnection(),connection=this.#connections.get(rawConnection);if(!connection){if(connection=new MysqlConnection(rawConnection),this.#connections.set(rawConnection,connection),this.#config?.onCreateConnection)await this.#config.onCreateConnection(connection)}if(this.#config?.onReserveConnection)await this.#config.onReserveConnection(connection);return connection}async#acquireConnection(){return new Promise((resolve,reject)=>{this.#pool.getConnection(async(err,rawConnection)=>{if(err)reject(err);else resolve(rawConnection)})})}async beginTransaction(connection,settings){if 2025-07-13 22:50:54.679 | 7 | `),value=value.replace(/\\r/g,"\r");obj[key]=value}return obj}function _parseVault(options){let vaultPath=_vaultPath(options),result=DotenvModule.configDotenv({path:vaultPath});if(!result.parsed){let err=new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);throw err.code="MISSING_DATA",err}let keys=_dotenvKey(options).split(","),length=keys.length,decrypted;for(let i=0;i=length)throw error2}return DotenvModule.parse(decrypted)}function _warn(message2){console.log(`[dotenv@${version2}][WARN] ${message2}`)}function _debug(message2){console.log(`[dotenv@${version2}][DEBUG] ${message2}`)}function _dotenvKey(options){if(options&&options.DOTENV_KEY&&options.DOTENV_KEY.length>0)return options.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function _instructions(result,dotenvKey){ 2025-07-13 22:50:54.679 | 2025-07-13 22:50:54.679 | TypeError: not enough arguments 2025-07-13 22:50:54.679 | at new Database (/$bunfs/root/server:7:16466) 2025-07-13 22:50:54.679 | at _createClient (/$bunfs/root/server:178:57410) 2025-07-13 22:50:54.679 | at drizzle (/$bunfs/root/server:178:154063) 2025-07-13 22:50:54.679 | at /$bunfs/root/server:178:154285 2025-07-13 22:50:54.679 | at loadAndEvaluateModule (1:11) 2025-07-13 22:50:54.679 | 2025-07-13 22:50:54.679 | Bun v1.2.18 (Linux x64 baseline)