diff --git a/cli/desktop-app/.gitignore b/cli/desktop-app/.gitignore index c4ede39c55..78e920ec03 100644 --- a/cli/desktop-app/.gitignore +++ b/cli/desktop-app/.gitignore @@ -1,5 +1,6 @@ # Logs logs +storybook-static *.log npm-debug.log* yarn-debug.log* diff --git a/cli/golem-cli/ts_bridge/base.ts b/cli/golem-cli/ts_bridge/base.ts index f8d70d9de2..06519a854e 100644 --- a/cli/golem-cli/ts_bridge/base.ts +++ b/cli/golem-cli/ts_bridge/base.ts @@ -7,8 +7,9 @@ export type GolemServer = export type AroundInvokeHook = { beforeInvoke: (request: AgentInvocationRequest) => Promise; - afterInvoke: (request: AgentInvocationRequest, result: JsonResult) => Promise; -}; + afterInvoke: (request: AgentInvocationRequest, result: JsonResult) => Promise; + } + ; export type Configuration = { server: GolemServer, diff --git a/sdks/ts/package-lock.json b/sdks/ts/package-lock.json index d6c87896d3..9eb72d82c0 100644 --- a/sdks/ts/package-lock.json +++ b/sdks/ts/package-lock.json @@ -1,2106 +1,2106 @@ { - "name": "golem-agentic", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "golem-agentic", - "devDependencies": { - "@eslint/js": "^9.35.0", - "@typescript-eslint/eslint-plugin": "^8.42.0", - "@typescript-eslint/parser": "^8.42.0", - "eslint": "^9.35.0", - "globals": "^16.3.0", - "pnpm": "^8.10.0", - "prettier": "^3.6.2", - "rollup": "^4.46.2", - "tslib": "^2.8.1", - "typescript": "^5.8.3" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz", - "integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", - "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/config-array": { - "version": "0.21.0", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.0.tgz", - "integrity": "sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/object-schema": "^2.1.6", - "debug": "^4.3.1", - "minimatch": "^3.1.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/config-array/node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/@eslint/config-array/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/@eslint/config-helpers": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.1.tgz", - "integrity": "sha512-xR93k9WhrDYpXHORXpxVL5oHj3Era7wo6k/Wd8/IsQNnZUTzkGS29lyn3nAT05v6ltUuTFVCCYDEGfy2Or/sPA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/core": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.2.tgz", - "integrity": "sha512-78Md3/Rrxh83gCxoUc0EiciuOHsIITzLy53m3d9UyiW8y9Dj2D29FeETqyKA+BRK76tnTp6RXWb3pCay8Oyomg==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", - "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/eslintrc/node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/@eslint/eslintrc/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/@eslint/js": { - "version": "9.36.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.36.0.tgz", - "integrity": "sha512-uhCbYtYynH30iZErszX78U+nR3pJU3RHGQ57NXy5QupD4SBVwDeU8TNBy+MjMngc1UyIW9noKqsRqfjQTBU2dw==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", - "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/plugin-kit": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.5.tgz", - "integrity": "sha512-Z5kJ+wU3oA7MMIqVR9tyZRtjYPr4OC004Q4Rw7pgOKUOKkJfZ3O24nz3WYfGRpMDNmcOi3TwQOmgm7B7Tpii0w==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.15.2", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@humanfs/core": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", - "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node": { - "version": "0.16.7", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz", - "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/core": "^0.19.1", - "@humanwhocodes/retry": "^0.4.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", - "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.52.3.tgz", - "integrity": "sha512-h6cqHGZ6VdnwliFG1NXvMPTy/9PS3h8oLh7ImwR+kl+oYnQizgjxsONmmPSb2C66RksfkfIxEVtDSEcJiO0tqw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.52.3.tgz", - "integrity": "sha512-wd+u7SLT/u6knklV/ifG7gr5Qy4GUbH2hMWcDauPFJzmCZUAJ8L2bTkVXC2niOIxp8lk3iH/QX8kSrUxVZrOVw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.52.3.tgz", - "integrity": "sha512-lj9ViATR1SsqycwFkJCtYfQTheBdvlWJqzqxwc9f2qrcVrQaF/gCuBRTiTolkRWS6KvNxSk4KHZWG7tDktLgjg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.52.3.tgz", - "integrity": "sha512-+Dyo7O1KUmIsbzx1l+4V4tvEVnVQqMOIYtrxK7ncLSknl1xnMHLgn7gddJVrYPNZfEB8CIi3hK8gq8bDhb3h5A==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.52.3.tgz", - "integrity": "sha512-u9Xg2FavYbD30g3DSfNhxgNrxhi6xVG4Y6i9Ur1C7xUuGDW3banRbXj+qgnIrwRN4KeJ396jchwy9bCIzbyBEQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.52.3.tgz", - "integrity": "sha512-5M8kyi/OX96wtD5qJR89a/3x5x8x5inXBZO04JWhkQb2JWavOWfjgkdvUqibGJeNNaz1/Z1PPza5/tAPXICI6A==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.52.3.tgz", - "integrity": "sha512-IoerZJ4l1wRMopEHRKOO16e04iXRDyZFZnNZKrWeNquh5d6bucjezgd+OxG03mOMTnS1x7hilzb3uURPkJ0OfA==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.52.3.tgz", - "integrity": "sha512-ZYdtqgHTDfvrJHSh3W22TvjWxwOgc3ThK/XjgcNGP2DIwFIPeAPNsQxrJO5XqleSlgDux2VAoWQ5iJrtaC1TbA==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.52.3.tgz", - "integrity": "sha512-NcViG7A0YtuFDA6xWSgmFb6iPFzHlf5vcqb2p0lGEbT+gjrEEz8nC/EeDHvx6mnGXnGCC1SeVV+8u+smj0CeGQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.52.3.tgz", - "integrity": "sha512-d3pY7LWno6SYNXRm6Ebsq0DJGoiLXTb83AIPCXl9fmtIQs/rXoS8SJxxUNtFbJ5MiOvs+7y34np77+9l4nfFMw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.52.3.tgz", - "integrity": "sha512-3y5GA0JkBuirLqmjwAKwB0keDlI6JfGYduMlJD/Rl7fvb4Ni8iKdQs1eiunMZJhwDWdCvrcqXRY++VEBbvk6Eg==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.52.3.tgz", - "integrity": "sha512-AUUH65a0p3Q0Yfm5oD2KVgzTKgwPyp9DSXc3UA7DtxhEb/WSPfbG4wqXeSN62OG5gSo18em4xv6dbfcUGXcagw==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.52.3.tgz", - "integrity": "sha512-1makPhFFVBqZE+XFg3Dkq+IkQ7JvmUrwwqaYBL2CE+ZpxPaqkGaiWFEWVGyvTwZace6WLJHwjVh/+CXbKDGPmg==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.52.3.tgz", - "integrity": "sha512-OOFJa28dxfl8kLOPMUOQBCO6z3X2SAfzIE276fwT52uXDWUS178KWq0pL7d6p1kz7pkzA0yQwtqL0dEPoVcRWg==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.52.3.tgz", - "integrity": "sha512-jMdsML2VI5l+V7cKfZx3ak+SLlJ8fKvLJ0Eoa4b9/vCUrzXKgoKxvHqvJ/mkWhFiyp88nCkM5S2v6nIwRtPcgg==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.3.tgz", - "integrity": "sha512-tPgGd6bY2M2LJTA1uGq8fkSPK8ZLYjDjY+ZLK9WHncCnfIz29LIXIqUgzCR0hIefzy6Hpbe8Th5WOSwTM8E7LA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.52.3.tgz", - "integrity": "sha512-BCFkJjgk+WFzP+tcSMXq77ymAPIxsX9lFJWs+2JzuZTLtksJ2o5hvgTdIcZ5+oKzUDMwI0PfWzRBYAydAHF2Mw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.52.3.tgz", - "integrity": "sha512-KTD/EqjZF3yvRaWUJdD1cW+IQBk4fbQaHYJUmP8N4XoKFZilVL8cobFSTDnjTtxWJQ3JYaMgF4nObY/+nYkumA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ] - }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.52.3.tgz", - "integrity": "sha512-+zteHZdoUYLkyYKObGHieibUFLbttX2r+58l27XZauq0tcWYYuKUwY2wjeCN9oK1Um2YgH2ibd6cnX/wFD7DuA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.52.3.tgz", - "integrity": "sha512-of1iHkTQSo3kr6dTIRX6t81uj/c/b15HXVsPcEElN5sS859qHrOepM5p9G41Hah+CTqSh2r8Bm56dL2z9UQQ7g==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.52.3.tgz", - "integrity": "sha512-s0hybmlHb56mWVZQj8ra9048/WZTPLILKxcvcq+8awSZmyiSUZjjem1AhU3Tf4ZKpYhK4mg36HtHDOe8QJS5PQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.52.3.tgz", - "integrity": "sha512-zGIbEVVXVtauFgl3MRwGWEN36P5ZGenHRMgNw88X5wEhEBpq0XrMEZwOn07+ICrwM17XO5xfMZqh0OldCH5VTA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@types/estree": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", - "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.45.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.45.0.tgz", - "integrity": "sha512-HC3y9CVuevvWCl/oyZuI47dOeDF9ztdMEfMH8/DW/Mhwa9cCLnK1oD7JoTVGW/u7kFzNZUKUoyJEqkaJh5y3Wg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.45.0", - "@typescript-eslint/type-utils": "8.45.0", - "@typescript-eslint/utils": "8.45.0", - "@typescript-eslint/visitor-keys": "8.45.0", - "graphemer": "^1.4.0", - "ignore": "^7.0.0", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.1.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^8.45.0", - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "8.45.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.45.0.tgz", - "integrity": "sha512-TGf22kon8KW+DeKaUmOibKWktRY8b2NSAZNdtWh798COm1NWx8+xJ6iFBtk3IvLdv6+LGLJLRlyhrhEDZWargQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/scope-manager": "8.45.0", - "@typescript-eslint/types": "8.45.0", - "@typescript-eslint/typescript-estree": "8.45.0", - "@typescript-eslint/visitor-keys": "8.45.0", - "debug": "^4.3.4" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/project-service": { - "version": "8.45.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.45.0.tgz", - "integrity": "sha512-3pcVHwMG/iA8afdGLMuTibGR7pDsn9RjDev6CCB+naRsSYs2pns5QbinF4Xqw6YC/Sj3lMrm/Im0eMfaa61WUg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.45.0", - "@typescript-eslint/types": "^8.45.0", - "debug": "^4.3.4" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "8.45.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.45.0.tgz", - "integrity": "sha512-clmm8XSNj/1dGvJeO6VGH7EUSeA0FMs+5au/u3lrA3KfG8iJ4u8ym9/j2tTEoacAffdW1TVUzXO30W1JTJS7dA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.45.0", - "@typescript-eslint/visitor-keys": "8.45.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.45.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.45.0.tgz", - "integrity": "sha512-aFdr+c37sc+jqNMGhH+ajxPXwjv9UtFZk79k8pLoJ6p4y0snmYpPA52GuWHgt2ZF4gRRW6odsEj41uZLojDt5w==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "8.45.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.45.0.tgz", - "integrity": "sha512-bpjepLlHceKgyMEPglAeULX1vixJDgaKocp0RVJ5u4wLJIMNuKtUXIczpJCPcn2waII0yuvks/5m5/h3ZQKs0A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.45.0", - "@typescript-eslint/typescript-estree": "8.45.0", - "@typescript-eslint/utils": "8.45.0", - "debug": "^4.3.4", - "ts-api-utils": "^2.1.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/types": { - "version": "8.45.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.45.0.tgz", - "integrity": "sha512-WugXLuOIq67BMgQInIxxnsSyRLFxdkJEJu8r4ngLR56q/4Q5LrbfkFRH27vMTjxEK8Pyz7QfzuZe/G15qQnVRA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.45.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.45.0.tgz", - "integrity": "sha512-GfE1NfVbLam6XQ0LcERKwdTTPlLvHvXXhOeUGC1OXi4eQBoyy1iVsW+uzJ/J9jtCz6/7GCQ9MtrQ0fml/jWCnA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/project-service": "8.45.0", - "@typescript-eslint/tsconfig-utils": "8.45.0", - "@typescript-eslint/types": "8.45.0", - "@typescript-eslint/visitor-keys": "8.45.0", - "debug": "^4.3.4", - "fast-glob": "^3.3.2", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^2.1.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "8.45.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.45.0.tgz", - "integrity": "sha512-bxi1ht+tLYg4+XV2knz/F7RVhU0k6VrSMc9sb8DQ6fyCTrGQLHfo7lDtN0QJjZjKkLA2ThrKuCdHEvLReqtIGg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.7.0", - "@typescript-eslint/scope-manager": "8.45.0", - "@typescript-eslint/types": "8.45.0", - "@typescript-eslint/typescript-estree": "8.45.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.45.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.45.0.tgz", - "integrity": "sha512-qsaFBA3e09MIDAGFUrTk+dzqtfv1XPVz8t8d1f0ybTzrCY7BKiMC5cjrl1O/P7UmHsNyW90EYSkU/ZWpmXelag==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.45.0", - "eslint-visitor-keys": "^4.2.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", - "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "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==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.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==", - "dev": true, - "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==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "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==", - "dev": true, - "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==", - "dev": true, - "license": "MIT" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "9.36.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.36.0.tgz", - "integrity": "sha512-hB4FIzXovouYzwzECDcUkJ4OcfOEkXTv2zRY6B9bkwjx/cprAq0uvm1nl7zvQ0/TsUk0zQiN4uPfJpB9m+rPMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.8.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.21.0", - "@eslint/config-helpers": "^0.3.1", - "@eslint/core": "^0.15.2", - "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.36.0", - "@eslint/plugin-kit": "^0.3.5", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "@types/json-schema": "^7.0.15", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.4.0", - "eslint-visitor-keys": "^4.2.1", - "espree": "^10.4.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, - "node_modules/eslint-scope": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", - "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/eslint/node_modules/eslint-visitor-keys": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", - "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/eslint/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/espree": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", - "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.15.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree/node_modules/eslint-visitor-keys": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", - "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-glob": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", - "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.8" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fastq": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", - "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", - "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", - "dev": true, - "license": "ISC" - }, - "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/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/globals": { - "version": "16.4.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-16.4.0.tgz", - "integrity": "sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true, - "license": "MIT" - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/ignore": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", - "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "license": "MIT", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "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==", - "dev": true, - "license": "MIT" - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true, - "license": "MIT" - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "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==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pnpm": { - "version": "8.15.9", - "resolved": "https://registry.npmjs.org/pnpm/-/pnpm-8.15.9.tgz", - "integrity": "sha512-SZQ0ydj90aJ5Tr9FUrOyXApjOrzuW7Fee13pDzL0e1E6ypjNXP0AHDHw20VLw4BO3M1XhQHkyik6aBYWa72fgQ==", - "dev": true, - "license": "MIT", - "bin": { - "pnpm": "bin/pnpm.cjs", - "pnpx": "bin/pnpx.cjs" - }, - "engines": { - "node": ">=16.14" - }, - "funding": { - "url": "https://opencollective.com/pnpm" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prettier": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", - "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", - "dev": true, - "license": "MIT", - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "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/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", - "dev": true, - "license": "MIT", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rollup": { - "version": "4.52.3", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.52.3.tgz", - "integrity": "sha512-RIDh866U8agLgiIcdpB+COKnlCreHJLfIhWC3LVflku5YHfpnsIKigRZeFfMfCc4dVcqNVfQQ5gO/afOck064A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "1.0.8" - }, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.52.3", - "@rollup/rollup-android-arm64": "4.52.3", - "@rollup/rollup-darwin-arm64": "4.52.3", - "@rollup/rollup-darwin-x64": "4.52.3", - "@rollup/rollup-freebsd-arm64": "4.52.3", - "@rollup/rollup-freebsd-x64": "4.52.3", - "@rollup/rollup-linux-arm-gnueabihf": "4.52.3", - "@rollup/rollup-linux-arm-musleabihf": "4.52.3", - "@rollup/rollup-linux-arm64-gnu": "4.52.3", - "@rollup/rollup-linux-arm64-musl": "4.52.3", - "@rollup/rollup-linux-loong64-gnu": "4.52.3", - "@rollup/rollup-linux-ppc64-gnu": "4.52.3", - "@rollup/rollup-linux-riscv64-gnu": "4.52.3", - "@rollup/rollup-linux-riscv64-musl": "4.52.3", - "@rollup/rollup-linux-s390x-gnu": "4.52.3", - "@rollup/rollup-linux-x64-gnu": "4.52.3", - "@rollup/rollup-linux-x64-musl": "4.52.3", - "@rollup/rollup-openharmony-arm64": "4.52.3", - "@rollup/rollup-win32-arm64-msvc": "4.52.3", - "@rollup/rollup-win32-ia32-msvc": "4.52.3", - "@rollup/rollup-win32-x64-gnu": "4.52.3", - "@rollup/rollup-win32-x64-msvc": "4.52.3", - "fsevents": "~2.3.2" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "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": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "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==", - "dev": true, - "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==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/ts-api-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", - "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.12" - }, - "peerDependencies": { - "typescript": ">=4.8.4" - } - }, - "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==", - "dev": true, - "license": "0BSD" - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/typescript": { - "version": "5.9.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz", - "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "name": "golem-agentic", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "golem-agentic", + "devDependencies": { + "@eslint/js": "^9.35.0", + "@typescript-eslint/eslint-plugin": "^8.42.0", + "@typescript-eslint/parser": "^8.42.0", + "eslint": "^9.35.0", + "globals": "^16.3.0", + "pnpm": "^8.10.0", + "prettier": "^3.6.2", + "rollup": "^4.46.2", + "tslib": "^2.8.1", + "typescript": "^5.8.3" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz", + "integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.21.0", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.0.tgz", + "integrity": "sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.6", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-array/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/config-array/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.1.tgz", + "integrity": "sha512-xR93k9WhrDYpXHORXpxVL5oHj3Era7wo6k/Wd8/IsQNnZUTzkGS29lyn3nAT05v6ltUuTFVCCYDEGfy2Or/sPA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.2.tgz", + "integrity": "sha512-78Md3/Rrxh83gCxoUc0EiciuOHsIITzLy53m3d9UyiW8y9Dj2D29FeETqyKA+BRK76tnTp6RXWb3pCay8Oyomg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", + "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/eslintrc/node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@eslint/js": { + "version": "9.36.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.36.0.tgz", + "integrity": "sha512-uhCbYtYynH30iZErszX78U+nR3pJU3RHGQ57NXy5QupD4SBVwDeU8TNBy+MjMngc1UyIW9noKqsRqfjQTBU2dw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", + "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.5.tgz", + "integrity": "sha512-Z5kJ+wU3oA7MMIqVR9tyZRtjYPr4OC004Q4Rw7pgOKUOKkJfZ3O24nz3WYfGRpMDNmcOi3TwQOmgm7B7Tpii0w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.15.2", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz", + "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.52.3.tgz", + "integrity": "sha512-h6cqHGZ6VdnwliFG1NXvMPTy/9PS3h8oLh7ImwR+kl+oYnQizgjxsONmmPSb2C66RksfkfIxEVtDSEcJiO0tqw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.52.3.tgz", + "integrity": "sha512-wd+u7SLT/u6knklV/ifG7gr5Qy4GUbH2hMWcDauPFJzmCZUAJ8L2bTkVXC2niOIxp8lk3iH/QX8kSrUxVZrOVw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.52.3.tgz", + "integrity": "sha512-lj9ViATR1SsqycwFkJCtYfQTheBdvlWJqzqxwc9f2qrcVrQaF/gCuBRTiTolkRWS6KvNxSk4KHZWG7tDktLgjg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.52.3.tgz", + "integrity": "sha512-+Dyo7O1KUmIsbzx1l+4V4tvEVnVQqMOIYtrxK7ncLSknl1xnMHLgn7gddJVrYPNZfEB8CIi3hK8gq8bDhb3h5A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.52.3.tgz", + "integrity": "sha512-u9Xg2FavYbD30g3DSfNhxgNrxhi6xVG4Y6i9Ur1C7xUuGDW3banRbXj+qgnIrwRN4KeJ396jchwy9bCIzbyBEQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.52.3.tgz", + "integrity": "sha512-5M8kyi/OX96wtD5qJR89a/3x5x8x5inXBZO04JWhkQb2JWavOWfjgkdvUqibGJeNNaz1/Z1PPza5/tAPXICI6A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.52.3.tgz", + "integrity": "sha512-IoerZJ4l1wRMopEHRKOO16e04iXRDyZFZnNZKrWeNquh5d6bucjezgd+OxG03mOMTnS1x7hilzb3uURPkJ0OfA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.52.3.tgz", + "integrity": "sha512-ZYdtqgHTDfvrJHSh3W22TvjWxwOgc3ThK/XjgcNGP2DIwFIPeAPNsQxrJO5XqleSlgDux2VAoWQ5iJrtaC1TbA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.52.3.tgz", + "integrity": "sha512-NcViG7A0YtuFDA6xWSgmFb6iPFzHlf5vcqb2p0lGEbT+gjrEEz8nC/EeDHvx6mnGXnGCC1SeVV+8u+smj0CeGQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.52.3.tgz", + "integrity": "sha512-d3pY7LWno6SYNXRm6Ebsq0DJGoiLXTb83AIPCXl9fmtIQs/rXoS8SJxxUNtFbJ5MiOvs+7y34np77+9l4nfFMw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.52.3.tgz", + "integrity": "sha512-3y5GA0JkBuirLqmjwAKwB0keDlI6JfGYduMlJD/Rl7fvb4Ni8iKdQs1eiunMZJhwDWdCvrcqXRY++VEBbvk6Eg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.52.3.tgz", + "integrity": "sha512-AUUH65a0p3Q0Yfm5oD2KVgzTKgwPyp9DSXc3UA7DtxhEb/WSPfbG4wqXeSN62OG5gSo18em4xv6dbfcUGXcagw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.52.3.tgz", + "integrity": "sha512-1makPhFFVBqZE+XFg3Dkq+IkQ7JvmUrwwqaYBL2CE+ZpxPaqkGaiWFEWVGyvTwZace6WLJHwjVh/+CXbKDGPmg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.52.3.tgz", + "integrity": "sha512-OOFJa28dxfl8kLOPMUOQBCO6z3X2SAfzIE276fwT52uXDWUS178KWq0pL7d6p1kz7pkzA0yQwtqL0dEPoVcRWg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.52.3.tgz", + "integrity": "sha512-jMdsML2VI5l+V7cKfZx3ak+SLlJ8fKvLJ0Eoa4b9/vCUrzXKgoKxvHqvJ/mkWhFiyp88nCkM5S2v6nIwRtPcgg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.3.tgz", + "integrity": "sha512-tPgGd6bY2M2LJTA1uGq8fkSPK8ZLYjDjY+ZLK9WHncCnfIz29LIXIqUgzCR0hIefzy6Hpbe8Th5WOSwTM8E7LA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.52.3.tgz", + "integrity": "sha512-BCFkJjgk+WFzP+tcSMXq77ymAPIxsX9lFJWs+2JzuZTLtksJ2o5hvgTdIcZ5+oKzUDMwI0PfWzRBYAydAHF2Mw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.52.3.tgz", + "integrity": "sha512-KTD/EqjZF3yvRaWUJdD1cW+IQBk4fbQaHYJUmP8N4XoKFZilVL8cobFSTDnjTtxWJQ3JYaMgF4nObY/+nYkumA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.52.3.tgz", + "integrity": "sha512-+zteHZdoUYLkyYKObGHieibUFLbttX2r+58l27XZauq0tcWYYuKUwY2wjeCN9oK1Um2YgH2ibd6cnX/wFD7DuA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.52.3.tgz", + "integrity": "sha512-of1iHkTQSo3kr6dTIRX6t81uj/c/b15HXVsPcEElN5sS859qHrOepM5p9G41Hah+CTqSh2r8Bm56dL2z9UQQ7g==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.52.3.tgz", + "integrity": "sha512-s0hybmlHb56mWVZQj8ra9048/WZTPLILKxcvcq+8awSZmyiSUZjjem1AhU3Tf4ZKpYhK4mg36HtHDOe8QJS5PQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.52.3.tgz", + "integrity": "sha512-zGIbEVVXVtauFgl3MRwGWEN36P5ZGenHRMgNw88X5wEhEBpq0XrMEZwOn07+ICrwM17XO5xfMZqh0OldCH5VTA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.45.0.tgz", + "integrity": "sha512-HC3y9CVuevvWCl/oyZuI47dOeDF9ztdMEfMH8/DW/Mhwa9cCLnK1oD7JoTVGW/u7kFzNZUKUoyJEqkaJh5y3Wg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.45.0", + "@typescript-eslint/type-utils": "8.45.0", + "@typescript-eslint/utils": "8.45.0", + "@typescript-eslint/visitor-keys": "8.45.0", + "graphemer": "^1.4.0", + "ignore": "^7.0.0", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.45.0", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.45.0.tgz", + "integrity": "sha512-TGf22kon8KW+DeKaUmOibKWktRY8b2NSAZNdtWh798COm1NWx8+xJ6iFBtk3IvLdv6+LGLJLRlyhrhEDZWargQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/scope-manager": "8.45.0", + "@typescript-eslint/types": "8.45.0", + "@typescript-eslint/typescript-estree": "8.45.0", + "@typescript-eslint/visitor-keys": "8.45.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.45.0.tgz", + "integrity": "sha512-3pcVHwMG/iA8afdGLMuTibGR7pDsn9RjDev6CCB+naRsSYs2pns5QbinF4Xqw6YC/Sj3lMrm/Im0eMfaa61WUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.45.0", + "@typescript-eslint/types": "^8.45.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.45.0.tgz", + "integrity": "sha512-clmm8XSNj/1dGvJeO6VGH7EUSeA0FMs+5au/u3lrA3KfG8iJ4u8ym9/j2tTEoacAffdW1TVUzXO30W1JTJS7dA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.45.0", + "@typescript-eslint/visitor-keys": "8.45.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.45.0.tgz", + "integrity": "sha512-aFdr+c37sc+jqNMGhH+ajxPXwjv9UtFZk79k8pLoJ6p4y0snmYpPA52GuWHgt2ZF4gRRW6odsEj41uZLojDt5w==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.45.0.tgz", + "integrity": "sha512-bpjepLlHceKgyMEPglAeULX1vixJDgaKocp0RVJ5u4wLJIMNuKtUXIczpJCPcn2waII0yuvks/5m5/h3ZQKs0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.45.0", + "@typescript-eslint/typescript-estree": "8.45.0", + "@typescript-eslint/utils": "8.45.0", + "debug": "^4.3.4", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.45.0.tgz", + "integrity": "sha512-WugXLuOIq67BMgQInIxxnsSyRLFxdkJEJu8r4ngLR56q/4Q5LrbfkFRH27vMTjxEK8Pyz7QfzuZe/G15qQnVRA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.45.0.tgz", + "integrity": "sha512-GfE1NfVbLam6XQ0LcERKwdTTPlLvHvXXhOeUGC1OXi4eQBoyy1iVsW+uzJ/J9jtCz6/7GCQ9MtrQ0fml/jWCnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.45.0", + "@typescript-eslint/tsconfig-utils": "8.45.0", + "@typescript-eslint/types": "8.45.0", + "@typescript-eslint/visitor-keys": "8.45.0", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.45.0.tgz", + "integrity": "sha512-bxi1ht+tLYg4+XV2knz/F7RVhU0k6VrSMc9sb8DQ6fyCTrGQLHfo7lDtN0QJjZjKkLA2ThrKuCdHEvLReqtIGg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.7.0", + "@typescript-eslint/scope-manager": "8.45.0", + "@typescript-eslint/types": "8.45.0", + "@typescript-eslint/typescript-estree": "8.45.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.45.0.tgz", + "integrity": "sha512-qsaFBA3e09MIDAGFUrTk+dzqtfv1XPVz8t8d1f0ybTzrCY7BKiMC5cjrl1O/P7UmHsNyW90EYSkU/ZWpmXelag==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.45.0", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "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==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.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==", + "dev": true, + "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==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "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==", + "dev": true, + "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==", + "dev": true, + "license": "MIT" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.36.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.36.0.tgz", + "integrity": "sha512-hB4FIzXovouYzwzECDcUkJ4OcfOEkXTv2zRY6B9bkwjx/cprAq0uvm1nl7zvQ0/TsUk0zQiN4uPfJpB9m+rPMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.21.0", + "@eslint/config-helpers": "^0.3.1", + "@eslint/core": "^0.15.2", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.36.0", + "@eslint/plugin-kit": "^0.3.5", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-scope": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/eslint/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fastq": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true, + "license": "ISC" + }, + "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/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "16.4.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.4.0.tgz", + "integrity": "sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true, + "license": "MIT" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "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==", + "dev": true, + "license": "MIT" + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "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==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pnpm": { + "version": "8.15.9", + "resolved": "https://registry.npmjs.org/pnpm/-/pnpm-8.15.9.tgz", + "integrity": "sha512-SZQ0ydj90aJ5Tr9FUrOyXApjOrzuW7Fee13pDzL0e1E6ypjNXP0AHDHw20VLw4BO3M1XhQHkyik6aBYWa72fgQ==", + "dev": true, + "license": "MIT", + "bin": { + "pnpm": "bin/pnpm.cjs", + "pnpx": "bin/pnpx.cjs" + }, + "engines": { + "node": ">=16.14" + }, + "funding": { + "url": "https://opencollective.com/pnpm" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", + "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "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/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rollup": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.52.3.tgz", + "integrity": "sha512-RIDh866U8agLgiIcdpB+COKnlCreHJLfIhWC3LVflku5YHfpnsIKigRZeFfMfCc4dVcqNVfQQ5gO/afOck064A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.52.3", + "@rollup/rollup-android-arm64": "4.52.3", + "@rollup/rollup-darwin-arm64": "4.52.3", + "@rollup/rollup-darwin-x64": "4.52.3", + "@rollup/rollup-freebsd-arm64": "4.52.3", + "@rollup/rollup-freebsd-x64": "4.52.3", + "@rollup/rollup-linux-arm-gnueabihf": "4.52.3", + "@rollup/rollup-linux-arm-musleabihf": "4.52.3", + "@rollup/rollup-linux-arm64-gnu": "4.52.3", + "@rollup/rollup-linux-arm64-musl": "4.52.3", + "@rollup/rollup-linux-loong64-gnu": "4.52.3", + "@rollup/rollup-linux-ppc64-gnu": "4.52.3", + "@rollup/rollup-linux-riscv64-gnu": "4.52.3", + "@rollup/rollup-linux-riscv64-musl": "4.52.3", + "@rollup/rollup-linux-s390x-gnu": "4.52.3", + "@rollup/rollup-linux-x64-gnu": "4.52.3", + "@rollup/rollup-linux-x64-musl": "4.52.3", + "@rollup/rollup-openharmony-arm64": "4.52.3", + "@rollup/rollup-win32-arm64-msvc": "4.52.3", + "@rollup/rollup-win32-ia32-msvc": "4.52.3", + "@rollup/rollup-win32-x64-gnu": "4.52.3", + "@rollup/rollup-win32-x64-msvc": "4.52.3", + "fsevents": "~2.3.2" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "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": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "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==", + "dev": true, + "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==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-api-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", + "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "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==", + "dev": true, + "license": "0BSD" + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/typescript": { + "version": "5.9.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz", + "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } } + } } diff --git a/sdks/ts/packages/golem-ts-repl/eslint.config.mjs b/sdks/ts/packages/golem-ts-repl/eslint.config.mjs index 0cb37516ee..8e6c51c56a 100644 --- a/sdks/ts/packages/golem-ts-repl/eslint.config.mjs +++ b/sdks/ts/packages/golem-ts-repl/eslint.config.mjs @@ -26,6 +26,7 @@ export default [ 'no-dupe-keys': 'error', 'no-duplicate-case': 'error', eqeqeq: ['error', 'always'], + '@typescript-eslint/no-explicit-any': 'error', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-misused-promises': 'error', }, diff --git a/sdks/ts/packages/golem-ts-repl/src/base.ts b/sdks/ts/packages/golem-ts-repl/src/base.ts index 9be712157b..7901a3f0cc 100644 --- a/sdks/ts/packages/golem-ts-repl/src/base.ts +++ b/sdks/ts/packages/golem-ts-repl/src/base.ts @@ -25,7 +25,7 @@ export type AroundInvokeHook = { beforeInvoke: (request: AgentInvocationRequest) => Promise; afterInvoke: ( request: AgentInvocationRequest, - result: JsonResult, + result: JsonResult, ) => Promise; }; @@ -41,6 +41,52 @@ export type EnvironmentName = string; export type AgentTypeName = string; export type IdempotencyKey = string; +export type Timestamp = string; // ISO 8601 + +export type WorkerStatus = + | 'Running' + | 'Idle' + | 'Suspended' + | 'Interrupted' + | 'Retrying' + | 'Failed' + | 'Exited'; + +export type UpdateRecord = + | { type: 'PendingUpdate'; timestamp: Timestamp; targetRevision: number } + | { type: 'SuccessfulUpdate'; timestamp: Timestamp; targetRevision: number } + | { + type: 'FailedUpdate'; + timestamp: Timestamp; + targetRevision: number; + details?: string; + }; + +export type WorkerResourceDescription = { + createdAt: Timestamp; + resourceOwner: string; + resourceName: string; +}; + +export type Worker = { + componentName: string; + workerName: string; + createdBy: string; + environmentId: string; + env: Record; + configVars: Record; + status: WorkerStatus; + componentRevision: number; + retryCount: number; + pendingInvocationCount: number; + updates: UpdateRecord[]; + createdAt: Timestamp; + lastError?: string; + componentSize: number; + totalLinearMemorySize: number; + exportedResourceInstances: Record; +}; + export type DataValue = | { type: 'Tuple'; elements: ElementValue[] } | { type: 'Multimodal'; elements: NamedElementValue[] }; diff --git a/sdks/ts/packages/golem-ts-repl/src/cli-repl-interop.ts b/sdks/ts/packages/golem-ts-repl/src/cli-repl-interop.ts index abae6210ab..715f142a57 100644 --- a/sdks/ts/packages/golem-ts-repl/src/cli-repl-interop.ts +++ b/sdks/ts/packages/golem-ts-repl/src/cli-repl-interop.ts @@ -13,12 +13,14 @@ // limitations under the License. import childProcess, { ChildProcess } from 'node:child_process'; +import { Buffer } from 'buffer'; import repl from 'node:repl'; import pc from 'picocolors'; import { CliArgMetadata, CliCommandMetadata, CliCommandsConfig } from './config'; import { flushStdIO, writeChunk } from './process'; import { writeFullLineSeparator } from './format'; import * as base from './base'; +import { Worker } from './base'; import * as uuid from 'uuid'; const AGENT_STREAM_CLOSE_DELAY_MS = 100; @@ -335,14 +337,15 @@ const COMPLETION_HOOKS: Partial> = { AGENT_ID: { complete: async (cli, currentToken) => { const result = await cli.runJson({ args: ['agent', 'list'] }); + const json = result.json as { workers?: Partial[] }; - if (!result.ok || !result.json || !Array.isArray(result.json.workers)) { + if (!result.ok || !json || !Array.isArray(json.workers)) { return []; } - const values = result.json.workers - .map((worker: any) => worker.workerName) - .filter((value: unknown): value is string => typeof value === 'string'); + const values = json.workers + .map((worker) => worker.workerName) + .filter((value): value is string => typeof value === 'string'); return filterByPrefix(values, currentToken); }, @@ -355,12 +358,13 @@ const COMPLETION_HOOKS: Partial> = { return []; } - if (!result.json || !Array.isArray(result.json)) { + const json = result.json as { componentName: string }[]; + if (!json || !Array.isArray(json)) { return []; } - const values = result.json - .map((component: any) => component?.componentName) + const values = json + .map((component) => component?.componentName) .filter((value: unknown): value is string => typeof value === 'string'); return filterByPrefix(values, currentToken); @@ -415,11 +419,11 @@ class GolemCli { let stderr = ''; if (opts.mode === 'collect') { - child.stdout?.on('data', (chunk) => { + child.stdout?.on('data', (chunk: Buffer) => { stdout += chunk.toString(); }); - child.stderr?.on('data', (chunk) => { + child.stderr?.on('data', (chunk: Buffer) => { stderr += chunk.toString(); }); } @@ -432,7 +436,7 @@ class GolemCli { async runJson(opts: { args: string[]; - }): Promise<{ ok: boolean; code: number | null; json: any }> { + }): Promise<{ ok: boolean; code: number | null; json: unknown }> { const result = await this.run({ args: ['--format', 'json', ...opts.args], mode: 'collect' }); return { ok: result.ok, code: result.code, json: JSON.parse(result.stdout) }; } diff --git a/sdks/ts/packages/golem-ts-repl/src/config.ts b/sdks/ts/packages/golem-ts-repl/src/config.ts index 42b7ea53ce..ee358371a7 100644 --- a/sdks/ts/packages/golem-ts-repl/src/config.ts +++ b/sdks/ts/packages/golem-ts-repl/src/config.ts @@ -33,10 +33,14 @@ export type ReplCliFlags = { streamLogs: boolean; }; -export type AgentConfig = { +export type AgentModule = Record & { + configure: ConfigureClient; +}; + +export type AgentConfig = { clientPackageName: string; clientPackageImportedName: string; - package: any; + package: T; }; export type ConfigureClient = (config: base.Configuration) => void; diff --git a/sdks/ts/packages/golem-ts-repl/src/language-service.ts b/sdks/ts/packages/golem-ts-repl/src/language-service.ts index c15cd03a1a..35db8e2479 100644 --- a/sdks/ts/packages/golem-ts-repl/src/language-service.ts +++ b/sdks/ts/packages/golem-ts-repl/src/language-service.ts @@ -668,8 +668,11 @@ function getFallbackArgumentInfo( function getResolvedSignature( callExpression: tsm.CallExpression | tsm.NewExpression, ): tsm.Signature | undefined { - const directSignature = (callExpression as any).getSignature?.(); - if (directSignature) return directSignature; + const signature = callExpression + .getProject() + .getTypeChecker() + .getResolvedSignature(callExpression); + if (signature) return signature; const isNew = callExpression.getKind() === tsm.SyntaxKind.NewExpression; const expressionType = callExpression.getExpression().getType(); diff --git a/sdks/ts/packages/golem-ts-repl/src/repl.ts b/sdks/ts/packages/golem-ts-repl/src/repl.ts index 22866d9c95..a366c8648e 100644 --- a/sdks/ts/packages/golem-ts-repl/src/repl.ts +++ b/sdks/ts/packages/golem-ts-repl/src/repl.ts @@ -16,7 +16,6 @@ import { cliCommandsConfigFromBaseConfig, clientConfigFromEnv, Config, - ConfigureClient, loadReplCliFlags, ReplCliFlags, } from './config'; @@ -25,13 +24,13 @@ import { LanguageService } from './language-service'; import pc from 'picocolors'; import repl, { type REPLEval } from 'node:repl'; import process from 'node:process'; -import { AsyncCompleter } from 'readline'; +import { Completer, AsyncCompleter } from 'readline'; import { PassThrough } from 'node:stream'; import { ts } from 'ts-morph'; import { flushStdIO, setOutput, writeln } from './process'; import { formatAsTable, formatEvalError, logSnippetInfo } from './format'; import * as base from './base'; -import { AgentInvocationRequest, AgentInvocationResult, JsonResult } from './base'; +import { AgentInvocationRequest } from './base'; const MAX_COMPLETION_ENTRIES = 50; @@ -61,11 +60,7 @@ export class Repl { } }, - async afterInvoke( - request: AgentInvocationRequest, - result: JsonResult, - ): Promise { - void result; + async afterInvoke(request: AgentInvocationRequest): Promise { await cli.stopAgentStream(request); }, }; @@ -80,11 +75,13 @@ export class Repl { private newBaseReplServer(options?: { input?: NodeJS.ReadableStream; - output?: NodeJS.WritableStream; + output?: NodeJS.WriteStream; terminal?: boolean; + eval?: REPLEval; + completer?: Completer | AsyncCompleter; }): repl.REPLServer { const output = options?.output ?? process.stdout; - const terminal = options?.terminal ?? Boolean((output as any).isTTY); + const terminal = options?.terminal ?? Boolean(output.isTTY); const prompt = this.replCliFlags.script ? '' : `${pc.cyan('golem-ts-repl')}` + @@ -101,13 +98,13 @@ export class Repl { preview: false, ignoreUndefined: true, prompt, + eval: options?.eval, + completer: options?.completer, }); } private async setupRepl(replServer: repl.REPLServer): Promise { await this.setupReplHistory(replServer); - this.setupReplEval(replServer); - this.setupReplCompleter(replServer); this.setupReplContext(replServer); this.setupReplCommands(replServer); } @@ -124,13 +121,12 @@ export class Repl { }); } - private setupReplEval(replServer: repl.REPLServer): repl.REPLEval { - const tsxEval = replServer.eval; + private createCustomEval(tsxEval: REPLEval): REPLEval { const languageService = this.getLanguageService(); const replCliFlags = this.replCliFlags; const getOverrideSnippet = () => this.overrideSnippetForNextEval; - const customEval: REPLEval = function (code, context, filename, callback) { + return function (this: repl.REPLServer, code, context, filename, callback) { const evalCode = (code: string) => { tsxEval.call(this, code, context, filename, (err, result) => { if (!err) { @@ -179,16 +175,12 @@ export class Repl { callback(null, undefined); } }; - (replServer.eval as any) = customEval; - - return tsxEval; } - private setupReplCompleter(replServer: repl.REPLServer) { - const nodeCompleter = replServer.completer; + private createCustomCompleter(nodeCompleter: Completer | AsyncCompleter): AsyncCompleter { const languageService = this.getLanguageService(); const cli = this.cli; - const customCompleter: AsyncCompleter = function (line, callback) { + return function (line, callback) { if (line.trimStart().startsWith('.')) { cli .complete(line) @@ -216,7 +208,6 @@ export class Repl { } } }; - (replServer.completer as any) = customCompleter; } private setupReplContext(replServer: repl.REPLServer) { @@ -227,7 +218,7 @@ export class Repl { const context = replServer.context; for (let agentTypeName in this.config.agents) { const agentConfig = this.config.agents[agentTypeName]; - let configure = agentConfig.package.configure as ConfigureClient; + let configure = agentConfig.package.configure; configure(this.clientConfig); context[agentTypeName] = agentConfig.package[agentTypeName]; context[agentConfig.clientPackageImportedName] = agentConfig.package; @@ -346,13 +337,25 @@ export class Repl { setOutput('stdout'); const script = this.replCliFlags.script; + + // We need to create a temporary repl server to get the default eval and completer + const tempRepl = repl.start({ input: new PassThrough(), output: new PassThrough() }); + const customEval = this.createCustomEval(tempRepl.eval); + const customCompleter = this.createCustomCompleter(tempRepl.completer); + tempRepl.close(); + const replServer = script ? this.newBaseReplServer({ input: new PassThrough(), output: process.stdout, terminal: false, + eval: customEval, + completer: customCompleter, }) - : this.newBaseReplServer(); + : this.newBaseReplServer({ + eval: customEval, + completer: customCompleter, + }); await this.setupRepl(replServer); diff --git a/sdks/ts/packages/golem-ts-sdk/eslint.config.mjs b/sdks/ts/packages/golem-ts-sdk/eslint.config.mjs index 7ca4c35b68..923c42d533 100644 --- a/sdks/ts/packages/golem-ts-sdk/eslint.config.mjs +++ b/sdks/ts/packages/golem-ts-sdk/eslint.config.mjs @@ -28,6 +28,7 @@ export default [ 'no-dupe-keys': 'error', 'no-duplicate-case': 'error', eqeqeq: ['error', 'always'], + '@typescript-eslint/no-explicit-any': 'error', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-misused-promises': 'error', }, diff --git a/sdks/ts/packages/golem-ts-sdk/src/baseAgent.ts b/sdks/ts/packages/golem-ts-sdk/src/baseAgent.ts index 8f9854a233..14bb043e5e 100644 --- a/sdks/ts/packages/golem-ts-sdk/src/baseAgent.ts +++ b/sdks/ts/packages/golem-ts-sdk/src/baseAgent.ts @@ -102,11 +102,11 @@ export class BaseAgent { */ async loadSnapshot(bytes: Uint8Array): Promise { const text = new TextDecoder().decode(bytes); - const state = JSON.parse(text); + const state = JSON.parse(text) as Partial; for (const [k, v] of Object.entries(state)) { if (k === 'cachedAgentType' || k === 'agentClassName') continue; - (this as any)[k] = v; + this[k as keyof this] = v; } } @@ -166,7 +166,7 @@ export class BaseAgent { * such as `trigger` and `schedule`. See `Client` documentation for details. * */ - static get BaseAgent>( + static get BaseAgent>( this: T, ...args: GetArgs> ): Client> { @@ -175,7 +175,7 @@ export class BaseAgent { ); } - static getPhantom BaseAgent>( + static getPhantom BaseAgent>( this: T, ...args: ConstructorParameters ): Client> { @@ -184,7 +184,7 @@ export class BaseAgent { ); } - static newPhantom BaseAgent>( + static newPhantom BaseAgent>( this: T, ...args: ConstructorParameters ): Client> { @@ -220,15 +220,17 @@ export class BaseAgent { * * ``` */ +type MethodKeys = { + [K in keyof T]-?: T[K] extends (...args: never[]) => unknown ? K : never; +}[keyof T]; + export type Client = { - [K in keyof T as T[K] extends (...args: any[]) => any ? K : never]: T[K] extends ( - ...args: infer A - ) => infer R + [K in MethodKeys]: T[K] extends (...args: infer A) => infer R ? RemoteMethod, Awaited> : never; }; -export type RemoteMethod = { +export type RemoteMethod = { (...args: Args): Promise; trigger: (...args: Args) => void; schedule: (ts: Datetime, ...args: Args) => void; @@ -254,8 +256,8 @@ type GetArgs = type IsOptional = {} extends Pick ? true : false; -type AllOptional = T extends readonly [ - any, +type AllOptional = T extends readonly [ + unknown, ...infer R, ] ? IsOptional extends true diff --git a/sdks/ts/packages/golem-ts-sdk/src/decorators/agent.ts b/sdks/ts/packages/golem-ts-sdk/src/decorators/agent.ts index f28fdbbe3d..b2a2814250 100644 --- a/sdks/ts/packages/golem-ts-sdk/src/decorators/agent.ts +++ b/sdks/ts/packages/golem-ts-sdk/src/decorators/agent.ts @@ -60,6 +60,12 @@ export type AgentDecoratorOptions = { phantom?: boolean; }; +type MutableAgentStatics = { + get?: unknown; + newPhantom?: unknown; + getPhantom?: unknown; +}; + function parseDurationToNanoseconds(duration: string): bigint { const milliseconds = ms(duration as ms.StringValue); if (milliseconds === undefined) { @@ -222,7 +228,7 @@ function resolveSnapshotting(option?: SnapshottingOption): Snapshotting { * The first parameter is the phantom ID. If undefined, a new phantom ID will be generated. */ export function agent(options?: AgentDecoratorOptions) { - return function any>(ctor: T) { + return function BaseAgent>(ctor: T) { if (!Object.prototype.isPrototypeOf.call(BaseAgent, ctor)) { throw new Error( `Invalid agent declaration: \`${ctor.name}\` must extend \`BaseAgent\` to be decorated with @agent()`, @@ -232,7 +238,7 @@ export function agent(options?: AgentDecoratorOptions) { const agentClassName = new AgentClassName(ctor.name); if (AgentTypeRegistry.exists(agentClassName)) { - return ctor; + return; } const classMetadata = TypeMetadata.get(ctor.name); @@ -324,10 +330,10 @@ export function agent(options?: AgentDecoratorOptions) { ); } - (ctor as any).get = getRemoteClient(agentClassName, agentType, ctor); - (ctor as any).newPhantom = getNewPhantomRemoteClient(agentClassName, agentType, ctor); - - (ctor as any).getPhantom = getPhantomRemoteClient(agentClassName, agentType, ctor); + const decoratedCtor = ctor as T & MutableAgentStatics; + decoratedCtor.get = getRemoteClient(agentClassName, agentType, ctor); + decoratedCtor.newPhantom = getNewPhantomRemoteClient(agentClassName, agentType, ctor); + decoratedCtor.getPhantom = getPhantomRemoteClient(agentClassName, agentType, ctor); AgentInitiatorRegistry.register(agentTypeName, { initiate: (constructorInput: DataValue, principal: Principal) => { @@ -348,7 +354,7 @@ export function agent(options?: AgentDecoratorOptions) { }; } - const instance = new ctor(...deserializedConstructorArgs.val); + const instance = Reflect.construct(ctor, deserializedConstructorArgs.val) as BaseAgent; const agentId = getRawSelfAgentId(); if (!agentId.value.startsWith(agentTypeName.asWit)) { diff --git a/sdks/ts/packages/golem-ts-sdk/src/host/result.ts b/sdks/ts/packages/golem-ts-sdk/src/host/result.ts index 95c878ed10..14e072069b 100644 --- a/sdks/ts/packages/golem-ts-sdk/src/host/result.ts +++ b/sdks/ts/packages/golem-ts-sdk/src/host/result.ts @@ -316,25 +316,25 @@ function flatten(this: Result, E2>): Result { else return this.val; } -function assertErrorInstanceOf any>( +function assertErrorInstanceOf unknown>( this: Result.Ok, constructor: C, ): Result.Ok; -function assertErrorInstanceOf any>( +function assertErrorInstanceOf unknown>( this: Result.Err, constructor: C, ): Result.Err>; -function assertErrorInstanceOf any>( +function assertErrorInstanceOf unknown>( this: Result, constructor: C, ): Result>; -function assertErrorInstanceOf any>( +function assertErrorInstanceOf unknown>( this: Result, constructor: C, ): Result> { if (this.isOk()) return this; - if (this.val instanceof constructor) return this as any; + if (this.val instanceof constructor) return this as Result>; throw new TypeError(`Assertion failed: Expected error to be an instance of ${constructor.name}.`); } diff --git a/sdks/ts/packages/golem-ts-sdk/src/host/transaction.ts b/sdks/ts/packages/golem-ts-sdk/src/host/transaction.ts index 1de672a804..15df1d8ece 100644 --- a/sdks/ts/packages/golem-ts-sdk/src/host/transaction.ts +++ b/sdks/ts/packages/golem-ts-sdk/src/host/transaction.ts @@ -233,6 +233,6 @@ export function fallibleTransaction( * ``` * */ -export type OperationErrors[]> = { - [K in keyof T]: T[K] extends Operation ? Err : never; +export type OperationErrors[]> = { + [K in keyof T]: T[K] extends Operation ? Err : unknown; }[number]; diff --git a/sdks/ts/packages/golem-ts-sdk/src/index.ts b/sdks/ts/packages/golem-ts-sdk/src/index.ts index 826f08c7df..f1a9671ce7 100644 --- a/sdks/ts/packages/golem-ts-sdk/src/index.ts +++ b/sdks/ts/packages/golem-ts-sdk/src/index.ts @@ -243,7 +243,7 @@ export class Secret { /** Lazily loads or reloads the secret value */ get(): T { - return loadConfigKey(this.path, this.typeInfoInternal); + return loadConfigKey(this.path, this.typeInfoInternal) as T; } } diff --git a/sdks/ts/packages/golem-ts-sdk/src/internal/agentError.ts b/sdks/ts/packages/golem-ts-sdk/src/internal/agentError.ts index efb7b0b8d5..77c0855b57 100644 --- a/sdks/ts/packages/golem-ts-sdk/src/internal/agentError.ts +++ b/sdks/ts/packages/golem-ts-sdk/src/internal/agentError.ts @@ -59,17 +59,22 @@ export function invalidType(error: string): AgentError { }; } -export function isAgentError(error: any): error is AgentError { +export function isAgentError(error: unknown): error is AgentError { + if (typeof error !== 'object' || error === null) { + return false; + } + const e = error as Record; return ( - error.tag !== undefined && - error.val !== undefined && - ((error.tag === 'invalid-input' && typeof error.val === 'string') || - (error.tag === 'invalid-method' && typeof error.val === 'string') || - (error.tag === 'invalid-type' && typeof error.val === 'string') || - (error.tag === 'invalid-agent-id' && typeof error.val === 'string') || - (error.tag === 'custom-error' && - typeof error.val === 'object' && - error.val.value !== undefined && - error.val.typ !== undefined)) + e.tag !== undefined && + e.val !== undefined && + ((e.tag === 'invalid-input' && typeof e.val === 'string') || + (e.tag === 'invalid-method' && typeof e.val === 'string') || + (e.tag === 'invalid-type' && typeof e.val === 'string') || + (e.tag === 'invalid-agent-id' && typeof e.val === 'string') || + (e.tag === 'custom-error' && + typeof e.val === 'object' && + e.val !== null && + (e.val as Record).value !== undefined && + (e.val as Record).typ !== undefined)) ); } diff --git a/sdks/ts/packages/golem-ts-sdk/src/internal/clientGeneration.ts b/sdks/ts/packages/golem-ts-sdk/src/internal/clientGeneration.ts index 430d854495..6070bb39f6 100644 --- a/sdks/ts/packages/golem-ts-sdk/src/internal/clientGeneration.ts +++ b/sdks/ts/packages/golem-ts-sdk/src/internal/clientGeneration.ts @@ -31,7 +31,7 @@ import { ElementValue, TextReference, } from 'golem:agent/common@1.5.0'; -import { RemoteMethod } from '../baseAgent'; +import { BaseAgent, RemoteMethod } from '../baseAgent'; import { AgentMethodParamRegistry } from './registry/agentMethodParamRegistry'; import { AgentConstructorParamRegistry } from './registry/agentConstructorParamRegistry'; import { AgentMethodRegistry } from './registry/agentMethodRegistry'; @@ -49,10 +49,15 @@ import { randomUuid } from '../host/hostapi'; import { AgentId } from '../agentId'; import * as util from 'node:util'; -export function getRemoteClient any>( +type AgentClass = { + readonly name: string; + readonly prototype: T; +}; + +export function getRemoteClient( agentClassName: AgentClassName, agentType: AgentType, - ctor: T, + ctor: AgentClass, ) { const metadata = TypeMetadata.get(ctor.name); @@ -63,7 +68,7 @@ export function getRemoteClient any>( } const shared = new WasmRpxProxyHandlerShared(metadata, agentClassName, agentType); - return (...args: any[]) => { + return (...args: unknown[]) => { const instance = Object.create(ctor.prototype); const constructedId = shared.constructAgentId(args); @@ -72,10 +77,10 @@ export function getRemoteClient any>( }; } -export function getPhantomRemoteClient any>( +export function getPhantomRemoteClient( agentClassName: AgentClassName, agentType: AgentType, - ctor: T, + ctor: AgentClass, ) { const metadata = TypeMetadata.get(ctor.name); @@ -87,7 +92,7 @@ export function getPhantomRemoteClient { + return (finalPhantomId: Uuid, ...args: unknown[]) => { const instance = Object.create(ctor.prototype); const constructedId = shared.constructAgentId(args, finalPhantomId); @@ -96,10 +101,10 @@ export function getPhantomRemoteClient any>( +export function getNewPhantomRemoteClient( agentClassName: AgentClassName, agentType: AgentType, - ctor: T, + ctor: AgentClass, ) { const metadata = TypeMetadata.get(ctor.name); @@ -110,7 +115,7 @@ export function getNewPhantomRemoteClient any> } const shared = new WasmRpxProxyHandlerShared(metadata, agentClassName, agentType); - return (...args: any[]) => { + return (...args: unknown[]) => { const instance = Object.create(ctor.prototype); const finalPhantomId = randomUuid(); @@ -166,7 +171,7 @@ class WasmRpxProxyHandlerShared { } } - constructAgentId(args: any[], phantomId?: Uuid): ConstructedAgentId { + constructAgentId(args: unknown[], phantomId?: Uuid): ConstructedAgentId { let constructorDataValue: DataValue; if (args.length === 1 && this.constructorParamTypes[0].tag === 'multimodal') { @@ -289,12 +294,12 @@ class WasmRpxProxyHandlerShared { } } -class WasmRpcProxyHandler implements ProxyHandler { +class WasmRpcProxyHandler implements ProxyHandler> { private readonly shared: WasmRpxProxyHandlerShared; private readonly agentId: AgentId; private readonly wasmRpc: WasmRpc; - private readonly methodProxyCache = new Map>(); + private readonly methodProxyCache = new Map>(); private readonly getIdMethod: () => AgentId = () => this.agentId; private readonly phantomIdMethod: () => Uuid | undefined = () => { @@ -314,8 +319,8 @@ class WasmRpcProxyHandler implements ProxyHandler { ); } - get(target: any, prop: string | symbol) { - const val = target[prop]; + get(target: Record, prop: string | symbol) { + const val = target[prop.toString()]; const propString = prop.toString(); if (typeof val === 'function') { @@ -349,12 +354,12 @@ class WasmRpcProxyHandler implements ProxyHandler { return undefined; } - private createMethodProxy(prop: string): RemoteMethod { + private createMethodProxy(prop: string): RemoteMethod { const methodInfo = this.shared.getMethodInfo(prop); const agentIdString = this.agentId.value; const wasmRpc = this.wasmRpc; - async function invokeAndAwait(...fnArgs: any[]) { + async function invokeAndAwait(...fnArgs: unknown[]) { const inputDataValue = serializeArgs(methodInfo.params, fnArgs); const rpcResultFuture = wasmRpc.asyncInvokeAndAwait(methodInfo.name, inputDataValue); @@ -383,26 +388,29 @@ class WasmRpcProxyHandler implements ProxyHandler { return deserializeRpcResult(resultDataValue, methodInfo.returnType); } - function invokeFireAndForget(...fnArgs: any[]) { + function invokeFireAndForget(...fnArgs: unknown[]) { const inputDataValue = serializeArgs(methodInfo.params, fnArgs); wasmRpc.invoke(methodInfo.name, inputDataValue); } - function invokeSchedule(ts: Datetime, ...fnArgs: any[]) { + function invokeSchedule(ts: Datetime, ...fnArgs: unknown[]) { const inputDataValue = serializeArgs(methodInfo.params, fnArgs); wasmRpc.scheduleInvocation(ts, methodInfo.name, inputDataValue); } - const methodFn: any = (...args: any[]) => invokeAndAwait(...args); - - methodFn.trigger = (...args: any[]) => invokeFireAndForget(...args); - methodFn.schedule = (ts: Datetime, ...args: any[]) => invokeSchedule(ts, ...args); + const methodFn: RemoteMethod = Object.assign( + (...args: unknown[]) => invokeAndAwait(...args), + { + trigger: (...args: unknown[]) => invokeFireAndForget(...args), + schedule: (ts: Datetime, ...args: unknown[]) => invokeSchedule(ts, ...args), + }, + ); - return methodFn as RemoteMethod; + return methodFn; } } -function serializeArgs(params: CachedParamInfo[], fnArgs: any[]): DataValue { +function serializeArgs(params: CachedParamInfo[], fnArgs: unknown[]): DataValue { const elementValues: ElementValue[] = []; for (const [index, fnArg] of fnArgs.entries()) { const param = params[index]; @@ -441,14 +449,8 @@ function serializeArgs(params: CachedParamInfo[], fnArgs: any[]): DataValue { `Failed to serialize multimodal arg ${param.name}: ${dataValueEither.val}`, ); } - // For a multimodal param, the serialized DataValue is itself the result; - // we wrap it as a single tuple with the multimodal elements const multimodalDv = dataValueEither.val; if (multimodalDv.tag === 'multimodal') { - // Each multimodal element becomes part of the overall DataValue - // But since params are tuple-based, we need to wrap multimodal as a single element - // The server expects each param as an ElementValue in the tuple - // For multimodal, we serialize the whole thing as a component-model WitValue for (const [, ev] of multimodalDv.val) { elementValues.push(ev); } @@ -464,7 +466,10 @@ function serializeArgs(params: CachedParamInfo[], fnArgs: any[]): DataValue { return { tag: 'tuple', val: elementValues }; } -function deserializeRpcResult(resultDataValue: DataValue, typeInfoInternal: TypeInfoInternal): any { +function deserializeRpcResult( + resultDataValue: DataValue, + typeInfoInternal: TypeInfoInternal, +): T { return Either.getOrThrowWith( deserializeDataValue( resultDataValue, @@ -477,5 +482,5 @@ function deserializeRpcResult(resultDataValue: DataValue, typeInfoInternal: Type { tag: 'anonymous' }, ), (err) => new Error(`Failed to deserialize return value of RPC call: ${err}`), - )[0]; + )[0] as T; } diff --git a/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/types/handlers.ts b/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/types/handlers.ts index f83bbb88bd..e716f5ed6a 100644 --- a/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/types/handlers.ts +++ b/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/types/handlers.ts @@ -70,7 +70,7 @@ const handlers: { [K in TsType['kind']]: Handler } = { config: unsupported('Config'), }; -function unsupported(kind: string): Handler { +function unsupported(kind: string): Handler { return ({ scopeName, parameterInScope }) => Either.left( `Unsupported type \`${kind}\`` + @@ -79,7 +79,7 @@ function unsupported(kind: string): Handler { ); } -function unsupportedWithHint(kind: string, hint: string): Handler { +function unsupportedWithHint(kind: string, hint: string): Handler { return ({ scopeName, parameterInScope }) => Either.left( `Unsupported type \`${kind}\`${scopeName ? ` in ${scopeName}` : ''}` + diff --git a/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/types/witTypeBuilder.ts b/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/types/witTypeBuilder.ts index 6fcaffd310..d4eab2d2f6 100644 --- a/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/types/witTypeBuilder.ts +++ b/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/types/witTypeBuilder.ts @@ -49,6 +49,7 @@ export class WitTypeBuilder { } private convert(typ: AnalysedType): WitTypeNode { + let kind = typ.kind; switch (typ.kind) { case 'variant': { const cases: [string, NodeIndex | undefined][] = typ.value.cases.map( @@ -127,7 +128,7 @@ export class WitTypeBuilder { } default: - throw new Error(`Unhandled AnalysedType kind: ${(typ as any).kind}`); + throw new Error(`Unhandled AnalysedType kind: ${kind}`); } } } diff --git a/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/Value.ts b/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/Value.ts index 7a5830ff32..69b079b144 100644 --- a/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/Value.ts +++ b/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/Value.ts @@ -115,6 +115,7 @@ export function fromWitValue(wit: WitValue): Value { } function buildTree(node: WitNode, nodes: WitNode[]): Value { + let tag = node.tag; switch (node.tag) { case 'record-value': return { @@ -270,7 +271,7 @@ function buildTree(node: WitNode, nodes: WitNode[]): Value { } default: - throw new Error(`Unhandled tag: ${(node as any).tag}`); + throw new Error(`Unhandled tag: ${tag}`); } } @@ -283,9 +284,9 @@ export function toWitValue(value: Value): WitValue { function buildNodes(value: Value, nodes: WitNode[]): number { const idx = nodes.length; nodes.push({ - tag: 'placeholder', - val: undefined, - } as any); + tag: 'prim-bool', + val: false, + }); switch (value.kind) { case 'record': { @@ -478,6 +479,6 @@ function buildNodes(value: Value, nodes: WitNode[]): number { return idx; default: - throw new Error(`Unhandled kind: ${(value as any).kind}`); + throw new Error(`Unhandled kind: ${(value as { kind: string }).kind}`); } } diff --git a/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/WitValue.ts b/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/WitValue.ts index 71ddf56d41..8016a98960 100644 --- a/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/WitValue.ts +++ b/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/WitValue.ts @@ -26,7 +26,7 @@ import { AnalysedType } from '../types/analysedType'; export { WitValue } from 'golem:core/types@1.5.0'; export const fromTsValueDefault = ( - tsValue: any, + tsValue: unknown, analysedType: AnalysedType, ): Either.Either => { const valueEither = serializeDefaultTsValue(tsValue, analysedType); @@ -34,20 +34,20 @@ export const fromTsValueDefault = ( }; // For RPC calls, we need wit-value representation of the binary reference (and not DataValue) -export const fromTsValueTextReference = (tsValue: any): WitValue => { +export const fromTsValueTextReference = (tsValue: unknown): WitValue => { const value = serializeTextReferenceTsValue(tsValue); return Value.toWitValue(value); }; // For RPC calls, we need wit-value representation of the binary reference (and not DataValue) -export const fromTsValueBinaryReference = (tsValue: any): WitValue => { +export const fromTsValueBinaryReference = (tsValue: unknown): WitValue => { const value = serializeBinaryReferenceTsValue(tsValue); return Value.toWitValue(value); }; -export const toTsValue = (witValue: WitValue, expectedType: AnalysedType): any => { +export const toTsValue = (witValue: WitValue, expectedType: AnalysedType): T => { const value: Value.Value = Value.fromWitValue(witValue); - return deserialize(value, expectedType); + return deserialize(value, expectedType); }; diff --git a/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/dataValue.ts b/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/dataValue.ts index 73f3cdd872..ef61b32a6b 100644 --- a/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/dataValue.ts +++ b/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/dataValue.ts @@ -66,11 +66,19 @@ export type ParameterDetail = { * for testing purpose. In this case a fake parameter name can be provided when `dataValue.tag` is `tuple`. * And a proper list of `ParameterDetail` is required `dataValue.tag` is multi-modal - and it cannnot be fake. */ -export function deserializeDataValue( +export function deserializeDataValue( dataValue: DataValue, paramTypes: ParameterDetail[], principal: Principal, -): Either.Either { +): Either.Either { + return _deserializeDataValue(dataValue, paramTypes, principal) as Either.Either; +} + +function _deserializeDataValue( + dataValue: DataValue, + paramTypes: ParameterDetail[], + principal: Principal, +): Either.Either { switch (dataValue.tag) { case 'tuple': const inputElements = dataValue.val; @@ -206,7 +214,7 @@ export function deserializeDataValue( const multimodalParamTypes = typeInfo.types; // These are not separate parameters, but a single parameter of multimodal type - const multiModalValue: Either.Either = Either.all( + const multiModalValue: Either.Either = Either.all( multiModalElements.map(([name, elem]) => { switch (elem.tag) { case 'unstructured-text': @@ -306,11 +314,13 @@ export function deserializeDataValue( } } -function constructConfigType(typeInfoInternal: TypeInfoInternal & { tag: 'config' }): Config { +function constructConfigType( + typeInfoInternal: TypeInfoInternal & { tag: 'config' }, +): Config> { // safe as the parent node is config const properties = (typeInfoInternal.tsType as Type.Type & { kind: 'config' }).properties; - const root: Record = {}; + const root: Record = {}; for (const prop of properties) { const { path } = prop; @@ -321,7 +331,7 @@ function constructConfigType(typeInfoInternal: TypeInfoInternal & { tag: 'config for (let i = 0; i < path.length - 1; i++) { const key = path[i]; if (!(key in current)) current[key] = {}; - current = current[key]; + current = current[key] as Record; } const leafKey = path[path.length - 1]; @@ -338,7 +348,7 @@ function constructConfigType(typeInfoInternal: TypeInfoInternal & { tag: 'config return new Config(root); } -export function loadConfigKey(path: string[], typeInfoInternal: TypeInfoInternal): any { +export function loadConfigKey(path: string[], typeInfoInternal: TypeInfoInternal): unknown { const witValue = getConfigValue(path); const dataValue = createSingleElementTupleDataValue({ @@ -363,7 +373,7 @@ export function loadConfigKey(path: string[], typeInfoInternal: TypeInfoInternal // Used to serialize the return type of a method back to DataValue export function serializeToDataValue( - tsValue: any, + tsValue: unknown, typeInfoInternal: TypeInfoInternal, ): Either.Either { switch (typeInfoInternal.tag) { @@ -406,7 +416,10 @@ export function serializeToDataValue( case 'multimodal': const multiModalTypeInfo = typeInfoInternal.types; - const nameAndElementValues = serializeMultimodalToDataValue(tsValue, multiModalTypeInfo); + const nameAndElementValues = serializeMultimodalToDataValue( + tsValue as Record[], + multiModalTypeInfo, + ); return Either.right({ tag: 'multimodal', @@ -415,7 +428,7 @@ export function serializeToDataValue( } } -function serializeBinaryReferenceToDataValue(tsValue: any): DataValue { +function serializeBinaryReferenceToDataValue(tsValue: unknown): DataValue { const binaryReference: BinaryReference = serializeTsValueToBinaryReference(tsValue); const elementValue: ElementValue = { @@ -429,7 +442,7 @@ function serializeBinaryReferenceToDataValue(tsValue: any): DataValue { }; } -function serializeTextReferenceToDataValue(value: any): DataValue { +function serializeTextReferenceToDataValue(value: unknown): DataValue { const textReference: TextReference = serializeTsValueToTextReference(value); const elementValue: ElementValue = { @@ -444,7 +457,7 @@ function serializeTextReferenceToDataValue(value: any): DataValue { } function serializeMultimodalToDataValue( - value: any, + value: Record[], paramDetails: ParameterDetail[], ): [string, ElementValue][] { const namesAndElements: [string, ElementValue][] = []; @@ -457,13 +470,13 @@ function serializeMultimodalToDataValue( for (const elem of value) { let matchedParam: ParameterDetail | null = null; - let matchedVal: any = undefined; + let matchedVal: unknown = undefined; for (const param of paramDetails) { const name = param.name; const type = param.type; - const valOpt = getValFieldFromTaggedObject(elem, name); + const valOpt = getValFieldFromTaggedObject>(elem, name); if (valOpt.tag === 'not-found') { continue; @@ -554,13 +567,14 @@ export function createSingleElementTupleDataValue(elementValue: ElementValue): D * @param value Example: { tag: 'someTag', val: someValue } * @param tagValue Example: 'someTag' */ -function getValFieldFromTaggedObject( - value: any, +function getValFieldFromTaggedObject( + value: Record | null, tagValue: string, -): { tag: 'found'; val: any } | { tag: 'not-found' } { +): { tag: 'found' | 'not-found'; val?: T } { if (typeof value === 'object' && value !== null) { - if ('tag' in value && 'val' in value && value['tag'] === tagValue) { - return { tag: 'found', val: value['val'] }; + const obj = value as Record; + if ('tag' in obj && 'val' in obj && obj['tag'] === tagValue) { + return { tag: 'found', val: obj['val'] as T }; } } diff --git a/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/deserializer.ts b/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/deserializer.ts index 509445abef..83f3389301 100644 --- a/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/deserializer.ts +++ b/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/deserializer.ts @@ -23,7 +23,11 @@ import { Result } from '../../../host/result'; * @param value * @param analysedType */ -export function deserialize(value: Value, analysedType: AnalysedType): any { +export function deserialize(value: Value, analysedType: AnalysedType): T { + return _deserialize(value, analysedType) as T; +} + +function _deserialize(value: Value, analysedType: AnalysedType): unknown { if ( value.kind === 'record' && value.value.length === 0 && @@ -67,7 +71,7 @@ export function deserialize(value: Value, analysedType: AnalysedType): any { const innerType = analysedType.kind === 'option' ? analysedType.value.inner : analysedType; - return deserialize(caseValue, innerType); + return _deserialize(caseValue, innerType); } if (value.kind === 'enum' && analysedType.kind === 'enum') { @@ -204,8 +208,8 @@ export function deserialize(value: Value, analysedType: AnalysedType): any { throw new Error(typeMismatchInDeserialize(item, 'map')); } - const k = deserialize(item.value[0], keyType); - const v = deserialize(item.value[1], valueType); + const k = _deserialize(item.value[0], keyType); + const v = _deserialize(item.value[1], valueType); map.set(k, v); } @@ -221,7 +225,7 @@ export function deserialize(value: Value, analysedType: AnalysedType): any { if (!elemType) { throw new Error(`Unable to infer the type of Array`); } - return value.value.map((item: Value) => deserialize(item, elemType)); + return value.value.map((item: Value) => _deserialize(item, elemType)); } else { throw new Error(typeMismatchInDeserialize(value, 'array')); } @@ -249,7 +253,7 @@ export function deserialize(value: Value, analysedType: AnalysedType): any { } return value.value.map((item: Value, idx: number) => - deserialize(item, analysedType.value.items[idx]), + _deserialize(item, analysedType.value.items[idx]), ); } else { throw new Error(typeMismatchInDeserialize(value, 'tuple')); @@ -266,11 +270,11 @@ export function deserialize(value: Value, analysedType: AnalysedType): any { const inbuiltErrType = analysedType.value.err; if (inbuiltOkType && value.value.ok) { - return Result.ok(deserialize(value.value.ok, inbuiltOkType)); + return Result.ok(_deserialize(value.value.ok, inbuiltOkType)); } if (inbuiltErrType && value.value.err) { - return Result.err(deserialize(value.value.err, inbuiltErrType)); + return Result.err(_deserialize(value.value.err, inbuiltErrType)); } if ('ok' in value.value && analysedType.resultType.okEmptyType) { @@ -309,14 +313,14 @@ export function deserialize(value: Value, analysedType: AnalysedType): any { if (value.value.ok) { return { tag: 'ok', - [okName]: deserialize(value.value.ok, okType), + [okName]: _deserialize(value.value.ok, okType), }; } if (value.value.err) { return { tag: 'err', - [errName]: deserialize(value.value.err, errType), + [errName]: _deserialize(value.value.err, errType), }; } } @@ -328,7 +332,7 @@ export function deserialize(value: Value, analysedType: AnalysedType): any { if (value.value.ok) { return { tag: 'ok', - [okName]: deserialize(value.value.ok, okType), + [okName]: _deserialize(value.value.ok, okType), }; } else { return { @@ -344,7 +348,7 @@ export function deserialize(value: Value, analysedType: AnalysedType): any { if (value.value.err) { return { tag: 'err', - [errName]: deserialize(value.value.err, errType), + [errName]: _deserialize(value.value.err, errType), }; } else { return { @@ -399,7 +403,7 @@ export function deserialize(value: Value, analysedType: AnalysedType): any { throw new Error(typeMismatchInDeserialize(value, 'union')); } - const result = deserialize(caseValue, valueType); + const result = _deserialize(caseValue, valueType); const metadata = analysedType.taggedTypes.find( (lit) => lit.tagLiteralName === tagValue, @@ -431,7 +435,7 @@ export function deserialize(value: Value, analysedType: AnalysedType): any { throw new Error(typeMismatchInDeserialize(value, 'union')); } - return deserialize(v, type); + return _deserialize(v, type); } throw new Error(typeMismatchInDeserialize(value, 'variant')); @@ -445,10 +449,10 @@ export function deserialize(value: Value, analysedType: AnalysedType): any { const name = field.name; const expectedFieldType = field.typ; - acc[name] = deserialize(fieldValues[idx], expectedFieldType); + acc[name] = _deserialize(fieldValues[idx], expectedFieldType); return acc; }, - {} as Record, + {} as Record, ); } else { throw new Error(typeMismatchInDeserialize(value, 'object')); @@ -456,7 +460,7 @@ export function deserialize(value: Value, analysedType: AnalysedType): any { } } -function convertToNumber(value: Value): any { +function convertToNumber(value: Value): number { if ( value.kind === 'f64' || value.kind === 'u8' || @@ -469,13 +473,13 @@ function convertToNumber(value: Value): any { value.kind === 's64' || value.kind === 'f32' ) { - return value.value; + return Number(value.value); } else { throw new Error(); } } -function convertToBigInt(value: Value): any { +function convertToBigInt(value: Value): bigint { if (value.kind === 'u64' || value.kind === 's64') { return value.value; } else { diff --git a/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/errors.ts b/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/errors.ts index 1064b00f5c..0389d5289a 100644 --- a/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/errors.ts +++ b/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/errors.ts @@ -17,7 +17,7 @@ import { Value } from './Value'; import { NameOptionTypePair } from '../types/analysedType'; // type mismatch in tsValue when converting from TS to WIT -export function typeMismatchInSerialize(tsValue: any, expectedType: string): string { +export function typeMismatchInSerialize(tsValue: unknown, expectedType: string): string { return `Type mismatch. Expected type \`${safeDisplay(expectedType)}\`, got \`${safeDisplay(tsValue)}\``; } @@ -31,23 +31,23 @@ export function typeMismatchInDeserialize(value: Value, expectedType: string) { } // Missing keys in tsValue when converting from TS to WIT -export function missingObjectKey(key: string, tsValue: any): string { +export function missingObjectKey(key: string, tsValue: unknown): string { return `Missing key '${key}' in ${safeDisplay(tsValue)}`; } // tsValue does not match any of the union types when converting from TS to WIT -export function unionTypeMatchError(unionTypes: NameOptionTypePair[], tsValue: any): string { +export function unionTypeMatchError(unionTypes: NameOptionTypePair[], tsValue: unknown): string { const types = unionTypes.map((t) => t.name); return `Value '${safeDisplay(tsValue)}' does not match any of the union types: ${types.join(', ')}`; } -export function enumMismatchInSerialize(enumValues: string[], tsValue: any): string { +export function enumMismatchInSerialize(enumValues: string[], tsValue: unknown): string { return `Value '${safeDisplay(tsValue)}' does not match any of the enum values: ${enumValues.join(', ')}`; } // unhandled type of tsValue when converting from TS to WIT export function unhandledTypeError( - tsValue: any, + tsValue: unknown, typeName: string | undefined, message: string | undefined, ): string { @@ -58,6 +58,6 @@ export function unhandledTypeError( return error + (message ? `${message}` : ''); } -export function safeDisplay(tsValue: any): string { +export function safeDisplay(tsValue: unknown): string { return util.format(tsValue); } diff --git a/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/serializer.ts b/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/serializer.ts index 7ab0a13dda..2cbea3bd0b 100644 --- a/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/serializer.ts +++ b/sdks/ts/packages/golem-ts-sdk/src/internal/mapping/values/serializer.ts @@ -34,11 +34,11 @@ import * as util from 'node:util'; * Serialization of a TypeScript mainly required at RPC boundary * as well as when a result of a method needs to be sent through to golem executor. * - * @param tsValue The TypeScript value that exists as `any` type, which represents anything other than unstructured-text or unstructured-binary. + * @param tsValue The TypeScript value that exists as `unknown` type, which represents anything other than unstructured-text or unstructured-binary. * @param analysedType The expected AnalysedType of the typescript value. There is no `AnalysedType` as such for unstructured-text or unstructured-binary. */ export function serializeDefaultTsValue( - tsValue: any, + tsValue: unknown, analysedType: AnalysedType, ): Either.Either { switch (analysedType.kind) { @@ -137,7 +137,7 @@ export function serializeDefaultTsValue( if (typeof tsValue === 'bigint' || typeof tsValue === 'number') { return Either.right({ kind: 'u64', - value: tsValue as any, + value: typeof tsValue === 'bigint' ? tsValue : BigInt(tsValue), }); } else { return Either.left(typeMismatchInSerialize(tsValue, 'bigint')); @@ -395,22 +395,24 @@ export function serializeDefaultTsValue( } if (!('tag' in tsValue)) { - return Either.left(missingObjectKey(tsValue, 'tag')); + return Either.left(missingObjectKey('tag', tsValue)); } + const resultValue = tsValue as Record; + switch (analysedType.resultType.tag) { case 'inbuilt': - const keys = Object.keys(tsValue); + const keys = Object.keys(resultValue); if (!keys.includes('tag')) { - return Either.left(missingObjectKey('tag', tsValue)); + return Either.left(missingObjectKey('tag', resultValue)); } if (!keys.includes('val')) { - return Either.left(missingObjectKey('val', tsValue)); + return Either.left(missingObjectKey('val', resultValue)); } - if (tsValue['tag'] === 'ok') { + if (resultValue['tag'] === 'ok') { if (!okType) { if (analysedType.resultType.okEmptyType) { return Either.right({ @@ -424,7 +426,7 @@ export function serializeDefaultTsValue( return Either.left(customSerializationError('unresolved ok type')); } - return Either.map(serializeDefaultTsValue(tsValue['val'], okType), (v) => ({ + return Either.map(serializeDefaultTsValue(resultValue['val'], okType), (v) => ({ kind: 'result', value: { ok: v, @@ -432,7 +434,7 @@ export function serializeDefaultTsValue( })); } - if (tsValue['tag'] === 'err') { + if (resultValue['tag'] === 'err') { if (!errType) { if (analysedType.resultType.errEmptyType) { return Either.right({ @@ -446,7 +448,7 @@ export function serializeDefaultTsValue( return Either.left(customSerializationError('unresolved err type')); } - return Either.map(serializeDefaultTsValue(tsValue['val'], errType), (v) => ({ + return Either.map(serializeDefaultTsValue(resultValue['val'], errType), (v) => ({ kind: 'result', value: { err: v, @@ -454,12 +456,12 @@ export function serializeDefaultTsValue( })); } - return Either.left(typeMismatchInSerialize(tsValue, 'Result')); + return Either.left(typeMismatchInSerialize(resultValue, 'Result')); case 'custom': const okValueName = analysedType.resultType.okValueName; const errValueName = analysedType.resultType.errValueName; - if (tsValue['tag'] === 'ok') { + if (resultValue['tag'] === 'ok') { // If ok type exists, we ensure that we have ok value, else return error // If ok type doesn't exist, we set ok value to undefined if (okType) { @@ -467,7 +469,7 @@ export function serializeDefaultTsValue( return Either.left(customSerializationError('unresolved key name for ok value')); } - return Either.map(serializeDefaultTsValue(tsValue[okValueName], okType), (v) => ({ + return Either.map(serializeDefaultTsValue(resultValue[okValueName], okType), (v) => ({ kind: 'result', value: { ok: v, @@ -481,7 +483,7 @@ export function serializeDefaultTsValue( ok: undefined, }, }); - } else if (typeof tsValue === 'object' && tsValue['tag'] === 'err') { + } else if (resultValue['tag'] === 'err') { // If err type exists, we ensure that we have err value, else return error // If err type doesn't exist, we set err value to undefined if (errType) { @@ -489,12 +491,15 @@ export function serializeDefaultTsValue( return Either.left(customSerializationError('unresolved key name for err value')); } - return Either.map(serializeDefaultTsValue(tsValue[errValueName], errType), (v) => ({ - kind: 'result', - value: { - err: v, - }, - })); + return Either.map( + serializeDefaultTsValue(resultValue[errValueName], errType), + (v) => ({ + kind: 'result', + value: { + err: v, + }, + }), + ); } return Either.right({ @@ -510,7 +515,7 @@ export function serializeDefaultTsValue( } } -export function serializeBinaryReferenceTsValue(tsValue: any): Value { +export function serializeBinaryReferenceTsValue(tsValue: unknown): Value { const binaryReference = serializeTsValueToBinaryReference(tsValue); switch (binaryReference.tag) { @@ -550,7 +555,7 @@ export function serializeBinaryReferenceTsValue(tsValue: any): Value { } } -export function serializeTextReferenceTsValue(tsValue: any): Value { +export function serializeTextReferenceTsValue(tsValue: unknown): Value { const textReference: TextReference = serializeTsValueToTextReference(tsValue); switch (textReference.tag) { @@ -598,9 +603,10 @@ export function serializeTextReferenceTsValue(tsValue: any): Value { } } -export function serializeTsValueToBinaryReference(tsValue: any): BinaryReference { - if (typeof tsValue === 'object') { - const keys = Object.keys(tsValue); +export function serializeTsValueToBinaryReference(tsValue: unknown): BinaryReference { + if (typeof tsValue === 'object' && tsValue !== null) { + const obj = tsValue as Record; + const keys = Object.keys(obj); if (!keys.includes('tag')) { throw new Error( @@ -610,13 +616,13 @@ export function serializeTsValueToBinaryReference(tsValue: any): BinaryReference ); } - const tag = tsValue['tag']; + const tag = obj['tag']; if (typeof tag === 'string' && tag === 'url') { if (keys.includes('val')) { return { tag: 'url', - val: tsValue['val'], + val: obj['val'] as string, }; } else { throw new Error( @@ -632,9 +638,9 @@ export function serializeTsValueToBinaryReference(tsValue: any): BinaryReference return { tag: 'inline', val: { - data: tsValue['val'], + data: obj['val'] as Uint8Array, binaryType: { - mimeType: tsValue['mimeType'], + mimeType: obj['mimeType'] as string, }, }, }; @@ -661,9 +667,10 @@ export function serializeTsValueToBinaryReference(tsValue: any): BinaryReference ); } -export function serializeTsValueToTextReference(value: any): TextReference { - if (typeof value === 'object') { - const keys = Object.keys(value); +export function serializeTsValueToTextReference(value: unknown): TextReference { + if (typeof value === 'object' && value !== null) { + const obj = value as Record; + const keys = Object.keys(obj); if (!keys.includes('tag')) { throw new Error( @@ -671,13 +678,13 @@ export function serializeTsValueToTextReference(value: any): TextReference { ); } - const tag = value['tag']; + const tag = obj['tag']; if (typeof tag === 'string' && tag === 'url') { if (keys.includes('val')) { return { tag: 'url', - val: value['val'], + val: obj['val'] as string, }; } else { throw new Error( @@ -694,9 +701,9 @@ export function serializeTsValueToTextReference(value: any): TextReference { return { tag: 'inline', val: { - data: value['val'], + data: obj['val'] as string, textType: { - languageCode: value['languageCode'], + languageCode: obj['languageCode'] as string, }, }, }; @@ -704,7 +711,7 @@ export function serializeTsValueToTextReference(value: any): TextReference { return { tag: 'inline', val: { - data: value['val'], + data: obj['val'] as string, }, }; } @@ -731,7 +738,7 @@ export function serializeTsValueToTextReference(value: any): TextReference { ); } -function serializeBooleanTsValue(tsValue: any): Either.Either { +function serializeBooleanTsValue(tsValue: unknown): Either.Either { if (typeof tsValue === 'boolean') { return Either.right({ kind: 'bool', @@ -743,7 +750,7 @@ function serializeBooleanTsValue(tsValue: any): Either.Either { } function serializeKeyValuePairs( - tsValue: any, + tsValue: unknown, analysedType: AnalysedType, keyAnalysedType: AnalysedType, valueAnalysedType: AnalysedType, @@ -773,13 +780,14 @@ function serializeKeyValuePairs( } function serializeObjectTsValue( - tsValue: any, + tsValue: unknown, analysedType: AnalysedType, nameTypePairs: NameTypePair[], ): Either.Either { if (typeof tsValue !== 'object' || tsValue === null) { return Either.left(typeMismatchInSerialize(tsValue, 'object')); } + const obj = tsValue as Record; const values: Value[] = []; for (const prop of nameTypePairs) { @@ -787,35 +795,7 @@ function serializeObjectTsValue( const type = prop.typ; - if (!Object.prototype.hasOwnProperty.call(tsValue, key)) { - if (tsValue === '' && type.kind === 'string') { - values.push({ - kind: 'string', - value: '', - }); - } - - if (tsValue === '0' && type.kind === 'f64') { - values.push({ - kind: 'f64', - value: 0, - }); - } - - if (tsValue === '0' && type.kind === 'u64') { - values.push({ - kind: 'u64', - value: 0n, - }); - } - - if (tsValue === false && type.kind === 'bool') { - values.push({ - kind: 'bool', - value: false, - }); - } - + if (!Object.prototype.hasOwnProperty.call(obj, key)) { if (type.kind === 'option') { values.push({ kind: 'option', @@ -830,7 +810,7 @@ function serializeObjectTsValue( return Either.left(customSerializationError('unresolved name-type pair')); } - const fieldVal = serializeDefaultTsValue(tsValue[key], nameTypePair.typ); + const fieldVal = serializeDefaultTsValue(obj[key], nameTypePair.typ); if (Either.isLeft(fieldVal)) { return Either.left(fieldVal.val); @@ -846,7 +826,7 @@ function serializeObjectTsValue( } function serializeUnionTsValue( - tsValue: any, + tsValue: unknown, taggedTypes: TaggedTypeMetadata[], nameOptionTypePairs: NameOptionTypePair[], ): Either.Either { @@ -890,25 +870,25 @@ function serializeUnionTsValue( } function serializeTaggedUnionTsValue( - tsValue: any, + tsValue: unknown, nameOptionTypePairs: NameOptionTypePair[], ): Either.Either { - const keys = Object.keys(tsValue); - - if (!keys.includes('tag')) { - return Either.left(missingObjectKey('tag', tsValue)); - } - if (typeof tsValue !== 'object' || tsValue === null) { return Either.left(typeMismatchInSerialize(tsValue, 'object with tag property')); } + const obj = tsValue as Record; + const keys = Object.keys(obj); + + if (!keys.includes('tag')) { + return Either.left(missingObjectKey('tag', obj)); + } for (const nameOptionTypePair of nameOptionTypePairs) { const typeName = nameOptionTypePair.name; const typeOption = nameOptionTypePair.typ; - if (tsValue['tag'] === typeName) { + if (obj['tag'] === typeName) { // Handle only tag names if (!typeOption) { const value: Value = { @@ -926,7 +906,7 @@ function serializeTaggedUnionTsValue( return Either.left(`Missing value correspond to the tag ${typeName}`); } - const innerValue = serializeDefaultTsValue(tsValue[valueKey], typeOption); + const innerValue = serializeDefaultTsValue(obj[valueKey], typeOption); return Either.map(innerValue, (result) => ({ kind: 'variant', @@ -940,7 +920,7 @@ function serializeTaggedUnionTsValue( } function serializeTupleTsValue( - tsValue: any, + tsValue: unknown, tupleElemTypes: AnalysedType[], ): Either.Either { if (!Array.isArray(tsValue)) { @@ -958,7 +938,7 @@ function serializeTupleTsValue( ); } -export function matchesType(value: any, type: AnalysedType): boolean { +export function matchesType(value: unknown, type: AnalysedType): boolean { switch (type.kind) { case 'bool': return typeof value === 'boolean'; @@ -1025,19 +1005,20 @@ export function matchesType(value: any, type: AnalysedType): boolean { case 'result': if (typeof value !== 'object' || value === null) return false; + const resultObj = value as Record; - if ('ok' in value) { - if (value['ok'] === undefined || value['ok'] === null) { + if ('ok' in resultObj) { + if (resultObj['ok'] === undefined || resultObj['ok'] === null) { return type.value.ok === undefined; } if (!type.value.ok) return false; - return matchesType(value['ok'], type.value.ok); - } else if ('err' in value) { - if (value['err'] === undefined || value['err'] === null) { + return matchesType(resultObj['ok'], type.value.ok); + } else if ('err' in resultObj) { + if (resultObj['err'] === undefined || resultObj['err'] === null) { return type.value.err === undefined; } if (!type.value.err) return false; - return matchesType(value['err'], type.value.err); + return matchesType(resultObj['err'], type.value.err); } else { return false; } @@ -1050,11 +1031,12 @@ export function matchesType(value: any, type: AnalysedType): boolean { const nameAndOptions = type.value.cases; // There are two cases, if they are tagged types, or not - if (typeof value === 'object') { - const keys = Object.keys(value); + if (typeof value === 'object' && value !== null) { + const obj = value as Record; + const keys = Object.keys(obj); if (keys.includes('tag')) { - const tagValue = value['tag']; + const tagValue = obj['tag']; if (typeof tagValue === 'string') { const valueType = nameAndOptions.find( @@ -1077,7 +1059,7 @@ export function matchesType(value: any, type: AnalysedType): boolean { return false; } - return matchesType(value[valueKey], type); + return matchesType(obj[valueKey], type); } } } @@ -1119,7 +1101,7 @@ export function matchesType(value: any, type: AnalysedType): boolean { } } -function matchesTuple(value: any, tupleTypes: readonly AnalysedType[] | undefined): boolean { +function matchesTuple(value: unknown, tupleTypes: readonly AnalysedType[] | undefined): boolean { if (!Array.isArray(value)) return false; if (!tupleTypes) return false; if (value.length !== tupleTypes.length) return false; @@ -1128,7 +1110,7 @@ function matchesTuple(value: any, tupleTypes: readonly AnalysedType[] | undefine } function matchesArray( - value: any, + value: unknown, elementType: AnalysedType, typedArray: TypedArray | undefined, ): boolean { @@ -1162,25 +1144,26 @@ function matchesArray( return value.every((item) => matchesType(item, elementType)); } -function handleObjectMatch(value: any, props: NameTypePair[]): boolean { - if (typeof value !== 'object' && value !== 'interface') { +function handleObjectMatch(value: unknown, props: NameTypePair[]): boolean { + if (typeof value !== 'object' || value === null) { return false; } + const obj = value as Record; - const valueKeys = Object.keys(value); + const valueKeys = Object.keys(obj); if (valueKeys.length !== props.length) return false; for (const prop of props) { const propName = prop.name; const propType = prop.typ; // analysed type record has to keep track of whether it's question mark or not - const hasKey = Object.prototype.hasOwnProperty.call(value, propName); + const hasKey = Object.prototype.hasOwnProperty.call(obj, propName); let isOptional = propType.kind === 'option'; if (!hasKey) { if (!isOptional) return false; } else { - if (!matchesType(value[propName], propType)) return false; + if (!matchesType(obj[propName], propType)) return false; } } diff --git a/sdks/ts/packages/golem-ts-sdk/src/internal/resolvedAgent.ts b/sdks/ts/packages/golem-ts-sdk/src/internal/resolvedAgent.ts index b3f161b908..5ebaf70908 100644 --- a/sdks/ts/packages/golem-ts-sdk/src/internal/resolvedAgent.ts +++ b/sdks/ts/packages/golem-ts-sdk/src/internal/resolvedAgent.ts @@ -112,7 +112,7 @@ export class ResolvedAgent { } const methodInfo = methodInfoResult.val; - const deserializedArgs: Either.Either = deserializeDataValue( + const deserializedArgs: Either.Either = deserializeDataValue( methodArgs, methodInfo.paramTypes, principal, @@ -127,7 +127,10 @@ export class ResolvedAgent { }; } - const methodResult = await methodInfo.method.apply(this.agentInstance, deserializedArgs.val); + const methodResult = await (methodInfo.method as (...args: unknown[]) => unknown).apply( + this.agentInstance, + deserializedArgs.val, + ); // Converting the result from the method back to data-value const dataValueEither = serializeToDataValue(methodResult, methodInfo.returnType); @@ -190,7 +193,7 @@ export class ResolvedAgent { val: cachedInfo, }; } else { - const agentMethod = (this.agentInstance as any)[methodName]; + const agentMethod = getProperty(this.agentInstance as object, methodName); if (!agentMethod) { return { @@ -257,5 +260,9 @@ export class ResolvedAgent { type CachedMethodInfo = { paramTypes: ParameterDetail[]; returnType: TypeInfoInternal; - method: any; + method: unknown; }; + +function getProperty(obj: object, key: string): unknown { + return Reflect.get(obj, key); +} diff --git a/sdks/ts/packages/golem-ts-sdk/src/typescriptTypeRegistry.ts b/sdks/ts/packages/golem-ts-sdk/src/typescriptTypeRegistry.ts index 0f238d29c8..b50a83c1a5 100644 --- a/sdks/ts/packages/golem-ts-sdk/src/typescriptTypeRegistry.ts +++ b/sdks/ts/packages/golem-ts-sdk/src/typescriptTypeRegistry.ts @@ -15,10 +15,10 @@ // A wrapper over golem-ts-types-core/TypeMetadata to be used from user's code // for them to register its types with the SDk. -import { TypeMetadata } from '@golemcloud/golem-ts-types-core'; +import { TypeMetadata, MetadataJSON } from '@golemcloud/golem-ts-types-core'; export const TypescriptTypeRegistry = { - register(typeMetadata: any): void { + register(typeMetadata: MetadataJSON): void { TypeMetadata.loadFromJson(typeMetadata); }, }; diff --git a/sdks/ts/packages/golem-ts-sdk/src/webhook.ts b/sdks/ts/packages/golem-ts-sdk/src/webhook.ts index befb5ecee2..4719cd423d 100644 --- a/sdks/ts/packages/golem-ts-sdk/src/webhook.ts +++ b/sdks/ts/packages/golem-ts-sdk/src/webhook.ts @@ -45,7 +45,8 @@ export class WebhookHandler implements PromiseLike { then( onfulfilled?: ((value: WebhookRequestPayload) => TResult1 | PromiseLike) | null, - onrejected?: ((reason: any) => TResult2 | PromiseLike) | null, + // @fixme can we use a string here? + onrejected?: ((_reason: unknown) => TResult2 | PromiseLike) | null, ): Promise { return this.wait().then(onfulfilled, onrejected); } diff --git a/sdks/ts/packages/golem-ts-sdk/tests/agentsInit.ts b/sdks/ts/packages/golem-ts-sdk/tests/agentsInit.ts index 485db48173..dbd4f3137f 100644 --- a/sdks/ts/packages/golem-ts-sdk/tests/agentsInit.ts +++ b/sdks/ts/packages/golem-ts-sdk/tests/agentsInit.ts @@ -20,7 +20,7 @@ const SampleAgentModuleName = './validAgents'; -import { TypeMetadata } from '@golemcloud/golem-ts-types-core'; +import { TypeMetadata, MetadataJSON } from '@golemcloud/golem-ts-types-core'; // `pnpm run test` will generate metadata import { Metadata } from '../.metadata/generated-types'; @@ -29,7 +29,7 @@ import { TypescriptTypeRegistry } from '../src'; // This setup is ran before every test suite (vitest worker) // and represents the entry point of any code-first user code -TypescriptTypeRegistry.register(Metadata); +TypescriptTypeRegistry.register(Metadata as MetadataJSON); // Only import the file with valid agents, as invalid agents // will break testSetup since their decorators fail diff --git a/sdks/ts/packages/golem-ts-sdk/tests/decorator.test.ts b/sdks/ts/packages/golem-ts-sdk/tests/decorator.test.ts index 47d7650bfa..3f67a2df71 100644 --- a/sdks/ts/packages/golem-ts-sdk/tests/decorator.test.ts +++ b/sdks/ts/packages/golem-ts-sdk/tests/decorator.test.ts @@ -804,7 +804,7 @@ describe('Annotated FooAgent class', () => { lowBits: BigInt(5678), }; - (globalThis as any).currentAgentId = `foo-agent("hello")[${uuid.highBits}-${uuid.lowBits}]`; + globalThis.currentAgentId = `foo-agent("hello")[${uuid.highBits}-${uuid.lowBits}]`; const fooResult = initiator.initiate( { @@ -870,7 +870,7 @@ describe('Annotated SingletonAgent class', () => { val: [], }; - (globalThis as any).currentAgentId = `singleton-agent(${JSON.stringify(params)})`; + globalThis.currentAgentId = `singleton-agent(${JSON.stringify(params)})`; const singleton = initiator.initiate(params, { tag: 'anonymous' }); expect(singleton.tag).toEqual('ok'); diff --git a/sdks/ts/packages/golem-ts-sdk/tests/http.test.ts b/sdks/ts/packages/golem-ts-sdk/tests/http.test.ts index 062aa1a39a..d7ce17e45c 100644 --- a/sdks/ts/packages/golem-ts-sdk/tests/http.test.ts +++ b/sdks/ts/packages/golem-ts-sdk/tests/http.test.ts @@ -16,7 +16,12 @@ import { describe, it } from 'vitest'; import { getHttpMountDetails } from '../src/internal/http/mount'; import { AgentDecoratorOptions } from '../src'; import { parseQuery } from '../src/internal/http/query'; -import { AgentMethod, HttpEndpointDetails, HttpMountDetails } from 'golem:agent/common@1.5.0'; +import { + AgentConstructor, + AgentMethod, + HttpEndpointDetails, + HttpMountDetails, +} from 'golem:agent/common@1.5.0'; import { validateHttpEndpoint, validateHttpMount } from '../src/internal/http/validation'; describe('getHttpMountDetails – basic behavior', () => { @@ -165,7 +170,7 @@ describe('validateHttpMountWithConstructor', () => { inputSchema: { val: names.map((n) => [n, {}]), }, - } as any; + } as Partial as AgentConstructor; } it('passes when all constructor variables are provided via path variables', () => { @@ -213,7 +218,7 @@ describe('validateHttpEndpoint', () => { headerName: `X-${v}`, variableName: v, })), - } as any; + } as Partial as HttpEndpointDetails; } function method(vars: string[], endpoints: HttpEndpointDetails[]): AgentMethod { diff --git a/sdks/ts/packages/golem-ts-sdk/tests/invalid.agents.test.ts b/sdks/ts/packages/golem-ts-sdk/tests/invalid.agents.test.ts index 345f39ad31..c46265ff1d 100644 --- a/sdks/ts/packages/golem-ts-sdk/tests/invalid.agents.test.ts +++ b/sdks/ts/packages/golem-ts-sdk/tests/invalid.agents.test.ts @@ -197,14 +197,16 @@ test('Undecorated agent that extends BaseAgent throws reasonable error messages' }); test('Agent without BaseAgent throws reasonable error messages', () => { - // new AgentWithoutBaseAgent will result in calling decorators that fails + // Calling agent() directly as a function to test the runtime check, + // since TypeScript's type system now correctly prevents @agent() on non-BaseAgent classes expect(() => { - @agent() class AgentWithoutBaseAgent { async foo(): Promise { return; } } + // eslint-disable-next-line @typescript-eslint/no-explicit-any -- testing runtime error for non-BaseAgent class + (agent() as (ctor: new (...args: unknown[]) => unknown) => void)(AgentWithoutBaseAgent); }).toThrowError( 'Invalid agent declaration: `AgentWithoutBaseAgent` must extend `BaseAgent` to be decorated with @agent()', ); diff --git a/sdks/ts/packages/golem-ts-sdk/tests/invoke.test.ts b/sdks/ts/packages/golem-ts-sdk/tests/invoke.test.ts index 159e52b2c1..dee059b197 100644 --- a/sdks/ts/packages/golem-ts-sdk/tests/invoke.test.ts +++ b/sdks/ts/packages/golem-ts-sdk/tests/invoke.test.ts @@ -840,9 +840,9 @@ function initiateFooAgent(constructorParam: string, simpleAgentClassMeta: ClassM function testInvoke( methodName: string, - parameterNameAndValues: [string, any][], + parameterNameAndValues: [string, unknown][], resolvedAgent: ResolvedAgent, - expectedOutput: any, + expectedOutput: unknown, multimodal: boolean, expectedDataValueOutput?: DataValue, ) { @@ -873,7 +873,7 @@ function testInvoke( } function createInputDataValue( - parameterNameAndValues: [string, any][], + parameterNameAndValues: [string, unknown][], methodName: string, multimodal: boolean, ): DataValue { @@ -997,7 +997,7 @@ function deserializeReturnValue( } function overrideSelfAgentId(agentId: AgentId) { - (globalThis as any).currentAgentId = agentId.value; + globalThis.currentAgentId = agentId.value; // vi.mock('wasi:cli/environment@0.2.3', () => ({ // getEnvironment: (): [string, string][] => { // return [['GOLEM_AGENT_ID', agentId.value]]; diff --git a/sdks/ts/packages/golem-ts-sdk/tests/sampleInvalidAgents.ts b/sdks/ts/packages/golem-ts-sdk/tests/sampleInvalidAgents.ts index 003961b9e2..8876f967b2 100644 --- a/sdks/ts/packages/golem-ts-sdk/tests/sampleInvalidAgents.ts +++ b/sdks/ts/packages/golem-ts-sdk/tests/sampleInvalidAgents.ts @@ -34,6 +34,7 @@ class InvalidAgent extends BaseAgent { iterable: Iterable, asyncIterator: AsyncIterator, asyncIterable: AsyncIterable, + // eslint-disable-next-line @typescript-eslint/no-explicit-any -- testing that `any` param type is rejected any: any, string: String, boolean: Boolean, @@ -73,6 +74,7 @@ class InvalidAgent extends BaseAgent { throw new Error('Unimplemented'); } + // eslint-disable-next-line @typescript-eslint/no-explicit-any -- testing that `any` return type is rejected async fun7(input: string): Promise { throw new Error('Unimplemented'); } diff --git a/sdks/ts/packages/golem-ts-sdk/tests/testSetup.ts b/sdks/ts/packages/golem-ts-sdk/tests/testSetup.ts index 14adfa4d4d..5df89320da 100644 --- a/sdks/ts/packages/golem-ts-sdk/tests/testSetup.ts +++ b/sdks/ts/packages/golem-ts-sdk/tests/testSetup.ts @@ -80,10 +80,10 @@ vi.mock('golem:core/types@1.5.0', () => ({ }, })); -(globalThis as any).currentAgentId = 'foo-agent(123)'; +globalThis.currentAgentId = 'foo-agent(123)'; vi.mock('wasi:cli/environment@0.2.3', () => ({ - getEnvironment: () => [['GOLEM_AGENT_ID', (globalThis as any).currentAgentId]], + getEnvironment: () => [['GOLEM_AGENT_ID', globalThis.currentAgentId]], })); await import('./agentsInit'); diff --git a/sdks/ts/packages/golem-ts-sdk/tests/type.mapping.test.ts b/sdks/ts/packages/golem-ts-sdk/tests/type.mapping.test.ts index 66847921af..93d9579656 100644 --- a/sdks/ts/packages/golem-ts-sdk/tests/type.mapping.test.ts +++ b/sdks/ts/packages/golem-ts-sdk/tests/type.mapping.test.ts @@ -233,7 +233,7 @@ test('Union with literals to AnalysedType', () => { expect(unionWithLiterals).toEqual(expectedAnalysedType); }); -function checkPrimitiveFields(fields: any[]) { +function checkPrimitiveFields(fields: NameTypePair[]) { const expected = { numberProp: { kind: 'f64', @@ -258,7 +258,7 @@ function checkPrimitiveFields(fields: any[]) { for (const [name, expectedType] of Object.entries(expected)) { const field = fields.find((f) => f.name === name); expect(field).toBeDefined(); - expect(field.typ).toMatchObject(expectedType); + expect(field!.typ).toMatchObject(expectedType); } } @@ -801,7 +801,7 @@ function checkUnionComplexFields(fields: NameTypePair[]) { expect(unionComplexFields).toEqual(expected); } -function checkUnionFields(fields: any[]) { +function checkUnionFields(fields: NameTypePair[]) { const unionField = fields.find((f) => f.name === 'unionProp'); const expected = { @@ -837,7 +837,7 @@ function checkUnionFields(fields: any[]) { expect(unionField).toEqual(expected); } -function checkObjectFields(fields: any[]) { +function checkObjectFields(fields: NameTypePair[]) { const objectFields = fields.filter((f) => f.name.startsWith('objectProp')); expect(objectFields.length).toBeGreaterThan(0); @@ -858,33 +858,39 @@ function checkObjectFields(fields: any[]) { objectFields.forEach((field) => { expect(field.typ.kind).toBe('record'); - expect(field.typ.value.fields).toEqual(expected); + if (field.typ.kind === 'record') { + expect(field.typ.value.fields).toEqual(expected); + } }); } -function checkListFields(fields: any[]) { +function checkListFields(fields: NameTypePair[]) { const listFields = fields.filter((f) => f.name.startsWith('listProp')); expect(listFields.length).toBeGreaterThan(0); listFields.forEach((field) => { expect(field.typ.kind).toBe('list'); - expect(field.typ.value.inner.kind).toBe('string'); // Assuming the inner type is string + if (field.typ.kind === 'list') { + expect(field.typ.value.inner.kind).toBe('string'); // Assuming the inner type is string + } }); } -function checkListObjectFields(fields: any[]) { +function checkListObjectFields(fields: NameTypePair[]) { const listObjectFields = fields.filter((f) => f.name.startsWith('listObjectProp')); expect(listObjectFields.length).toBeGreaterThan(0); listObjectFields.forEach((field) => { expect(field.typ.kind).toBe('list'); - expect(field.typ.value.inner.kind).toBe('record'); - const innerFields = getRecordFieldsFromAnalysedType(field.typ.value.inner)!; - expect(innerFields.length).toBe(3); // Assuming 3 fields in the object type + if (field.typ.kind === 'list') { + expect(field.typ.value.inner.kind).toBe('record'); + const innerFields = getRecordFieldsFromAnalysedType(field.typ.value.inner)!; + expect(innerFields.length).toBe(3); // Assuming 3 fields in the object type + } }); } -function checkTupleFields(fields: any[]) { +function checkTupleFields(fields: NameTypePair[]) { const tupleFields = fields.filter((f) => f.name.startsWith('tupleProp')); tupleFields.forEach((field) => { @@ -902,7 +908,7 @@ function checkTupleFields(fields: any[]) { }); } -function checkTupleWithObjectFields(fields: any[]) { +function checkTupleWithObjectFields(fields: NameTypePair[]) { const tupleObjectFields = fields.filter((f) => f.name.startsWith('tupleObjectProp')); expect(tupleObjectFields.length).toBeGreaterThan(0); @@ -947,24 +953,26 @@ function checkTupleWithObjectFields(fields: any[]) { }); } -function checkMapFields(fields: any[]) { +function checkMapFields(fields: NameTypePair[]) { const mapFields = fields.filter((f) => f.name.startsWith('mapProp')); expect(mapFields.length).toBeGreaterThan(0); // list of tuples, where each tuple is a key-value pair mapFields.forEach((field) => { expect(field.typ.kind).toBe('list'); - if (field.typ.kind == 'list') { + if (field.typ.kind === 'list') { expect(field.typ.value.inner.kind).toBe('tuple'); const inner = field.typ.value.inner; - expect(inner.value.items.length).toBe(2); - expect(inner.value.items[0].kind).toBe('string'); - expect(inner.value.items[1].kind).toBe('f64'); + if (inner.kind === 'tuple') { + expect(inner.value.items.length).toBe(2); + expect(inner.value.items[0].kind).toBe('string'); + expect(inner.value.items[1].kind).toBe('f64'); + } } }); } -function checkObjectComplexFields(fields: any[]) { +function checkObjectComplexFields(fields: NameTypePair[]) { const objectFields = fields.filter((f) => f.name.startsWith('objectComplexProp')); expect(objectFields.length).toBeGreaterThan(0); @@ -1241,6 +1249,8 @@ function checkObjectComplexFields(fields: any[]) { objectFields.forEach((field) => { expect(field.typ.kind).toBe('record'); - expect(field.typ.value.fields).toEqual(expected); + if (field.typ.kind === 'record') { + expect(field.typ.value.fields).toEqual(expected); + } }); } diff --git a/sdks/ts/packages/golem-ts-sdk/tests/validAgents.ts b/sdks/ts/packages/golem-ts-sdk/tests/validAgents.ts index dfabfde3e4..f6f4c7e2ae 100644 --- a/sdks/ts/packages/golem-ts-sdk/tests/validAgents.ts +++ b/sdks/ts/packages/golem-ts-sdk/tests/validAgents.ts @@ -15,6 +15,7 @@ import { agent, BaseAgent, + Client, MultimodalAdvanced, UnstructuredBinary, UnstructuredText, @@ -139,7 +140,7 @@ export class FooAgent extends BaseAgent { unstructuredTextWithLanguageCode: UnstructuredText<['en', 'de']>, unstructuredBinary: UnstructuredBinary<['application/json']>, ): Promise { - const remoteClient = BarAgent.get( + const remoteClient: Client = BarAgent.get( testInterfaceType, optionalStringType, optionalUnionType, diff --git a/sdks/ts/packages/golem-ts-sdk/types/globals.d.ts b/sdks/ts/packages/golem-ts-sdk/types/globals.d.ts new file mode 100644 index 0000000000..a1114b4269 --- /dev/null +++ b/sdks/ts/packages/golem-ts-sdk/types/globals.d.ts @@ -0,0 +1 @@ +declare var currentAgentId: string; diff --git a/sdks/ts/packages/golem-ts-typegen/eslint.config.mjs b/sdks/ts/packages/golem-ts-typegen/eslint.config.mjs index 4aca3e7aaa..9e43f6e308 100644 --- a/sdks/ts/packages/golem-ts-typegen/eslint.config.mjs +++ b/sdks/ts/packages/golem-ts-typegen/eslint.config.mjs @@ -27,6 +27,7 @@ export default [ 'no-dupe-keys': 'error', 'no-duplicate-case': 'error', eqeqeq: ['error', 'always'], + '@typescript-eslint/no-explicit-any': 'error', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-misused-promises': 'error', }, diff --git a/sdks/ts/packages/golem-ts-typegen/src/index.ts b/sdks/ts/packages/golem-ts-typegen/src/index.ts index 6ba1cc3346..0482961da0 100644 --- a/sdks/ts/packages/golem-ts-typegen/src/index.ts +++ b/sdks/ts/packages/golem-ts-typegen/src/index.ts @@ -27,7 +27,9 @@ import { } from 'ts-morph'; import { buildJSONFromType, + ClassMetadataJSON, LiteTypeJSON, + MethodMetadataJSON, Node, Symbol, Type, @@ -709,7 +711,7 @@ export function saveAndClearInMemoryMetadata() { fs.mkdirSync(METADATA_DIR); } - const json: Record = {}; + const json: Record = {}; for (const [className, meta] of TypeMetadata.getAll().entries()) { const constructorArgsJSON = meta.constructorArgs.map((arg) => ({ @@ -717,7 +719,7 @@ export function saveAndClearInMemoryMetadata() { type: buildJSONFromType(arg.type), })); - const methodsObj: Record = {}; + const methodsObj: Record = {}; for (const [methodName, { methodParams, returnType }] of meta.methods) { const paramsJSON: Record = {}; for (const [paramName, paramType] of methodParams.entries()) { diff --git a/sdks/ts/packages/golem-ts-types-core/eslint.config.mjs b/sdks/ts/packages/golem-ts-types-core/eslint.config.mjs index 21b5afc116..08e416a66a 100644 --- a/sdks/ts/packages/golem-ts-types-core/eslint.config.mjs +++ b/sdks/ts/packages/golem-ts-types-core/eslint.config.mjs @@ -24,6 +24,7 @@ export default [ 'no-dupe-keys': 'error', 'no-duplicate-case': 'error', eqeqeq: ['error', 'always'], + '@typescript-eslint/no-explicit-any': 'error', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-misused-promises': 'error', }, diff --git a/sdks/ts/packages/golem-ts-types-core/src/metadata.ts b/sdks/ts/packages/golem-ts-types-core/src/metadata.ts index cd98ecbeb8..d45e14562a 100644 --- a/sdks/ts/packages/golem-ts-types-core/src/metadata.ts +++ b/sdks/ts/packages/golem-ts-types-core/src/metadata.ts @@ -32,6 +32,21 @@ export type ClassMetadata = { methods: Map; }; +export type MethodMetadataJSON = { + methodParams: Record; + returnType: LiteTypeJSON; +}; + +export type ClassMetadataJSON = { + constructorArgs: Array<{ + name: string; + type: LiteTypeJSON; + }>; + methods: Record; +}; + +export type MetadataJSON = Record; + const Metadata = new Map(); export const TypeMetadata = { @@ -60,14 +75,11 @@ export const TypeMetadata = { Metadata.clear(); }, - // TODO: avoid any. Here any simply represents the json representation of Metadata + // Represents the json representation of Metadata // such that every Type is represented as LiteTypeJSON - loadFromJson(json: any) { + loadFromJson(json: MetadataJSON) { for (const [className, meta] of Object.entries(json)) { - const constructorArgsJSON = (meta as any).constructorArgs as Array<{ - name: string; - type: LiteTypeJSON; - }>; + const constructorArgsJSON = meta.constructorArgs; const constructorArgs = constructorArgsJSON.map((arg) => ({ name: arg.name, @@ -76,15 +88,15 @@ export const TypeMetadata = { const methodsMap = new Map; returnType: Type }>(); - for (const [methodName, methodMeta] of Object.entries((meta as any).methods)) { + for (const [methodName, methodMeta] of Object.entries(meta.methods)) { const methodParamsMap = new Map(); - for (const [paramName, paramJSON] of Object.entries((methodMeta as any).methodParams)) { - methodParamsMap.set(paramName, buildTypeFromJSON(paramJSON as LiteTypeJSON)); + for (const [paramName, paramJSON] of Object.entries(methodMeta.methodParams)) { + methodParamsMap.set(paramName, buildTypeFromJSON(paramJSON)); } methodsMap.set(methodName, { methodParams: methodParamsMap, - returnType: buildTypeFromJSON((methodMeta as any).returnType as LiteTypeJSON), + returnType: buildTypeFromJSON(methodMeta.returnType), }); } diff --git a/sdks/ts/packages/golem-ts-types-core/src/type-lite.ts b/sdks/ts/packages/golem-ts-types-core/src/type-lite.ts index ef718d710e..b462ee591c 100644 --- a/sdks/ts/packages/golem-ts-types-core/src/type-lite.ts +++ b/sdks/ts/packages/golem-ts-types-core/src/type-lite.ts @@ -112,7 +112,7 @@ export function unwrapAlias(t: Type): Type { const decl = alias.getDeclarations()[0]; if (!decl) break; - const target = (alias as any)._getAliasTarget?.() as Type | undefined; + const target = alias.getAliasTarget(); if (!target || target === current) break; current = target; diff --git a/sdks/ts/pnpm-lock.yaml b/sdks/ts/pnpm-lock.yaml index 2d801ec080..75b5af6991 100644 --- a/sdks/ts/pnpm-lock.yaml +++ b/sdks/ts/pnpm-lock.yaml @@ -283,7 +283,7 @@ importers: version: 8.42.0(eslint@9.35.0)(typescript@5.9.2) vitest: specifier: ^3.2.4 - version: 3.2.4(@types/node@24.3.1) + version: 3.2.4(@types/node@25.3.1) packages: @@ -685,6 +685,9 @@ packages: '@types/node@24.3.1': resolution: {integrity: sha512-3vXmQDXy+woz+gnrTvuvNrPzekOi+Ds0ReMxw0LzBiK3a+1k0kQn9f2NWk+lgD4rJehFUmYy2gMhJ2ZI+7YP9g==} + '@types/node@25.3.1': + resolution: {integrity: sha512-hj9YIJimBCipHVfHKRMnvmHg+wfhKc0o4mTtXh9pKBjC8TLJzz0nzGmLi5UJsYAUgSvXFHgb0V2oY10DUFtImw==} + '@types/resolve@1.20.2': resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} @@ -1406,6 +1409,9 @@ packages: undici-types@7.10.0: resolution: {integrity: sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==} + undici-types@7.18.2: + resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==} + universalify@2.0.1: resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} engines: {node: '>= 10.0.0'} @@ -1414,7 +1420,7 @@ packages: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} uuid@13.0.0: - resolution: {integrity: sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==, tarball: https://registry.npmjs.org/uuid/-/uuid-13.0.0.tgz} + resolution: {integrity: sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==} hasBin: true vite-node@3.2.4: @@ -1797,6 +1803,11 @@ snapshots: dependencies: undici-types: 7.10.0 + '@types/node@25.3.1': + dependencies: + undici-types: 7.18.2 + optional: true + '@types/resolve@1.20.2': {} '@types/shell-quote@1.7.5': {} @@ -1910,6 +1921,14 @@ snapshots: optionalDependencies: vite: 7.1.4(@types/node@24.3.1) + '@vitest/mocker@3.2.4(vite@7.1.4(@types/node@25.3.1))': + dependencies: + '@vitest/spy': 3.2.4 + estree-walker: 3.0.3 + magic-string: 0.30.18 + optionalDependencies: + vite: 7.1.4(@types/node@25.3.1) + '@vitest/pretty-format@3.2.4': dependencies: tinyrainbow: 2.0.0 @@ -2545,6 +2564,9 @@ snapshots: undici-types@7.10.0: {} + undici-types@7.18.2: + optional: true + universalify@2.0.1: {} uri-js@4.4.1: @@ -2574,6 +2596,27 @@ snapshots: - tsx - yaml + vite-node@3.2.4(@types/node@25.3.1): + dependencies: + cac: 6.7.14 + debug: 4.4.1 + es-module-lexer: 1.7.0 + pathe: 2.0.3 + vite: 7.1.4(@types/node@25.3.1) + transitivePeerDependencies: + - '@types/node' + - jiti + - less + - lightningcss + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - yaml + vite@7.1.4(@types/node@24.3.1): dependencies: esbuild: 0.25.9 @@ -2586,6 +2629,18 @@ snapshots: '@types/node': 24.3.1 fsevents: 2.3.3 + vite@7.1.4(@types/node@25.3.1): + dependencies: + esbuild: 0.25.9 + fdir: 6.5.0(picomatch@4.0.3) + picomatch: 4.0.3 + postcss: 8.5.6 + rollup: 4.50.0 + tinyglobby: 0.2.14 + optionalDependencies: + '@types/node': 25.3.1 + fsevents: 2.3.3 + vitest@3.2.4(@types/node@24.3.1): dependencies: '@types/chai': 5.2.2 @@ -2627,6 +2682,47 @@ snapshots: - tsx - yaml + vitest@3.2.4(@types/node@25.3.1): + dependencies: + '@types/chai': 5.2.2 + '@vitest/expect': 3.2.4 + '@vitest/mocker': 3.2.4(vite@7.1.4(@types/node@25.3.1)) + '@vitest/pretty-format': 3.2.4 + '@vitest/runner': 3.2.4 + '@vitest/snapshot': 3.2.4 + '@vitest/spy': 3.2.4 + '@vitest/utils': 3.2.4 + chai: 5.3.3 + debug: 4.4.1 + expect-type: 1.2.2 + magic-string: 0.30.18 + pathe: 2.0.3 + picomatch: 4.0.3 + std-env: 3.9.0 + tinybench: 2.9.0 + tinyexec: 0.3.2 + tinyglobby: 0.2.14 + tinypool: 1.1.1 + tinyrainbow: 2.0.0 + vite: 7.1.4(@types/node@25.3.1) + vite-node: 3.2.4(@types/node@25.3.1) + why-is-node-running: 2.3.0 + optionalDependencies: + '@types/node': 25.3.1 + transitivePeerDependencies: + - jiti + - less + - lightningcss + - msw + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - yaml + which@2.0.2: dependencies: isexe: 2.0.0