π Open source, privacy-first web analytics β a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Admin CLI
Blue Mouse8637772d6d40
diff --git a/admin/README.md b/admin/README.mdnew file mode 100644index 000000000..a89b85309--- /dev/null+++ b/admin/README.md@@ -0,0 +1,55 @@+# Swetrix Admin CLI++An interactive CLI tool for managing Swetrix.++## Prerequisites++- Node.js >= 22+- Access to the Swetrix MySQL and ClickHouse databases+- Environment variables configured (either in `admin/.env` or `backend/.env`)++## Installation++```bash+cd admin+npm install+```++## Configuration++The CLI reads database configuration from environment variables. You can either:++1. Create an `.env` file in the `admin/` directory+2. Or rely on the existing `backend/.env` file (it will be auto-loaded)++Required environment variables:++```env+# MySQL+MYSQL_HOST=localhost+MYSQL_USER=root+MYSQL_ROOT_PASSWORD=your_password+MYSQL_DATABASE=analytics++# ClickHouse+CLICKHOUSE_HOST=http://localhost+CLICKHOUSE_PORT=8123+CLICKHOUSE_USER=default+CLICKHOUSE_PASSWORD=+CLICKHOUSE_DATABASE=analytics+```++## Usage++Run the CLI using:++```bash+npm run dev+```++Or build and run:++```bash+npm run build+node dist/index.js+```diff --git a/admin/package-lock.json b/admin/package-lock.jsonnew file mode 100644index 000000000..308391bea--- /dev/null+++ b/admin/package-lock.json@@ -0,0 +1,2782 @@+{+ "name": "swetrix-admin-cli",+ "version": "1.0.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "swetrix-admin-cli",+ "version": "1.0.0",+ "dependencies": {+ "@clickhouse/client": "^1.14.0",+ "dotenv": "^17.2.3",+ "ink": "^5.2.0",+ "ink-select-input": "^6.0.0",+ "ink-spinner": "^5.0.0",+ "ink-text-input": "^6.0.0",+ "mysql2": "^3.15.3",+ "react": "^18.3.1",+ "reflect-metadata": "^0.2.2",+ "typeorm": "^0.3.27"+ },+ "bin": {+ "swetrix-admin": "dist/index.js"+ },+ "devDependencies": {+ "@types/node": "^24.10.1",+ "@types/react": "^18.3.18",+ "tsx": "^4.19.4",+ "typescript": "^5.9.3"+ },+ "engines": {+ "node": ">=22"+ }+ },+ "node_modules/@alcalzone/ansi-tokenize": {+ "version": "0.1.3",+ "resolved": "https://registry.npmjs.org/@alcalzone/ansi-tokenize/-/ansi-tokenize-0.1.3.tgz",+ "integrity": "sha512-3yWxPTq3UQ/FY9p1ErPxIyfT64elWaMvM9lIHnaqpyft63tkxodF5aUElYHrdisWve5cETkh1+KBw1yJuW0aRw==",+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^6.2.1",+ "is-fullwidth-code-point": "^4.0.0"+ },+ "engines": {+ "node": ">=14.13.1"+ }+ },+ "node_modules/@clickhouse/client": {+ "version": "1.15.0",+ "resolved": "https://registry.npmjs.org/@clickhouse/client/-/client-1.15.0.tgz",+ "integrity": "sha512-QmW+p4c/r0oa3X6Un6lcBs4GZtJEQUdvf//x8GeqM5ru6m4oIUg3WwvermP3HE31kpEGoFOQfKbMN5ooR5gvNw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@clickhouse/client-common": "1.15.0"+ },+ "engines": {+ "node": ">=16"+ }+ },+ "node_modules/@clickhouse/client-common": {+ "version": "1.15.0",+ "resolved": "https://registry.npmjs.org/@clickhouse/client-common/-/client-common-1.15.0.tgz",+ "integrity": "sha512-/1BXaNNsBzH2w5ALWiH6M9zS+cJwlM9uMnMj9e8ETwvDjJzO+nIYlyxzp8Prc+9pEDZ5iAilZ4F8c0YVCzzNaA==",+ "license": "Apache-2.0"+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.2.tgz",+ "integrity": "sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.2.tgz",+ "integrity": "sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.2.tgz",+ "integrity": "sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.2.tgz",+ "integrity": "sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.2.tgz",+ "integrity": "sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.2.tgz",+ "integrity": "sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.2.tgz",+ "integrity": "sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.2.tgz",+ "integrity": "sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.2.tgz",+ "integrity": "sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.2.tgz",+ "integrity": "sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.2.tgz",+ "integrity": "sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.2.tgz",+ "integrity": "sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.2.tgz",+ "integrity": "sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.2.tgz",+ "integrity": "sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.2.tgz",+ "integrity": "sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.2.tgz",+ "integrity": "sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.2.tgz",+ "integrity": "sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-arm64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.2.tgz",+ "integrity": "sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.2.tgz",+ "integrity": "sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-arm64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.2.tgz",+ "integrity": "sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.2.tgz",+ "integrity": "sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openharmony-arm64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.2.tgz",+ "integrity": "sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.2.tgz",+ "integrity": "sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.2.tgz",+ "integrity": "sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.2.tgz",+ "integrity": "sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.2.tgz",+ "integrity": "sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@isaacs/cliui": {+ "version": "8.0.2",+ "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",+ "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==",+ "license": "ISC",+ "dependencies": {+ "string-width": "^5.1.2",+ "string-width-cjs": "npm:string-width@^4.2.0",+ "strip-ansi": "^7.0.1",+ "strip-ansi-cjs": "npm:strip-ansi@^6.0.1",+ "wrap-ansi": "^8.1.0",+ "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@isaacs/cliui/node_modules/emoji-regex": {+ "version": "9.2.2",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",+ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",+ "license": "MIT"+ },+ "node_modules/@isaacs/cliui/node_modules/string-width": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",+ "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",+ "license": "MIT",+ "dependencies": {+ "eastasianwidth": "^0.2.0",+ "emoji-regex": "^9.2.2",+ "strip-ansi": "^7.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/@isaacs/cliui/node_modules/wrap-ansi": {+ "version": "8.1.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",+ "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^6.1.0",+ "string-width": "^5.0.1",+ "strip-ansi": "^7.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/@pkgjs/parseargs": {+ "version": "0.11.0",+ "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",+ "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==",+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@sqltools/formatter": {+ "version": "1.2.5",+ "resolved": "https://registry.npmjs.org/@sqltools/formatter/-/formatter-1.2.5.tgz",+ "integrity": "sha512-Uy0+khmZqUrUGm5dmMqVlnvufZRSK0FbYzVgp0UMstm+F5+W2/jnEEQyc9vo1ZR/E5ZI/B1WjjoTqBqwJL6Krw==",+ "license": "MIT"+ },+ "node_modules/@types/node": {+ "version": "24.10.4",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.4.tgz",+ "integrity": "sha512-vnDVpYPMzs4wunl27jHrfmwojOGKya0xyM3sH+UE5iv5uPS6vX7UIoh6m+vQc5LGBq52HBKPIn/zcSZVzeDEZg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "undici-types": "~7.16.0"+ }+ },+ "node_modules/@types/prop-types": {+ "version": "15.7.15",+ "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz",+ "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==",+ "devOptional": true,+ "license": "MIT"+ },+ "node_modules/@types/react": {+ "version": "18.3.27",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.27.tgz",+ "integrity": "sha512-cisd7gxkzjBKU2GgdYrTdtQx1SORymWyaAFhaxQPK9bYO9ot3Y5OikQRvY0VYQtvwjeQnizCINJAenh/V7MK2w==",+ "devOptional": true,+ "license": "MIT",+ "dependencies": {+ "@types/prop-types": "*",+ "csstype": "^3.2.2"+ }+ },+ "node_modules/ansi-escapes": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.2.0.tgz",+ "integrity": "sha512-g6LhBsl+GBPRWGWsBtutpzBYuIIdBkLEvad5C/va/74Db018+5TZiyA26cZJAr3Rft5lprVqOIPxf5Vid6tqAw==",+ "license": "MIT",+ "dependencies": {+ "environment": "^1.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/ansi-regex": {+ "version": "6.2.2",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"+ }+ },+ "node_modules/ansi-styles": {+ "version": "6.2.3",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/ansis": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/ansis/-/ansis-4.2.0.tgz",+ "integrity": "sha512-HqZ5rWlFjGiV0tDm3UxxgNRqsOTniqoKZu0pIAfh7TZQMGuZK+hH0drySty0si0QXj1ieop4+SkSfPZBPPkHig==",+ "license": "ISC",+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/app-root-path": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/app-root-path/-/app-root-path-3.1.0.tgz",+ "integrity": "sha512-biN3PwB2gUtjaYy/isrU3aNWI5w+fAfvHkSvCKeQGxhmYpwKFUxudR3Yya+KqVRHBmEDYh+/lTozYCFbmzX4nA==",+ "license": "MIT",+ "engines": {+ "node": ">= 6.0.0"+ }+ },+ "node_modules/auto-bind": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/auto-bind/-/auto-bind-5.0.1.tgz",+ "integrity": "sha512-ooviqdwwgfIfNmDwo94wlshcdzfO64XV0Cg6oDsDYBJfITDz1EngD2z7DkbvCWn+XIMsIqW27sEVF6qcpJrRcg==",+ "license": "MIT",+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/available-typed-arrays": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",+ "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==",+ "license": "MIT",+ "dependencies": {+ "possible-typed-array-names": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/aws-ssl-profiles": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/aws-ssl-profiles/-/aws-ssl-profiles-1.1.2.tgz",+ "integrity": "sha512-NZKeq9AfyQvEeNlN0zSYAaWrmBffJh3IELMZfRpJVWgrpEbtEpnjvzqBPf+mxoI287JohRDoa+/nsfqqiZmF6g==",+ "license": "MIT",+ "engines": {+ "node": ">= 6.0.0"+ }+ },+ "node_modules/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "license": "MIT"+ },+ "node_modules/base64-js": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/brace-expansion": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",+ "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },+ "node_modules/buffer": {+ "version": "6.0.3",+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",+ "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "base64-js": "^1.3.1",+ "ieee754": "^1.2.1"+ }+ },+ "node_modules/call-bind": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz",+ "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.0",+ "es-define-property": "^1.0.0",+ "get-intrinsic": "^1.2.4",+ "set-function-length": "^1.2.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/call-bind-apply-helpers": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/call-bound": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "get-intrinsic": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/chalk": {+ "version": "5.6.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz",+ "integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==",+ "license": "MIT",+ "engines": {+ "node": "^12.17.0 || ^14.13 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },+ "node_modules/cli-boxes": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz",+ "integrity": "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==",+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/cli-cursor": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-4.0.0.tgz",+ "integrity": "sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==",+ "license": "MIT",+ "dependencies": {+ "restore-cursor": "^4.0.0"+ },+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/cli-spinners": {+ "version": "2.9.2",+ "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz",+ "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/cli-truncate": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-4.0.0.tgz",+ "integrity": "sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==",+ "license": "MIT",+ "dependencies": {+ "slice-ansi": "^5.0.0",+ "string-width": "^7.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/cli-truncate/node_modules/slice-ansi": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz",+ "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==",+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^6.0.0",+ "is-fullwidth-code-point": "^4.0.0"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/slice-ansi?sponsor=1"+ }+ },+ "node_modules/cliui": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",+ "license": "ISC",+ "dependencies": {+ "string-width": "^4.2.0",+ "strip-ansi": "^6.0.1",+ "wrap-ansi": "^7.0.0"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/cliui/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cliui/node_modules/ansi-styles": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "license": "MIT",+ "dependencies": {+ "color-convert": "^2.0.1"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/cliui/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "license": "MIT"+ },+ "node_modules/cliui/node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cliui/node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cliui/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cliui/node_modules/wrap-ansi": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.0.0",+ "string-width": "^4.1.0",+ "strip-ansi": "^6.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/code-excerpt": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/code-excerpt/-/code-excerpt-4.0.0.tgz",+ "integrity": "sha512-xxodCmBen3iy2i0WtAK8FlFNrRzjUqjRsMfho58xT/wvZU1YTM3fCnRjcy1gJPMepaRlgm/0e6w8SpWHpn3/cA==",+ "license": "MIT",+ "dependencies": {+ "convert-to-spaces": "^2.0.1"+ },+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ }+ },+ "node_modules/color-convert": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",+ "license": "MIT",+ "dependencies": {+ "color-name": "~1.1.4"+ },+ "engines": {+ "node": ">=7.0.0"+ }+ },+ "node_modules/color-name": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",+ "license": "MIT"+ },+ "node_modules/convert-to-spaces": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/convert-to-spaces/-/convert-to-spaces-2.0.1.tgz",+ "integrity": "sha512-rcQ1bsQO9799wq24uE5AM2tAILy4gXGIK/njFWcVQkGNZ96edlpY+A7bjwvzjYvLDyzmG1MmMLZhpcsb+klNMQ==",+ "license": "MIT",+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ }+ },+ "node_modules/cross-spawn": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",+ "license": "MIT",+ "dependencies": {+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/csstype": {+ "version": "3.2.3",+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",+ "devOptional": true,+ "license": "MIT"+ },+ "node_modules/dayjs": {+ "version": "1.11.19",+ "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.19.tgz",+ "integrity": "sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw==",+ "license": "MIT"+ },+ "node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/dedent": {+ "version": "1.7.1",+ "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.1.tgz",+ "integrity": "sha512-9JmrhGZpOlEgOLdQgSm0zxFaYoQon408V1v49aqTWuXENVlnCuY9JBZcXZiCsZQWDjTm5Qf/nIvAy77mXDAjEg==",+ "license": "MIT",+ "peerDependencies": {+ "babel-plugin-macros": "^3.1.0"+ },+ "peerDependenciesMeta": {+ "babel-plugin-macros": {+ "optional": true+ }+ }+ },+ "node_modules/define-data-property": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",+ "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",+ "license": "MIT",+ "dependencies": {+ "es-define-property": "^1.0.0",+ "es-errors": "^1.3.0",+ "gopd": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/denque": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz",+ "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=0.10"+ }+ },+ "node_modules/dotenv": {+ "version": "17.2.3",+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.3.tgz",+ "integrity": "sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w==",+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://dotenvx.com"+ }+ },+ "node_modules/dunder-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.1",+ "es-errors": "^1.3.0",+ "gopd": "^1.2.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/eastasianwidth": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",+ "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==",+ "license": "MIT"+ },+ "node_modules/emoji-regex": {+ "version": "10.6.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz",+ "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==",+ "license": "MIT"+ },+ "node_modules/environment": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz",+ "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/es-define-property": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-errors": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-object-atoms": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-toolkit": {+ "version": "1.43.0",+ "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.43.0.tgz",+ "integrity": "sha512-SKCT8AsWvYzBBuUqMk4NPwFlSdqLpJwmy6AP322ERn8W2YLIB6JBXnwMI2Qsh2gfphT3q7EKAxKb23cvFHFwKA==",+ "license": "MIT",+ "workspaces": [+ "docs",+ "benchmarks"+ ]+ },+ "node_modules/esbuild": {+ "version": "0.27.2",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.2.tgz",+ "integrity": "sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.27.2",+ "@esbuild/android-arm": "0.27.2",+ "@esbuild/android-arm64": "0.27.2",+ "@esbuild/android-x64": "0.27.2",+ "@esbuild/darwin-arm64": "0.27.2",+ "@esbuild/darwin-x64": "0.27.2",+ "@esbuild/freebsd-arm64": "0.27.2",+ "@esbuild/freebsd-x64": "0.27.2",+ "@esbuild/linux-arm": "0.27.2",+ "@esbuild/linux-arm64": "0.27.2",+ "@esbuild/linux-ia32": "0.27.2",+ "@esbuild/linux-loong64": "0.27.2",+ "@esbuild/linux-mips64el": "0.27.2",+ "@esbuild/linux-ppc64": "0.27.2",+ "@esbuild/linux-riscv64": "0.27.2",+ "@esbuild/linux-s390x": "0.27.2",+ "@esbuild/linux-x64": "0.27.2",+ "@esbuild/netbsd-arm64": "0.27.2",+ "@esbuild/netbsd-x64": "0.27.2",+ "@esbuild/openbsd-arm64": "0.27.2",+ "@esbuild/openbsd-x64": "0.27.2",+ "@esbuild/openharmony-arm64": "0.27.2",+ "@esbuild/sunos-x64": "0.27.2",+ "@esbuild/win32-arm64": "0.27.2",+ "@esbuild/win32-ia32": "0.27.2",+ "@esbuild/win32-x64": "0.27.2"+ }+ },+ "node_modules/escalade": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/escape-string-regexp": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz",+ "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/figures": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/figures/-/figures-6.1.0.tgz",+ "integrity": "sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==",+ "license": "MIT",+ "dependencies": {+ "is-unicode-supported": "^2.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/for-each": {+ "version": "0.3.5",+ "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz",+ "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==",+ "license": "MIT",+ "dependencies": {+ "is-callable": "^1.2.7"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/foreground-child": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz",+ "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==",+ "license": "ISC",+ "dependencies": {+ "cross-spawn": "^7.0.6",+ "signal-exit": "^4.0.1"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/foreground-child/node_modules/signal-exit": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",+ "license": "ISC",+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/function-bind": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/generate-function": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz",+ "integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==",+ "license": "MIT",+ "dependencies": {+ "is-property": "^1.0.2"+ }+ },+ "node_modules/get-caller-file": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",+ "license": "ISC",+ "engines": {+ "node": "6.* || 8.* || >= 10.*"+ }+ },+ "node_modules/get-east-asian-width": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.4.0.tgz",+ "integrity": "sha512-QZjmEOC+IT1uk6Rx0sX22V6uHWVwbdbxf1faPqJ1QhLdGgsRGCZoyaQBm/piRdJy/D2um6hM1UP7ZEeQ4EkP+Q==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/get-intrinsic": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "function-bind": "^1.1.2",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",+ "license": "MIT",+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/get-tsconfig": {+ "version": "4.13.0",+ "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.13.0.tgz",+ "integrity": "sha512-1VKTZJCwBrvbd+Wn3AOgQP/2Av+TfTCOlE4AcRJE72W1ksZXbAx8PPBR9RzgTeSPzlPMHrbANMH3LbltH73wxQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "resolve-pkg-maps": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"+ }+ },+ "node_modules/glob": {+ "version": "10.5.0",+ "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz",+ "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==",+ "license": "ISC",+ "dependencies": {+ "foreground-child": "^3.1.0",+ "jackspeak": "^3.1.2",+ "minimatch": "^9.0.4",+ "minipass": "^7.1.2",+ "package-json-from-dist": "^1.0.0",+ "path-scurry": "^1.11.1"+ },+ "bin": {+ "glob": "dist/esm/bin.mjs"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/gopd": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-property-descriptors": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",+ "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",+ "license": "MIT",+ "dependencies": {+ "es-define-property": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-symbols": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-tostringtag": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",+ "license": "MIT",+ "dependencies": {+ "has-symbols": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/hasown": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",+ "license": "MIT",+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/iconv-lite": {+ "version": "0.7.1",+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.1.tgz",+ "integrity": "sha512-2Tth85cXwGFHfvRgZWszZSvdo+0Xsqmw8k8ZwxScfcBneNUraK+dxRxRm24nszx80Y0TVio8kKLt5sLE7ZCLlw==",+ "license": "MIT",+ "dependencies": {+ "safer-buffer": ">= 2.1.2 < 3.0.0"+ },+ "engines": {+ "node": ">=0.10.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/ieee754": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "BSD-3-Clause"+ },+ "node_modules/indent-string": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz",+ "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/inherits": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",+ "license": "ISC"+ },+ "node_modules/ink": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/ink/-/ink-5.2.1.tgz",+ "integrity": "sha512-BqcUyWrG9zq5HIwW6JcfFHsIYebJkWWb4fczNah1goUO0vv5vneIlfwuS85twyJ5hYR/y18FlAYUxrO9ChIWVg==",+ "license": "MIT",+ "dependencies": {+ "@alcalzone/ansi-tokenize": "^0.1.3",+ "ansi-escapes": "^7.0.0",+ "ansi-styles": "^6.2.1",+ "auto-bind": "^5.0.1",+ "chalk": "^5.3.0",+ "cli-boxes": "^3.0.0",+ "cli-cursor": "^4.0.0",+ "cli-truncate": "^4.0.0",+ "code-excerpt": "^4.0.0",+ "es-toolkit": "^1.22.0",+ "indent-string": "^5.0.0",+ "is-in-ci": "^1.0.0",+ "patch-console": "^2.0.0",+ "react-reconciler": "^0.29.0",+ "scheduler": "^0.23.0",+ "signal-exit": "^3.0.7",+ "slice-ansi": "^7.1.0",+ "stack-utils": "^2.0.6",+ "string-width": "^7.2.0",+ "type-fest": "^4.27.0",+ "widest-line": "^5.0.0",+ "wrap-ansi": "^9.0.0",+ "ws": "^8.18.0",+ "yoga-layout": "~3.2.1"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@types/react": ">=18.0.0",+ "react": ">=18.0.0",+ "react-devtools-core": "^4.19.1"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "react-devtools-core": {+ "optional": true+ }+ }+ },+ "node_modules/ink-select-input": {+ "version": "6.2.0",+ "resolved": "https://registry.npmjs.org/ink-select-input/-/ink-select-input-6.2.0.tgz",+ "integrity": "sha512-304fZXxkpYxJ9si5lxRCaX01GNlmPBgOZumXXRnPYbHW/iI31cgQynqk2tRypGLOF1cMIwPUzL2LSm6q4I5rQQ==",+ "license": "MIT",+ "dependencies": {+ "figures": "^6.1.0",+ "to-rotated": "^1.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "ink": ">=5.0.0",+ "react": ">=18.0.0"+ }+ },+ "node_modules/ink-spinner": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/ink-spinner/-/ink-spinner-5.0.0.tgz",+ "integrity": "sha512-EYEasbEjkqLGyPOUc8hBJZNuC5GvXGMLu0w5gdTNskPc7Izc5vO3tdQEYnzvshucyGCBXc86ig0ujXPMWaQCdA==",+ "license": "MIT",+ "dependencies": {+ "cli-spinners": "^2.7.0"+ },+ "engines": {+ "node": ">=14.16"+ },+ "peerDependencies": {+ "ink": ">=4.0.0",+ "react": ">=18.0.0"+ }+ },+ "node_modules/ink-text-input": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/ink-text-input/-/ink-text-input-6.0.0.tgz",+ "integrity": "sha512-Fw64n7Yha5deb1rHY137zHTAbSTNelUKuB5Kkk2HACXEtwIHBCf9OH2tP/LQ9fRYTl1F0dZgbW0zPnZk6FA9Lw==",+ "license": "MIT",+ "dependencies": {+ "chalk": "^5.3.0",+ "type-fest": "^4.18.2"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "ink": ">=5",+ "react": ">=18"+ }+ },+ "node_modules/is-callable": {+ "version": "1.2.7",+ "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz",+ "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-fullwidth-code-point": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz",+ "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-in-ci": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/is-in-ci/-/is-in-ci-1.0.0.tgz",+ "integrity": "sha512-eUuAjybVTHMYWm/U+vBO1sY/JOCgoPCXRxzdju0K+K0BiGW0SChEL1MLC0PoCIR1OlPo5YAp8HuQoUlsWEICwg==",+ "license": "MIT",+ "bin": {+ "is-in-ci": "cli.js"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-property": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz",+ "integrity": "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==",+ "license": "MIT"+ },+ "node_modules/is-typed-array": {+ "version": "1.1.15",+ "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz",+ "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==",+ "license": "MIT",+ "dependencies": {+ "which-typed-array": "^1.1.16"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-unicode-supported": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz",+ "integrity": "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/isarray": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",+ "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==",+ "license": "MIT"+ },+ "node_modules/isexe": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",+ "license": "ISC"+ },+ "node_modules/jackspeak": {+ "version": "3.4.3",+ "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",+ "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==",+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "@isaacs/cliui": "^8.0.2"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ },+ "optionalDependencies": {+ "@pkgjs/parseargs": "^0.11.0"+ }+ },+ "node_modules/js-tokens": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "license": "MIT"+ },+ "node_modules/long": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz",+ "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==",+ "license": "Apache-2.0"+ },+ "node_modules/loose-envify": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",+ "license": "MIT",+ "dependencies": {+ "js-tokens": "^3.0.0 || ^4.0.0"+ },+ "bin": {+ "loose-envify": "cli.js"+ }+ },+ "node_modules/lru-cache": {+ "version": "10.4.3",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",+ "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",+ "license": "ISC"+ },+ "node_modules/lru.min": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/lru.min/-/lru.min-1.1.3.tgz",+ "integrity": "sha512-Lkk/vx6ak3rYkRR0Nhu4lFUT2VDnQSxBe8Hbl7f36358p6ow8Bnvr8lrLt98H8J1aGxfhbX4Fs5tYg2+FTwr5Q==",+ "license": "MIT",+ "engines": {+ "bun": ">=1.0.0",+ "deno": ">=1.30.0",+ "node": ">=8.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wellwelwel"+ }+ },+ "node_modules/math-intrinsics": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/mimic-fn": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/minimatch": {+ "version": "9.0.5",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",+ "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/minipass": {+ "version": "7.1.2",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",+ "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",+ "license": "ISC",+ "engines": {+ "node": ">=16 || 14 >=14.17"+ }+ },+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "license": "MIT"+ },+ "node_modules/mysql2": {+ "version": "3.16.0",+ "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.16.0.tgz",+ "integrity": "sha512-AEGW7QLLSuSnjCS4pk3EIqOmogegmze9h8EyrndavUQnIUcfkVal/sK7QznE+a3bc6rzPbAiui9Jcb+96tPwYA==",+ "license": "MIT",+ "dependencies": {+ "aws-ssl-profiles": "^1.1.1",+ "denque": "^2.1.0",+ "generate-function": "^2.3.1",+ "iconv-lite": "^0.7.0",+ "long": "^5.2.1",+ "lru.min": "^1.0.0",+ "named-placeholders": "^1.1.3",+ "seq-queue": "^0.0.5",+ "sqlstring": "^2.3.2"+ },+ "engines": {+ "node": ">= 8.0"+ }+ },+ "node_modules/named-placeholders": {+ "version": "1.1.6",+ "resolved": "https://registry.npmjs.org/named-placeholders/-/named-placeholders-1.1.6.tgz",+ "integrity": "sha512-Tz09sEL2EEuv5fFowm419c1+a/jSMiBjI9gHxVLrVdbUkkNUUfjsVYs9pVZu5oCon/kmRh9TfLEObFtkVxmY0w==",+ "license": "MIT",+ "dependencies": {+ "lru.min": "^1.1.0"+ },+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/onetime": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",+ "license": "MIT",+ "dependencies": {+ "mimic-fn": "^2.1.0"+ },+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/package-json-from-dist": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",+ "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",+ "license": "BlueOak-1.0.0"+ },+ "node_modules/patch-console": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/patch-console/-/patch-console-2.0.0.tgz",+ "integrity": "sha512-0YNdUceMdaQwoKce1gatDScmMo5pu/tfABfnzEqeG0gtTmd7mh/WcwgUjtAeOU7N8nFFlbQBnFK2gXW5fGvmMA==",+ "license": "MIT",+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ }+ },+ "node_modules/path-key": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/path-scurry": {+ "version": "1.11.1",+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",+ "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "lru-cache": "^10.2.0",+ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"+ },+ "engines": {+ "node": ">=16 || 14 >=14.18"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/possible-typed-array-names": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz",+ "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/react": {+ "version": "18.3.1",+ "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",+ "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.1.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-reconciler": {+ "version": "0.29.2",+ "resolved": "https://registry.npmjs.org/react-reconciler/-/react-reconciler-0.29.2.tgz",+ "integrity": "sha512-zZQqIiYgDCTP/f1N/mAR10nJGrPD2ZR+jDSEsKWJHYC7Cm2wodlwbR3upZRdC3cjIjSlTLNVyO7Iu0Yy7t2AYg==",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.1.0",+ "scheduler": "^0.23.2"+ },+ "engines": {+ "node": ">=0.10.0"+ },+ "peerDependencies": {+ "react": "^18.3.1"+ }+ },+ "node_modules/reflect-metadata": {+ "version": "0.2.2",+ "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz",+ "integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==",+ "license": "Apache-2.0"+ },+ "node_modules/require-directory": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/resolve-pkg-maps": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz",+ "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"+ }+ },+ "node_modules/restore-cursor": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-4.0.0.tgz",+ "integrity": "sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==",+ "license": "MIT",+ "dependencies": {+ "onetime": "^5.1.0",+ "signal-exit": "^3.0.2"+ },+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/safe-buffer": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/safer-buffer": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",+ "license": "MIT"+ },+ "node_modules/scheduler": {+ "version": "0.23.2",+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",+ "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.1.0"+ }+ },+ "node_modules/seq-queue": {+ "version": "0.0.5",+ "resolved": "https://registry.npmjs.org/seq-queue/-/seq-queue-0.0.5.tgz",+ "integrity": "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q=="+ },+ "node_modules/set-function-length": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",+ "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",+ "license": "MIT",+ "dependencies": {+ "define-data-property": "^1.1.4",+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2",+ "get-intrinsic": "^1.2.4",+ "gopd": "^1.0.1",+ "has-property-descriptors": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/sha.js": {+ "version": "2.4.12",+ "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.12.tgz",+ "integrity": "sha512-8LzC5+bvI45BjpfXU8V5fdU2mfeKiQe1D1gIMn7XUlF3OTUrpdJpPPH4EMAnF0DsHHdSZqCdSss5qCmJKuiO3w==",+ "license": "(MIT AND BSD-3-Clause)",+ "dependencies": {+ "inherits": "^2.0.4",+ "safe-buffer": "^5.2.1",+ "to-buffer": "^1.2.0"+ },+ "bin": {+ "sha.js": "bin.js"+ },+ "engines": {+ "node": ">= 0.10"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/shebang-command": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",+ "license": "MIT",+ "dependencies": {+ "shebang-regex": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/shebang-regex": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/signal-exit": {+ "version": "3.0.7",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",+ "license": "ISC"+ },+ "node_modules/slice-ansi": {+ "version": "7.1.2",+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.2.tgz",+ "integrity": "sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w==",+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^6.2.1",+ "is-fullwidth-code-point": "^5.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/chalk/slice-ansi?sponsor=1"+ }+ },+ "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.1.0.tgz",+ "integrity": "sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==",+ "license": "MIT",+ "dependencies": {+ "get-east-asian-width": "^1.3.1"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/sql-highlight": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/sql-highlight/-/sql-highlight-6.1.0.tgz",+ "integrity": "sha512-ed7OK4e9ywpE7pgRMkMQmZDPKSVdm0oX5IEtZiKnFucSF0zu6c80GZBe38UqHuVhTWJ9xsKgSMjCG2bml86KvA==",+ "funding": [+ "https://github.com/scriptcoded/sql-highlight?sponsor=1",+ {+ "type": "github",+ "url": "https://github.com/sponsors/scriptcoded"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/sqlstring": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz",+ "integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/stack-utils": {+ "version": "2.0.6",+ "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz",+ "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==",+ "license": "MIT",+ "dependencies": {+ "escape-string-regexp": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/string-width": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^10.3.0",+ "get-east-asian-width": "^1.0.0",+ "strip-ansi": "^7.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/string-width-cjs": {+ "name": "string-width",+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/string-width-cjs/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/string-width-cjs/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "license": "MIT"+ },+ "node_modules/string-width-cjs/node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/string-width-cjs/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-ansi": {+ "version": "7.1.2",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz",+ "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^6.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"+ }+ },+ "node_modules/strip-ansi-cjs": {+ "name": "strip-ansi",+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-ansi-cjs/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/to-buffer": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.2.2.tgz",+ "integrity": "sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw==",+ "license": "MIT",+ "dependencies": {+ "isarray": "^2.0.5",+ "safe-buffer": "^5.2.1",+ "typed-array-buffer": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/to-rotated": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/to-rotated/-/to-rotated-1.0.0.tgz",+ "integrity": "sha512-KsEID8AfgUy+pxVRLsWp0VzCa69wxzUDZnzGbyIST/bcgcrMvTYoFBX/QORH4YApoD89EDuUovx4BTdpOn319Q==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/tslib": {+ "version": "2.8.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",+ "license": "0BSD"+ },+ "node_modules/tsx": {+ "version": "4.21.0",+ "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.21.0.tgz",+ "integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "~0.27.0",+ "get-tsconfig": "^4.7.5"+ },+ "bin": {+ "tsx": "dist/cli.mjs"+ },+ "engines": {+ "node": ">=18.0.0"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ }+ },+ "node_modules/type-fest": {+ "version": "4.41.0",+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz",+ "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==",+ "license": "(MIT OR CC0-1.0)",+ "engines": {+ "node": ">=16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/typed-array-buffer": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz",+ "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==",+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "es-errors": "^1.3.0",+ "is-typed-array": "^1.1.14"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/typeorm": {+ "version": "0.3.28",+ "resolved": "https://registry.npmjs.org/typeorm/-/typeorm-0.3.28.tgz",+ "integrity": "sha512-6GH7wXhtfq2D33ZuRXYwIsl/qM5685WZcODZb7noOOcRMteM9KF2x2ap3H0EBjnSV0VO4gNAfJT5Ukp0PkOlvg==",+ "license": "MIT",+ "dependencies": {+ "@sqltools/formatter": "^1.2.5",+ "ansis": "^4.2.0",+ "app-root-path": "^3.1.0",+ "buffer": "^6.0.3",+ "dayjs": "^1.11.19",+ "debug": "^4.4.3",+ "dedent": "^1.7.0",+ "dotenv": "^16.6.1",+ "glob": "^10.5.0",+ "reflect-metadata": "^0.2.2",+ "sha.js": "^2.4.12",+ "sql-highlight": "^6.1.0",+ "tslib": "^2.8.1",+ "uuid": "^11.1.0",+ "yargs": "^17.7.2"+ },+ "bin": {+ "typeorm": "cli.js",+ "typeorm-ts-node-commonjs": "cli-ts-node-commonjs.js",+ "typeorm-ts-node-esm": "cli-ts-node-esm.js"+ },+ "engines": {+ "node": ">=16.13.0"+ },+ "funding": {+ "url": "https://opencollective.com/typeorm"+ },+ "peerDependencies": {+ "@google-cloud/spanner": "^5.18.0 || ^6.0.0 || ^7.0.0 || ^8.0.0",+ "@sap/hana-client": "^2.14.22",+ "better-sqlite3": "^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0",+ "ioredis": "^5.0.4",+ "mongodb": "^5.8.0 || ^6.0.0",+ "mssql": "^9.1.1 || ^10.0.0 || ^11.0.0 || ^12.0.0",+ "mysql2": "^2.2.5 || ^3.0.1",+ "oracledb": "^6.3.0",+ "pg": "^8.5.1",+ "pg-native": "^3.0.0",+ "pg-query-stream": "^4.0.0",+ "redis": "^3.1.1 || ^4.0.0 || ^5.0.14",+ "sql.js": "^1.4.0",+ "sqlite3": "^5.0.3",+ "ts-node": "^10.7.0",+ "typeorm-aurora-data-api-driver": "^2.0.0 || ^3.0.0"+ },+ "peerDependenciesMeta": {+ "@google-cloud/spanner": {+ "optional": true+ },+ "@sap/hana-client": {+ "optional": true+ },+ "better-sqlite3": {+ "optional": true+ },+ "ioredis": {+ "optional": true+ },+ "mongodb": {+ "optional": true+ },+ "mssql": {+ "optional": true+ },+ "mysql2": {+ "optional": true+ },+ "oracledb": {+ "optional": true+ },+ "pg": {+ "optional": true+ },+ "pg-native": {+ "optional": true+ },+ "pg-query-stream": {+ "optional": true+ },+ "redis": {+ "optional": true+ },+ "sql.js": {+ "optional": true+ },+ "sqlite3": {+ "optional": true+ },+ "ts-node": {+ "optional": true+ },+ "typeorm-aurora-data-api-driver": {+ "optional": true+ }+ }+ },+ "node_modules/typeorm/node_modules/dotenv": {+ "version": "16.6.1",+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",+ "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://dotenvx.com"+ }+ },+ "node_modules/typescript": {+ "version": "5.9.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/undici-types": {+ "version": "7.16.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz",+ "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/uuid": {+ "version": "11.1.0",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.0.tgz",+ "integrity": "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==",+ "funding": [+ "https://github.com/sponsors/broofa",+ "https://github.com/sponsors/ctavan"+ ],+ "license": "MIT",+ "bin": {+ "uuid": "dist/esm/bin/uuid"+ }+ },+ "node_modules/which": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "license": "ISC",+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "node-which": "bin/node-which"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/which-typed-array": {+ "version": "1.1.19",+ "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz",+ "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==",+ "license": "MIT",+ "dependencies": {+ "available-typed-arrays": "^1.0.7",+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.4",+ "for-each": "^0.3.5",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-tostringtag": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/widest-line": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-5.0.0.tgz",+ "integrity": "sha512-c9bZp7b5YtRj2wOe6dlj32MK+Bx/M/d+9VB2SHM1OtsUHR0aV0tdP6DWh/iMt0kWi1t5g1Iudu6hQRNd1A4PVA==",+ "license": "MIT",+ "dependencies": {+ "string-width": "^7.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/wrap-ansi": {+ "version": "9.0.2",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz",+ "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==",+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^6.2.1",+ "string-width": "^7.0.0",+ "strip-ansi": "^7.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/wrap-ansi-cjs": {+ "name": "wrap-ansi",+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.0.0",+ "string-width": "^4.1.0",+ "strip-ansi": "^6.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "license": "MIT",+ "dependencies": {+ "color-convert": "^2.0.1"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "license": "MIT"+ },+ "node_modules/wrap-ansi-cjs/node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/wrap-ansi-cjs/node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ws": {+ "version": "8.18.3",+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz",+ "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==",+ "license": "MIT",+ "engines": {+ "node": ">=10.0.0"+ },+ "peerDependencies": {+ "bufferutil": "^4.0.1",+ "utf-8-validate": ">=5.0.2"+ },+ "peerDependenciesMeta": {+ "bufferutil": {+ "optional": true+ },+ "utf-8-validate": {+ "optional": true+ }+ }+ },+ "node_modules/y18n": {+ "version": "5.0.8",+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",+ "license": "ISC",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/yargs": {+ "version": "17.7.2",+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",+ "license": "MIT",+ "dependencies": {+ "cliui": "^8.0.1",+ "escalade": "^3.1.1",+ "get-caller-file": "^2.0.5",+ "require-directory": "^2.1.1",+ "string-width": "^4.2.3",+ "y18n": "^5.0.5",+ "yargs-parser": "^21.1.1"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/yargs-parser": {+ "version": "21.1.1",+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/yargs/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/yargs/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "license": "MIT"+ },+ "node_modules/yargs/node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/yargs/node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/yargs/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/yoga-layout": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/yoga-layout/-/yoga-layout-3.2.1.tgz",+ "integrity": "sha512-0LPOt3AxKqMdFBZA3HBAt/t/8vIKq7VaQYbuA8WxCgung+p9TVyKRYdpvCb80HcdTN2NkbIKbhNwKUfm3tQywQ==",+ "license": "MIT"+ }+ }+}diff --git a/admin/package.json b/admin/package.jsonnew file mode 100644index 000000000..79ce2be4e--- /dev/null+++ b/admin/package.json@@ -0,0 +1,37 @@+{+ "name": "swetrix-admin-cli",+ "private": true,+ "version": "1.0.0",+ "description": "CLI admin tool for managing Swetrix organizations, projects, and users",+ "type": "module",+ "main": "dist/index.js",+ "bin": {+ "swetrix-admin": "./dist/index.js"+ },+ "scripts": {+ "build": "tsc",+ "start": "node --loader ts-node/esm src/index.tsx",+ "dev": "tsx src/index.tsx"+ },+ "dependencies": {+ "@clickhouse/client": "^1.14.0",+ "dotenv": "^17.2.3",+ "ink": "^5.2.0",+ "ink-select-input": "^6.0.0",+ "ink-spinner": "^5.0.0",+ "ink-text-input": "^6.0.0",+ "mysql2": "^3.15.3",+ "react": "^18.3.1",+ "reflect-metadata": "^0.2.2",+ "typeorm": "^0.3.27"+ },+ "devDependencies": {+ "@types/node": "^24.10.1",+ "@types/react": "^18.3.18",+ "tsx": "^4.19.4",+ "typescript": "^5.9.3"+ },+ "engines": {+ "node": ">=22"+ }+}diff --git a/admin/src/commands/OrgsCommand.tsx b/admin/src/commands/OrgsCommand.tsxnew file mode 100644index 000000000..98245e9d5--- /dev/null+++ b/admin/src/commands/OrgsCommand.tsx@@ -0,0 +1,218 @@+import React, { useState, useEffect } from 'react'+import { Box, Text, useInput } from 'ink'+import TextInput from 'ink-text-input'+import SelectInput from 'ink-select-input'+import { Spinner } from '../components/Spinner.js'+import { Table } from '../components/Table.js'+import { AppDataSource, Organisation, OrganisationMember } from '../db/mysql.js'++interface OrgsCommandProps {+ onBack: () => void+}++type Mode = 'list' | 'search' | 'detail'++export function OrgsCommand({ onBack }: OrgsCommandProps) {+ const [mode, setMode] = useState<Mode>('list')+ const [loading, setLoading] = useState(false)+ const [orgs, setOrgs] = useState<Organisation[]>([])+ const [selectedOrg, setSelectedOrg] = useState<Organisation | null>(null)+ const [members, setMembers] = useState<OrganisationMember[]>([])+ const [searchQuery, setSearchQuery] = useState('')+ const [error, setError] = useState<string | null>(null)+ const [page, setPage] = useState(0)+ const pageSize = 10++ useInput((input, key) => {+ if (key.escape) {+ if (mode === 'detail') {+ setMode('list')+ setSelectedOrg(null)+ } else {+ onBack()+ }+ }+ if (input === 's' && mode === 'list') {+ setMode('search')+ }+ if (key.leftArrow && page > 0) {+ setPage(p => p - 1)+ }+ if (key.rightArrow && orgs.length === pageSize) {+ setPage(p => p + 1)+ }+ })++ useEffect(() => {+ if (mode === 'list') {+ loadOrgs()+ }+ }, [mode, page])++ async function loadOrgs(search?: string) {+ setLoading(true)+ setError(null)+ try {+ const repo = AppDataSource.getRepository(Organisation)+ let query = repo.createQueryBuilder('org')+ .leftJoinAndSelect('org.members', 'members')+ .leftJoinAndSelect('org.projects', 'projects')+ .orderBy('org.created', 'DESC')+ .skip(page * pageSize)+ .take(pageSize)++ if (search) {+ query = query.where('org.name LIKE :search OR org.id LIKE :search', {+ search: `%${search}%`+ })+ }++ const result = await query.getMany()+ setOrgs(result)+ } catch (err) {+ setError(err instanceof Error ? err.message : 'Failed to load organizations')+ } finally {+ setLoading(false)+ }+ }++ async function loadOrgDetails(org: Organisation) {+ setLoading(true)+ try {+ const memberRepo = AppDataSource.getRepository(OrganisationMember)+ const orgMembers = await memberRepo.find({+ where: { organisation: { id: org.id } },+ relations: ['user'],+ })+ setMembers(orgMembers)+ setSelectedOrg(org)+ setMode('detail')+ } catch (err) {+ setError(err instanceof Error ? err.message : 'Failed to load organization details')+ } finally {+ setLoading(false)+ }+ }++ const handleSearch = () => {+ if (searchQuery.trim()) {+ loadOrgs(searchQuery.trim())+ setMode('list')+ }+ }++ const handleSelectOrg = (item: { value: string }) => {+ const org = orgs.find(o => o.id === item.value)+ if (org) {+ loadOrgDetails(org)+ }+ }++ if (loading) {+ return <Spinner text="Loading organizations..." />+ }++ if (error) {+ return (+ <Box flexDirection="column">+ <Text color="red">Error: {error}</Text>+ <Text color="gray">Press ESC to go back</Text>+ </Box>+ )+ }++ if (mode === 'search') {+ return (+ <Box flexDirection="column">+ <Text bold color="yellow">π Search Organizations</Text>+ <Box marginTop={1}>+ <Text>Search: </Text>+ <TextInput+ value={searchQuery}+ onChange={setSearchQuery}+ onSubmit={handleSearch}+ placeholder="Enter name or ID..."+ />+ </Box>+ <Box marginTop={1}>+ <Text color="gray">Press Enter to search, ESC to cancel</Text>+ </Box>+ </Box>+ )+ }++ if (mode === 'detail' && selectedOrg) {+ return (+ <Box flexDirection="column">+ <Text bold color="yellow">π’ Organization Details</Text>++ <Box flexDirection="column" marginTop={1} marginBottom={1}>+ <Text><Text color="cyan">ID:</Text> {selectedOrg.id}</Text>+ <Text><Text color="cyan">Name:</Text> {selectedOrg.name}</Text>+ <Text><Text color="cyan">Created:</Text> {new Date(selectedOrg.created).toLocaleString()}</Text>+ <Text><Text color="cyan">Projects:</Text> {selectedOrg.projects?.length || 0}</Text>+ <Text><Text color="cyan">Members:</Text> {members.length}</Text>+ </Box>++ {members.length > 0 && (+ <Box flexDirection="column">+ <Box marginTop={1}>+ <Text bold>Members:</Text>+ </Box>+ <Table+ data={members}+ columns={[+ { key: 'role', header: 'Role', width: 10 },+ {+ key: 'email',+ header: 'Email',+ width: 35,+ render: (m) => m.user?.email || 'N/A'+ },+ {+ key: 'confirmed',+ header: 'Confirmed',+ width: 12,+ render: (m) => m.confirmed ? 'Yes' : 'No'+ },+ ]}+ />+ </Box>+ )}++ <Box marginTop={1}>+ <Text color="gray">Press ESC to go back to list</Text>+ </Box>+ </Box>+ )+ }++ // List mode+ const orgItems = orgs.map(org => ({+ label: `${org.name} (${org.members?.length || 0} members, ${org.projects?.length || 0} projects)`,+ value: org.id,+ }))++ return (+ <Box flexDirection="column">+ <Text bold color="yellow">π’ Organizations</Text>++ <Box marginBottom={1}>+ <Text color="gray">+ Page {page + 1} | Press S to search | β/β to navigate pages+ </Text>+ </Box>++ {orgs.length === 0 ? (+ <Text color="gray">No organizations found</Text>+ ) : (+ <Box flexDirection="column">+ <Box marginBottom={1}>+ <Text color="gray">Select an organization to view details:</Text>+ </Box>+ <SelectInput items={orgItems} onSelect={handleSelectOrg} />+ </Box>+ )}+ </Box>+ )+}diff --git a/admin/src/commands/ProjectsCommand.tsx b/admin/src/commands/ProjectsCommand.tsxnew file mode 100644index 000000000..5f8121d53--- /dev/null+++ b/admin/src/commands/ProjectsCommand.tsx@@ -0,0 +1,220 @@+import React, { useState, useEffect } from 'react'+import { Box, Text, useInput } from 'ink'+import TextInput from 'ink-text-input'+import SelectInput from 'ink-select-input'+import { Spinner } from '../components/Spinner.js'+import { AppDataSource, Project } from '../db/mysql.js'+import { getProjectEventCount } from '../db/clickhouse.js'++interface ProjectsCommandProps {+ onBack: () => void+}++type Mode = 'list' | 'search' | 'detail'++export function ProjectsCommand({ onBack }: ProjectsCommandProps) {+ const [mode, setMode] = useState<Mode>('list')+ const [loading, setLoading] = useState(false)+ const [projects, setProjects] = useState<Project[]>([])+ const [selectedProject, setSelectedProject] = useState<Project | null>(null)+ const [eventCount, setEventCount] = useState<number>(0)+ const [searchQuery, setSearchQuery] = useState('')+ const [error, setError] = useState<string | null>(null)+ const [page, setPage] = useState(0)+ const [filter, setFilter] = useState<'all' | 'active' | 'archived'>('all')+ const pageSize = 10++ useInput((input, key) => {+ if (key.escape) {+ if (mode === 'detail') {+ setMode('list')+ setSelectedProject(null)+ } else {+ onBack()+ }+ }+ if (input === 's' && mode === 'list') {+ setMode('search')+ }+ if (input === 'f' && mode === 'list') {+ setFilter(f => f === 'all' ? 'active' : f === 'active' ? 'archived' : 'all')+ }+ if (key.leftArrow && page > 0) {+ setPage(p => p - 1)+ }+ if (key.rightArrow && projects.length === pageSize) {+ setPage(p => p + 1)+ }+ })++ useEffect(() => {+ if (mode === 'list') {+ loadProjects()+ }+ }, [mode, page, filter])++ async function loadProjects(search?: string) {+ setLoading(true)+ setError(null)+ try {+ const repo = AppDataSource.getRepository(Project)+ let query = repo.createQueryBuilder('project')+ .leftJoinAndSelect('project.admin', 'admin')+ .leftJoinAndSelect('project.organisation', 'organisation')+ .orderBy('project.created', 'DESC')+ .skip(page * pageSize)+ .take(pageSize)++ if (filter === 'active') {+ query = query.andWhere('project.isArchived = :archived', { archived: false })+ } else if (filter === 'archived') {+ query = query.andWhere('project.isArchived = :archived', { archived: true })+ }++ if (search) {+ const searchLower = search.toLowerCase();+ query = query.andWhere(+ '(LOWER(project.name) LIKE :search OR LOWER(project.id) LIKE :search)',+ { search: `%${searchLower}%` }+ );+ }++ const result = await query.getMany()+ setProjects(result)+ } catch (err) {+ setError(err instanceof Error ? err.message : 'Failed to load projects')+ } finally {+ setLoading(false)+ }+ }++ async function loadProjectDetails(project: Project) {+ setLoading(true)+ try {+ const count = await getProjectEventCount(project.id)+ setEventCount(count)+ setSelectedProject(project)+ setMode('detail')+ } catch (err) {+ setError(err instanceof Error ? err.message : 'Failed to load project details')+ } finally {+ setLoading(false)+ }+ }++ const handleSearch = () => {+ if (searchQuery.trim()) {+ loadProjects(searchQuery.trim())+ setMode('list')+ }+ }++ const handleSelectProject = (item: { value: string }) => {+ const project = projects.find(p => p.id === item.value)+ if (project) {+ loadProjectDetails(project)+ }+ }++ if (loading) {+ return <Spinner text="Loading projects..." />+ }++ if (error) {+ return (+ <Box flexDirection="column">+ <Text color="red">Error: {error}</Text>+ <Text color="gray">Press ESC to go back</Text>+ </Box>+ )+ }++ if (mode === 'search') {+ return (+ <Box flexDirection="column">+ <Text bold color="yellow">π Search Projects</Text>+ <Box marginTop={1}>+ <Text>Search: </Text>+ <TextInput+ value={searchQuery}+ onChange={setSearchQuery}+ onSubmit={handleSearch}+ placeholder="Enter name or ID..."+ />+ </Box>+ <Box marginTop={1}>+ <Text color="gray">Press Enter to search, ESC to cancel</Text>+ </Box>+ </Box>+ )+ }++ if (mode === 'detail' && selectedProject) {+ return (+ <Box flexDirection="column">+ <Text bold color="yellow">π Project Details</Text>++ <Box flexDirection="column" marginTop={1}>+ <Text><Text color="cyan">ID:</Text> {selectedProject.id}</Text>+ <Text><Text color="cyan">Name:</Text> {selectedProject.name}</Text>+ <Text>+ <Text color="cyan">Status:</Text>{' '}+ <Text color={selectedProject.active ? 'green' : 'red'}>+ {selectedProject.active ? 'Active' : 'Inactive'}+ </Text>+ {selectedProject.isArchived && <Text color="yellow"> (Archived)</Text>}+ </Text>+ <Text><Text color="cyan">Public:</Text> {selectedProject.public ? 'Yes' : 'No'}</Text>+ <Text><Text color="cyan">Created:</Text> {new Date(selectedProject.created).toLocaleString()}</Text>+ <Text><Text color="cyan">Origins:</Text> {selectedProject.origins?.join(', ') || 'None'}</Text>+ <Text><Text color="cyan">Bots Protection:</Text> {selectedProject.botsProtectionLevel}</Text>+ <Text>+ <Text color="cyan">Owner:</Text>{' '}+ {selectedProject.admin?.email || 'N/A'}+ </Text>+ <Text>+ <Text color="cyan">Organization:</Text>{' '}+ {selectedProject.organisation?.name || 'None'}+ </Text>+ <Text>+ <Text color="cyan">Total Events:</Text>{' '}+ <Text color="green" bold>{eventCount.toLocaleString()}</Text>+ </Text>+ </Box>++ <Box marginTop={1}>+ <Text color="gray">Press ESC to go back to list</Text>+ </Box>+ </Box>+ )+ }++ // List mode+ const projectItems = projects.map(project => ({+ label: `[${project.id}] ${project.name} ${project.isArchived ? '(archived)' : ''}`,+ value: project.id,+ }))++ return (+ <Box flexDirection="column">+ <Text bold color="yellow">π Projects</Text>++ <Box marginBottom={1}>+ <Text color="gray">+ Page {page + 1} | Filter: {filter} | Press S to search | F to filter | β/β to navigate+ </Text>+ </Box>++ {projects.length === 0 ? (+ <Text color="gray">No projects found</Text>+ ) : (+ <Box flexDirection="column">+ <Box marginBottom={1}>+ <Text color="gray">Select a project to view details:</Text>+ </Box>+ <SelectInput items={projectItems} onSelect={handleSelectProject} />+ </Box>+ )}+ </Box>+ )+}diff --git a/admin/src/commands/StatsCommand.tsx b/admin/src/commands/StatsCommand.tsxnew file mode 100644index 000000000..22878c3ad--- /dev/null+++ b/admin/src/commands/StatsCommand.tsx@@ -0,0 +1,146 @@+import React, { useState, useEffect } from 'react'+import { Box, Text } from 'ink'+import { Spinner } from '../components/Spinner.js'+import { Table } from '../components/Table.js'+import { getClickHouseStats, ClickHouseStats, TableStats } from '../db/clickhouse.js'++interface StatsCommandProps {+ onBack: () => void+}++const TABLE_DESCRIPTIONS: Record<string, string> = {+ analytics: 'Page views & sessions',+ customEV: 'Custom events',+ performance: 'Performance metrics',+ errors: 'Error tracking',+ captcha: 'CAPTCHA events',+ sessions: 'Session data',+ revenue: 'Revenue data',+ feature_flag_evaluations: 'Feature flags',+ experiment_exposures: 'Experiments',+ error_statuses: 'Error statuses',+}++function formatNumber(num: number): string {+ if (num >= 1_000_000_000) {+ return `${(num / 1_000_000_000).toFixed(2)}B`+ }+ if (num >= 1_000_000) {+ return `${(num / 1_000_000).toFixed(2)}M`+ }+ if (num >= 1_000) {+ return `${(num / 1_000).toFixed(2)}K`+ }+ return num.toString()+}++export function StatsCommand({ onBack }: StatsCommandProps) {+ const [loading, setLoading] = useState(true)+ const [stats, setStats] = useState<ClickHouseStats | null>(null)+ const [error, setError] = useState<string | null>(null)++ useEffect(() => {+ async function load() {+ try {+ const result = await getClickHouseStats()+ setStats(result)+ } catch (err) {+ setError(err instanceof Error ? err.message : 'Failed to load ClickHouse stats')+ } finally {+ setLoading(false)+ }+ }+ load()+ }, [])++ if (loading) {+ return <Spinner text="Fetching ClickHouse statistics..." />+ }++ if (error) {+ return (+ <Box flexDirection="column">+ <Text color="red">Error: {error}</Text>+ <Text color="gray">Press ESC to go back</Text>+ </Box>+ )+ }++ if (!stats) {+ return <Text color="gray">No statistics available</Text>+ }++ const totalBytes = stats.tables.reduce((sum, t) => sum + t.bytes, 0)+ const formatBytes = (bytes: number): string => {+ if (bytes === 0) return '0 B'+ const k = 1024+ const sizes = ['B', 'KB', 'MB', 'GB', 'TB']+ const i = Math.floor(Math.log(bytes) / Math.log(k))+ return `${parseFloat((bytes / Math.pow(k, i)).toFixed(2))} ${sizes[i]}`+ }++ const filteredTables = stats.tables.filter(t => t.rows > 0 || t.bytes > 0)+ const emptyTables = stats.tables.filter(t => t.rows === 0 && t.bytes === 0)++ return (+ <Box flexDirection="column">+ <Text bold color="yellow">π ClickHouse Statistics</Text>++ {/* Summary */}+ <Box flexDirection="column" marginTop={1} marginBottom={1} paddingX={1}>+ <Text>+ <Text color="cyan" bold>Total Events:</Text>{' '}+ <Text color="green" bold>{stats.totalEvents.toLocaleString()}</Text>+ <Text color="gray"> ({formatNumber(stats.totalEvents)})</Text>+ </Text>+ <Text>+ <Text color="cyan" bold>Total Size:</Text>{' '}+ <Text color="green" bold>{formatBytes(totalBytes)}</Text>+ </Text>+ </Box>++ {/* Per-table breakdown */}+ <Box marginBottom={1}>+ <Text bold>Table Breakdown:</Text>+ </Box>++ <Table<TableStats>+ data={filteredTables}+ columns={[+ {+ key: 'table',+ header: 'Table',+ width: 28,+ },+ {+ key: 'description',+ header: 'Description',+ width: 22,+ render: (t) => TABLE_DESCRIPTIONS[t.table] || ''+ },+ {+ key: 'rows',+ header: 'Rows',+ width: 15,+ render: (t) => t.rows.toLocaleString()+ },+ {+ key: 'size',+ header: 'Size',+ width: 12,+ render: (t) => t.bytesFormatted+ },+ ]}+ />++ {/* Tables with no data */}+ {emptyTables.length > 0 && (+ <Box marginTop={1}>+ <Text color="gray">+ Empty tables: {emptyTables.map(t => t.table).join(', ')}+ </Text>+ </Box>+ )}+ </Box>+ )+}diff --git a/admin/src/commands/UsersCommand.tsx b/admin/src/commands/UsersCommand.tsxnew file mode 100644index 000000000..ffab7c972--- /dev/null+++ b/admin/src/commands/UsersCommand.tsx@@ -0,0 +1,282 @@+import React, { useState, useEffect } from 'react'+import { Box, Text, useInput } from 'ink'+import TextInput from 'ink-text-input'+import SelectInput from 'ink-select-input'+import { Spinner } from '../components/Spinner.js'+import { Table } from '../components/Table.js'+import { AppDataSource, User, Project, OrganisationMember } from '../db/mysql.js'++interface UsersCommandProps {+ onBack: () => void+}++type Mode = 'list' | 'search' | 'detail'++export function UsersCommand({ onBack }: UsersCommandProps) {+ const [mode, setMode] = useState<Mode>('list')+ const [loading, setLoading] = useState(false)+ const [users, setUsers] = useState<User[]>([])+ const [selectedUser, setSelectedUser] = useState<User | null>(null)+ const [userProjects, setUserProjects] = useState<Project[]>([])+ const [userOrgs, setUserOrgs] = useState<OrganisationMember[]>([])+ const [searchQuery, setSearchQuery] = useState('')+ const [error, setError] = useState<string | null>(null)+ const [page, setPage] = useState(0)+ const [filter, setFilter] = useState<'all' | 'active' | 'inactive'>('all')+ const pageSize = 10++ useInput((input, key) => {+ if (key.escape) {+ if (mode === 'detail') {+ setMode('list')+ setSelectedUser(null)+ } else {+ onBack()+ }+ }+ if (input === 's' && mode === 'list') {+ setMode('search')+ }+ if (input === 'f' && mode === 'list') {+ setFilter(f => f === 'all' ? 'active' : f === 'active' ? 'inactive' : 'all')+ }+ if (key.leftArrow && page > 0) {+ setPage(p => p - 1)+ }+ if (key.rightArrow && users.length === pageSize) {+ setPage(p => p + 1)+ }+ })++ useEffect(() => {+ if (mode === 'list') {+ loadUsers()+ }+ }, [mode, page, filter])++ async function loadUsers(search?: string) {+ setLoading(true)+ setError(null)+ try {+ const repo = AppDataSource.getRepository(User)+ let query = repo.createQueryBuilder('user')+ .orderBy('user.created', 'DESC')+ .skip(page * pageSize)+ .take(pageSize)++ if (filter === 'active') {+ query = query.andWhere('user.isActive = :active', { active: true })+ } else if (filter === 'inactive') {+ query = query.andWhere('user.isActive = :active', { active: false })+ }++ if (search) {+ const searchLower = search.toLowerCase();+ query = query.andWhere(+ '(LOWER(user.email) LIKE :search OR LOWER(user.id) LIKE :search OR LOWER(user.nickname) LIKE :search)',+ { search: `%${searchLower}%` }+ );+ }++ const result = await query.getMany()+ setUsers(result)+ } catch (err) {+ setError(err instanceof Error ? err.message : 'Failed to load users')+ } finally {+ setLoading(false)+ }+ }++ async function loadUserDetails(user: User) {+ setLoading(true)+ try {+ // Load user's projects+ const projectRepo = AppDataSource.getRepository(Project)+ const projects = await projectRepo.find({+ where: { admin: { id: user.id } },+ order: { created: 'DESC' },+ take: 10,+ })+ setUserProjects(projects)++ // Load user's organizations+ const memberRepo = AppDataSource.getRepository(OrganisationMember)+ const orgs = await memberRepo.find({+ where: { user: { id: user.id } },+ relations: ['organisation'],+ })+ setUserOrgs(orgs)++ setSelectedUser(user)+ setMode('detail')+ } catch (err) {+ setError(err instanceof Error ? err.message : 'Failed to load user details')+ } finally {+ setLoading(false)+ }+ }++ const handleSearch = () => {+ if (searchQuery.trim()) {+ loadUsers(searchQuery.trim())+ setMode('list')+ }+ }++ const handleSelectUser = (item: { value: string }) => {+ const user = users.find(u => u.id === item.value)+ if (user) {+ loadUserDetails(user)+ }+ }++ if (loading) {+ return <Spinner text="Loading users..." />+ }++ if (error) {+ return (+ <Box flexDirection="column">+ <Text color="red">Error: {error}</Text>+ <Text color="gray">Press ESC to go back</Text>+ </Box>+ )+ }++ if (mode === 'search') {+ return (+ <Box flexDirection="column">+ <Text bold color="yellow">π Search Users</Text>+ <Box marginTop={1}>+ <Text>Search: </Text>+ <TextInput+ value={searchQuery}+ onChange={setSearchQuery}+ onSubmit={handleSearch}+ placeholder="Enter email or ID..."+ />+ </Box>+ <Box marginTop={1}>+ <Text color="gray">Press Enter to search, ESC to cancel</Text>+ </Box>+ </Box>+ )+ }++ if (mode === 'detail' && selectedUser) {+ return (+ <Box flexDirection="column">+ <Text bold color="yellow">π€ User Details</Text>++ <Box flexDirection="column" marginTop={1} marginBottom={1}>+ <Text><Text color="cyan">ID:</Text> {selectedUser.id}</Text>+ <Text><Text color="cyan">Email:</Text> {selectedUser.email}</Text>+ <Text><Text color="cyan">Nickname:</Text> {selectedUser.nickname || 'N/A'}</Text>+ <Text>+ <Text color="cyan">Status:</Text>{' '}+ <Text color={selectedUser.isActive ? 'green' : 'red'}>+ {selectedUser.isActive ? 'Active' : 'Inactive'}+ </Text>+ </Text>+ <Text><Text color="cyan">Plan:</Text> {selectedUser.planCode}</Text>+ <Text><Text color="cyan">Created:</Text> {new Date(selectedUser.created).toLocaleString()}</Text>+ <Text><Text color="cyan">2FA Enabled:</Text> {selectedUser.isTwoFactorAuthenticationEnabled ? 'Yes' : 'No'}</Text>+ <Text><Text color="cyan">Max Projects:</Text> {selectedUser.maxProjects}</Text>+ <Text><Text color="cyan">API Key:</Text> {selectedUser.apiKey ? 'Set' : 'Not set'}</Text>+ {selectedUser.dashboardBlockReason && (+ <Text>+ <Text color="cyan">Block Reason:</Text>{' '}+ <Text color="red">{selectedUser.dashboardBlockReason}</Text>+ </Text>+ )}+ {selectedUser.trialEndDate && (+ <Text>+ <Text color="cyan">Trial Ends:</Text>{' '}+ {new Date(selectedUser.trialEndDate).toLocaleString()}+ </Text>+ )}+ </Box>++ {userProjects.length > 0 && (+ <Box flexDirection="column">+ <Box marginTop={1}>+ <Text bold>Projects ({userProjects.length}):</Text>+ </Box>+ <Table+ data={userProjects}+ columns={[+ { key: 'id', header: 'ID', width: 14 },+ { key: 'name', header: 'Name', width: 25 },+ {+ key: 'active',+ header: 'Status',+ width: 10,+ render: (p) => p.active ? 'Active' : 'Inactive'+ },+ ]}+ />+ </Box>+ )}++ {userOrgs.length > 0 && (+ <Box flexDirection="column">+ <Box marginTop={1}>+ <Text bold>Organizations ({userOrgs.length}):</Text>+ </Box>+ <Table+ data={userOrgs}+ columns={[+ {+ key: 'name',+ header: 'Name',+ width: 25,+ render: (m) => m.organisation?.name || 'N/A'+ },+ { key: 'role', header: 'Role', width: 10 },+ {+ key: 'confirmed',+ header: 'Confirmed',+ width: 12,+ render: (m) => m.confirmed ? 'Yes' : 'No'+ },+ ]}+ />+ </Box>+ )}++ <Box marginTop={1}>+ <Text color="gray">Press ESC to go back to list</Text>+ </Box>+ </Box>+ )+ }++ // List mode+ const userItems = users.map(user => ({+ label: `${user.email} (${user.planCode}) ${user.isActive ? '' : '[inactive]'}`,+ value: user.id,+ }))++ return (+ <Box flexDirection="column">+ <Text bold color="yellow">π₯ Users</Text>++ <Box marginBottom={1}>+ <Text color="gray">+ Page {page + 1} | Filter: {filter} | Press S to search | F to filter | β/β to navigate+ </Text>+ </Box>++ {users.length === 0 ? (+ <Text color="gray">No users found</Text>+ ) : (+ <Box flexDirection="column">+ <Box marginBottom={1}>+ <Text color="gray">Select a user to view details:</Text>+ </Box>+ <SelectInput items={userItems} onSelect={handleSelectUser} />+ </Box>+ )}+ </Box>+ )+}diff --git a/admin/src/components/App.tsx b/admin/src/components/App.tsxnew file mode 100644index 000000000..ee2b1d2bb--- /dev/null+++ b/admin/src/components/App.tsx@@ -0,0 +1,161 @@+import React, { useState, useEffect } from "react";+import { Box, Text, useApp, useInput } from "ink";+import SelectInput from "ink-select-input";+import { Spinner } from "./Spinner.js";+import { OrgsCommand } from "../commands/OrgsCommand.js";+import { ProjectsCommand } from "../commands/ProjectsCommand.js";+import { UsersCommand } from "../commands/UsersCommand.js";+import { StatsCommand } from "../commands/StatsCommand.js";+import { initializeDatabase, testMySQLConnection } from "../db/mysql.js";+import { testClickHouseConnection } from "../db/clickhouse.js";++type View = "menu" | "orgs" | "projects" | "users" | "stats";++const menuItems = [+ { label: "π ClickHouse Stats", value: "stats" as const },+ { label: "π’ Organizations", value: "orgs" as const },+ { label: "π Projects", value: "projects" as const },+ { label: "π₯ Users", value: "users" as const },+ { label: "β Exit", value: "exit" as const },+];++export function App() {+ const { exit } = useApp();+ const [view, setView] = useState<View>("menu");+ const [loading, setLoading] = useState(true);+ const [mysqlConnected, setMysqlConnected] = useState(false);+ const [clickhouseConnected, setClickhouseConnected] = useState(false);+ const [error, setError] = useState<string | null>(null);++ useEffect(() => {+ async function init() {+ try {+ // Test connections in parallel+ const [mysqlOk, chOk] = await Promise.all([+ testMySQLConnection(),+ testClickHouseConnection(),+ ]);++ setMysqlConnected(mysqlOk);+ setClickhouseConnected(chOk);++ if (mysqlOk) {+ await initializeDatabase();+ }++ if (!mysqlOk && !chOk) {+ setError(+ "Could not connect to any database. Check your .env configuration."+ );+ }+ } catch (err) {+ setError(err instanceof Error ? err.message : "Connection failed");+ } finally {+ setLoading(false);+ }+ }+ init();+ }, []);++ useInput((input, key) => {+ if (key.escape || (input === "q" && view !== "menu")) {+ if (view === "menu") {+ exit();+ } else {+ setView("menu");+ }+ }+ });++ const handleSelect = (item: { value: string }) => {+ if (item.value === "exit") {+ exit();+ return;+ }+ setView(item.value as View);+ };++ if (loading) {+ return (+ <Box flexDirection="column" padding={1}>+ <Text bold color="cyan">+ Swetrix Admin CLI+ </Text>+ <Box marginTop={1}>+ <Spinner text="Connecting to databases..." />+ </Box>+ </Box>+ );+ }++ if (error) {+ return (+ <Box flexDirection="column" padding={1}>+ <Text bold color="red">+ Error+ </Text>+ <Text color="red">{error}</Text>+ <Box marginTop={1}>+ <Text color="gray">+ Make sure you have a .env file in the backend directory with the+ correct database credentials.+ </Text>+ </Box>+ </Box>+ );+ }++ return (+ <Box flexDirection="column" padding={1}>+ <Box marginBottom={1}>+ <Text bold color="cyan">+ π§ Swetrix Admin CLI+ </Text>+ </Box>++ {/* Connection status */}+ <Box marginBottom={1} flexDirection="column">+ <Text>+ <Text color={mysqlConnected ? "green" : "red"}>+ {mysqlConnected ? "β" : "β"}+ </Text>+ {" MySQL: "}+ <Text color={mysqlConnected ? "green" : "red"}>+ {mysqlConnected ? "Connected" : "Disconnected"}+ </Text>+ </Text>+ <Text>+ <Text color={clickhouseConnected ? "green" : "red"}>+ {clickhouseConnected ? "β" : "β"}+ </Text>+ {" ClickHouse: "}+ <Text color={clickhouseConnected ? "green" : "red"}>+ {clickhouseConnected ? "Connected" : "Disconnected"}+ </Text>+ </Text>+ </Box>++ {view === "menu" && (+ <Box flexDirection="column">+ <Box marginBottom={1}>+ <Text color="gray">Select an option:</Text>+ </Box>+ <SelectInput items={menuItems} onSelect={handleSelect} />+ </Box>+ )}++ {view === "orgs" && <OrgsCommand onBack={() => setView("menu")} />}+ {view === "projects" && (+ <ProjectsCommand onBack={() => setView("menu")} />+ )}+ {view === "users" && <UsersCommand onBack={() => setView("menu")} />}+ {view === "stats" && <StatsCommand onBack={() => setView("menu")} />}++ {view !== "menu" && (+ <Box marginTop={1}>+ <Text color="gray">Press ESC or Q to go back</Text>+ </Box>+ )}+ </Box>+ );+}diff --git a/admin/src/components/Spinner.tsx b/admin/src/components/Spinner.tsxnew file mode 100644index 000000000..fc418672b--- /dev/null+++ b/admin/src/components/Spinner.tsx@@ -0,0 +1,18 @@+import React from 'react'+import { Text } from 'ink'+import InkSpinner from 'ink-spinner'++interface SpinnerProps {+ text?: string+}++export function Spinner({ text = 'Loading...' }: SpinnerProps) {+ return (+ <Text>+ <Text color="cyan">+ <InkSpinner type="dots" />+ </Text>+ {' '}{text}+ </Text>+ )+}diff --git a/admin/src/components/Table.tsx b/admin/src/components/Table.tsxnew file mode 100644index 000000000..de7ac1cc2--- /dev/null+++ b/admin/src/components/Table.tsx@@ -0,0 +1,79 @@+import React from 'react'+import { Text, Box } from 'ink'++interface Column<T> {+ key: string+ header: string+ width?: number+ render?: (row: T) => string+}++interface TableProps<T> {+ data: T[]+ columns: Column<T>[]+}++export function Table<T>({ data, columns }: TableProps<T>) {+ // Calculate column widths+ const columnWidths = columns.map(col => {+ if (col.width) return col.width+ const headerLen = col.header.length+ const maxDataLen = data.reduce((max, row) => {+ const value = col.render+ ? col.render(row)+ : String((row as Record<string, unknown>)[col.key] ?? '')+ return Math.max(max, value.length)+ }, 0)+ return Math.max(headerLen, maxDataLen) + 2+ })++ const totalWidth = columnWidths.reduce((sum, w) => sum + w, 0) + columns.length + 1++ const renderSeparator = (char: string, leftCorner: string, midCorner: string, rightCorner: string) => {+ const line = columnWidths.map(w => char.repeat(w)).join(midCorner)+ return `${leftCorner}${line}${rightCorner}`+ }++ const renderRow = (cells: string[]) => {+ const paddedCells = cells.map((cell, i) => {+ const width = columnWidths[i]+ return ` ${cell.padEnd(width - 1)}`+ })+ return `β${paddedCells.join('β')}β`+ }++ return (+ <Box flexDirection="column">+ {/* Top border */}+ <Text color="gray">{renderSeparator('β', 'β', 'β¬', 'β')}</Text>++ {/* Header */}+ <Text color="cyan" bold>+ {renderRow(columns.map(c => c.header))}+ </Text>++ {/* Header separator */}+ <Text color="gray">{renderSeparator('β', 'β', 'βΌ', 'β€')}</Text>++ {/* Data rows */}+ {data.length === 0 ? (+ <Text color="gray">+ {'β'}{' No data found'.padEnd(totalWidth - 2)}{'β'}+ </Text>+ ) : (+ data.map((row, i) => (+ <Text key={i}>+ {renderRow(columns.map(col => {+ if (col.render) return col.render(row)+ const value = (row as Record<string, unknown>)[col.key]+ return String(value ?? '')+ }))}+ </Text>+ ))+ )}++ {/* Bottom border */}+ <Text color="gray">{renderSeparator('β', 'β', 'β΄', 'β')}</Text>+ </Box>+ )+}diff --git a/admin/src/db/clickhouse.ts b/admin/src/db/clickhouse.tsnew file mode 100644index 000000000..065d99e28--- /dev/null+++ b/admin/src/db/clickhouse.ts@@ -0,0 +1,143 @@+import { createClient, ClickHouseClient } from "@clickhouse/client";++let clickhouse: ClickHouseClient | null = null;++function getClient(): ClickHouseClient {+ if (!clickhouse) {+ clickhouse = createClient({+ url: `${process.env.CLICKHOUSE_HOST}:${process.env.CLICKHOUSE_PORT}`,+ username: process.env.CLICKHOUSE_USER,+ password: process.env.CLICKHOUSE_PASSWORD,+ database: process.env.CLICKHOUSE_DATABASE,+ request_timeout: 60000,+ clickhouse_settings: {+ connect_timeout: 60000,+ date_time_output_format: "iso",+ output_format_json_quote_64bit_integers: 0,+ },+ });+ }+ return clickhouse;+}++export const dbName = process.env.CLICKHOUSE_DATABASE || "analytics";++export interface TableStats {+ table: string;+ rows: number;+ bytes: number;+ bytesFormatted: string;+}++export interface ClickHouseStats {+ totalEvents: number;+ tables: TableStats[];+}++function formatBytes(bytes: number): string {+ if (bytes === 0) return "0 B";+ const k = 1024;+ const sizes = ["B", "KB", "MB", "GB", "TB"];+ const i = Math.floor(Math.log(bytes) / Math.log(k));+ return `${parseFloat((bytes / Math.pow(k, i)).toFixed(2))} ${sizes[i]}`;+}++export async function getClickHouseStats(): Promise<ClickHouseStats> {+ const client = getClient();+ const database = process.env.CLICKHOUSE_DATABASE || "analytics";++ const tables = [+ "analytics",+ "customEV",+ "performance",+ "errors",+ "captcha",+ "sessions",+ "revenue",+ "feature_flag_evaluations",+ "experiment_exposures",+ "error_statuses",+ ];++ const tableStats: TableStats[] = [];+ let totalEvents = 0;++ for (const table of tables) {+ try {+ // Get row count+ const countResult = await client.query({+ query: `SELECT count() as count FROM ${database}.${table}`,+ format: "JSONEachRow",+ });+ const countData = await countResult.json<{ count: number }>();+ const countArray = countData as unknown as { count: number }[];+ const rows = countArray[0]?.count || 0;++ // Get table size+ const sizeResult = await client.query({+ query: `+ SELECT+ sum(bytes) as bytes+ FROM system.parts+ WHERE database = '${database}' AND table = '${table}' AND active = 1+ `,+ format: "JSONEachRow",+ });+ const sizeData = await sizeResult.json<{ bytes: number }>();+ const sizeArray = sizeData as unknown as { bytes: number }[];+ const bytes = sizeArray[0]?.bytes || 0;++ tableStats.push({+ table,+ rows,+ bytes,+ bytesFormatted: formatBytes(bytes),+ });++ totalEvents += rows;+ } catch {+ // Table might not exist, skip it+ tableStats.push({+ table,+ rows: 0,+ bytes: 0,+ bytesFormatted: "0 B",+ });+ }+ }++ return {+ totalEvents,+ tables: tableStats,+ };+}++export async function getProjectEventCount(pid: string): Promise<number> {+ const client = getClient();+ const database = process.env.CLICKHOUSE_DATABASE || "analytics";++ try {+ const result = await client.query({+ query: `SELECT count() as count FROM ${database}.analytics WHERE pid = {pid:String}`,+ query_params: { pid },+ format: "JSONEachRow",+ });+ const data = await result.json<{ count: number }>();+ const dataArray = data as unknown as { count: number }[];+ return dataArray[0]?.count || 0;+ } catch {+ return 0;+ }+}++export async function testClickHouseConnection(): Promise<boolean> {+ try {+ const client = getClient();+ const result = await client.ping();+ return result.success;+ } catch {+ return false;+ }+}++export { getClient as clickhouse };diff --git a/admin/src/db/mysql.ts b/admin/src/db/mysql.tsnew file mode 100644index 000000000..bbc6004b7--- /dev/null+++ b/admin/src/db/mysql.ts@@ -0,0 +1,58 @@+import "reflect-metadata";+import { DataSource } from "typeorm";+import { User } from "../entities/user.entity.js";+import { Organisation } from "../entities/organisation.entity.js";+import { OrganisationMember } from "../entities/organisation-member.entity.js";+import { Project } from "../entities/project.entity.js";++let dataSource: DataSource | null = null;++function getDataSource(): DataSource {+ if (!dataSource) {+ dataSource = new DataSource({+ type: "mysql",+ host: process.env.MYSQL_HOST,+ port: 3306,+ username: process.env.MYSQL_USER,+ password: process.env.MYSQL_ROOT_PASSWORD,+ database: process.env.MYSQL_DATABASE,+ synchronize: false,+ entities: [User, Organisation, OrganisationMember, Project],+ });+ }+ return dataSource;+}++let initialized = false;++export async function initializeDatabase(): Promise<DataSource> {+ const ds = getDataSource();+ if (!initialized) {+ await ds.initialize();+ initialized = true;+ }+ return ds;+}++export async function testMySQLConnection(): Promise<boolean> {+ try {+ await initializeDatabase();+ return getDataSource().isInitialized;+ } catch {+ return false;+ }+}++// Proxy object that lazily gets the DataSource+export const AppDataSource = new Proxy({} as DataSource, {+ get(_target, prop) {+ const ds = getDataSource();+ const value = ds[prop as keyof DataSource];+ if (typeof value === "function") {+ return value.bind(ds);+ }+ return value;+ },+});++export { User, Organisation, OrganisationMember, Project };diff --git a/admin/src/entities/organisation-member.entity.ts b/admin/src/entities/organisation-member.entity.tsnew file mode 100644index 000000000..98589a8b2--- /dev/null+++ b/admin/src/entities/organisation-member.entity.ts@@ -0,0 +1,45 @@+import "reflect-metadata";+import {+ Entity,+ Column,+ ManyToOne,+ PrimaryGeneratedColumn,+} from "typeorm";+import { User } from './user.entity.js'+import { Organisation } from './organisation.entity.js'++export enum OrganisationRole {+ owner = 'owner',+ admin = 'admin',+ viewer = 'viewer',+}++@Entity()+export class OrganisationMember {+ @PrimaryGeneratedColumn('uuid')+ id: string++ @ManyToOne(() => User, user => user.organisationMemberships)+ user: User++ @ManyToOne(() => Organisation, org => org.members)+ organisation: Organisation++ @Column({+ type: 'enum',+ enum: OrganisationRole,+ })+ role: OrganisationRole++ @Column({+ type: "boolean",+ default: false,+ })+ confirmed: boolean++ @Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })+ created: Date++ @Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })+ updated: Date+}diff --git a/admin/src/entities/organisation.entity.ts b/admin/src/entities/organisation.entity.tsnew file mode 100644index 000000000..18d028549--- /dev/null+++ b/admin/src/entities/organisation.entity.ts@@ -0,0 +1,30 @@+import "reflect-metadata";+import {+ Entity,+ Column,+ PrimaryGeneratedColumn,+ OneToMany,+} from "typeorm";+import { Project } from './project.entity.js'+import { OrganisationMember } from './organisation-member.entity.js'++@Entity()+export class Organisation {+ @PrimaryGeneratedColumn('uuid')+ id: string++ @Column('varchar', { length: 50 })+ name: string++ @OneToMany(() => OrganisationMember, member => member.organisation)+ members: OrganisationMember[]++ @OneToMany(() => Project, project => project.organisation)+ projects: Project[]++ @Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })+ created: Date++ @Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })+ updated: Date+}diff --git a/admin/src/entities/project.entity.ts b/admin/src/entities/project.entity.tsnew file mode 100644index 000000000..2582f1b5c--- /dev/null+++ b/admin/src/entities/project.entity.ts@@ -0,0 +1,58 @@+import "reflect-metadata";+import { Entity, Column, PrimaryColumn, ManyToOne } from "typeorm";+import { User } from './user.entity.js'+import { Organisation } from './organisation.entity.js'++export enum BotsProtectionLevel {+ OFF = 'off',+ BASIC = 'basic',+}++@Entity()+export class Project {+ @PrimaryColumn('varchar', {+ unique: true,+ length: 12,+ })+ id: string++ @Column('varchar', { length: 50 })+ name: string++ @Column('simple-array')+ origins: string[]++ @Column({+ type: "boolean",+ default: true,+ })+ active: boolean++ @Column({+ type: "boolean",+ default: false,+ })+ public: boolean++ @Column('boolean', { default: false })+ isTransferring: boolean++ @Column({+ type: 'enum',+ enum: BotsProtectionLevel,+ default: BotsProtectionLevel.BASIC,+ })+ botsProtectionLevel: BotsProtectionLevel++ @ManyToOne(() => User, user => user.projects)+ admin: User++ @Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })+ created: Date++ @Column('boolean', { default: false })+ isArchived: boolean++ @ManyToOne(() => Organisation, org => org.projects, { nullable: true })+ organisation: Organisation | null+}diff --git a/admin/src/entities/user.entity.ts b/admin/src/entities/user.entity.tsnew file mode 100644index 000000000..78cf5ccfc--- /dev/null+++ b/admin/src/entities/user.entity.ts@@ -0,0 +1,96 @@+import "reflect-metadata";+import {+ Entity,+ Column,+ PrimaryGeneratedColumn,+ OneToMany,+} from "typeorm";+import { Project } from './project.entity.js'+import { OrganisationMember } from './organisation-member.entity.js'++export enum PlanCode {+ none = 'none',+ free = 'free',+ trial = 'trial',+ hobby = 'hobby',+ freelancer = 'freelancer',+ '50k' = '50k',+ '100k' = '100k',+ '200k' = '200k',+ '500k' = '500k',+ startup = 'startup',+ '2m' = '2m',+ enterprise = 'enterprise',+ '10m' = '10m',+ '15m' = '15m',+ '20m' = '20m',+}++export enum DashboardBlockReason {+ 'exceeding_plan_limits' = 'exceeding_plan_limits',+ 'trial_ended' = 'trial_ended',+ 'payment_failed' = 'payment_failed',+ 'subscription_cancelled' = 'subscription_cancelled',+}++@Entity()+export class User {+ @PrimaryGeneratedColumn('uuid')+ id: string++ @Column({+ type: 'enum',+ enum: PlanCode,+ default: PlanCode.trial,+ })+ planCode: PlanCode++ @Column('varchar', { length: 100, nullable: true, default: null })+ nickname: string | null++ @Column('varchar', { length: 254, unique: true })+ email: string++ @Column({ type: "boolean", default: false })+ isActive: boolean++ @Column({ type: 'timestamp', nullable: true })+ trialEndDate: Date | null++ @Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })+ created: Date++ @Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })+ updated: Date++ @Column('int', { default: 50 })+ maxProjects: number++ @Column({+ type: 'enum',+ enum: DashboardBlockReason,+ nullable: true,+ })+ dashboardBlockReason: DashboardBlockReason | null++ @Column({ type: "boolean", default: false })+ isAccountBillingSuspended: boolean++ @Column({+ type: 'varchar',+ length: 36,+ unique: true,+ nullable: true,+ default: null,+ })+ apiKey: string | null++ @Column({ type: "boolean", default: false })+ isTwoFactorAuthenticationEnabled: boolean++ @OneToMany(() => Project, project => project.admin)+ projects: Project[]++ @OneToMany(() => OrganisationMember, membership => membership.user)+ organisationMemberships: OrganisationMember[]+}diff --git a/admin/src/index.tsx b/admin/src/index.tsxnew file mode 100644index 000000000..53a5736fc--- /dev/null+++ b/admin/src/index.tsx@@ -0,0 +1,33 @@+#!/usr/bin/env node+import path from "path";+import { fileURLToPath } from "url";+import fs from "fs";+import { config } from "dotenv";++// Suppress dotenv log messages+process.env.DOTENV_CONFIG_QUIET = "true";++const __dirname = path.dirname(fileURLToPath(import.meta.url));++// Load .env from backend directory if not already loaded (quiet mode)+const backendEnvPath = path.resolve(__dirname, "../../backend/.env");+if (fs.existsSync(backendEnvPath)) {+ config({ path: backendEnvPath, override: false, quiet: true });+}++// Also try local .env+const localEnvPath = path.resolve(__dirname, "../.env");+if (fs.existsSync(localEnvPath)) {+ config({ path: localEnvPath, override: false, quiet: true });+}++import "reflect-metadata";++const { React, render, App } = await (async () => {+ const React = (await import("react")).default;+ const { render } = await import("ink");+ const { App } = await import("./components/App.js");+ return { React, render, App };+})();++render(<App />);diff --git a/admin/tsconfig.json b/admin/tsconfig.jsonnew file mode 100644index 000000000..db3b7420e--- /dev/null+++ b/admin/tsconfig.json@@ -0,0 +1,22 @@+{+ "compilerOptions": {+ "target": "ES2022",+ "module": "NodeNext",+ "moduleResolution": "NodeNext",+ "lib": ["ES2022"],+ "jsx": "react-jsx",+ "strict": true,+ "strictPropertyInitialization": false,+ "experimentalDecorators": true,+ "emitDecoratorMetadata": true,+ "esModuleInterop": true,+ "skipLibCheck": true,+ "forceConsistentCasingInFileNames": true,+ "outDir": "./dist",+ "rootDir": "./src",+ "declaration": true,+ "resolveJsonModule": true+ },+ "include": ["src/**/*"],+ "exclude": ["node_modules", "dist"]+}