From 65b8e90d84bf27b878b09b6721a03faf06d20cb8 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Wed, 28 Jan 2026 18:47:44 +0530 Subject: [PATCH 01/25] assisted-by: chatgpt-5 Added composite command support and test coverage --- build/dockerfiles/linux-libc-ubi8.Dockerfile | 5 +- build/dockerfiles/linux-libc-ubi9.Dockerfile | 5 +- build/dockerfiles/linux-musl.Dockerfile | 5 +- code/extensions/che-commands/jest.config.js | 25 + .../extensions/che-commands/package-lock.json | 5451 +++++++++++++++-- code/extensions/che-commands/package.json | 8 +- .../che-commands/src/taskProvider.ts | 434 +- .../che-commands/tests/__mocks__/vscode.ts | 39 + code/extensions/che-commands/tests/mocks.ts | 41 + .../che-commands/tests/taskProvider.test.ts | 568 ++ .../che-commands/tsconfig.jest.json | 13 + code/extensions/che-commands/tsconfig.json | 5 +- 12 files changed, 6080 insertions(+), 519 deletions(-) create mode 100644 code/extensions/che-commands/jest.config.js create mode 100644 code/extensions/che-commands/tests/__mocks__/vscode.ts create mode 100644 code/extensions/che-commands/tests/mocks.ts create mode 100644 code/extensions/che-commands/tests/taskProvider.test.ts create mode 100644 code/extensions/che-commands/tsconfig.jest.json diff --git a/build/dockerfiles/linux-libc-ubi8.Dockerfile b/build/dockerfiles/linux-libc-ubi8.Dockerfile index cbaf2d0dbfa..ffe93d4c7ea 100644 --- a/build/dockerfiles/linux-libc-ubi8.Dockerfile +++ b/build/dockerfiles/linux-libc-ubi8.Dockerfile @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Red Hat, Inc. +# Copyright (c) 2021-2026 Red Hat, Inc. # This program and the accompanying materials are made # available under the terms of the Eclipse Public License 2.0 # which is available at https://www.eclipse.org/legal/epl-2.0/ @@ -71,6 +71,9 @@ RUN npm config set fetch-retry-mintimeout 100000 && npm config set fetch-retry-m # Grab dependencies (and force to rebuild them) RUN rm -rf /checode-compilation/node_modules && npm install --force +# Run tests for che-commands extension +RUN npm --prefix extensions/che-commands test + # Compile RUN NODE_ARCH=$(echo "console.log(process.arch)" | node) \ && NODE_VERSION=$(cat /checode-compilation/remote/.npmrc | grep target | cut -d '=' -f 2 | tr -d '"') \ diff --git a/build/dockerfiles/linux-libc-ubi9.Dockerfile b/build/dockerfiles/linux-libc-ubi9.Dockerfile index b186be3b49c..93468aa26df 100644 --- a/build/dockerfiles/linux-libc-ubi9.Dockerfile +++ b/build/dockerfiles/linux-libc-ubi9.Dockerfile @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Red Hat, Inc. +# Copyright (c) 2024-2026 Red Hat, Inc. # This program and the accompanying materials are made # available under the terms of the Eclipse Public License 2.0 # which is available at https://www.eclipse.org/legal/epl-2.0/ @@ -70,6 +70,9 @@ RUN npm config set fetch-retry-mintimeout 100000 && npm config set fetch-retry-m # Grab dependencies (and force to rebuild them) RUN rm -rf /checode-compilation/node_modules && npm install --force +# Run tests for che-commands extension +RUN npm --prefix extensions/che-commands test + # Compile RUN NODE_ARCH=$(echo "console.log(process.arch)" | node) \ && NODE_VERSION=$(cat /checode-compilation/remote/.npmrc | grep target | cut -d '=' -f 2 | tr -d '"') \ diff --git a/build/dockerfiles/linux-musl.Dockerfile b/build/dockerfiles/linux-musl.Dockerfile index 9dbf91bb59a..7c62ffe8727 100644 --- a/build/dockerfiles/linux-musl.Dockerfile +++ b/build/dockerfiles/linux-musl.Dockerfile @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2023 Red Hat, Inc. +# Copyright (c) 2021-2026 Red Hat, Inc. # This program and the accompanying materials are made # available under the terms of the Eclipse Public License 2.0 # which is available at https://www.eclipse.org/legal/epl-2.0/ @@ -47,6 +47,9 @@ RUN npm config set fetch-retry-mintimeout 100000 && npm config set fetch-retry-m # Grab dependencies (and force to rebuild them) RUN rm -rf /checode-compilation/node_modules && npm install --force +# Run tests for che-commands extension +RUN npm --prefix extensions/che-commands test + # Rebuild platform specific dependencies RUN npm rebuild diff --git a/code/extensions/che-commands/jest.config.js b/code/extensions/che-commands/jest.config.js new file mode 100644 index 00000000000..a0543c584d5 --- /dev/null +++ b/code/extensions/che-commands/jest.config.js @@ -0,0 +1,25 @@ +/********************************************************************** + * Copyright (c) 2026 Red Hat, Inc. + * + * This program and the accompanying materials are made + * available under the terms of the Eclipse Public License 2.0 + * which is available at https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + ***********************************************************************/ + +/* eslint-disable header/header */ + +//@ts-check + +export const preset = 'ts-jest'; +export const testEnvironment = 'node'; +export const roots = ['/tests']; +export const globals = { + 'ts-jest': { + tsconfig: '/tsconfig.jest.json' + } +}; +export const moduleNameMapper = { + '^vscode$': '/tests/__mocks__/vscode.ts' +}; diff --git a/code/extensions/che-commands/package-lock.json b/code/extensions/che-commands/package-lock.json index 08bee2a8f4b..cb884ed93d3 100644 --- a/code/extensions/che-commands/package-lock.json +++ b/code/extensions/che-commands/package-lock.json @@ -18,13 +18,512 @@ }, "devDependencies": { "@types/fs-extra": "^9.0.13", + "@types/jest": "^30.0.0", "@types/js-yaml": "^4.0.5", - "@types/node": "22.x" + "@types/node": "22.x", + "jest": "^30.2.0", + "ts-jest": "^29.4.6" }, "engines": { "vscode": "^1.63.0" } }, + "node_modules/@babel/code-frame": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.28.6.tgz", + "integrity": "sha512-JYgintcMjRiCvS8mMECzaEn+m3PfoQiyqukOMCCVQtoJGYJw8j/8LBJEiqkHLkfwCcs74E3pbAUFNg7d9VNJ+Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.28.5", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.6.tgz", + "integrity": "sha512-2lfu57JtzctfIrcGMz992hyLlByuzgIk58+hhGCxjKZ3rWI82NnVLjXcaTqkI2NvlcvOskZaiZ5kjUALo3Lpxg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.6.tgz", + "integrity": "sha512-H3mcG6ZDLTlYfaSNi0iOKkigqMFvkTKlGUYlD8GW7nNOYRrevuA46iTypPyv+06V3fEmvvazfntkBU34L0azAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.28.6", + "@babel/generator": "^7.28.6", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helpers": "^7.28.6", + "@babel/parser": "^7.28.6", + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.6.tgz", + "integrity": "sha512-lOoVRwADj8hjf7al89tvQ2a1lf53Z+7tiXMgpZJL3maQPDxh0DgLMN62B2MKUOFcoodBHLMbDM6WAbKgNy5Suw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.6", + "@babel/types": "^7.28.6", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", + "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.28.6", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz", + "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", + "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-validator-identifier": "^7.28.5", + "@babel/traverse": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz", + "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz", + "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.6.tgz", + "integrity": "sha512-TeR9zWR18BvbfPmGbLampPMW+uW1NZnJlRuuHso8i87QZNq2JRF9i6RgxRqtEq+wQGsS19NNTWr2duhnE49mfQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.6" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.28.6.tgz", + "integrity": "sha512-jiLC0ma9XkQT3TKJ9uYvlakm66Pamywo+qwL+oL8HJOvc6TWdZXVfhqJr8CCzbSGUAbDOzlGHJC1U+vRfLQDvw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.28.6.tgz", + "integrity": "sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.28.6.tgz", + "integrity": "sha512-+nDNmQye7nlnuuHDboPbGm00Vqg3oO8niRRL27/4LYHUsHYh0zJ1xWOz0uRwNFmM1Avzk8wZbc6rdiYhomzv/A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz", + "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.28.6", + "@babel/parser": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.6.tgz", + "integrity": "sha512-fgWX62k02qtjqdSNTAGxmKYY/7FSL9WAS1o2Hu5+I5m9T0yxZzr4cnrfXQ/MX0rIifthCSs6FKTlzYbJcPtMNg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.28.6", + "@babel/generator": "^7.28.6", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.28.6", + "@babel/template": "^7.28.6", + "@babel/types": "^7.28.6", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.6.tgz", + "integrity": "sha512-0ZrskXVEHSWIqZM/sQZ4EV3jZJXRkio/WCxaqKZP1g//CEWEPSfeZFcms4XeKBCHU0ZKnIkdJeU/kF+eRp5lBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true, + "license": "MIT" + }, "node_modules/@devfile/api": { "version": "2.3.0-1738854228", "resolved": "https://registry.npmjs.org/@devfile/api/-/api-2.3.0-1738854228.tgz", @@ -38,15 +537,510 @@ "url-parse": "^1.4.3" } }, - "node_modules/@jsep-plugin/assignment": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@jsep-plugin/assignment/-/assignment-1.3.0.tgz", - "integrity": "sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ==", - "engines": { - "node": ">= 10.16.0" - }, - "peerDependencies": { - "jsep": "^0.4.0||^1.0.0" + "node_modules/@emnapi/core": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.8.1.tgz", + "integrity": "sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.1.0", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.8.1.tgz", + "integrity": "sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.1.0.tgz", + "integrity": "sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", + "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-30.2.0.tgz", + "integrity": "sha512-+O1ifRjkvYIkBqASKWgLxrpEhQAAE7hY77ALLUufSk5717KfOShg6IbqLmdsLMPdUiFvA2kTs0R7YZy+l0IzZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "30.2.0", + "@types/node": "*", + "chalk": "^4.1.2", + "jest-message-util": "30.2.0", + "jest-util": "30.2.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/core": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-30.2.0.tgz", + "integrity": "sha512-03W6IhuhjqTlpzh/ojut/pDB2LPRygyWX8ExpgHtQA8H/3K7+1vKmcINx5UzeOX1se6YEsBsOHQ1CRzf3fOwTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "30.2.0", + "@jest/pattern": "30.0.1", + "@jest/reporters": "30.2.0", + "@jest/test-result": "30.2.0", + "@jest/transform": "30.2.0", + "@jest/types": "30.2.0", + "@types/node": "*", + "ansi-escapes": "^4.3.2", + "chalk": "^4.1.2", + "ci-info": "^4.2.0", + "exit-x": "^0.2.2", + "graceful-fs": "^4.2.11", + "jest-changed-files": "30.2.0", + "jest-config": "30.2.0", + "jest-haste-map": "30.2.0", + "jest-message-util": "30.2.0", + "jest-regex-util": "30.0.1", + "jest-resolve": "30.2.0", + "jest-resolve-dependencies": "30.2.0", + "jest-runner": "30.2.0", + "jest-runtime": "30.2.0", + "jest-snapshot": "30.2.0", + "jest-util": "30.2.0", + "jest-validate": "30.2.0", + "jest-watcher": "30.2.0", + "micromatch": "^4.0.8", + "pretty-format": "30.2.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/diff-sequences": { + "version": "30.0.1", + "resolved": "https://registry.npmjs.org/@jest/diff-sequences/-/diff-sequences-30.0.1.tgz", + "integrity": "sha512-n5H8QLDJ47QqbCNn5SuFjCRDrOLEZ0h8vAHCK5RL9Ls7Xa8AQLa/YxAc9UjFqoEDM48muwtBGjtMY5cr0PLDCw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/environment": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-30.2.0.tgz", + "integrity": "sha512-/QPTL7OBJQ5ac09UDRa3EQes4gt1FTEG/8jZ/4v5IVzx+Cv7dLxlVIvfvSVRiiX2drWyXeBjkMSR8hvOWSog5g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/fake-timers": "30.2.0", + "@jest/types": "30.2.0", + "@types/node": "*", + "jest-mock": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-30.2.0.tgz", + "integrity": "sha512-V9yxQK5erfzx99Sf+7LbhBwNWEZ9eZay8qQ9+JSC0TrMR1pMDHLMY+BnVPacWU6Jamrh252/IKo4F1Xn/zfiqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "30.2.0", + "jest-snapshot": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-30.2.0.tgz", + "integrity": "sha512-1JnRfhqpD8HGpOmQp180Fo9Zt69zNtC+9lR+kT7NVL05tNXIi+QC8Csz7lfidMoVLPD3FnOtcmp0CEFnxExGEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/get-type": "30.1.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-30.2.0.tgz", + "integrity": "sha512-HI3tRLjRxAbBy0VO8dqqm7Hb2mIa8d5bg/NJkyQcOk7V118ObQML8RC5luTF/Zsg4474a+gDvhce7eTnP4GhYw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "30.2.0", + "@sinonjs/fake-timers": "^13.0.0", + "@types/node": "*", + "jest-message-util": "30.2.0", + "jest-mock": "30.2.0", + "jest-util": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/get-type": { + "version": "30.1.0", + "resolved": "https://registry.npmjs.org/@jest/get-type/-/get-type-30.1.0.tgz", + "integrity": "sha512-eMbZE2hUnx1WV0pmURZY9XoXPkUYjpc55mb0CrhtdWLtzMQPFvu/rZkTLZFTsdaVQa+Tr4eWAteqcUzoawq/uA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-30.2.0.tgz", + "integrity": "sha512-b63wmnKPaK+6ZZfpYhz9K61oybvbI1aMcIs80++JI1O1rR1vaxHUCNqo3ITu6NU0d4V34yZFoHMn/uoKr/Rwfw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "30.2.0", + "@jest/expect": "30.2.0", + "@jest/types": "30.2.0", + "jest-mock": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/pattern": { + "version": "30.0.1", + "resolved": "https://registry.npmjs.org/@jest/pattern/-/pattern-30.0.1.tgz", + "integrity": "sha512-gWp7NfQW27LaBQz3TITS8L7ZCQ0TLvtmI//4OwlQRx4rnWxcPNIYjxZpDcN4+UlGxgm3jS5QPz8IPTCkb59wZA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "jest-regex-util": "30.0.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-30.2.0.tgz", + "integrity": "sha512-DRyW6baWPqKMa9CzeiBjHwjd8XeAyco2Vt8XbcLFjiwCOEKOvy82GJ8QQnJE9ofsxCMPjH4MfH8fCWIHHDKpAQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "30.2.0", + "@jest/test-result": "30.2.0", + "@jest/transform": "30.2.0", + "@jest/types": "30.2.0", + "@jridgewell/trace-mapping": "^0.3.25", + "@types/node": "*", + "chalk": "^4.1.2", + "collect-v8-coverage": "^1.0.2", + "exit-x": "^0.2.2", + "glob": "^10.3.10", + "graceful-fs": "^4.2.11", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^5.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "30.2.0", + "jest-util": "30.2.0", + "jest-worker": "30.2.0", + "slash": "^3.0.0", + "string-length": "^4.0.2", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/schemas": { + "version": "30.0.5", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-30.0.5.tgz", + "integrity": "sha512-DmdYgtezMkh3cpU8/1uyXakv3tJRcmcXxBOcO0tbaozPwpmh4YMsnWrQm9ZmZMfa5ocbxzbFk6O4bDPEc/iAnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sinclair/typebox": "^0.34.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/snapshot-utils": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/snapshot-utils/-/snapshot-utils-30.2.0.tgz", + "integrity": "sha512-0aVxM3RH6DaiLcjj/b0KrIBZhSX1373Xci4l3cW5xiUWPctZ59zQ7jj4rqcJQ/Z8JuN/4wX3FpJSa3RssVvCug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "30.2.0", + "chalk": "^4.1.2", + "graceful-fs": "^4.2.11", + "natural-compare": "^1.4.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "30.0.1", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-30.0.1.tgz", + "integrity": "sha512-MIRWMUUR3sdbP36oyNyhbThLHyJ2eEDClPCiHVbrYAe5g3CHRArIVpBw7cdSB5fr+ofSfIb2Tnsw8iEHL0PYQg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.25", + "callsites": "^3.1.0", + "graceful-fs": "^4.2.11" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-30.2.0.tgz", + "integrity": "sha512-RF+Z+0CCHkARz5HT9mcQCBulb1wgCP3FBvl9VFokMX27acKphwyQsNuWH3c+ojd1LeWBLoTYoxF0zm6S/66mjg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "30.2.0", + "@jest/types": "30.2.0", + "@types/istanbul-lib-coverage": "^2.0.6", + "collect-v8-coverage": "^1.0.2" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-30.2.0.tgz", + "integrity": "sha512-wXKgU/lk8fKXMu/l5Hog1R61bL4q5GCdT6OJvdAFz1P+QrpoFuLU68eoKuVc4RbrTtNnTL5FByhWdLgOPSph+Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/test-result": "30.2.0", + "graceful-fs": "^4.2.11", + "jest-haste-map": "30.2.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-30.2.0.tgz", + "integrity": "sha512-XsauDV82o5qXbhalKxD7p4TZYYdwcaEXC77PPD2HixEFF+6YGppjrAAQurTl2ECWcEomHBMMNS9AH3kcCFx8jA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.27.4", + "@jest/types": "30.2.0", + "@jridgewell/trace-mapping": "^0.3.25", + "babel-plugin-istanbul": "^7.0.1", + "chalk": "^4.1.2", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.11", + "jest-haste-map": "30.2.0", + "jest-regex-util": "30.0.1", + "jest-util": "30.2.0", + "micromatch": "^4.0.8", + "pirates": "^4.0.7", + "slash": "^3.0.0", + "write-file-atomic": "^5.0.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/types": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-30.2.0.tgz", + "integrity": "sha512-H9xg1/sfVvyfU7o3zMfBEjQ1gcsdeTMgqHoYdN79tuLqfTtuu7WckRA1R5whDwOzxaZAeMKTYWqP+WCAi0CHsg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/pattern": "30.0.1", + "@jest/schemas": "30.0.5", + "@types/istanbul-lib-coverage": "^2.0.6", + "@types/istanbul-reports": "^3.0.4", + "@types/node": "*", + "@types/yargs": "^17.0.33", + "chalk": "^4.1.2" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@jsep-plugin/assignment": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@jsep-plugin/assignment/-/assignment-1.3.0.tgz", + "integrity": "sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ==", + "engines": { + "node": ">= 10.16.0" + }, + "peerDependencies": { + "jsep": "^0.4.0||^1.0.0" } }, "node_modules/@jsep-plugin/regex": { @@ -54,685 +1048,3310 @@ "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.4.tgz", "integrity": "sha512-q7qL4Mgjs1vByCaTnDFcBnV9HS7GVPJX5vyVoCgZHNSC9rjwIlmbXG5sUuorR5ndfHAIlJ8pVStxvjXHbNvtUg==", "engines": { - "node": ">= 10.16.0" + "node": ">= 10.16.0" + }, + "peerDependencies": { + "jsep": "^0.4.0||^1.0.0" + } + }, + "node_modules/@kubernetes/client-node": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@kubernetes/client-node/-/client-node-1.4.0.tgz", + "integrity": "sha512-Zge3YvF7DJi264dU1b3wb/GmzR99JhUpqTvp+VGHfwZT+g7EOOYNScDJNZwXy9cszyIGPIs0VHr+kk8e95qqrA==", + "license": "Apache-2.0", + "dependencies": { + "@types/js-yaml": "^4.0.1", + "@types/node": "^24.0.0", + "@types/node-fetch": "^2.6.13", + "@types/stream-buffers": "^3.0.3", + "form-data": "^4.0.0", + "hpagent": "^1.2.0", + "isomorphic-ws": "^5.0.0", + "js-yaml": "^4.1.0", + "jsonpath-plus": "^10.3.0", + "node-fetch": "^2.7.0", + "openid-client": "^6.1.3", + "rfc4648": "^1.3.0", + "socks-proxy-agent": "^8.0.4", + "stream-buffers": "^3.0.2", + "tar-fs": "^3.0.9", + "ws": "^8.18.2" + } + }, + "node_modules/@kubernetes/client-node/node_modules/@types/node": { + "version": "24.10.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz", + "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==", + "license": "MIT", + "dependencies": { + "undici-types": "~7.16.0" + } + }, + "node_modules/@kubernetes/client-node/node_modules/form-data": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", + "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@kubernetes/client-node/node_modules/undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "license": "MIT" + }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-0.2.12.tgz", + "integrity": "sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.4.3", + "@emnapi/runtime": "^1.4.3", + "@tybys/wasm-util": "^0.10.0" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@pkgr/core": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.2.9.tgz", + "integrity": "sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/pkgr" + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.34.48", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.34.48.tgz", + "integrity": "sha512-kKJTNuK3AQOrgjjotVxMrCn1sUJwM76wMszfq1kdU4uYVJjvEWuFQ6HgvLt4Xz3fSmZlTOxJ/Ie13KnIcWQXFA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "13.0.5", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-13.0.5.tgz", + "integrity": "sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@sinonjs/commons": "^3.0.1" + } + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz", + "integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/fs-extra": { + "version": "9.0.13", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz", + "integrity": "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "30.0.0", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-30.0.0.tgz", + "integrity": "sha512-XTYugzhuwqWjws0CVz8QpM36+T+Dz5mTEBKhNs/esGLnCIlGdRy+Dq78NRjd7ls7r8BC8ZRMOrKlkO1hU0JOwA==", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "^30.0.0", + "pretty-format": "^30.0.0" + } + }, + "node_modules/@types/js-yaml": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.9.tgz", + "integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==" + }, + "node_modules/@types/node": { + "version": "22.17.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.17.0.tgz", + "integrity": "sha512-bbAKTCqX5aNVryi7qXVMi+OkB3w/OyblodicMbvE38blyAz7GxXf6XYhklokijuPwwVg9sDLKRxt0ZHXQwZVfQ==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@types/node-fetch": { + "version": "2.6.13", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.13.tgz", + "integrity": "sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw==", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "form-data": "^4.0.4" + } + }, + "node_modules/@types/node-fetch/node_modules/form-data": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", + "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/stream-buffers": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@types/stream-buffers/-/stream-buffers-3.0.8.tgz", + "integrity": "sha512-J+7VaHKNvlNPJPEJXX/fKa9DZtR/xPMwuIbe+yNOwp1YB+ApUOBv2aUpEoBJEi8nJgbgs1x8e73ttg0r1rSUdw==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/yargs": { + "version": "17.0.35", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz", + "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@ungap/structured-clone": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", + "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", + "dev": true, + "license": "ISC" + }, + "node_modules/@unrs/resolver-binding-android-arm-eabi": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm-eabi/-/resolver-binding-android-arm-eabi-1.11.1.tgz", + "integrity": "sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@unrs/resolver-binding-android-arm64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm64/-/resolver-binding-android-arm64-1.11.1.tgz", + "integrity": "sha512-lCxkVtb4wp1v+EoN+HjIG9cIIzPkX5OtM03pQYkG+U5O/wL53LC4QbIeazgiKqluGeVEeBlZahHalCaBvU1a2g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@unrs/resolver-binding-darwin-arm64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.11.1.tgz", + "integrity": "sha512-gPVA1UjRu1Y/IsB/dQEsp2V1pm44Of6+LWvbLc9SDk1c2KhhDRDBUkQCYVWe6f26uJb3fOK8saWMgtX8IrMk3g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@unrs/resolver-binding-darwin-x64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.11.1.tgz", + "integrity": "sha512-cFzP7rWKd3lZaCsDze07QX1SC24lO8mPty9vdP+YVa3MGdVgPmFc59317b2ioXtgCMKGiCLxJ4HQs62oz6GfRQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@unrs/resolver-binding-freebsd-x64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.11.1.tgz", + "integrity": "sha512-fqtGgak3zX4DCB6PFpsH5+Kmt/8CIi4Bry4rb1ho6Av2QHTREM+47y282Uqiu3ZRF5IQioJQ5qWRV6jduA+iGw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.11.1.tgz", + "integrity": "sha512-u92mvlcYtp9MRKmP+ZvMmtPN34+/3lMHlyMj7wXJDeXxuM0Vgzz0+PPJNsro1m3IZPYChIkn944wW8TYgGKFHw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.11.1.tgz", + "integrity": "sha512-cINaoY2z7LVCrfHkIcmvj7osTOtm6VVT16b5oQdS4beibX2SYBwgYLmqhBjA1t51CarSaBuX5YNsWLjsqfW5Cw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.11.1.tgz", + "integrity": "sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm64-musl": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.11.1.tgz", + "integrity": "sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.11.1.tgz", + "integrity": "sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.11.1.tgz", + "integrity": "sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-riscv64-musl": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-musl/-/resolver-binding-linux-riscv64-musl-1.11.1.tgz", + "integrity": "sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-s390x-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.11.1.tgz", + "integrity": "sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-x64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.11.1.tgz", + "integrity": "sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-x64-musl": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.11.1.tgz", + "integrity": "sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-wasm32-wasi": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.11.1.tgz", + "integrity": "sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@napi-rs/wasm-runtime": "^0.2.11" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@unrs/resolver-binding-win32-arm64-msvc": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.11.1.tgz", + "integrity": "sha512-nRcz5Il4ln0kMhfL8S3hLkxI85BXs3o8EYoattsJNdsX4YUU89iOkVn7g0VHSRxFuVMdM4Q1jEpIId1Ihim/Uw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@unrs/resolver-binding-win32-ia32-msvc": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.11.1.tgz", + "integrity": "sha512-DCEI6t5i1NmAZp6pFonpD5m7i6aFrpofcp4LA2i8IIq60Jyo28hamKBxNrZcyOwVOZkgsRp9O2sXWBWP8MnvIQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@unrs/resolver-binding-win32-x64-msvc": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.11.1.tgz", + "integrity": "sha512-lrW200hZdbfRtztbygyaq/6jP6AKE8qQN2KvPcJ+x7wiD038YtnYtZ82IMNJ69GJibV7bwL3y9FgK+5w/pYt6g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "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/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "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==" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/b4a": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.7.3.tgz", + "integrity": "sha512-5Q2mfq2WfGuFp3uS//0s6baOJLMoVduPYVeNmDYxu5OUA1/cBfvr2RIS7vi62LdNj/urk1hfmj867I3qt6uZ7Q==", + "license": "Apache-2.0", + "peerDependencies": { + "react-native-b4a": "*" + }, + "peerDependenciesMeta": { + "react-native-b4a": { + "optional": true + } + } + }, + "node_modules/babel-jest": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-30.2.0.tgz", + "integrity": "sha512-0YiBEOxWqKkSQWL9nNGGEgndoeL0ZpWrbLMNL5u/Kaxrli3Eaxlt3ZtIDktEvXt4L/R9r3ODr2zKwGM/2BjxVw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/transform": "30.2.0", + "@types/babel__core": "^7.20.5", + "babel-plugin-istanbul": "^7.0.1", + "babel-preset-jest": "30.2.0", + "chalk": "^4.1.2", + "graceful-fs": "^4.2.11", + "slash": "^3.0.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.11.0 || ^8.0.0-0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-7.0.1.tgz", + "integrity": "sha512-D8Z6Qm8jCvVXtIRkBnqNHX0zJ37rQcFJ9u8WOS6tkYOsRdHBzypCstaxWiu5ZIlqQtviRYbgnRLSoCEvjqcqbA==", + "dev": true, + "license": "BSD-3-Clause", + "workspaces": [ + "test/babel-8" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-instrument": "^6.0.2", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-30.2.0.tgz", + "integrity": "sha512-ftzhzSGMUnOzcCXd6WHdBGMyuwy15Wnn0iyyWGKgBDLxf9/s5ABuraCSpBX2uG0jUg4rqJnxsLc5+oYBqoxVaA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/babel__core": "^7.20.5" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz", + "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" + }, + "peerDependencies": { + "@babel/core": "^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/babel-preset-jest": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-30.2.0.tgz", + "integrity": "sha512-US4Z3NOieAQumwFnYdUWKvUKh8+YSnS/gB3t6YBiz0bskpu7Pine8pPCheNxlPEW4wnUkma2a94YuW2q3guvCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "babel-plugin-jest-hoist": "30.2.0", + "babel-preset-current-node-syntax": "^1.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.11.0 || ^8.0.0-beta.1" + } + }, + "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/bare-events": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.8.2.tgz", + "integrity": "sha512-riJjyv1/mHLIPX4RwiK+oW9/4c3TEUeORHKefKAKnZ5kyslbN+HXowtbaVEqt4IMUB7OXlfixcs6gsFeo/jhiQ==", + "license": "Apache-2.0", + "peerDependencies": { + "bare-abort-controller": "*" + }, + "peerDependenciesMeta": { + "bare-abort-controller": { + "optional": true + } + } + }, + "node_modules/bare-fs": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.5.1.tgz", + "integrity": "sha512-zGUCsm3yv/ePt2PHNbVxjjn0nNB1MkIaR4wOCxJ2ig5pCf5cCVAYJXVhQg/3OhhJV6DB1ts7Hv0oUaElc2TPQg==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "bare-events": "^2.5.4", + "bare-path": "^3.0.0", + "bare-stream": "^2.6.4", + "bare-url": "^2.2.2", + "fast-fifo": "^1.3.2" + }, + "engines": { + "bare": ">=1.16.0" + }, + "peerDependencies": { + "bare-buffer": "*" + }, + "peerDependenciesMeta": { + "bare-buffer": { + "optional": true + } + } + }, + "node_modules/bare-os": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/bare-os/-/bare-os-3.6.2.tgz", + "integrity": "sha512-T+V1+1srU2qYNBmJCXZkUY5vQ0B4FSlL3QDROnKQYOqeiQR8UbjNHlPa+TIbM4cuidiN9GaTaOZgSEgsvPbh5A==", + "license": "Apache-2.0", + "optional": true, + "engines": { + "bare": ">=1.14.0" + } + }, + "node_modules/bare-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bare-path/-/bare-path-3.0.0.tgz", + "integrity": "sha512-tyfW2cQcB5NN8Saijrhqn0Zh7AnFNsnczRcuWODH0eYAXBsJ5gVxAUuNr7tsHSC6IZ77cA0SitzT+s47kot8Mw==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "bare-os": "^3.0.1" + } + }, + "node_modules/bare-stream": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.7.0.tgz", + "integrity": "sha512-oyXQNicV1y8nc2aKffH+BUHFRXmx6VrPzlnaEvMhram0nPBrKcEdcyBg5r08D0i8VxngHFAiVyn1QKXpSG0B8A==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "streamx": "^2.21.0" + }, + "peerDependencies": { + "bare-buffer": "*", + "bare-events": "*" + }, + "peerDependenciesMeta": { + "bare-buffer": { + "optional": true + }, + "bare-events": { + "optional": true + } + } + }, + "node_modules/bare-url": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/bare-url/-/bare-url-2.3.2.tgz", + "integrity": "sha512-ZMq4gd9ngV5aTMa5p9+UfY0b3skwhHELaDkhEHetMdX0LRkW9kzaym4oo/Eh+Ghm0CCDuMTsRIGM/ytUc1ZYmw==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "bare-path": "^3.0.0" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.9.18", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.18.tgz", + "integrity": "sha512-e23vBV1ZLfjb9apvfPk4rHVu2ry6RIr2Wfs+O324okSidrX7pTAnEJPCh/O5BtRlr7QtZI7ktOP3vsqr7Z5XoA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.js" + } + }, + "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/browserslist": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.2.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/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/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001766", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001766.tgz", + "integrity": "sha512-4C0lfJ0/YPjJQHagaE9x2Elb69CIqEPZeG0anQt9SIvIoOH4a4uaRl73IavyO+0qZh6MDLH//DrXThEYKHkmYA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "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/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.1.tgz", + "integrity": "sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-2.2.0.tgz", + "integrity": "sha512-4bHTS2YuzUvtoLjdy+98ykbNB5jS0+07EvFNXerqZQJ89F7DI6ET7OQo/HJuW6K0aVsKA9hj9/RVb2kQVOrPDQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/cliui/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/cliui/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz", + "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==", + "dev": true, + "license": "MIT" + }, + "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/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "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/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "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.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/dedent": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.1.tgz", + "integrity": "sha512-9JmrhGZpOlEgOLdQgSm0zxFaYoQon408V1v49aqTWuXENVlnCuY9JBZcXZiCsZQWDjTm5Qf/nIvAy77mXDAjEg==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true, + "license": "MIT" + }, + "node_modules/electron-to-chromium": { + "version": "1.5.279", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.279.tgz", + "integrity": "sha512-0bblUU5UNdOt5G7XqGiJtpZMONma6WAfq9vsFmtn9x1+joAObr6x1chfqyxFSDCAFwFhCQDrqeAr6MYdpwJ9Hg==", + "dev": true, + "license": "ISC" + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "license": "MIT" + }, + "node_modules/end-of-stream": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/error-ex": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", + "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es6-promise": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", + "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==" + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/events-universal": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/events-universal/-/events-universal-1.0.1.tgz", + "integrity": "sha512-LUd5euvbMLpwOF8m6ivPCbhQeSiYVNb8Vs0fQ8QjXo0JTkEHpz8pxdQf0gStltaPpw0Cca8b39KxvK9cfKRiAw==", + "license": "Apache-2.0", + "dependencies": { + "bare-events": "^2.7.0" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/execa/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/exit-x": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/exit-x/-/exit-x-0.2.2.tgz", + "integrity": "sha512-+I6B/IkJc1o/2tiURyz/ivu/O0nKNEArIUB5O7zBrlDVJr22SCLH3xTeEry428LvFhRzIA1g8izguxJ/gbNcVQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-30.2.0.tgz", + "integrity": "sha512-u/feCi0GPsI+988gU2FLcsHyAHTU0MX1Wg68NhAnN7z/+C5wqG+CY8J53N9ioe8RXgaoz0nBR/TYMf3AycUuPw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/expect-utils": "30.2.0", + "@jest/get-type": "30.1.0", + "jest-matcher-utils": "30.2.0", + "jest-message-util": "30.2.0", + "jest-mock": "30.2.0", + "jest-util": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/fast-fifo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", + "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", + "license": "MIT" + }, + "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/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "bser": "2.1.1" + } + }, + "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": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/foreground-child": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "dev": true, + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.6", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/form-data": { + "version": "2.5.5", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.5.tgz", + "integrity": "sha512-jqdObeR2rxZZbPSGL+3VckHMYtu+f9//KXBsVny6JSX/pa38Fy+bGjuG8eW/H6USNQWhLi8Num++cU2yOCNz4A==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.35", + "safe-buffer": "^5.2.1" + }, + "engines": { + "node": ">= 0.12" + } + }, + "node_modules/fs-extra": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "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/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz", + "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + }, + "node_modules/handlebars": { + "version": "4.7.8", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", + "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "minimist": "^1.2.5", + "neo-async": "^2.6.2", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" + }, + "engines": { + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" + } + }, + "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/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hpagent": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/hpagent/-/hpagent-1.2.0.tgz", + "integrity": "sha512-A91dYTeIB6NoXG+PxTQpCCDDnfHsW9kc06Lvpu1TEe9gnd6ZFeiBoRO9JvzEv6xK7EX97/dUE8g/vBMTqTS3CA==", + "license": "MIT", + "engines": { + "node": ">=14" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true, + "license": "MIT" + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/import-local": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", + "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "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/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/ip-address": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.1.0.tgz", + "integrity": "sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "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/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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/isomorphic-ws": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz", + "integrity": "sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==", + "peerDependencies": { + "ws": "*" + } + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-5.0.6.tgz", + "integrity": "sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.23", + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz", + "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jackspeak": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/jest": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-30.2.0.tgz", + "integrity": "sha512-F26gjC0yWN8uAA5m5Ss8ZQf5nDHWGlN/xWZIh8S5SRbsEKBovwZhxGd6LJlbZYxBgCYOtreSUyb8hpXyGC5O4A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/core": "30.2.0", + "@jest/types": "30.2.0", + "import-local": "^3.2.0", + "jest-cli": "30.2.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-30.2.0.tgz", + "integrity": "sha512-L8lR1ChrRnSdfeOvTrwZMlnWV8G/LLjQ0nG9MBclwWZidA2N5FviRki0Bvh20WRMOX31/JYvzdqTJrk5oBdydQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "execa": "^5.1.1", + "jest-util": "30.2.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-circus": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-30.2.0.tgz", + "integrity": "sha512-Fh0096NC3ZkFx05EP2OXCxJAREVxj1BcW/i6EWqqymcgYKWjyyDpral3fMxVcHXg6oZM7iULer9wGRFvfpl+Tg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "30.2.0", + "@jest/expect": "30.2.0", + "@jest/test-result": "30.2.0", + "@jest/types": "30.2.0", + "@types/node": "*", + "chalk": "^4.1.2", + "co": "^4.6.0", + "dedent": "^1.6.0", + "is-generator-fn": "^2.1.0", + "jest-each": "30.2.0", + "jest-matcher-utils": "30.2.0", + "jest-message-util": "30.2.0", + "jest-runtime": "30.2.0", + "jest-snapshot": "30.2.0", + "jest-util": "30.2.0", + "p-limit": "^3.1.0", + "pretty-format": "30.2.0", + "pure-rand": "^7.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.6" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-cli": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-30.2.0.tgz", + "integrity": "sha512-Os9ukIvADX/A9sLt6Zse3+nmHtHaE6hqOsjQtNiugFTbKRHYIYtZXNGNK9NChseXy7djFPjndX1tL0sCTlfpAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/core": "30.2.0", + "@jest/test-result": "30.2.0", + "@jest/types": "30.2.0", + "chalk": "^4.1.2", + "exit-x": "^0.2.2", + "import-local": "^3.2.0", + "jest-config": "30.2.0", + "jest-util": "30.2.0", + "jest-validate": "30.2.0", + "yargs": "^17.7.2" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" }, "peerDependencies": { - "jsep": "^0.4.0||^1.0.0" + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } } }, - "node_modules/@kubernetes/client-node": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@kubernetes/client-node/-/client-node-1.4.0.tgz", - "integrity": "sha512-Zge3YvF7DJi264dU1b3wb/GmzR99JhUpqTvp+VGHfwZT+g7EOOYNScDJNZwXy9cszyIGPIs0VHr+kk8e95qqrA==", - "license": "Apache-2.0", + "node_modules/jest-config": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-30.2.0.tgz", + "integrity": "sha512-g4WkyzFQVWHtu6uqGmQR4CQxz/CH3yDSlhzXMWzNjDx843gYjReZnMRanjRCq5XZFuQrGDxgUaiYWE8BRfVckA==", + "dev": true, + "license": "MIT", "dependencies": { - "@types/js-yaml": "^4.0.1", - "@types/node": "^24.0.0", - "@types/node-fetch": "^2.6.13", - "@types/stream-buffers": "^3.0.3", - "form-data": "^4.0.0", - "hpagent": "^1.2.0", - "isomorphic-ws": "^5.0.0", - "js-yaml": "^4.1.0", - "jsonpath-plus": "^10.3.0", - "node-fetch": "^2.7.0", - "openid-client": "^6.1.3", - "rfc4648": "^1.3.0", - "socks-proxy-agent": "^8.0.4", - "stream-buffers": "^3.0.2", - "tar-fs": "^3.0.9", - "ws": "^8.18.2" + "@babel/core": "^7.27.4", + "@jest/get-type": "30.1.0", + "@jest/pattern": "30.0.1", + "@jest/test-sequencer": "30.2.0", + "@jest/types": "30.2.0", + "babel-jest": "30.2.0", + "chalk": "^4.1.2", + "ci-info": "^4.2.0", + "deepmerge": "^4.3.1", + "glob": "^10.3.10", + "graceful-fs": "^4.2.11", + "jest-circus": "30.2.0", + "jest-docblock": "30.2.0", + "jest-environment-node": "30.2.0", + "jest-regex-util": "30.0.1", + "jest-resolve": "30.2.0", + "jest-runner": "30.2.0", + "jest-util": "30.2.0", + "jest-validate": "30.2.0", + "micromatch": "^4.0.8", + "parse-json": "^5.2.0", + "pretty-format": "30.2.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "esbuild-register": ">=3.4.0", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "esbuild-register": { + "optional": true + }, + "ts-node": { + "optional": true + } } }, - "node_modules/@kubernetes/client-node/node_modules/@types/node": { - "version": "24.10.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz", - "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==", + "node_modules/jest-diff": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-30.2.0.tgz", + "integrity": "sha512-dQHFo3Pt4/NLlG5z4PxZ/3yZTZ1C7s9hveiOj+GCN+uT109NC2QgsoVZsVOAvbJ3RgKkvyLGXZV9+piDpWbm6A==", + "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~7.16.0" + "@jest/diff-sequences": "30.0.1", + "@jest/get-type": "30.1.0", + "chalk": "^4.1.2", + "pretty-format": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/@kubernetes/client-node/node_modules/form-data": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", - "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", + "node_modules/jest-docblock": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-30.2.0.tgz", + "integrity": "sha512-tR/FFgZKS1CXluOQzZvNH3+0z9jXr3ldGSD8bhyuxvlVUwbeLOGynkunvlTMxchC5urrKndYiwCFC0DLVjpOCA==", + "dev": true, "license": "MIT", "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "es-set-tostringtag": "^2.1.0", - "hasown": "^2.0.2", - "mime-types": "^2.1.12" + "detect-newline": "^3.1.0" }, "engines": { - "node": ">= 6" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/@kubernetes/client-node/node_modules/undici-types": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", - "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", - "license": "MIT" - }, - "node_modules/@types/fs-extra": { - "version": "9.0.13", - "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz", - "integrity": "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==", + "node_modules/jest-each": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-30.2.0.tgz", + "integrity": "sha512-lpWlJlM7bCUf1mfmuqTA8+j2lNURW9eNafOy99knBM01i5CQeY5UH1vZjgT9071nDJac1M4XsbyI44oNOdhlDQ==", "dev": true, + "license": "MIT", "dependencies": { - "@types/node": "*" + "@jest/get-type": "30.1.0", + "@jest/types": "30.2.0", + "chalk": "^4.1.2", + "jest-util": "30.2.0", + "pretty-format": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/@types/js-yaml": { - "version": "4.0.9", - "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.9.tgz", - "integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==" - }, - "node_modules/@types/node": { - "version": "22.17.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.17.0.tgz", - "integrity": "sha512-bbAKTCqX5aNVryi7qXVMi+OkB3w/OyblodicMbvE38blyAz7GxXf6XYhklokijuPwwVg9sDLKRxt0ZHXQwZVfQ==", + "node_modules/jest-environment-node": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-30.2.0.tgz", + "integrity": "sha512-ElU8v92QJ9UrYsKrxDIKCxu6PfNj4Hdcktcn0JX12zqNdqWHB0N+hwOnnBBXvjLd2vApZtuLUGs1QSY+MsXoNA==", + "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~6.21.0" + "@jest/environment": "30.2.0", + "@jest/fake-timers": "30.2.0", + "@jest/types": "30.2.0", + "@types/node": "*", + "jest-mock": "30.2.0", + "jest-util": "30.2.0", + "jest-validate": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/@types/node-fetch": { - "version": "2.6.13", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.13.tgz", - "integrity": "sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw==", + "node_modules/jest-haste-map": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-30.2.0.tgz", + "integrity": "sha512-sQA/jCb9kNt+neM0anSj6eZhLZUIhQgwDt7cPGjumgLM4rXsfb9kpnlacmvZz3Q5tb80nS+oG/if+NBKrHC+Xw==", + "dev": true, "license": "MIT", "dependencies": { + "@jest/types": "30.2.0", "@types/node": "*", - "form-data": "^4.0.4" + "anymatch": "^3.1.3", + "fb-watchman": "^2.0.2", + "graceful-fs": "^4.2.11", + "jest-regex-util": "30.0.1", + "jest-util": "30.2.0", + "jest-worker": "30.2.0", + "micromatch": "^4.0.8", + "walker": "^1.0.8" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.3" } }, - "node_modules/@types/node-fetch/node_modules/form-data": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", - "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", + "node_modules/jest-leak-detector": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-30.2.0.tgz", + "integrity": "sha512-M6jKAjyzjHG0SrQgwhgZGy9hFazcudwCNovY/9HPIicmNSBuockPSedAP9vlPK6ONFJ1zfyH/M2/YYJxOz5cdQ==", + "dev": true, "license": "MIT", "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "es-set-tostringtag": "^2.1.0", - "hasown": "^2.0.2", - "mime-types": "^2.1.12" + "@jest/get-type": "30.1.0", + "pretty-format": "30.2.0" }, "engines": { - "node": ">= 6" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/@types/stream-buffers": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@types/stream-buffers/-/stream-buffers-3.0.8.tgz", - "integrity": "sha512-J+7VaHKNvlNPJPEJXX/fKa9DZtR/xPMwuIbe+yNOwp1YB+ApUOBv2aUpEoBJEi8nJgbgs1x8e73ttg0r1rSUdw==", + "node_modules/jest-matcher-utils": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-30.2.0.tgz", + "integrity": "sha512-dQ94Nq4dbzmUWkQ0ANAWS9tBRfqCrn0bV9AMYdOi/MHW726xn7eQmMeRTpX2ViC00bpNaWXq+7o4lIQ3AX13Hg==", + "dev": true, "license": "MIT", "dependencies": { - "@types/node": "*" + "@jest/get-type": "30.1.0", + "chalk": "^4.1.2", + "jest-diff": "30.2.0", + "pretty-format": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "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==" - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + "node_modules/jest-message-util": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.2.0.tgz", + "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@jest/types": "30.2.0", + "@types/stack-utils": "^2.0.3", + "chalk": "^4.1.2", + "graceful-fs": "^4.2.11", + "micromatch": "^4.0.8", + "pretty-format": "30.2.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.6" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } }, - "node_modules/b4a": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.7.3.tgz", - "integrity": "sha512-5Q2mfq2WfGuFp3uS//0s6baOJLMoVduPYVeNmDYxu5OUA1/cBfvr2RIS7vi62LdNj/urk1hfmj867I3qt6uZ7Q==", - "license": "Apache-2.0", - "peerDependencies": { - "react-native-b4a": "*" + "node_modules/jest-mock": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-30.2.0.tgz", + "integrity": "sha512-JNNNl2rj4b5ICpmAcq+WbLH83XswjPbjH4T7yvGzfAGCPh1rw+xVNbtk+FnRslvt9lkCcdn9i1oAoKUuFsOxRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "30.2.0", + "@types/node": "*", + "jest-util": "30.2.0" }, - "peerDependenciesMeta": { - "react-native-b4a": { - "optional": true - } + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/bare-events": { - "version": "2.8.2", - "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.8.2.tgz", - "integrity": "sha512-riJjyv1/mHLIPX4RwiK+oW9/4c3TEUeORHKefKAKnZ5kyslbN+HXowtbaVEqt4IMUB7OXlfixcs6gsFeo/jhiQ==", - "license": "Apache-2.0", + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, "peerDependencies": { - "bare-abort-controller": "*" + "jest-resolve": "*" }, "peerDependenciesMeta": { - "bare-abort-controller": { + "jest-resolve": { "optional": true } } }, - "node_modules/bare-fs": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.5.1.tgz", - "integrity": "sha512-zGUCsm3yv/ePt2PHNbVxjjn0nNB1MkIaR4wOCxJ2ig5pCf5cCVAYJXVhQg/3OhhJV6DB1ts7Hv0oUaElc2TPQg==", - "license": "Apache-2.0", - "optional": true, + "node_modules/jest-regex-util": { + "version": "30.0.1", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-30.0.1.tgz", + "integrity": "sha512-jHEQgBXAgc+Gh4g0p3bCevgRCVRkB4VB70zhoAE48gxeSr1hfUOsM/C2WoJgVL7Eyg//hudYENbm3Ne+/dRVVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-30.2.0.tgz", + "integrity": "sha512-TCrHSxPlx3tBY3hWNtRQKbtgLhsXa1WmbJEqBlTBrGafd5fiQFByy2GNCEoGR+Tns8d15GaL9cxEzKOO3GEb2A==", + "dev": true, + "license": "MIT", "dependencies": { - "bare-events": "^2.5.4", - "bare-path": "^3.0.0", - "bare-stream": "^2.6.4", - "bare-url": "^2.2.2", - "fast-fifo": "^1.3.2" + "chalk": "^4.1.2", + "graceful-fs": "^4.2.11", + "jest-haste-map": "30.2.0", + "jest-pnp-resolver": "^1.2.3", + "jest-util": "30.2.0", + "jest-validate": "30.2.0", + "slash": "^3.0.0", + "unrs-resolver": "^1.7.11" }, "engines": { - "bare": ">=1.16.0" - }, - "peerDependencies": { - "bare-buffer": "*" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-30.2.0.tgz", + "integrity": "sha512-xTOIGug/0RmIe3mmCqCT95yO0vj6JURrn1TKWlNbhiAefJRWINNPgwVkrVgt/YaerPzY3iItufd80v3lOrFJ2w==", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-regex-util": "30.0.1", + "jest-snapshot": "30.2.0" }, - "peerDependenciesMeta": { - "bare-buffer": { - "optional": true - } + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/bare-os": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/bare-os/-/bare-os-3.6.2.tgz", - "integrity": "sha512-T+V1+1srU2qYNBmJCXZkUY5vQ0B4FSlL3QDROnKQYOqeiQR8UbjNHlPa+TIbM4cuidiN9GaTaOZgSEgsvPbh5A==", - "license": "Apache-2.0", - "optional": true, + "node_modules/jest-runner": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-30.2.0.tgz", + "integrity": "sha512-PqvZ2B2XEyPEbclp+gV6KO/F1FIFSbIwewRgmROCMBo/aZ6J1w8Qypoj2pEOcg3G2HzLlaP6VUtvwCI8dM3oqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "30.2.0", + "@jest/environment": "30.2.0", + "@jest/test-result": "30.2.0", + "@jest/transform": "30.2.0", + "@jest/types": "30.2.0", + "@types/node": "*", + "chalk": "^4.1.2", + "emittery": "^0.13.1", + "exit-x": "^0.2.2", + "graceful-fs": "^4.2.11", + "jest-docblock": "30.2.0", + "jest-environment-node": "30.2.0", + "jest-haste-map": "30.2.0", + "jest-leak-detector": "30.2.0", + "jest-message-util": "30.2.0", + "jest-resolve": "30.2.0", + "jest-runtime": "30.2.0", + "jest-util": "30.2.0", + "jest-watcher": "30.2.0", + "jest-worker": "30.2.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, "engines": { - "bare": ">=1.14.0" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/bare-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bare-path/-/bare-path-3.0.0.tgz", - "integrity": "sha512-tyfW2cQcB5NN8Saijrhqn0Zh7AnFNsnczRcuWODH0eYAXBsJ5gVxAUuNr7tsHSC6IZ77cA0SitzT+s47kot8Mw==", - "license": "Apache-2.0", - "optional": true, + "node_modules/jest-runtime": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-30.2.0.tgz", + "integrity": "sha512-p1+GVX/PJqTucvsmERPMgCPvQJpFt4hFbM+VN3n8TMo47decMUcJbt+rgzwrEme0MQUA/R+1de2axftTHkKckg==", + "dev": true, + "license": "MIT", "dependencies": { - "bare-os": "^3.0.1" + "@jest/environment": "30.2.0", + "@jest/fake-timers": "30.2.0", + "@jest/globals": "30.2.0", + "@jest/source-map": "30.0.1", + "@jest/test-result": "30.2.0", + "@jest/transform": "30.2.0", + "@jest/types": "30.2.0", + "@types/node": "*", + "chalk": "^4.1.2", + "cjs-module-lexer": "^2.1.0", + "collect-v8-coverage": "^1.0.2", + "glob": "^10.3.10", + "graceful-fs": "^4.2.11", + "jest-haste-map": "30.2.0", + "jest-message-util": "30.2.0", + "jest-mock": "30.2.0", + "jest-regex-util": "30.0.1", + "jest-resolve": "30.2.0", + "jest-snapshot": "30.2.0", + "jest-util": "30.2.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/bare-stream": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.7.0.tgz", - "integrity": "sha512-oyXQNicV1y8nc2aKffH+BUHFRXmx6VrPzlnaEvMhram0nPBrKcEdcyBg5r08D0i8VxngHFAiVyn1QKXpSG0B8A==", - "license": "Apache-2.0", - "optional": true, + "node_modules/jest-snapshot": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-30.2.0.tgz", + "integrity": "sha512-5WEtTy2jXPFypadKNpbNkZ72puZCa6UjSr/7djeecHWOu7iYhSXSnHScT8wBz3Rn8Ena5d5RYRcsyKIeqG1IyA==", + "dev": true, + "license": "MIT", "dependencies": { - "streamx": "^2.21.0" + "@babel/core": "^7.27.4", + "@babel/generator": "^7.27.5", + "@babel/plugin-syntax-jsx": "^7.27.1", + "@babel/plugin-syntax-typescript": "^7.27.1", + "@babel/types": "^7.27.3", + "@jest/expect-utils": "30.2.0", + "@jest/get-type": "30.1.0", + "@jest/snapshot-utils": "30.2.0", + "@jest/transform": "30.2.0", + "@jest/types": "30.2.0", + "babel-preset-current-node-syntax": "^1.2.0", + "chalk": "^4.1.2", + "expect": "30.2.0", + "graceful-fs": "^4.2.11", + "jest-diff": "30.2.0", + "jest-matcher-utils": "30.2.0", + "jest-message-util": "30.2.0", + "jest-util": "30.2.0", + "pretty-format": "30.2.0", + "semver": "^7.7.2", + "synckit": "^0.11.8" }, - "peerDependencies": { - "bare-buffer": "*", - "bare-events": "*" + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" }, - "peerDependenciesMeta": { - "bare-buffer": { - "optional": true - }, - "bare-events": { - "optional": true - } + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-util": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "30.2.0", + "@types/node": "*", + "chalk": "^4.1.2", + "ci-info": "^4.2.0", + "graceful-fs": "^4.2.11", + "picomatch": "^4.0.2" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-util/node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/bare-url": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/bare-url/-/bare-url-2.3.2.tgz", - "integrity": "sha512-ZMq4gd9ngV5aTMa5p9+UfY0b3skwhHELaDkhEHetMdX0LRkW9kzaym4oo/Eh+Ghm0CCDuMTsRIGM/ytUc1ZYmw==", - "license": "Apache-2.0", - "optional": true, + "node_modules/jest-validate": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-30.2.0.tgz", + "integrity": "sha512-FBGWi7dP2hpdi8nBoWxSsLvBFewKAg0+uSQwBaof4Y4DPgBabXgpSYC5/lR7VmnIlSpASmCi/ntRWPbv7089Pw==", + "dev": true, + "license": "MIT", "dependencies": { - "bare-path": "^3.0.0" + "@jest/get-type": "30.1.0", + "@jest/types": "30.2.0", + "camelcase": "^6.3.0", + "chalk": "^4.1.2", + "leven": "^3.1.0", + "pretty-format": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-30.2.0.tgz", + "integrity": "sha512-PYxa28dxJ9g777pGm/7PrbnMeA0Jr7osHP9bS7eJy9DuAjMgdGtxgf0uKMyoIsTWAkIbUW5hSDdJ3urmgXBqxg==", + "dev": true, "license": "MIT", "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" + "@jest/test-result": "30.2.0", + "@jest/types": "30.2.0", + "@types/node": "*", + "ansi-escapes": "^4.3.2", + "chalk": "^4.1.2", + "emittery": "^0.13.1", + "jest-util": "30.2.0", + "string-length": "^4.0.2" }, "engines": { - "node": ">= 0.4" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "node_modules/jest-worker": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-30.2.0.tgz", + "integrity": "sha512-0Q4Uk8WF7BUwqXHuAjc23vmopWJw5WH7w2tqBoUOZpOjW/ZnR44GXXd1r82RvnmI2GZge3ivrYXk/BE2+VtW2g==", + "dev": true, + "license": "MIT", "dependencies": { - "delayed-stream": "~1.0.0" + "@types/node": "*", + "@ungap/structured-clone": "^1.3.0", + "jest-util": "30.2.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.1.1" }, "engines": { - "node": ">= 0.8" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/debug": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", - "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "license": "MIT", "dependencies": { - "ms": "^2.1.3" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=6.0" + "node": ">=10" }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "engines": { - "node": ">=0.4.0" + "node_modules/jose": { + "version": "6.0.10", + "resolved": "https://registry.npmjs.org/jose/-/jose-6.0.10.tgz", + "integrity": "sha512-skIAxZqcMkOrSwjJvplIPYrlXGpxTPnro2/QWTDCxAdWQrSTV5/KqspMWmi5WAx5+ULswASJiZ0a+1B/Lxt9cw==", + "funding": { + "url": "https://github.com/sponsors/panva" } }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "license": "MIT", + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "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==", "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" + "argparse": "^2.0.1" }, - "engines": { - "node": ">= 0.4" + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "node_modules/end-of-stream": { - "version": "1.4.5", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", - "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", - "license": "MIT", - "dependencies": { - "once": "^1.4.0" + "node_modules/jsep": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.4.0.tgz", + "integrity": "sha512-B7qPcEVE3NVkmSJbaYxvv4cHkVW7DQsZz13pUMrfS8z8Q/BuShN+gcTXrUlPiGqM2/t/EEaI030bpxMqY8gMlw==", + "engines": { + "node": ">= 10.16.0" } }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, "engines": { - "node": ">= 0.4" + "node": ">=6" } }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, "engines": { - "node": ">= 0.4" + "node": ">=6" } }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "license": "MIT", + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", "dependencies": { - "es-errors": "^1.3.0" + "universalify": "^2.0.0" }, - "engines": { - "node": ">= 0.4" + "optionalDependencies": { + "graceful-fs": "^4.1.6" } }, - "node_modules/es-set-tostringtag": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", - "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "node_modules/jsonpath-plus": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-10.3.0.tgz", + "integrity": "sha512-8TNmfeTCk2Le33A3vRRwtuworG/L5RrgMvdjhKZxvyShO+mBu2fP50OWUjRLNtvw344DdDarFh9buFAZs5ujeA==", "license": "MIT", "dependencies": { - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" + "@jsep-plugin/assignment": "^1.3.0", + "@jsep-plugin/regex": "^1.0.4", + "jsep": "^1.4.0" + }, + "bin": { + "jsonpath": "bin/jsonpath-cli.js", + "jsonpath-plus": "bin/jsonpath-cli.js" }, "engines": { - "node": ">= 0.4" + "node": ">=18.0.0" } }, - "node_modules/es6-promise": { - "version": "4.2.8", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", - "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==" + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } }, - "node_modules/events-universal": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/events-universal/-/events-universal-1.0.1.tgz", - "integrity": "sha512-LUd5euvbMLpwOF8m6ivPCbhQeSiYVNb8Vs0fQ8QjXo0JTkEHpz8pxdQf0gStltaPpw0Cca8b39KxvK9cfKRiAw==", - "license": "Apache-2.0", + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "license": "MIT", "dependencies": { - "bare-events": "^2.7.0" + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/fast-fifo": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", - "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true, "license": "MIT" }, - "node_modules/form-data": { - "version": "2.5.5", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.5.tgz", - "integrity": "sha512-jqdObeR2rxZZbPSGL+3VckHMYtu+f9//KXBsVny6JSX/pa38Fy+bGjuG8eW/H6USNQWhLi8Num++cU2yOCNz4A==", + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, "license": "MIT", "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "es-set-tostringtag": "^2.1.0", - "hasown": "^2.0.2", - "mime-types": "^2.1.35", - "safe-buffer": "^5.2.1" + "semver": "^7.5.3" }, "engines": { - "node": ">= 0.12" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/fs-extra": { - "version": "11.2.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", - "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" + "node_modules/make-dir/node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" }, "engines": { - "node": ">=14.14" + "node": ">=10" } }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true, + "license": "ISC" + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "tmpl": "1.0.5" } }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true, + "license": "MIT" + }, + "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": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">= 0.6" } }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" + "brace-expansion": "^2.0.1" }, "engines": { - "node": ">= 0.4" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, "license": "MIT", - "engines": { - "node": ">= 0.4" - }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + "node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "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==" + }, + "node_modules/napi-postinstall": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.4.tgz", + "integrity": "sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==", + "dev": true, "license": "MIT", + "bin": { + "napi-postinstall": "lib/cli.js" + }, "engines": { - "node": ">= 0.4" + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://opencollective.com/napi-postinstall" } }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "license": "MIT", + "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/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", "dependencies": { - "has-symbols": "^1.0.3" + "whatwg-url": "^5.0.0" }, "engines": { - "node": ">= 0.4" + "node": "4.x || >=6.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } } }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "node_modules/node-fetch/node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/node-fetch/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/node-fetch/node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" } }, - "node_modules/hpagent": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/hpagent/-/hpagent-1.2.0.tgz", - "integrity": "sha512-A91dYTeIB6NoXG+PxTQpCCDDnfHsW9kc06Lvpu1TEe9gnd6ZFeiBoRO9JvzEv6xK7EX97/dUE8g/vBMTqTS3CA==", + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.27", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", + "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, "license": "MIT", "engines": { - "node": ">=14" + "node": ">=0.10.0" } }, - "node_modules/ip-address": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.1.0.tgz", - "integrity": "sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==", + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, "license": "MIT", + "dependencies": { + "path-key": "^3.0.0" + }, "engines": { - "node": ">= 12" - } - }, - "node_modules/isomorphic-ws": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz", - "integrity": "sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==", - "peerDependencies": { - "ws": "*" + "node": ">=8" } }, - "node_modules/jose": { - "version": "6.0.10", - "resolved": "https://registry.npmjs.org/jose/-/jose-6.0.10.tgz", - "integrity": "sha512-skIAxZqcMkOrSwjJvplIPYrlXGpxTPnro2/QWTDCxAdWQrSTV5/KqspMWmi5WAx5+ULswASJiZ0a+1B/Lxt9cw==", + "node_modules/oauth4webapi": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.3.1.tgz", + "integrity": "sha512-ZwX7UqYrP3Lr+Glhca3a1/nF2jqf7VVyJfhGuW5JtrfDUxt0u+IoBPzFjZ2dd7PJGkdM6CFPVVYzuDYKHv101A==", "funding": { "url": "https://github.com/sponsors/panva" } }, - "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==", + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "wrappy": "1" } }, - "node_modules/jsep": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.4.0.tgz", - "integrity": "sha512-B7qPcEVE3NVkmSJbaYxvv4cHkVW7DQsZz13pUMrfS8z8Q/BuShN+gcTXrUlPiGqM2/t/EEaI030bpxMqY8gMlw==", + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-fn": "^2.1.0" + }, "engines": { - "node": ">= 10.16.0" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "node_modules/openid-client": { + "version": "6.3.4", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.3.4.tgz", + "integrity": "sha512-CGZGk9Y6Bv9R4bXlrzVoxzD1n4h8iP914UhjVyRSftqzqO4CWaRqKpOmW253Jmpv4EWkz7/Gut/90iiWW8t0ow==", "dependencies": { - "universalify": "^2.0.0" + "jose": "^6.0.10", + "oauth4webapi": "^3.3.1" }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" + "funding": { + "url": "https://github.com/sponsors/panva" } }, - "node_modules/jsonpath-plus": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-10.3.0.tgz", - "integrity": "sha512-8TNmfeTCk2Le33A3vRRwtuworG/L5RrgMvdjhKZxvyShO+mBu2fP50OWUjRLNtvw344DdDarFh9buFAZs5ujeA==", + "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": { - "@jsep-plugin/assignment": "^1.3.0", - "@jsep-plugin/regex": "^1.0.4", - "jsep": "^1.4.0" + "yocto-queue": "^0.1.0" }, - "bin": { - "jsonpath": "bin/jsonpath-cli.js", - "jsonpath-plus": "bin/jsonpath-cli.js" + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" }, "engines": { - "node": ">=18.0.0" + "node": ">=8" } }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, "engines": { - "node": ">= 0.4" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "license": "MIT", "engines": { - "node": ">= 0.6" + "node": ">=6" } }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "node_modules/package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "license": "MIT", "dependencies": { - "mime-db": "1.52.0" + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" }, "engines": { - "node": ">= 0.6" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "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==" + "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-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } }, - "node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { - "whatwg-url": "^5.0.0" + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" }, "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" + "node": ">=16 || 14 >=14.18" }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/node-fetch/node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true, + "license": "ISC" }, - "node_modules/node-fetch/node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" }, - "node_modules/node-fetch/node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" + "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/oauth4webapi": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.3.1.tgz", - "integrity": "sha512-ZwX7UqYrP3Lr+Glhca3a1/nF2jqf7VVyJfhGuW5JtrfDUxt0u+IoBPzFjZ2dd7PJGkdM6CFPVVYzuDYKHv101A==", - "funding": { - "url": "https://github.com/sponsors/panva" + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" } }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "license": "MIT", "dependencies": { - "wrappy": "1" + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/openid-client": { - "version": "6.3.4", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.3.4.tgz", - "integrity": "sha512-CGZGk9Y6Bv9R4bXlrzVoxzD1n4h8iP914UhjVyRSftqzqO4CWaRqKpOmW253Jmpv4EWkz7/Gut/90iiWW8t0ow==", + "node_modules/pretty-format": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz", + "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", + "dev": true, + "license": "MIT", "dependencies": { - "jose": "^6.0.10", - "oauth4webapi": "^3.3.1" + "@jest/schemas": "30.0.5", + "ansi-styles": "^5.2.0", + "react-is": "^18.3.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/panva" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, "node_modules/pump": { @@ -745,21 +4364,78 @@ "once": "^1.3.1" } }, + "node_modules/pure-rand": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-7.0.1.tgz", + "integrity": "sha512-oTUZM/NAZS8p7ANR3SHh30kXB+zK2r2BPcEn/awJIbOvq82WoMN4p62AWWp3Hhw50G0xMsw1mhIBLqHw64EcNQ==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT" + }, "node_modules/querystringify": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" }, + "node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "dev": true, + "license": "MIT" + }, "node_modules/reflect-metadata": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz", "integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==" }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/rfc4648": { "version": "1.5.4", "resolved": "https://registry.npmjs.org/rfc4648/-/rfc4648-1.5.4.tgz", @@ -784,6 +4460,62 @@ } ] }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "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/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/smart-buffer": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", @@ -831,6 +4563,47 @@ "node": ">= 14" } }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/stream-buffers": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/stream-buffers/-/stream-buffers-3.0.3.tgz", @@ -850,6 +4623,209 @@ "text-decoder": "^1.1.0" } }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-length/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/string-length/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/string-width-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "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/synckit": { + "version": "0.11.12", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.11.12.tgz", + "integrity": "sha512-Bh7QjT8/SuKUIfObSXNHNSK6WHo6J1tHCqJsuaFDP7gP0fkzSfTxI8y85JrppZ0h8l0maIgc2tfuZQ6/t3GtnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@pkgr/core": "^0.2.9" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/synckit" + } + }, "node_modules/tar-fs": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.1.1.tgz", @@ -875,6 +4851,67 @@ "streamx": "^2.15.0" } }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "license": "ISC", + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/test-exclude/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/test-exclude/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/test-exclude/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/text-decoder": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.3.tgz", @@ -884,6 +4921,165 @@ "b4a": "^1.6.4" } }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true, + "license": "BSD-3-Clause" + }, + "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-jest": { + "version": "29.4.6", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.4.6.tgz", + "integrity": "sha512-fSpWtOO/1AjSNQguk43hb/JCo16oJDnMJf3CdEGNkqsEX3t0KX96xvyX1D7PfLCpVoKu4MfVrqUkFyblYoY4lA==", + "dev": true, + "license": "MIT", + "dependencies": { + "bs-logger": "^0.2.6", + "fast-json-stable-stringify": "^2.1.0", + "handlebars": "^4.7.8", + "json5": "^2.2.3", + "lodash.memoize": "^4.1.2", + "make-error": "^1.3.6", + "semver": "^7.7.3", + "type-fest": "^4.41.0", + "yargs-parser": "^21.1.1" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/transform": "^29.0.0 || ^30.0.0", + "@jest/types": "^29.0.0 || ^30.0.0", + "babel-jest": "^29.0.0 || ^30.0.0", + "jest": "^29.0.0 || ^30.0.0", + "jest-util": "^29.0.0 || ^30.0.0", + "typescript": ">=4.3 <6" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@jest/transform": { + "optional": true + }, + "@jest/types": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jest-util": { + "optional": true + } + } + }, + "node_modules/ts-jest/node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/type-fest": { + "version": "4.41.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true, + "license": "0BSD", + "optional": true + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/uglify-js": { + "version": "3.19.3", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz", + "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", + "dev": true, + "license": "BSD-2-Clause", + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, "node_modules/undici-types": { "version": "6.21.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", @@ -898,6 +5094,72 @@ "node": ">= 10.0.0" } }, + "node_modules/unrs-resolver": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.11.1.tgz", + "integrity": "sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "napi-postinstall": "^0.3.0" + }, + "funding": { + "url": "https://opencollective.com/unrs-resolver" + }, + "optionalDependencies": { + "@unrs/resolver-binding-android-arm-eabi": "1.11.1", + "@unrs/resolver-binding-android-arm64": "1.11.1", + "@unrs/resolver-binding-darwin-arm64": "1.11.1", + "@unrs/resolver-binding-darwin-x64": "1.11.1", + "@unrs/resolver-binding-freebsd-x64": "1.11.1", + "@unrs/resolver-binding-linux-arm-gnueabihf": "1.11.1", + "@unrs/resolver-binding-linux-arm-musleabihf": "1.11.1", + "@unrs/resolver-binding-linux-arm64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-arm64-musl": "1.11.1", + "@unrs/resolver-binding-linux-ppc64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-riscv64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-riscv64-musl": "1.11.1", + "@unrs/resolver-binding-linux-s390x-gnu": "1.11.1", + "@unrs/resolver-binding-linux-x64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-x64-musl": "1.11.1", + "@unrs/resolver-binding-wasm32-wasi": "1.11.1", + "@unrs/resolver-binding-win32-arm64-msvc": "1.11.1", + "@unrs/resolver-binding-win32-ia32-msvc": "1.11.1", + "@unrs/resolver-binding-win32-x64-msvc": "1.11.1" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, "node_modules/url-parse": { "version": "1.5.10", "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", @@ -907,16 +5169,173 @@ "requires-port": "^1.0.0" } }, + "node_modules/v8-to-istanbul": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", + "dev": true, + "license": "ISC", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, "node_modules/vscode-nls": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/vscode-nls/-/vscode-nls-5.2.0.tgz", "integrity": "sha512-RAaHx7B14ZU04EU31pT+rKz2/zSl7xMsfIZuo8pd+KZO6PXtQmpevpq3vxvWNcrGbdmhM/rr5Uw5Mz+NBfhVng==" }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "makeerror": "1.0.12" + } + }, + "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/wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, + "node_modules/write-file-atomic": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.1.tgz", + "integrity": "sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, "node_modules/ws": { "version": "8.18.3", "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz", @@ -937,6 +5356,110 @@ "optional": true } } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/yargs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "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/code/extensions/che-commands/package.json b/code/extensions/che-commands/package.json index 9aff6d62a28..c02b22c8c9b 100644 --- a/code/extensions/che-commands/package.json +++ b/code/extensions/che-commands/package.json @@ -25,6 +25,7 @@ "scripts": { "compile": "gulp compile-extension:che-commands", "watch": "gulp watch-extension:che-commands", + "test": "jest", "vscode:prepublish": "npm run compile", "lint:fix": "eslint --fix --cache=true --no-error-on-unmatched-pattern=true \"{src,tests}/**/*.{ts,tsx}\"", "license:generate": "podman run --rm -t -v $PWD:/workspace/project quay.io/che-incubator/dash-licenses:next" @@ -39,8 +40,11 @@ }, "devDependencies": { "@types/fs-extra": "^9.0.13", + "@types/jest": "^30.0.0", "@types/js-yaml": "^4.0.5", - "@types/node": "22.x" + "@types/node": "22.x", + "jest": "^30.2.0", + "ts-jest": "^29.4.6" }, "repository": { "type": "git", @@ -75,4 +79,4 @@ } ] } -} +} \ No newline at end of file diff --git a/code/extensions/che-commands/src/taskProvider.ts b/code/extensions/che-commands/src/taskProvider.ts index 61b31051531..eb7fd784ce1 100644 --- a/code/extensions/che-commands/src/taskProvider.ts +++ b/code/extensions/che-commands/src/taskProvider.ts @@ -1,5 +1,5 @@ /********************************************************************** - * Copyright (c) 2022-2023 Red Hat, Inc. + * Copyright (c) 2022-2026 Red Hat, Inc. * * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 @@ -10,86 +10,422 @@ /* eslint-disable header/header */ -import { V1alpha2DevWorkspaceSpecTemplate, V1alpha2DevWorkspaceSpecTemplateCommands, V1alpha2DevWorkspaceSpecTemplateCommandsItemsExecEnv } from '@devfile/api'; +import { + V1alpha2DevWorkspaceSpecTemplate, + V1alpha2DevWorkspaceSpecTemplateCommands, + V1alpha2DevWorkspaceSpecTemplateCommandsItemsExecEnv, +} from '@devfile/api'; import * as vscode from 'vscode'; +/** + * Defines the structure of a Devfile task definition. + */ interface DevfileTaskDefinition extends vscode.TaskDefinition { command: string; workdir?: string; component?: string; } -export class DevfileTaskProvider implements vscode.TaskProvider { +/** + * Defines the structure of a resolved execution command. + */ +type ResolvedExec = { + commandLine: string; + workingDir: string; + component?: string; + env?: Array; +}; - constructor(private channel: vscode.OutputChannel, private cheAPI: any, private terminalExtAPI: any) { - } +/** + * Provides tasks based on Devfile commands. + */ +export class DevfileTaskProvider implements vscode.TaskProvider { + constructor( + private readonly channel: vscode.OutputChannel, + private readonly cheAPI: any, + private readonly terminalExtAPI: any, + ) {} + /** + * Provides tasks from the Devfile commands. + * @returns A list of VS Code tasks generated from Devfile commands. + */ provideTasks(): vscode.ProviderResult { return this.computeTasks(); } + /** + * Resolves a given task. + * @param task The task to resolve. + * @returns The resolved task. + */ resolveTask(task: vscode.Task): vscode.ProviderResult { return task; } + /** + * Computes the tasks from the Devfile commands. + * @returns A list of VS Code tasks generated from Devfile commands. + */ private async computeTasks(): Promise { - const devfileCommands = await this.fetchDevfileCommands(); - - const cheTasks: vscode.Task[] = devfileCommands! - .filter(command => command.exec?.commandLine) - .filter(command => { - const importedByAttribute = (command.attributes as any)?.['controller.devfile.io/imported-by']; - return !command.attributes || importedByAttribute === undefined || importedByAttribute === 'parent'; - }) - .filter(command => !/^init-ssh-agent-command-\d+$/.test(command.id)) - .map(command => this.createCheTask(command.exec?.label || command.id, command.exec?.commandLine!, command.exec?.workingDir || '${PROJECT_SOURCE}', command.exec?.component!, command.exec?.env)); - return cheTasks; + const commands = await this.fetchDevfileCommands(); + + return commands + .filter(this.isRunnableCommand) + .filter(this.isNotImportedChild) + .filter((c) => !/^init-ssh-agent-command-\d+$/.test(c.id)) + .map((c) => this.createCheTask(c, commands)) + .filter((t): t is vscode.Task => !!t); } - private async fetchDevfileCommands(): Promise { + /** + * Fetches the Devfile commands from the Che API. + * @returns A promise that resolves to an array of Devfile commands. + */ + private async fetchDevfileCommands(): Promise< + V1alpha2DevWorkspaceSpecTemplateCommands[] + > { const devfileService = this.cheAPI.getDevfileService(); - const devfile: V1alpha2DevWorkspaceSpecTemplate = await devfileService.get(); - if (devfile.commands && devfile.commands.length) { - this.channel.appendLine(`Detected ${devfile.commands.length} Command(s) in the flattened Devfile.`); - return devfile.commands; + const devfile: V1alpha2DevWorkspaceSpecTemplate = + await devfileService.get(); + + const cmds = devfile.commands ?? []; + if (cmds.length) { + this.channel.appendLine( + `Detected ${cmds.length} Command(s) in the flattened Devfile.`, + ); } - return []; + return cmds; } - private createCheTask(name: string, command: string, workdir: string, component: string, env?: Array): vscode.Task { - function expandEnvVariables(line: string): string { - const regex = /\${[a-zA-Z_][a-zA-Z0-9_]*}/g; - const envArray = line.match(regex); - if (envArray && envArray.length) { - for (const envName of envArray) { - const envValue = process.env[envName.slice(2, -1)]; - if (envValue) { - line = line.replace(envName, envValue); - } - } + /** + * Checks if a Devfile command is runnable. + * @param command The command to check. + * @returns True if the command is runnable, false otherwise. + */ + private isRunnableCommand(command: any): boolean { + return ( + !!command.exec?.commandLine || + (command.composite && + Array.isArray(command.composite.commands) && + command.composite.commands.length > 0) + ); + } + + /** + * Checks if a Devfile command is an imported child. + * @param command The command to check. + * @returns True if the command is an imported child, false otherwise. + */ + private isNotImportedChild(command: any): boolean { + const importedBy = (command.attributes as any)?.[ + "controller.devfile.io/imported-by" + ]; + return ( + !command.attributes || importedBy === undefined || importedBy === "parent" + ); + } + + /** + * Normalizes the execution block. + * @param execBlock The execution block to normalize. + * @returns The normalized execution or null if invalid. + */ + private normalizeExec(execBlock: any): ResolvedExec | null { + if (!execBlock?.commandLine) return null; + + let lines: string[] = Array.isArray(execBlock.commandLine) + ? execBlock.commandLine.map(String) + : execBlock.commandLine.toString().split(/\r?\n/); + + lines = lines + .map((line) => line.replace(/\\\\\s*$/, " \\")) + .map((line) => line.trim()) + .filter(Boolean) + .map((line) => line.replace(/(?:\s*&&\s*)+$/, "").trim()); + + if (!lines.length) return null; + + const isShellScript = lines.some( + (line) => + line.endsWith("\\") || + line.endsWith(";") || + line.includes("||") || + line.includes("|") || + line.includes("<<"), + ); + + return { + commandLine: isShellScript ? lines.join("\n") : lines.join(" && "), + workingDir: (execBlock.workingDir ?? "${PROJECT_SOURCE}").toString(), + component: execBlock.component?.toString(), + env: Array.isArray(execBlock.env) ? execBlock.env : undefined, + }; + } + + /** + * Builds the initial environment variable exports. + * @param env The environment variables to build. + * @returns A string containing the initial environment variable exports. + */ + private buildInitialVariables( + env?: Array, + ): string { + if (!env?.length) return ""; + return env + .filter((e) => e?.name) + .map( + (e) => + `export ${e.name}="${(e.value ?? "").toString().replace(/"/g, '\\"')}"; `, + ) + .join(""); + } + + /** + * Validates composite commands strictly to avoid cyclic references. + * @param command The command to check. + * @param all All available commands. + * @param visited A set of visited command IDs. + * @returns True if the command is valid, false otherwise. + */ + private validateCompositeStrict( + command: any, + all: V1alpha2DevWorkspaceSpecTemplateCommands[], + visited = new Set(), + ): boolean { + if (!command?.composite?.commands) return true; + + if (command.id) { + if (visited.has(command.id)) { + this.channel.appendLine( + `Skipping composite ${command.id}: cyclic reference detected`, + ); + return false; } - return line; + visited.add(command.id); } - const kind: DevfileTaskDefinition = { - type: 'devfile', - command, - workdir, - component + for (const entry of command.composite.commands) { + const sub = + typeof entry === "string" ? all.find((c) => c.id === entry) : entry; + + if (!sub) { + this.channel.appendLine( + `Composite ${command.id} references missing command`, + ); + return false; + } + + if (!this.validateCompositeStrict(sub, all, visited)) return false; + } + + if (command.id) visited.delete(command.id); + return true; + } + + /** + * Resolves all exec commands from a composite command. + * @param command The composite command to resolve. + * @param all All available commands. + * @returns An array of resolved exec commands. + */ + private resolveExecsFromComposite( + command: any, + all: V1alpha2DevWorkspaceSpecTemplateCommands[], + ): ResolvedExec[] { + const result: ResolvedExec[] = []; + + const walk = (cmd: any) => { + if (cmd.exec) { + const norm = this.normalizeExec(cmd.exec); + if (norm) result.push(norm); + } + for (const e of cmd.composite?.commands ?? []) { + const sub = typeof e === "string" ? all.find((c) => c.id === e) : e; + if (sub) walk(sub); + } }; - const execution = new vscode.CustomExecution(async (): Promise => { - let initialVariables = ''; - if (env) { - for (const e of env) { - let value = e.value.replaceAll('"', '\\"'); - initialVariables += `export ${e.name}="${value}"; `; + walk(command); + return result; + } + + /** + * Creates a PTY execution for a task. + * @param component The component to execute the command in. + * @param command The command to execute. + * @param workingDir The working directory for the command. + * @returns A CustomExecution instance for the PTY execution. + */ + private createPTYExecution( + component: string | undefined, + command: string, + workingDir: string, + ): vscode.CustomExecution { + return new vscode.CustomExecution(async () => { + const resolvedWd = this.expandEnvVariables(workingDir); + return this.terminalExtAPI.getMachineExecPTY( + component, + command, + resolvedWd, + ); + }); + } + + /** + * Creates a VS Code task. + * @param kind The kind of the task. + * @param label The label of the task. + * @param execution The execution of the task. + * @returns The created VS Code task. + */ + private createTask( + kind: DevfileTaskDefinition, + label: string, + execution: vscode.CustomExecution, + ): vscode.Task { + return new vscode.Task( + kind, + vscode.TaskScope.Workspace, + label, + "devfile", + execution, + [], + ); + } + + /** + * Creates a message task that echoes a message. + * @param message The message to echo. + * @param label The label of the task. + * @returns The created message task. + */ + private createMessageTask(message: string, label: string): vscode.Task { + return this.createTask( + { type: "devfile", command: "", workdir: "${PROJECT_SOURCE}" }, + label, + this.createPTYExecution( + undefined, + `echo "${message.replace(/"/g, '\\"')}"`, + "${PROJECT_SOURCE}", + ), + ); + } + + /** + * Expands environment variables in a string. + * @param line The line to expand. + * @returns The expanded line. + */ + private expandEnvVariables(line: string): string { + return line.replace(/\${([A-Z0-9_]+)}/gi, (_, k) => process.env[k] ?? ""); + } + + /** + * Creates a Che task from a command. + * @param command The command to create the task from. + * @param allCommands All available commands. + * @returns The created Che task. + */ + private createCheTask( + command: any, + allCommands: V1alpha2DevWorkspaceSpecTemplateCommands[], + ): vscode.Task | undefined { + try { + + // ------------------ EXEC ------------------ + if (command.exec) { + const exec = this.normalizeExec(command.exec); + if (!exec) return; + + const initialVars = this.buildInitialVariables(command.exec.env); + const fullCommand = initialVars + exec.commandLine; + + return this.createTask( + { + type: "devfile", + command: fullCommand, + workdir: exec.workingDir, + component: exec.component, + }, + command.exec.label || command.id, + this.createPTYExecution(exec.component, fullCommand, exec.workingDir), + ); + } + + // ------------------ COMPOSITE ------------------ + if (command.composite?.commands?.length) { + if (!this.validateCompositeStrict(command, allCommands)) { + return; + } + + const execs = this.resolveExecsFromComposite(command, allCommands); + if (!execs.length) { + return this.createMessageTask( + `Composite ${command.id} resolved to empty`, + command.id, + ); + } + + const components = new Set(execs.map((e) => e.component ?? "")); + const isMultiComponent = components.size > 1; + const parallel = !!command.composite.parallel; + + // Multi-component → sequential execution of commands + if (isMultiComponent) { + return this.createTask( + { type: "devfile", command: "[multi-component composite]" }, + command.id, + new vscode.CustomExecution(async () => { + for (const e of execs) { + await this.terminalExtAPI.getMachineExecPTY( + e.component, + e.commandLine, + this.expandEnvVariables(e.workingDir), + ); + } + return this.terminalExtAPI.getMachineExecPTY( + undefined, + 'echo "Composite multi-component execution completed"', + this.expandEnvVariables("${PROJECT_SOURCE}"), + ); + }), + ); } + + // Single-component → join commands + const joiner = parallel ? " & " : " && "; + let compositeCmd = execs.map((e) => e.commandLine).join(joiner); + if (parallel) compositeCmd += " ; wait"; + + const primary = execs[0]; + + return this.createTask( + { + type: "devfile", + command: compositeCmd, + workdir: primary.workingDir, + component: primary.component, + }, + command.id, + this.createPTYExecution( + primary.component, + compositeCmd, + primary.workingDir, + ), + ); } - return this.terminalExtAPI.getMachineExecPTY(component, initialVariables + command, expandEnvVariables(workdir)); - }); - const task = new vscode.Task(kind, vscode.TaskScope.Workspace, name, 'devfile', execution, []); - return task; + // ------------------ UNSUPPORTED ------------------ + return this.createMessageTask( + `Unsupported command type for ${command?.id ?? ""}`, + command?.id ?? "unsupported", + ); + } catch (err: any) { + this.channel.appendLine( + `Error creating task for ${command?.id}: ${err?.message ?? String(err)}`, + ); + return; + } } } diff --git a/code/extensions/che-commands/tests/__mocks__/vscode.ts b/code/extensions/che-commands/tests/__mocks__/vscode.ts new file mode 100644 index 00000000000..2d4195b6645 --- /dev/null +++ b/code/extensions/che-commands/tests/__mocks__/vscode.ts @@ -0,0 +1,39 @@ +/********************************************************************** + * Copyright (c) 2026 Red Hat, Inc. + * + * This program and the accompanying materials are made + * available under the terms of the Eclipse Public License 2.0 + * which is available at https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + ***********************************************************************/ + +/* eslint-disable header/header */ + +export enum TaskScope { + Workspace = 1, +} + +export class CustomExecution { + callback: () => Promise; + constructor(cb: () => Promise) { + this.callback = cb; + } +} + +export class Task { + constructor( + public definition: any, + public scope: any, + public name: string, + public source: string, + public execution: any, + public problemMatchers: any[] + ) {} +} + +export const window = { + createOutputChannel: jest.fn(() => ({ + appendLine: jest.fn(), + })), +}; diff --git a/code/extensions/che-commands/tests/mocks.ts b/code/extensions/che-commands/tests/mocks.ts new file mode 100644 index 00000000000..ab1f515f34f --- /dev/null +++ b/code/extensions/che-commands/tests/mocks.ts @@ -0,0 +1,41 @@ +/********************************************************************** + * Copyright (c) 2026 Red Hat, Inc. + * + * This program and the accompanying materials are made + * available under the terms of the Eclipse Public License 2.0 + * which is available at https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + ***********************************************************************/ + +/* eslint-disable header/header */ + +export class MockTerminalAPI { + public calls: Array<{ component?: string; command: string; cwd: string }> = []; + + async getMachineExecPTY(component: string | undefined, command: string, cwd: string) { + this.calls.push({ component, command, cwd }); + return { + open: () => {}, + close: () => {}, + onDidWrite: () => {}, + onDidClose: () => {}, + handleInput: () => {} + }; + } +} + + +class MockDevfileService { + constructor(private devfile: any) {} + async get() { + return this.devfile; + } +} + +export class MockCheAPI { + constructor(private devfile: any) {} + getDevfileService() { + return new MockDevfileService(this.devfile); + } +} diff --git a/code/extensions/che-commands/tests/taskProvider.test.ts b/code/extensions/che-commands/tests/taskProvider.test.ts new file mode 100644 index 00000000000..2aa2258c6c7 --- /dev/null +++ b/code/extensions/che-commands/tests/taskProvider.test.ts @@ -0,0 +1,568 @@ +/********************************************************************** + * Copyright (c) 2026 Red Hat, Inc. + * + * This program and the accompanying materials are made + * available under the terms of the Eclipse Public License 2.0 + * which is available at https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + ***********************************************************************/ + +/* eslint-disable header/header */ + +import { DevfileTaskProvider } from "../src/taskProvider"; +import { MockCheAPI, MockTerminalAPI } from "./mocks"; +import * as vscode from "vscode"; + +describe("Trailing with '&'", () => { + test("removes trailing && from exec command", async () => { + const devfile = { + commands: [{ id: "build", exec: { commandLine: "npm run build &&" } }], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const tasks = await provider.provideTasks(); + const exec = tasks![0].execution as any; + await exec.callback(); + + expect(terminal.calls[0].command).toBe("npm run build"); + }); + + test("normalizes multiline YAML command with &&", async () => { + const devfile = { + commands: [ + { + id: "compile", + exec: { + commandLine: ["mvn clean &&", "", "mvn install &&"], + }, + }, + ], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; + await exec.callback(); + + expect(terminal.calls[0].command).toBe("mvn clean && mvn install"); + }); +}); + +describe("Command normalization & composites)", () => { + test("composite joins subcommands without broken &&", async () => { + const devfile = { + commands: [ + { id: "a", exec: { commandLine: "echo A &&" } }, + { id: "b", exec: { commandLine: "echo B &&" } }, + { id: "all", composite: { commands: ["a", "b"] } }, + ], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const tasks = await provider.provideTasks(); + const composite = (tasks || []).find( + (t: { name: string }) => t.name === "all", + )!; + const exec = composite.execution as any; + await exec.callback(); + + expect(terminal.calls[0].command).toBe("echo A && echo B"); + }); + + test("parallel composite uses & and wait", async () => { + const devfile = { + commands: [ + { id: "a", exec: { commandLine: "echo A" } }, + { id: "b", exec: { commandLine: "echo B" } }, + { + id: "p", + composite: { parallel: true, commands: ["a", "b"] }, + }, + ], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const exec = ((await provider.provideTasks()) || []).find( + (t: { name: string }) => t.name === "p", + )!.execution as any; + + await exec.callback(); + + expect(terminal.calls[0].command).toBe("echo A & echo B ; wait"); + }); + + test("cyclic composite is rejected", async () => { + const devfile = { + commands: [ + { id: "a", composite: { commands: ["b"] } }, + { id: "b", composite: { commands: ["a"] } }, + ], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const tasks = await provider.provideTasks(); + expect((tasks || []).length).toBe(0); + }); +}); + +describe("Advanced shell normalization rules", () => { + test("does not break shell line-continuation (\\) commands", async () => { + const devfile = { + commands: [ + { + id: "debug", + exec: { + commandLine: ` +dlv \\ + --listen=127.0.0.1:1234 \\ + --only-same-user=false \\ + debug main.go +`, + }, + }, + ], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; + await exec.callback(); + + expect(terminal.calls[0].command).toBe( + `dlv \\ +--listen=127.0.0.1:1234 \\ +--only-same-user=false \\ +debug main.go`, + ); + }); + + test("does not inject && when semicolon chaining is used", async () => { + const devfile = { + commands: [ + { + id: "semicolon", + exec: { + commandLine: ` +echo start; +echo middle; +echo end +`, + }, + }, + ], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; + await exec.callback(); + + expect(terminal.calls[0].command).toBe(`echo start; +echo middle; +echo end`); + }); + + test("does not inject && when || operator is used", async () => { + const devfile = { + commands: [ + { + id: "or-operator", + exec: { + commandLine: ` +make build || echo "build failed" +`, + }, + }, + ], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; + await exec.callback(); + + expect(terminal.calls[0].command).toBe('make build || echo "build failed"'); + }); + + test("does not inject && when pipes are used", async () => { + const devfile = { + commands: [ + { + id: "pipe", + exec: { + commandLine: ` +ps aux | grep node | wc -l +`, + }, + }, + ], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; + await exec.callback(); + + expect(terminal.calls[0].command).toBe("ps aux | grep node | wc -l"); + }); + + test("does not break here-doc commands", async () => { + const devfile = { + commands: [ + { + id: "heredoc", + exec: { + commandLine: ` +cat < file.txt +hello +world +EOF +`, + }, + }, + ], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; + await exec.callback(); + + expect(terminal.calls[0].command).toBe( + `cat < file.txt +hello +world +EOF`, + ); + }); + + test("does not break docker multiline commands", async () => { + const devfile = { + commands: [ + { + id: "docker", + exec: { + commandLine: ` +docker run \\ + -v /tmp:/app \\ + node:18 npm test +`, + }, + }, + ], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; + await exec.callback(); + + expect(terminal.calls[0].command).toBe( + `docker run \\ +-v /tmp:/app \\ +node:18 npm test`, + ); + }); + + test("mixed advanced syntax still avoids && injection", async () => { + const devfile = { + commands: [ + { + id: "mixed", + exec: { + commandLine: ` +echo hello | grep h; +echo done +`, + }, + }, + ], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; + await exec.callback(); + + expect(terminal.calls[0].command).toBe( + `echo hello | grep h; +echo done`, + ); + }); + + test("single line command remains unchanged", async () => { + const devfile = { + commands: [ + { + id: "single", + exec: { + commandLine: "npm run build", + }, + }, + ], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; + await exec.callback(); + + expect(terminal.calls[0].command).toBe("npm run build"); + }); + + test("simple multiline commands get && injected", async () => { + const devfile = { + commands: [ + { + id: "simple-chain", + exec: { + commandLine: ` +npm install +npm test +npm build +`, + }, + }, + ], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; + await exec.callback(); + + expect(terminal.calls[0].command).toBe( + "npm install && npm test && npm build", + ); + }); +}); + +describe("Check exec has its own component", () => { + test("composite sequential runs each exec in its own component", async () => { + const devfile = { + commands: [ + { + id: "a", + exec: { + component: "builder", + commandLine: "echo A", + }, + }, + { + id: "b", + exec: { + component: "runtime", + commandLine: "echo B", + }, + }, + { + id: "seq", + composite: { + commands: ["a", "b"], + parallel: false, + }, + }, + ], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const tasks = await provider.provideTasks(); + const composite = tasks!.find((t) => t.name === "seq")!; + const exec = composite.execution as any; + + await exec.callback(); + + // Two real execs + 1 dummy PTY completion message + expect(terminal.calls.length).toBe(3); + + expect(terminal.calls[0]).toEqual({ + component: "builder", + command: "echo A", + cwd: expect.any(String), + }); + + expect(terminal.calls[1]).toEqual({ + component: "runtime", + command: "echo B", + cwd: expect.any(String), + }); + }); + + test("composite parallel runs each exec in its own component", async () => { + const devfile = { + commands: [ + { + id: "a", + exec: { + component: "builder", + commandLine: "echo A", + }, + }, + { + id: "b", + exec: { + component: "runtime", + commandLine: "echo B", + }, + }, + { + id: "par", + composite: { + commands: ["a", "b"], + parallel: true, + }, + }, + ], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const tasks = await provider.provideTasks(); + const composite = tasks!.find((t) => t.name === "par")!; + const exec = composite.execution as any; + + await exec.callback(); + + // Two real execs + 1 dummy PTY completion message + expect(terminal.calls.length).toBe(3); + + const components = terminal.calls + .slice(0, 2) + .map((c) => c.component) + .sort(); + + expect(components).toEqual(["builder", "runtime"]); + }); + + test("composite with same component is flattened into one execution", async () => { + const devfile = { + commands: [ + { + id: "a", + exec: { + component: "python", + commandLine: "echo A", + }, + }, + { + id: "b", + exec: { + component: "python", + commandLine: "echo B", + }, + }, + { + id: "flat", + composite: { + commands: ["a", "b"], + parallel: false, + }, + }, + ], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const tasks = await provider.provideTasks(); + const composite = tasks!.find((t) => t.name === "flat")!; + const exec = composite.execution as any; + + await exec.callback(); + + // Only ONE real execution + expect(terminal.calls.length).toBe(1); + expect(terminal.calls[0].component).toBe("python"); + expect(terminal.calls[0].command).toBe("echo A && echo B"); + }); +}); diff --git a/code/extensions/che-commands/tsconfig.jest.json b/code/extensions/che-commands/tsconfig.jest.json new file mode 100644 index 00000000000..f8cd785fa88 --- /dev/null +++ b/code/extensions/che-commands/tsconfig.jest.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2020", + "esModuleInterop": true, + "strict": true, + "types": ["node", "jest"] + }, + "include": [ + "tests/**/*.ts", + "../../src/vscode-dts/vscode.d.ts" + ] +} diff --git a/code/extensions/che-commands/tsconfig.json b/code/extensions/che-commands/tsconfig.json index d29c1d14ed2..f3f526b3fd9 100644 --- a/code/extensions/che-commands/tsconfig.json +++ b/code/extensions/che-commands/tsconfig.json @@ -4,13 +4,16 @@ "outDir": "./out", "experimentalDecorators": true, "emitDecoratorMetadata": true, + "declaration": true, "types": [ "node", + "jest", "reflect-metadata" ] }, "include": [ "src/**/*", - "../../src/vscode-dts/vscode.d.ts", + "tests/**/*.ts", + "../../src/vscode-dts/vscode.d.ts" ] } From 880d2ca7b3da6ab74b44998c8aacdaae452a5451 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Fri, 30 Jan 2026 17:42:13 +0530 Subject: [PATCH 02/25] resolved the license check issue --- .../extensions/che-commands/package-lock.json | 2428 ++++++----------- code/extensions/che-commands/package.json | 6 +- 2 files changed, 845 insertions(+), 1589 deletions(-) diff --git a/code/extensions/che-commands/package-lock.json b/code/extensions/che-commands/package-lock.json index cb884ed93d3..015ba32bb6b 100644 --- a/code/extensions/che-commands/package-lock.json +++ b/code/extensions/che-commands/package-lock.json @@ -18,11 +18,11 @@ }, "devDependencies": { "@types/fs-extra": "^9.0.13", - "@types/jest": "^30.0.0", + "@types/jest": "^29.5.0", "@types/js-yaml": "^4.0.5", "@types/node": "22.x", - "jest": "^30.2.0", - "ts-jest": "^29.4.6" + "jest": "29.7.0", + "ts-jest": "29.4.5" }, "engines": { "vscode": "^1.63.0" @@ -525,9 +525,10 @@ "license": "MIT" }, "node_modules/@devfile/api": { - "version": "2.3.0-1738854228", - "resolved": "https://registry.npmjs.org/@devfile/api/-/api-2.3.0-1738854228.tgz", - "integrity": "sha512-sA7ZqmamZ786Lnvs7sFyK7E7l9CNsYN/TzQmdDHvmiVXzF9XLm2LfqxTRpyhXO9IMFdbI702g1JudIlyrw6IQQ==", + "version": "2.3.0-1757407014", + "resolved": "https://registry.npmjs.org/@devfile/api/-/api-2.3.0-1757407014.tgz", + "integrity": "sha512-keQ2K2wWNv83tSHN+nflX8W57TQDjqaF9CTFmjWLFTKHEMgwJqTOrQZENR9alq4bO+yC8GAvWiWS3NaMQqazrw==", + "license": "Apache-2.0", "dependencies": { "@types/node": "*", "@types/node-fetch": "^2.5.7", @@ -537,58 +538,6 @@ "url-parse": "^1.4.3" } }, - "node_modules/@emnapi/core": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.8.1.tgz", - "integrity": "sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@emnapi/wasi-threads": "1.1.0", - "tslib": "^2.4.0" - } - }, - "node_modules/@emnapi/runtime": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.8.1.tgz", - "integrity": "sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/@emnapi/wasi-threads": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.1.0.tgz", - "integrity": "sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -641,61 +590,61 @@ } }, "node_modules/@jest/console": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-30.2.0.tgz", - "integrity": "sha512-+O1ifRjkvYIkBqASKWgLxrpEhQAAE7hY77ALLUufSk5717KfOShg6IbqLmdsLMPdUiFvA2kTs0R7YZy+l0IzZQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", "dev": true, "license": "MIT", "dependencies": { - "@jest/types": "30.2.0", + "@jest/types": "^29.6.3", "@types/node": "*", - "chalk": "^4.1.2", - "jest-message-util": "30.2.0", - "jest-util": "30.2.0", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", "slash": "^3.0.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/core": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-30.2.0.tgz", - "integrity": "sha512-03W6IhuhjqTlpzh/ojut/pDB2LPRygyWX8ExpgHtQA8H/3K7+1vKmcINx5UzeOX1se6YEsBsOHQ1CRzf3fOwTQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", "dev": true, "license": "MIT", "dependencies": { - "@jest/console": "30.2.0", - "@jest/pattern": "30.0.1", - "@jest/reporters": "30.2.0", - "@jest/test-result": "30.2.0", - "@jest/transform": "30.2.0", - "@jest/types": "30.2.0", + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", - "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", - "ci-info": "^4.2.0", - "exit-x": "^0.2.2", - "graceful-fs": "^4.2.11", - "jest-changed-files": "30.2.0", - "jest-config": "30.2.0", - "jest-haste-map": "30.2.0", - "jest-message-util": "30.2.0", - "jest-regex-util": "30.0.1", - "jest-resolve": "30.2.0", - "jest-resolve-dependencies": "30.2.0", - "jest-runner": "30.2.0", - "jest-runtime": "30.2.0", - "jest-snapshot": "30.2.0", - "jest-util": "30.2.0", - "jest-validate": "30.2.0", - "jest-watcher": "30.2.0", - "micromatch": "^4.0.8", - "pretty-format": "30.2.0", - "slash": "^3.0.0" + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -706,150 +655,117 @@ } } }, - "node_modules/@jest/diff-sequences": { - "version": "30.0.1", - "resolved": "https://registry.npmjs.org/@jest/diff-sequences/-/diff-sequences-30.0.1.tgz", - "integrity": "sha512-n5H8QLDJ47QqbCNn5SuFjCRDrOLEZ0h8vAHCK5RL9Ls7Xa8AQLa/YxAc9UjFqoEDM48muwtBGjtMY5cr0PLDCw==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" - } - }, "node_modules/@jest/environment": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-30.2.0.tgz", - "integrity": "sha512-/QPTL7OBJQ5ac09UDRa3EQes4gt1FTEG/8jZ/4v5IVzx+Cv7dLxlVIvfvSVRiiX2drWyXeBjkMSR8hvOWSog5g==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", "dev": true, "license": "MIT", "dependencies": { - "@jest/fake-timers": "30.2.0", - "@jest/types": "30.2.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", - "jest-mock": "30.2.0" + "jest-mock": "^29.7.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/expect": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-30.2.0.tgz", - "integrity": "sha512-V9yxQK5erfzx99Sf+7LbhBwNWEZ9eZay8qQ9+JSC0TrMR1pMDHLMY+BnVPacWU6Jamrh252/IKo4F1Xn/zfiqA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", "dev": true, "license": "MIT", "dependencies": { - "expect": "30.2.0", - "jest-snapshot": "30.2.0" + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/expect-utils": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-30.2.0.tgz", - "integrity": "sha512-1JnRfhqpD8HGpOmQp180Fo9Zt69zNtC+9lR+kT7NVL05tNXIi+QC8Csz7lfidMoVLPD3FnOtcmp0CEFnxExGEA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", "dev": true, "license": "MIT", "dependencies": { - "@jest/get-type": "30.1.0" + "jest-get-type": "^29.6.3" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/fake-timers": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-30.2.0.tgz", - "integrity": "sha512-HI3tRLjRxAbBy0VO8dqqm7Hb2mIa8d5bg/NJkyQcOk7V118ObQML8RC5luTF/Zsg4474a+gDvhce7eTnP4GhYw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", "dev": true, "license": "MIT", "dependencies": { - "@jest/types": "30.2.0", - "@sinonjs/fake-timers": "^13.0.0", + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", "@types/node": "*", - "jest-message-util": "30.2.0", - "jest-mock": "30.2.0", - "jest-util": "30.2.0" + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" - } - }, - "node_modules/@jest/get-type": { - "version": "30.1.0", - "resolved": "https://registry.npmjs.org/@jest/get-type/-/get-type-30.1.0.tgz", - "integrity": "sha512-eMbZE2hUnx1WV0pmURZY9XoXPkUYjpc55mb0CrhtdWLtzMQPFvu/rZkTLZFTsdaVQa+Tr4eWAteqcUzoawq/uA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/globals": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-30.2.0.tgz", - "integrity": "sha512-b63wmnKPaK+6ZZfpYhz9K61oybvbI1aMcIs80++JI1O1rR1vaxHUCNqo3ITu6NU0d4V34yZFoHMn/uoKr/Rwfw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/environment": "30.2.0", - "@jest/expect": "30.2.0", - "@jest/types": "30.2.0", - "jest-mock": "30.2.0" - }, - "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" - } - }, - "node_modules/@jest/pattern": { - "version": "30.0.1", - "resolved": "https://registry.npmjs.org/@jest/pattern/-/pattern-30.0.1.tgz", - "integrity": "sha512-gWp7NfQW27LaBQz3TITS8L7ZCQ0TLvtmI//4OwlQRx4rnWxcPNIYjxZpDcN4+UlGxgm3jS5QPz8IPTCkb59wZA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", "dev": true, "license": "MIT", "dependencies": { - "@types/node": "*", - "jest-regex-util": "30.0.1" + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/reporters": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-30.2.0.tgz", - "integrity": "sha512-DRyW6baWPqKMa9CzeiBjHwjd8XeAyco2Vt8XbcLFjiwCOEKOvy82GJ8QQnJE9ofsxCMPjH4MfH8fCWIHHDKpAQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", "dev": true, "license": "MIT", "dependencies": { "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "30.2.0", - "@jest/test-result": "30.2.0", - "@jest/transform": "30.2.0", - "@jest/types": "30.2.0", - "@jridgewell/trace-mapping": "^0.3.25", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", "@types/node": "*", - "chalk": "^4.1.2", - "collect-v8-coverage": "^1.0.2", - "exit-x": "^0.2.2", - "glob": "^10.3.10", - "graceful-fs": "^4.2.11", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", "istanbul-lib-coverage": "^3.0.0", "istanbul-lib-instrument": "^6.0.0", "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^5.0.0", + "istanbul-lib-source-maps": "^4.0.0", "istanbul-reports": "^3.1.3", - "jest-message-util": "30.2.0", - "jest-util": "30.2.0", - "jest-worker": "30.2.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", "slash": "^3.0.0", - "string-length": "^4.0.2", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", "v8-to-istanbul": "^9.0.1" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -861,125 +777,108 @@ } }, "node_modules/@jest/schemas": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-30.0.5.tgz", - "integrity": "sha512-DmdYgtezMkh3cpU8/1uyXakv3tJRcmcXxBOcO0tbaozPwpmh4YMsnWrQm9ZmZMfa5ocbxzbFk6O4bDPEc/iAnA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@sinclair/typebox": "^0.34.0" - }, - "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" - } - }, - "node_modules/@jest/snapshot-utils": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/@jest/snapshot-utils/-/snapshot-utils-30.2.0.tgz", - "integrity": "sha512-0aVxM3RH6DaiLcjj/b0KrIBZhSX1373Xci4l3cW5xiUWPctZ59zQ7jj4rqcJQ/Z8JuN/4wX3FpJSa3RssVvCug==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", "dev": true, "license": "MIT", "dependencies": { - "@jest/types": "30.2.0", - "chalk": "^4.1.2", - "graceful-fs": "^4.2.11", - "natural-compare": "^1.4.0" + "@sinclair/typebox": "^0.27.8" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/source-map": { - "version": "30.0.1", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-30.0.1.tgz", - "integrity": "sha512-MIRWMUUR3sdbP36oyNyhbThLHyJ2eEDClPCiHVbrYAe5g3CHRArIVpBw7cdSB5fr+ofSfIb2Tnsw8iEHL0PYQg==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", "dev": true, "license": "MIT", "dependencies": { - "@jridgewell/trace-mapping": "^0.3.25", - "callsites": "^3.1.0", - "graceful-fs": "^4.2.11" + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/test-result": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-30.2.0.tgz", - "integrity": "sha512-RF+Z+0CCHkARz5HT9mcQCBulb1wgCP3FBvl9VFokMX27acKphwyQsNuWH3c+ojd1LeWBLoTYoxF0zm6S/66mjg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", "dev": true, "license": "MIT", "dependencies": { - "@jest/console": "30.2.0", - "@jest/types": "30.2.0", - "@types/istanbul-lib-coverage": "^2.0.6", - "collect-v8-coverage": "^1.0.2" + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/test-sequencer": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-30.2.0.tgz", - "integrity": "sha512-wXKgU/lk8fKXMu/l5Hog1R61bL4q5GCdT6OJvdAFz1P+QrpoFuLU68eoKuVc4RbrTtNnTL5FByhWdLgOPSph+Q==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", "dev": true, "license": "MIT", "dependencies": { - "@jest/test-result": "30.2.0", - "graceful-fs": "^4.2.11", - "jest-haste-map": "30.2.0", + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", "slash": "^3.0.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/transform": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-30.2.0.tgz", - "integrity": "sha512-XsauDV82o5qXbhalKxD7p4TZYYdwcaEXC77PPD2HixEFF+6YGppjrAAQurTl2ECWcEomHBMMNS9AH3kcCFx8jA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/core": "^7.27.4", - "@jest/types": "30.2.0", - "@jridgewell/trace-mapping": "^0.3.25", - "babel-plugin-istanbul": "^7.0.1", - "chalk": "^4.1.2", + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", "convert-source-map": "^2.0.0", "fast-json-stable-stringify": "^2.1.0", - "graceful-fs": "^4.2.11", - "jest-haste-map": "30.2.0", - "jest-regex-util": "30.0.1", - "jest-util": "30.2.0", - "micromatch": "^4.0.8", - "pirates": "^4.0.7", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", "slash": "^3.0.0", - "write-file-atomic": "^5.0.1" + "write-file-atomic": "^4.0.2" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/types": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-30.2.0.tgz", - "integrity": "sha512-H9xg1/sfVvyfU7o3zMfBEjQ1gcsdeTMgqHoYdN79tuLqfTtuu7WckRA1R5whDwOzxaZAeMKTYWqP+WCAi0CHsg==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", "dev": true, "license": "MIT", "dependencies": { - "@jest/pattern": "30.0.1", - "@jest/schemas": "30.0.5", - "@types/istanbul-lib-coverage": "^2.0.6", - "@types/istanbul-reports": "^3.0.4", + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", "@types/node": "*", - "@types/yargs": "^17.0.33", - "chalk": "^4.1.2" + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jridgewell/gen-mapping": { @@ -1036,6 +935,7 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/@jsep-plugin/assignment/-/assignment-1.3.0.tgz", "integrity": "sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ==", + "license": "MIT", "engines": { "node": ">= 10.16.0" }, @@ -1047,6 +947,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.4.tgz", "integrity": "sha512-q7qL4Mgjs1vByCaTnDFcBnV9HS7GVPJX5vyVoCgZHNSC9rjwIlmbXG5sUuorR5ndfHAIlJ8pVStxvjXHbNvtUg==", + "license": "MIT", "engines": { "node": ">= 10.16.0" }, @@ -1079,9 +980,9 @@ } }, "node_modules/@kubernetes/client-node/node_modules/@types/node": { - "version": "24.10.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz", - "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==", + "version": "24.10.9", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.9.tgz", + "integrity": "sha512-ne4A0IpG3+2ETuREInjPNhUGis1SFjv1d5asp8MzEAGtOZeTeHVDOYqOgqfhvseqg/iXty2hjBf1zAOb7RNiNw==", "license": "MIT", "dependencies": { "undici-types": "~7.16.0" @@ -1109,47 +1010,10 @@ "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", "license": "MIT" }, - "node_modules/@napi-rs/wasm-runtime": { - "version": "0.2.12", - "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-0.2.12.tgz", - "integrity": "sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@emnapi/core": "^1.4.3", - "@emnapi/runtime": "^1.4.3", - "@tybys/wasm-util": "^0.10.0" - } - }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "dev": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=14" - } - }, - "node_modules/@pkgr/core": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.2.9.tgz", - "integrity": "sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/pkgr" - } - }, "node_modules/@sinclair/typebox": { - "version": "0.34.48", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.34.48.tgz", - "integrity": "sha512-kKJTNuK3AQOrgjjotVxMrCn1sUJwM76wMszfq1kdU4uYVJjvEWuFQ6HgvLt4Xz3fSmZlTOxJ/Ie13KnIcWQXFA==", + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", "dev": true, "license": "MIT" }, @@ -1164,24 +1028,13 @@ } }, "node_modules/@sinonjs/fake-timers": { - "version": "13.0.5", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-13.0.5.tgz", - "integrity": "sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", "dev": true, "license": "BSD-3-Clause", "dependencies": { - "@sinonjs/commons": "^3.0.1" - } - }, - "node_modules/@tybys/wasm-util": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz", - "integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" + "@sinonjs/commons": "^3.0.0" } }, "node_modules/@types/babel__core": { @@ -1234,6 +1087,17 @@ "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz", "integrity": "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==", "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*" } @@ -1266,25 +1130,26 @@ } }, "node_modules/@types/jest": { - "version": "30.0.0", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-30.0.0.tgz", - "integrity": "sha512-XTYugzhuwqWjws0CVz8QpM36+T+Dz5mTEBKhNs/esGLnCIlGdRy+Dq78NRjd7ls7r8BC8ZRMOrKlkO1hU0JOwA==", + "version": "29.5.14", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.14.tgz", + "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==", "dev": true, "license": "MIT", "dependencies": { - "expect": "^30.0.0", - "pretty-format": "^30.0.0" + "expect": "^29.0.0", + "pretty-format": "^29.0.0" } }, "node_modules/@types/js-yaml": { "version": "4.0.9", "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.9.tgz", - "integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==" + "integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==", + "license": "MIT" }, "node_modules/@types/node": { - "version": "22.17.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.17.0.tgz", - "integrity": "sha512-bbAKTCqX5aNVryi7qXVMi+OkB3w/OyblodicMbvE38blyAz7GxXf6XYhklokijuPwwVg9sDLKRxt0ZHXQwZVfQ==", + "version": "22.19.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.7.tgz", + "integrity": "sha512-MciR4AKGHWl7xwxkBa6xUGxQJ4VBOmPTF7sL+iGzuahOFaO0jHCsuEfS80pan1ef4gWId1oWOweIhrDEYLuaOw==", "license": "MIT", "dependencies": { "undici-types": "~6.21.0" @@ -1301,9 +1166,9 @@ } }, "node_modules/@types/node-fetch/node_modules/form-data": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", - "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", + "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", "license": "MIT", "dependencies": { "asynckit": "^0.4.0", @@ -1349,282 +1214,15 @@ "dev": true, "license": "MIT" }, - "node_modules/@ungap/structured-clone": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", - "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", - "dev": true, - "license": "ISC" - }, - "node_modules/@unrs/resolver-binding-android-arm-eabi": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm-eabi/-/resolver-binding-android-arm-eabi-1.11.1.tgz", - "integrity": "sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@unrs/resolver-binding-android-arm64": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm64/-/resolver-binding-android-arm64-1.11.1.tgz", - "integrity": "sha512-lCxkVtb4wp1v+EoN+HjIG9cIIzPkX5OtM03pQYkG+U5O/wL53LC4QbIeazgiKqluGeVEeBlZahHalCaBvU1a2g==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@unrs/resolver-binding-darwin-arm64": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.11.1.tgz", - "integrity": "sha512-gPVA1UjRu1Y/IsB/dQEsp2V1pm44Of6+LWvbLc9SDk1c2KhhDRDBUkQCYVWe6f26uJb3fOK8saWMgtX8IrMk3g==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@unrs/resolver-binding-darwin-x64": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.11.1.tgz", - "integrity": "sha512-cFzP7rWKd3lZaCsDze07QX1SC24lO8mPty9vdP+YVa3MGdVgPmFc59317b2ioXtgCMKGiCLxJ4HQs62oz6GfRQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@unrs/resolver-binding-freebsd-x64": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.11.1.tgz", - "integrity": "sha512-fqtGgak3zX4DCB6PFpsH5+Kmt/8CIi4Bry4rb1ho6Av2QHTREM+47y282Uqiu3ZRF5IQioJQ5qWRV6jduA+iGw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.11.1.tgz", - "integrity": "sha512-u92mvlcYtp9MRKmP+ZvMmtPN34+/3lMHlyMj7wXJDeXxuM0Vgzz0+PPJNsro1m3IZPYChIkn944wW8TYgGKFHw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.11.1.tgz", - "integrity": "sha512-cINaoY2z7LVCrfHkIcmvj7osTOtm6VVT16b5oQdS4beibX2SYBwgYLmqhBjA1t51CarSaBuX5YNsWLjsqfW5Cw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm64-gnu": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.11.1.tgz", - "integrity": "sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm64-musl": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.11.1.tgz", - "integrity": "sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.11.1.tgz", - "integrity": "sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.11.1.tgz", - "integrity": "sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-riscv64-musl": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-musl/-/resolver-binding-linux-riscv64-musl-1.11.1.tgz", - "integrity": "sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-s390x-gnu": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.11.1.tgz", - "integrity": "sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-x64-gnu": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.11.1.tgz", - "integrity": "sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-x64-musl": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.11.1.tgz", - "integrity": "sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-wasm32-wasi": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.11.1.tgz", - "integrity": "sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ==", - "cpu": [ - "wasm32" - ], - "dev": true, + "node_modules/agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", "license": "MIT", - "optional": true, - "dependencies": { - "@napi-rs/wasm-runtime": "^0.2.11" - }, "engines": { - "node": ">=14.0.0" + "node": ">= 14" } }, - "node_modules/@unrs/resolver-binding-win32-arm64-msvc": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.11.1.tgz", - "integrity": "sha512-nRcz5Il4ln0kMhfL8S3hLkxI85BXs3o8EYoattsJNdsX4YUU89iOkVn7g0VHSRxFuVMdM4Q1jEpIId1Ihim/Uw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@unrs/resolver-binding-win32-ia32-msvc": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.11.1.tgz", - "integrity": "sha512-DCEI6t5i1NmAZp6pFonpD5m7i6aFrpofcp4LA2i8IIq60Jyo28hamKBxNrZcyOwVOZkgsRp9O2sXWBWP8MnvIQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@unrs/resolver-binding-win32-x64-msvc": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.11.1.tgz", - "integrity": "sha512-lrW200hZdbfRtztbygyaq/6jP6AKE8qQN2KvPcJ+x7wiD038YtnYtZ82IMNJ69GJibV7bwL3y9FgK+5w/pYt6g==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", @@ -1642,16 +1240,13 @@ } }, "node_modules/ansi-regex": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", - "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, "license": "MIT", "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" + "node": ">=8" } }, "node_modules/ansi-styles": { @@ -1687,12 +1282,14 @@ "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==" + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "license": "Python-2.0" }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" }, "node_modules/b4a": { "version": "1.7.3", @@ -1709,58 +1306,75 @@ } }, "node_modules/babel-jest": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-30.2.0.tgz", - "integrity": "sha512-0YiBEOxWqKkSQWL9nNGGEgndoeL0ZpWrbLMNL5u/Kaxrli3Eaxlt3ZtIDktEvXt4L/R9r3ODr2zKwGM/2BjxVw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", "dev": true, "license": "MIT", "dependencies": { - "@jest/transform": "30.2.0", - "@types/babel__core": "^7.20.5", - "babel-plugin-istanbul": "^7.0.1", - "babel-preset-jest": "30.2.0", - "chalk": "^4.1.2", - "graceful-fs": "^4.2.11", + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", "slash": "^3.0.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { - "@babel/core": "^7.11.0 || ^8.0.0-0" + "@babel/core": "^7.8.0" } }, "node_modules/babel-plugin-istanbul": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-7.0.1.tgz", - "integrity": "sha512-D8Z6Qm8jCvVXtIRkBnqNHX0zJ37rQcFJ9u8WOS6tkYOsRdHBzypCstaxWiu5ZIlqQtviRYbgnRLSoCEvjqcqbA==", + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, "license": "BSD-3-Clause", - "workspaces": [ - "test/babel-8" - ], "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.3", - "istanbul-lib-instrument": "^6.0.2", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", "test-exclude": "^6.0.0" }, "engines": { - "node": ">=12" + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" } }, "node_modules/babel-plugin-jest-hoist": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-30.2.0.tgz", - "integrity": "sha512-ftzhzSGMUnOzcCXd6WHdBGMyuwy15Wnn0iyyWGKgBDLxf9/s5ABuraCSpBX2uG0jUg4rqJnxsLc5+oYBqoxVaA==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", "dev": true, "license": "MIT", "dependencies": { - "@types/babel__core": "^7.20.5" + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/babel-preset-current-node-syntax": { @@ -1791,20 +1405,20 @@ } }, "node_modules/babel-preset-jest": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-30.2.0.tgz", - "integrity": "sha512-US4Z3NOieAQumwFnYdUWKvUKh8+YSnS/gB3t6YBiz0bskpu7Pine8pPCheNxlPEW4wnUkma2a94YuW2q3guvCQ==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", "dev": true, "license": "MIT", "dependencies": { - "babel-plugin-jest-hoist": "30.2.0", - "babel-preset-current-node-syntax": "^1.2.0" + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { - "@babel/core": "^7.11.0 || ^8.0.0-beta.1" + "@babel/core": "^7.0.0" } }, "node_modules/balanced-match": { @@ -1829,9 +1443,9 @@ } }, "node_modules/bare-fs": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.5.1.tgz", - "integrity": "sha512-zGUCsm3yv/ePt2PHNbVxjjn0nNB1MkIaR4wOCxJ2ig5pCf5cCVAYJXVhQg/3OhhJV6DB1ts7Hv0oUaElc2TPQg==", + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.5.3.tgz", + "integrity": "sha512-9+kwVx8QYvt3hPWnmb19tPnh38c6Nihz8Lx3t0g9+4GoIf3/fTgYwM4Z6NxgI+B9elLQA7mLE9PpqcWtOMRDiQ==", "license": "Apache-2.0", "optional": true, "dependencies": { @@ -1906,9 +1520,9 @@ } }, "node_modules/baseline-browser-mapping": { - "version": "2.9.18", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.18.tgz", - "integrity": "sha512-e23vBV1ZLfjb9apvfPk4rHVu2ry6RIr2Wfs+O324okSidrX7pTAnEJPCh/O5BtRlr7QtZI7ktOP3vsqr7Z5XoA==", + "version": "2.9.19", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.19.tgz", + "integrity": "sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==", "dev": true, "license": "Apache-2.0", "bin": { @@ -1916,13 +1530,14 @@ } }, "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==", + "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" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, "node_modules/braces": { @@ -2084,9 +1699,9 @@ } }, "node_modules/ci-info": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.1.tgz", - "integrity": "sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==", + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", "dev": true, "funding": [ { @@ -2100,9 +1715,9 @@ } }, "node_modules/cjs-module-lexer": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-2.2.0.tgz", - "integrity": "sha512-4bHTS2YuzUvtoLjdy+98ykbNB5jS0+07EvFNXerqZQJ89F7DI6ET7OQo/HJuW6K0aVsKA9hj9/RVb2kQVOrPDQ==", + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", + "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", "dev": true, "license": "MIT" }, @@ -2121,84 +1736,21 @@ "node": ">=12" } }, - "node_modules/cliui/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", "dev": true, "license": "MIT", "engines": { - "node": ">=8" + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" } }, - "node_modules/cliui/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/cliui/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", - "dev": true, - "license": "MIT", - "engines": { - "iojs": ">= 1.0.0", - "node": ">= 0.12.0" - } - }, - "node_modules/collect-v8-coverage": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz", - "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==", + "node_modules/collect-v8-coverage": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz", + "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==", "dev": true, "license": "MIT" }, @@ -2226,6 +1778,7 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", "dependencies": { "delayed-stream": "~1.0.0" }, @@ -2247,6 +1800,28 @@ "dev": true, "license": "MIT" }, + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, "node_modules/cross-spawn": { "version": "7.0.6", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", @@ -2263,9 +1838,10 @@ } }, "node_modules/debug": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", - "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -2307,6 +1883,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", "engines": { "node": ">=0.4.0" } @@ -2321,6 +1898,16 @@ "node": ">=8" } }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", @@ -2335,17 +1922,10 @@ "node": ">= 0.4" } }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true, - "license": "MIT" - }, "node_modules/electron-to-chromium": { - "version": "1.5.279", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.279.tgz", - "integrity": "sha512-0bblUU5UNdOt5G7XqGiJtpZMONma6WAfq9vsFmtn9x1+joAObr6x1chfqyxFSDCAFwFhCQDrqeAr6MYdpwJ9Hg==", + "version": "1.5.283", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.283.tgz", + "integrity": "sha512-3vifjt1HgrGW/h76UEeny+adYApveS9dH2h3p57JYzBSXJIKUJAvtmIytDKjcSCt9xHfrNCFJ7gts6vkhuq++w==", "dev": true, "license": "ISC" }, @@ -2363,9 +1943,9 @@ } }, "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true, "license": "MIT" }, @@ -2436,7 +2016,8 @@ "node_modules/es6-promise": { "version": "4.2.8", "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", - "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==" + "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", + "license": "MIT" }, "node_modules/escalade": { "version": "3.2.0", @@ -2505,39 +2086,30 @@ "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "node_modules/execa/node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/exit-x": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/exit-x/-/exit-x-0.2.2.tgz", - "integrity": "sha512-+I6B/IkJc1o/2tiURyz/ivu/O0nKNEArIUB5O7zBrlDVJr22SCLH3xTeEry428LvFhRzIA1g8izguxJ/gbNcVQ==", + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.8.0" } }, "node_modules/expect": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/expect/-/expect-30.2.0.tgz", - "integrity": "sha512-u/feCi0GPsI+988gU2FLcsHyAHTU0MX1Wg68NhAnN7z/+C5wqG+CY8J53N9ioe8RXgaoz0nBR/TYMf3AycUuPw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", "dev": true, "license": "MIT", "dependencies": { - "@jest/expect-utils": "30.2.0", - "@jest/get-type": "30.1.0", - "jest-matcher-utils": "30.2.0", - "jest-message-util": "30.2.0", - "jest-mock": "30.2.0", - "jest-util": "30.2.0" + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/fast-fifo": { @@ -2590,23 +2162,6 @@ "node": ">=8" } }, - "node_modules/foreground-child": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", - "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "dev": true, - "license": "ISC", - "dependencies": { - "cross-spawn": "^7.0.6", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/form-data": { "version": "2.5.5", "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.5.tgz", @@ -2625,9 +2180,10 @@ } }, "node_modules/fs-extra": { - "version": "11.2.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", - "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", + "version": "11.3.3", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.3.tgz", + "integrity": "sha512-VWSRii4t0AFm6ixFFmLLx1t7wS1gh+ckoa84aOeapGum0h+EZd1EhEumSB+ZdDLnEPuucsVB9oB7cxJHap6Afg==", + "license": "MIT", "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", @@ -2663,6 +2219,7 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -2748,21 +2305,22 @@ } }, "node_modules/glob": { - "version": "10.5.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz", - "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==", + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, "license": "ISC", "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" }, - "bin": { - "glob": "dist/esm/bin.mjs" + "engines": { + "node": "*" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -2783,7 +2341,8 @@ "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" }, "node_modules/handlebars": { "version": "4.7.8", @@ -2848,6 +2407,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", "dependencies": { "function-bind": "^1.1.2" }, @@ -2946,6 +2506,22 @@ "dev": true, "license": "MIT" }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -3000,6 +2576,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz", "integrity": "sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==", + "license": "MIT", "peerDependencies": { "ws": "*" } @@ -3060,15 +2637,15 @@ } }, "node_modules/istanbul-lib-source-maps": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-5.0.6.tgz", - "integrity": "sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", "dev": true, "license": "BSD-3-Clause", "dependencies": { - "@jridgewell/trace-mapping": "^0.3.23", "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0" + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" }, "engines": { "node": ">=10" @@ -3088,39 +2665,23 @@ "node": ">=8" } }, - "node_modules/jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, "node_modules/jest": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest/-/jest-30.2.0.tgz", - "integrity": "sha512-F26gjC0yWN8uAA5m5Ss8ZQf5nDHWGlN/xWZIh8S5SRbsEKBovwZhxGd6LJlbZYxBgCYOtreSUyb8hpXyGC5O4A==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", "dev": true, "license": "MIT", "dependencies": { - "@jest/core": "30.2.0", - "@jest/types": "30.2.0", - "import-local": "^3.2.0", - "jest-cli": "30.2.0" + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" }, "bin": { "jest": "bin/jest.js" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -3132,75 +2693,76 @@ } }, "node_modules/jest-changed-files": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-30.2.0.tgz", - "integrity": "sha512-L8lR1ChrRnSdfeOvTrwZMlnWV8G/LLjQ0nG9MBclwWZidA2N5FviRki0Bvh20WRMOX31/JYvzdqTJrk5oBdydQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", "dev": true, "license": "MIT", "dependencies": { - "execa": "^5.1.1", - "jest-util": "30.2.0", + "execa": "^5.0.0", + "jest-util": "^29.7.0", "p-limit": "^3.1.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-circus": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-30.2.0.tgz", - "integrity": "sha512-Fh0096NC3ZkFx05EP2OXCxJAREVxj1BcW/i6EWqqymcgYKWjyyDpral3fMxVcHXg6oZM7iULer9wGRFvfpl+Tg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", "dev": true, "license": "MIT", "dependencies": { - "@jest/environment": "30.2.0", - "@jest/expect": "30.2.0", - "@jest/test-result": "30.2.0", - "@jest/types": "30.2.0", + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", - "chalk": "^4.1.2", + "chalk": "^4.0.0", "co": "^4.6.0", - "dedent": "^1.6.0", - "is-generator-fn": "^2.1.0", - "jest-each": "30.2.0", - "jest-matcher-utils": "30.2.0", - "jest-message-util": "30.2.0", - "jest-runtime": "30.2.0", - "jest-snapshot": "30.2.0", - "jest-util": "30.2.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", "p-limit": "^3.1.0", - "pretty-format": "30.2.0", - "pure-rand": "^7.0.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", "slash": "^3.0.0", - "stack-utils": "^2.0.6" + "stack-utils": "^2.0.3" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-cli": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-30.2.0.tgz", - "integrity": "sha512-Os9ukIvADX/A9sLt6Zse3+nmHtHaE6hqOsjQtNiugFTbKRHYIYtZXNGNK9NChseXy7djFPjndX1tL0sCTlfpAA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", "dev": true, "license": "MIT", "dependencies": { - "@jest/core": "30.2.0", - "@jest/test-result": "30.2.0", - "@jest/types": "30.2.0", - "chalk": "^4.1.2", - "exit-x": "^0.2.2", - "import-local": "^3.2.0", - "jest-config": "30.2.0", - "jest-util": "30.2.0", - "jest-validate": "30.2.0", - "yargs": "^17.7.2" + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" }, "bin": { "jest": "bin/jest.js" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -3212,211 +2774,215 @@ } }, "node_modules/jest-config": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-30.2.0.tgz", - "integrity": "sha512-g4WkyzFQVWHtu6uqGmQR4CQxz/CH3yDSlhzXMWzNjDx843gYjReZnMRanjRCq5XZFuQrGDxgUaiYWE8BRfVckA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.27.4", - "@jest/get-type": "30.1.0", - "@jest/pattern": "30.0.1", - "@jest/test-sequencer": "30.2.0", - "@jest/types": "30.2.0", - "babel-jest": "30.2.0", - "chalk": "^4.1.2", - "ci-info": "^4.2.0", - "deepmerge": "^4.3.1", - "glob": "^10.3.10", - "graceful-fs": "^4.2.11", - "jest-circus": "30.2.0", - "jest-docblock": "30.2.0", - "jest-environment-node": "30.2.0", - "jest-regex-util": "30.0.1", - "jest-resolve": "30.2.0", - "jest-runner": "30.2.0", - "jest-util": "30.2.0", - "jest-validate": "30.2.0", - "micromatch": "^4.0.8", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", "parse-json": "^5.2.0", - "pretty-format": "30.2.0", + "pretty-format": "^29.7.0", "slash": "^3.0.0", "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "@types/node": "*", - "esbuild-register": ">=3.4.0", "ts-node": ">=9.0.0" }, "peerDependenciesMeta": { "@types/node": { "optional": true }, - "esbuild-register": { - "optional": true - }, "ts-node": { "optional": true } } }, "node_modules/jest-diff": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-30.2.0.tgz", - "integrity": "sha512-dQHFo3Pt4/NLlG5z4PxZ/3yZTZ1C7s9hveiOj+GCN+uT109NC2QgsoVZsVOAvbJ3RgKkvyLGXZV9+piDpWbm6A==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", "dev": true, "license": "MIT", "dependencies": { - "@jest/diff-sequences": "30.0.1", - "@jest/get-type": "30.1.0", - "chalk": "^4.1.2", - "pretty-format": "30.2.0" + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-docblock": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-30.2.0.tgz", - "integrity": "sha512-tR/FFgZKS1CXluOQzZvNH3+0z9jXr3ldGSD8bhyuxvlVUwbeLOGynkunvlTMxchC5urrKndYiwCFC0DLVjpOCA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", "dev": true, "license": "MIT", "dependencies": { - "detect-newline": "^3.1.0" + "detect-newline": "^3.0.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-each": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-30.2.0.tgz", - "integrity": "sha512-lpWlJlM7bCUf1mfmuqTA8+j2lNURW9eNafOy99knBM01i5CQeY5UH1vZjgT9071nDJac1M4XsbyI44oNOdhlDQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", "dev": true, "license": "MIT", "dependencies": { - "@jest/get-type": "30.1.0", - "@jest/types": "30.2.0", - "chalk": "^4.1.2", - "jest-util": "30.2.0", - "pretty-format": "30.2.0" + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-environment-node": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-30.2.0.tgz", - "integrity": "sha512-ElU8v92QJ9UrYsKrxDIKCxu6PfNj4Hdcktcn0JX12zqNdqWHB0N+hwOnnBBXvjLd2vApZtuLUGs1QSY+MsXoNA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", "dev": true, "license": "MIT", "dependencies": { - "@jest/environment": "30.2.0", - "@jest/fake-timers": "30.2.0", - "@jest/types": "30.2.0", + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", - "jest-mock": "30.2.0", - "jest-util": "30.2.0", - "jest-validate": "30.2.0" + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-haste-map": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-30.2.0.tgz", - "integrity": "sha512-sQA/jCb9kNt+neM0anSj6eZhLZUIhQgwDt7cPGjumgLM4rXsfb9kpnlacmvZz3Q5tb80nS+oG/if+NBKrHC+Xw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", "dev": true, "license": "MIT", "dependencies": { - "@jest/types": "30.2.0", + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", "@types/node": "*", - "anymatch": "^3.1.3", - "fb-watchman": "^2.0.2", - "graceful-fs": "^4.2.11", - "jest-regex-util": "30.0.1", - "jest-util": "30.2.0", - "jest-worker": "30.2.0", - "micromatch": "^4.0.8", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", "walker": "^1.0.8" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "optionalDependencies": { - "fsevents": "^2.3.3" + "fsevents": "^2.3.2" } }, "node_modules/jest-leak-detector": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-30.2.0.tgz", - "integrity": "sha512-M6jKAjyzjHG0SrQgwhgZGy9hFazcudwCNovY/9HPIicmNSBuockPSedAP9vlPK6ONFJ1zfyH/M2/YYJxOz5cdQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", "dev": true, "license": "MIT", "dependencies": { - "@jest/get-type": "30.1.0", - "pretty-format": "30.2.0" + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-matcher-utils": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-30.2.0.tgz", - "integrity": "sha512-dQ94Nq4dbzmUWkQ0ANAWS9tBRfqCrn0bV9AMYdOi/MHW726xn7eQmMeRTpX2ViC00bpNaWXq+7o4lIQ3AX13Hg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", "dev": true, "license": "MIT", "dependencies": { - "@jest/get-type": "30.1.0", - "chalk": "^4.1.2", - "jest-diff": "30.2.0", - "pretty-format": "30.2.0" + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-message-util": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.2.0.tgz", - "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", "dev": true, "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.27.1", - "@jest/types": "30.2.0", - "@types/stack-utils": "^2.0.3", - "chalk": "^4.1.2", - "graceful-fs": "^4.2.11", - "micromatch": "^4.0.8", - "pretty-format": "30.2.0", + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", "slash": "^3.0.0", - "stack-utils": "^2.0.6" + "stack-utils": "^2.0.3" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-mock": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-30.2.0.tgz", - "integrity": "sha512-JNNNl2rj4b5ICpmAcq+WbLH83XswjPbjH4T7yvGzfAGCPh1rw+xVNbtk+FnRslvt9lkCcdn9i1oAoKUuFsOxRw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", "dev": true, "license": "MIT", "dependencies": { - "@jest/types": "30.2.0", + "@jest/types": "^29.6.3", "@types/node": "*", - "jest-util": "30.2.0" + "jest-util": "^29.7.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-pnp-resolver": { @@ -3438,148 +3004,147 @@ } }, "node_modules/jest-regex-util": { - "version": "30.0.1", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-30.0.1.tgz", - "integrity": "sha512-jHEQgBXAgc+Gh4g0p3bCevgRCVRkB4VB70zhoAE48gxeSr1hfUOsM/C2WoJgVL7Eyg//hudYENbm3Ne+/dRVVA==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", "dev": true, "license": "MIT", "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-resolve": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-30.2.0.tgz", - "integrity": "sha512-TCrHSxPlx3tBY3hWNtRQKbtgLhsXa1WmbJEqBlTBrGafd5fiQFByy2GNCEoGR+Tns8d15GaL9cxEzKOO3GEb2A==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", "dev": true, "license": "MIT", "dependencies": { - "chalk": "^4.1.2", - "graceful-fs": "^4.2.11", - "jest-haste-map": "30.2.0", - "jest-pnp-resolver": "^1.2.3", - "jest-util": "30.2.0", - "jest-validate": "30.2.0", - "slash": "^3.0.0", - "unrs-resolver": "^1.7.11" + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-resolve-dependencies": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-30.2.0.tgz", - "integrity": "sha512-xTOIGug/0RmIe3mmCqCT95yO0vj6JURrn1TKWlNbhiAefJRWINNPgwVkrVgt/YaerPzY3iItufd80v3lOrFJ2w==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", "dev": true, "license": "MIT", "dependencies": { - "jest-regex-util": "30.0.1", - "jest-snapshot": "30.2.0" + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-runner": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-30.2.0.tgz", - "integrity": "sha512-PqvZ2B2XEyPEbclp+gV6KO/F1FIFSbIwewRgmROCMBo/aZ6J1w8Qypoj2pEOcg3G2HzLlaP6VUtvwCI8dM3oqQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", "dev": true, "license": "MIT", "dependencies": { - "@jest/console": "30.2.0", - "@jest/environment": "30.2.0", - "@jest/test-result": "30.2.0", - "@jest/transform": "30.2.0", - "@jest/types": "30.2.0", + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", - "chalk": "^4.1.2", + "chalk": "^4.0.0", "emittery": "^0.13.1", - "exit-x": "^0.2.2", - "graceful-fs": "^4.2.11", - "jest-docblock": "30.2.0", - "jest-environment-node": "30.2.0", - "jest-haste-map": "30.2.0", - "jest-leak-detector": "30.2.0", - "jest-message-util": "30.2.0", - "jest-resolve": "30.2.0", - "jest-runtime": "30.2.0", - "jest-util": "30.2.0", - "jest-watcher": "30.2.0", - "jest-worker": "30.2.0", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", "p-limit": "^3.1.0", "source-map-support": "0.5.13" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-runtime": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-30.2.0.tgz", - "integrity": "sha512-p1+GVX/PJqTucvsmERPMgCPvQJpFt4hFbM+VN3n8TMo47decMUcJbt+rgzwrEme0MQUA/R+1de2axftTHkKckg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", "dev": true, "license": "MIT", "dependencies": { - "@jest/environment": "30.2.0", - "@jest/fake-timers": "30.2.0", - "@jest/globals": "30.2.0", - "@jest/source-map": "30.0.1", - "@jest/test-result": "30.2.0", - "@jest/transform": "30.2.0", - "@jest/types": "30.2.0", + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", - "chalk": "^4.1.2", - "cjs-module-lexer": "^2.1.0", - "collect-v8-coverage": "^1.0.2", - "glob": "^10.3.10", - "graceful-fs": "^4.2.11", - "jest-haste-map": "30.2.0", - "jest-message-util": "30.2.0", - "jest-mock": "30.2.0", - "jest-regex-util": "30.0.1", - "jest-resolve": "30.2.0", - "jest-snapshot": "30.2.0", - "jest-util": "30.2.0", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", "slash": "^3.0.0", "strip-bom": "^4.0.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-snapshot": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-30.2.0.tgz", - "integrity": "sha512-5WEtTy2jXPFypadKNpbNkZ72puZCa6UjSr/7djeecHWOu7iYhSXSnHScT8wBz3Rn8Ena5d5RYRcsyKIeqG1IyA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.27.4", - "@babel/generator": "^7.27.5", - "@babel/plugin-syntax-jsx": "^7.27.1", - "@babel/plugin-syntax-typescript": "^7.27.1", - "@babel/types": "^7.27.3", - "@jest/expect-utils": "30.2.0", - "@jest/get-type": "30.1.0", - "@jest/snapshot-utils": "30.2.0", - "@jest/transform": "30.2.0", - "@jest/types": "30.2.0", - "babel-preset-current-node-syntax": "^1.2.0", - "chalk": "^4.1.2", - "expect": "30.2.0", - "graceful-fs": "^4.2.11", - "jest-diff": "30.2.0", - "jest-matcher-utils": "30.2.0", - "jest-message-util": "30.2.0", - "jest-util": "30.2.0", - "pretty-format": "30.2.0", - "semver": "^7.7.2", - "synckit": "^0.11.8" - }, - "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-snapshot/node_modules/semver": { @@ -3596,52 +3161,39 @@ } }, "node_modules/jest-util": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", - "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", "dev": true, "license": "MIT", "dependencies": { - "@jest/types": "30.2.0", + "@jest/types": "^29.6.3", "@types/node": "*", - "chalk": "^4.1.2", - "ci-info": "^4.2.0", - "graceful-fs": "^4.2.11", - "picomatch": "^4.0.2" + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" - } - }, - "node_modules/jest-util/node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-validate": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-30.2.0.tgz", - "integrity": "sha512-FBGWi7dP2hpdi8nBoWxSsLvBFewKAg0+uSQwBaof4Y4DPgBabXgpSYC5/lR7VmnIlSpASmCi/ntRWPbv7089Pw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", "dev": true, "license": "MIT", "dependencies": { - "@jest/get-type": "30.1.0", - "@jest/types": "30.2.0", - "camelcase": "^6.3.0", - "chalk": "^4.1.2", + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", "leven": "^3.1.0", - "pretty-format": "30.2.0" + "pretty-format": "^29.7.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-validate/node_modules/camelcase": { @@ -3658,40 +3210,39 @@ } }, "node_modules/jest-watcher": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-30.2.0.tgz", - "integrity": "sha512-PYxa28dxJ9g777pGm/7PrbnMeA0Jr7osHP9bS7eJy9DuAjMgdGtxgf0uKMyoIsTWAkIbUW5hSDdJ3urmgXBqxg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", "dev": true, "license": "MIT", "dependencies": { - "@jest/test-result": "30.2.0", - "@jest/types": "30.2.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", - "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", "emittery": "^0.13.1", - "jest-util": "30.2.0", - "string-length": "^4.0.2" + "jest-util": "^29.7.0", + "string-length": "^4.0.1" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-worker": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-30.2.0.tgz", - "integrity": "sha512-0Q4Uk8WF7BUwqXHuAjc23vmopWJw5WH7w2tqBoUOZpOjW/ZnR44GXXd1r82RvnmI2GZge3ivrYXk/BE2+VtW2g==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", "dev": true, "license": "MIT", "dependencies": { "@types/node": "*", - "@ungap/structured-clone": "^1.3.0", - "jest-util": "30.2.0", + "jest-util": "^29.7.0", "merge-stream": "^2.0.0", - "supports-color": "^8.1.1" + "supports-color": "^8.0.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-worker/node_modules/supports-color": { @@ -3711,9 +3262,10 @@ } }, "node_modules/jose": { - "version": "6.0.10", - "resolved": "https://registry.npmjs.org/jose/-/jose-6.0.10.tgz", - "integrity": "sha512-skIAxZqcMkOrSwjJvplIPYrlXGpxTPnro2/QWTDCxAdWQrSTV5/KqspMWmi5WAx5+ULswASJiZ0a+1B/Lxt9cw==", + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/jose/-/jose-6.1.3.tgz", + "integrity": "sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ==", + "license": "MIT", "funding": { "url": "https://github.com/sponsors/panva" } @@ -3726,9 +3278,10 @@ "license": "MIT" }, "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==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -3740,6 +3293,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.4.0.tgz", "integrity": "sha512-B7qPcEVE3NVkmSJbaYxvv4cHkVW7DQsZz13pUMrfS8z8Q/BuShN+gcTXrUlPiGqM2/t/EEaI030bpxMqY8gMlw==", + "license": "MIT", "engines": { "node": ">= 10.16.0" } @@ -3778,9 +3332,10 @@ } }, "node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", + "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "license": "MIT", "dependencies": { "universalify": "^2.0.0" }, @@ -3806,6 +3361,16 @@ "node": ">=18.0.0" } }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/leven": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", @@ -3933,6 +3498,7 @@ "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -3941,6 +3507,7 @@ "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", "dependencies": { "mime-db": "1.52.0" }, @@ -3959,19 +3526,16 @@ } }, "node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "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": "^2.0.1" + "brace-expansion": "^1.1.7" }, "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": "*" } }, "node_modules/minimist": { @@ -3984,36 +3548,11 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - }, - "node_modules/napi-postinstall": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.4.tgz", - "integrity": "sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==", - "dev": true, - "license": "MIT", - "bin": { - "napi-postinstall": "lib/cli.js" - }, - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/napi-postinstall" - } + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" }, "node_modules/natural-compare": { "version": "1.4.0", @@ -4033,6 +3572,7 @@ "version": "2.7.0", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -4048,25 +3588,6 @@ } } }, - "node_modules/node-fetch/node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "node_modules/node-fetch/node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "node_modules/node-fetch/node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, "node_modules/node-int64": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", @@ -4105,9 +3626,10 @@ } }, "node_modules/oauth4webapi": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.3.1.tgz", - "integrity": "sha512-ZwX7UqYrP3Lr+Glhca3a1/nF2jqf7VVyJfhGuW5JtrfDUxt0u+IoBPzFjZ2dd7PJGkdM6CFPVVYzuDYKHv101A==", + "version": "3.8.3", + "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.8.3.tgz", + "integrity": "sha512-pQ5BsX3QRTgnt5HxgHwgunIRaDXBdkT23tf8dfzmtTIL2LTpdmxgbpbBm0VgFWAIDlezQvQCTgnVIUmHupXHxw==", + "license": "MIT", "funding": { "url": "https://github.com/sponsors/panva" } @@ -4116,6 +3638,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", "dependencies": { "wrappy": "1" } @@ -4137,12 +3660,13 @@ } }, "node_modules/openid-client": { - "version": "6.3.4", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.3.4.tgz", - "integrity": "sha512-CGZGk9Y6Bv9R4bXlrzVoxzD1n4h8iP914UhjVyRSftqzqO4CWaRqKpOmW253Jmpv4EWkz7/Gut/90iiWW8t0ow==", + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.8.1.tgz", + "integrity": "sha512-VoYT6enBo6Vj2j3Q5Ec0AezS+9YGzQo1f5Xc42lreMGlfP4ljiXPKVDvCADh+XHCV/bqPu/wWSiCVXbJKvrODw==", + "license": "MIT", "dependencies": { - "jose": "^6.0.10", - "oauth4webapi": "^3.3.1" + "jose": "^6.1.0", + "oauth4webapi": "^3.8.2" }, "funding": { "url": "https://github.com/sponsors/panva" @@ -4203,13 +3727,6 @@ "node": ">=6" } }, - "node_modules/package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true, - "license": "BlueOak-1.0.0" - }, "node_modules/parse-json": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", @@ -4259,29 +3776,12 @@ "node": ">=8" } }, - "node_modules/path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true, - "license": "ISC" + "license": "MIT" }, "node_modules/picocolors": { "version": "1.1.1", @@ -4327,18 +3827,18 @@ } }, "node_modules/pretty-format": { - "version": "30.2.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz", - "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", "dev": true, "license": "MIT", "dependencies": { - "@jest/schemas": "30.0.5", - "ansi-styles": "^5.2.0", - "react-is": "^18.3.1" + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" }, "engines": { - "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/pretty-format/node_modules/ansi-styles": { @@ -4354,6 +3854,20 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/pump": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz", @@ -4365,9 +3879,9 @@ } }, "node_modules/pure-rand": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-7.0.1.tgz", - "integrity": "sha512-oTUZM/NAZS8p7ANR3SHh30kXB+zK2r2BPcEn/awJIbOvq82WoMN4p62AWWp3Hhw50G0xMsw1mhIBLqHw64EcNQ==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", "dev": true, "funding": [ { @@ -4384,7 +3898,8 @@ "node_modules/querystringify": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", - "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", + "license": "MIT" }, "node_modules/react-is": { "version": "18.3.1", @@ -4396,7 +3911,8 @@ "node_modules/reflect-metadata": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz", - "integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==" + "integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==", + "license": "Apache-2.0" }, "node_modules/require-directory": { "version": "2.1.1", @@ -4411,7 +3927,29 @@ "node_modules/requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "license": "MIT" + }, + "node_modules/resolve": { + "version": "1.22.11", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", + "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/resolve-cwd": { "version": "3.0.0", @@ -4436,10 +3974,21 @@ "node": ">=8" } }, + "node_modules/resolve.exports": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", + "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, "node_modules/rfc4648": { "version": "1.5.4", "resolved": "https://registry.npmjs.org/rfc4648/-/rfc4648-1.5.4.tgz", - "integrity": "sha512-rRg/6Lb+IGfJqO05HZkN50UtY7K/JhxJag1kP23+zyMfrvoB0B7RWv06MbOzoc79RgCdNTiUaNsTT1AJZ7Z+cg==" + "integrity": "sha512-rRg/6Lb+IGfJqO05HZkN50UtY7K/JhxJag1kP23+zyMfrvoB0B7RWv06MbOzoc79RgCdNTiUaNsTT1AJZ7Z+cg==", + "license": "MIT" }, "node_modules/safe-buffer": { "version": "5.2.1", @@ -4458,7 +4007,8 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/semver": { "version": "6.3.1", @@ -4494,17 +4044,18 @@ } }, "node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true, - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } + "license": "ISC" + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true, + "license": "MIT" }, "node_modules/slash": { "version": "3.0.0", @@ -4554,15 +4105,6 @@ "node": ">= 14" } }, - "node_modules/socks-proxy-agent/node_modules/agent-base": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", - "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", - "license": "MIT", - "engines": { - "node": ">= 14" - } - }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -4608,6 +4150,7 @@ "version": "3.0.3", "resolved": "https://registry.npmjs.org/stream-buffers/-/stream-buffers-3.0.3.tgz", "integrity": "sha512-pqMqwQCso0PBJt2PQmDO0cFj0lyqmiwOMiMSkVtRokl7e+ZTRYgDHKnuZNbqjiJXgsg4nuqtD/zxuo9KqTp0Yw==", + "license": "Unlicense", "engines": { "node": ">= 0.10.0" } @@ -4637,49 +4180,7 @@ "node": ">=10" } }, - "node_modules/string-length/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/string-length/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, - "license": "MIT", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", @@ -4694,54 +4195,7 @@ "node": ">=8" } }, - "node_modules/string-width-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/string-width-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/strip-ansi": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", - "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", @@ -4754,16 +4208,6 @@ "node": ">=8" } }, - "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/strip-bom": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", @@ -4810,20 +4254,17 @@ "node": ">=8" } }, - "node_modules/synckit": { - "version": "0.11.12", - "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.11.12.tgz", - "integrity": "sha512-Bh7QjT8/SuKUIfObSXNHNSK6WHo6J1tHCqJsuaFDP7gP0fkzSfTxI8y85JrppZ0h8l0maIgc2tfuZQ6/t3GtnQ==", + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true, "license": "MIT", - "dependencies": { - "@pkgr/core": "^0.2.9" - }, "engines": { - "node": "^14.18.0 || >=16.0.0" + "node": ">= 0.4" }, "funding": { - "url": "https://opencollective.com/synckit" + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/tar-fs": { @@ -4866,52 +4307,6 @@ "node": ">=8" } }, - "node_modules/test-exclude/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/test-exclude/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/test-exclude/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/text-decoder": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.3.tgz", @@ -4941,10 +4336,16 @@ "node": ">=8.0" } }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" + }, "node_modules/ts-jest": { - "version": "29.4.6", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.4.6.tgz", - "integrity": "sha512-fSpWtOO/1AjSNQguk43hb/JCo16oJDnMJf3CdEGNkqsEX3t0KX96xvyX1D7PfLCpVoKu4MfVrqUkFyblYoY4lA==", + "version": "29.4.5", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.4.5.tgz", + "integrity": "sha512-HO3GyiWn2qvTQA4kTgjDcXiMwYQt68a1Y8+JuLRVpdIzm+UOLSHgl/XqR4c6nzJkq5rOkjc02O2I7P7l/Yof0Q==", "dev": true, "license": "MIT", "dependencies": { @@ -5020,14 +4421,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/tslib": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", - "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "dev": true, - "license": "0BSD", - "optional": true - }, "node_modules/type-detect": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", @@ -5090,45 +4483,11 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "license": "MIT", "engines": { "node": ">= 10.0.0" } }, - "node_modules/unrs-resolver": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.11.1.tgz", - "integrity": "sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "napi-postinstall": "^0.3.0" - }, - "funding": { - "url": "https://opencollective.com/unrs-resolver" - }, - "optionalDependencies": { - "@unrs/resolver-binding-android-arm-eabi": "1.11.1", - "@unrs/resolver-binding-android-arm64": "1.11.1", - "@unrs/resolver-binding-darwin-arm64": "1.11.1", - "@unrs/resolver-binding-darwin-x64": "1.11.1", - "@unrs/resolver-binding-freebsd-x64": "1.11.1", - "@unrs/resolver-binding-linux-arm-gnueabihf": "1.11.1", - "@unrs/resolver-binding-linux-arm-musleabihf": "1.11.1", - "@unrs/resolver-binding-linux-arm64-gnu": "1.11.1", - "@unrs/resolver-binding-linux-arm64-musl": "1.11.1", - "@unrs/resolver-binding-linux-ppc64-gnu": "1.11.1", - "@unrs/resolver-binding-linux-riscv64-gnu": "1.11.1", - "@unrs/resolver-binding-linux-riscv64-musl": "1.11.1", - "@unrs/resolver-binding-linux-s390x-gnu": "1.11.1", - "@unrs/resolver-binding-linux-x64-gnu": "1.11.1", - "@unrs/resolver-binding-linux-x64-musl": "1.11.1", - "@unrs/resolver-binding-wasm32-wasi": "1.11.1", - "@unrs/resolver-binding-win32-arm64-msvc": "1.11.1", - "@unrs/resolver-binding-win32-ia32-msvc": "1.11.1", - "@unrs/resolver-binding-win32-x64-msvc": "1.11.1" - } - }, "node_modules/update-browserslist-db": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", @@ -5164,6 +4523,7 @@ "version": "1.5.10", "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "license": "MIT", "dependencies": { "querystringify": "^2.1.1", "requires-port": "^1.0.0" @@ -5187,7 +4547,8 @@ "node_modules/vscode-nls": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/vscode-nls/-/vscode-nls-5.2.0.tgz", - "integrity": "sha512-RAaHx7B14ZU04EU31pT+rKz2/zSl7xMsfIZuo8pd+KZO6PXtQmpevpq3vxvWNcrGbdmhM/rr5Uw5Mz+NBfhVng==" + "integrity": "sha512-RAaHx7B14ZU04EU31pT+rKz2/zSl7xMsfIZuo8pd+KZO6PXtQmpevpq3vxvWNcrGbdmhM/rr5Uw5Mz+NBfhVng==", + "license": "MIT" }, "node_modules/walker": { "version": "1.0.8", @@ -5199,6 +4560,22 @@ "makeerror": "1.0.12" } }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -5223,25 +4600,6 @@ "license": "MIT" }, "node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", @@ -5259,87 +4617,30 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/wrap-ansi-cjs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", - "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" }, "node_modules/write-file-atomic": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.1.tgz", - "integrity": "sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", - "signal-exit": "^4.0.1" + "signal-exit": "^3.0.7" }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, "node_modules/ws": { - "version": "8.18.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz", - "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==", + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.19.0.tgz", + "integrity": "sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg==", "license": "MIT", "engines": { "node": ">=10.0.0" @@ -5403,51 +4704,6 @@ "node": ">=12" } }, - "node_modules/yargs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/yargs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/code/extensions/che-commands/package.json b/code/extensions/che-commands/package.json index c02b22c8c9b..3ebbda59f96 100644 --- a/code/extensions/che-commands/package.json +++ b/code/extensions/che-commands/package.json @@ -40,11 +40,11 @@ }, "devDependencies": { "@types/fs-extra": "^9.0.13", - "@types/jest": "^30.0.0", + "@types/jest": "^29.5.0", "@types/js-yaml": "^4.0.5", "@types/node": "22.x", - "jest": "^30.2.0", - "ts-jest": "^29.4.6" + "jest": "29.7.0", + "ts-jest": "29.4.5" }, "repository": { "type": "git", From 4880d44c76fe41b87ba87064a764ec9547359a93 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Thu, 5 Feb 2026 14:05:45 +0530 Subject: [PATCH 03/25] added label support and added execution part --- .../che-commands/src/taskProvider.ts | 54 ++++++++++++++----- 1 file changed, 40 insertions(+), 14 deletions(-) diff --git a/code/extensions/che-commands/src/taskProvider.ts b/code/extensions/che-commands/src/taskProvider.ts index eb7fd784ce1..960870a33db 100644 --- a/code/extensions/che-commands/src/taskProvider.ts +++ b/code/extensions/che-commands/src/taskProvider.ts @@ -195,10 +195,12 @@ export class DevfileTaskProvider implements vscode.TaskProvider { ): boolean { if (!command?.composite?.commands) return true; + const label = command.composite?.label || command.id; + if (command.id) { if (visited.has(command.id)) { this.channel.appendLine( - `Skipping composite ${command.id}: cyclic reference detected`, + `Skipping composite ${label}: cyclic reference detected`, ); return false; } @@ -211,7 +213,7 @@ export class DevfileTaskProvider implements vscode.TaskProvider { if (!sub) { this.channel.appendLine( - `Composite ${command.id} references missing command`, + `Composite ${label} references missing command`, ); return false; } @@ -340,6 +342,7 @@ export class DevfileTaskProvider implements vscode.TaskProvider { const initialVars = this.buildInitialVariables(command.exec.env); const fullCommand = initialVars + exec.commandLine; + const label = command.exec.label || command.id; return this.createTask( { @@ -348,7 +351,7 @@ export class DevfileTaskProvider implements vscode.TaskProvider { workdir: exec.workingDir, component: exec.component, }, - command.exec.label || command.id, + label, this.createPTYExecution(exec.component, fullCommand, exec.workingDir), ); } @@ -360,10 +363,12 @@ export class DevfileTaskProvider implements vscode.TaskProvider { } const execs = this.resolveExecsFromComposite(command, allCommands); + const label = command.composite.label || command.id; + if (!execs.length) { return this.createMessageTask( - `Composite ${command.id} resolved to empty`, - command.id, + `Composite ${label} resolved to empty`, + label, ); } @@ -375,18 +380,32 @@ export class DevfileTaskProvider implements vscode.TaskProvider { if (isMultiComponent) { return this.createTask( { type: "devfile", command: "[multi-component composite]" }, - command.id, + label, new vscode.CustomExecution(async () => { - for (const e of execs) { - await this.terminalExtAPI.getMachineExecPTY( + const runExec = (e: ResolvedExec) => + this.terminalExtAPI.getMachineExecPTY( e.component, - e.commandLine, + this.buildInitialVariables(e.env) + e.commandLine, this.expandEnvVariables(e.workingDir), ); + + if (parallel) { + this.channel.appendLine( + `Composite ${label} (${command.id}) running in PARALLEL mode`, + ); + await Promise.all(execs.map(runExec)); + } else { + this.channel.appendLine( + `Composite ${label} (${command.id}) running in SEQUENTIAL mode`, + ); + for (const e of execs) { + await runExec(e); + } } + return this.terminalExtAPI.getMachineExecPTY( undefined, - 'echo "Composite multi-component execution completed"', + `echo "Composite ${label} execution completed (${parallel ? "parallel" : "sequential"})"`, this.expandEnvVariables("${PROJECT_SOURCE}"), ); }), @@ -407,7 +426,7 @@ export class DevfileTaskProvider implements vscode.TaskProvider { workdir: primary.workingDir, component: primary.component, }, - command.id, + label, this.createPTYExecution( primary.component, compositeCmd, @@ -418,12 +437,19 @@ export class DevfileTaskProvider implements vscode.TaskProvider { // ------------------ UNSUPPORTED ------------------ return this.createMessageTask( - `Unsupported command type for ${command?.id ?? ""}`, - command?.id ?? "unsupported", + `Unsupported command type for ${ + command?.exec?.label || command?.composite?.label || command?.id + }`, + command?.exec?.label || + command?.composite?.label || + command?.id || + "unsupported", ); } catch (err: any) { this.channel.appendLine( - `Error creating task for ${command?.id}: ${err?.message ?? String(err)}`, + `Error creating task for ${ + command?.exec?.label || command?.composite?.label || command?.id + }: ${err?.message ?? String(err)}`, ); return; } From 0eaf568419ddbaa7e91886694f563815b0b9ddc4 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Thu, 5 Feb 2026 14:12:46 +0530 Subject: [PATCH 04/25] updated test cases --- .../che-commands/tests/taskProvider.test.ts | 129 ++++++++++++++++++ 1 file changed, 129 insertions(+) diff --git a/code/extensions/che-commands/tests/taskProvider.test.ts b/code/extensions/che-commands/tests/taskProvider.test.ts index 2aa2258c6c7..849a2eff4b6 100644 --- a/code/extensions/che-commands/tests/taskProvider.test.ts +++ b/code/extensions/che-commands/tests/taskProvider.test.ts @@ -566,3 +566,132 @@ describe("Check exec has its own component", () => { expect(terminal.calls[0].command).toBe("echo A && echo B"); }); }); + +describe("ubi8-ubi9 composite", () => { + function baseCommands() { + return [ + { + id: "ubi8-tools-version", + exec: { + label: "ubi8 version", + component: "ubi8", + commandLine: "echo ubi8", + }, + }, + { + id: "ubi9-tools-version", + exec: { + label: "ubi9 version", + component: "ubi9", + commandLine: "echo ubi9", + }, + }, + ]; + } + + test("sequential composite executes both components", async () => { + const devfile = { + commands: [ + ...baseCommands(), + { + id: "parallel-ubi8-ubi9", + composite: { + label: "Parallel: Check echo ubi8-ubi9", + parallel: false, + commands: ["ubi8-tools-version", "ubi9-tools-version"], + }, + }, + ], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const tasks = await provider.provideTasks(); + + // label should be used instead of id + const task = tasks!.find( + (t) => t.name === "Parallel: Check echo ubi8-ubi9", + )!; + + await (task.execution as any).callback(); + + // ubi8 + ubi9 + completion echo + expect(terminal.calls.length).toBe(3); + + expect(terminal.calls[0].component).toBe("ubi8"); + expect(terminal.calls[1].component).toBe("ubi9"); + }); + + test("parallel composite executes both components", async () => { + const devfile = { + commands: [ + ...baseCommands(), + { + id: "parallel-ubi8-ubi9", + composite: { + label: "Parallel: Check echo ubi8-ubi9", + parallel: true, + commands: ["ubi8-tools-version", "ubi9-tools-version"], + }, + }, + ], + }; + + const terminal = new MockTerminalAPI(); + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal, + ); + + const tasks = await provider.provideTasks(); + + const task = tasks!.find( + (t) => t.name === "Parallel: Check echo ubi8-ubi9", + )!; + + await (task.execution as any).callback(); + + // multi-component parallel → still 2 exec + completion + expect(terminal.calls.length).toBe(3); + + const components = terminal.calls + .slice(0, 2) + .map((c) => c.component) + .sort(); + + expect(components).toEqual(["ubi8", "ubi9"]); + }); + + test("composite label is used as task name", async () => { + const devfile = { + commands: [ + ...baseCommands(), + { + id: "parallel-ubi8-ubi9", + composite: { + label: "Parallel: Check echo ubi8-ubi9", + commands: ["ubi8-tools-version", "ubi9-tools-version"], + }, + }, + ], + }; + + const provider = new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + new MockTerminalAPI(), + ); + + const tasks = await provider.provideTasks(); + + expect( + tasks!.some((t) => t.name === "Parallel: Check echo ubi8-ubi9"), + ).toBe(true); + }); +}); From 7572aaa30f7ab21ffb1aee5e82568858b868ebb5 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Thu, 5 Feb 2026 19:36:43 +0530 Subject: [PATCH 05/25] fixed the logic of execution --- .../che-commands/src/taskProvider.ts | 55 +- code/extensions/che-commands/tests/mocks.ts | 42 +- .../che-commands/tests/taskProvider.test.ts | 741 +++++------------- 3 files changed, 234 insertions(+), 604 deletions(-) diff --git a/code/extensions/che-commands/src/taskProvider.ts b/code/extensions/che-commands/src/taskProvider.ts index 960870a33db..8475e4c1b12 100644 --- a/code/extensions/che-commands/src/taskProvider.ts +++ b/code/extensions/che-commands/src/taskProvider.ts @@ -14,8 +14,8 @@ import { V1alpha2DevWorkspaceSpecTemplate, V1alpha2DevWorkspaceSpecTemplateCommands, V1alpha2DevWorkspaceSpecTemplateCommandsItemsExecEnv, -} from '@devfile/api'; -import * as vscode from 'vscode'; +} from "@devfile/api"; +import * as vscode from "vscode"; /** * Defines the structure of a Devfile task definition. @@ -378,37 +378,30 @@ export class DevfileTaskProvider implements vscode.TaskProvider { // Multi-component → sequential execution of commands if (isMultiComponent) { + const joiner = parallel ? " & " : " && "; + + let compositeCmd = execs + .map((e) => this.buildInitialVariables(e.env) + e.commandLine) + .join(joiner); + + if (parallel) compositeCmd += " ; wait"; + + this.channel.appendLine( + `Composite ${label} (${command.id}) running in ${parallel ? "PARALLEL" : "SEQUENTIAL"} mode`, + ); + return this.createTask( - { type: "devfile", command: "[multi-component composite]" }, + { + type: "devfile", + command: compositeCmd, + workdir: execs[0].workingDir, + }, label, - new vscode.CustomExecution(async () => { - const runExec = (e: ResolvedExec) => - this.terminalExtAPI.getMachineExecPTY( - e.component, - this.buildInitialVariables(e.env) + e.commandLine, - this.expandEnvVariables(e.workingDir), - ); - - if (parallel) { - this.channel.appendLine( - `Composite ${label} (${command.id}) running in PARALLEL mode`, - ); - await Promise.all(execs.map(runExec)); - } else { - this.channel.appendLine( - `Composite ${label} (${command.id}) running in SEQUENTIAL mode`, - ); - for (const e of execs) { - await runExec(e); - } - } - - return this.terminalExtAPI.getMachineExecPTY( - undefined, - `echo "Composite ${label} execution completed (${parallel ? "parallel" : "sequential"})"`, - this.expandEnvVariables("${PROJECT_SOURCE}"), - ); - }), + this.createPTYExecution( + undefined, + compositeCmd, + execs[0].workingDir, + ), ); } diff --git a/code/extensions/che-commands/tests/mocks.ts b/code/extensions/che-commands/tests/mocks.ts index ab1f515f34f..4124cee9a3f 100644 --- a/code/extensions/che-commands/tests/mocks.ts +++ b/code/extensions/che-commands/tests/mocks.ts @@ -11,20 +11,36 @@ /* eslint-disable header/header */ export class MockTerminalAPI { - public calls: Array<{ component?: string; command: string; cwd: string }> = []; - - async getMachineExecPTY(component: string | undefined, command: string, cwd: string) { - this.calls.push({ component, command, cwd }); - return { - open: () => {}, - close: () => {}, - onDidWrite: () => {}, - onDidClose: () => {}, - handleInput: () => {} - }; - } -} + public calls: Array<{ component?: string; command: string; cwd: string }> = + []; + public output: string[] = []; + + async getMachineExecPTY( + component: string | undefined, + command: string, + cwd: string, + ) { + this.calls.push({ component, command, cwd }); + + // simulate VS Code task console banner + this.output.push(`Executing task: devfile: ${component ?? "workspace"}`); + + const echoes = command.match(/echo\s+(.+)/g) || []; + for (const e of echoes) { + this.output.push(e.replace(/^echo\s+/, "")); + } + this.output.push("Terminal will be reused by tasks..."); + + return { + open: () => {}, + close: () => {}, + onDidWrite: () => {}, + onDidClose: () => {}, + handleInput: () => {}, + }; + } +} class MockDevfileService { constructor(private devfile: any) {} diff --git a/code/extensions/che-commands/tests/taskProvider.test.ts b/code/extensions/che-commands/tests/taskProvider.test.ts index 849a2eff4b6..a63206f2e64 100644 --- a/code/extensions/che-commands/tests/taskProvider.test.ts +++ b/code/extensions/che-commands/tests/taskProvider.test.ts @@ -14,684 +14,305 @@ import { DevfileTaskProvider } from "../src/taskProvider"; import { MockCheAPI, MockTerminalAPI } from "./mocks"; import * as vscode from "vscode"; -describe("Trailing with '&'", () => { - test("removes trailing && from exec command", async () => { - const devfile = { - commands: [{ id: "build", exec: { commandLine: "npm run build &&" } }], - }; - +function createProvider(devfile: any, terminal?: MockTerminalAPI) { + return new DevfileTaskProvider( + vscode.window.createOutputChannel("test"), + new MockCheAPI(devfile), + terminal ?? new MockTerminalAPI(), + ); +} + +describe("Exec normalization — commandLine cleanup and joining", () => { + test("trims trailing && from single-line exec commands", async () => { const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), + const tasks = await createProvider( + { + commands: [{ id: "build", exec: { commandLine: "npm run build &&" } }], + }, terminal, - ); - - const tasks = await provider.provideTasks(); - const exec = tasks![0].execution as any; - await exec.callback(); + ).provideTasks(); + await (tasks![0].execution as any).callback(); expect(terminal.calls[0].command).toBe("npm run build"); }); - test("normalizes multiline YAML command with &&", async () => { - const devfile = { - commands: [ - { - id: "compile", - exec: { - commandLine: ["mvn clean &&", "", "mvn install &&"], - }, - }, - ], - }; - + test("joins multiline YAML array commands safely", async () => { const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), + + const provider = createProvider( + { + commands: [ + { + id: "compile", + exec: { + commandLine: ["mvn clean &&", "", "mvn install &&"], + }, + }, + ], + }, terminal, ); - const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; - await exec.callback(); - + await ((await provider.provideTasks())![0].execution as any).callback(); expect(terminal.calls[0].command).toBe("mvn clean && mvn install"); }); }); -describe("Command normalization & composites)", () => { - test("composite joins subcommands without broken &&", async () => { - const devfile = { - commands: [ - { id: "a", exec: { commandLine: "echo A &&" } }, - { id: "b", exec: { commandLine: "echo B &&" } }, - { id: "all", composite: { commands: ["a", "b"] } }, - ], - }; - +describe("Composite resolution — sequential and parallel composition", () => { + test("sequential composite joins subcommands with &&", async () => { const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), + const provider = createProvider( + { + commands: [ + { id: "a", exec: { commandLine: "echo A &&" } }, + { id: "b", exec: { commandLine: "echo B &&" } }, + { id: "all", composite: { commands: ["a", "b"] } }, + ], + }, terminal, ); - const tasks = await provider.provideTasks(); - const composite = (tasks || []).find( - (t: { name: string }) => t.name === "all", + const task = (await provider.provideTasks())!.find( + (t) => t.name === "all", )!; - const exec = composite.execution as any; - await exec.callback(); + await (task.execution as any).callback(); expect(terminal.calls[0].command).toBe("echo A && echo B"); }); - test("parallel composite uses & and wait", async () => { - const devfile = { - commands: [ - { id: "a", exec: { commandLine: "echo A" } }, - { id: "b", exec: { commandLine: "echo B" } }, - { - id: "p", - composite: { parallel: true, commands: ["a", "b"] }, - }, - ], - }; - + test("parallel composite uses background operator and wait", async () => { const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), + const provider = createProvider( + { + commands: [ + { id: "a", exec: { commandLine: "echo A" } }, + { id: "b", exec: { commandLine: "echo B" } }, + { id: "p", composite: { parallel: true, commands: ["a", "b"] } }, + ], + }, terminal, ); - const exec = ((await provider.provideTasks()) || []).find( - (t: { name: string }) => t.name === "p", - )!.execution as any; - - await exec.callback(); + const task = (await provider.provideTasks())!.find((t) => t.name === "p")!; + await (task.execution as any).callback(); expect(terminal.calls[0].command).toBe("echo A & echo B ; wait"); }); - test("cyclic composite is rejected", async () => { - const devfile = { + test("rejects cyclic composite graphs", async () => { + const tasks = await createProvider({ commands: [ { id: "a", composite: { commands: ["b"] } }, { id: "b", composite: { commands: ["a"] } }, ], - }; - - const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), - terminal, - ); + }).provideTasks(); - const tasks = await provider.provideTasks(); - expect((tasks || []).length).toBe(0); + expect(tasks).toHaveLength(0); }); }); -describe("Advanced shell normalization rules", () => { - test("does not break shell line-continuation (\\) commands", async () => { - const devfile = { - commands: [ - { - id: "debug", - exec: { - commandLine: ` -dlv \\ - --listen=127.0.0.1:1234 \\ - --only-same-user=false \\ - debug main.go -`, - }, - }, - ], - }; - +describe("Shell syntax detection — avoids unsafe && injection", () => { + test("preserves line continuation scripts", async () => { const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), - terminal, - ); - - const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; - await exec.callback(); - expect(terminal.calls[0].command).toBe( - `dlv \\ ---listen=127.0.0.1:1234 \\ ---only-same-user=false \\ -debug main.go`, - ); - }); - - test("does not inject && when semicolon chaining is used", async () => { - const devfile = { - commands: [ - { - id: "semicolon", - exec: { - commandLine: ` -echo start; -echo middle; -echo end -`, + const provider = createProvider( + { + commands: [ + { + id: "debug", + exec: { + commandLine: `dlv \\ +--listen=127.0.0.1:1234`, + }, }, - }, - ], - }; - - const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), + ], + }, terminal, ); - const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; - await exec.callback(); - - expect(terminal.calls[0].command).toBe(`echo start; -echo middle; -echo end`); + await ((await provider.provideTasks())![0].execution as any).callback(); + expect(terminal.calls[0].command).toContain("\\"); }); - test("does not inject && when || operator is used", async () => { - const devfile = { - commands: [ - { - id: "or-operator", - exec: { - commandLine: ` -make build || echo "build failed" -`, - }, - }, - ], - }; - + test("preserves semicolon chaining", async () => { const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), + const provider = createProvider( + { commands: [{ id: "x", exec: { commandLine: "echo a; echo b" } }] }, terminal, ); - const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; - await exec.callback(); - - expect(terminal.calls[0].command).toBe('make build || echo "build failed"'); + await ((await provider.provideTasks())![0].execution as any).callback(); + expect(terminal.calls[0].command).toContain(";"); }); - test("does not inject && when pipes are used", async () => { - const devfile = { - commands: [ - { - id: "pipe", - exec: { - commandLine: ` -ps aux | grep node | wc -l -`, - }, - }, - ], - }; - + test("preserves pipe operators", async () => { const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), + const provider = createProvider( + { commands: [{ id: "x", exec: { commandLine: "ps | grep" } }] }, terminal, ); - const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; - await exec.callback(); - - expect(terminal.calls[0].command).toBe("ps aux | grep node | wc -l"); + await ((await provider.provideTasks())![0].execution as any).callback(); + expect(terminal.calls[0].command).toContain("|"); }); +}); - test("does not break here-doc commands", async () => { - const devfile = { +describe("Provider filtering and environment handling", () => { + test("filters imported child commands", async () => { + const tasks = await createProvider({ commands: [ { - id: "heredoc", - exec: { - commandLine: ` -cat < file.txt -hello -world -EOF -`, - }, + id: "child", + exec: { commandLine: "echo hi" }, + attributes: { "controller.devfile.io/imported-by": "child" }, }, ], - }; - - const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), - terminal, - ); + }).provideTasks(); - const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; - await exec.callback(); - - expect(terminal.calls[0].command).toBe( - `cat < file.txt -hello -world -EOF`, - ); + expect(tasks).toHaveLength(0); }); - test("does not break docker multiline commands", async () => { - const devfile = { - commands: [ - { - id: "docker", - exec: { - commandLine: ` -docker run \\ - -v /tmp:/app \\ - node:18 npm test -`, - }, - }, - ], - }; - - const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), - terminal, - ); - - const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; - await exec.callback(); - - expect(terminal.calls[0].command).toBe( - `docker run \\ --v /tmp:/app \\ -node:18 npm test`, - ); + test("returns empty task list when no commands defined", async () => { + expect(await createProvider({ commands: [] }).provideTasks()).toEqual([]); }); - test("mixed advanced syntax still avoids && injection", async () => { - const devfile = { - commands: [ - { - id: "mixed", - exec: { - commandLine: ` -echo hello | grep h; -echo done -`, - }, - }, - ], - }; - + test("injects exec env variables with escaping", async () => { const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), - terminal, - ); - - const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; - await exec.callback(); - expect(terminal.calls[0].command).toBe( - `echo hello | grep h; -echo done`, - ); - }); - - test("single line command remains unchanged", async () => { - const devfile = { - commands: [ - { - id: "single", - exec: { - commandLine: "npm run build", + const provider = createProvider( + { + commands: [ + { + id: "env", + exec: { + commandLine: "echo hi", + env: [{ name: "A", value: 'x"y' }], + }, }, - }, - ], - }; - - const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), + ], + }, terminal, ); - const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; - await exec.callback(); - - expect(terminal.calls[0].command).toBe("npm run build"); + await ((await provider.provideTasks())![0].execution as any).callback(); + expect(terminal.calls[0].command).toContain(`export A="x\\"y"`); }); - test("simple multiline commands get && injected", async () => { - const devfile = { - commands: [ - { - id: "simple-chain", - exec: { - commandLine: ` -npm install -npm test -npm build -`, - }, - }, - ], - }; + test("expands workingDir environment variables", async () => { + process.env.TEST_DIR = "/tmp/demo"; const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), + const provider = createProvider( + { + commands: [ + { + id: "wd", + exec: { commandLine: "echo hi", workingDir: "${TEST_DIR}" }, + }, + ], + }, terminal, ); - const exec = ((await provider.provideTasks()) || [])[0]!.execution as any; - await exec.callback(); - - expect(terminal.calls[0].command).toBe( - "npm install && npm test && npm build", - ); + await ((await provider.provideTasks())![0].execution as any).callback(); + expect(terminal.calls[0].cwd).toBe("/tmp/demo"); }); }); -describe("Check exec has its own component", () => { - test("composite sequential runs each exec in its own component", async () => { - const devfile = { - commands: [ - { - id: "a", - exec: { - component: "builder", - commandLine: "echo A", - }, - }, - { - id: "b", - exec: { - component: "runtime", - commandLine: "echo B", - }, - }, - { - id: "seq", - composite: { - commands: ["a", "b"], - parallel: false, - }, - }, - ], - }; - +describe("Composite aggregation model — multi vs single component", () => { + test("aggregates multi-component composites into one shell command", async () => { const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), + const provider = createProvider( + { + commands: [ + { id: "a", exec: { component: "builder", commandLine: "echo A" } }, + { id: "b", exec: { component: "runtime", commandLine: "echo B" } }, + { id: "combo", composite: { commands: ["a", "b"] } }, + ], + }, terminal, ); - const tasks = await provider.provideTasks(); - const composite = tasks!.find((t) => t.name === "seq")!; - const exec = composite.execution as any; - - await exec.callback(); - - // Two real execs + 1 dummy PTY completion message - expect(terminal.calls.length).toBe(3); - - expect(terminal.calls[0]).toEqual({ - component: "builder", - command: "echo A", - cwd: expect.any(String), - }); + const task = (await provider.provideTasks())!.find( + (t) => t.name === "combo", + )!; + await (task.execution as any).callback(); - expect(terminal.calls[1]).toEqual({ - component: "runtime", - command: "echo B", - cwd: expect.any(String), - }); + expect(terminal.calls.length).toBe(1); + expect(terminal.calls[0].command).toContain("echo A"); + expect(terminal.calls[0].command).toContain("echo B"); }); - test("composite parallel runs each exec in its own component", async () => { - const devfile = { - commands: [ - { - id: "a", - exec: { - component: "builder", - commandLine: "echo A", - }, - }, - { - id: "b", - exec: { - component: "runtime", - commandLine: "echo B", - }, - }, - { - id: "par", - composite: { - commands: ["a", "b"], - parallel: true, - }, - }, - ], - }; - + test("flattens same-component composites", async () => { const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), + const provider = createProvider( + { + commands: [ + { id: "a", exec: { component: "py", commandLine: "echo A" } }, + { id: "b", exec: { component: "py", commandLine: "echo B" } }, + { id: "flat", composite: { commands: ["a", "b"] } }, + ], + }, terminal, ); - const tasks = await provider.provideTasks(); - const composite = tasks!.find((t) => t.name === "par")!; - const exec = composite.execution as any; - - await exec.callback(); - - // Two real execs + 1 dummy PTY completion message - expect(terminal.calls.length).toBe(3); - - const components = terminal.calls - .slice(0, 2) - .map((c) => c.component) - .sort(); + const task = (await provider.provideTasks())!.find( + (t) => t.name === "flat", + )!; + await (task.execution as any).callback(); - expect(components).toEqual(["builder", "runtime"]); + expect(terminal.calls[0].component).toBe("py"); + expect(terminal.calls[0].command).toBe("echo A && echo B"); }); - test("composite with same component is flattened into one execution", async () => { - const devfile = { - commands: [ - { - id: "a", - exec: { - component: "python", - commandLine: "echo A", - }, - }, - { - id: "b", - exec: { - component: "python", - commandLine: "echo B", - }, - }, - { - id: "flat", - composite: { - commands: ["a", "b"], - parallel: false, - }, - }, - ], - }; - + test("parallel composite explicitly contains background join and wait", async () => { const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), - terminal, - ); - const tasks = await provider.provideTasks(); - const composite = tasks!.find((t) => t.name === "flat")!; - const exec = composite.execution as any; - - await exec.callback(); - - // Only ONE real execution - expect(terminal.calls.length).toBe(1); - expect(terminal.calls[0].component).toBe("python"); - expect(terminal.calls[0].command).toBe("echo A && echo B"); - }); -}); - -describe("ubi8-ubi9 composite", () => { - function baseCommands() { - return [ - { - id: "ubi8-tools-version", - exec: { - label: "ubi8 version", - component: "ubi8", - commandLine: "echo ubi8", - }, - }, + const provider = createProvider( { - id: "ubi9-tools-version", - exec: { - label: "ubi9 version", - component: "ubi9", - commandLine: "echo ubi9", - }, - }, - ]; - } - - test("sequential composite executes both components", async () => { - const devfile = { - commands: [ - ...baseCommands(), - { - id: "parallel-ubi8-ubi9", - composite: { - label: "Parallel: Check echo ubi8-ubi9", - parallel: false, - commands: ["ubi8-tools-version", "ubi9-tools-version"], + commands: [ + { id: "a", exec: { commandLine: "echo A" } }, + { id: "b", exec: { commandLine: "echo B" } }, + { + id: "combo", + composite: { parallel: true, commands: ["a", "b"] }, }, - }, - ], - }; - - const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), + ], + }, terminal, ); - const tasks = await provider.provideTasks(); - - // label should be used instead of id - const task = tasks!.find( - (t) => t.name === "Parallel: Check echo ubi8-ubi9", + const task = (await provider.provideTasks())!.find( + (t) => t.name === "combo", )!; - await (task.execution as any).callback(); - // ubi8 + ubi9 + completion echo - expect(terminal.calls.length).toBe(3); + const cmd = terminal.calls[0].command; - expect(terminal.calls[0].component).toBe("ubi8"); - expect(terminal.calls[1].component).toBe("ubi9"); + expect(cmd).toMatch(/echo A\s*&\s*echo B/); + expect(cmd).toMatch(/wait$/); }); +}); - test("parallel composite executes both components", async () => { - const devfile = { +describe("Task naming — label precedence rules", () => { + test("exec label overrides id", async () => { + const tasks = await createProvider({ commands: [ - ...baseCommands(), - { - id: "parallel-ubi8-ubi9", - composite: { - label: "Parallel: Check echo ubi8-ubi9", - parallel: true, - commands: ["ubi8-tools-version", "ubi9-tools-version"], - }, - }, + { id: "a", exec: { label: "Name Id A", commandLine: "echo" } }, ], - }; - - const terminal = new MockTerminalAPI(); - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), - terminal, - ); + }).provideTasks(); - const tasks = await provider.provideTasks(); - - const task = tasks!.find( - (t) => t.name === "Parallel: Check echo ubi8-ubi9", - )!; - - await (task.execution as any).callback(); - - // multi-component parallel → still 2 exec + completion - expect(terminal.calls.length).toBe(3); - - const components = terminal.calls - .slice(0, 2) - .map((c) => c.component) - .sort(); - - expect(components).toEqual(["ubi8", "ubi9"]); + expect(tasks![0].name).toBe("Name Id A"); }); - test("composite label is used as task name", async () => { - const devfile = { + test("composite label overrides id", async () => { + const tasks = await createProvider({ commands: [ - ...baseCommands(), - { - id: "parallel-ubi8-ubi9", - composite: { - label: "Parallel: Check echo ubi8-ubi9", - commands: ["ubi8-tools-version", "ubi9-tools-version"], - }, - }, + { id: "a", exec: { commandLine: "echo" } }, + { id: "b", composite: { label: "CompositeLabel", commands: ["a"] } }, ], - }; - - const provider = new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), - new MockCheAPI(devfile), - new MockTerminalAPI(), - ); - - const tasks = await provider.provideTasks(); + }).provideTasks(); - expect( - tasks!.some((t) => t.name === "Parallel: Check echo ubi8-ubi9"), - ).toBe(true); + expect(tasks!.some((t) => t.name === "CompositeLabel")).toBe(true); }); }); From fd06d921b387345461a9f4632315be57b7cc5ab5 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Thu, 5 Feb 2026 21:00:32 +0530 Subject: [PATCH 06/25] logic and test cases updated --- .../che-commands/src/taskProvider.ts | 45 +- .../che-commands/tests/taskProvider.test.ts | 411 +++++++++++------- 2 files changed, 268 insertions(+), 188 deletions(-) diff --git a/code/extensions/che-commands/src/taskProvider.ts b/code/extensions/che-commands/src/taskProvider.ts index 8475e4c1b12..b25d8719e32 100644 --- a/code/extensions/che-commands/src/taskProvider.ts +++ b/code/extensions/che-commands/src/taskProvider.ts @@ -378,30 +378,31 @@ export class DevfileTaskProvider implements vscode.TaskProvider { // Multi-component → sequential execution of commands if (isMultiComponent) { - const joiner = parallel ? " & " : " && "; - - let compositeCmd = execs - .map((e) => this.buildInitialVariables(e.env) + e.commandLine) - .join(joiner); - - if (parallel) compositeCmd += " ; wait"; - - this.channel.appendLine( - `Composite ${label} (${command.id}) running in ${parallel ? "PARALLEL" : "SEQUENTIAL"} mode`, - ); - return this.createTask( - { - type: "devfile", - command: compositeCmd, - workdir: execs[0].workingDir, - }, + { type: "devfile", command: "[multi-component composite]" }, label, - this.createPTYExecution( - undefined, - compositeCmd, - execs[0].workingDir, - ), + new vscode.CustomExecution(async () => { + const runExec = (e: ResolvedExec) => + this.terminalExtAPI.getMachineExecPTY( + e.component, + this.buildInitialVariables(e.env) + e.commandLine, + this.expandEnvVariables(e.workingDir), + ); + + if (parallel) { + await Promise.all(execs.map(runExec)); + } else { + for (const e of execs) { + await runExec(e); + } + } + + return this.terminalExtAPI.getMachineExecPTY( + undefined, + `echo "Composite ${label} execution completed"`, + this.expandEnvVariables("${PROJECT_SOURCE}"), + ); + }), ); } diff --git a/code/extensions/che-commands/tests/taskProvider.test.ts b/code/extensions/che-commands/tests/taskProvider.test.ts index a63206f2e64..d038f341536 100644 --- a/code/extensions/che-commands/tests/taskProvider.test.ts +++ b/code/extensions/che-commands/tests/taskProvider.test.ts @@ -14,7 +14,7 @@ import { DevfileTaskProvider } from "../src/taskProvider"; import { MockCheAPI, MockTerminalAPI } from "./mocks"; import * as vscode from "vscode"; -function createProvider(devfile: any, terminal?: MockTerminalAPI) { +function provider(devfile: any, terminal?: MockTerminalAPI) { return new DevfileTaskProvider( vscode.window.createOutputChannel("test"), new MockCheAPI(devfile), @@ -22,148 +22,167 @@ function createProvider(devfile: any, terminal?: MockTerminalAPI) { ); } -describe("Exec normalization — commandLine cleanup and joining", () => { - test("trims trailing && from single-line exec commands", async () => { - const terminal = new MockTerminalAPI(); - const tasks = await createProvider( +async function runFirst(devfile: any, terminal: MockTerminalAPI) { + const tasks = await provider(devfile, terminal).provideTasks(); + await (tasks![0].execution as any).callback(); +} + +describe("Exec normalization — structural cleanup", () => { + test("removes trailing &&", async () => { + const term = new MockTerminalAPI(); + await runFirst( { - commands: [{ id: "build", exec: { commandLine: "npm run build &&" } }], + commands: [{ id: "a", exec: { commandLine: "npm build &&" } }], }, - terminal, - ).provideTasks(); + term, + ); - await (tasks![0].execution as any).callback(); - expect(terminal.calls[0].command).toBe("npm run build"); + expect(term.calls[0].command).toBe("npm build"); }); - test("joins multiline YAML array commands safely", async () => { - const terminal = new MockTerminalAPI(); + test("joins multiline array with implicit &&", async () => { + const term = new MockTerminalAPI(); - const provider = createProvider( + await runFirst( { commands: [ { - id: "compile", - exec: { - commandLine: ["mvn clean &&", "", "mvn install &&"], - }, + id: "a", + exec: { commandLine: ["npm install", "npm test"] }, }, ], }, - terminal, + term, ); - await ((await provider.provideTasks())![0].execution as any).callback(); - expect(terminal.calls[0].command).toBe("mvn clean && mvn install"); + expect(term.calls[0].command).toBe("npm install && npm test"); }); }); -describe("Composite resolution — sequential and parallel composition", () => { - test("sequential composite joins subcommands with &&", async () => { - const terminal = new MockTerminalAPI(); - const provider = createProvider( +describe("Shell pattern preservation — no unsafe && injection", () => { + test("preserves semicolon chains", async () => { + const term = new MockTerminalAPI(); + await runFirst( { - commands: [ - { id: "a", exec: { commandLine: "echo A &&" } }, - { id: "b", exec: { commandLine: "echo B &&" } }, - { id: "all", composite: { commands: ["a", "b"] } }, - ], + commands: [{ id: "a", exec: { commandLine: "echo a; echo b" } }], }, - terminal, + term, ); - const task = (await provider.provideTasks())!.find( - (t) => t.name === "all", - )!; - await (task.execution as any).callback(); + expect(term.calls[0].command).toContain(";"); + }); + + test("preserves OR operator", async () => { + const term = new MockTerminalAPI(); + await runFirst( + { + commands: [{ id: "a", exec: { commandLine: "make || echo fail" } }], + }, + term, + ); - expect(terminal.calls[0].command).toBe("echo A && echo B"); + expect(term.calls[0].command).toContain("||"); }); - test("parallel composite uses background operator and wait", async () => { - const terminal = new MockTerminalAPI(); - const provider = createProvider( + test("preserves pipe operator", async () => { + const term = new MockTerminalAPI(); + await runFirst( + { + commands: [{ id: "a", exec: { commandLine: "ps | grep node" } }], + }, + term, + ); + + expect(term.calls[0].command).toContain("|"); + }); + + test("preserves heredoc", async () => { + const term = new MockTerminalAPI(); + await runFirst( { commands: [ - { id: "a", exec: { commandLine: "echo A" } }, - { id: "b", exec: { commandLine: "echo B" } }, - { id: "p", composite: { parallel: true, commands: ["a", "b"] } }, + { + id: "a", + exec: { commandLine: "cat < t.name === "p")!; - await (task.execution as any).callback(); - - expect(terminal.calls[0].command).toBe("echo A & echo B ; wait"); + expect(term.calls[0].command).toContain("< { - const tasks = await createProvider({ - commands: [ - { id: "a", composite: { commands: ["b"] } }, - { id: "b", composite: { commands: ["a"] } }, - ], - }).provideTasks(); + test("preserves line continuation backslash", async () => { + const term = new MockTerminalAPI(); + await runFirst( + { + commands: [ + { + id: "a", + exec: { commandLine: "docker run \\\n alpine" }, + }, + ], + }, + term, + ); - expect(tasks).toHaveLength(0); + expect(term.calls[0].command).toContain("\\"); }); }); -describe("Shell syntax detection — avoids unsafe && injection", () => { - test("preserves line continuation scripts", async () => { - const terminal = new MockTerminalAPI(); +describe("Environment and working directory handling", () => { + test("exports exec env vars with escaping", async () => { + const term = new MockTerminalAPI(); - const provider = createProvider( + await runFirst( { commands: [ { - id: "debug", + id: "a", exec: { - commandLine: `dlv \\ ---listen=127.0.0.1:1234`, + commandLine: "echo hi", + env: [{ name: "A", value: 'x"y' }], }, }, ], }, - terminal, + term, ); - await ((await provider.provideTasks())![0].execution as any).callback(); - expect(terminal.calls[0].command).toContain("\\"); + expect(term.calls[0].command).toContain(`export A="x\\"y"`); }); - test("preserves semicolon chaining", async () => { - const terminal = new MockTerminalAPI(); - const provider = createProvider( - { commands: [{ id: "x", exec: { commandLine: "echo a; echo b" } }] }, - terminal, - ); + test("expands workingDir variables", async () => { + process.env.MY_DIR = "/tmp/demo"; + const term = new MockTerminalAPI(); - await ((await provider.provideTasks())![0].execution as any).callback(); - expect(terminal.calls[0].command).toContain(";"); - }); - - test("preserves pipe operators", async () => { - const terminal = new MockTerminalAPI(); - const provider = createProvider( - { commands: [{ id: "x", exec: { commandLine: "ps | grep" } }] }, - terminal, + await runFirst( + { + commands: [ + { + id: "a", + exec: { + commandLine: "echo hi", + workingDir: "${MY_DIR}", + }, + }, + ], + }, + term, ); - await ((await provider.provideTasks())![0].execution as any).callback(); - expect(terminal.calls[0].command).toContain("|"); + expect(term.calls[0].cwd).toBe("/tmp/demo"); }); }); -describe("Provider filtering and environment handling", () => { +describe("Command filtering rules", () => { test("filters imported child commands", async () => { - const tasks = await createProvider({ + const tasks = await provider({ commands: [ { - id: "child", - exec: { commandLine: "echo hi" }, + id: "x", + exec: { commandLine: "echo" }, attributes: { "controller.devfile.io/imported-by": "child" }, }, ], @@ -171,148 +190,208 @@ describe("Provider filtering and environment handling", () => { expect(tasks).toHaveLength(0); }); +}); + +describe("Composite — sequential execution", () => { + test("joins with &&", async () => { + const term = new MockTerminalAPI(); + + const tasks = await provider( + { + commands: [ + { id: "a", exec: { commandLine: "echo A" } }, + { id: "b", exec: { commandLine: "echo B" } }, + { id: "c", composite: { commands: ["a", "b"] } }, + ], + }, + term, + ).provideTasks(); + + const task = tasks!.find((t) => t.name === "c")!; + await (task.execution as any).callback(); - test("returns empty task list when no commands defined", async () => { - expect(await createProvider({ commands: [] }).provideTasks()).toEqual([]); + expect(term.calls[0].command).toBe("echo A && echo B"); }); +}); - test("injects exec env variables with escaping", async () => { - const terminal = new MockTerminalAPI(); +describe("Composite — parallel execution", () => { + test("uses & and wait", async () => { + const term = new MockTerminalAPI(); - const provider = createProvider( + const tasks = await provider( { commands: [ - { - id: "env", - exec: { - commandLine: "echo hi", - env: [{ name: "A", value: 'x"y' }], - }, - }, + { id: "a", exec: { commandLine: "echo A" } }, + { id: "b", exec: { commandLine: "echo B" } }, + { id: "p", composite: { parallel: true, commands: ["a", "b"] } }, ], }, - terminal, - ); + term, + ).provideTasks(); + + const task = tasks!.find((t) => t.name === "p")!; + await (task.execution as any).callback(); - await ((await provider.provideTasks())![0].execution as any).callback(); - expect(terminal.calls[0].command).toContain(`export A="x\\"y"`); + expect(term.calls[0].command).toBe("echo A & echo B ; wait"); }); +}); - test("expands workingDir environment variables", async () => { - process.env.TEST_DIR = "/tmp/demo"; +describe("Composite execution model — multi vs single component (sequential + parallel)", () => { + test("multi-component sequential executes each command in its own component", async () => { + const term = new MockTerminalAPI(); - const terminal = new MockTerminalAPI(); - const provider = createProvider( + const tasks = await provider( { commands: [ - { - id: "wd", - exec: { commandLine: "echo hi", workingDir: "${TEST_DIR}" }, - }, + { id: "a", exec: { component: "ubi8", commandLine: "echo 8" } }, + { id: "b", exec: { component: "ubi9", commandLine: "echo 9" } }, + { id: "c", composite: { parallel: false, commands: ["a", "b"] } }, ], }, - terminal, - ); + term, + ).provideTasks(); - await ((await provider.provideTasks())![0].execution as any).callback(); - expect(terminal.calls[0].cwd).toBe("/tmp/demo"); + const task = tasks!.find((t) => t.name === "c")!; + await (task.execution as any).callback(); + + // two real executions + completion echo + expect(term.calls.length).toBe(3); + + expect(term.calls[0]).toMatchObject({ + component: "ubi8", + command: expect.stringContaining("echo 8"), + }); + + expect(term.calls[1]).toMatchObject({ + component: "ubi9", + command: expect.stringContaining("echo 9"), + }); }); -}); -describe("Composite aggregation model — multi vs single component", () => { - test("aggregates multi-component composites into one shell command", async () => { - const terminal = new MockTerminalAPI(); - const provider = createProvider( + test("multi-component parallel executes each command in its own component", async () => { + const term = new MockTerminalAPI(); + + const tasks = await provider( { commands: [ - { id: "a", exec: { component: "builder", commandLine: "echo A" } }, - { id: "b", exec: { component: "runtime", commandLine: "echo B" } }, - { id: "combo", composite: { commands: ["a", "b"] } }, + { id: "a", exec: { component: "ubi8", commandLine: "echo 8" } }, + { id: "b", exec: { component: "ubi9", commandLine: "echo 9" } }, + { id: "c", composite: { parallel: true, commands: ["a", "b"] } }, ], }, - terminal, - ); + term, + ).provideTasks(); - const task = (await provider.provideTasks())!.find( - (t) => t.name === "combo", - )!; + const task = tasks!.find((t) => t.name === "c")!; await (task.execution as any).callback(); - expect(terminal.calls.length).toBe(1); - expect(terminal.calls[0].command).toContain("echo A"); - expect(terminal.calls[0].command).toContain("echo B"); + // two real executions + completion echo + expect(term.calls.length).toBe(3); + + const comps = term.calls + .slice(0, 2) + .map((c) => c.component) + .sort(); + expect(comps).toEqual(["ubi8", "ubi9"]); }); - test("flattens same-component composites", async () => { - const terminal = new MockTerminalAPI(); - const provider = createProvider( + test("same-component sequential composite is flattened with &&", async () => { + const term = new MockTerminalAPI(); + + const tasks = await provider( { commands: [ - { id: "a", exec: { component: "py", commandLine: "echo A" } }, - { id: "b", exec: { component: "py", commandLine: "echo B" } }, - { id: "flat", composite: { commands: ["a", "b"] } }, + { id: "a", exec: { component: "py", commandLine: "A" } }, + { id: "b", exec: { component: "py", commandLine: "B" } }, + { id: "c", composite: { parallel: false, commands: ["a", "b"] } }, ], }, - terminal, - ); + term, + ).provideTasks(); - const task = (await provider.provideTasks())!.find( - (t) => t.name === "flat", - )!; + const task = tasks!.find((t) => t.name === "c")!; await (task.execution as any).callback(); - expect(terminal.calls[0].component).toBe("py"); - expect(terminal.calls[0].command).toBe("echo A && echo B"); + expect(term.calls.length).toBe(1); + expect(term.calls[0].component).toBe("py"); + expect(term.calls[0].command).toBe("A && B"); }); - test("parallel composite explicitly contains background join and wait", async () => { - const terminal = new MockTerminalAPI(); + test("same-component parallel composite is flattened with & and wait", async () => { + const term = new MockTerminalAPI(); - const provider = createProvider( + const tasks = await provider( { commands: [ - { id: "a", exec: { commandLine: "echo A" } }, - { id: "b", exec: { commandLine: "echo B" } }, - { - id: "combo", - composite: { parallel: true, commands: ["a", "b"] }, - }, + { id: "a", exec: { component: "py", commandLine: "A" } }, + { id: "b", exec: { component: "py", commandLine: "B" } }, + { id: "c", composite: { parallel: true, commands: ["a", "b"] } }, ], }, - terminal, - ); + term, + ).provideTasks(); - const task = (await provider.provideTasks())!.find( - (t) => t.name === "combo", - )!; + const task = tasks!.find((t) => t.name === "c")!; await (task.execution as any).callback(); - const cmd = terminal.calls[0].command; + expect(term.calls.length).toBe(1); + expect(term.calls[0].component).toBe("py"); + expect(term.calls[0].command).toContain("A & B"); + expect(term.calls[0].command).toContain("wait"); + }); +}); + +describe("Composite validation safety", () => { + test("rejects cyclic composites", async () => { + const tasks = await provider({ + commands: [ + { id: "a", composite: { commands: ["b"] } }, + { id: "b", composite: { commands: ["a"] } }, + ], + }).provideTasks(); + + expect(tasks).toHaveLength(0); + }); + + test("supports nested composite resolution", async () => { + const term = new MockTerminalAPI(); + + const tasks = await provider( + { + commands: [ + { id: "a", exec: { commandLine: "A" } }, + { id: "b", composite: { commands: ["a"] } }, + { id: "c", composite: { commands: ["b"] } }, + ], + }, + term, + ).provideTasks(); + + await (tasks!.find((t) => t.name === "c")!.execution as any).callback(); - expect(cmd).toMatch(/echo A\s*&\s*echo B/); - expect(cmd).toMatch(/wait$/); + expect(term.calls[0].command).toBe("A"); }); }); -describe("Task naming — label precedence rules", () => { +describe("Task naming precedence", () => { test("exec label overrides id", async () => { - const tasks = await createProvider({ + const tasks = await provider({ commands: [ - { id: "a", exec: { label: "Name Id A", commandLine: "echo" } }, + { id: "a", exec: { label: "Nice Name", commandLine: "echo" } }, ], }).provideTasks(); - expect(tasks![0].name).toBe("Name Id A"); + expect(tasks![0].name).toBe("Nice Name"); }); test("composite label overrides id", async () => { - const tasks = await createProvider({ + const tasks = await provider({ commands: [ { id: "a", exec: { commandLine: "echo" } }, - { id: "b", composite: { label: "CompositeLabel", commands: ["a"] } }, + { id: "b", composite: { label: "Composite Nice", commands: ["a"] } }, ], }).provideTasks(); - expect(tasks!.some((t) => t.name === "CompositeLabel")).toBe(true); + expect(tasks!.some((t) => t.name === "Composite Nice")).toBe(true); }); }); From 746b12545d56ebeb8ce95ed2812c8ab0f06d2868 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Thu, 5 Feb 2026 23:29:52 +0530 Subject: [PATCH 07/25] logs were added --- .../che-commands/src/taskProvider.ts | 26 +- code/extensions/che-commands/tests/mocks.ts | 50 ++- .../che-commands/tests/taskProvider.test.ts | 372 ++++++++---------- 3 files changed, 230 insertions(+), 218 deletions(-) diff --git a/code/extensions/che-commands/src/taskProvider.ts b/code/extensions/che-commands/src/taskProvider.ts index b25d8719e32..ba6012e9bca 100644 --- a/code/extensions/che-commands/src/taskProvider.ts +++ b/code/extensions/che-commands/src/taskProvider.ts @@ -382,24 +382,42 @@ export class DevfileTaskProvider implements vscode.TaskProvider { { type: "devfile", command: "[multi-component composite]" }, label, new vscode.CustomExecution(async () => { - const runExec = (e: ResolvedExec) => - this.terminalExtAPI.getMachineExecPTY( + const runExec = async (e: ResolvedExec) => { + const cmd = this.buildInitialVariables(e.env) + e.commandLine; + + this.channel.appendLine( + `[composite:${label}] → component=${e.component ?? "default"} cmd=${cmd}`, + ); + + return this.terminalExtAPI.getMachineExecPTY( e.component, - this.buildInitialVariables(e.env) + e.commandLine, + cmd, this.expandEnvVariables(e.workingDir), ); + }; if (parallel) { + this.channel.appendLine( + `Composite ${label} running in PARALLEL mode`, + ); + + // run in parallel across components await Promise.all(execs.map(runExec)); } else { + this.channel.appendLine( + `Composite ${label} running in SEQUENTIAL mode`, + ); + + // run sequentially across components for (const e of execs) { await runExec(e); } } + // final completion message PTY (shown in VS Code task terminal) return this.terminalExtAPI.getMachineExecPTY( undefined, - `echo "Composite ${label} execution completed"`, + `echo "Composite ${label} execution completed (${parallel ? "parallel" : "sequential"})"`, this.expandEnvVariables("${PROJECT_SOURCE}"), ); }), diff --git a/code/extensions/che-commands/tests/mocks.ts b/code/extensions/che-commands/tests/mocks.ts index 4124cee9a3f..b8a1cfca0ab 100644 --- a/code/extensions/che-commands/tests/mocks.ts +++ b/code/extensions/che-commands/tests/mocks.ts @@ -10,28 +10,46 @@ /* eslint-disable header/header */ +type MockTerminalOptions = { + debug?: boolean; +}; + + export class MockTerminalAPI { - public calls: Array<{ component?: string; command: string; cwd: string }> = - []; - public output: string[] = []; + private debug: boolean; + + public calls: Array<{ + component?: string; + command: string; + cwd: string; + output: string; + }> = []; + + constructor(opts?: MockTerminalOptions) { + this.debug = !!opts?.debug; + } async getMachineExecPTY( component: string | undefined, command: string, cwd: string, ) { - this.calls.push({ component, command, cwd }); + // simulate output from echo commands + const output = this.simulateOutput(command); - // simulate VS Code task console banner - this.output.push(`Executing task: devfile: ${component ?? "workspace"}`); + const record = { component, command, cwd, output }; + this.calls.push(record); - const echoes = command.match(/echo\s+(.+)/g) || []; - for (const e of echoes) { - this.output.push(e.replace(/^echo\s+/, "")); + // ✅ print during test run + if (this.debug) { + console.log("\n[PTY]"); + console.log(" component:", component ?? "default"); + console.log(" cwd:", cwd); + console.log(" command:", command); + if (output) { + console.log(" output:", output); + } } - - this.output.push("Terminal will be reused by tasks..."); - return { open: () => {}, close: () => {}, @@ -40,6 +58,14 @@ export class MockTerminalAPI { handleInput: () => {}, }; } + + private simulateOutput(command: string): string { + // simple echo simulation + const m = command.match(/echo\s+(.+)/); + if (!m) return ""; + + return m[1].replace(/^"|"$/g, ""); + } } class MockDevfileService { diff --git a/code/extensions/che-commands/tests/taskProvider.test.ts b/code/extensions/che-commands/tests/taskProvider.test.ts index d038f341536..a15ba65e202 100644 --- a/code/extensions/che-commands/tests/taskProvider.test.ts +++ b/code/extensions/che-commands/tests/taskProvider.test.ts @@ -14,7 +14,7 @@ import { DevfileTaskProvider } from "../src/taskProvider"; import { MockCheAPI, MockTerminalAPI } from "./mocks"; import * as vscode from "vscode"; -function provider(devfile: any, terminal?: MockTerminalAPI) { +function createProvider(devfile: any, terminal?: MockTerminalAPI) { return new DevfileTaskProvider( vscode.window.createOutputChannel("test"), new MockCheAPI(devfile), @@ -22,124 +22,118 @@ function provider(devfile: any, terminal?: MockTerminalAPI) { ); } -async function runFirst(devfile: any, terminal: MockTerminalAPI) { - const tasks = await provider(devfile, terminal).provideTasks(); - await (tasks![0].execution as any).callback(); -} - -describe("Exec normalization — structural cleanup", () => { - test("removes trailing &&", async () => { +describe("Exec command normalization", () => { + test("removes trailing logical AND operators from single-line commands", async () => { const term = new MockTerminalAPI(); - await runFirst( + + const tasks = await createProvider( { - commands: [{ id: "a", exec: { commandLine: "npm build &&" } }], + commands: [{ id: "build", exec: { commandLine: "npm run build &&" } }], }, term, - ); + ).provideTasks(); + + await (tasks![0].execution as any).callback(); - expect(term.calls[0].command).toBe("npm build"); + expect(term.calls[0].command).toBe("npm run build"); }); - test("joins multiline array with implicit &&", async () => { + test("joins multiline YAML command arrays into a safe && chain", async () => { const term = new MockTerminalAPI(); - await runFirst( + const tasks = await createProvider( { commands: [ { - id: "a", - exec: { commandLine: ["npm install", "npm test"] }, + id: "compile", + exec: { commandLine: ["mvn clean &&", "", "mvn install &&"] }, }, ], }, term, - ); + ).provideTasks(); - expect(term.calls[0].command).toBe("npm install && npm test"); + await (tasks![0].execution as any).callback(); + + expect(term.calls[0].command).toBe("mvn clean && mvn install"); }); -}); -describe("Shell pattern preservation — no unsafe && injection", () => { - test("preserves semicolon chains", async () => { + test("preserves semicolon-chained shell scripts without injecting &&", async () => { const term = new MockTerminalAPI(); - await runFirst( + + const tasks = await createProvider( { - commands: [{ id: "a", exec: { commandLine: "echo a; echo b" } }], + commands: [{ id: "script", exec: { commandLine: "echo A; echo B" } }], }, term, - ); + ).provideTasks(); + + await (tasks![0].execution as any).callback(); expect(term.calls[0].command).toContain(";"); }); - test("preserves OR operator", async () => { + test("preserves pipe operators in shell commands", async () => { const term = new MockTerminalAPI(); - await runFirst( - { - commands: [{ id: "a", exec: { commandLine: "make || echo fail" } }], - }, - term, - ); - - expect(term.calls[0].command).toContain("||"); - }); - test("preserves pipe operator", async () => { - const term = new MockTerminalAPI(); - await runFirst( + const tasks = await createProvider( { - commands: [{ id: "a", exec: { commandLine: "ps | grep node" } }], + commands: [{ id: "pipe", exec: { commandLine: "ps aux | grep node" } }], }, term, - ); + ).provideTasks(); + + await (tasks![0].execution as any).callback(); expect(term.calls[0].command).toContain("|"); }); - test("preserves heredoc", async () => { + test("preserves line-continuation scripts using backslashes", async () => { const term = new MockTerminalAPI(); - await runFirst( + + const tasks = await createProvider( { - commands: [ - { - id: "a", - exec: { commandLine: "cat < { - const term = new MockTerminalAPI(); - await runFirst( - { - commands: [ - { - id: "a", - exec: { commandLine: "docker run \\\n alpine" }, - }, - ], - }, - term, - ); +describe("Provider command filtering", () => { + test("excludes commands imported as child devfile fragments", async () => { + const tasks = await createProvider({ + commands: [ + { + id: "child", + exec: { commandLine: "echo" }, + attributes: { "controller.devfile.io/imported-by": "child" }, + }, + ], + }).provideTasks(); - expect(term.calls[0].command).toContain("\\"); + expect(tasks).toHaveLength(0); + }); + + test("returns no tasks when devfile contains no runnable commands", async () => { + const tasks = await createProvider({ commands: [] }).provideTasks(); + expect(tasks).toEqual([]); }); }); -describe("Environment and working directory handling", () => { - test("exports exec env vars with escaping", async () => { +describe("Environment variable handling", () => { + test("injects exec environment variables with proper escaping", async () => { const term = new MockTerminalAPI(); - await runFirst( + const tasks = await createProvider( { commands: [ { - id: "a", + id: "env", exec: { commandLine: "echo hi", env: [{ name: "A", value: 'x"y' }], @@ -148,43 +142,45 @@ describe("Environment and working directory handling", () => { ], }, term, - ); + ).provideTasks(); + + await (tasks![0].execution as any).callback(); expect(term.calls[0].command).toContain(`export A="x\\"y"`); }); - test("expands workingDir variables", async () => { - process.env.MY_DIR = "/tmp/demo"; + test("expands working directory environment placeholders", async () => { + process.env.TEST_DIR = "/tmp/demo"; + const term = new MockTerminalAPI(); - await runFirst( + const tasks = await createProvider( { commands: [ { - id: "a", + id: "wd", exec: { - commandLine: "echo hi", - workingDir: "${MY_DIR}", + commandLine: "echo", + workingDir: "${TEST_DIR}", }, }, ], }, term, - ); + ).provideTasks(); + + await (tasks![0].execution as any).callback(); expect(term.calls[0].cwd).toBe("/tmp/demo"); }); }); -describe("Command filtering rules", () => { - test("filters imported child commands", async () => { - const tasks = await provider({ +describe("Composite validation and safety", () => { + test("rejects composites with cyclic command references", async () => { + const tasks = await createProvider({ commands: [ - { - id: "x", - exec: { commandLine: "echo" }, - attributes: { "controller.devfile.io/imported-by": "child" }, - }, + { id: "a", composite: { commands: ["b"] } }, + { id: "b", composite: { commands: ["a"] } }, ], }).provideTasks(); @@ -192,206 +188,178 @@ describe("Command filtering rules", () => { }); }); -describe("Composite — sequential execution", () => { - test("joins with &&", async () => { - const term = new MockTerminalAPI(); - - const tasks = await provider( - { - commands: [ - { id: "a", exec: { commandLine: "echo A" } }, - { id: "b", exec: { commandLine: "echo B" } }, - { id: "c", composite: { commands: ["a", "b"] } }, - ], - }, - term, - ).provideTasks(); - - const task = tasks!.find((t) => t.name === "c")!; - await (task.execution as any).callback(); - - expect(term.calls[0].command).toBe("echo A && echo B"); - }); -}); - -describe("Composite — parallel execution", () => { - test("uses & and wait", async () => { - const term = new MockTerminalAPI(); +describe("Composite execution across multiple components", () => { + test("runs sequential composite commands in their respective components", async () => { + const term = new MockTerminalAPI( {debug: false} ); //true to see PTY logs - const tasks = await provider( + const tasks = await createProvider( { commands: [ - { id: "a", exec: { commandLine: "echo A" } }, - { id: "b", exec: { commandLine: "echo B" } }, - { id: "p", composite: { parallel: true, commands: ["a", "b"] } }, + { id: "ubi8", exec: { component: "ubi8", commandLine: "echo el8" } }, + { id: "ubi9", exec: { component: "ubi9", commandLine: "echo el9" } }, + { + id: "combo", + composite: { parallel: false, commands: ["ubi8", "ubi9"] }, + }, ], }, term, ).provideTasks(); - const task = tasks!.find((t) => t.name === "p")!; - await (task.execution as any).callback(); + await (tasks!.find((t) => t.name === "combo")!.execution as any).callback(); - expect(term.calls[0].command).toBe("echo A & echo B ; wait"); + expect(term.calls[0].component).toBe("ubi8"); + expect(term.calls[1].component).toBe("ubi9"); + expect(term.calls[0].output).toBe("el8"); + expect(term.calls[1].output).toBe("el9"); }); -}); -describe("Composite execution model — multi vs single component (sequential + parallel)", () => { - test("multi-component sequential executes each command in its own component", async () => { - const term = new MockTerminalAPI(); + test("runs parallel composite commands in their respective components", async () => { + const term = new MockTerminalAPI({ debug: false }); //true to see PTY logs - const tasks = await provider( + const tasks = await createProvider( { commands: [ - { id: "a", exec: { component: "ubi8", commandLine: "echo 8" } }, - { id: "b", exec: { component: "ubi9", commandLine: "echo 9" } }, - { id: "c", composite: { parallel: false, commands: ["a", "b"] } }, + { id: "ubi8", exec: { component: "ubi8", commandLine: "echo el8" } }, + { id: "ubi9", exec: { component: "ubi9", commandLine: "echo el9" } }, + { + id: "combo", + composite: { parallel: true, commands: ["ubi8", "ubi9"] }, + }, ], }, term, ).provideTasks(); - const task = tasks!.find((t) => t.name === "c")!; - await (task.execution as any).callback(); - - // two real executions + completion echo - expect(term.calls.length).toBe(3); - - expect(term.calls[0]).toMatchObject({ - component: "ubi8", - command: expect.stringContaining("echo 8"), - }); + await (tasks!.find((t) => t.name === "combo")!.execution as any).callback(); - expect(term.calls[1]).toMatchObject({ - component: "ubi9", - command: expect.stringContaining("echo 9"), - }); + const components = term.calls + .slice(0, 2) + .map((c) => c.component) + .sort(); + expect(components).toEqual(["ubi8", "ubi9"]); }); - test("multi-component parallel executes each command in its own component", async () => { + test("single-command composite does not emit completion message", async () => { const term = new MockTerminalAPI(); - const tasks = await provider( + const tasks = await createProvider( { commands: [ - { id: "a", exec: { component: "ubi8", commandLine: "echo 8" } }, - { id: "b", exec: { component: "ubi9", commandLine: "echo 9" } }, - { id: "c", composite: { parallel: true, commands: ["a", "b"] } }, + { id: "a", exec: { commandLine: "echo A" } }, + { id: "combo", composite: { commands: ["a"] } }, ], }, term, ).provideTasks(); - const task = tasks!.find((t) => t.name === "c")!; - await (task.execution as any).callback(); + await (tasks!.find((t) => t.name === "combo")!.execution as any).callback(); - // two real executions + completion echo - expect(term.calls.length).toBe(3); + expect( + term.calls.some((c) => c.command.includes("execution completed")), + ).toBe(false); - const comps = term.calls - .slice(0, 2) - .map((c) => c.component) - .sort(); - expect(comps).toEqual(["ubi8", "ubi9"]); + expect(term.calls.length).toBe(1); + expect(term.calls[0].command).toContain("echo A"); }); +}); - test("same-component sequential composite is flattened with &&", async () => { +describe("Composite flattening within a single component", () => { + test("flattens sequential composites into a single && command chain", async () => { const term = new MockTerminalAPI(); - const tasks = await provider( + const tasks = await createProvider( { commands: [ { id: "a", exec: { component: "py", commandLine: "A" } }, { id: "b", exec: { component: "py", commandLine: "B" } }, - { id: "c", composite: { parallel: false, commands: ["a", "b"] } }, + { id: "combo", composite: { parallel: false, commands: ["a", "b"] } }, ], }, term, ).provideTasks(); - const task = tasks!.find((t) => t.name === "c")!; - await (task.execution as any).callback(); + await (tasks!.find((t) => t.name === "combo")!.execution as any).callback(); expect(term.calls.length).toBe(1); - expect(term.calls[0].component).toBe("py"); expect(term.calls[0].command).toBe("A && B"); }); - test("same-component parallel composite is flattened with & and wait", async () => { + test("flattens parallel composites into a backgrounded command chain with wait", async () => { const term = new MockTerminalAPI(); - const tasks = await provider( + const tasks = await createProvider( { commands: [ { id: "a", exec: { component: "py", commandLine: "A" } }, { id: "b", exec: { component: "py", commandLine: "B" } }, - { id: "c", composite: { parallel: true, commands: ["a", "b"] } }, + { id: "combo", composite: { parallel: true, commands: ["a", "b"] } }, ], }, term, ).provideTasks(); - const task = tasks!.find((t) => t.name === "c")!; - await (task.execution as any).callback(); + await (tasks!.find((t) => t.name === "combo")!.execution as any).callback(); - expect(term.calls.length).toBe(1); - expect(term.calls[0].component).toBe("py"); - expect(term.calls[0].command).toContain("A & B"); + expect(term.calls[0].command).toContain("&"); expect(term.calls[0].command).toContain("wait"); }); }); -describe("Composite validation safety", () => { - test("rejects cyclic composites", async () => { - const tasks = await provider({ +describe("Task naming resolution", () => { + test("uses exec label as the VS Code task name when provided", async () => { + const tasks = await createProvider({ commands: [ - { id: "a", composite: { commands: ["b"] } }, - { id: "b", composite: { commands: ["a"] } }, + { id: "a", exec: { label: "Build Task", commandLine: "echo" } }, ], }).provideTasks(); - expect(tasks).toHaveLength(0); + expect(tasks![0].name).toBe("Build Task"); }); - test("supports nested composite resolution", async () => { - const term = new MockTerminalAPI(); - - const tasks = await provider( - { - commands: [ - { id: "a", exec: { commandLine: "A" } }, - { id: "b", composite: { commands: ["a"] } }, - { id: "c", composite: { commands: ["b"] } }, - ], - }, - term, - ).provideTasks(); - - await (tasks!.find((t) => t.name === "c")!.execution as any).callback(); + test("uses composite label as the VS Code task name when provided", async () => { + const tasks = await createProvider({ + commands: [ + { id: "a", exec: { commandLine: "echo" } }, + { id: "b", composite: { label: "Composite Task", commands: ["a"] } }, + ], + }).provideTasks(); - expect(term.calls[0].command).toBe("A"); + expect(tasks!.some((t) => t.name === "Composite Task")).toBe(true); }); }); -describe("Task naming precedence", () => { - test("exec label overrides id", async () => { - const tasks = await provider({ - commands: [ - { id: "a", exec: { label: "Nice Name", commandLine: "echo" } }, - ], +describe("Fallback behavior", () => { + test("creates a message task for unsupported command definitions", async () => { + const tasks = await createProvider({ + commands: [{ id: "unsupported" }], }).provideTasks(); - expect(tasks![0].name).toBe("Nice Name"); + expect(tasks).toHaveLength(0); }); +}); - test("composite label overrides id", async () => { - const tasks = await provider({ - commands: [ - { id: "a", exec: { commandLine: "echo" } }, - { id: "b", composite: { label: "Composite Nice", commands: ["a"] } }, - ], - }).provideTasks(); +describe("Task resolution contract", () => { + test("resolveTask returns the provided task unchanged", async () => { + const provider = createProvider({ commands: [] }); + + const fakeExec: any = { + callback: async () => ({ + open() {}, + close() {}, + onDidWrite: () => {}, + }), + }; + + const task = new vscode.Task( + { type: "devfile" }, + vscode.TaskScope.Workspace, + "sample", + "devfile", + fakeExec, + ); - expect(tasks!.some((t) => t.name === "Composite Nice")).toBe(true); + const resolved = await provider.resolveTask(task); + expect(resolved).toBe(task); }); }); From 0b05c4d7145525f4e3cb94d65d1b45dad2a81872 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Tue, 10 Feb 2026 12:13:36 +0530 Subject: [PATCH 08/25] Updated the logic code, code refactor and written test cases which covered all scenario --- code/extensions/che-commands/jest.config.js | 6 + .../che-commands/src/taskProvider.ts | 588 +++++++++--------- .../che-commands/tests/taskProvider.test.ts | 543 +++++++++------- 3 files changed, 624 insertions(+), 513 deletions(-) diff --git a/code/extensions/che-commands/jest.config.js b/code/extensions/che-commands/jest.config.js index a0543c584d5..bd0b4c6d157 100644 --- a/code/extensions/che-commands/jest.config.js +++ b/code/extensions/che-commands/jest.config.js @@ -15,6 +15,7 @@ export const preset = 'ts-jest'; export const testEnvironment = 'node'; export const roots = ['/tests']; +export const collectCoverage = true; export const globals = { 'ts-jest': { tsconfig: '/tsconfig.jest.json' @@ -23,3 +24,8 @@ export const globals = { export const moduleNameMapper = { '^vscode$': '/tests/__mocks__/vscode.ts' }; +export const collectCoverageFrom = [ + "src/**/*.ts", + "!src/**/*.d.ts", + "!tests/**", +] \ No newline at end of file diff --git a/code/extensions/che-commands/src/taskProvider.ts b/code/extensions/che-commands/src/taskProvider.ts index ba6012e9bca..e445cb378c6 100644 --- a/code/extensions/che-commands/src/taskProvider.ts +++ b/code/extensions/che-commands/src/taskProvider.ts @@ -71,10 +71,14 @@ export class DevfileTaskProvider implements vscode.TaskProvider { const commands = await this.fetchDevfileCommands(); return commands - .filter(this.isRunnableCommand) - .filter(this.isNotImportedChild) - .filter((c) => !/^init-ssh-agent-command-\d+$/.test(c.id)) - .map((c) => this.createCheTask(c, commands)) + .filter((cmd) => this.isRunnable(cmd)) + .filter((cmd) => this.isRootCommand(cmd)) + .filter((cmd) => !/^init-ssh-agent-command-\d+$/.test(cmd.id)) + .map((cmd) => + cmd.composite?.commands?.length + ? this.handleCompositeCommand(cmd, commands) + : this.createExecTaskV1(cmd), + ) .filter((t): t is vscode.Task => !!t); } @@ -89,136 +93,202 @@ export class DevfileTaskProvider implements vscode.TaskProvider { const devfile: V1alpha2DevWorkspaceSpecTemplate = await devfileService.get(); - const cmds = devfile.commands ?? []; - if (cmds.length) { + if (devfile.commands?.length) { this.channel.appendLine( - `Detected ${cmds.length} Command(s) in the flattened Devfile.`, + `Detected ${devfile.commands.length} Command(s) in the flattened Devfile.`, ); + return devfile.commands; } - return cmds; + return []; } /** - * Checks if a Devfile command is runnable. - * @param command The command to check. - * @returns True if the command is runnable, false otherwise. + * Normalizes the command line by joining multiple commands with '&&' and sanitizing each command. + * @param cmd The command line to normalize, which can be a string or an array of strings. + * @returns A normalized command line string where multiple commands are joined with '&&', and each command is sanitized. */ - private isRunnableCommand(command: any): boolean { - return ( - !!command.exec?.commandLine || - (command.composite && - Array.isArray(command.composite.commands) && - command.composite.commands.length > 0) - ); + private normalizeExecCommandLine(cmd: string | string[]): string { + const parts = Array.isArray(cmd) ? cmd : [cmd]; + + return parts + .map((s) => this.sanitizeCommand(String(s))) + .filter(Boolean) + .filter((s) => !this.isOperatorOnlyFragment(s)) + .join(" && "); } /** - * Checks if a Devfile command is an imported child. - * @param command The command to check. - * @returns True if the command is an imported child, false otherwise. + * Creates a VS Code task for a Devfile exec command (Version-1). + * @param command The Devfile command to create a task for. + * @returns The created VS Code task. */ - private isNotImportedChild(command: any): boolean { - const importedBy = (command.attributes as any)?.[ - "controller.devfile.io/imported-by" - ]; - return ( - !command.attributes || importedBy === undefined || importedBy === "parent" + private createExecTaskV1(command: any): vscode.Task { + const label = this.getLabel(command); + + const kind: DevfileTaskDefinition = { + type: "devfile", + command: command.exec.commandLine, + workdir: command.exec.workingDir || "${PROJECT_SOURCE}", + component: command.exec.component, + }; + + const execution = new vscode.CustomExecution( + async (): Promise => { + const initialVariables = this.buildEnvPrefix(command.exec.env); + + const normalizedCmd = this.normalizeExecCommandLine( + command.exec.commandLine, + ); + + const finalCmd = this.sanitizeCommand(initialVariables + normalizedCmd); + + return this.terminalExtAPI.getMachineExecPTY( + command.exec.component, + finalCmd, + this.expandEnvVariables(kind.workdir!), + ); + }, + ); + + return new vscode.Task( + kind, + vscode.TaskScope.Workspace, + label, + "devfile", + execution, + [], ); } /** - * Normalizes the execution block. - * @param execBlock The execution block to normalize. - * @returns The normalized execution or null if invalid. + * Handles a composite command by creating a VS Code task for it. + * @param command The composite command to handle. + * @param all The list of all Devfile commands. + * @returns The created VS Code task, or undefined if the command is invalid. */ - private normalizeExec(execBlock: any): ResolvedExec | null { - if (!execBlock?.commandLine) return null; + private handleCompositeCommand( + command: any, + all: V1alpha2DevWorkspaceSpecTemplateCommands[], + ): vscode.Task | undefined { + const label = this.getLabel(command); - let lines: string[] = Array.isArray(execBlock.commandLine) - ? execBlock.commandLine.map(String) - : execBlock.commandLine.toString().split(/\r?\n/); + if (!this.validateComposite(command, all)) { + this.channel.appendLine(`Skipping composite ${label}: invalid graph`); + return undefined; + } - lines = lines - .map((line) => line.replace(/\\\\\s*$/, " \\")) - .map((line) => line.trim()) - .filter(Boolean) - .map((line) => line.replace(/(?:\s*&&\s*)+$/, "").trim()); + const execs = this.flattenCompositeExecs(command, all); + if (!execs.length) { + return this.createEchoTask(`Composite ${label} resolved empty`, label); + } - if (!lines.length) return null; + const parallel = !!command.composite.parallel; - const isShellScript = lines.some( - (line) => - line.endsWith("\\") || - line.endsWith(";") || - line.includes("||") || - line.includes("|") || - line.includes("<<"), - ); + const components = new Set(execs.map((e) => e.component ?? "__default__")); + + if (components.size === 1) { + const joiner = parallel ? " & " : " && "; + + let script = execs + .map((e) => + this.sanitizeCommand(this.buildEnvPrefix(e.env) + e.commandLine), + ) + .join(joiner); + + script = this.sanitizeCommand(script); + if (parallel) script += " ; wait"; + + const primary = execs[0]; + + const kind: DevfileTaskDefinition = { + type: "devfile", + command: script, + workdir: primary.workingDir, + component: primary.component, + }; - return { - commandLine: isShellScript ? lines.join("\n") : lines.join(" && "), - workingDir: (execBlock.workingDir ?? "${PROJECT_SOURCE}").toString(), - component: execBlock.component?.toString(), - env: Array.isArray(execBlock.env) ? execBlock.env : undefined, + return new vscode.Task( + kind, + vscode.TaskScope.Workspace, + label, + "devfile", + this.createPTY(primary.component, script, primary.workingDir), + [], + ); + } + + const execution = new vscode.CustomExecution(async () => { + let lastPty: vscode.Pseudoterminal | undefined; + + const runExec = async (e: ResolvedExec) => { + const cmd = this.sanitizeCommand( + this.buildEnvPrefix(e.env) + e.commandLine, + ); + + lastPty = await this.terminalExtAPI.getMachineExecPTY( + e.component, + cmd, + this.expandEnvVariables(e.workingDir), + ); + + return lastPty; + }; + + if (parallel) { + const ptys = await Promise.all(execs.map(runExec)); + lastPty = ptys[ptys.length - 1]; + } else { + for (const e of execs) { + lastPty = await runExec(e); + } + } + + return lastPty!; + }); + + const first = execs[0]; + + const kind: DevfileTaskDefinition = { + type: "devfile", + command: "[composite]", + workdir: first.workingDir, + component: first.component, }; - } - /** - * Builds the initial environment variable exports. - * @param env The environment variables to build. - * @returns A string containing the initial environment variable exports. - */ - private buildInitialVariables( - env?: Array, - ): string { - if (!env?.length) return ""; - return env - .filter((e) => e?.name) - .map( - (e) => - `export ${e.name}="${(e.value ?? "").toString().replace(/"/g, '\\"')}"; `, - ) - .join(""); + return new vscode.Task( + kind, + vscode.TaskScope.Workspace, + label, + "devfile", + execution, + [], + ); } /** - * Validates composite commands strictly to avoid cyclic references. - * @param command The command to check. - * @param all All available commands. - * @param visited A set of visited command IDs. - * @returns True if the command is valid, false otherwise. + * Validates a composite command by checking for cycles and ensuring all references are resolvable. + * @param command The composite command to validate. + * @param all The list of all Devfile commands. + * @param visited A set of visited command IDs to detect cycles. + * @returns True if the composite command is valid (no cycles, all references resolvable), false otherwise. */ - private validateCompositeStrict( + private validateComposite( command: any, all: V1alpha2DevWorkspaceSpecTemplateCommands[], visited = new Set(), ): boolean { - if (!command?.composite?.commands) return true; - - const label = command.composite?.label || command.id; + if (!command.composite?.commands) return true; if (command.id) { - if (visited.has(command.id)) { - this.channel.appendLine( - `Skipping composite ${label}: cyclic reference detected`, - ); - return false; - } + if (visited.has(command.id)) return false; visited.add(command.id); } - for (const entry of command.composite.commands) { - const sub = - typeof entry === "string" ? all.find((c) => c.id === entry) : entry; - - if (!sub) { - this.channel.appendLine( - `Composite ${label} references missing command`, - ); - return false; - } + for (const ref of command.composite.commands) { + const sub = typeof ref === "string" ? all.find((c) => c.id === ref) : ref; - if (!this.validateCompositeStrict(sub, all, visited)) return false; + if (!sub) return false; + if (!this.validateComposite(sub, all, visited)) return false; } if (command.id) visited.delete(command.id); @@ -226,24 +296,35 @@ export class DevfileTaskProvider implements vscode.TaskProvider { } /** - * Resolves all exec commands from a composite command. - * @param command The composite command to resolve. - * @param all All available commands. - * @returns An array of resolved exec commands. + * Flattens a composite command into its individual executable commands. + * @param command The composite command to flatten. + * @param all The list of all Devfile commands. + * @param visited A set of visited command IDs to avoid processing the same command multiple times. + * @returns An array of resolved executable commands. */ - private resolveExecsFromComposite( + private flattenCompositeExecs( command: any, all: V1alpha2DevWorkspaceSpecTemplateCommands[], + visited = new Set(), ): ResolvedExec[] { const result: ResolvedExec[] = []; const walk = (cmd: any) => { - if (cmd.exec) { - const norm = this.normalizeExec(cmd.exec); - if (norm) result.push(norm); + if (!cmd || visited.has(cmd.id)) return; + if (cmd.id) visited.add(cmd.id); + + if (cmd.exec?.commandLine) { + result.push({ + commandLine: cmd.exec.commandLine.toString(), + workingDir: cmd.exec.workingDir || "${PROJECT_SOURCE}", + component: cmd.exec.component, + env: cmd.exec.env, + }); } - for (const e of cmd.composite?.commands ?? []) { - const sub = typeof e === "string" ? all.find((c) => c.id === e) : e; + + for (const ref of cmd.composite?.commands ?? []) { + const sub = + typeof ref === "string" ? all.find((c) => c.id === ref) : ref; if (sub) walk(sub); } }; @@ -253,217 +334,130 @@ export class DevfileTaskProvider implements vscode.TaskProvider { } /** - * Creates a PTY execution for a task. - * @param component The component to execute the command in. - * @param command The command to execute. - * @param workingDir The working directory for the command. - * @returns A CustomExecution instance for the PTY execution. + * Retrieves the label for a given command, prioritizing exec label, then composite label, + * and finally falling back to the command ID. + * @param cmd The command object to retrieve the label from. + * @returns The label for the command, based on the defined priority. */ - private createPTYExecution( - component: string | undefined, - command: string, - workingDir: string, - ): vscode.CustomExecution { - return new vscode.CustomExecution(async () => { - const resolvedWd = this.expandEnvVariables(workingDir); - return this.terminalExtAPI.getMachineExecPTY( - component, - command, - resolvedWd, - ); - }); + private getLabel(cmd: any): string { + // che#23726 — label priority + return cmd.exec?.label || cmd.composite?.label || cmd.id; } /** - * Creates a VS Code task. - * @param kind The kind of the task. - * @param label The label of the task. - * @param execution The execution of the task. - * @returns The created VS Code task. + * Sanitizes a command string by removing trailing shell operators and trimming whitespace. + * @param cmd The command string to sanitize by removing trailing shell operators and trimming whitespace. + * @returns The sanitized command string. */ - private createTask( - kind: DevfileTaskDefinition, - label: string, - execution: vscode.CustomExecution, - ): vscode.Task { - return new vscode.Task( - kind, - vscode.TaskScope.Workspace, - label, - "devfile", - execution, - [], - ); + private sanitizeCommand(cmd: string): string { + return cmd.replace(/(?:\s*(?:&&|\|\||[|;&]))+\s*$/, "").trim(); } /** - * Creates a message task that echoes a message. - * @param message The message to echo. - * @param label The label of the task. - * @returns The created message task. + * Checks if a command fragment consists solely of shell operators (&&, ||, &, ;, |) and whitespace. + * @param fragment The command fragment to check. + * @returns True if the fragment is operator-only, false otherwise. */ - private createMessageTask(message: string, label: string): vscode.Task { - return this.createTask( - { type: "devfile", command: "", workdir: "${PROJECT_SOURCE}" }, - label, - this.createPTYExecution( - undefined, - `echo "${message.replace(/"/g, '\\"')}"`, - "${PROJECT_SOURCE}", - ), - ); + private isOperatorOnlyFragment(fragment: string): boolean { + return /^(?:&&|\|\||[&;|])+$/.test(fragment.trim()); } /** - * Expands environment variables in a string. - * @param line The line to expand. - * @returns The expanded line. + * Validates if an environment variable entry is valid by checking if it has a non-empty name that matches the allowed pattern. + * @param entry The environment variable entry to validate, which should have a 'name' property and an optional 'value' property. + * @returns True if the environment variable entry is valid, false otherwise. */ - private expandEnvVariables(line: string): string { - return line.replace(/\${([A-Z0-9_]+)}/gi, (_, k) => process.env[k] ?? ""); + private isValidEnvEntry( + entry: any, + ): entry is { name: string; value?: string } { + return ( + typeof entry?.name === "string" && + entry.name.trim().length > 0 && + /^[A-Za-z_][A-Za-z0-9_]*$/.test(entry.name) + ); } /** - * Creates a Che task from a command. - * @param command The command to create the task from. - * @param allCommands All available commands. - * @returns The created Che task. + * Builds a prefix string for environment variable exports based on the provided environment variable definitions. + * @param env The array of environment variable definitions. + * @returns The prefix string for environment variable exports. */ - private createCheTask( - command: any, - allCommands: V1alpha2DevWorkspaceSpecTemplateCommands[], - ): vscode.Task | undefined { - try { - - // ------------------ EXEC ------------------ - if (command.exec) { - const exec = this.normalizeExec(command.exec); - if (!exec) return; - - const initialVars = this.buildInitialVariables(command.exec.env); - const fullCommand = initialVars + exec.commandLine; - const label = command.exec.label || command.id; - - return this.createTask( - { - type: "devfile", - command: fullCommand, - workdir: exec.workingDir, - component: exec.component, - }, - label, - this.createPTYExecution(exec.component, fullCommand, exec.workingDir), - ); - } - - // ------------------ COMPOSITE ------------------ - if (command.composite?.commands?.length) { - if (!this.validateCompositeStrict(command, allCommands)) { - return; - } + private buildEnvPrefix( + env?: Array, + ): string { + if (!env?.length) return ""; + return env + .filter((e) => this.isValidEnvEntry(e)) + .map( + (e) => `export ${e.name}="${(e.value ?? "").replace(/"/g, '\\"')}"; `, + ) + .join(""); + } - const execs = this.resolveExecsFromComposite(command, allCommands); - const label = command.composite.label || command.id; + /** + * Expands environment variable placeholders in the input string. + * @param line The input string that may contain environment variable placeholders in the format ${VAR_NAME}. + * @returns The input string with environment variable placeholders replaced by their values. + */ + private expandEnvVariables(line: string): string { + return line.replace(/\${([A-Za-z0-9_]+)}/g, (_, k) => process.env[k] ?? ""); + } - if (!execs.length) { - return this.createMessageTask( - `Composite ${label} resolved to empty`, - label, - ); - } + /** + * Creates a pseudo-terminal (PTY) for the specified command. + * @param component The component to execute the command in. + * @param cmd The command to execute. + * @param wd The working directory for the command. + * @returns A CustomExecution instance for the PTY. + */ + private createPTY(component: string | undefined, cmd: string, wd: string) { + return new vscode.CustomExecution(async () => + this.terminalExtAPI.getMachineExecPTY( + component, + cmd, + this.expandEnvVariables(wd), + ), + ); + } - const components = new Set(execs.map((e) => e.component ?? "")); - const isMultiComponent = components.size > 1; - const parallel = !!command.composite.parallel; - - // Multi-component → sequential execution of commands - if (isMultiComponent) { - return this.createTask( - { type: "devfile", command: "[multi-component composite]" }, - label, - new vscode.CustomExecution(async () => { - const runExec = async (e: ResolvedExec) => { - const cmd = this.buildInitialVariables(e.env) + e.commandLine; - - this.channel.appendLine( - `[composite:${label}] → component=${e.component ?? "default"} cmd=${cmd}`, - ); - - return this.terminalExtAPI.getMachineExecPTY( - e.component, - cmd, - this.expandEnvVariables(e.workingDir), - ); - }; - - if (parallel) { - this.channel.appendLine( - `Composite ${label} running in PARALLEL mode`, - ); - - // run in parallel across components - await Promise.all(execs.map(runExec)); - } else { - this.channel.appendLine( - `Composite ${label} running in SEQUENTIAL mode`, - ); - - // run sequentially across components - for (const e of execs) { - await runExec(e); - } - } - - // final completion message PTY (shown in VS Code task terminal) - return this.terminalExtAPI.getMachineExecPTY( - undefined, - `echo "Composite ${label} execution completed (${parallel ? "parallel" : "sequential"})"`, - this.expandEnvVariables("${PROJECT_SOURCE}"), - ); - }), - ); - } + /** + * Creates a simple echo task that outputs a message to the terminal, + * used for cases where a composite command resolves to an empty set of executable commands. + * @param message The message to output. + * @param label The label for the task. + * @returns A vscode.Task instance for the echo task. + */ + private createEchoTask(message: string, label: string): vscode.Task { + return new vscode.Task( + { type: "devfile", command: "echo", workdir: "${PROJECT_SOURCE}" }, + vscode.TaskScope.Workspace, + label, + "devfile", + this.createPTY(undefined, `echo "${message}"`, "${PROJECT_SOURCE}"), + [], + ); + } - // Single-component → join commands - const joiner = parallel ? " & " : " && "; - let compositeCmd = execs.map((e) => e.commandLine).join(joiner); - if (parallel) compositeCmd += " ; wait"; - - const primary = execs[0]; - - return this.createTask( - { - type: "devfile", - command: compositeCmd, - workdir: primary.workingDir, - component: primary.component, - }, - label, - this.createPTYExecution( - primary.component, - compositeCmd, - primary.workingDir, - ), - ); - } + /** + * Checks if a command is runnable. + * @param cmd The command to check. + * @returns True if the command is runnable, false otherwise. + */ + private isRunnable(cmd: any): boolean { + return !!cmd.exec?.commandLine || cmd.composite?.commands?.length; + } - // ------------------ UNSUPPORTED ------------------ - return this.createMessageTask( - `Unsupported command type for ${ - command?.exec?.label || command?.composite?.label || command?.id - }`, - command?.exec?.label || - command?.composite?.label || - command?.id || - "unsupported", - ); - } catch (err: any) { - this.channel.appendLine( - `Error creating task for ${ - command?.exec?.label || command?.composite?.label || command?.id - }: ${err?.message ?? String(err)}`, - ); - return; - } + /** + * Checks if a command is a root command, meaning it is not imported from another Devfile or is imported with "parent" scope. + * @param cmd The command to check. + * @returns True if the command is a root command, false otherwise. + */ + private isRootCommand(cmd: any): boolean { + const importedBy = (cmd.attributes as any)?.[ + "controller.devfile.io/imported-by" + ]; + return ( + !cmd.attributes || importedBy === undefined || importedBy === "parent" + ); } } diff --git a/code/extensions/che-commands/tests/taskProvider.test.ts b/code/extensions/che-commands/tests/taskProvider.test.ts index a15ba65e202..90a528e13e4 100644 --- a/code/extensions/che-commands/tests/taskProvider.test.ts +++ b/code/extensions/che-commands/tests/taskProvider.test.ts @@ -16,350 +16,461 @@ import * as vscode from "vscode"; function createProvider(devfile: any, terminal?: MockTerminalAPI) { return new DevfileTaskProvider( - vscode.window.createOutputChannel("test"), + vscode.window.createOutputChannel("devfile-task-tests"), new MockCheAPI(devfile), terminal ?? new MockTerminalAPI(), ); } +async function provide(devfile: any, term?: MockTerminalAPI) { + return createProvider(devfile, term).provideTasks(); +} + +async function runFirst(tasks: vscode.Task[]) { + await (tasks[0].execution as any).callback(); +} + +async function runByName(tasks: vscode.Task[], name: string) { + const task = tasks.find((t) => t.name === name)!; + await (task.execution as any).callback(); +} + describe("Exec command normalization", () => { - test("removes trailing logical AND operators from single-line commands", async () => { + test.each([ + ["npm run build &&", "npm run build"], + ["mvn clean &&", "mvn clean"], + ])("removes dangling trailing operators — %s", async (input, expected) => { const term = new MockTerminalAPI(); + const tasks = await provide( + { commands: [{ id: "build", exec: { commandLine: input } }] }, + term, + ); + await runFirst(tasks!); + expect(term.calls[0].command).toBe(expected); + }); - const tasks = await createProvider( + test("joins fragmented command arrays safely", async () => { + const term = new MockTerminalAPI(); + const tasks = await provide( { - commands: [{ id: "build", exec: { commandLine: "npm run build &&" } }], + commands: [ + { + id: "compile", + exec: { commandLine: ["mvn clean &&", "", "mvn install &&"] }, + }, + ], }, term, - ).provideTasks(); - - await (tasks![0].execution as any).callback(); + ); - expect(term.calls[0].command).toBe("npm run build"); + await runFirst(tasks!); + expect(term.calls[0].command).toBe("mvn clean && mvn install"); }); - test("joins multiline YAML command arrays into a safe && chain", async () => { + test("drops operator-only array fragments", async () => { const term = new MockTerminalAPI(); - - const tasks = await createProvider( + const tasks = await provide( { commands: [ { id: "compile", - exec: { commandLine: ["mvn clean &&", "", "mvn install &&"] }, + exec: { commandLine: ["mvn clean &&", "||", "mvn install &&"] }, }, ], }, term, - ).provideTasks(); - - await (tasks![0].execution as any).callback(); + ); + await runFirst(tasks!); expect(term.calls[0].command).toBe("mvn clean && mvn install"); }); - test("preserves semicolon-chained shell scripts without injecting &&", async () => { - const term = new MockTerminalAPI(); + test.each(["echo A; echo B", "ps aux | grep node", "run \\\n next"])( + "preserves valid shell constructs — %s", + async (cmd) => { + const term = new MockTerminalAPI(); + const tasks = await provide( + { commands: [{ id: "shell", exec: { commandLine: cmd } }] }, + term, + ); + await runFirst(tasks!); + expect(term.calls[0].command).toContain(cmd.split(" ")[0]); + }, + ); +}); - const tasks = await createProvider( +describe("Exec task runtime behavior", () => { + test("prepends validated environment exports", async () => { + const term = new MockTerminalAPI(); + const tasks = await provide( { - commands: [{ id: "script", exec: { commandLine: "echo A; echo B" } }], + commands: [ + { + id: "env", + exec: { + commandLine: "echo hello", + env: [{ name: "FOO", value: 'bar"baz' }], + }, + }, + ], }, term, - ).provideTasks(); - - await (tasks![0].execution as any).callback(); + ); - expect(term.calls[0].command).toContain(";"); + await runFirst(tasks!); + expect(term.calls[0].command).toContain(`export FOO="bar\\"baz";`); }); - test("preserves pipe operators in shell commands", async () => { + test("ignores invalid environment variable entries", async () => { const term = new MockTerminalAPI(); - - const tasks = await createProvider( + const tasks = await provide( { - commands: [{ id: "pipe", exec: { commandLine: "ps aux | grep node" } }], + commands: [ + { + id: "env", + exec: { commandLine: "echo hi", env: [{ name: "" }, {} as any] }, + }, + ], }, term, - ).provideTasks(); - - await (tasks![0].execution as any).callback(); + ); - expect(term.calls[0].command).toContain("|"); + await runFirst(tasks!); + expect(term.calls[0].command).toBe("echo hi"); }); +}); - test("preserves line-continuation scripts using backslashes", async () => { +describe("Composite execution behavior", () => { + test("runs sequential steps across components", async () => { const term = new MockTerminalAPI(); - const tasks = await createProvider( + const tasks = await provide( { - commands: [{ id: "debug", exec: { commandLine: "run \\\n next" } }], + commands: [ + { id: "a", exec: { component: "c1", commandLine: "echo 1" } }, + { id: "b", exec: { component: "c2", commandLine: "echo 2" } }, + { id: "combo", composite: { commands: ["a", "b"] } }, + ], }, term, - ).provideTasks(); - - await (tasks![0].execution as any).callback(); + ); - expect(term.calls[0].command).toContain("\\"); + await runByName(tasks!, "combo"); + expect(term.calls.map((c) => c.component)).toEqual(["c1", "c2"]); }); -}); -describe("Provider command filtering", () => { - test("excludes commands imported as child devfile fragments", async () => { - const tasks = await createProvider({ - commands: [ - { - id: "child", - exec: { commandLine: "echo" }, - attributes: { "controller.devfile.io/imported-by": "child" }, - }, - ], - }).provideTasks(); + test("flattens same-component sequential composites", async () => { + const term = new MockTerminalAPI(); - expect(tasks).toHaveLength(0); - }); + const tasks = await provide( + { + commands: [ + { id: "a", exec: { component: "py", commandLine: "A &&" } }, + { id: "b", exec: { component: "py", commandLine: "B &&" } }, + { id: "combo", composite: { commands: ["a", "b"] } }, + ], + }, + term, + ); - test("returns no tasks when devfile contains no runnable commands", async () => { - const tasks = await createProvider({ commands: [] }).provideTasks(); - expect(tasks).toEqual([]); + await runByName(tasks!, "combo"); + expect(term.calls[0].command).toBe("A && B"); }); -}); -describe("Environment variable handling", () => { - test("injects exec environment variables with proper escaping", async () => { + test("flattens same-component parallel composites", async () => { const term = new MockTerminalAPI(); - const tasks = await createProvider( + const tasks = await provide( { commands: [ - { - id: "env", - exec: { - commandLine: "echo hi", - env: [{ name: "A", value: 'x"y' }], - }, - }, + { id: "a", exec: { component: "py", commandLine: "A" } }, + { id: "b", exec: { component: "py", commandLine: "B" } }, + { id: "combo", composite: { parallel: true, commands: ["a", "b"] } }, ], }, term, - ).provideTasks(); + ); - await (tasks![0].execution as any).callback(); + await runByName(tasks!, "combo"); + expect(term.calls[0].command).toMatch(/(A.*&.*B|B.*&.*A).*wait\s*$/); + }); +}); - expect(term.calls[0].command).toContain(`export A="x\\"y"`); +describe("Task naming and resolution contract", () => { + test("prefers exec label over id", async () => { + const tasks = await provide({ + commands: [ + { id: "x", exec: { label: "Nice Name", commandLine: "echo" } }, + ], + }); + expect(tasks![0].name).toBe("Nice Name"); }); - test("expands working directory environment placeholders", async () => { - process.env.TEST_DIR = "/tmp/demo"; + test("resolveTask returns same task instance", async () => { + const provider = createProvider({ commands: [] }); - const term = new MockTerminalAPI(); + const fakeExec: any = { + callback: async () => ({ open() {}, close() {}, onDidWrite() {} }), + }; + + const task = new vscode.Task( + { type: "devfile" }, + vscode.TaskScope.Workspace, + "sample", + "devfile", + fakeExec, + ); + + expect(await provider.resolveTask(task)).toBe(task); + }); +}); - const tasks = await createProvider( +describe("Cross-component composite command execution", () => { + const devfile = { + commands: [ { - commands: [ - { - id: "wd", - exec: { - commandLine: "echo", - workingDir: "${TEST_DIR}", - }, - }, - ], + id: "signal-backend", + exec: { + component: "backend", + commandLine: "python demo.py component_signal --component backend", + }, }, - term, - ).provideTasks(); + { + id: "signal-frontend", + exec: { + component: "frontend", + commandLine: "python demo.py component_signal --component frontend", + }, + }, + { + id: "component-seq-demo", + composite: { + commands: ["signal-backend", "signal-frontend"], + parallel: false, + }, + }, + { + id: "component-parallel-demo", + composite: { + commands: ["signal-backend", "signal-frontend"], + parallel: true, + }, + }, + ], + }; + + test("executes sequential composite across components in declared order", async () => { + const term = new MockTerminalAPI({ debug: false }); + const tasks = await provide(devfile, term); + + const names = tasks!.map((t) => t.name); + expect(names).toContain("component-seq-demo"); + expect(names).toContain("component-parallel-demo"); + expect(names).toContain("signal-backend"); + expect(names).toContain("signal-frontend"); + + const task = tasks!.find((t) => t.name === "component-seq-demo")!; + expect(task).toBeDefined(); + + const pty = await (task.execution as any).callback(); + + expect(term.calls.length).toBe(2); + expect(term.calls[0].component).toBe("backend"); + expect(term.calls[1].component).toBe("frontend"); + + expect(term.calls[0].command).toBe( + "python demo.py component_signal --component backend", + ); - await (tasks![0].execution as any).callback(); + expect(term.calls[1].command).toBe( + "python demo.py component_signal --component frontend", + ); + + const callByComponent = Object.fromEntries( + term.calls.map((c) => [c.component, c.command]), + ); - expect(term.calls[0].cwd).toBe("/tmp/demo"); + expect(callByComponent.backend).toContain("--component backend"); + expect(callByComponent.frontend).toContain("--component frontend"); + expect(callByComponent.backend).not.toContain("--component frontend"); + expect(callByComponent.frontend).not.toContain("--component backend"); + expect(term.calls.every((c) => !c.command.includes(" && "))).toBe(true); + expect(term.calls.every((c) => !c.command.includes(" & "))).toBe(true); + expect(term.calls.every((c) => !c.command.includes("wait"))).toBe(true); + expect(pty).toBeDefined(); + expect(term.calls.at(-1)!.component).toBe("frontend"); + }); + + test("executes parallel composite across components", async () => { + const term = new MockTerminalAPI({ debug: false }); + const tasks = await provide(devfile, term); + + const task = tasks!.find((t) => t.name === "component-parallel-demo")!; + expect(task).toBeDefined(); + + const pty = await (task.execution as any).callback(); + + expect(term.calls.length).toBe(2); + const components = term.calls.map((c) => c.component).sort(); + expect(components).toEqual(["backend", "frontend"]); + + const commands = term.calls.map((c) => c.command).sort(); + expect(commands).toEqual([ + "python demo.py component_signal --component backend", + "python demo.py component_signal --component frontend", + ]); + + for (const c of term.calls) { + if (c.component === "backend") { + expect(c.command).toContain("--component backend"); + expect(c.command).not.toContain("--component frontend"); + } + + if (c.component === "frontend") { + expect(c.command).toContain("--component frontend"); + expect(c.command).not.toContain("--component backend"); + } + } + + expect(term.calls.every((c) => !c.command.includes(" && "))).toBe(true); + expect(term.calls.every((c) => !c.command.includes("wait"))).toBe(true); + expect(pty).toBeDefined(); }); }); -describe("Composite validation and safety", () => { - test("rejects composites with cyclic command references", async () => { - const tasks = await createProvider({ +describe("Additional coverage", () => { + test("includes commands explicitly imported with parent scope", async () => { + const tasks = await provide({ + commands: [ + { + id: "parent-cmd", + exec: { commandLine: "echo ok" }, + attributes: { "controller.devfile.io/imported-by": "parent" }, + }, + ], + }); + + expect(tasks).toHaveLength(1); + expect(tasks![0].name).toBe("parent-cmd"); + }); + + test("filters internal ssh agent helper commands by id pattern", async () => { + const tasks = await provide({ commands: [ - { id: "a", composite: { commands: ["b"] } }, - { id: "b", composite: { commands: ["a"] } }, + { + id: "init-ssh-agent-command-42", + exec: { commandLine: "echo should-not-run" }, + }, ], - }).provideTasks(); + }); expect(tasks).toHaveLength(0); }); -}); -describe("Composite execution across multiple components", () => { - test("runs sequential composite commands in their respective components", async () => { - const term = new MockTerminalAPI( {debug: false} ); //true to see PTY logs + test("sanitizeCommand leaves already clean commands unchanged", async () => { + const term = new MockTerminalAPI(); - const tasks = await createProvider( + const tasks = await provide( { - commands: [ - { id: "ubi8", exec: { component: "ubi8", commandLine: "echo el8" } }, - { id: "ubi9", exec: { component: "ubi9", commandLine: "echo el9" } }, - { - id: "combo", - composite: { parallel: false, commands: ["ubi8", "ubi9"] }, - }, - ], + commands: [{ id: "clean", exec: { commandLine: "npm run build" } }], }, term, - ).provideTasks(); - - await (tasks!.find((t) => t.name === "combo")!.execution as any).callback(); + ); - expect(term.calls[0].component).toBe("ubi8"); - expect(term.calls[1].component).toBe("ubi9"); - expect(term.calls[0].output).toBe("el8"); - expect(term.calls[1].output).toBe("el9"); + await runFirst(tasks!); + expect(term.calls[0].command).toBe("npm run build"); }); - test("runs parallel composite commands in their respective components", async () => { - const term = new MockTerminalAPI({ debug: false }); //true to see PTY logs + test("normalizes mixed noisy command array with blanks and operators", async () => { + const term = new MockTerminalAPI(); - const tasks = await createProvider( + const tasks = await provide( { commands: [ - { id: "ubi8", exec: { component: "ubi8", commandLine: "echo el8" } }, - { id: "ubi9", exec: { component: "ubi9", commandLine: "echo el9" } }, { - id: "combo", - composite: { parallel: true, commands: ["ubi8", "ubi9"] }, + id: "noisy", + exec: { + commandLine: ["cmd &&", "", "||", "next &&", " "], + }, }, ], }, term, - ).provideTasks(); - - await (tasks!.find((t) => t.name === "combo")!.execution as any).callback(); + ); - const components = term.calls - .slice(0, 2) - .map((c) => c.component) - .sort(); - expect(components).toEqual(["ubi8", "ubi9"]); + await runFirst(tasks!); + expect(term.calls[0].command).toBe("cmd && next"); }); - test("single-command composite does not emit completion message", async () => { + test("composite resolves empty when referenced command has no exec or composite", async () => { const term = new MockTerminalAPI(); - const tasks = await createProvider( + const tasks = await provide( { commands: [ - { id: "a", exec: { commandLine: "echo A" } }, - { id: "combo", composite: { commands: ["a"] } }, + { id: "noop" }, + { id: "combo", composite: { commands: ["noop"] } }, ], }, term, - ).provideTasks(); - - await (tasks!.find((t) => t.name === "combo")!.execution as any).callback(); - - expect( - term.calls.some((c) => c.command.includes("execution completed")), - ).toBe(false); + ); - expect(term.calls.length).toBe(1); - expect(term.calls[0].command).toContain("echo A"); + await runFirst(tasks!); + expect(term.calls[0].command).toContain("resolved empty"); }); -}); -describe("Composite flattening within a single component", () => { - test("flattens sequential composites into a single && command chain", async () => { + test("composite step env variables are applied during flatten execution", async () => { const term = new MockTerminalAPI(); - const tasks = await createProvider( + const tasks = await provide( { commands: [ - { id: "a", exec: { component: "py", commandLine: "A" } }, - { id: "b", exec: { component: "py", commandLine: "B" } }, - { id: "combo", composite: { parallel: false, commands: ["a", "b"] } }, + { + id: "a", + exec: { + component: "c", + commandLine: "echo A", + env: [{ name: "X", value: "1" }], + }, + }, + { + id: "b", + exec: { + component: "c", + commandLine: "echo B", + }, + }, + { + id: "combo", + composite: { commands: ["a", "b"] }, + }, ], }, term, - ).provideTasks(); + ); - await (tasks!.find((t) => t.name === "combo")!.execution as any).callback(); + await runByName(tasks!, "combo"); - expect(term.calls.length).toBe(1); - expect(term.calls[0].command).toBe("A && B"); + expect(term.calls[0].command).toContain('export X="1"'); }); - test("flattens parallel composites into a backgrounded command chain with wait", async () => { + test("nested composite with parallel mode flattens correctly in same component", async () => { const term = new MockTerminalAPI(); - const tasks = await createProvider( + const tasks = await provide( { commands: [ - { id: "a", exec: { component: "py", commandLine: "A" } }, + { id: "a", exec: { component: "py", commandLine: "A &&" } }, { id: "b", exec: { component: "py", commandLine: "B" } }, - { id: "combo", composite: { parallel: true, commands: ["a", "b"] } }, + { id: "inner", composite: { commands: ["a", "b"], parallel: true } }, + { id: "outer", composite: { commands: ["inner"] } }, ], }, term, - ).provideTasks(); + ); - await (tasks!.find((t) => t.name === "combo")!.execution as any).callback(); + await runByName(tasks!, "outer"); expect(term.calls[0].command).toContain("&"); - expect(term.calls[0].command).toContain("wait"); - }); -}); - -describe("Task naming resolution", () => { - test("uses exec label as the VS Code task name when provided", async () => { - const tasks = await createProvider({ - commands: [ - { id: "a", exec: { label: "Build Task", commandLine: "echo" } }, - ], - }).provideTasks(); - - expect(tasks![0].name).toBe("Build Task"); - }); - - test("uses composite label as the VS Code task name when provided", async () => { - const tasks = await createProvider({ - commands: [ - { id: "a", exec: { commandLine: "echo" } }, - { id: "b", composite: { label: "Composite Task", commands: ["a"] } }, - ], - }).provideTasks(); - - expect(tasks!.some((t) => t.name === "Composite Task")).toBe(true); - }); -}); - -describe("Fallback behavior", () => { - test("creates a message task for unsupported command definitions", async () => { - const tasks = await createProvider({ - commands: [{ id: "unsupported" }], - }).provideTasks(); - - expect(tasks).toHaveLength(0); - }); -}); - -describe("Task resolution contract", () => { - test("resolveTask returns the provided task unchanged", async () => { - const provider = createProvider({ commands: [] }); - - const fakeExec: any = { - callback: async () => ({ - open() {}, - close() {}, - onDidWrite: () => {}, - }), - }; - - const task = new vscode.Task( - { type: "devfile" }, - vscode.TaskScope.Workspace, - "sample", - "devfile", - fakeExec, - ); - - const resolved = await provider.resolveTask(task); - expect(resolved).toBe(task); }); }); From 81a4ced2be494181575022e9fe9d5f0ca5a4be42 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Tue, 10 Feb 2026 18:49:24 +0530 Subject: [PATCH 09/25] added writeEmitter --- .../che-commands/src/taskProvider.ts | 79 +++++++++++------ .../che-commands/tests/__mocks__/vscode.ts | 36 +++++--- code/extensions/che-commands/tests/mocks.ts | 72 ++++++++++++---- .../che-commands/tests/taskProvider.test.ts | 86 +++++++------------ 4 files changed, 165 insertions(+), 108 deletions(-) diff --git a/code/extensions/che-commands/src/taskProvider.ts b/code/extensions/che-commands/src/taskProvider.ts index e445cb378c6..74634c383d2 100644 --- a/code/extensions/che-commands/src/taskProvider.ts +++ b/code/extensions/che-commands/src/taskProvider.ts @@ -218,32 +218,61 @@ export class DevfileTaskProvider implements vscode.TaskProvider { } const execution = new vscode.CustomExecution(async () => { - let lastPty: vscode.Pseudoterminal | undefined; - - const runExec = async (e: ResolvedExec) => { - const cmd = this.sanitizeCommand( - this.buildEnvPrefix(e.env) + e.commandLine, - ); - - lastPty = await this.terminalExtAPI.getMachineExecPTY( - e.component, - cmd, - this.expandEnvVariables(e.workingDir), - ); - - return lastPty; + const writeEmitter = new vscode.EventEmitter(); + const closeEmitter = new vscode.EventEmitter(); + + let started = false; + + const aggregator: vscode.Pseudoterminal = { + onDidWrite: writeEmitter.event, + onDidClose: closeEmitter.event, + + open: async () => { + if (started) return; + started = true; + + const runExec = async (e: ResolvedExec) => { + const cmd = this.sanitizeCommand( + this.buildEnvPrefix(e.env) + e.commandLine, + ); + + this.channel.appendLine( + `[composite:${label}] → ${e.component ?? "default"} → ${cmd}`, + ); + + const pty = await this.terminalExtAPI.getMachineExecPTY( + e.component, + cmd, + this.expandEnvVariables(e.workingDir), + ); + + if ((pty as any)?.output) { + writeEmitter.fire((pty as any).output + "\r\n"); + } + }; + + try { + if (parallel) { + await Promise.all(execs.map(runExec)); + } else { + for (const e of execs) { + await runExec(e); + } + } + + closeEmitter.fire(0); + } catch (err) { + this.channel.appendLine( + `Composite ${label} failed: ${String(err)}`, + ); + closeEmitter.fire(1); + } + }, + + close: () => {}, + handleInput: () => {}, }; - - if (parallel) { - const ptys = await Promise.all(execs.map(runExec)); - lastPty = ptys[ptys.length - 1]; - } else { - for (const e of execs) { - lastPty = await runExec(e); - } - } - - return lastPty!; + return aggregator; }); const first = execs[0]; diff --git a/code/extensions/che-commands/tests/__mocks__/vscode.ts b/code/extensions/che-commands/tests/__mocks__/vscode.ts index 2d4195b6645..32f9792041d 100644 --- a/code/extensions/che-commands/tests/__mocks__/vscode.ts +++ b/code/extensions/che-commands/tests/__mocks__/vscode.ts @@ -10,15 +10,25 @@ /* eslint-disable header/header */ -export enum TaskScope { - Workspace = 1, +export class EventEmitter { + private listeners: Array<(e: T) => any> = []; + + event = (listener: (e: T) => any) => { + this.listeners.push(listener); + return { dispose: () => {} }; + }; + + fire(data: T) { + for (const l of this.listeners) l(data); + } + + dispose() { + this.listeners = []; + } } export class CustomExecution { - callback: () => Promise; - constructor(cb: () => Promise) { - this.callback = cb; - } + constructor(public callback: any) {} } export class Task { @@ -28,12 +38,18 @@ export class Task { public name: string, public source: string, public execution: any, - public problemMatchers: any[] + public problemMatchers?: any[], ) {} } +export const TaskScope = { + Workspace: 1, +}; + export const window = { - createOutputChannel: jest.fn(() => ({ - appendLine: jest.fn(), - })), + createOutputChannel: () => ({ + appendLine: () => {}, + append: () => {}, + show: () => {}, + }), }; diff --git a/code/extensions/che-commands/tests/mocks.ts b/code/extensions/che-commands/tests/mocks.ts index b8a1cfca0ab..c2ab76e6efb 100644 --- a/code/extensions/che-commands/tests/mocks.ts +++ b/code/extensions/che-commands/tests/mocks.ts @@ -11,9 +11,42 @@ /* eslint-disable header/header */ type MockTerminalOptions = { - debug?: boolean; + debug?: boolean; }; +type WriteListener = (data: string) => void; +type CloseListener = (code?: number) => void; + +class MockPty { + private writeListeners: WriteListener[] = []; + private closeListeners: CloseListener[] = []; + + constructor(private output: string) {} + + onDidWrite(listener: WriteListener) { + this.writeListeners.push(listener); + } + + onDidClose(listener: CloseListener) { + this.closeListeners.push(listener); + } + + open() { + if (this.output) { + for (const l of this.writeListeners) { + l(this.output + "\r\n"); + } + } + } + + close() { + for (const l of this.closeListeners) { + l(0); + } + } + + handleInput() {} +} export class MockTerminalAPI { private debug: boolean; @@ -34,37 +67,40 @@ export class MockTerminalAPI { command: string, cwd: string, ) { - // simulate output from echo commands - const output = this.simulateOutput(command); + const output = this.simulateOutput(component, command); const record = { component, command, cwd, output }; this.calls.push(record); - // ✅ print during test run if (this.debug) { console.log("\n[PTY]"); console.log(" component:", component ?? "default"); console.log(" cwd:", cwd); console.log(" command:", command); - if (output) { - console.log(" output:", output); - } + if (output) console.log(" output:", output); } - return { - open: () => {}, - close: () => {}, - onDidWrite: () => {}, - onDidClose: () => {}, - handleInput: () => {}, - }; + + return new MockPty(output); } - private simulateOutput(command: string): string { - // simple echo simulation + private simulateOutput( + component: string | undefined, + command: string, + ): string { const m = command.match(/echo\s+(.+)/); - if (!m) return ""; + if (m) return m[1].replace(/^"|"$/g, ""); + + // devfile platform example simulation + if (command.includes("PLATFORM_ID")) { + if (component === "ubi8-tools" || component === "backend") { + return "platform:el8"; + } + if (component === "ubi9-tools" || component === "frontend") { + return "platform:el9"; + } + } - return m[1].replace(/^"|"$/g, ""); + return ""; } } diff --git a/code/extensions/che-commands/tests/taskProvider.test.ts b/code/extensions/che-commands/tests/taskProvider.test.ts index 90a528e13e4..f7b0c2d348b 100644 --- a/code/extensions/che-commands/tests/taskProvider.test.ts +++ b/code/extensions/che-commands/tests/taskProvider.test.ts @@ -26,13 +26,24 @@ async function provide(devfile: any, term?: MockTerminalAPI) { return createProvider(devfile, term).provideTasks(); } -async function runFirst(tasks: vscode.Task[]) { - await (tasks[0].execution as any).callback(); +async function runTask(task: vscode.Task) { + const pty = await (task.execution as any).callback(); + + if (pty && typeof pty.open === "function") { + await pty.open(); + } + + return pty; } async function runByName(tasks: vscode.Task[], name: string) { const task = tasks.find((t) => t.name === name)!; - await (task.execution as any).callback(); + return runTask(task); +} + + +async function runFirst(tasks: vscode.Task[]) { + return runTask(tasks[0]); } describe("Exec command normalization", () => { @@ -263,40 +274,24 @@ describe("Cross-component composite command execution", () => { const term = new MockTerminalAPI({ debug: false }); const tasks = await provide(devfile, term); - const names = tasks!.map((t) => t.name); - expect(names).toContain("component-seq-demo"); - expect(names).toContain("component-parallel-demo"); - expect(names).toContain("signal-backend"); - expect(names).toContain("signal-frontend"); + expect(tasks!.map(t => t.name).sort()).toEqual([ + "component-parallel-demo", + "component-seq-demo", + "signal-backend", + "signal-frontend", + ]); - const task = tasks!.find((t) => t.name === "component-seq-demo")!; - expect(task).toBeDefined(); + const task = tasks!.find(t => t.name === "component-seq-demo")!; + const pty = await runTask(task); - const pty = await (task.execution as any).callback(); + expect(term.calls).toHaveLength(2); - expect(term.calls.length).toBe(2); expect(term.calls[0].component).toBe("backend"); expect(term.calls[1].component).toBe("frontend"); - expect(term.calls[0].command).toBe( - "python demo.py component_signal --component backend", - ); - - expect(term.calls[1].command).toBe( - "python demo.py component_signal --component frontend", - ); - - const callByComponent = Object.fromEntries( - term.calls.map((c) => [c.component, c.command]), - ); + expect(term.calls[0].command).toContain("--component backend"); + expect(term.calls[1].command).toContain("--component frontend"); - expect(callByComponent.backend).toContain("--component backend"); - expect(callByComponent.frontend).toContain("--component frontend"); - expect(callByComponent.backend).not.toContain("--component frontend"); - expect(callByComponent.frontend).not.toContain("--component backend"); - expect(term.calls.every((c) => !c.command.includes(" && "))).toBe(true); - expect(term.calls.every((c) => !c.command.includes(" & "))).toBe(true); - expect(term.calls.every((c) => !c.command.includes("wait"))).toBe(true); expect(pty).toBeDefined(); expect(term.calls.at(-1)!.component).toBe("frontend"); }); @@ -305,35 +300,16 @@ describe("Cross-component composite command execution", () => { const term = new MockTerminalAPI({ debug: false }); const tasks = await provide(devfile, term); - const task = tasks!.find((t) => t.name === "component-parallel-demo")!; - expect(task).toBeDefined(); - - const pty = await (task.execution as any).callback(); + const task = tasks!.find(t => t.name === "component-parallel-demo")!; + const pty = await runTask(task); - expect(term.calls.length).toBe(2); - const components = term.calls.map((c) => c.component).sort(); - expect(components).toEqual(["backend", "frontend"]); + expect(term.calls).toHaveLength(2); - const commands = term.calls.map((c) => c.command).sort(); - expect(commands).toEqual([ - "python demo.py component_signal --component backend", - "python demo.py component_signal --component frontend", + expect(term.calls.map(c => c.component).sort()).toEqual([ + "backend", + "frontend", ]); - for (const c of term.calls) { - if (c.component === "backend") { - expect(c.command).toContain("--component backend"); - expect(c.command).not.toContain("--component frontend"); - } - - if (c.component === "frontend") { - expect(c.command).toContain("--component frontend"); - expect(c.command).not.toContain("--component backend"); - } - } - - expect(term.calls.every((c) => !c.command.includes(" && "))).toBe(true); - expect(term.calls.every((c) => !c.command.includes("wait"))).toBe(true); expect(pty).toBeDefined(); }); }); From 2ad49a5a5807aad2b5c0b2baf6f3df5deb696efa Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Tue, 10 Feb 2026 20:31:47 +0530 Subject: [PATCH 10/25] write event triggered --- code/extensions/che-commands/src/taskProvider.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/extensions/che-commands/src/taskProvider.ts b/code/extensions/che-commands/src/taskProvider.ts index 74634c383d2..90e6feb3913 100644 --- a/code/extensions/che-commands/src/taskProvider.ts +++ b/code/extensions/che-commands/src/taskProvider.ts @@ -246,9 +246,11 @@ export class DevfileTaskProvider implements vscode.TaskProvider { this.expandEnvVariables(e.workingDir), ); - if ((pty as any)?.output) { - writeEmitter.fire((pty as any).output + "\r\n"); - } + pty.onDidWrite?.((data: string) => { + writeEmitter.fire(data); + }); + + pty.open?.(); }; try { From 7d4ed5d4581f6a799e1052c6c933c4fadc592846 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Tue, 10 Feb 2026 22:28:38 +0530 Subject: [PATCH 11/25] refactoring done and added separate class for composite --- .../che-commands/src/compositeTaskBuilder.ts | 226 ++++++++ .../che-commands/src/taskProvider.ts | 510 +++--------------- .../tests/compositeTaskBuilder.test.ts | 247 +++++++++ .../che-commands/tests/taskProvider.test.ts | 407 ++++---------- 4 files changed, 646 insertions(+), 744 deletions(-) create mode 100644 code/extensions/che-commands/src/compositeTaskBuilder.ts create mode 100644 code/extensions/che-commands/tests/compositeTaskBuilder.test.ts diff --git a/code/extensions/che-commands/src/compositeTaskBuilder.ts b/code/extensions/che-commands/src/compositeTaskBuilder.ts new file mode 100644 index 00000000000..42677d44876 --- /dev/null +++ b/code/extensions/che-commands/src/compositeTaskBuilder.ts @@ -0,0 +1,226 @@ +/********************************************************************** + * Copyright (c) 2026 Red Hat, Inc. + * + * This program and the accompanying materials are made + * available under the terms of the Eclipse Public License 2.0 + * which is available at https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + ***********************************************************************/ + +/* eslint-disable header/header */ + +import * as vscode from "vscode"; +import { V1alpha2DevWorkspaceSpecTemplateCommands } from "@devfile/api"; + +interface DevfileTaskDefinition extends vscode.TaskDefinition { + command: string; + workdir?: string; + component?: string; +} + +type ResolvedExec = { + command: string; + workdir: string; + component?: string; + env?: any[]; +}; + +export class CompositeTaskBuilder { + constructor( + private channel: vscode.OutputChannel, + private terminalExtAPI: any, + ) {} + + build( + command: any, + all: V1alpha2DevWorkspaceSpecTemplateCommands[], + ): vscode.Task | undefined { + if (!this.validate(command, all)) { + this.channel.appendLine( + `Skipping composite ${command.id}: invalid graph`, + ); + return undefined; + } + + const execs = this.flatten(command, all); + if (!execs.length) { + return this.echoTask(`Composite ${command.id} resolved empty`); + } + + const parallel = !!command.composite.parallel; + const components = new Set(execs.map((e) => e.component ?? "__default__")); + + if (components.size === 1) { + return this.buildSameComponentTask(command, execs, parallel); + } + + return this.buildCrossComponentTask(command, execs, parallel); + } + + private flatten( + command: any, + all: any[], + visited = new Set(), + ): ResolvedExec[] { + const out: ResolvedExec[] = []; + + const walk = (cmd: any) => { + if (!cmd || visited.has(cmd.id)) return; + if (cmd.id) visited.add(cmd.id); + + if (cmd.exec?.commandLine) { + out.push({ + command: cmd.exec.commandLine, + workdir: cmd.exec.workingDir || "${PROJECT_SOURCE}", + component: cmd.exec.component, + env: cmd.exec.env, + }); + } + + for (const ref of cmd.composite?.commands ?? []) { + const sub = + typeof ref === "string" ? all.find((c) => c.id === ref) : ref; + if (sub) walk(sub); + } + }; + + walk(command); + return out; + } + + private buildSameComponentTask( + command: any, + execs: ResolvedExec[], + parallel: boolean, + ) { + const joiner = parallel ? " & " : " && "; + + let script = execs.map((e) => this.sanitize(e.command)).join(joiner); + + script = this.sanitize(script); + if (parallel) script += " ; wait"; + + const first = execs[0]; + + this.channel.appendLine( + `[composite:${command.id}] same-component → ${first.component ?? "default"} → ${script}`, + ); + + const kind: DevfileTaskDefinition = { + type: "devfile", + command: script, + workdir: first.workdir, + component: first.component, + }; + + return new vscode.Task( + kind, + vscode.TaskScope.Workspace, + command.composite.label || command.id, + "devfile", + new vscode.CustomExecution(() => + this.terminalExtAPI.getMachineExecPTY( + first.component, + script, + first.workdir, + ), + ), + ); + } + + private buildCrossComponentTask( + command: any, + execs: ResolvedExec[], + parallel: boolean, + ) { + const execution = new vscode.CustomExecution(async () => { + const writeEmitter = new vscode.EventEmitter(); + const closeEmitter = new vscode.EventEmitter(); + + const aggregator: vscode.Pseudoterminal = { + onDidWrite: writeEmitter.event, + onDidClose: closeEmitter.event, + + open: async () => { + const run = async (e: ResolvedExec) => { + this.channel.appendLine( + [ + `[Composite Task] ${command.id}`, + ` component: ${e.component ?? "default"}`, + ` command: ${e.command}`, + ].join("\n"), + ); + + const pty = await this.terminalExtAPI.getMachineExecPTY( + e.component, + e.command, + e.workdir, + ); + + pty.onDidWrite?.((d: string) => writeEmitter.fire(d)); + pty.open?.(); + }; + + if (parallel) { + await Promise.all(execs.map(run)); + } else { + for (const e of execs) await run(e); + } + + closeEmitter.fire(0); + }, + + close: () => {}, + handleInput: () => {}, + }; + + return aggregator; + }); + + const first = execs[0]; + + return new vscode.Task( + { + type: "devfile", + command: "[composite]", + workdir: first.workdir, + component: first.component, + }, + vscode.TaskScope.Workspace, + command.composite.label || command.id, + "devfile", + execution, + ); + } + + private sanitize(cmd: string) { + return cmd.replace(/(?:\s*(?:&&|\|\||[|;&]))+\s*$/, "").trim(); + } + + private validate(cmd: any, all: any[], seen = new Set()): boolean { + if (!cmd.composite?.commands) return true; + if (seen.has(cmd.id)) return false; + seen.add(cmd.id); + + for (const ref of cmd.composite.commands) { + const sub = typeof ref === "string" ? all.find((c) => c.id === ref) : ref; + if (!sub || !this.validate(sub, all, seen)) return false; + } + + seen.delete(cmd.id); + return true; + } + + private echoTask(msg: string) { + return new vscode.Task( + { type: "devfile", command: "echo", workdir: "${PROJECT_SOURCE}" }, + vscode.TaskScope.Workspace, + msg, + "devfile", + new vscode.CustomExecution(() => + this.terminalExtAPI.getMachineExecPTY(undefined, `echo "${msg}"`, ""), + ), + ); + } +} diff --git a/code/extensions/che-commands/src/taskProvider.ts b/code/extensions/che-commands/src/taskProvider.ts index 90e6feb3913..08ff108b675 100644 --- a/code/extensions/che-commands/src/taskProvider.ts +++ b/code/extensions/che-commands/src/taskProvider.ts @@ -1,5 +1,5 @@ /********************************************************************** - * Copyright (c) 2022-2026 Red Hat, Inc. + * Copyright (c) 2022-2023 Red Hat, Inc. * * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 @@ -10,485 +10,103 @@ /* eslint-disable header/header */ -import { - V1alpha2DevWorkspaceSpecTemplate, - V1alpha2DevWorkspaceSpecTemplateCommands, - V1alpha2DevWorkspaceSpecTemplateCommandsItemsExecEnv, -} from "@devfile/api"; -import * as vscode from "vscode"; +import { V1alpha2DevWorkspaceSpecTemplate, V1alpha2DevWorkspaceSpecTemplateCommands, V1alpha2DevWorkspaceSpecTemplateCommandsItemsExecEnv } from '@devfile/api'; +import * as vscode from 'vscode'; +import { CompositeTaskBuilder } from './compositeTaskBuilder'; -/** - * Defines the structure of a Devfile task definition. - */ interface DevfileTaskDefinition extends vscode.TaskDefinition { command: string; workdir?: string; component?: string; } -/** - * Defines the structure of a resolved execution command. - */ -type ResolvedExec = { - commandLine: string; - workingDir: string; - component?: string; - env?: Array; -}; - -/** - * Provides tasks based on Devfile commands. - */ export class DevfileTaskProvider implements vscode.TaskProvider { - constructor( - private readonly channel: vscode.OutputChannel, - private readonly cheAPI: any, - private readonly terminalExtAPI: any, - ) {} - /** - * Provides tasks from the Devfile commands. - * @returns A list of VS Code tasks generated from Devfile commands. - */ + constructor(private channel: vscode.OutputChannel, private cheAPI: any, private terminalExtAPI: any) { + } + provideTasks(): vscode.ProviderResult { return this.computeTasks(); } - /** - * Resolves a given task. - * @param task The task to resolve. - * @returns The resolved task. - */ resolveTask(task: vscode.Task): vscode.ProviderResult { return task; } - /** - * Computes the tasks from the Devfile commands. - * @returns A list of VS Code tasks generated from Devfile commands. - */ private async computeTasks(): Promise { - const commands = await this.fetchDevfileCommands(); + const devfileCommands = await this.fetchDevfileCommands(); + + const compositeBuilder = new CompositeTaskBuilder( + this.channel, + this.terminalExtAPI, + ); - return commands - .filter((cmd) => this.isRunnable(cmd)) - .filter((cmd) => this.isRootCommand(cmd)) - .filter((cmd) => !/^init-ssh-agent-command-\d+$/.test(cmd.id)) - .map((cmd) => - cmd.composite?.commands?.length - ? this.handleCompositeCommand(cmd, commands) - : this.createExecTaskV1(cmd), - ) + const cheTasks: vscode.Task[] = devfileCommands! + .filter(command => { + const importedByAttribute = (command.attributes as any)?.['controller.devfile.io/imported-by']; + return !command.attributes || importedByAttribute === undefined || importedByAttribute === 'parent'; + }) + .filter(command => !/^init-ssh-agent-command-\d+$/.test(command.id)) + .map((command) => { + if (command.composite?.commands?.length) { + return compositeBuilder.build(command, devfileCommands); + } + + if (command.exec?.commandLine) { + return this.createCheTask(command.exec?.label || command.id, command.exec?.commandLine!, command.exec?.workingDir || '${PROJECT_SOURCE}', command.exec?.component!, command.exec?.env) + } + + return undefined; + }) .filter((t): t is vscode.Task => !!t); + + return cheTasks; } - /** - * Fetches the Devfile commands from the Che API. - * @returns A promise that resolves to an array of Devfile commands. - */ - private async fetchDevfileCommands(): Promise< - V1alpha2DevWorkspaceSpecTemplateCommands[] - > { + private async fetchDevfileCommands(): Promise { const devfileService = this.cheAPI.getDevfileService(); - const devfile: V1alpha2DevWorkspaceSpecTemplate = - await devfileService.get(); - - if (devfile.commands?.length) { - this.channel.appendLine( - `Detected ${devfile.commands.length} Command(s) in the flattened Devfile.`, - ); + const devfile: V1alpha2DevWorkspaceSpecTemplate = await devfileService.get(); + if (devfile.commands && devfile.commands.length) { + this.channel.appendLine(`Detected ${devfile.commands.length} Command(s) in the flattened Devfile.`); return devfile.commands; } return []; } - /** - * Normalizes the command line by joining multiple commands with '&&' and sanitizing each command. - * @param cmd The command line to normalize, which can be a string or an array of strings. - * @returns A normalized command line string where multiple commands are joined with '&&', and each command is sanitized. - */ - private normalizeExecCommandLine(cmd: string | string[]): string { - const parts = Array.isArray(cmd) ? cmd : [cmd]; - - return parts - .map((s) => this.sanitizeCommand(String(s))) - .filter(Boolean) - .filter((s) => !this.isOperatorOnlyFragment(s)) - .join(" && "); - } - - /** - * Creates a VS Code task for a Devfile exec command (Version-1). - * @param command The Devfile command to create a task for. - * @returns The created VS Code task. - */ - private createExecTaskV1(command: any): vscode.Task { - const label = this.getLabel(command); - - const kind: DevfileTaskDefinition = { - type: "devfile", - command: command.exec.commandLine, - workdir: command.exec.workingDir || "${PROJECT_SOURCE}", - component: command.exec.component, - }; - - const execution = new vscode.CustomExecution( - async (): Promise => { - const initialVariables = this.buildEnvPrefix(command.exec.env); - - const normalizedCmd = this.normalizeExecCommandLine( - command.exec.commandLine, - ); - - const finalCmd = this.sanitizeCommand(initialVariables + normalizedCmd); - - return this.terminalExtAPI.getMachineExecPTY( - command.exec.component, - finalCmd, - this.expandEnvVariables(kind.workdir!), - ); - }, - ); - - return new vscode.Task( - kind, - vscode.TaskScope.Workspace, - label, - "devfile", - execution, - [], - ); - } - - /** - * Handles a composite command by creating a VS Code task for it. - * @param command The composite command to handle. - * @param all The list of all Devfile commands. - * @returns The created VS Code task, or undefined if the command is invalid. - */ - private handleCompositeCommand( - command: any, - all: V1alpha2DevWorkspaceSpecTemplateCommands[], - ): vscode.Task | undefined { - const label = this.getLabel(command); - - if (!this.validateComposite(command, all)) { - this.channel.appendLine(`Skipping composite ${label}: invalid graph`); - return undefined; - } - - const execs = this.flattenCompositeExecs(command, all); - if (!execs.length) { - return this.createEchoTask(`Composite ${label} resolved empty`, label); - } - - const parallel = !!command.composite.parallel; - - const components = new Set(execs.map((e) => e.component ?? "__default__")); - - if (components.size === 1) { - const joiner = parallel ? " & " : " && "; - - let script = execs - .map((e) => - this.sanitizeCommand(this.buildEnvPrefix(e.env) + e.commandLine), - ) - .join(joiner); - - script = this.sanitizeCommand(script); - if (parallel) script += " ; wait"; - - const primary = execs[0]; - - const kind: DevfileTaskDefinition = { - type: "devfile", - command: script, - workdir: primary.workingDir, - component: primary.component, - }; - - return new vscode.Task( - kind, - vscode.TaskScope.Workspace, - label, - "devfile", - this.createPTY(primary.component, script, primary.workingDir), - [], - ); - } - - const execution = new vscode.CustomExecution(async () => { - const writeEmitter = new vscode.EventEmitter(); - const closeEmitter = new vscode.EventEmitter(); - - let started = false; - - const aggregator: vscode.Pseudoterminal = { - onDidWrite: writeEmitter.event, - onDidClose: closeEmitter.event, - - open: async () => { - if (started) return; - started = true; - - const runExec = async (e: ResolvedExec) => { - const cmd = this.sanitizeCommand( - this.buildEnvPrefix(e.env) + e.commandLine, - ); - - this.channel.appendLine( - `[composite:${label}] → ${e.component ?? "default"} → ${cmd}`, - ); - - const pty = await this.terminalExtAPI.getMachineExecPTY( - e.component, - cmd, - this.expandEnvVariables(e.workingDir), - ); - - pty.onDidWrite?.((data: string) => { - writeEmitter.fire(data); - }); - - pty.open?.(); - }; - - try { - if (parallel) { - await Promise.all(execs.map(runExec)); - } else { - for (const e of execs) { - await runExec(e); - } - } - - closeEmitter.fire(0); - } catch (err) { - this.channel.appendLine( - `Composite ${label} failed: ${String(err)}`, - ); - closeEmitter.fire(1); + private createCheTask(name: string, command: string, workdir: string, component: string, env?: Array): vscode.Task { + function expandEnvVariables(line: string): string { + const regex = /\${[a-zA-Z_][a-zA-Z0-9_]*}/g; + const envArray = line.match(regex); + if (envArray && envArray.length) { + for (const envName of envArray) { + const envValue = process.env[envName.slice(2, -1)]; + if (envValue) { + line = line.replace(envName, envValue); } - }, - - close: () => {}, - handleInput: () => {}, - }; - return aggregator; - }); - - const first = execs[0]; + } + } + return line; + } const kind: DevfileTaskDefinition = { - type: "devfile", - command: "[composite]", - workdir: first.workingDir, - component: first.component, + type: 'devfile', + command, + workdir, + component }; - return new vscode.Task( - kind, - vscode.TaskScope.Workspace, - label, - "devfile", - execution, - [], - ); - } - - /** - * Validates a composite command by checking for cycles and ensuring all references are resolvable. - * @param command The composite command to validate. - * @param all The list of all Devfile commands. - * @param visited A set of visited command IDs to detect cycles. - * @returns True if the composite command is valid (no cycles, all references resolvable), false otherwise. - */ - private validateComposite( - command: any, - all: V1alpha2DevWorkspaceSpecTemplateCommands[], - visited = new Set(), - ): boolean { - if (!command.composite?.commands) return true; - - if (command.id) { - if (visited.has(command.id)) return false; - visited.add(command.id); - } - - for (const ref of command.composite.commands) { - const sub = typeof ref === "string" ? all.find((c) => c.id === ref) : ref; - - if (!sub) return false; - if (!this.validateComposite(sub, all, visited)) return false; - } - - if (command.id) visited.delete(command.id); - return true; - } - - /** - * Flattens a composite command into its individual executable commands. - * @param command The composite command to flatten. - * @param all The list of all Devfile commands. - * @param visited A set of visited command IDs to avoid processing the same command multiple times. - * @returns An array of resolved executable commands. - */ - private flattenCompositeExecs( - command: any, - all: V1alpha2DevWorkspaceSpecTemplateCommands[], - visited = new Set(), - ): ResolvedExec[] { - const result: ResolvedExec[] = []; - - const walk = (cmd: any) => { - if (!cmd || visited.has(cmd.id)) return; - if (cmd.id) visited.add(cmd.id); - - if (cmd.exec?.commandLine) { - result.push({ - commandLine: cmd.exec.commandLine.toString(), - workingDir: cmd.exec.workingDir || "${PROJECT_SOURCE}", - component: cmd.exec.component, - env: cmd.exec.env, - }); + const execution = new vscode.CustomExecution(async (): Promise => { + let initialVariables = ''; + if (env) { + for (const e of env) { + let value = e.value.replace(/"/g, '\\"'); + initialVariables += `export ${e.name}="${value}"; `; + } } - for (const ref of cmd.composite?.commands ?? []) { - const sub = - typeof ref === "string" ? all.find((c) => c.id === ref) : ref; - if (sub) walk(sub); - } - }; - - walk(command); - return result; - } - - /** - * Retrieves the label for a given command, prioritizing exec label, then composite label, - * and finally falling back to the command ID. - * @param cmd The command object to retrieve the label from. - * @returns The label for the command, based on the defined priority. - */ - private getLabel(cmd: any): string { - // che#23726 — label priority - return cmd.exec?.label || cmd.composite?.label || cmd.id; - } - - /** - * Sanitizes a command string by removing trailing shell operators and trimming whitespace. - * @param cmd The command string to sanitize by removing trailing shell operators and trimming whitespace. - * @returns The sanitized command string. - */ - private sanitizeCommand(cmd: string): string { - return cmd.replace(/(?:\s*(?:&&|\|\||[|;&]))+\s*$/, "").trim(); - } - - /** - * Checks if a command fragment consists solely of shell operators (&&, ||, &, ;, |) and whitespace. - * @param fragment The command fragment to check. - * @returns True if the fragment is operator-only, false otherwise. - */ - private isOperatorOnlyFragment(fragment: string): boolean { - return /^(?:&&|\|\||[&;|])+$/.test(fragment.trim()); - } - - /** - * Validates if an environment variable entry is valid by checking if it has a non-empty name that matches the allowed pattern. - * @param entry The environment variable entry to validate, which should have a 'name' property and an optional 'value' property. - * @returns True if the environment variable entry is valid, false otherwise. - */ - private isValidEnvEntry( - entry: any, - ): entry is { name: string; value?: string } { - return ( - typeof entry?.name === "string" && - entry.name.trim().length > 0 && - /^[A-Za-z_][A-Za-z0-9_]*$/.test(entry.name) - ); - } - - /** - * Builds a prefix string for environment variable exports based on the provided environment variable definitions. - * @param env The array of environment variable definitions. - * @returns The prefix string for environment variable exports. - */ - private buildEnvPrefix( - env?: Array, - ): string { - if (!env?.length) return ""; - return env - .filter((e) => this.isValidEnvEntry(e)) - .map( - (e) => `export ${e.name}="${(e.value ?? "").replace(/"/g, '\\"')}"; `, - ) - .join(""); - } - - /** - * Expands environment variable placeholders in the input string. - * @param line The input string that may contain environment variable placeholders in the format ${VAR_NAME}. - * @returns The input string with environment variable placeholders replaced by their values. - */ - private expandEnvVariables(line: string): string { - return line.replace(/\${([A-Za-z0-9_]+)}/g, (_, k) => process.env[k] ?? ""); - } - - /** - * Creates a pseudo-terminal (PTY) for the specified command. - * @param component The component to execute the command in. - * @param cmd The command to execute. - * @param wd The working directory for the command. - * @returns A CustomExecution instance for the PTY. - */ - private createPTY(component: string | undefined, cmd: string, wd: string) { - return new vscode.CustomExecution(async () => - this.terminalExtAPI.getMachineExecPTY( - component, - cmd, - this.expandEnvVariables(wd), - ), - ); - } - - /** - * Creates a simple echo task that outputs a message to the terminal, - * used for cases where a composite command resolves to an empty set of executable commands. - * @param message The message to output. - * @param label The label for the task. - * @returns A vscode.Task instance for the echo task. - */ - private createEchoTask(message: string, label: string): vscode.Task { - return new vscode.Task( - { type: "devfile", command: "echo", workdir: "${PROJECT_SOURCE}" }, - vscode.TaskScope.Workspace, - label, - "devfile", - this.createPTY(undefined, `echo "${message}"`, "${PROJECT_SOURCE}"), - [], - ); - } - - /** - * Checks if a command is runnable. - * @param cmd The command to check. - * @returns True if the command is runnable, false otherwise. - */ - private isRunnable(cmd: any): boolean { - return !!cmd.exec?.commandLine || cmd.composite?.commands?.length; - } - - /** - * Checks if a command is a root command, meaning it is not imported from another Devfile or is imported with "parent" scope. - * @param cmd The command to check. - * @returns True if the command is a root command, false otherwise. - */ - private isRootCommand(cmd: any): boolean { - const importedBy = (cmd.attributes as any)?.[ - "controller.devfile.io/imported-by" - ]; - return ( - !cmd.attributes || importedBy === undefined || importedBy === "parent" - ); + return this.terminalExtAPI.getMachineExecPTY(component, initialVariables + command, expandEnvVariables(workdir)); + }); + const task = new vscode.Task(kind, vscode.TaskScope.Workspace, name, 'devfile', execution, []); + return task; } } diff --git a/code/extensions/che-commands/tests/compositeTaskBuilder.test.ts b/code/extensions/che-commands/tests/compositeTaskBuilder.test.ts new file mode 100644 index 00000000000..69a36ee09a3 --- /dev/null +++ b/code/extensions/che-commands/tests/compositeTaskBuilder.test.ts @@ -0,0 +1,247 @@ +/********************************************************************** + * Copyright (c) 2026 Red Hat, Inc. + * + * This program and the accompanying materials are made + * available under the terms of the Eclipse Public License 2.0 + * which is available at https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + ***********************************************************************/ + +/* eslint-disable header/header */ + +import { DevfileTaskProvider } from "../src/taskProvider"; +import { MockCheAPI, MockTerminalAPI } from "./mocks"; +import * as vscode from "vscode"; + +function createProvider(devfile: any, term?: MockTerminalAPI) { + return new DevfileTaskProvider( + vscode.window.createOutputChannel("composite-tests"), + new MockCheAPI(devfile), + term ?? new MockTerminalAPI(), + ); +} + +async function provide(devfile: any, term?: MockTerminalAPI) { + return createProvider(devfile, term).provideTasks(); +} + +async function runByName(tasks: vscode.Task[], name: string) { + const task = tasks.find((t) => t.name === name); + expect(task).toBeDefined(); + const pty = await (task!.execution as any).callback(); + if (pty?.open) { + await pty.open(); + } + return pty; +} + +describe("Composite — same component flattening", () => { + test("sequential same-component commands are flattened with &&", async () => { + const term = new MockTerminalAPI(); + + const tasks = await provide( + { + commands: [ + { id: "a", exec: { component: "py", commandLine: "A &&" } }, + { id: "b", exec: { component: "py", commandLine: "B &&" } }, + { id: "combo", composite: { commands: ["a", "b"] } }, + ], + }, + term, + ); + + await runByName(tasks!, "combo"); + + expect(term.calls).toHaveLength(1); + expect(term.calls[0].component).toBe("py"); + expect(term.calls[0].command).toBe("A && B"); + }); + + test("parallel same-component commands run in background with wait", async () => { + const term = new MockTerminalAPI(); + + const tasks = await provide( + { + commands: [ + { id: "a", exec: { component: "py", commandLine: "A" } }, + { id: "b", exec: { component: "py", commandLine: "B" } }, + { id: "combo", composite: { parallel: true, commands: ["a", "b"] } }, + ], + }, + term, + ); + + await runByName(tasks!, "combo"); + + const cmd = term.calls[0].command; + + expect(cmd).toContain("A"); + expect(cmd).toContain("B"); + expect(cmd).toContain("&"); + expect(cmd).toContain("wait"); + }); +}); + +describe("Composite — cross component execution", () => { + const devfile = { + commands: [ + { + id: "backend", + exec: { component: "backend", commandLine: "echo backend" }, + }, + { + id: "frontend", + exec: { component: "frontend", commandLine: "echo frontend" }, + }, + { + id: "seq", + composite: { commands: ["backend", "frontend"], parallel: false }, + }, + { + id: "par", + composite: { commands: ["backend", "frontend"], parallel: true }, + }, + ], + }; + + test("sequential composite preserves component order", async () => { + const term = new MockTerminalAPI(); + const tasks = await provide(devfile, term); + + await runByName(tasks!, "seq"); + + expect(term.calls.map((c) => c.component)).toEqual(["backend", "frontend"]); + }); + + test("parallel composite executes all components", async () => { + const term = new MockTerminalAPI(); + const tasks = await provide(devfile, term); + + await runByName(tasks!, "par"); + + expect(term.calls).toHaveLength(2); + + const comps = term.calls.map((c) => c.component).sort(); + expect(comps).toEqual(["backend", "frontend"]); + }); +}); + +describe("Composite — nested graphs", () => { + test("nested composites flatten correctly", async () => { + const term = new MockTerminalAPI(); + + const tasks = await provide( + { + commands: [ + { id: "a", exec: { component: "py", commandLine: "A &&" } }, + { id: "b", exec: { component: "py", commandLine: "B" } }, + { id: "inner", composite: { commands: ["a", "b"] } }, + { id: "c", exec: { component: "py", commandLine: "C &&" } }, + { id: "outer", composite: { commands: ["inner", "c"] } }, + ], + }, + term, + ); + + await runByName(tasks!, "outer"); + + expect(term.calls[0].command).toBe("A && B && C"); + }); +}); + +describe("Composite — validation and safety", () => { + test("cyclic composite graph is rejected", async () => { + const tasks = await provide({ + commands: [ + { id: "a", composite: { commands: ["b"] } }, + { id: "b", composite: { commands: ["a"] } }, + ], + }); + + expect(tasks).toHaveLength(0); + }); + + test("missing referenced command is rejected", async () => { + const tasks = await provide({ + commands: [{ id: "x", composite: { commands: ["missing"] } }], + }); + + expect(tasks).toHaveLength(0); + }); + + test("composite with non-exec children is not exposed as runnable task", async () => { + const tasks = await provide({ + commands: [ + { id: "inner", composite: { commands: [] } }, + { id: "outer", composite: { commands: ["inner"] } }, + ], + }); + + // provider should not create tasks for invalid composites + expect(tasks!.some((t) => t.name === "outer")).toBe(false); + }); +}); + +describe("Composite — shell command integrity", () => { + test("composite preserves complex shell commands per step", async () => { + const term = new MockTerminalAPI(); + + const complex = `VAR=$(pgrep node) && echo $VAR && kill $VAR &>/dev/null`; + + const tasks = await provide( + { + commands: [ + { id: "a", exec: { component: "c1", commandLine: complex } }, + { id: "combo", composite: { commands: ["a"] } }, + ], + }, + term, + ); + + await runByName(tasks!, "combo"); + + expect(term.calls[0].command).toContain("pgrep"); + expect(term.calls[0].command).toContain("&>/dev/null"); + }); + + test("composite supports complex shell stop command", async () => { + const term = new MockTerminalAPI(); + + const devfile = { + commands: [ + { id: "build", exec: { component: "c", commandLine: "echo build" } }, + { + id: "stop", + exec: { + component: "c", + commandLine: `node_server_pids=$(pgrep x | tr "\\n" " ") && echo Done`, + }, + }, + { id: "combo", composite: { commands: ["build", "stop"] } }, + ], + }; + + const tasks = await provide(devfile, term); + await runByName(tasks!, "combo"); + + expect(term.calls[0].command).toContain("pgrep"); + expect(term.calls[0].command).toContain("&&"); + }); +}); + +describe("Composite — task naming", () => { + test("composite label overrides id", async () => { + const tasks = await provide({ + commands: [ + { id: "a", exec: { commandLine: "echo" } }, + { + id: "combo", + composite: { label: "Nice Composite", commands: ["a"] }, + }, + ], + }); + + expect(tasks!.some((t) => t.name === "Nice Composite")).toBe(true); + }); +}); diff --git a/code/extensions/che-commands/tests/taskProvider.test.ts b/code/extensions/che-commands/tests/taskProvider.test.ts index f7b0c2d348b..15af23b75d2 100644 --- a/code/extensions/che-commands/tests/taskProvider.test.ts +++ b/code/extensions/che-commands/tests/taskProvider.test.ts @@ -14,11 +14,11 @@ import { DevfileTaskProvider } from "../src/taskProvider"; import { MockCheAPI, MockTerminalAPI } from "./mocks"; import * as vscode from "vscode"; -function createProvider(devfile: any, terminal?: MockTerminalAPI) { +function createProvider(devfile: any, term?: MockTerminalAPI) { return new DevfileTaskProvider( - vscode.window.createOutputChannel("devfile-task-tests"), + vscode.window.createOutputChannel("exec-tests"), new MockCheAPI(devfile), - terminal ?? new MockTerminalAPI(), + term ?? new MockTerminalAPI(), ); } @@ -26,48 +26,49 @@ async function provide(devfile: any, term?: MockTerminalAPI) { return createProvider(devfile, term).provideTasks(); } -async function runTask(task: vscode.Task) { - const pty = await (task.execution as any).callback(); - - if (pty && typeof pty.open === "function") { - await pty.open(); - } - - return pty; -} - -async function runByName(tasks: vscode.Task[], name: string) { - const task = tasks.find((t) => t.name === name)!; - return runTask(task); -} - - async function runFirst(tasks: vscode.Task[]) { - return runTask(tasks[0]); + await (tasks[0].execution as any).callback(); } -describe("Exec command normalization", () => { - test.each([ - ["npm run build &&", "npm run build"], - ["mvn clean &&", "mvn clean"], - ])("removes dangling trailing operators — %s", async (input, expected) => { +describe("Exec task creation and execution — positive scenarios", () => { + test("creates task for simple exec command", async () => { const term = new MockTerminalAPI(); + const tasks = await provide( - { commands: [{ id: "build", exec: { commandLine: input } }] }, + { + commands: [{ id: "build", exec: { commandLine: "npm install" } }], + }, term, ); + + expect(tasks).toHaveLength(1); + await runFirst(tasks!); - expect(term.calls[0].command).toBe(expected); + expect(term.calls[0].command).toBe("npm install"); + }); + + test("uses exec label as task name", async () => { + const tasks = await provide({ + commands: [ + { + id: "x", + exec: { label: "Build App", commandLine: "echo ok" }, + }, + ], + }); + + expect(tasks![0].name).toBe("Build App"); }); - test("joins fragmented command arrays safely", async () => { + test("passes component to terminal execution", async () => { const term = new MockTerminalAPI(); + const tasks = await provide( { commands: [ { - id: "compile", - exec: { commandLine: ["mvn clean &&", "", "mvn install &&"] }, + id: "run", + exec: { component: "backend", commandLine: "echo hi" }, }, ], }, @@ -75,44 +76,28 @@ describe("Exec command normalization", () => { ); await runFirst(tasks!); - expect(term.calls[0].command).toBe("mvn clean && mvn install"); + expect(term.calls[0].component).toBe("backend"); }); - test("drops operator-only array fragments", async () => { + test("defaults working directory when not provided", async () => { const term = new MockTerminalAPI(); + const tasks = await provide( { - commands: [ - { - id: "compile", - exec: { commandLine: ["mvn clean &&", "||", "mvn install &&"] }, - }, - ], + commands: [{ id: "x", exec: { commandLine: "echo hi" } }], }, term, ); await runFirst(tasks!); - expect(term.calls[0].command).toBe("mvn clean && mvn install"); + expect(term.calls[0].cwd).toContain("PROJECT_SOURCE"); }); - - test.each(["echo A; echo B", "ps aux | grep node", "run \\\n next"])( - "preserves valid shell constructs — %s", - async (cmd) => { - const term = new MockTerminalAPI(); - const tasks = await provide( - { commands: [{ id: "shell", exec: { commandLine: cmd } }] }, - term, - ); - await runFirst(tasks!); - expect(term.calls[0].command).toContain(cmd.split(" ")[0]); - }, - ); }); -describe("Exec task runtime behavior", () => { - test("prepends validated environment exports", async () => { +describe("Exec environment variable handling", () => { + test("injects environment exports before command", async () => { const term = new MockTerminalAPI(); + const tasks = await provide( { commands: [ @@ -129,17 +114,21 @@ describe("Exec task runtime behavior", () => { ); await runFirst(tasks!); - expect(term.calls[0].command).toContain(`export FOO="bar\\"baz";`); + + const cmd = term.calls[0].command; + expect(cmd).toContain(`export FOO="bar\\"baz";`); + expect(cmd).toContain("echo hello"); }); - test("ignores invalid environment variable entries", async () => { + test("handles empty env array safely", async () => { const term = new MockTerminalAPI(); + const tasks = await provide( { commands: [ { - id: "env", - exec: { commandLine: "echo hi", env: [{ name: "" }, {} as any] }, + id: "x", + exec: { commandLine: "echo hi", env: [] }, }, ], }, @@ -151,302 +140,124 @@ describe("Exec task runtime behavior", () => { }); }); -describe("Composite execution behavior", () => { - test("runs sequential steps across components", async () => { +describe("Exec working directory expansion", () => { + test("expands ${VAR} placeholders from process.env", async () => { + process.env.TEST_DIR = "/tmp/demo"; const term = new MockTerminalAPI(); const tasks = await provide( { commands: [ - { id: "a", exec: { component: "c1", commandLine: "echo 1" } }, - { id: "b", exec: { component: "c2", commandLine: "echo 2" } }, - { id: "combo", composite: { commands: ["a", "b"] } }, + { + id: "wd", + exec: { + commandLine: "echo", + workingDir: "${TEST_DIR}", + }, + }, ], }, term, ); - await runByName(tasks!, "combo"); - expect(term.calls.map((c) => c.component)).toEqual(["c1", "c2"]); + await runFirst(tasks!); + expect(term.calls[0].cwd).toBe("/tmp/demo"); }); +}); - test("flattens same-component sequential composites", async () => { +describe("Exec shell grammar preservation", () => { + test.each([ + "echo A; echo B", + "ps aux | grep node", + "node app.js &", + `tr "\\n" " "`, + ])("preserves shell operators — %s", async (cmd) => { const term = new MockTerminalAPI(); const tasks = await provide( { - commands: [ - { id: "a", exec: { component: "py", commandLine: "A &&" } }, - { id: "b", exec: { component: "py", commandLine: "B &&" } }, - { id: "combo", composite: { commands: ["a", "b"] } }, - ], + commands: [{ id: "x", exec: { commandLine: cmd } }], }, term, ); - await runByName(tasks!, "combo"); - expect(term.calls[0].command).toBe("A && B"); + await runFirst(tasks!); + expect(term.calls[0].command).toBe(cmd); }); +}); - test("flattens same-component parallel composites", async () => { - const term = new MockTerminalAPI(); +describe("Exec complex chained shell scenario", () => { + test("passes stop-application nodemon kill command unchanged", async () => { + const term = new MockTerminalAPI({ debug: false }); + + const complex = `node_server_pids=$(pgrep -fx '.*nodemon (--inspect )?app.js' | tr "\\n" " ") && +echo "Stopping node server with PIDs: \${node_server_pids}" && +kill -15 \${node_server_pids} &>/dev/null && echo 'Done.'`; const tasks = await provide( { commands: [ - { id: "a", exec: { component: "py", commandLine: "A" } }, - { id: "b", exec: { component: "py", commandLine: "B" } }, - { id: "combo", composite: { parallel: true, commands: ["a", "b"] } }, + { + id: "stop", + exec: { + component: "ubi9-tools", + commandLine: complex, + }, + }, ], }, term, ); - await runByName(tasks!, "combo"); - expect(term.calls[0].command).toMatch(/(A.*&.*B|B.*&.*A).*wait\s*$/); - }); -}); - -describe("Task naming and resolution contract", () => { - test("prefers exec label over id", async () => { - const tasks = await provide({ - commands: [ - { id: "x", exec: { label: "Nice Name", commandLine: "echo" } }, - ], - }); - expect(tasks![0].name).toBe("Nice Name"); - }); + await runFirst(tasks!); - test("resolveTask returns same task instance", async () => { - const provider = createProvider({ commands: [] }); + expect(term.calls).toHaveLength(1); - const fakeExec: any = { - callback: async () => ({ open() {}, close() {}, onDidWrite() {} }), - }; + const call = term.calls[0]; - const task = new vscode.Task( - { type: "devfile" }, - vscode.TaskScope.Workspace, - "sample", - "devfile", - fakeExec, - ); - - expect(await provider.resolveTask(task)).toBe(task); + expect(call.component).toBe("ubi9-tools"); + expect(call.command).toContain("pgrep -fx"); + expect(call.command).toContain("&>/dev/null"); + expect(call.command).toContain("kill -15"); + expect(call.command).toContain("node_server_pids=$("); }); }); -describe("Cross-component composite command execution", () => { - const devfile = { - commands: [ - { - id: "signal-backend", - exec: { - component: "backend", - commandLine: "python demo.py component_signal --component backend", - }, - }, - { - id: "signal-frontend", - exec: { - component: "frontend", - commandLine: "python demo.py component_signal --component frontend", - }, - }, - { - id: "component-seq-demo", - composite: { - commands: ["signal-backend", "signal-frontend"], - parallel: false, - }, - }, - { - id: "component-parallel-demo", - composite: { - commands: ["signal-backend", "signal-frontend"], - parallel: true, - }, - }, - ], - }; - - test("executes sequential composite across components in declared order", async () => { - const term = new MockTerminalAPI({ debug: false }); - const tasks = await provide(devfile, term); - - expect(tasks!.map(t => t.name).sort()).toEqual([ - "component-parallel-demo", - "component-seq-demo", - "signal-backend", - "signal-frontend", - ]); - - const task = tasks!.find(t => t.name === "component-seq-demo")!; - const pty = await runTask(task); - - expect(term.calls).toHaveLength(2); - - expect(term.calls[0].component).toBe("backend"); - expect(term.calls[1].component).toBe("frontend"); - - expect(term.calls[0].command).toContain("--component backend"); - expect(term.calls[1].command).toContain("--component frontend"); - - expect(pty).toBeDefined(); - expect(term.calls.at(-1)!.component).toBe("frontend"); - }); - - test("executes parallel composite across components", async () => { - const term = new MockTerminalAPI({ debug: false }); - const tasks = await provide(devfile, term); - - const task = tasks!.find(t => t.name === "component-parallel-demo")!; - const pty = await runTask(task); - - expect(term.calls).toHaveLength(2); - - expect(term.calls.map(c => c.component).sort()).toEqual([ - "backend", - "frontend", - ]); +describe("Exec command filtering behavior", () => { + test("does not create task when exec.commandLine missing", async () => { + const tasks = await provide({ + commands: [{ id: "x" }], + }); - expect(pty).toBeDefined(); + expect(tasks).toHaveLength(0); }); -}); -describe("Additional coverage", () => { - test("includes commands explicitly imported with parent scope", async () => { + test("filters imported child commands", async () => { const tasks = await provide({ commands: [ { - id: "parent-cmd", - exec: { commandLine: "echo ok" }, - attributes: { "controller.devfile.io/imported-by": "parent" }, + id: "child", + exec: { commandLine: "echo" }, + attributes: { + "controller.devfile.io/imported-by": "child", + }, }, ], }); - expect(tasks).toHaveLength(1); - expect(tasks![0].name).toBe("parent-cmd"); + expect(tasks).toHaveLength(0); }); - test("filters internal ssh agent helper commands by id pattern", async () => { + test("filters init ssh agent commands", async () => { const tasks = await provide({ commands: [ { - id: "init-ssh-agent-command-42", - exec: { commandLine: "echo should-not-run" }, + id: "init-ssh-agent-command-1", + exec: { commandLine: "echo" }, }, ], }); expect(tasks).toHaveLength(0); }); - - test("sanitizeCommand leaves already clean commands unchanged", async () => { - const term = new MockTerminalAPI(); - - const tasks = await provide( - { - commands: [{ id: "clean", exec: { commandLine: "npm run build" } }], - }, - term, - ); - - await runFirst(tasks!); - expect(term.calls[0].command).toBe("npm run build"); - }); - - test("normalizes mixed noisy command array with blanks and operators", async () => { - const term = new MockTerminalAPI(); - - const tasks = await provide( - { - commands: [ - { - id: "noisy", - exec: { - commandLine: ["cmd &&", "", "||", "next &&", " "], - }, - }, - ], - }, - term, - ); - - await runFirst(tasks!); - expect(term.calls[0].command).toBe("cmd && next"); - }); - - test("composite resolves empty when referenced command has no exec or composite", async () => { - const term = new MockTerminalAPI(); - - const tasks = await provide( - { - commands: [ - { id: "noop" }, - { id: "combo", composite: { commands: ["noop"] } }, - ], - }, - term, - ); - - await runFirst(tasks!); - expect(term.calls[0].command).toContain("resolved empty"); - }); - - test("composite step env variables are applied during flatten execution", async () => { - const term = new MockTerminalAPI(); - - const tasks = await provide( - { - commands: [ - { - id: "a", - exec: { - component: "c", - commandLine: "echo A", - env: [{ name: "X", value: "1" }], - }, - }, - { - id: "b", - exec: { - component: "c", - commandLine: "echo B", - }, - }, - { - id: "combo", - composite: { commands: ["a", "b"] }, - }, - ], - }, - term, - ); - - await runByName(tasks!, "combo"); - - expect(term.calls[0].command).toContain('export X="1"'); - }); - - test("nested composite with parallel mode flattens correctly in same component", async () => { - const term = new MockTerminalAPI(); - - const tasks = await provide( - { - commands: [ - { id: "a", exec: { component: "py", commandLine: "A &&" } }, - { id: "b", exec: { component: "py", commandLine: "B" } }, - { id: "inner", composite: { commands: ["a", "b"], parallel: true } }, - { id: "outer", composite: { commands: ["inner"] } }, - ], - }, - term, - ); - - await runByName(tasks!, "outer"); - - expect(term.calls[0].command).toContain("&"); - }); }); From 21ce472762889b2bff25202e248e23e2c72b07d9 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Wed, 11 Feb 2026 18:12:24 +0530 Subject: [PATCH 12/25] added additional logs to confirm that the workflow --- .../che-commands/src/compositeTaskBuilder.ts | 37 ++++++++++++------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/code/extensions/che-commands/src/compositeTaskBuilder.ts b/code/extensions/che-commands/src/compositeTaskBuilder.ts index 42677d44876..8b4621f88d3 100644 --- a/code/extensions/che-commands/src/compositeTaskBuilder.ts +++ b/code/extensions/che-commands/src/compositeTaskBuilder.ts @@ -36,6 +36,9 @@ export class CompositeTaskBuilder { command: any, all: V1alpha2DevWorkspaceSpecTemplateCommands[], ): vscode.Task | undefined { + this.channel.appendLine( + `entered composite build ${command.id} with ${command.composite.commands.length} subcommands`, + ); if (!this.validate(command, all)) { this.channel.appendLine( `Skipping composite ${command.id}: invalid graph`, @@ -44,11 +47,18 @@ export class CompositeTaskBuilder { } const execs = this.flatten(command, all); + this.channel.appendLine( + `[DEBUG flatten] ${command.id} → ${execs.map((e) => e.component).join(", ")}`, + ); if (!execs.length) { return this.echoTask(`Composite ${command.id} resolved empty`); } const parallel = !!command.composite.parallel; + this.channel.appendLine( + `is parallel: ${parallel}, commands: ${execs.map((e) => e.command).join(", ")}, + components: ${execs.map((e) => e.component ?? "default").join(", ")}, size: ${execs.length}`, + ); const components = new Set(execs.map((e) => e.component ?? "__default__")); if (components.size === 1) { @@ -58,35 +68,33 @@ export class CompositeTaskBuilder { return this.buildCrossComponentTask(command, execs, parallel); } - private flatten( - command: any, - all: any[], - visited = new Set(), - ): ResolvedExec[] { - const out: ResolvedExec[] = []; + private flatten(command: any, all: any[]): ResolvedExec[] { + const result: ResolvedExec[] = []; - const walk = (cmd: any) => { - if (!cmd || visited.has(cmd.id)) return; - if (cmd.id) visited.add(cmd.id); + const visit = (cmd: any, stack = new Set()) => { + if (!cmd || stack.has(cmd.id)) return; + stack.add(cmd.id); if (cmd.exec?.commandLine) { - out.push({ + result.push({ command: cmd.exec.commandLine, workdir: cmd.exec.workingDir || "${PROJECT_SOURCE}", component: cmd.exec.component, env: cmd.exec.env, }); + return; } for (const ref of cmd.composite?.commands ?? []) { const sub = typeof ref === "string" ? all.find((c) => c.id === ref) : ref; - if (sub) walk(sub); + + if (sub) visit(sub, new Set(stack)); } }; - walk(command); - return out; + visit(command); + return result; } private buildSameComponentTask( @@ -134,6 +142,9 @@ export class CompositeTaskBuilder { execs: ResolvedExec[], parallel: boolean, ) { + this.channel.appendLine( + `[composite:${command.id}] cross-component → components: ${[...new Set(execs.map((e) => e.component ?? "default"))].join(", ")}`, + ); const execution = new vscode.CustomExecution(async () => { const writeEmitter = new vscode.EventEmitter(); const closeEmitter = new vscode.EventEmitter(); From 9efadbfc56670c5d79c11dd3bf6223192a097863 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Wed, 11 Feb 2026 19:46:44 +0530 Subject: [PATCH 13/25] make a proper close of the pty --- .../che-commands/src/compositeTaskBuilder.ts | 26 ++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/code/extensions/che-commands/src/compositeTaskBuilder.ts b/code/extensions/che-commands/src/compositeTaskBuilder.ts index 8b4621f88d3..0b31e0147ae 100644 --- a/code/extensions/che-commands/src/compositeTaskBuilder.ts +++ b/code/extensions/che-commands/src/compositeTaskBuilder.ts @@ -169,14 +169,34 @@ export class CompositeTaskBuilder { e.workdir, ); - pty.onDidWrite?.((d: string) => writeEmitter.fire(d)); - pty.open?.(); + if (pty.onDidWrite) { + pty.onDidWrite((data: string) => { + this.channel.appendLine( + `[Composite child output --> ${e.component}::] ${data}`, + ); + writeEmitter.fire(data); + }); + } + + if (pty.onDidClose) { + pty.onDidClose((code: number) => { + this.channel.appendLine( + `[Composite child closed --> ${e.component} code=${code}]`, + ); + }); + } + + if (typeof pty.open === "function") { + pty.open(); + } }; if (parallel) { await Promise.all(execs.map(run)); } else { - for (const e of execs) await run(e); + for (const e of execs) { + await run(e); + } } closeEmitter.fire(0); From 21d0284c2c101414b9b925a299efb23289b1628b Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Wed, 11 Feb 2026 23:33:24 +0530 Subject: [PATCH 14/25] added additional logs --- .../che-commands/src/compositeTaskBuilder.ts | 42 ++++++++++--------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/code/extensions/che-commands/src/compositeTaskBuilder.ts b/code/extensions/che-commands/src/compositeTaskBuilder.ts index 0b31e0147ae..66fc1e1ac69 100644 --- a/code/extensions/che-commands/src/compositeTaskBuilder.ts +++ b/code/extensions/che-commands/src/compositeTaskBuilder.ts @@ -143,7 +143,8 @@ export class CompositeTaskBuilder { parallel: boolean, ) { this.channel.appendLine( - `[composite:${command.id}] cross-component → components: ${[...new Set(execs.map((e) => e.component ?? "default"))].join(", ")}`, + `[composite:${command.id}] cross-component → components: ${[...new Set(execs.map((e) => e.component ?? "default"))].join(", ")} + parallel: ${parallel}, commands: ${execs.map((e) => e.command).join(", ")}`, ); const execution = new vscode.CustomExecution(async () => { const writeEmitter = new vscode.EventEmitter(); @@ -156,11 +157,7 @@ export class CompositeTaskBuilder { open: async () => { const run = async (e: ResolvedExec) => { this.channel.appendLine( - [ - `[Composite Task] ${command.id}`, - ` component: ${e.component ?? "default"}`, - ` command: ${e.command}`, - ].join("\n"), + `[Composite RUN] ${command.id} -> component: ${e.component ?? "default"} -> command: ${e.command}`, ); const pty = await this.terminalExtAPI.getMachineExecPTY( @@ -169,26 +166,31 @@ export class CompositeTaskBuilder { e.workdir, ); - if (pty.onDidWrite) { - pty.onDidWrite((data: string) => { - this.channel.appendLine( - `[Composite child output --> ${e.component}::] ${data}`, - ); - writeEmitter.fire(data); - }); - } + let buffer = ""; - if (pty.onDidClose) { - pty.onDidClose((code: number) => { + pty.onDidWrite?.((data: string) => { + if (data && data.trim()) { + buffer += data; + } + }); + + pty.onDidClose?.(() => { + const text = buffer.trim(); + if (text) { this.channel.appendLine( - `[Composite child closed --> ${e.component} code=${code}]`, + `[Composite OUTPUT] ${command.id} -> component: ${e.component ?? "default"} -> output: ${text}`, ); - }); - } + writeEmitter.fire(text + "\r\n"); + } + }); if (typeof pty.open === "function") { pty.open(); } + + await new Promise((resolve) => { + pty.onDidClose?.(() => resolve()); + }); }; if (parallel) { @@ -214,7 +216,7 @@ export class CompositeTaskBuilder { return new vscode.Task( { type: "devfile", - command: "[composite]", + command: `[composite:${command.id}:${parallel ? "parallel" : "sequential"}]`, workdir: first.workdir, component: first.component, }, From a2e9eec929c169cfe64067af8ce1a08a7460212d Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Thu, 12 Feb 2026 00:03:21 +0530 Subject: [PATCH 15/25] make test pass --- code/extensions/che-commands/tests/mocks.ts | 26 ++++++++++++--------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/code/extensions/che-commands/tests/mocks.ts b/code/extensions/che-commands/tests/mocks.ts index c2ab76e6efb..228c431e029 100644 --- a/code/extensions/che-commands/tests/mocks.ts +++ b/code/extensions/che-commands/tests/mocks.ts @@ -18,31 +18,35 @@ type WriteListener = (data: string) => void; type CloseListener = (code?: number) => void; class MockPty { - private writeListeners: WriteListener[] = []; - private closeListeners: CloseListener[] = []; + private writeListeners: Array<(s: string) => void> = []; + private closeListeners: Array<(c?: number) => void> = []; constructor(private output: string) {} - onDidWrite(listener: WriteListener) { + onDidWrite(listener: (s: string) => void) { this.writeListeners.push(listener); } - onDidClose(listener: CloseListener) { + onDidClose(listener: (c?: number) => void) { this.closeListeners.push(listener); } open() { - if (this.output) { - for (const l of this.writeListeners) { - l(this.output + "\r\n"); + setTimeout(() => { + if (this.output) { + for (const l of this.writeListeners) { + l(this.output + "\r\n"); + } } - } + + for (const l of this.closeListeners) { + l(0); + } + }, 0); } close() { - for (const l of this.closeListeners) { - l(0); - } + for (const l of this.closeListeners) l(0); } handleInput() {} From ba67ec4b46be6d298cb8960c89cd98118066d2a5 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Thu, 12 Feb 2026 01:23:31 +0530 Subject: [PATCH 16/25] make parallel flow with async --- .../che-commands/src/compositeTaskBuilder.ts | 69 ++++++++++--------- 1 file changed, 37 insertions(+), 32 deletions(-) diff --git a/code/extensions/che-commands/src/compositeTaskBuilder.ts b/code/extensions/che-commands/src/compositeTaskBuilder.ts index 66fc1e1ac69..e0c72d390a8 100644 --- a/code/extensions/che-commands/src/compositeTaskBuilder.ts +++ b/code/extensions/che-commands/src/compositeTaskBuilder.ts @@ -155,46 +155,51 @@ export class CompositeTaskBuilder { onDidClose: closeEmitter.event, open: async () => { - const run = async (e: ResolvedExec) => { - this.channel.appendLine( - `[Composite RUN] ${command.id} -> component: ${e.component ?? "default"} -> command: ${e.command}`, - ); - - const pty = await this.terminalExtAPI.getMachineExecPTY( - e.component, - e.command, - e.workdir, - ); - - let buffer = ""; - - pty.onDidWrite?.((data: string) => { - if (data && data.trim()) { - buffer += data; + const run = (e: ResolvedExec) => { + return new Promise(async (resolve) => { + this.channel.appendLine( + `[Composite RUN] ${command.id} -> component: ${e.component ?? "default"} -> command: ${e.command}`, + ); + + const pty = await this.terminalExtAPI.getMachineExecPTY( + e.component, + e.command, + e.workdir, + ); + + let buffer = ""; + + if (pty.onDidWrite) { + pty.onDidWrite((data: string) => { + if (data && data.trim()) { + buffer += data; + } + }); } - }); - pty.onDidClose?.(() => { - const text = buffer.trim(); - if (text) { - this.channel.appendLine( - `[Composite OUTPUT] ${command.id} -> component: ${e.component ?? "default"} -> output: ${text}`, - ); - writeEmitter.fire(text + "\r\n"); + if (pty.onDidClose) { + pty.onDidClose(() => { + const text = buffer.trim(); + if (text) { + this.channel.appendLine( + `[Composite OUTPUT] ${command.id} -> component: ${e.component ?? "default"} -> output: ${text}`, + ); + writeEmitter.fire(text + "\r\n"); + } + resolve(); + }); + } else { + resolve(); } - }); - if (typeof pty.open === "function") { - pty.open(); - } - - await new Promise((resolve) => { - pty.onDidClose?.(() => resolve()); + if (typeof pty.open === "function") { + pty.open(); + } }); }; if (parallel) { - await Promise.all(execs.map(run)); + await Promise.all(execs.map((e) => run(e))); } else { for (const e of execs) { await run(e); From 57f0f1acad5b7f07fd723011e58efc66c63c1b5d Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Thu, 12 Feb 2026 03:46:15 +0530 Subject: [PATCH 17/25] resolve parallel cross component issue --- .../che-commands/src/compositeTaskBuilder.ts | 88 +++++++++---------- 1 file changed, 43 insertions(+), 45 deletions(-) diff --git a/code/extensions/che-commands/src/compositeTaskBuilder.ts b/code/extensions/che-commands/src/compositeTaskBuilder.ts index e0c72d390a8..b6e5a0e30e0 100644 --- a/code/extensions/che-commands/src/compositeTaskBuilder.ts +++ b/code/extensions/che-commands/src/compositeTaskBuilder.ts @@ -155,57 +155,55 @@ export class CompositeTaskBuilder { onDidClose: closeEmitter.event, open: async () => { - const run = (e: ResolvedExec) => { - return new Promise(async (resolve) => { - this.channel.appendLine( - `[Composite RUN] ${command.id} -> component: ${e.component ?? "default"} -> command: ${e.command}`, - ); - - const pty = await this.terminalExtAPI.getMachineExecPTY( - e.component, - e.command, - e.workdir, - ); - - let buffer = ""; - - if (pty.onDidWrite) { - pty.onDidWrite((data: string) => { - if (data && data.trim()) { - buffer += data; - } - }); - } - - if (pty.onDidClose) { - pty.onDidClose(() => { - const text = buffer.trim(); - if (text) { - this.channel.appendLine( - `[Composite OUTPUT] ${command.id} -> component: ${e.component ?? "default"} -> output: ${text}`, - ); - writeEmitter.fire(text + "\r\n"); - } - resolve(); - }); - } else { + const waiters: Promise[] = []; + + for (const e of execs) { + this.channel.appendLine( + `[Composite RUN] ${command.id} -> component: ${e.component ?? "default"} -> command: ${e.command}`, + ); + + const pty = await this.terminalExtAPI.getMachineExecPTY( + e.component, + e.command, + e.workdir, + ); + + let buffer = ""; + + const done = new Promise((resolve) => { + pty.onDidWrite?.((data: string) => { + if (data && data.trim()) { + buffer += data; + } + }); + + pty.onDidClose?.(() => { + const text = buffer.trim(); + if (text) { + this.channel.appendLine( + `[Composite OUTPUT] ${command.id} -> component: ${e.component ?? "default"} -> output: ${text}`, + ); + writeEmitter.fire(text + "\r\n"); + } resolve(); - } - - if (typeof pty.open === "function") { - pty.open(); - } + }); }); - }; - if (parallel) { - await Promise.all(execs.map((e) => run(e))); - } else { - for (const e of execs) { - await run(e); + waiters.push(done); + + if (typeof pty.open === "function") { + pty.open(); + } + + if (!parallel) { + await done; } } + if (parallel) { + await Promise.all(waiters); + } + closeEmitter.fire(0); }, From 10ac1f2f8f27f411b9a144bc179fc8219d38bd46 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Thu, 12 Feb 2026 11:48:13 +0530 Subject: [PATCH 18/25] make parallel output in order --- .../che-commands/src/compositeTaskBuilder.ts | 99 +++++++++++-------- 1 file changed, 58 insertions(+), 41 deletions(-) diff --git a/code/extensions/che-commands/src/compositeTaskBuilder.ts b/code/extensions/che-commands/src/compositeTaskBuilder.ts index b6e5a0e30e0..eb39ae4c229 100644 --- a/code/extensions/che-commands/src/compositeTaskBuilder.ts +++ b/code/extensions/che-commands/src/compositeTaskBuilder.ts @@ -155,56 +155,73 @@ export class CompositeTaskBuilder { onDidClose: closeEmitter.event, open: async () => { - const waiters: Promise[] = []; - - for (const e of execs) { - this.channel.appendLine( - `[Composite RUN] ${command.id} -> component: ${e.component ?? "default"} -> command: ${e.command}`, - ); - - const pty = await this.terminalExtAPI.getMachineExecPTY( - e.component, - e.command, - e.workdir, - ); + try { + const runners = execs.map((e: ResolvedExec, index: number) => { + return new Promise<{ index: number; text: string }>( + async (resolve) => { + this.channel.appendLine( + `[Composite RUN] ${command.id} -> component: ${e.component ?? "default"} -> command: ${e.command}`, + ); - let buffer = ""; + const pty = await this.terminalExtAPI.getMachineExecPTY( + e.component, + e.command, + e.workdir, + ); - const done = new Promise((resolve) => { - pty.onDidWrite?.((data: string) => { - if (data && data.trim()) { - buffer += data; - } - }); + let buffer = ""; + + pty.onDidWrite?.((data: string) => { + if (data && data.trim()) { + buffer += data; + } + }); + + pty.onDidClose?.(() => { + resolve({ + index, + text: buffer.trim(), + }); + }); + + if (typeof pty.open === "function") { + pty.open(); + } + }, + ); + }); - pty.onDidClose?.(() => { - const text = buffer.trim(); - if (text) { + if (parallel) { + const results = await Promise.all(runners); + results + .sort((a, b) => a.index - b.index) + .forEach((r) => { + if (r.text) { + this.channel.appendLine( + `[Composite OUTPUT] ${command.id} -> ${r.text}`, + ); + writeEmitter.fire(r.text + "\r\n"); + } + }); + } else { + for (const runner of runners) { + const out = await runner; + if (out.text) { this.channel.appendLine( - `[Composite OUTPUT] ${command.id} -> component: ${e.component ?? "default"} -> output: ${text}`, + `[Composite OUTPUT] ${command.id} -> ${out.text}`, ); - writeEmitter.fire(text + "\r\n"); + writeEmitter.fire(out.text + "\r\n"); } - resolve(); - }); - }); - - waiters.push(done); - - if (typeof pty.open === "function") { - pty.open(); + } } - if (!parallel) { - await done; - } - } - - if (parallel) { - await Promise.all(waiters); + closeEmitter.fire(0); + } catch (err) { + this.channel.appendLine( + `Composite ${command.id} failed: ${String(err)}`, + ); + closeEmitter.fire(1); } - - closeEmitter.fire(0); }, close: () => {}, From d594c367098febf99aa08d6311917e089354ef98 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Thu, 12 Feb 2026 13:08:07 +0530 Subject: [PATCH 19/25] resolving the emitter logic --- .../che-commands/src/compositeTaskBuilder.ts | 83 +++++++++---------- 1 file changed, 37 insertions(+), 46 deletions(-) diff --git a/code/extensions/che-commands/src/compositeTaskBuilder.ts b/code/extensions/che-commands/src/compositeTaskBuilder.ts index eb39ae4c229..40228ca98a1 100644 --- a/code/extensions/che-commands/src/compositeTaskBuilder.ts +++ b/code/extensions/che-commands/src/compositeTaskBuilder.ts @@ -155,63 +155,54 @@ export class CompositeTaskBuilder { onDidClose: closeEmitter.event, open: async () => { - try { - const runners = execs.map((e: ResolvedExec, index: number) => { - return new Promise<{ index: number; text: string }>( - async (resolve) => { + const run = async (e: ResolvedExec, index: number) => { + this.channel.appendLine( + `[Composite RUN #${index}] ${command.id} -> component: ${e.component ?? "default"} -> command: ${e.command}`, + ); + + const pty = await this.terminalExtAPI.getMachineExecPTY( + e.component, + e.command, + e.workdir, + ); + + let buffer = ""; + + return new Promise<{ index: number; text: string }>((resolve) => { + pty.onDidWrite?.((data: string) => { + if (data?.trim()) buffer += data; + }); + + pty.onDidClose?.(() => { + const text = buffer.trim(); + + if (text) { this.channel.appendLine( - `[Composite RUN] ${command.id} -> component: ${e.component ?? "default"} -> command: ${e.command}`, + `[Composite OUTPUT #${index}] ${command.id} -> ${e.component ?? "default"} -> ${text}`, ); + } - const pty = await this.terminalExtAPI.getMachineExecPTY( - e.component, - e.command, - e.workdir, - ); + resolve({ index, text }); + }); - let buffer = ""; - - pty.onDidWrite?.((data: string) => { - if (data && data.trim()) { - buffer += data; - } - }); - - pty.onDidClose?.(() => { - resolve({ - index, - text: buffer.trim(), - }); - }); - - if (typeof pty.open === "function") { - pty.open(); - } - }, - ); + if (typeof pty.open === "function") { + pty.open(); + } }); + }; + try { if (parallel) { - const results = await Promise.all(runners); + const results = await Promise.all(execs.map((exec, i) => run(exec, i))); results .sort((a, b) => a.index - b.index) - .forEach((r) => { - if (r.text) { - this.channel.appendLine( - `[Composite OUTPUT] ${command.id} -> ${r.text}`, - ); - writeEmitter.fire(r.text + "\r\n"); - } + .forEach((result) => { + if (result.text) writeEmitter.fire(result.text + "\r\n"); }); } else { - for (const runner of runners) { - const out = await runner; - if (out.text) { - this.channel.appendLine( - `[Composite OUTPUT] ${command.id} -> ${out.text}`, - ); - writeEmitter.fire(out.text + "\r\n"); - } + for (let i = 0; i < execs.length; i++) { + const result = await run(execs[i], i); + if (result.text) writeEmitter.fire(result.text + "\r\n"); } } From 11b2e692cc300a49c5591a957cf664dc1bb82bbc Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Thu, 12 Feb 2026 15:30:24 +0530 Subject: [PATCH 20/25] make final ready code --- .../che-commands/src/compositeTaskBuilder.ts | 79 +++++++------------ 1 file changed, 29 insertions(+), 50 deletions(-) diff --git a/code/extensions/che-commands/src/compositeTaskBuilder.ts b/code/extensions/che-commands/src/compositeTaskBuilder.ts index 40228ca98a1..67c7f9b2d1f 100644 --- a/code/extensions/che-commands/src/compositeTaskBuilder.ts +++ b/code/extensions/che-commands/src/compositeTaskBuilder.ts @@ -36,9 +36,6 @@ export class CompositeTaskBuilder { command: any, all: V1alpha2DevWorkspaceSpecTemplateCommands[], ): vscode.Task | undefined { - this.channel.appendLine( - `entered composite build ${command.id} with ${command.composite.commands.length} subcommands`, - ); if (!this.validate(command, all)) { this.channel.appendLine( `Skipping composite ${command.id}: invalid graph`, @@ -47,20 +44,13 @@ export class CompositeTaskBuilder { } const execs = this.flatten(command, all); - this.channel.appendLine( - `[DEBUG flatten] ${command.id} → ${execs.map((e) => e.component).join(", ")}`, - ); if (!execs.length) { return this.echoTask(`Composite ${command.id} resolved empty`); } const parallel = !!command.composite.parallel; - this.channel.appendLine( - `is parallel: ${parallel}, commands: ${execs.map((e) => e.command).join(", ")}, - components: ${execs.map((e) => e.component ?? "default").join(", ")}, size: ${execs.length}`, - ); - const components = new Set(execs.map((e) => e.component ?? "__default__")); + const components = new Set(execs.map((e) => e.component ?? "__default__")); if (components.size === 1) { return this.buildSameComponentTask(command, execs, parallel); } @@ -155,9 +145,9 @@ export class CompositeTaskBuilder { onDidClose: closeEmitter.event, open: async () => { - const run = async (e: ResolvedExec, index: number) => { + const run = async (e: ResolvedExec) => { this.channel.appendLine( - `[Composite RUN #${index}] ${command.id} -> component: ${e.component ?? "default"} -> command: ${e.command}`, + `[Composite RUN] ${command.id} -> component: ${e.component ?? "default"} -> command: ${e.command}`, ); const pty = await this.terminalExtAPI.getMachineExecPTY( @@ -168,51 +158,40 @@ export class CompositeTaskBuilder { let buffer = ""; - return new Promise<{ index: number; text: string }>((resolve) => { - pty.onDidWrite?.((data: string) => { - if (data?.trim()) buffer += data; - }); - - pty.onDidClose?.(() => { - const text = buffer.trim(); + pty.onDidWrite?.((data: string) => { + if (data && data.trim()) { + buffer += data; + } + }); - if (text) { - this.channel.appendLine( - `[Composite OUTPUT #${index}] ${command.id} -> ${e.component ?? "default"} -> ${text}`, - ); - } + pty.onDidClose?.(() => { + const text = buffer.trim(); + if (text) { + this.channel.appendLine( + `[Composite OUTPUT] ${command.id} -> component: ${e.component ?? "default"} -> output: ${text}`, + ); + writeEmitter.fire(text + "\r\n"); + } + }); - resolve({ index, text }); - }); + if (typeof pty.open === "function") { + pty.open(); + } - if (typeof pty.open === "function") { - pty.open(); - } + await new Promise((resolve) => { + pty.onDidClose?.(() => resolve()); }); }; - try { - if (parallel) { - const results = await Promise.all(execs.map((exec, i) => run(exec, i))); - results - .sort((a, b) => a.index - b.index) - .forEach((result) => { - if (result.text) writeEmitter.fire(result.text + "\r\n"); - }); - } else { - for (let i = 0; i < execs.length; i++) { - const result = await run(execs[i], i); - if (result.text) writeEmitter.fire(result.text + "\r\n"); - } + if (parallel) { + await Promise.all(execs.map(run)); + } else { + for (const e of execs) { + await run(e); } - - closeEmitter.fire(0); - } catch (err) { - this.channel.appendLine( - `Composite ${command.id} failed: ${String(err)}`, - ); - closeEmitter.fire(1); } + + closeEmitter.fire(0); }, close: () => {}, From 0da25fe71a0d25be18d5decee977c55f5d0183d5 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Tue, 17 Feb 2026 19:14:22 +0530 Subject: [PATCH 21/25] emitting the data each time --- .../che-commands/src/compositeTaskBuilder.ts | 42 ++++++++----------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/code/extensions/che-commands/src/compositeTaskBuilder.ts b/code/extensions/che-commands/src/compositeTaskBuilder.ts index 67c7f9b2d1f..d5d6cc93790 100644 --- a/code/extensions/che-commands/src/compositeTaskBuilder.ts +++ b/code/extensions/che-commands/src/compositeTaskBuilder.ts @@ -146,8 +146,10 @@ export class CompositeTaskBuilder { open: async () => { const run = async (e: ResolvedExec) => { + const tag = `${command.id}:${e.component ?? "default"}`; + this.channel.appendLine( - `[Composite RUN] ${command.id} -> component: ${e.component ?? "default"} -> command: ${e.command}`, + `[Composite RUN] ${tag} -> command: ${e.command}`, ); const pty = await this.terminalExtAPI.getMachineExecPTY( @@ -156,30 +158,22 @@ export class CompositeTaskBuilder { e.workdir, ); - let buffer = ""; - - pty.onDidWrite?.((data: string) => { - if (data && data.trim()) { - buffer += data; - } - }); - - pty.onDidClose?.(() => { - const text = buffer.trim(); - if (text) { - this.channel.appendLine( - `[Composite OUTPUT] ${command.id} -> component: ${e.component ?? "default"} -> output: ${text}`, - ); - writeEmitter.fire(text + "\r\n"); - } - }); - - if (typeof pty.open === "function") { - pty.open(); - } - await new Promise((resolve) => { - pty.onDidClose?.(() => resolve()); + pty.onDidWrite?.((data: string) => { + if (!data) return; + const tagged = `[${tag}] ${data}`; + writeEmitter.fire(tagged); + this.channel.append(tagged); + }); + + pty.onDidClose?.(() => { + this.channel.appendLine(`[Composite DONE] ${tag}`); + resolve(); + }); + + if (typeof pty.open === "function") { + pty.open(); + } }); }; From af99c75eeae9dcdf27c220c6e3306a038556a7d4 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Tue, 17 Feb 2026 21:06:10 +0530 Subject: [PATCH 22/25] refactor the data --- code/extensions/che-commands/src/compositeTaskBuilder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/extensions/che-commands/src/compositeTaskBuilder.ts b/code/extensions/che-commands/src/compositeTaskBuilder.ts index d5d6cc93790..a8bb4915270 100644 --- a/code/extensions/che-commands/src/compositeTaskBuilder.ts +++ b/code/extensions/che-commands/src/compositeTaskBuilder.ts @@ -162,7 +162,7 @@ export class CompositeTaskBuilder { pty.onDidWrite?.((data: string) => { if (!data) return; const tagged = `[${tag}] ${data}`; - writeEmitter.fire(tagged); + writeEmitter.fire(data); this.channel.append(tagged); }); From a4eb13e9d9abaa0e81dab1cf4dbee122baad9bca Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Thu, 19 Feb 2026 23:45:33 +0530 Subject: [PATCH 23/25] addressed close events --- .../che-commands/src/compositeTaskBuilder.ts | 44 ++++++++++++++++++- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/code/extensions/che-commands/src/compositeTaskBuilder.ts b/code/extensions/che-commands/src/compositeTaskBuilder.ts index a8bb4915270..91f30f658a4 100644 --- a/code/extensions/che-commands/src/compositeTaskBuilder.ts +++ b/code/extensions/che-commands/src/compositeTaskBuilder.ts @@ -136,6 +136,10 @@ export class CompositeTaskBuilder { `[composite:${command.id}] cross-component → components: ${[...new Set(execs.map((e) => e.component ?? "default"))].join(", ")} parallel: ${parallel}, commands: ${execs.map((e) => e.command).join(", ")}`, ); + + let activePtys = new Set(); + let isCancelled = false; + const execution = new vscode.CustomExecution(async () => { const writeEmitter = new vscode.EventEmitter(); const closeEmitter = new vscode.EventEmitter(); @@ -146,6 +150,7 @@ export class CompositeTaskBuilder { open: async () => { const run = async (e: ResolvedExec) => { + if (isCancelled) return; const tag = `${command.id}:${e.component ?? "default"}`; this.channel.appendLine( @@ -158,6 +163,8 @@ export class CompositeTaskBuilder { e.workdir, ); + activePtys.add(pty); + await new Promise((resolve) => { pty.onDidWrite?.((data: string) => { if (!data) return; @@ -168,6 +175,7 @@ export class CompositeTaskBuilder { pty.onDidClose?.(() => { this.channel.appendLine(`[Composite DONE] ${tag}`); + activePtys.delete(pty); resolve(); }); @@ -181,6 +189,7 @@ export class CompositeTaskBuilder { await Promise.all(execs.map(run)); } else { for (const e of execs) { + if (isCancelled) break; await run(e); } } @@ -188,8 +197,39 @@ export class CompositeTaskBuilder { closeEmitter.fire(0); }, - close: () => {}, - handleInput: () => {}, + close: () => { + this.channel.appendLine("[Composite] Terminal closed by user"); + + isCancelled = true; + + for (const p of activePtys) { + try { + p.handleInput?.("\x03"); + p.close?.(); + } catch {} + } + + activePtys.clear(); + closeEmitter.fire(130); + }, + + handleInput: (data: string) => { + if (data === "\x03") { + this.channel.appendLine( + "[Composite] Ctrl+C received — terminating", + ); + + isCancelled = true; + + for (const p of activePtys) { + p.handleInput?.("\x03"); + p.close?.(); + } + + activePtys.clear(); + closeEmitter.fire(130); + } + }, }; return aggregator; From 3a30114d23b03bf66e7314c9f95b6990224aa256 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Tue, 24 Feb 2026 01:01:14 +0530 Subject: [PATCH 24/25] Acheived cross component parallel --- .../che-commands/src/compositeTaskBuilder.ts | 166 ++++++++++++++++-- .../tests/compositeTaskBuilder.test.ts | 50 +++++- 2 files changed, 195 insertions(+), 21 deletions(-) diff --git a/code/extensions/che-commands/src/compositeTaskBuilder.ts b/code/extensions/che-commands/src/compositeTaskBuilder.ts index 91f30f658a4..3a17ae877b0 100644 --- a/code/extensions/che-commands/src/compositeTaskBuilder.ts +++ b/code/extensions/che-commands/src/compositeTaskBuilder.ts @@ -55,7 +55,11 @@ export class CompositeTaskBuilder { return this.buildSameComponentTask(command, execs, parallel); } - return this.buildCrossComponentTask(command, execs, parallel); + if (parallel) { + return this.buildParallelCrossComponent(command, execs); + } + + return this.buildSeqCrossComponent(command, execs); } private flatten(command: any, all: any[]): ResolvedExec[] { @@ -127,14 +131,10 @@ export class CompositeTaskBuilder { ); } - private buildCrossComponentTask( - command: any, - execs: ResolvedExec[], - parallel: boolean, - ) { + private buildSeqCrossComponent(command: any, execs: ResolvedExec[]) { this.channel.appendLine( - `[composite:${command.id}] cross-component → components: ${[...new Set(execs.map((e) => e.component ?? "default"))].join(", ")} - parallel: ${parallel}, commands: ${execs.map((e) => e.command).join(", ")}`, + `[Composite Seq:${command.id}] cross-component → components: ${this.getComponentList(execs)} + commands: ${execs.map((e) => e.command).join(", ")}`, ); let activePtys = new Set(); @@ -154,7 +154,7 @@ export class CompositeTaskBuilder { const tag = `${command.id}:${e.component ?? "default"}`; this.channel.appendLine( - `[Composite RUN] ${tag} -> command: ${e.command}`, + `[Composite Seq RUN] ${tag} -> command: ${e.command}`, ); const pty = await this.terminalExtAPI.getMachineExecPTY( @@ -174,7 +174,7 @@ export class CompositeTaskBuilder { }); pty.onDidClose?.(() => { - this.channel.appendLine(`[Composite DONE] ${tag}`); + this.channel.appendLine(`[Composite Seq DONE] ${tag}`); activePtys.delete(pty); resolve(); }); @@ -185,20 +185,16 @@ export class CompositeTaskBuilder { }); }; - if (parallel) { - await Promise.all(execs.map(run)); - } else { - for (const e of execs) { - if (isCancelled) break; - await run(e); - } + for (const e of execs) { + if (isCancelled) break; + await run(e); } closeEmitter.fire(0); }, close: () => { - this.channel.appendLine("[Composite] Terminal closed by user"); + this.channel.appendLine("[Composite Seq] Terminal closed by user"); isCancelled = true; @@ -240,7 +236,7 @@ export class CompositeTaskBuilder { return new vscode.Task( { type: "devfile", - command: `[composite:${command.id}:${parallel ? "parallel" : "sequential"}]`, + command: `[composite:${command.id}:"sequential"]`, workdir: first.workdir, component: first.component, }, @@ -251,6 +247,138 @@ export class CompositeTaskBuilder { ); } + private buildParallelCrossComponent( + command: any, + execs: ResolvedExec[], + ): vscode.Task { + this.channel.appendLine( + `[Composite Parallel:${command.id}] cross-component → components: ${this.getComponentList(execs)} + commands: ${execs.map((e) => e.command).join(", ")}`, + ); + + const execution = new vscode.CustomExecution(async () => { + const writeEmitter = new vscode.EventEmitter(); + const closeEmitter = new vscode.EventEmitter(); + + const running = new Set(); + let cancelled = false; + let exitCode = 0; + + const endListener = vscode.tasks.onDidEndTaskProcess((e) => { + if (!running.has(e.execution)) return; + + running.delete(e.execution); + + if (e.exitCode && e.exitCode !== 0) { + exitCode = e.exitCode; + } + + if (!cancelled && running.size === 0) { + cleanup(); + closeEmitter.fire(exitCode); + } + }); + + const cleanup = () => { + endListener.dispose(); + running.clear(); + }; + + const terminateAll = () => { + cancelled = true; + + for (const exec of running) { + try { + exec.terminate(); + } catch {} + } + + cleanup(); + closeEmitter.fire(130); + }; + + const pty: vscode.Pseudoterminal = { + onDidWrite: writeEmitter.event, + onDidClose: closeEmitter.event, + + open: async () => { + for (const e of execs) { + const childTask = this.buildHiddenExecTask(command.id, e); + + const exec = await vscode.tasks.executeTask(childTask); + + running.add(exec); + + writeEmitter.fire(`[${e.component}] started\n`); + } + }, + + close: () => { + this.channel.appendLine("[Composite Parallel] Terminal closed"); + terminateAll(); + }, + + handleInput: (data: string) => { + if (data === "\x03") { + this.channel.appendLine("[Composite Parallel] Ctrl+C received"); + terminateAll(); + } + }, + }; + + return pty; + }); + + return new vscode.Task( + { + type: "devfile", + command: `[composite:${command.id}:parallel]`, + }, + vscode.TaskScope.Workspace, + command.composite.label || command.id, + "devfile", + execution, + ); + } + + private buildHiddenExecTask( + compositeId: string, + e: ResolvedExec, + ): vscode.Task { + const definition = { + type: "devfile", + command: e.command, + workdir: e.workdir, + component: e.component, + }; + + const task = new vscode.Task( + definition, + vscode.TaskScope.Workspace, + `${compositeId}:${e.component}`, + "devfile", + new vscode.CustomExecution(() => + this.terminalExtAPI.getMachineExecPTY( + e.component, + e.command, + e.workdir, + ), + ), + ); + + task.presentationOptions = { + reveal: vscode.TaskRevealKind.Never ?? 0, + panel: vscode.TaskPanelKind.Dedicated ?? 1, + clear: false, + }; + + return task; + } + + private getComponentList(execs: ResolvedExec[]): string { + return [...new Set(execs.map((e) => e.component ?? "default"))].join(", "); + } + private sanitize(cmd: string) { return cmd.replace(/(?:\s*(?:&&|\|\||[|;&]))+\s*$/, "").trim(); } diff --git a/code/extensions/che-commands/tests/compositeTaskBuilder.test.ts b/code/extensions/che-commands/tests/compositeTaskBuilder.test.ts index 69a36ee09a3..0e65c54486c 100644 --- a/code/extensions/che-commands/tests/compositeTaskBuilder.test.ts +++ b/code/extensions/che-commands/tests/compositeTaskBuilder.test.ts @@ -116,13 +116,59 @@ describe("Composite — cross component execution", () => { test("parallel composite executes all components", async () => { const term = new MockTerminalAPI(); + let executedTasks: vscode.Task[] = []; + + const listeners: any[] = []; + + (vscode as any).TaskRevealKind = { + Never: 0, + }; + + (vscode as any).TaskPanelKind = { + Dedicated: 1, + }; + + (vscode as any).tasks = { + executeTask: async (task: vscode.Task) => { + executedTasks.push(task); + + const exec = task.execution as any; + if (exec?.callback) { + const pty = await exec.callback(); + if (pty?.open) { + await pty.open(); + } + } + + const fakeExecution = { + terminate: () => {}, + }; + + setTimeout(() => { + listeners.forEach((l) => + l({ execution: fakeExecution, exitCode: 0 }), + ); + }, 0); + + return fakeExecution; + }, + + onDidEndTaskProcess: (listener: any) => { + listeners.push(listener); + return { dispose: () => {} }; + }, + }; + const tasks = await provide(devfile, term); await runByName(tasks!, "par"); - expect(term.calls).toHaveLength(2); + expect(executedTasks).toHaveLength(2); + + const comps = executedTasks + .map((t) => (t.definition as any).component) + .sort(); - const comps = term.calls.map((c) => c.component).sort(); expect(comps).toEqual(["backend", "frontend"]); }); }); From 01e4bec159e3514e06bc60860eb69fd37a052d9a Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Tue, 24 Feb 2026 02:34:01 +0530 Subject: [PATCH 25/25] Done parallel cross component composite command --- .../che-commands/src/compositeTaskBuilder.ts | 141 +++++++++++++----- 1 file changed, 103 insertions(+), 38 deletions(-) diff --git a/code/extensions/che-commands/src/compositeTaskBuilder.ts b/code/extensions/che-commands/src/compositeTaskBuilder.ts index 3a17ae877b0..8c05839df61 100644 --- a/code/extensions/che-commands/src/compositeTaskBuilder.ts +++ b/code/extensions/che-commands/src/compositeTaskBuilder.ts @@ -261,23 +261,8 @@ export class CompositeTaskBuilder { const closeEmitter = new vscode.EventEmitter(); const running = new Set(); - let cancelled = false; let exitCode = 0; - - const endListener = vscode.tasks.onDidEndTaskProcess((e) => { - if (!running.has(e.execution)) return; - - running.delete(e.execution); - - if (e.exitCode && e.exitCode !== 0) { - exitCode = e.exitCode; - } - - if (!cancelled && running.size === 0) { - cleanup(); - closeEmitter.fire(exitCode); - } - }); + let cancelled = false; const cleanup = () => { endListener.dispose(); @@ -297,30 +282,54 @@ export class CompositeTaskBuilder { closeEmitter.fire(130); }; + const endListener = vscode.tasks.onDidEndTaskProcess((e) => { + if (!running.has(e.execution)) return; + + running.delete(e.execution); + + if (e.exitCode && e.exitCode !== 0) { + exitCode = e.exitCode; + } + + if (!cancelled && running.size === 0) { + cleanup(); + closeEmitter.fire(exitCode); + } + }); + const pty: vscode.Pseudoterminal = { onDidWrite: writeEmitter.event, onDidClose: closeEmitter.event, open: async () => { for (const e of execs) { - const childTask = this.buildHiddenExecTask(command.id, e); + const childTask = this.buildStreamingExecTask( + command.id, + e, + writeEmitter, + ); const exec = await vscode.tasks.executeTask(childTask); running.add(exec); - - writeEmitter.fire(`[${e.component}] started\n`); + this.channel.appendLine( + `[Composite Parallel:${command.id}] Started task for component: ${e.component ?? "default"}`, + ); } }, close: () => { - this.channel.appendLine("[Composite Parallel] Terminal closed"); + this.channel.appendLine( + `[Composite Parallel:${command.id}] terminal closed`, + ); terminateAll(); }, handleInput: (data: string) => { if (data === "\x03") { - this.channel.appendLine("[Composite Parallel] Ctrl+C received"); + this.channel.appendLine( + `[Composite Parallel:${command.id}] Ctrl+C received`, + ); terminateAll(); } }, @@ -341,34 +350,90 @@ export class CompositeTaskBuilder { ); } - private buildHiddenExecTask( + private buildStreamingExecTask( compositeId: string, e: ResolvedExec, + parentEmitter: vscode.EventEmitter, ): vscode.Task { - const definition = { - type: "devfile", - command: e.command, - workdir: e.workdir, - component: e.component, - }; + const execution = new vscode.CustomExecution(async () => { + const writeEmitter = new vscode.EventEmitter(); + const closeEmitter = new vscode.EventEmitter(); + + let child: vscode.Pseudoterminal | null = null; + let cancelled = false; + + const terminateChild = () => { + cancelled = true; + + if (child) { + try { + child.handleInput?.("\x03"); + child.close?.(); + } catch {} + } + + closeEmitter.fire(130); + }; + + const pty: vscode.Pseudoterminal = { + onDidWrite: writeEmitter.event, + onDidClose: closeEmitter.event, + + open: async () => { + const created = await this.terminalExtAPI.getMachineExecPTY( + e.component, + e.command, + e.workdir, + ); + + child = created; + + created.onDidWrite?.((data: string) => { + if (!data) return; + + const tagged = `[${e.component ?? "default"}] ${data}`; + + parentEmitter.fire(data); + writeEmitter.fire(tagged); + }); + + created.onDidClose?.((code?: number) => { + if (!cancelled) { + closeEmitter.fire(code ?? 0); + } + }); + + created.open?.(); + }, + + close: terminateChild, + + handleInput: (data: string) => { + if (data === "\x03") { + terminateChild(); + } + }, + }; + + return pty; + }); const task = new vscode.Task( - definition, + { + type: "devfile", + command: e.command, + workdir: e.workdir, + component: e.component, + }, vscode.TaskScope.Workspace, `${compositeId}:${e.component}`, "devfile", - new vscode.CustomExecution(() => - this.terminalExtAPI.getMachineExecPTY( - e.component, - e.command, - e.workdir, - ), - ), + execution, ); task.presentationOptions = { - reveal: vscode.TaskRevealKind.Never ?? 0, - panel: vscode.TaskPanelKind.Dedicated ?? 1, + reveal: vscode.TaskRevealKind?.Never ?? 0, + panel: vscode.TaskPanelKind?.Dedicated ?? 1, clear: false, };