Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: upgrade TypeScript 7 (#38575)

Stephen Zhou512f39dedebe
diff --git a/cli/package.json b/cli/package.json
index 0e87f58ef2f..5610150789e 100644
--- a/cli/package.json
+++ b/cli/package.json
@@ -67,7 +67,7 @@
"test:e2e:local": "DIFY_E2E_MODE=local vp test --config vitest.e2e.config.ts",
"lint": "eslint",
"lint:fix": "eslint --fix",
- "type-check": "tsgo",
+ "type-check": "tsc",
"tree:gen": "bun scripts/generate-command-tree.ts",
"tree:check": "bun scripts/generate-command-tree.ts --check",
"prebuild": "pnpm tree:gen",
@@ -101,7 +101,7 @@
"@types/js-yaml": "catalog:",
"@types/lockfile": "catalog:",
"@types/node": "catalog:",
- "@typescript/native-preview": "catalog:",
+ "@typescript/native": "catalog:",
"@vitest/coverage-v8": "catalog:",
"eslint": "catalog:",
"hono": "catalog:",
diff --git a/e2e/package.json b/e2e/package.json
index c0804956f31..61120b1ba83 100644
--- a/e2e/package.json
+++ b/e2e/package.json
@@ -14,7 +14,7 @@
"e2e:middleware:up": "tsx ./scripts/setup.ts middleware-up",
"e2e:reset": "tsx ./scripts/setup.ts reset",
"seed": "tsx ./scripts/seed.ts",
- "type-check": "tsgo"
+ "type-check": "tsc"
},
"devDependencies": {
"@cucumber/cucumber": "catalog:",
@@ -23,7 +23,7 @@
"@playwright/test": "catalog:",
"@t3-oss/env-core": "catalog:",
"@types/node": "catalog:",
- "@typescript/native-preview": "catalog:",
+ "@typescript/native": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:",
"vite": "catalog:",
diff --git a/eslint-suppressions.json b/eslint-suppressions.json
index 81d07357845..e47650125fe 100644
--- a/eslint-suppressions.json
+++ b/eslint-suppressions.json
@@ -6910,11 +6910,6 @@
"count": 1
}
},
- "web/scripts/component-analyzer.js": {
- "regexp/no-unused-capturing-group": {
- "count": 6
- }
- },
"web/service/__tests__/base.spec.ts": {
"no-restricted-imports": {
"count": 1
diff --git a/package.json b/package.json
index 3923b3f257e..0f2da51474a 100644
--- a/package.json
+++ b/package.json
@@ -24,11 +24,13 @@
},
"devDependencies": {
"@antfu/eslint-config": "catalog:",
+ "@typescript/native": "catalog:",
"concurrently": "catalog:",
"eslint": "catalog:",
"eslint-markdown": "catalog:",
"eslint-plugin-markdown-preferences": "catalog:",
"eslint-plugin-no-barrel-files": "catalog:",
+ "typescript": "catalog:",
"vite": "catalog:",
"vite-plus": "catalog:"
}
diff --git a/packages/contracts/package.json b/packages/contracts/package.json
index 23356cc83aa..4846d84937f 100644
--- a/packages/contracts/package.json
+++ b/packages/contracts/package.json
@@ -22,7 +22,7 @@
"gen-api-contract-from-openapi": "node -e \"fs.rmSync('generated/api', { recursive: true, force: true })\" && openapi-ts -f openapi-ts.api.config.ts && vp fmt generated/api && eslint --fix generated/api",
"gen-api-openapi": "uv run --project ../../api ../../api/dev/generate_swagger_specs.py --output-dir openapi",
"gen-enterprise-contract": "openapi-ts -f openapi-ts.enterprise.config.ts",
- "type-check": "tsgo"
+ "type-check": "tsc"
},
"dependencies": {
"@orpc/contract": "catalog:",
@@ -33,7 +33,7 @@
"@hey-api/openapi-ts": "catalog:",
"@types/js-yaml": "catalog:",
"@types/node": "catalog:",
- "@typescript/native-preview": "catalog:",
+ "@typescript/native": "catalog:",
"eslint": "catalog:",
"js-yaml": "catalog:",
"typescript": "catalog:",
diff --git a/packages/dev-proxy/package.json b/packages/dev-proxy/package.json
index d6b28e113c7..05d3ad121af 100644
--- a/packages/dev-proxy/package.json
+++ b/packages/dev-proxy/package.json
@@ -24,7 +24,7 @@
"build": "vp pack",
"prepare": "pnpm run build",
"test": "vp test",
- "type-check": "tsgo",
+ "type-check": "tsc",
"prepublish": "pnpm run build"
},
"dependencies": {
@@ -36,7 +36,7 @@
"devDependencies": {
"@dify/tsconfig": "workspace:*",
"@types/node": "catalog:",
- "@typescript/native-preview": "catalog:",
+ "@typescript/native": "catalog:",
"vite": "catalog:",
"vite-plus": "catalog:",
"vitest": "catalog:"
diff --git a/packages/dify-ui/package.json b/packages/dify-ui/package.json
index 84403f25a36..a133ab31e0b 100644
--- a/packages/dify-ui/package.json
+++ b/packages/dify-ui/package.json
@@ -156,7 +156,7 @@
"test": "vp test --project unit",
"test:storybook": "vp test --project storybook --run",
"test:watch": "vp test --project unit --watch",
- "type-check": "tsgo"
+ "type-check": "tsc"
},
"peerDependencies": {
"@base-ui/react": "catalog:",
@@ -186,7 +186,7 @@
"@tanstack/react-virtual": "catalog:",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
- "@typescript/native-preview": "catalog:",
+ "@typescript/native": "catalog:",
"@vitejs/plugin-react": "catalog:",
"@vitest/browser": "catalog:",
"@vitest/browser-playwright": "catalog:",
diff --git a/packages/jotai-tanstack-form/package.json b/packages/jotai-tanstack-form/package.json
index 5d663d00a48..6114c29d6d7 100644
--- a/packages/jotai-tanstack-form/package.json
+++ b/packages/jotai-tanstack-form/package.json
@@ -11,7 +11,7 @@
},
"scripts": {
"test": "vp test",
- "type-check": "tsgo"
+ "type-check": "tsc"
},
"peerDependencies": {
"@tanstack/form-core": "catalog:",
@@ -20,7 +20,7 @@
"devDependencies": {
"@dify/tsconfig": "workspace:*",
"@tanstack/form-core": "catalog:",
- "@typescript/native-preview": "catalog:",
+ "@typescript/native": "catalog:",
"jotai": "catalog:",
"typescript": "catalog:",
"vite": "catalog:",
diff --git a/packages/migrate-no-unchecked-indexed-access/package.json b/packages/migrate-no-unchecked-indexed-access/package.json
index 6a29f403388..4dc5d0acad5 100644
--- a/packages/migrate-no-unchecked-indexed-access/package.json
+++ b/packages/migrate-no-unchecked-indexed-access/package.json
@@ -8,10 +8,10 @@
},
"scripts": {
"build": "vp pack",
- "type-check": "tsgo"
+ "type-check": "tsc"
},
"dependencies": {
- "@typescript/native-preview": "catalog:",
+ "@typescript/native": "catalog:",
"typescript": "catalog:"
},
"devDependencies": {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 189c91ed117..a44d12c7538 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -243,9 +243,9 @@ catalogs:
'@typescript-eslint/parser':
specifier: 8.62.0
version: 8.62.0
- '@typescript/native-preview':
- specifier: 7.0.0-dev.20260627.2
- version: 7.0.0-dev.20260627.2
+ '@typescript/native':
+ specifier: npm:[email protected]
+ version: 7.0.2
'@vitejs/plugin-react':
specifier: 6.0.3
version: 6.0.3
@@ -357,9 +357,6 @@ catalogs:
eslint-plugin-react-refresh:
specifier: 0.5.3
version: 0.5.3
- eslint-plugin-sonarjs:
- specifier: 4.1.0
- version: 4.1.0
eslint-plugin-storybook:
specifier: 10.4.6
version: 10.4.6
@@ -577,8 +574,8 @@ catalogs:
specifier: 4.22.4
version: 4.22.4
typescript:
- specifier: 6.0.3
- version: 6.0.3
+ specifier: npm:@typescript/[email protected]
+ version: 6.0.2
uglify-js:
specifier: 3.19.3
version: 3.19.3
@@ -650,7 +647,10 @@ importers:
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
+ '@typescript/native':
+ specifier: 'catalog:'
concurrently:
specifier: 'catalog:'
version: 10.0.3
@@ -665,16 +665,19 @@ importers:
eslint-plugin-no-barrel-files:
specifier: 'catalog:'
node:
specifier: runtime:^22.22.1
version: runtime:22.23.1
+ typescript:
+ specifier: 'catalog:'
+ version: '@typescript/[email protected]'
vite:
specifier: npm:@voidzero-dev/[email protected]
vite-plus:
specifier: 'catalog:'
cli:
dependencies:
@@ -739,9 +742,9 @@ importers:
'@types/node':
specifier: 'catalog:'
version: 25.9.4
- '@typescript/native-preview':
+ '@typescript/native':
specifier: 'catalog:'
- version: 7.0.0-dev.20260627.2
'@vitest/coverage-v8':
specifier: 'catalog:'
version: 4.1.9(@vitest/[email protected])([email protected])
@@ -753,16 +756,16 @@ importers:
version: 4.12.27
typescript:
specifier: 'catalog:'
- version: 6.0.3
+ version: '@typescript/[email protected]'
vite:
specifier: npm:@voidzero-dev/[email protected]
vite-plus:
specifier: 'catalog:'
vitest:
specifier: 4.1.9
e2e:
devDependencies:
@@ -780,25 +783,25 @@ importers:
version: 1.61.1
'@t3-oss/env-core':
specifier: 'catalog:'
+ version: 0.13.11(@typescript/[email protected])([email protected](@typescript/[email protected]))([email protected])
'@types/node':
specifier: 'catalog:'
version: 25.9.4
- '@typescript/native-preview':
+ '@typescript/native':
specifier: 'catalog:'
- version: 7.0.0-dev.20260627.2
tsx:
specifier: 'catalog:'
version: 4.22.4
typescript:
specifier: 'catalog:'
- version: 6.0.3
+ version: '@typescript/[email protected]'
vite:
specifier: npm:@voidzero-dev/[email protected]
vite-plus:
specifier: 'catalog:'
zod:
specifier: 'catalog:'
version: 4.4.3
@@ -817,16 +820,16 @@ importers:
version: link:../tsconfig
'@hey-api/openapi-ts':
specifier: 'catalog:'
+ version: 0.98.2(@typescript/[email protected])([email protected])
'@types/js-yaml':
specifier: 'catalog:'
version: 4.0.9
'@types/node':
specifier: 'catalog:'
version: 25.9.4
- '@typescript/native-preview':
+ '@typescript/native':
specifier: 'catalog:'
- version: 7.0.0-dev.20260627.2
eslint:
specifier: 'catalog:'
version: 10.6.0([email protected])
@@ -835,10 +838,10 @@ importers:
version: 4.3.0
typescript:
specifier: 'catalog:'
- version: 6.0.3
+ version: '@typescript/[email protected]'
vite-plus:
specifier: 'catalog:'
packages/dev-proxy:
dependencies:
@@ -861,9 +864,9 @@ importers:
'@types/node':
specifier: 'catalog:'
version: 25.9.4
- '@typescript/native-preview':
+ '@typescript/native':
specifier: 'catalog:'
- version: 7.0.0-dev.20260627.2
vite:
specifier: npm:@voidzero-dev/[email protected]
@@ -888,7 +891,7 @@ importers:
'@chromatic-com/storybook':
specifier: 'catalog:'
'@dify/tsconfig':
specifier: workspace:*
version: link:../tsconfig
@@ -900,25 +903,25 @@ importers:
version: 1.2.10
'@storybook/addon-a11y':
specifier: 'catalog:'
'@storybook/addon-docs':
specifier: 'catalog:'
'@storybook/addon-links':
specifier: 'catalog:'
'@storybook/addon-themes':
specifier: 'catalog:'
'@storybook/addon-vitest':
specifier: 'catalog:'
'@storybook/react-vite':
specifier: 'catalog:'
'@tailwindcss/vite':
specifier: 'catalog:'
'@tanstack/react-hotkeys':
specifier: 'catalog:'
@@ -931,18 +934,18 @@ importers:
'@types/react-dom':
specifier: 'catalog:'
version: 19.2.3(@types/[email protected])
- '@typescript/native-preview':
+ '@typescript/native':
specifier: 'catalog:'
- version: 7.0.0-dev.20260627.2
'@vitejs/plugin-react':
specifier: 'catalog:'
'@vitest/browser':
specifier: 'catalog:'
'@vitest/browser-playwright':
specifier: 'catalog:'
'@vitest/coverage-v8':
specifier: 'catalog:'
version: 4.1.9(@vitest/[email protected])([email protected])
@@ -960,22 +963,22 @@ importers:
version: 19.2.7([email protected])
storybook:
specifier: 'catalog:'
tailwindcss:
specifier: 'catalog:'
version: 4.3.1
typescript:
specifier: 'catalog:'
- version: 6.0.3
+ version: '@typescript/[email protected]'
vite:
specifier: npm:@voidzero-dev/[email protected]
vite-plus:
specifier: 'catalog:'
vitest:
specifier: 4.1.9
vitest-browser-react:
specifier: 'catalog:'
@@ -997,33 +1000,33 @@ importers:
'@tanstack/form-core':
specifier: 'catalog:'
version: 1.33.0
- '@typescript/native-preview':
+ '@typescript/native':
specifier: 'catalog:'
- version: 7.0.0-dev.20260627.2
jotai:
specifier: 'catalog:'
typescript:
specifier: 'catalog:'
- version: 6.0.3
+ version: '@typescript/[email protected]'
vite:
specifier: npm:@voidzero-dev/[email protected]
vite-plus:
specifier: 'catalog:'
vitest:
specifier: 4.1.9
packages/migrate-no-unchecked-indexed-access:
dependencies:
- '@typescript/native-preview':
+ '@typescript/native':
specifier: 'catalog:'
- version: 7.0.0-dev.20260627.2
typescript:
specifier: 'catalog:'
- version: 6.0.3
+ version: '@typescript/[email protected]'
devDependencies:
'@dify/tsconfig':
specifier: workspace:*
@@ -1033,10 +1036,10 @@ importers:
version: 25.9.4
vite:
specifier: npm:@voidzero-dev/[email protected]
vite-plus:
specifier: 'catalog:'
packages/tsconfig: {}
@@ -1053,13 +1056,13 @@ importers:
version: 25.9.4
'@typescript-eslint/eslint-plugin':
specifier: 'catalog:'
'@typescript-eslint/parser':
specifier: 'catalog:'
- '@typescript/native-preview':
+ '@typescript/native':
specifier: 'catalog:'
- version: 7.0.0-dev.20260627.2
'@vitest/coverage-v8':
specifier: 'catalog:'
version: 4.1.9(@vitest/[email protected])([email protected])
@@ -1068,16 +1071,16 @@ importers:
version: 10.6.0([email protected])
typescript:
specifier: 'catalog:'
- version: 6.0.3
+ version: '@typescript/[email protected]'
vite:
specifier: npm:@voidzero-dev/[email protected]
vite-plus:
specifier: 'catalog:'
vitest:
specifier: 4.1.9
web:
dependencies:
@@ -1104,25 +1107,25 @@ importers:
version: 2.2.0([email protected])
'@lexical/code':
specifier: npm:[email protected]
'@lexical/link':
specifier: 'catalog:'
- version: 0.46.0([email protected])
+ version: 0.46.0(@typescript/[email protected])
'@lexical/list':
specifier: 'catalog:'
- version: 0.46.0([email protected])
+ version: 0.46.0(@typescript/[email protected])
'@lexical/react':
specifier: 'catalog:'
'@lexical/selection':
specifier: 'catalog:'
- version: 0.46.0([email protected])
+ version: 0.46.0(@typescript/[email protected])
'@lexical/text':
specifier: 'catalog:'
- version: 0.46.0([email protected])
+ version: 0.46.0(@typescript/[email protected])
'@lexical/utils':
specifier: 'catalog:'
- version: 0.46.0([email protected])
+ version: 0.46.0(@typescript/[email protected])
'@monaco-editor/react':
specifier: 'catalog:'
@@ -1152,7 +1155,7 @@ importers:
version: 3.2.5
'@t3-oss/env-nextjs':
specifier: 'catalog:'
+ version: 0.13.11(@typescript/[email protected])([email protected](@typescript/[email protected]))([email protected])
'@tailwindcss/typography':
specifier: 'catalog:'
version: 0.5.20([email protected])
@@ -1245,7 +1248,7 @@ importers:
version: 1.11.13
i18next:
specifier: 'catalog:'
- version: 26.3.3([email protected])
+ version: 26.3.3(@typescript/[email protected])
i18next-resources-to-backend:
specifier: 'catalog:'
version: 1.2.1
@@ -1290,7 +1293,7 @@ importers:
version: 1.2.1
lexical:
specifier: 'catalog:'
- version: 0.46.0([email protected])
+ version: 0.46.0(@typescript/[email protected])
loro-crdt:
specifier: 'catalog:'
version: 1.13.6
@@ -1338,7 +1341,7 @@ importers:
react-i18next:
specifier: 'catalog:'
react-multi-email:
specifier: 'catalog:'
@@ -1414,10 +1417,10 @@ importers:
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
'@chromatic-com/storybook':
specifier: 'catalog:'
'@dify/contracts':
specifier: workspace:*
version: link:../packages/contracts
@@ -1432,7 +1435,7 @@ importers:
version: 1.9.2([email protected])
'@eslint-react/eslint-plugin':
specifier: 'catalog:'
'@iconify-json/heroicons':
specifier: 'catalog:'
version: 1.2.3
@@ -1465,31 +1468,31 @@ importers:
version: 4.2.1
'@storybook/addon-docs':
specifier: 'catalog:'
'@storybook/addon-links':
specifier: 'catalog:'
'@storybook/addon-onboarding':
specifier: 'catalog:'
'@storybook/addon-themes':
specifier: 'catalog:'
'@storybook/nextjs-vite':
specifier: 'catalog:'
'@storybook/react':
specifier: 'catalog:'
'@tailwindcss/postcss':
specifier: 'catalog:'
version: 4.3.1
'@tailwindcss/vite':
specifier: 'catalog:'
'@tanstack/eslint-plugin-query':
specifier: 'catalog:'
+ version: 5.101.2(@typescript/[email protected])([email protected]([email protected]))
'@testing-library/dom':
specifier: 'catalog:'
version: 10.4.1
@@ -1504,13 +1507,13 @@ importers:
version: 14.6.1(@testing-library/[email protected])
'@tsslint/cli':
specifier: 'catalog:'
+ version: 3.1.4(@tsslint/[email protected](@typescript/[email protected]))(@typescript/[email protected])
'@tsslint/compat-eslint':
specifier: 'catalog:'
- version: 3.1.4([email protected])
+ version: 3.1.4(@typescript/[email protected])
'@tsslint/config':
specifier: 'catalog:'
- version: 3.1.4(@tsslint/[email protected]([email protected]))
+ version: 3.1.4(@tsslint/[email protected](@typescript/[email protected]))
'@types/js-cookie':
specifier: 'catalog:'
version: 3.0.6
@@ -1537,16 +1540,16 @@ importers:
version: 1.15.9
'@typescript-eslint/parser':
specifier: 'catalog:'
- '@typescript/native-preview':
+ '@typescript/native':
specifier: 'catalog:'
- version: 7.0.0-dev.20260627.2
'@vitejs/plugin-react':
specifier: 'catalog:'
'@vitejs/plugin-rsc':
specifier: 'catalog:'
'@vitest/coverage-v8':
specifier: 'catalog:'
version: 4.1.9(@vitest/[email protected])([email protected])
@@ -1564,7 +1567,7 @@ importers:
eslint-plugin-better-tailwindcss:
specifier: 'catalog:'
eslint-plugin-hyoban:
specifier: 'catalog:'
@@ -1576,16 +1579,13 @@ importers:
eslint-plugin-no-barrel-files:
specifier: 'catalog:'
eslint-plugin-react-refresh:
specifier: 'catalog:'
- eslint-plugin-sonarjs:
- specifier: 'catalog:'
eslint-plugin-storybook:
specifier: 'catalog:'
happy-dom:
specifier: 'catalog:'
version: 20.10.6
@@ -1600,7 +1600,7 @@ importers:
storybook:
specifier: 'catalog:'
tailwindcss:
specifier: 'catalog:'
version: 4.3.1
@@ -1609,25 +1609,25 @@ importers:
version: 4.22.4
typescript:
specifier: 'catalog:'
- version: 6.0.3
+ version: '@typescript/[email protected]'
uglify-js:
specifier: 'catalog:'
version: 3.19.3
vinext:
specifier: 'catalog:'
vite:
specifier: npm:@voidzero-dev/[email protected]
vite-plugin-inspect:
specifier: 'catalog:'
vite-plus:
specifier: 'catalog:'
vitest:
specifier: 4.1.9
vitest-canvas-mock:
specifier: 'catalog:'
version: 1.1.4([email protected])
@@ -5055,51 +5055,128 @@ packages:
resolution: {integrity: sha512-CY3uyFSRbcQv3nnSv8S0+lDftMVz6P963PoRlxrV7ew/Md564g9ut60PYzdLM5qW4jFn93GBF+Soi90ISAN+GQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- '@typescript/[email protected]':
- resolution: {integrity: sha512-om8UapcrjCyQ7Vsn0eb6kEB/scwo2/Np95cOyCiIIjUWObsDKL/DSpkYX3Z1cxo1L8WY48UM5edR2bzzarBxBg==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==}
+ engines: {node: '>=16.20.0'}
+ cpu: [ppc64]
+ os: [aix]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==}
engines: {node: '>=16.20.0'}
cpu: [arm64]
os: [darwin]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-40IOEo0tMS8lNLK/iVhjPcZsgXY7Erijqe5b2HLN9eufoPaGFUfNpFQ8JYHI/xgEF6/JdgGAQp6j4s8E8oamew==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==}
engines: {node: '>=16.20.0'}
cpu: [x64]
os: [darwin]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-66G5zoTYUi358zkza1kAoUgAXs4Ek0eA69TyPDU350fH6wgepeEkCuD5kel4iTPuIbJE40WZABcbBsQJsRCbJQ==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==}
+ engines: {node: '>=16.20.0'}
+ cpu: [arm64]
+ os: [freebsd]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==}
+ engines: {node: '>=16.20.0'}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==}
engines: {node: '>=16.20.0'}
cpu: [arm64]
os: [linux]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-1wIpqbi6Y8plCc4dH1Qw12fBu5Uk1qAdEC1fnpybkztXG90ErTG8XeccQ/SeCAl2X65PnhUU+rvzNVwqfvGyGg==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==}
engines: {node: '>=16.20.0'}
cpu: [arm]
os: [linux]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-0v1xRUgREzDAaNjaKtHuX5jEHVmY/MC5YR/rvSTNSYbqtg3vnUvafimRpyInXwMq399a9K6SwW2omIOfYeNJmQ==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==}
+ engines: {node: '>=16.20.0'}
+ cpu: [loong64]
+ os: [linux]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==}
+ engines: {node: '>=16.20.0'}
+ cpu: [mips64el]
+ os: [linux]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==}
+ engines: {node: '>=16.20.0'}
+ cpu: [ppc64]
+ os: [linux]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==}
+ engines: {node: '>=16.20.0'}
+ cpu: [riscv64]
+ os: [linux]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==}
+ engines: {node: '>=16.20.0'}
+ cpu: [s390x]
+ os: [linux]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==}
engines: {node: '>=16.20.0'}
cpu: [x64]
os: [linux]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-kXsG81vUZxV4gjKfJP/Nx3mJISG9ijzQmXamDbDgPzndzpmD0g+RyzEF+s6RH5AzFAc3nuGcg3LQWY2QThl67w==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==}
engines: {node: '>=16.20.0'}
cpu: [arm64]
- os: [win32]
+ os: [netbsd]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==}
+ engines: {node: '>=16.20.0'}
+ cpu: [x64]
+ os: [netbsd]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==}
+ engines: {node: '>=16.20.0'}
+ cpu: [arm64]
+ os: [openbsd]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==}
+ engines: {node: '>=16.20.0'}
+ cpu: [x64]
+ os: [openbsd]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-+V3qtCz+L1d6xN1mFFHohzDnpHlPCLlOfZS11FE7Kjz/qfMViBjQwCAAtTlBT+GfZKj41nsQ5ybRqo2DVC1sMg==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==}
engines: {node: '>=16.20.0'}
cpu: [x64]
+ os: [sunos]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==}
+ engines: {node: '>=16.20.0'}
+ cpu: [arm64]
os: [win32]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-kJlusQpaCY5IxejXa5jcVUXu6IfLtIuK2+CWKvaFD3lqNhvt4OR3+1KOxAleaxHdvEc4fWMr0mrF7MIAmDXoAg==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==}
engines: {node: '>=16.20.0'}
+ cpu: [x64]
+ os: [win32]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-mbCddXd+jm7hfx7w2YU64/Av4/NqqeG3GoRZgxPcgoTxYjhrcfJRw9ULch71SS4G+Q3bOXFhRvPqjguN0Hyp5w==}
hasBin: true
@@ -5587,10 +5664,6 @@ packages:
resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==}
- resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==}
- engines: {node: '>=6'}
-
resolution: {integrity: sha512-hMQUl2bUFG339QygPM97E+mc8OY1IAchORZxm4a/frcYwKzozMzRVDBwHW0NjOqGElLm2O37AVQE8ikxlZHrMQ==}
engines: {node: '>=18.20'}
@@ -5599,10 +5672,6 @@ packages:
resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==}
- engines: {node: '>= 0.8'}
-
resolution: {integrity: sha512-cM0ApFQSBXuourJejzwv/AuPRvAxordTyParRVcHjjtXirtkzM0uK2L9TTn9s0cXZbG7E55jCivRQzoxYmRAlA==}
peerDependencies:
@@ -6575,11 +6644,6 @@ packages:
peerDependencies:
eslint: '>=9.38.0'
- resolution: {integrity: sha512-rh+FlVz0yfd2RNIb6WqSkuGh0addX/Qi5scwQ5FphXDFrM6fZKcxP1+attJ78yUKcyYfiu6MTaISPpAFPzqRJw==}
- peerDependencies:
- eslint: ^8.0.0 || ^9.0.0 || ^10.0.0
-
resolution: {integrity: sha512-CfGSXn6zFspeYTU8R7v797MOmJFj8xc6MWf/oGuRwbKeMoSwnliR+OlXSjMZYM1D6gfmwiuH1VX58LSHdn+ZPg==}
peerDependencies:
@@ -6873,9 +6937,6 @@ packages:
resolution: {integrity: sha512-jObKIik1P2QjPHP5nz5BaOtUlfgS0fWo8IUByNXkM+o+02sJOi94em77GwJKQSJ3gfPHdgzLNrHc1uokV4P/ew==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==}
-
resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}
@@ -7473,10 +7534,6 @@ packages:
resolution: {integrity: sha512-K+A9hhqbn0f3pJX17Q/7H6yQfD/5OXgdrR5UE12gMXCiN9D5Xq2o5mddV2QEcX/bjla99ASsAAQUyMCCRWAEhw==}
- resolution: {integrity: sha512-eQQBjBnsVtGacsG9uJNB8qOr3yA8rga4wAaGG1qRcBzSIvfhERLrWxMAM1hp5fcS6Abo8M4+bUBTekYR0qTPQw==}
- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
-
resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==}
engines: {node: '>=4.0'}
@@ -9424,6 +9481,11 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
+ resolution: {integrity: sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==}
+ engines: {node: '>=16.20.0'}
+ hasBin: true
+
resolution: {integrity: sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==}
@@ -10143,17 +10205,17 @@ snapshots:
idb: 8.0.0
tslib: 2.8.1
- dependencies:
+ : dependencies:
'@antfu/install-pkg': 1.1.0
'@clack/prompts': 1.6.0
'@eslint-community/eslint-plugin-eslint-comments': 4.7.2([email protected]([email protected])([email protected]))
'@eslint/markdown': 8.0.2
'@stylistic/eslint-plugin': 5.10.0([email protected]([email protected])([email protected]))
+ '@typescript-eslint/parser': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
ansis: 4.3.1
cac: 7.0.0
@@ -10161,19 +10223,19 @@ snapshots:
eslint-flat-config-utils: 3.2.0
eslint-merge-processors: 2.0.0([email protected]([email protected])([email protected]))
eslint-plugin-import-lite: 0.6.0([email protected]([email protected])([email protected]))
eslint-plugin-no-only-tests: 3.4.0
+ eslint-plugin-perfectionist: 5.9.1(@typescript/[email protected])([email protected]([email protected])([email protected]))
eslint-plugin-unicorn: 68.0.0([email protected]([email protected])([email protected]))
eslint-processor-vue-blocks: 2.0.0([email protected]([email protected])([email protected]))
globals: 17.7.0
@@ -10183,7 +10245,7 @@ snapshots:
yaml-eslint-parser: 2.0.0
optionalDependencies:
+ '@eslint-react/eslint-plugin': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
'@next/eslint-plugin-next': 16.2.9
eslint-plugin-jsx-a11y: 6.10.2([email protected]([email protected])([email protected]))
eslint-plugin-react-refresh: 0.5.3([email protected]([email protected])([email protected]))
@@ -10199,17 +10261,17 @@ snapshots:
- typescript
- vitest
dependencies:
'@antfu/install-pkg': 1.1.0
'@clack/prompts': 1.6.0
'@eslint-community/eslint-plugin-eslint-comments': 4.7.2([email protected]([email protected]))
'@eslint/markdown': 8.0.2
'@stylistic/eslint-plugin': 5.10.0([email protected]([email protected]))
+ '@typescript-eslint/parser': 8.62.0(@typescript/[email protected])([email protected]([email protected]))([email protected])
ansis: 4.3.1
cac: 7.0.0
eslint: 10.6.0([email protected])
@@ -10217,19 +10279,19 @@ snapshots:
eslint-flat-config-utils: 3.2.0
eslint-merge-processors: 2.0.0([email protected]([email protected]))
eslint-plugin-antfu: 3.2.3([email protected]([email protected]))
+ eslint-plugin-command: 3.5.2(@typescript-eslint/[email protected](@typescript/[email protected]))(@typescript-eslint/[email protected](@typescript/[email protected])([email protected]([email protected])))([email protected]([email protected]))
eslint-plugin-import-lite: 0.6.0([email protected]([email protected]))
eslint-plugin-jsdoc: 63.0.10([email protected]([email protected]))
eslint-plugin-jsonc: 3.2.0([email protected]([email protected]))
+ eslint-plugin-n: 18.2.1(@typescript/[email protected])([email protected]([email protected]))
eslint-plugin-no-only-tests: 3.4.0
- eslint-plugin-perfectionist: 5.9.1([email protected]([email protected]))([email protected])
+ eslint-plugin-perfectionist: 5.9.1(@typescript/[email protected])([email protected]([email protected]))
eslint-plugin-pnpm: 1.6.1([email protected]([email protected]))
eslint-plugin-regexp: 3.1.1([email protected]([email protected]))
eslint-plugin-toml: 1.4.0([email protected]([email protected]))
eslint-plugin-unicorn: 68.0.0([email protected]([email protected]))
eslint-plugin-yml: 3.5.0([email protected]([email protected]))
eslint-processor-vue-blocks: 2.0.0([email protected]([email protected]))
globals: 17.7.0
@@ -10239,7 +10301,7 @@ snapshots:
vue-eslint-parser: 10.4.1([email protected]([email protected]))
yaml-eslint-parser: 2.0.0
optionalDependencies:
- '@eslint-react/eslint-plugin': 5.9.5([email protected]([email protected]))([email protected])
+ '@eslint-react/eslint-plugin': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
'@next/eslint-plugin-next': 16.2.9
eslint-plugin-jsx-a11y: 6.10.2([email protected]([email protected]))
eslint-plugin-react-refresh: 0.5.3([email protected]([email protected]))
@@ -10395,24 +10457,24 @@ snapshots:
'@chevrotain/[email protected]': {}
dependencies:
'@neoconfetti/react': 1.0.0
chromatic: 16.10.0
jsonfile: 6.2.1
strip-ansi: 7.2.0
transitivePeerDependencies:
- '@chromatic-com/cypress'
- '@chromatic-com/playwright'
- '@chromatic-com/vitest'
dependencies:
'@neoconfetti/react': 1.0.0
chromatic: 16.10.0
jsonfile: 6.2.1
strip-ansi: 7.2.0
transitivePeerDependencies:
- '@chromatic-com/cypress'
@@ -10579,11 +10641,11 @@ snapshots:
'@cucumber/[email protected]': {}
dependencies:
birpc: 4.0.0
pathe: 2.0.3
perfect-debounce: 2.1.0
tinyexec: 1.2.4
@@ -10598,23 +10660,23 @@ snapshots:
- vite
- webpack
dependencies:
empathic: 2.0.1
module-replacements: 3.0.0-beta.8
semver: 7.8.5
optionalDependencies:
dependencies:
empathic: 2.0.1
module-replacements: 3.0.0-beta.8
semver: 7.8.5
optionalDependencies:
eslint: 10.6.0([email protected])
dependencies:
@@ -10797,184 +10859,184 @@ snapshots:
'@eslint-community/[email protected]': {}
dependencies:
'@typescript-eslint/types': 8.62.0
- '@typescript-eslint/typescript-estree': 8.62.0([email protected])
+ '@typescript-eslint/typescript-estree': 8.62.0(@typescript/[email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
string-ts: 2.3.1
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
optional: true
dependencies:
'@typescript-eslint/types': 8.62.0
- '@typescript-eslint/typescript-estree': 8.62.0([email protected])
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/typescript-estree': 8.62.0(@typescript/[email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
eslint: 10.6.0([email protected])
string-ts: 2.3.1
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
dependencies:
+ '@eslint-react/ast': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/jsx': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/shared': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/var': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
'@typescript-eslint/scope-manager': 8.62.0
'@typescript-eslint/types': 8.62.0
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
optional: true
dependencies:
- '@eslint-react/eslint': 5.9.5([email protected]([email protected]))([email protected])
- '@eslint-react/shared': 5.9.5([email protected]([email protected]))([email protected])
+ '@eslint-react/ast': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/jsx': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/shared': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/var': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
'@typescript-eslint/scope-manager': 8.62.0
'@typescript-eslint/types': 8.62.0
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
eslint: 10.6.0([email protected])
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
dependencies:
+ '@eslint-react/shared': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
- eslint-plugin-react-naming-convention: 5.9.5([email protected]([email protected])([email protected]))([email protected])
- typescript: 6.0.3
+ eslint-plugin-react-dom: 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ eslint-plugin-react-jsx: 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ eslint-plugin-react-naming-convention: 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ eslint-plugin-react-rsc: 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ eslint-plugin-react-web-api: 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ eslint-plugin-react-x: 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
optional: true
dependencies:
- '@eslint-react/shared': 5.9.5([email protected]([email protected]))([email protected])
+ '@eslint-react/shared': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
eslint: 10.6.0([email protected])
- eslint-plugin-react-dom: 5.9.5([email protected]([email protected]))([email protected])
- eslint-plugin-react-jsx: 5.9.5([email protected]([email protected]))([email protected])
- eslint-plugin-react-naming-convention: 5.9.5([email protected]([email protected]))([email protected])
- eslint-plugin-react-rsc: 5.9.5([email protected]([email protected]))([email protected])
- eslint-plugin-react-web-api: 5.9.5([email protected]([email protected]))([email protected])
- eslint-plugin-react-x: 5.9.5([email protected]([email protected]))([email protected])
- typescript: 6.0.3
+ eslint-plugin-react-dom: 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ eslint-plugin-react-jsx: 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ eslint-plugin-react-naming-convention: 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ eslint-plugin-react-rsc: 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ eslint-plugin-react-web-api: 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ eslint-plugin-react-x: 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
dependencies:
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
optional: true
dependencies:
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
eslint: 10.6.0([email protected])
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
dependencies:
+ '@eslint-react/ast': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/shared': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/var': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
'@typescript-eslint/types': 8.62.0
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
optional: true
dependencies:
- '@eslint-react/eslint': 5.9.5([email protected]([email protected]))([email protected])
- '@eslint-react/shared': 5.9.5([email protected]([email protected]))([email protected])
+ '@eslint-react/ast': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/shared': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/var': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
'@typescript-eslint/types': 8.62.0
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
eslint: 10.6.0([email protected])
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
dependencies:
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
zod: 4.4.3
transitivePeerDependencies:
- supports-color
optional: true
dependencies:
- '@eslint-react/eslint': 5.9.5([email protected]([email protected]))([email protected])
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
eslint: 10.6.0([email protected])
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
zod: 4.4.3
transitivePeerDependencies:
- supports-color
dependencies:
+ '@eslint-react/ast': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
'@typescript-eslint/scope-manager': 8.62.0
'@typescript-eslint/types': 8.62.0
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
optional: true
dependencies:
- '@eslint-react/eslint': 5.9.5([email protected]([email protected]))([email protected])
+ '@eslint-react/ast': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
'@typescript-eslint/scope-manager': 8.62.0
'@typescript-eslint/types': 8.62.0
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
eslint: 10.6.0([email protected])
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
@@ -11115,7 +11177,7 @@ snapshots:
'@types/json-schema': 7.0.15
js-yaml: 4.3.0
dependencies:
'@hey-api/codegen-core': 0.9.0([email protected])
'@hey-api/json-schema-ref-parser': 1.4.3
@@ -11127,7 +11189,7 @@ snapshots:
color-support: 1.1.3
commander: 15.0.0
get-tsconfig: 4.14.0
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- magicast
@@ -11417,21 +11479,21 @@ snapshots:
dependencies:
minipass: 7.1.3
dependencies:
glob: 13.0.6
- react-docgen-typescript: 2.4.0([email protected])
+ react-docgen-typescript: 2.4.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
dependencies:
glob: 13.0.6
- react-docgen-typescript: 2.4.0([email protected])
+ react-docgen-typescript: 2.4.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
'@jridgewell/[email protected]':
dependencies:
@@ -11454,224 +11516,224 @@ snapshots:
'@jsdevtools/[email protected]': {}
+ '@lexical/[email protected](@typescript/[email protected])':
dependencies:
- '@lexical/extension': 0.46.0([email protected])
- '@lexical/html': 0.46.0([email protected])
- '@lexical/internal': 0.46.0([email protected])
- '@lexical/list': 0.46.0([email protected])
- '@lexical/selection': 0.46.0([email protected])
- '@lexical/utils': 0.46.0([email protected])
+ '@lexical/extension': 0.46.0(@typescript/[email protected])
+ '@lexical/html': 0.46.0(@typescript/[email protected])
+ '@lexical/internal': 0.46.0(@typescript/[email protected])
+ '@lexical/list': 0.46.0(@typescript/[email protected])
+ '@lexical/selection': 0.46.0(@typescript/[email protected])
+ '@lexical/utils': 0.46.0(@typescript/[email protected])
'@types/trusted-types': 2.0.7
- lexical: 0.46.0([email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@lexical/[email protected](@typescript/[email protected])':
dependencies:
- '@lexical/extension': 0.46.0([email protected])
- '@lexical/html': 0.46.0([email protected])
- '@lexical/internal': 0.46.0([email protected])
- '@lexical/utils': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ '@lexical/extension': 0.46.0(@typescript/[email protected])
+ '@lexical/html': 0.46.0(@typescript/[email protected])
+ '@lexical/internal': 0.46.0(@typescript/[email protected])
+ '@lexical/utils': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
dependencies:
- '@lexical/html': 0.46.0([email protected])
- '@lexical/link': 0.46.0([email protected])
- '@lexical/mark': 0.46.0([email protected])
- '@lexical/table': 0.46.0([email protected])
- '@lexical/utils': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ '@lexical/html': 0.46.0(@typescript/[email protected])
+ '@lexical/link': 0.46.0(@typescript/[email protected])
+ '@lexical/mark': 0.46.0(@typescript/[email protected])
+ '@lexical/table': 0.46.0(@typescript/[email protected])
+ '@lexical/utils': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
react: 19.2.7
react-dom: 19.2.7([email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@lexical/[email protected](@typescript/[email protected])':
dependencies:
- '@lexical/extension': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ '@lexical/extension': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@lexical/[email protected](@typescript/[email protected])':
dependencies:
- '@lexical/internal': 0.46.0([email protected])
- '@lexical/utils': 0.46.0([email protected])
+ '@lexical/internal': 0.46.0(@typescript/[email protected])
+ '@lexical/utils': 0.46.0(@typescript/[email protected])
'@preact/signals-core': 1.14.3
- lexical: 0.46.0([email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@lexical/[email protected](@typescript/[email protected])':
dependencies:
- '@lexical/text': 0.46.0([email protected])
- '@lexical/utils': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ '@lexical/text': 0.46.0(@typescript/[email protected])
+ '@lexical/utils': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@lexical/[email protected](@typescript/[email protected])':
dependencies:
- '@lexical/extension': 0.46.0([email protected])
- '@lexical/utils': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ '@lexical/extension': 0.46.0(@typescript/[email protected])
+ '@lexical/utils': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@lexical/[email protected](@typescript/[email protected])':
dependencies:
- '@lexical/extension': 0.46.0([email protected])
- '@lexical/internal': 0.46.0([email protected])
- '@lexical/selection': 0.46.0([email protected])
- '@lexical/utils': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ '@lexical/extension': 0.46.0(@typescript/[email protected])
+ '@lexical/internal': 0.46.0(@typescript/[email protected])
+ '@lexical/selection': 0.46.0(@typescript/[email protected])
+ '@lexical/utils': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@lexical/[email protected](@typescript/[email protected])':
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@lexical/[email protected](@typescript/[email protected])':
dependencies:
- '@lexical/extension': 0.46.0([email protected])
- '@lexical/html': 0.46.0([email protected])
- '@lexical/internal': 0.46.0([email protected])
- '@lexical/utils': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ '@lexical/extension': 0.46.0(@typescript/[email protected])
+ '@lexical/html': 0.46.0(@typescript/[email protected])
+ '@lexical/internal': 0.46.0(@typescript/[email protected])
+ '@lexical/utils': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@lexical/[email protected](@typescript/[email protected])':
dependencies:
- '@lexical/extension': 0.46.0([email protected])
- '@lexical/html': 0.46.0([email protected])
- '@lexical/internal': 0.46.0([email protected])
- '@lexical/utils': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ '@lexical/extension': 0.46.0(@typescript/[email protected])
+ '@lexical/html': 0.46.0(@typescript/[email protected])
+ '@lexical/internal': 0.46.0(@typescript/[email protected])
+ '@lexical/utils': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@lexical/[email protected](@typescript/[email protected])':
dependencies:
- '@lexical/utils': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ '@lexical/utils': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
-
- dependencies:
- '@lexical/code-core': 0.46.0([email protected])
- '@lexical/internal': 0.46.0([email protected])
- '@lexical/link': 0.46.0([email protected])
- '@lexical/list': 0.46.0([email protected])
- '@lexical/rich-text': 0.46.0([email protected])
- '@lexical/selection': 0.46.0([email protected])
- '@lexical/text': 0.46.0([email protected])
- '@lexical/utils': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ typescript: '@typescript/[email protected]'
+
+ '@lexical/[email protected](@typescript/[email protected])':
+ dependencies:
+ '@lexical/code-core': 0.46.0(@typescript/[email protected])
+ '@lexical/internal': 0.46.0(@typescript/[email protected])
+ '@lexical/link': 0.46.0(@typescript/[email protected])
+ '@lexical/list': 0.46.0(@typescript/[email protected])
+ '@lexical/rich-text': 0.46.0(@typescript/[email protected])
+ '@lexical/selection': 0.46.0(@typescript/[email protected])
+ '@lexical/text': 0.46.0(@typescript/[email protected])
+ '@lexical/utils': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@lexical/[email protected](@typescript/[email protected])':
dependencies:
- lexical: 0.46.0([email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@lexical/[email protected](@typescript/[email protected])':
dependencies:
- '@lexical/clipboard': 0.46.0([email protected])
- '@lexical/dragon': 0.46.0([email protected])
- '@lexical/extension': 0.46.0([email protected])
- '@lexical/selection': 0.46.0([email protected])
- '@lexical/utils': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ '@lexical/clipboard': 0.46.0(@typescript/[email protected])
+ '@lexical/dragon': 0.46.0(@typescript/[email protected])
+ '@lexical/extension': 0.46.0(@typescript/[email protected])
+ '@lexical/selection': 0.46.0(@typescript/[email protected])
+ '@lexical/utils': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
dependencies:
'@floating-ui/react': 0.27.19([email protected]([email protected]))([email protected])
- '@lexical/dragon': 0.46.0([email protected])
- '@lexical/extension': 0.46.0([email protected])
- '@lexical/hashtag': 0.46.0([email protected])
- '@lexical/history': 0.46.0([email protected])
- '@lexical/internal': 0.46.0([email protected])
- '@lexical/link': 0.46.0([email protected])
- '@lexical/list': 0.46.0([email protected])
- '@lexical/mark': 0.46.0([email protected])
- '@lexical/markdown': 0.46.0([email protected])
- '@lexical/overflow': 0.46.0([email protected])
- '@lexical/plain-text': 0.46.0([email protected])
- '@lexical/rich-text': 0.46.0([email protected])
- '@lexical/table': 0.46.0([email protected])
- '@lexical/text': 0.46.0([email protected])
- '@lexical/utils': 0.46.0([email protected])
- '@lexical/yjs': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ '@lexical/devtools-core': 0.46.0(@typescript/[email protected])([email protected]([email protected]))([email protected])
+ '@lexical/dragon': 0.46.0(@typescript/[email protected])
+ '@lexical/extension': 0.46.0(@typescript/[email protected])
+ '@lexical/hashtag': 0.46.0(@typescript/[email protected])
+ '@lexical/history': 0.46.0(@typescript/[email protected])
+ '@lexical/internal': 0.46.0(@typescript/[email protected])
+ '@lexical/link': 0.46.0(@typescript/[email protected])
+ '@lexical/list': 0.46.0(@typescript/[email protected])
+ '@lexical/mark': 0.46.0(@typescript/[email protected])
+ '@lexical/markdown': 0.46.0(@typescript/[email protected])
+ '@lexical/overflow': 0.46.0(@typescript/[email protected])
+ '@lexical/plain-text': 0.46.0(@typescript/[email protected])
+ '@lexical/rich-text': 0.46.0(@typescript/[email protected])
+ '@lexical/table': 0.46.0(@typescript/[email protected])
+ '@lexical/text': 0.46.0(@typescript/[email protected])
+ '@lexical/utils': 0.46.0(@typescript/[email protected])
+ '@lexical/yjs': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
react: 19.2.7
react-dom: 19.2.7([email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@lexical/[email protected](@typescript/[email protected])':
dependencies:
- '@lexical/clipboard': 0.46.0([email protected])
- '@lexical/dragon': 0.46.0([email protected])
- '@lexical/extension': 0.46.0([email protected])
- '@lexical/html': 0.46.0([email protected])
- '@lexical/selection': 0.46.0([email protected])
- '@lexical/utils': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ '@lexical/clipboard': 0.46.0(@typescript/[email protected])
+ '@lexical/dragon': 0.46.0(@typescript/[email protected])
+ '@lexical/extension': 0.46.0(@typescript/[email protected])
+ '@lexical/html': 0.46.0(@typescript/[email protected])
+ '@lexical/selection': 0.46.0(@typescript/[email protected])
+ '@lexical/utils': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@lexical/[email protected](@typescript/[email protected])':
dependencies:
- '@lexical/internal': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ '@lexical/internal': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@lexical/[email protected](@typescript/[email protected])':
dependencies:
- '@lexical/clipboard': 0.46.0([email protected])
- '@lexical/extension': 0.46.0([email protected])
- '@lexical/html': 0.46.0([email protected])
- '@lexical/internal': 0.46.0([email protected])
- '@lexical/utils': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ '@lexical/clipboard': 0.46.0(@typescript/[email protected])
+ '@lexical/extension': 0.46.0(@typescript/[email protected])
+ '@lexical/html': 0.46.0(@typescript/[email protected])
+ '@lexical/internal': 0.46.0(@typescript/[email protected])
+ '@lexical/utils': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@lexical/[email protected](@typescript/[email protected])':
dependencies:
- '@lexical/internal': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ '@lexical/internal': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@lexical/[email protected](@typescript/[email protected])':
dependencies:
- '@lexical/internal': 0.46.0([email protected])
- '@lexical/selection': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ '@lexical/internal': 0.46.0(@typescript/[email protected])
+ '@lexical/selection': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@lexical/[email protected](@typescript/[email protected])':
dependencies:
- '@lexical/internal': 0.46.0([email protected])
- '@lexical/selection': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ '@lexical/internal': 0.46.0(@typescript/[email protected])
+ '@lexical/selection': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
'@lukeed/[email protected]': {}
@@ -12676,21 +12738,21 @@ snapshots:
'@standard-schema/[email protected]': {}
dependencies:
'@storybook/global': 5.0.0
axe-core: 4.12.1
dependencies:
'@mdx-js/react': 3.1.1(@types/[email protected])([email protected])
'@storybook/icons': 2.1.0([email protected])
react: 19.2.7
react-dom: 19.2.7([email protected])
ts-dedent: 2.3.0
optionalDependencies:
'@types/react': 19.2.17
@@ -12701,15 +12763,15 @@ snapshots:
- vite
- webpack
dependencies:
'@mdx-js/react': 3.1.1(@types/[email protected])([email protected])
'@storybook/icons': 2.1.0([email protected])
react: 19.2.7
react-dom: 19.2.7([email protected])
ts-dedent: 2.3.0
optionalDependencies:
'@types/react': 19.2.17
@@ -12720,86 +12782,86 @@ snapshots:
- vite
- webpack
dependencies:
'@storybook/global': 5.0.0
optionalDependencies:
'@types/react': 19.2.17
react: 19.2.7
dependencies:
'@storybook/global': 5.0.0
optionalDependencies:
'@types/react': 19.2.17
react: 19.2.7
dependencies:
dependencies:
ts-dedent: 2.3.0
dependencies:
ts-dedent: 2.3.0
dependencies:
'@storybook/global': 5.0.0
'@storybook/icons': 2.1.0([email protected])
optionalDependencies:
'@vitest/runner': 4.1.9
transitivePeerDependencies:
- react
dependencies:
ts-dedent: 2.3.0
transitivePeerDependencies:
- esbuild
- rollup
- webpack
dependencies:
ts-dedent: 2.3.0
transitivePeerDependencies:
- esbuild
- rollup
- webpack
dependencies:
unplugin: 2.3.11
optionalDependencies:
esbuild: 0.28.1
dependencies:
unplugin: 2.3.11
optionalDependencies:
esbuild: 0.28.1
'@storybook/[email protected]': {}
@@ -12807,22 +12869,22 @@ snapshots:
dependencies:
react: 19.2.7
dependencies:
react: 19.2.7
react-dom: 19.2.7([email protected])
styled-jsx: 5.1.6(@babel/[email protected])([email protected])
optionalDependencies:
'@types/react': 19.2.17
'@types/react-dom': 19.2.3(@types/[email protected])
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros
@@ -12831,39 +12893,39 @@ snapshots:
- supports-color
- webpack
dependencies:
react: 19.2.7
react-dom: 19.2.7([email protected])
optionalDependencies:
'@types/react': 19.2.17
'@types/react-dom': 19.2.3(@types/[email protected])
dependencies:
react: 19.2.7
react-dom: 19.2.7([email protected])
optionalDependencies:
'@types/react': 19.2.17
'@types/react-dom': 19.2.3(@types/[email protected])
dependencies:
- '@joshwooding/vite-plugin-react-docgen-typescript': 0.7.0(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])
+ '@joshwooding/vite-plugin-react-docgen-typescript': 0.7.0(@typescript/[email protected])(@voidzero-dev/[email protected](@types/[email protected])(@typescript/[email protected])([email protected])([email protected])([email protected])([email protected]))
'@rollup/pluginutils': 5.4.0
empathic: 2.0.1
magic-string: 0.30.21
react: 19.2.7
react-docgen: 8.0.3
react-dom: 19.2.7([email protected])
resolve: 1.22.12
tsconfig-paths: 4.2.0
transitivePeerDependencies:
- '@types/react'
- '@types/react-dom'
@@ -12873,21 +12935,21 @@ snapshots:
- typescript
- webpack
dependencies:
- '@joshwooding/vite-plugin-react-docgen-typescript': 0.7.0(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])
+ '@joshwooding/vite-plugin-react-docgen-typescript': 0.7.0(@typescript/[email protected])(@voidzero-dev/[email protected](@types/[email protected])(@typescript/[email protected])([email protected])([email protected])([email protected])([email protected]))
'@rollup/pluginutils': 5.4.0
empathic: 2.0.1
magic-string: 0.30.21
react: 19.2.7
react-docgen: 8.0.3
react-dom: 19.2.7([email protected])
resolve: 1.22.12
tsconfig-paths: 4.2.0
transitivePeerDependencies:
- '@types/react'
- '@types/react-dom'
@@ -12897,35 +12959,35 @@ snapshots:
- typescript
- webpack
dependencies:
'@storybook/global': 5.0.0
react: 19.2.7
react-docgen: 8.0.3
- react-docgen-typescript: 2.4.0([email protected])
+ react-docgen-typescript: 2.4.0(@typescript/[email protected])
react-dom: 19.2.7([email protected])
optionalDependencies:
'@types/react': 19.2.17
'@types/react-dom': 19.2.3(@types/[email protected])
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
dependencies:
'@storybook/global': 5.0.0
react: 19.2.7
react-docgen: 8.0.3
- react-docgen-typescript: 2.4.0([email protected])
+ react-docgen-typescript: 2.4.0(@typescript/[email protected])
react-dom: 19.2.7([email protected])
optionalDependencies:
'@types/react': 19.2.17
'@types/react-dom': 19.2.3(@types/[email protected])
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
@@ -12964,18 +13026,18 @@ snapshots:
dependencies:
tslib: 2.8.1
optionalDependencies:
- typescript: 6.0.3
- valibot: 1.4.2([email protected])
+ typescript: '@typescript/[email protected]'
+ valibot: 1.4.2(@typescript/[email protected])
zod: 4.4.3
dependencies:
+ '@t3-oss/env-core': 0.13.11(@typescript/[email protected])([email protected](@typescript/[email protected]))([email protected])
optionalDependencies:
- typescript: 6.0.3
- valibot: 1.4.2([email protected])
+ typescript: '@typescript/[email protected]'
+ valibot: 1.4.2(@typescript/[email protected])
zod: 4.4.3
'@tailwindcss/[email protected]':
@@ -13052,28 +13114,28 @@ snapshots:
postcss-selector-parser: 6.1.4
tailwindcss: 4.3.1
dependencies:
'@tailwindcss/node': 4.3.1
'@tailwindcss/oxide': 4.3.1
tailwindcss: 4.3.1
dependencies:
'@tailwindcss/node': 4.3.1
'@tailwindcss/oxide': 4.3.1
tailwindcss: 4.3.1
'@tanstack/[email protected]': {}
dependencies:
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
eslint: 10.6.0([email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
@@ -13164,32 +13226,32 @@ snapshots:
dependencies:
'@testing-library/dom': 10.4.1
+ '@tsslint/[email protected](@tsslint/[email protected](@typescript/[email protected]))(@typescript/[email protected])':
dependencies:
- '@tsslint/config': 3.1.4(@tsslint/[email protected]([email protected]))
+ '@tsslint/config': 3.1.4(@tsslint/[email protected](@typescript/[email protected]))
'@tsslint/core': 3.1.4
'@tsslint/types': 3.1.4
'@volar/language-core': 2.4.28
'@volar/language-hub': 0.0.1
'@volar/typescript': 2.4.28
minimatch: 10.2.5
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- '@tsslint/compat-eslint'
- tsl
+ '@tsslint/[email protected](@typescript/[email protected])':
dependencies:
'@tsslint/types': 3.1.4
esquery: 1.7.0
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
+ '@tsslint/[email protected](@tsslint/[email protected](@typescript/[email protected]))':
dependencies:
'@tsslint/types': 3.1.4
minimatch: 10.2.5
optionalDependencies:
- '@tsslint/compat-eslint': 3.1.4([email protected])
+ '@tsslint/compat-eslint': 3.1.4(@typescript/[email protected])
'@tsslint/[email protected]':
dependencies:
@@ -13439,68 +13501,68 @@ snapshots:
'@types/[email protected]': {}
dependencies:
'@eslint-community/regexpp': 4.12.2
+ '@typescript-eslint/parser': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
'@typescript-eslint/scope-manager': 8.62.0
- '@typescript-eslint/type-utils': 8.62.0([email protected]([email protected])([email protected]))([email protected])
+ '@typescript-eslint/type-utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
'@typescript-eslint/visitor-keys': 8.62.0
ignore: 7.0.5
natural-compare: 1.4.0
- ts-api-utils: 2.5.0([email protected])
- typescript: 6.0.3
+ ts-api-utils: 2.5.0(@typescript/[email protected])
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
dependencies:
'@eslint-community/regexpp': 4.12.2
+ '@typescript-eslint/parser': 8.62.0(@typescript/[email protected])([email protected]([email protected]))([email protected])
'@typescript-eslint/scope-manager': 8.62.0
- '@typescript-eslint/type-utils': 8.62.0([email protected]([email protected]))([email protected])([email protected])
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/type-utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
'@typescript-eslint/visitor-keys': 8.62.0
eslint: 10.6.0([email protected])
ignore: 7.0.5
natural-compare: 1.4.0
- ts-api-utils: 2.5.0([email protected])
- typescript: 6.0.3
+ ts-api-utils: 2.5.0(@typescript/[email protected])
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/scope-manager': 8.62.0
'@typescript-eslint/types': 8.62.0
- '@typescript-eslint/typescript-estree': 8.62.0([email protected])
+ '@typescript-eslint/typescript-estree': 8.62.0(@typescript/[email protected])
'@typescript-eslint/visitor-keys': 8.62.0
debug: 4.4.3([email protected])
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/scope-manager': 8.62.0
'@typescript-eslint/types': 8.62.0
- '@typescript-eslint/typescript-estree': 8.62.0([email protected])
+ '@typescript-eslint/typescript-estree': 8.62.0(@typescript/[email protected])
'@typescript-eslint/visitor-keys': 8.62.0
debug: 4.4.3([email protected])
eslint: 10.6.0([email protected])
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
- '@typescript-eslint/[email protected]([email protected])':
+ '@typescript-eslint/[email protected](@typescript/[email protected])':
dependencies:
- '@typescript-eslint/tsconfig-utils': 8.62.0([email protected])
+ '@typescript-eslint/tsconfig-utils': 8.62.0(@typescript/[email protected])
'@typescript-eslint/types': 8.62.0
debug: 4.4.3([email protected])
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
@@ -13509,70 +13571,70 @@ snapshots:
'@typescript-eslint/types': 8.62.0
'@typescript-eslint/visitor-keys': 8.62.0
- '@typescript-eslint/[email protected]([email protected])':
+ '@typescript-eslint/[email protected](@typescript/[email protected])':
dependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
dependencies:
'@typescript-eslint/types': 8.62.0
- '@typescript-eslint/typescript-estree': 8.62.0([email protected])
+ '@typescript-eslint/typescript-estree': 8.62.0(@typescript/[email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
debug: 4.4.3([email protected])
- ts-api-utils: 2.5.0([email protected])
- typescript: 6.0.3
+ ts-api-utils: 2.5.0(@typescript/[email protected])
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/types': 8.62.0
- '@typescript-eslint/typescript-estree': 8.62.0([email protected])
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/typescript-estree': 8.62.0(@typescript/[email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
debug: 4.4.3([email protected])
eslint: 10.6.0([email protected])
- ts-api-utils: 2.5.0([email protected])
- typescript: 6.0.3
+ ts-api-utils: 2.5.0(@typescript/[email protected])
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
'@typescript-eslint/[email protected]': {}
- '@typescript-eslint/[email protected]([email protected])':
+ '@typescript-eslint/[email protected](@typescript/[email protected])':
dependencies:
- '@typescript-eslint/project-service': 8.62.0([email protected])
- '@typescript-eslint/tsconfig-utils': 8.62.0([email protected])
+ '@typescript-eslint/project-service': 8.62.0(@typescript/[email protected])
+ '@typescript-eslint/tsconfig-utils': 8.62.0(@typescript/[email protected])
'@typescript-eslint/types': 8.62.0
'@typescript-eslint/visitor-keys': 8.62.0
debug: 4.4.3([email protected])
minimatch: 10.2.5
semver: 7.8.5
tinyglobby: 0.2.17
- ts-api-utils: 2.5.0([email protected])
- typescript: 6.0.3
+ ts-api-utils: 2.5.0(@typescript/[email protected])
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
dependencies:
'@eslint-community/eslint-utils': 4.9.1([email protected]([email protected])([email protected]))
'@typescript-eslint/scope-manager': 8.62.0
'@typescript-eslint/types': 8.62.0
- '@typescript-eslint/typescript-estree': 8.62.0([email protected])
+ '@typescript-eslint/typescript-estree': 8.62.0(@typescript/[email protected])
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
dependencies:
'@eslint-community/eslint-utils': 4.9.1([email protected]([email protected]))
'@typescript-eslint/scope-manager': 8.62.0
'@typescript-eslint/types': 8.62.0
- '@typescript-eslint/typescript-estree': 8.62.0([email protected])
+ '@typescript-eslint/typescript-estree': 8.62.0(@typescript/[email protected])
eslint: 10.6.0([email protected])
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
@@ -13581,36 +13643,69 @@ snapshots:
'@typescript-eslint/types': 8.62.0
eslint-visitor-keys: 5.0.1
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
- optionalDependencies:
- '@typescript/native-preview-darwin-arm64': 7.0.0-dev.20260627.2
- '@typescript/native-preview-darwin-x64': 7.0.0-dev.20260627.2
- '@typescript/native-preview-linux-arm': 7.0.0-dev.20260627.2
- '@typescript/native-preview-linux-arm64': 7.0.0-dev.20260627.2
- '@typescript/native-preview-linux-x64': 7.0.0-dev.20260627.2
- '@typescript/native-preview-win32-arm64': 7.0.0-dev.20260627.2
- '@typescript/native-preview-win32-x64': 7.0.0-dev.20260627.2
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ dependencies:
+ '@typescript/old': [email protected]
'@ungap/[email protected]': {}
@@ -13631,26 +13726,26 @@ snapshots:
d3-selection: 3.0.0
d3-transition: 3.0.1([email protected])
dependencies:
- valibot: 1.4.2([email protected])
+ valibot: 1.4.2(@typescript/[email protected])
'@vercel/[email protected]':
dependencies:
'@resvg/resvg-wasm': 2.4.0
satori: 0.16.0
dependencies:
birpc: 4.0.0
mlly: 1.8.2
pathe: 2.0.3
perfect-debounce: 2.1.0
tinyexec: 1.2.4
transitivePeerDependencies:
- '@farmfe/core'
- '@modelcontextprotocol/sdk'
@@ -13666,17 +13761,17 @@ snapshots:
- utf-8-validate
- webpack
dependencies:
'@rolldown/pluginutils': 1.0.1
dependencies:
'@rolldown/pluginutils': 1.0.1
dependencies:
'@rolldown/pluginutils': 1.0.1
es-module-lexer: 2.1.0
@@ -13687,11 +13782,25 @@ snapshots:
srvx: 0.11.17
strip-literal: 3.1.0
turbo-stream: 3.2.0
optionalDependencies:
react-server-dom-webpack: 19.2.7([email protected]([email protected]))([email protected])
+ dependencies:
+ playwright: 1.61.1
+ tinyrainbow: 3.1.0
+ transitivePeerDependencies:
+ - bufferutil
+ - msw
+ - utf-8-validate
+ - vite
+ optional: true
+
dependencies:
@@ -13706,13 +13815,25 @@ snapshots:
- vite
optional: true
dependencies:
playwright: 1.61.1
tinyrainbow: 3.1.0
+ transitivePeerDependencies:
+ - bufferutil
+ - msw
+ - utf-8-validate
+ - vite
+
+ dependencies:
+ '@testing-library/dom': 10.4.1
+ '@testing-library/user-event': 14.6.1(@testing-library/[email protected])
transitivePeerDependencies:
- bufferutil
- msw
@@ -13731,12 +13852,29 @@ snapshots:
- utf-8-validate
- vite
dependencies:
'@testing-library/dom': 10.4.1
'@testing-library/user-event': 14.6.1(@testing-library/[email protected])
+ transitivePeerDependencies:
+ - bufferutil
+ - msw
+ - utf-8-validate
+ - vite
+
+ dependencies:
+ '@blazediff/core': 1.9.1
+ '@vitest/utils': 4.1.9
+ magic-string: 0.30.21
+ pngjs: 7.0.0
+ sirv: 3.0.2
+ tinyrainbow: 3.1.0
+ ws: 8.21.0
transitivePeerDependencies:
- bufferutil
- msw
@@ -13760,16 +13898,16 @@ snapshots:
- utf-8-validate
- vite
dependencies:
'@blazediff/core': 1.9.1
'@vitest/utils': 4.1.9
magic-string: 0.30.21
pngjs: 7.0.0
sirv: 3.0.2
tinyrainbow: 3.1.0
ws: 8.21.0
transitivePeerDependencies:
- bufferutil
@@ -13789,31 +13927,31 @@ snapshots:
obug: 2.1.3
std-env: 4.1.0
tinyrainbow: 3.1.0
optionalDependencies:
dependencies:
'@typescript-eslint/scope-manager': 8.62.0
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/scope-manager': 8.62.0
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
eslint: 10.6.0([email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
@@ -13834,6 +13972,14 @@ snapshots:
chai: 6.2.2
tinyrainbow: 3.1.0
+ dependencies:
+ '@vitest/spy': 4.1.9
+ estree-walker: 3.0.3
+ magic-string: 0.30.21
+ optionalDependencies:
+
dependencies:
'@vitest/spy': 4.1.9
@@ -13842,13 +13988,13 @@ snapshots:
optionalDependencies:
dependencies:
'@vitest/spy': 4.1.9
estree-walker: 3.0.3
magic-string: 0.30.21
optionalDependencies:
'@vitest/[email protected]':
dependencies:
@@ -13888,6 +14034,21 @@ snapshots:
convert-source-map: 2.0.0
tinyrainbow: 3.1.0
+ dependencies:
+ '@oxc-project/runtime': 0.138.0
+ '@oxc-project/types': 0.138.0
+ lightningcss: 1.32.0
+ postcss: 8.5.16
+ optionalDependencies:
+ '@types/node': 25.9.4
+ esbuild: 0.28.1
+ fsevents: 2.3.3
+ jiti: 2.7.0
+ tsx: 4.22.4
+ typescript: '@typescript/[email protected]'
+ yaml: 2.9.0
+
dependencies:
'@oxc-project/runtime': 0.138.0
@@ -13903,7 +14064,7 @@ snapshots:
typescript: 6.0.3
yaml: 2.9.0
dependencies:
'@oxc-project/runtime': 0.138.0
'@oxc-project/types': 0.138.0
@@ -13915,7 +14076,7 @@ snapshots:
fsevents: 2.3.3
jiti: 2.7.0
tsx: 4.22.4
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
yaml: 2.9.0
'@voidzero-dev/[email protected]':
@@ -14181,16 +14342,12 @@ snapshots:
ieee754: 1.2.1
optional: true
-
dependencies:
run-applescript: 7.1.0
-
dependencies:
chokidar: 5.0.0
@@ -14764,16 +14921,16 @@ snapshots:
dependencies:
- '@valibot/to-json-schema': 1.7.1([email protected]([email protected]))
+ '@valibot/to-json-schema': 1.7.1([email protected](@typescript/[email protected]))
birpc: 4.0.0
cac: 7.0.0
h3: 2.0.1-rc.22
mrmime: 2.0.1
pathe: 2.0.3
- valibot: 1.4.2([email protected])
+ valibot: 1.4.2(@typescript/[email protected])
ws: 8.21.0
transitivePeerDependencies:
- '@farmfe/core'
@@ -15151,36 +15308,36 @@ snapshots:
dependencies:
eslint: 10.6.0([email protected])
dependencies:
'@eslint/css-tree': 4.0.4
- '@valibot/to-json-schema': 1.7.1([email protected]([email protected]))
+ '@valibot/to-json-schema': 1.7.1([email protected](@typescript/[email protected]))
enhanced-resolve: 5.24.1
jiti: 2.7.0
synckit: 0.11.13
tailwind-csstree: 0.3.3
tailwindcss: 4.3.1
tsconfig-paths-webpack-plugin: 4.2.0
- valibot: 1.4.2([email protected])
+ valibot: 1.4.2(@typescript/[email protected])
optionalDependencies:
eslint: 10.6.0([email protected])
transitivePeerDependencies:
- '@eslint/css'
- typescript
dependencies:
'@es-joy/jsdoccomment': 0.84.0
- '@typescript-eslint/typescript-estree': 8.62.0([email protected])
+ '@typescript-eslint/typescript-estree': 8.62.0(@typescript/[email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
dependencies:
'@es-joy/jsdoccomment': 0.84.0
- '@typescript-eslint/typescript-estree': 8.62.0([email protected])
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/typescript-estree': 8.62.0(@typescript/[email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
eslint: 10.6.0([email protected])
@@ -15358,7 +15515,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@eslint-community/eslint-utils': 4.9.1([email protected]([email protected])([email protected]))
enhanced-resolve: 5.24.1
@@ -15370,9 +15527,9 @@ snapshots:
ignore: 5.3.2
semver: 7.8.5
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
dependencies:
'@eslint-community/eslint-utils': 4.9.1([email protected]([email protected]))
enhanced-resolve: 5.24.1
@@ -15384,19 +15541,19 @@ snapshots:
ignore: 5.3.2
semver: 7.8.5
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
dependencies:
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
transitivePeerDependencies:
- supports-color
- typescript
dependencies:
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
eslint: 10.6.0([email protected])
transitivePeerDependencies:
- supports-color
@@ -15404,18 +15561,18 @@ snapshots:
dependencies:
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
natural-orderby: 5.0.0
transitivePeerDependencies:
- supports-color
- typescript
dependencies:
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
eslint: 10.6.0([email protected])
natural-orderby: 5.0.0
transitivePeerDependencies:
@@ -15444,90 +15601,90 @@ snapshots:
yaml: 2.9.0
yaml-eslint-parser: 2.0.0
dependencies:
+ '@eslint-react/ast': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/jsx': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/shared': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
'@typescript-eslint/types': 8.62.0
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
compare-versions: 6.1.1
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
optional: true
dependencies:
- '@eslint-react/eslint': 5.9.5([email protected]([email protected]))([email protected])
- '@eslint-react/shared': 5.9.5([email protected]([email protected]))([email protected])
+ '@eslint-react/ast': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/jsx': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/shared': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
'@typescript-eslint/types': 8.62.0
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
compare-versions: 6.1.1
eslint: 10.6.0([email protected])
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
dependencies:
+ '@eslint-react/ast': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/core': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/jsx': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/shared': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
'@typescript-eslint/types': 8.62.0
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
optional: true
dependencies:
- '@eslint-react/eslint': 5.9.5([email protected]([email protected]))([email protected])
- '@eslint-react/shared': 5.9.5([email protected]([email protected]))([email protected])
+ '@eslint-react/ast': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/core': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/jsx': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/shared': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
'@typescript-eslint/types': 8.62.0
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
eslint: 10.6.0([email protected])
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
dependencies:
+ '@eslint-react/ast': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/core': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/var': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
'@typescript-eslint/types': 8.62.0
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
optional: true
dependencies:
- '@eslint-react/eslint': 5.9.5([email protected]([email protected]))([email protected])
+ '@eslint-react/ast': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/core': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/var': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
'@typescript-eslint/types': 8.62.0
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
eslint: 10.6.0([email protected])
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
@@ -15540,110 +15697,110 @@ snapshots:
dependencies:
eslint: 10.6.0([email protected])
dependencies:
+ '@eslint-react/ast': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/core': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/shared': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/var': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
'@typescript-eslint/types': 8.62.0
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
optional: true
dependencies:
- '@eslint-react/eslint': 5.9.5([email protected]([email protected]))([email protected])
- '@eslint-react/shared': 5.9.5([email protected]([email protected]))([email protected])
+ '@eslint-react/ast': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/core': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/shared': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/var': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
'@typescript-eslint/types': 8.62.0
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
eslint: 10.6.0([email protected])
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
dependencies:
+ '@eslint-react/ast': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/core': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/shared': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/var': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
'@typescript-eslint/types': 8.62.0
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
birecord: 0.1.1
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
optional: true
dependencies:
- '@eslint-react/eslint': 5.9.5([email protected]([email protected]))([email protected])
- '@eslint-react/shared': 5.9.5([email protected]([email protected]))([email protected])
+ '@eslint-react/ast': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/core': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/shared': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/var': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
'@typescript-eslint/types': 8.62.0
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
birecord: 0.1.1
eslint: 10.6.0([email protected])
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
dependencies:
+ '@eslint-react/ast': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/core': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/jsx': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/shared': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
+ '@eslint-react/var': 5.9.5(@typescript/[email protected])([email protected]([email protected])([email protected]))
'@typescript-eslint/scope-manager': 8.62.0
- '@typescript-eslint/type-utils': 8.62.0([email protected]([email protected])([email protected]))([email protected])
+ '@typescript-eslint/type-utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
'@typescript-eslint/types': 8.62.0
- '@typescript-eslint/typescript-estree': 8.62.0([email protected])
+ '@typescript-eslint/typescript-estree': 8.62.0(@typescript/[email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
compare-versions: 6.1.1
string-ts: 2.3.1
- ts-api-utils: 2.5.0([email protected])
+ ts-api-utils: 2.5.0(@typescript/[email protected])
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
optional: true
dependencies:
- '@eslint-react/eslint': 5.9.5([email protected]([email protected]))([email protected])
- '@eslint-react/shared': 5.9.5([email protected]([email protected]))([email protected])
+ '@eslint-react/ast': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/core': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/eslint': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/jsx': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/shared': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
+ '@eslint-react/var': 5.9.5(@typescript/[email protected])([email protected]([email protected]))
'@typescript-eslint/scope-manager': 8.62.0
- '@typescript-eslint/type-utils': 8.62.0([email protected]([email protected]))([email protected])([email protected])
+ '@typescript-eslint/type-utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))([email protected])
'@typescript-eslint/types': 8.62.0
- '@typescript-eslint/typescript-estree': 8.62.0([email protected])
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/typescript-estree': 8.62.0(@typescript/[email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
compare-versions: 6.1.1
eslint: 10.6.0([email protected])
string-ts: 2.3.1
- ts-api-utils: 2.5.0([email protected])
+ ts-api-utils: 2.5.0(@typescript/[email protected])
ts-pattern: 5.9.0
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- supports-color
@@ -15669,28 +15826,11 @@ snapshots:
regexp-ast-analysis: 0.7.1
scslre: 0.3.0
- dependencies:
- '@eslint-community/regexpp': 4.12.2
- builtin-modules: 3.3.0
- bytes: 3.1.2
- eslint: 10.6.0([email protected])
- functional-red-black-tree: 1.0.1
- globals: 17.7.0
- jsx-ast-utils-x: 0.1.0
- lodash.merge: 4.6.2
- minimatch: 10.2.5
- scslre: 0.3.0
- semver: 7.8.5
- ts-api-utils: 2.5.0([email protected])
- typescript: 6.0.3
- yaml: 2.9.0
-
dependencies:
- '@typescript-eslint/utils': 8.62.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.62.0(@typescript/[email protected])([email protected]([email protected]))
eslint: 10.6.0([email protected])
transitivePeerDependencies:
- supports-color
- typescript
@@ -15757,19 +15897,19 @@ snapshots:
semver: 7.8.5
strip-indent: 4.1.1
dependencies:
optionalDependencies:
dependencies:
eslint: 10.6.0([email protected])
optionalDependencies:
dependencies:
'@eslint-community/eslint-utils': 4.9.1([email protected]([email protected])([email protected]))
@@ -15781,9 +15921,9 @@ snapshots:
xml-name-validator: 4.0.0
optionalDependencies:
'@stylistic/eslint-plugin': 5.10.0([email protected]([email protected])([email protected]))
+ '@typescript-eslint/parser': 8.62.0(@typescript/[email protected])([email protected]([email protected])([email protected]))
dependencies:
'@eslint-community/eslint-utils': 4.9.1([email protected]([email protected]))
eslint: 10.6.0([email protected])
@@ -15795,7 +15935,7 @@ snapshots:
xml-name-validator: 4.0.0
optionalDependencies:
'@stylistic/eslint-plugin': 5.10.0([email protected]([email protected]))
+ '@typescript-eslint/parser': 8.62.0(@typescript/[email protected])([email protected]([email protected]))([email protected])
dependencies:
@@ -16127,8 +16267,6 @@ snapshots:
is-callable: 1.2.7
is-document.all: 1.0.0
-
@@ -16441,9 +16579,9 @@ snapshots:
dependencies:
'@babel/runtime': 7.29.7
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
dependencies:
@@ -16743,8 +16881,6 @@ snapshots:
-
dependencies:
array-includes: 3.1.9
@@ -16814,16 +16950,16 @@ snapshots:
prelude-ls: 1.2.1
type-check: 0.4.0
dependencies:
- '@lexical/utils': 0.46.0([email protected])
- lexical: 0.46.0([email protected])
+ '@lexical/utils': 0.46.0(@typescript/[email protected])
+ lexical: 0.46.0(@typescript/[email protected])
dependencies:
- '@lexical/internal': 0.46.0([email protected])
+ '@lexical/internal': 0.46.0(@typescript/[email protected])
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
optional: true
@@ -17615,11 +17751,11 @@ snapshots:
dependencies:
magic-string: 0.30.21
oxc-parser: 0.132.0
transitivePeerDependencies:
- '@farmfe/core'
- '@rspack/core'
@@ -17631,11 +17767,11 @@ snapshots:
- vite
- webpack
dependencies:
magic-string: 0.30.21
oxc-parser: 0.132.0
transitivePeerDependencies:
- '@farmfe/core'
- '@rspack/core'
@@ -17850,6 +17986,56 @@ snapshots:
'@oxc-resolver/binding-win32-arm64-msvc': 11.21.3
'@oxc-resolver/binding-win32-x64-msvc': 11.21.3
+ dependencies:
+ tinypool: 2.1.0
+ optionalDependencies:
+ '@oxfmt/binding-android-arm-eabi': 0.57.0
+ '@oxfmt/binding-android-arm64': 0.57.0
+ '@oxfmt/binding-darwin-arm64': 0.57.0
+ '@oxfmt/binding-darwin-x64': 0.57.0
+ '@oxfmt/binding-freebsd-x64': 0.57.0
+ '@oxfmt/binding-linux-arm-gnueabihf': 0.57.0
+ '@oxfmt/binding-linux-arm-musleabihf': 0.57.0
+ '@oxfmt/binding-linux-arm64-gnu': 0.57.0
+ '@oxfmt/binding-linux-arm64-musl': 0.57.0
+ '@oxfmt/binding-linux-ppc64-gnu': 0.57.0
+ '@oxfmt/binding-linux-riscv64-gnu': 0.57.0
+ '@oxfmt/binding-linux-riscv64-musl': 0.57.0
+ '@oxfmt/binding-linux-s390x-gnu': 0.57.0
+ '@oxfmt/binding-linux-x64-gnu': 0.57.0
+ '@oxfmt/binding-linux-x64-musl': 0.57.0
+ '@oxfmt/binding-openharmony-arm64': 0.57.0
+ '@oxfmt/binding-win32-arm64-msvc': 0.57.0
+ '@oxfmt/binding-win32-ia32-msvc': 0.57.0
+ '@oxfmt/binding-win32-x64-msvc': 0.57.0
+
+ dependencies:
+ tinypool: 2.1.0
+ optionalDependencies:
+ '@oxfmt/binding-android-arm-eabi': 0.57.0
+ '@oxfmt/binding-android-arm64': 0.57.0
+ '@oxfmt/binding-darwin-arm64': 0.57.0
+ '@oxfmt/binding-darwin-x64': 0.57.0
+ '@oxfmt/binding-freebsd-x64': 0.57.0
+ '@oxfmt/binding-linux-arm-gnueabihf': 0.57.0
+ '@oxfmt/binding-linux-arm-musleabihf': 0.57.0
+ '@oxfmt/binding-linux-arm64-gnu': 0.57.0
+ '@oxfmt/binding-linux-arm64-musl': 0.57.0
+ '@oxfmt/binding-linux-ppc64-gnu': 0.57.0
+ '@oxfmt/binding-linux-riscv64-gnu': 0.57.0
+ '@oxfmt/binding-linux-riscv64-musl': 0.57.0
+ '@oxfmt/binding-linux-s390x-gnu': 0.57.0
+ '@oxfmt/binding-linux-x64-gnu': 0.57.0
+ '@oxfmt/binding-linux-x64-musl': 0.57.0
+ '@oxfmt/binding-openharmony-arm64': 0.57.0
+ '@oxfmt/binding-win32-arm64-msvc': 0.57.0
+ '@oxfmt/binding-win32-ia32-msvc': 0.57.0
+ '@oxfmt/binding-win32-x64-msvc': 0.57.0
+
dependencies:
tinypool: 2.1.0
@@ -17875,7 +18061,7 @@ snapshots:
'@oxfmt/binding-win32-x64-msvc': 0.57.0
dependencies:
tinypool: 2.1.0
optionalDependencies:
@@ -17898,7 +18084,7 @@ snapshots:
'@oxfmt/binding-win32-arm64-msvc': 0.57.0
'@oxfmt/binding-win32-ia32-msvc': 0.57.0
'@oxfmt/binding-win32-x64-msvc': 0.57.0
optionalDependencies:
@@ -17909,6 +18095,54 @@ snapshots:
'@oxlint-tsgolint/win32-arm64': 0.24.0
'@oxlint-tsgolint/win32-x64': 0.24.0
+ optionalDependencies:
+ '@oxlint/binding-android-arm-eabi': 1.72.0
+ '@oxlint/binding-android-arm64': 1.72.0
+ '@oxlint/binding-darwin-arm64': 1.72.0
+ '@oxlint/binding-darwin-x64': 1.72.0
+ '@oxlint/binding-freebsd-x64': 1.72.0
+ '@oxlint/binding-linux-arm-gnueabihf': 1.72.0
+ '@oxlint/binding-linux-arm-musleabihf': 1.72.0
+ '@oxlint/binding-linux-arm64-gnu': 1.72.0
+ '@oxlint/binding-linux-arm64-musl': 1.72.0
+ '@oxlint/binding-linux-ppc64-gnu': 1.72.0
+ '@oxlint/binding-linux-riscv64-gnu': 1.72.0
+ '@oxlint/binding-linux-riscv64-musl': 1.72.0
+ '@oxlint/binding-linux-s390x-gnu': 1.72.0
+ '@oxlint/binding-linux-x64-gnu': 1.72.0
+ '@oxlint/binding-linux-x64-musl': 1.72.0
+ '@oxlint/binding-openharmony-arm64': 1.72.0
+ '@oxlint/binding-win32-arm64-msvc': 1.72.0
+ '@oxlint/binding-win32-ia32-msvc': 1.72.0
+ '@oxlint/binding-win32-x64-msvc': 1.72.0
+ oxlint-tsgolint: 0.24.0
+
+ optionalDependencies:
+ '@oxlint/binding-android-arm-eabi': 1.72.0
+ '@oxlint/binding-android-arm64': 1.72.0
+ '@oxlint/binding-darwin-arm64': 1.72.0
+ '@oxlint/binding-darwin-x64': 1.72.0
+ '@oxlint/binding-freebsd-x64': 1.72.0
+ '@oxlint/binding-linux-arm-gnueabihf': 1.72.0
+ '@oxlint/binding-linux-arm-musleabihf': 1.72.0
+ '@oxlint/binding-linux-arm64-gnu': 1.72.0
+ '@oxlint/binding-linux-arm64-musl': 1.72.0
+ '@oxlint/binding-linux-ppc64-gnu': 1.72.0
+ '@oxlint/binding-linux-riscv64-gnu': 1.72.0
+ '@oxlint/binding-linux-riscv64-musl': 1.72.0
+ '@oxlint/binding-linux-s390x-gnu': 1.72.0
+ '@oxlint/binding-linux-x64-gnu': 1.72.0
+ '@oxlint/binding-linux-x64-musl': 1.72.0
+ '@oxlint/binding-openharmony-arm64': 1.72.0
+ '@oxlint/binding-win32-arm64-msvc': 1.72.0
+ '@oxlint/binding-win32-ia32-msvc': 1.72.0
+ '@oxlint/binding-win32-x64-msvc': 1.72.0
+ oxlint-tsgolint: 0.24.0
+
optionalDependencies:
'@oxlint/binding-android-arm-eabi': 1.72.0
@@ -17933,7 +18167,7 @@ snapshots:
oxlint-tsgolint: 0.24.0
optionalDependencies:
'@oxlint/binding-android-arm-eabi': 1.72.0
'@oxlint/binding-android-arm64': 1.72.0
@@ -17955,7 +18189,7 @@ snapshots:
'@oxlint/binding-win32-ia32-msvc': 1.72.0
'@oxlint/binding-win32-x64-msvc': 1.72.0
oxlint-tsgolint: 0.24.0
dependencies:
@@ -18204,9 +18438,9 @@ snapshots:
react: 19.2.7
react-dom: 19.2.7([email protected])
dependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
dependencies:
@@ -18243,16 +18477,16 @@ snapshots:
dependencies:
'@babel/runtime': 7.29.7
html-parse-stringify: 3.0.1
- i18next: 26.3.3([email protected])
+ i18next: 26.3.3(@typescript/[email protected])
react: 19.2.7
use-sync-external-store: 1.6.0([email protected])
optionalDependencies:
react-dom: 19.2.7([email protected])
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
@@ -18882,7 +19116,7 @@ snapshots:
es-errors: 1.3.0
internal-slot: 1.1.0
dependencies:
'@storybook/global': 5.0.0
'@storybook/icons': 2.1.0([email protected])
@@ -18901,14 +19135,14 @@ snapshots:
ws: 8.21.0
optionalDependencies:
'@types/react': 19.2.17
transitivePeerDependencies:
- '@testing-library/dom'
- bufferutil
- react
- utf-8-validate
dependencies:
'@storybook/global': 5.0.0
'@storybook/icons': 2.1.0([email protected])
@@ -18927,7 +19161,7 @@ snapshots:
ws: 8.21.0
optionalDependencies:
'@types/react': 19.2.17
transitivePeerDependencies:
- '@testing-library/dom'
- bufferutil
@@ -19159,9 +19393,9 @@ snapshots:
dependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
@@ -19169,9 +19403,9 @@ snapshots:
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
dependencies:
@@ -19252,6 +19486,29 @@ snapshots:
+ optionalDependencies:
+ '@typescript/typescript-aix-ppc64': 7.0.2
+ '@typescript/typescript-darwin-arm64': 7.0.2
+ '@typescript/typescript-darwin-x64': 7.0.2
+ '@typescript/typescript-freebsd-arm64': 7.0.2
+ '@typescript/typescript-freebsd-x64': 7.0.2
+ '@typescript/typescript-linux-arm': 7.0.2
+ '@typescript/typescript-linux-arm64': 7.0.2
+ '@typescript/typescript-linux-loong64': 7.0.2
+ '@typescript/typescript-linux-mips64el': 7.0.2
+ '@typescript/typescript-linux-ppc64': 7.0.2
+ '@typescript/typescript-linux-riscv64': 7.0.2
+ '@typescript/typescript-linux-s390x': 7.0.2
+ '@typescript/typescript-linux-x64': 7.0.2
+ '@typescript/typescript-netbsd-arm64': 7.0.2
+ '@typescript/typescript-netbsd-x64': 7.0.2
+ '@typescript/typescript-openbsd-arm64': 7.0.2
+ '@typescript/typescript-openbsd-x64': 7.0.2
+ '@typescript/typescript-sunos-x64': 7.0.2
+ '@typescript/typescript-win32-arm64': 7.0.2
+ '@typescript/typescript-win32-x64': 7.0.2
+
@@ -19341,14 +19598,14 @@ snapshots:
picomatch: 4.0.4
webpack-virtual-modules: 0.6.2
dependencies:
'@jridgewell/remapping': 2.3.5
picomatch: 4.0.4
webpack-virtual-modules: 0.6.2
optionalDependencies:
esbuild: 0.28.1
dependencies:
@@ -19411,9 +19668,9 @@ snapshots:
optionalDependencies:
- typescript: 6.0.3
+ typescript: '@typescript/[email protected]'
dependencies:
@@ -19435,22 +19692,22 @@ snapshots:
'@types/unist': 3.0.3
vfile-message: 4.0.3
dependencies:
'@vercel/og': 0.8.6
image-size: 2.0.2
ipaddr.js: 2.4.0
magic-string: 0.30.21
react: 19.2.7
react-dom: 19.2.7([email protected])
vite-plugin-commonjs: 0.10.4
web-vitals: 4.2.4
optionalDependencies:
'@mdx-js/rollup': 3.1.1
react-server-dom-webpack: 19.2.7([email protected]([email protected]))([email protected])
transitivePeerDependencies:
- next
@@ -19468,9 +19725,9 @@ snapshots:
fast-glob: 3.3.3
magic-string: 0.30.21
dependencies:
ansis: 4.3.1
error-stack-parser-es: 1.0.5
obug: 2.1.3
@@ -19479,7 +19736,7 @@ snapshots:
perfect-debounce: 2.1.0
sirv: 3.0.2
unplugin-utils: 0.3.1
transitivePeerDependencies:
- '@farmfe/core'
- '@modelcontextprotocol/sdk'
@@ -19495,21 +19752,139 @@ snapshots:
- utf-8-validate
- webpack
dependencies:
'@next/env': 16.0.0
image-size: 2.0.2
magic-string: 0.30.21
module-alias: 2.3.4
ts-dedent: 2.3.0
transitivePeerDependencies:
- supports-color
- typescript
+ dependencies:
+ '@oxc-project/types': 0.138.0
+ '@oxlint/plugins': 1.68.0
+ '@vitest/expect': 4.1.9
+ '@vitest/pretty-format': 4.1.9
+ '@vitest/runner': 4.1.9
+ '@vitest/snapshot': 4.1.9
+ '@vitest/spy': 4.1.9
+ '@vitest/utils': 4.1.9
+ oxlint-tsgolint: 0.24.0
+ optionalDependencies:
+ '@voidzero-dev/vite-plus-darwin-arm64': 0.2.3
+ '@voidzero-dev/vite-plus-darwin-x64': 0.2.3
+ '@voidzero-dev/vite-plus-linux-arm64-gnu': 0.2.3
+ '@voidzero-dev/vite-plus-linux-arm64-musl': 0.2.3
+ '@voidzero-dev/vite-plus-linux-x64-gnu': 0.2.3
+ '@voidzero-dev/vite-plus-linux-x64-musl': 0.2.3
+ '@voidzero-dev/vite-plus-win32-arm64-msvc': 0.2.3
+ '@voidzero-dev/vite-plus-win32-x64-msvc': 0.2.3
+ transitivePeerDependencies:
+ - '@arethetypeswrong/core'
+ - '@edge-runtime/vm'
+ - '@opentelemetry/api'
+ - '@types/node'
+ - '@vitejs/devtools'
+ - '@vitest/coverage-istanbul'
+ - '@vitest/coverage-v8'
+ - '@vitest/ui'
+ - bufferutil
+ - esbuild
+ - happy-dom
+ - jiti
+ - jsdom
+ - less
+ - msw
+ - publint
+ - sass
+ - sass-embedded
+ - stylus
+ - sugarss
+ - svelte
+ - terser
+ - tsx
+ - typescript
+ - unplugin-unused
+ - unrun
+ - utf-8-validate
+ - vite
+ - yaml
+
+ dependencies:
+ '@oxc-project/types': 0.138.0
+ '@oxlint/plugins': 1.68.0
+ '@vitest/expect': 4.1.9
+ '@vitest/pretty-format': 4.1.9
+ '@vitest/runner': 4.1.9
+ '@vitest/snapshot': 4.1.9
+ '@vitest/spy': 4.1.9
+ '@vitest/utils': 4.1.9
+ oxlint-tsgolint: 0.24.0
+ optionalDependencies:
+ '@voidzero-dev/vite-plus-darwin-arm64': 0.2.3
+ '@voidzero-dev/vite-plus-darwin-x64': 0.2.3
+ '@voidzero-dev/vite-plus-linux-arm64-gnu': 0.2.3
+ '@voidzero-dev/vite-plus-linux-arm64-musl': 0.2.3
+ '@voidzero-dev/vite-plus-linux-x64-gnu': 0.2.3
+ '@voidzero-dev/vite-plus-linux-x64-musl': 0.2.3
+ '@voidzero-dev/vite-plus-win32-arm64-msvc': 0.2.3
+ '@voidzero-dev/vite-plus-win32-x64-msvc': 0.2.3
+ transitivePeerDependencies:
+ - '@arethetypeswrong/core'
+ - '@edge-runtime/vm'
+ - '@opentelemetry/api'
+ - '@types/node'
+ - '@vitejs/devtools'
+ - '@vitest/coverage-istanbul'
+ - '@vitest/coverage-v8'
+ - '@vitest/ui'
+ - bufferutil
+ - esbuild
+ - happy-dom
+ - jiti
+ - jsdom
+ - less
+ - msw
+ - publint
+ - sass
+ - sass-embedded
+ - stylus
+ - sugarss
+ - svelte
+ - terser
+ - tsx
+ - typescript
+ - unplugin-unused
+ - unrun
+ - utf-8-validate
+ - vite
+ - yaml
+
dependencies:
'@oxc-project/types': 0.138.0
@@ -19569,26 +19944,26 @@ snapshots:
- vite
- yaml
dependencies:
'@oxc-project/types': 0.138.0
'@oxlint/plugins': 1.68.0
'@vitest/expect': 4.1.9
'@vitest/pretty-format': 4.1.9
'@vitest/runner': 4.1.9
'@vitest/snapshot': 4.1.9
'@vitest/spy': 4.1.9
'@vitest/utils': 4.1.9
oxlint-tsgolint: 0.24.0
optionalDependencies:
'@voidzero-dev/vite-plus-darwin-arm64': 0.2.3
'@voidzero-dev/vite-plus-darwin-x64': 0.2.3
'@voidzero-dev/vite-plus-linux-arm64-gnu': 0.2.3
@@ -19628,26 +20003,26 @@ snapshots:
- vite
- yaml
dependencies:
debug: 4.4.3([email protected])
globrex: 0.1.2
- tsconfck: 3.1.6([email protected])
+ tsconfck: 3.1.6(@typescript/[email protected])
optionalDependencies:
transitivePeerDependencies:
- supports-color
- typescript
optionalDependencies:
dependencies:
react: 19.2.7
react-dom: 19.2.7([email protected])
optionalDependencies:
'@types/react': 19.2.17
'@types/react-dom': 19.2.3(@types/[email protected])
@@ -19656,7 +20031,38 @@ snapshots:
dependencies:
cssfontparser: 1.2.1
moo-color: 1.0.3
+
+ dependencies:
+ '@vitest/expect': 4.1.9
+ '@vitest/pretty-format': 4.1.9
+ '@vitest/runner': 4.1.9
+ '@vitest/snapshot': 4.1.9
+ '@vitest/spy': 4.1.9
+ '@vitest/utils': 4.1.9
+ es-module-lexer: 2.1.0
+ expect-type: 1.4.0
+ magic-string: 0.30.21
+ obug: 2.1.3
+ pathe: 2.0.3
+ picomatch: 4.0.4
+ std-env: 4.1.0
+ tinybench: 2.9.0
+ tinyexec: 1.2.4
+ tinyglobby: 0.2.17
+ tinyrainbow: 3.1.0
+ why-is-node-running: 2.3.0
+ optionalDependencies:
+ '@types/node': 25.9.4
+ '@vitest/coverage-v8': 4.1.9(@vitest/[email protected])([email protected])
+ happy-dom: 20.10.6
+ transitivePeerDependencies:
+ - msw
dependencies:
@@ -19689,10 +20095,41 @@ snapshots:
transitivePeerDependencies:
- msw
+ dependencies:
+ '@vitest/expect': 4.1.9
+ '@vitest/pretty-format': 4.1.9
+ '@vitest/runner': 4.1.9
+ '@vitest/snapshot': 4.1.9
+ '@vitest/spy': 4.1.9
+ '@vitest/utils': 4.1.9
+ es-module-lexer: 2.1.0
+ expect-type: 1.4.0
+ magic-string: 0.30.21
+ obug: 2.1.3
+ pathe: 2.0.3
+ picomatch: 4.0.4
+ std-env: 4.1.0
+ tinybench: 2.9.0
+ tinyexec: 1.2.4
+ tinyglobby: 0.2.17
+ tinyrainbow: 3.1.0
+ why-is-node-running: 2.3.0
+ optionalDependencies:
+ '@types/node': 25.9.4
+ '@vitest/coverage-v8': 4.1.9(@vitest/[email protected])([email protected])
+ happy-dom: 20.10.6
+ transitivePeerDependencies:
+ - msw
+
dependencies:
'@vitest/expect': 4.1.9
'@vitest/pretty-format': 4.1.9
'@vitest/runner': 4.1.9
'@vitest/snapshot': 4.1.9
@@ -19709,12 +20146,12 @@ snapshots:
tinyexec: 1.2.4
tinyglobby: 0.2.17
tinyrainbow: 3.1.0
why-is-node-running: 2.3.0
optionalDependencies:
'@types/node': 26.0.1
'@vitest/coverage-v8': 4.1.9(@vitest/[email protected])([email protected])
happy-dom: 20.10.6
transitivePeerDependencies:
@@ -19996,7 +20433,7 @@ time:
'@types/[email protected]': '2025-10-24T04:31:45.132Z'
'@typescript-eslint/[email protected]': '2026-06-22T18:23:42.242Z'
'@typescript-eslint/[email protected]': '2026-06-22T18:23:19.208Z'
- '@typescript/[email protected]': '2026-06-27T08:18:33.883Z'
+ '@typescript/[email protected]': '2026-07-06T18:06:47.459Z'
'@vitejs/[email protected]': '2026-06-23T10:11:14.652Z'
'@vitejs/[email protected]': '2026-06-01T09:07:55.389Z'
'@vitest/[email protected]': '2026-06-15T07:21:50.860Z'
@@ -20034,7 +20471,6 @@ time:
[email protected]: '2026-04-09T23:28:41.552Z'
[email protected]: '2026-04-12T18:28:18.653Z'
[email protected]: '2026-06-14T12:46:34.395Z'
- [email protected]: '2026-06-18T17:14:11.087Z'
[email protected]: '2026-06-16T11:43:14.113Z'
[email protected]: '2026-06-26T20:09:18.001Z'
[email protected]: '2026-05-27T20:55:51.466Z'
@@ -20109,7 +20545,7 @@ time:
[email protected]: '2026-06-12T17:59:19.225Z'
[email protected]: '2026-06-23T10:06:27.363Z'
[email protected]: '2026-05-31T12:22:19.330Z'
- [email protected]: '2026-04-16T23:38:27.905Z'
+ [email protected]: '2026-07-08T15:55:18.431Z'
[email protected]: '2024-08-29T13:49:01.316Z'
[email protected]: '2026-06-15T15:51:12.886Z'
[email protected]: '2026-01-22T19:02:58.977Z'
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 54eba537ae1..77b1a3f2e4b 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -131,7 +131,7 @@ catalog:
'@types/sortablejs': 1.15.9
'@typescript-eslint/eslint-plugin': 8.62.0
'@typescript-eslint/parser': 8.62.0
- '@typescript/native-preview': 7.0.0-dev.20260627.2
+ '@typescript/native': npm:[email protected]
'@vitejs/plugin-react': 6.0.3
'@vitejs/plugin-rsc': 0.5.27
'@vitest/browser': 4.1.9
@@ -169,7 +169,6 @@ catalog:
eslint-plugin-markdown-preferences: 0.41.1
eslint-plugin-no-barrel-files: 1.3.1
eslint-plugin-react-refresh: 0.5.3
- eslint-plugin-sonarjs: 4.1.0
eslint-plugin-storybook: 10.4.6
eventsource-parser: 3.1.0
fast-deep-equal: 3.1.3
@@ -242,7 +241,7 @@ catalog:
tailwindcss: 4.3.1
tldts: 7.4.4
tsx: 4.22.4
- typescript: 6.0.3
+ typescript: npm:@typescript/[email protected]
uglify-js: 3.19.3
undici: 7.28.0
unist-util-visit: 5.1.0
diff --git a/sdks/nodejs-client/package.json b/sdks/nodejs-client/package.json
index a8b9426e92f..e3e77e3b470 100644
--- a/sdks/nodejs-client/package.json
+++ b/sdks/nodejs-client/package.json
@@ -48,7 +48,7 @@
"build": "vp pack",
"lint": "eslint",
"lint:fix": "eslint --fix",
- "type-check": "tsgo",
+ "type-check": "tsc",
"test": "vp test",
"test:coverage": "vp test --coverage",
"publish:check": "./scripts/publish.sh --dry-run",
@@ -60,7 +60,7 @@
"@types/node": "catalog:",
"@typescript-eslint/eslint-plugin": "catalog:",
"@typescript-eslint/parser": "catalog:",
- "@typescript/native-preview": "catalog:",
+ "@typescript/native": "catalog:",
"@vitest/coverage-v8": "catalog:",
"eslint": "catalog:",
"typescript": "catalog:",
diff --git a/web/README.md b/web/README.md
index 645b16ad712..479e3d2e651 100644
--- a/web/README.md
+++ b/web/README.md
@@ -140,16 +140,6 @@ If you are not familiar with writing tests, refer to:
- [index.spec.tsx] - Component test example
-### Analyze Component Complexity
-
-Before writing tests, use the script to analyze component complexity:
-
-```bash
-pnpm analyze-component app/components/your-component/index.tsx
-```
-
-This will help you determine the testing strategy. See [web/docs/test.md] for details.
-
## Documentation
Visit <https://docs.dify.ai> to view the full documentation.
diff --git a/web/docs/test.md b/web/docs/test.md
index 76a98b46e01..1f66f9fc903 100644
--- a/web/docs/test.md
+++ b/web/docs/test.md
@@ -30,11 +30,6 @@ pnpm test path/to/file.spec.tsx
- **Global setup**: `vitest.setup.ts` already imports `@testing-library/jest-dom`, runs `cleanup()` after every test, and defines shared mocks (for example `react-i18next`). Add any environment-level mocks (for example `ResizeObserver`, `matchMedia`, `IntersectionObserver`, `TextEncoder`, `crypto`) here so they are shared consistently.
- **Reusable mocks**: Place shared mock factories inside `web/__mocks__/` and use `vi.mock('module-name')` to point to them rather than redefining mocks in every spec.
- **Mocking behavior**: Modules are not mocked automatically. Use `vi.mock(...)` in tests, or place global mocks in `vitest.setup.ts`.
-- **Script utilities**: `web/scripts/analyze-component.js` analyzes component complexity and generates test prompts for AI assistants. Commands:
- - `pnpm analyze-component <path>` - Analyze and generate test prompt
- - `pnpm analyze-component <path> --json` - Output analysis as JSON
- - `pnpm analyze-component <path> --review` - Generate test review prompt
- - `pnpm analyze-component --help` - Show help
- **Integration suites**: Files in `web/__tests__/` exercise cross-component flows. Prefer adding new end-to-end style specs there rather than mixing them into component directories.
## Test Authoring Principles
@@ -52,29 +47,6 @@ pnpm test path/to/file.spec.tsx
- **Fast & stable**: Keep unit tests running in milliseconds; reserve integration tests for cross-module behavior with isolation.
- **Structured describe blocks**: Organize tests with `describe` sections and add a brief comment before each block to explain the scenario it covers so readers can quickly understand the scope.
-## Component Complexity Guidelines
-
-Use `pnpm analyze-component <path>` to analyze component complexity and adopt different testing strategies based on the results.
-
-### 🔴 Very Complex Components (Complexity > 50)
-
-- **Refactor first**: Break component into smaller pieces
-- **Integration tests**: Test complex workflows end-to-end
-- **Data-driven tests**: Use `test.each()` for multiple scenarios
-- **Performance benchmarks**: Add performance tests for critical paths
-
-### ⚠️ Complex Components (Complexity 30-50)
-
-- **Multiple describe blocks**: Group related test cases
-- **Integration scenarios**: Test feature combinations
-- **Organized structure**: Keep tests maintainable
-
-### 📏 Large Components (500+ lines)
-
-- **Consider refactoring**: Split into smaller components if possible
-- **Section testing**: Test major sections separately
-- **Helper functions**: Reduce test complexity with utilities
-
## Basic Guidelines
- ✅ AAA pattern: Arrange (setup) → Act (execute) → Assert (verify)
diff --git a/web/eslint.config.mjs b/web/eslint.config.mjs
index 1b4afefef6e..bd9a0680404 100644
--- a/web/eslint.config.mjs
+++ b/web/eslint.config.mjs
@@ -9,7 +9,6 @@ import hyoban from 'eslint-plugin-hyoban'
import jsxA11y from 'eslint-plugin-jsx-a11y'
import markdownPreferences from 'eslint-plugin-markdown-preferences'
import noBarrelFiles from 'eslint-plugin-no-barrel-files'
-import sonar from 'eslint-plugin-sonarjs'
import storybook from 'eslint-plugin-storybook'
import {
GENERATED_IGNORES,
@@ -105,16 +104,6 @@ export default antfu(
},
storybook.configs['flat/recommended'],
...pluginQuery.configs['flat/recommended'],
- // sonar
- {
- rules: {
- // Manually pick rules that are actually useful and not slow.
- // Or we can just drop the plugin entirely.
- },
- plugins: {
- sonarjs: sonar,
- },
- },
{
files: [GLOB_TS, GLOB_TSX],
ignores: GLOB_TESTS,
@@ -150,7 +139,6 @@ export default antfu(
{
files: ['i18n/**/*.json'],
rules: {
- 'sonarjs/max-lines': 'off',
'max-lines': 'off',
'jsonc/sort-keys': 'error',
diff --git a/web/package.json b/web/package.json
index 7f61d6ed3ab..9f164abb54e 100644
--- a/web/package.json
+++ b/web/package.json
@@ -23,7 +23,6 @@
],
"scripts": {
"analyze": "next experimental-analyze",
- "analyze-component": "node ./scripts/analyze-component.js",
"build": "next build",
"build:vinext": "vinext build",
"dev": "next dev",
@@ -39,7 +38,6 @@
"knip:production-unused-check": "node ./scripts/check-production-unused-after-knip-fix.mjs",
"lint:tss": "tsslint --project tsconfig.json",
"preinstall": "npx only-allow pnpm",
- "refactor-component": "node ./scripts/refactor-component.js",
"start": "node ./scripts/copy-and-start.mjs",
"start:vinext": "vinext start",
"storybook": "storybook dev -p 6006",
@@ -47,7 +45,7 @@
"test": "vp test",
"test:coverage": "vp test --coverage",
"test:watch": "vp test --watch",
- "type-check": "tsgo",
+ "type-check": "tsc",
"uglify-embed": "node ./bin/uglify-embed"
},
"dependencies": {
@@ -205,7 +203,7 @@
"@types/react-dom": "catalog:",
"@types/sortablejs": "catalog:",
"@typescript-eslint/parser": "catalog:",
- "@typescript/native-preview": "catalog:",
+ "@typescript/native": "catalog:",
"@vitejs/plugin-react": "catalog:",
"@vitejs/plugin-rsc": "catalog:",
"@vitest/coverage-v8": "catalog:",
@@ -219,7 +217,6 @@
"eslint-plugin-markdown-preferences": "catalog:",
"eslint-plugin-no-barrel-files": "catalog:",
"eslint-plugin-react-refresh": "catalog:",
- "eslint-plugin-sonarjs": "catalog:",
"eslint-plugin-storybook": "catalog:",
"happy-dom": "catalog:",
"knip": "catalog:",
diff --git a/web/scripts/analyze-component.js b/web/scripts/analyze-component.js
deleted file mode 100755
index 09cc7cee312..00000000000
--- a/web/scripts/analyze-component.js
+++ /dev/null
@@ -1,583 +0,0 @@
-#!/usr/bin/env node
-
-import { spawnSync } from 'node:child_process'
-import fs from 'node:fs'
-import path from 'node:path'
-import {
- ComponentAnalyzer,
- extractCopyContent,
- getComplexityLevel,
- listAnalyzableFiles,
- resolveDirectoryEntry,
-} from './component-analyzer.js'
-
-// ============================================================================
-// Prompt Builder for AI Assistants
-// ============================================================================
-
-class TestPromptBuilder {
- build(analysis) {
- const testPath = analysis.path.replace(/\.tsx?$/, '.spec.tsx')
-
- return `
-╔════════════════════════════════════════════════════════════════════════════╗
-║ 📋 GENERATE TEST FOR DIFY COMPONENT ║
-╚════════════════════════════════════════════════════════════════════════════╝
-
-📍 Component: ${analysis.name}
-📂 Path: ${analysis.path}
-🎯 Test File: ${testPath}
-
-📊 Component Analysis:
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-Type: ${analysis.type}
-Total Complexity: ${analysis.complexity}/100 ${getComplexityLevel(analysis.complexity)}
-Max Func Complexity: ${analysis.maxComplexity}/100 ${getComplexityLevel(analysis.maxComplexity)}
-Lines: ${analysis.lineCount}
-Usage: ${analysis.usageCount} reference${analysis.usageCount !== 1 ? 's' : ''}
-Test Priority: ${analysis.priority.score} ${analysis.priority.level}
-
-Features Detected:
- ${analysis.hasProps ? '✓' : '✗'} Props/TypeScript interfaces
- ${analysis.hasState ? '✓' : '✗'} Local state (useState/useReducer)
- ${analysis.hasEffects ? '✓' : '✗'} Side effects (useEffect)
- ${analysis.hasCallbacks ? '✓' : '✗'} Callbacks (useCallback)
- ${analysis.hasMemo ? '✓' : '✗'} Memoization (useMemo)
- ${analysis.hasEvents ? '✓' : '✗'} Event handlers
- ${analysis.hasRouter ? '✓' : '✗'} Next.js routing
- ${analysis.hasAPI ? '✓' : '✗'} API calls
- ${analysis.hasReactQuery ? '✓' : '✗'} React Query
- ${analysis.hasAhooks ? '✓' : '✗'} ahooks
- ${analysis.hasForwardRef ? '✓' : '✗'} Ref forwarding (forwardRef)
- ${analysis.hasComponentMemo ? '✓' : '✗'} Component memoization (React.memo)
- ${analysis.hasImperativeHandle ? '✓' : '✗'} Imperative handle
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-
-📝 TASK:
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-
-Please generate a comprehensive test file for this component at:
- ${testPath}
-
-The component is located at:
- ${analysis.path}
-
-${this.getSpecificGuidelines(analysis)}
-
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-
-📋 PROMPT FOR AI ASSISTANT (COPY THIS TO YOUR AI ASSISTANT):
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-
-Generate a comprehensive test file for all files in @${path.dirname(analysis.path)}
-
-Including but not limited to:
-${this.buildFocusPoints(analysis)}
-
-Create the test file at: ${testPath}
-
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-`
- }
-
- buildFocusPoints(analysis) {
- const points = []
-
- if (analysis.hasState)
- points.push('- Testing state management and updates')
- if (analysis.hasEffects)
- points.push('- Testing side effects and cleanup')
- if (analysis.hasCallbacks)
- points.push('- Testing callback stability and memoization')
- if (analysis.hasMemo)
- points.push('- Testing memoization logic and dependencies')
- if (analysis.hasEvents)
- points.push('- Testing user interactions and event handlers')
- if (analysis.hasRouter)
- points.push('- Mocking Next.js router hooks')
- if (analysis.hasAPI)
- points.push('- Mocking API calls')
- if (analysis.hasForwardRef)
- points.push('- Testing ref forwarding behavior')
- if (analysis.hasComponentMemo)
- points.push('- Testing component memoization')
- if (analysis.hasSuspense)
- points.push('- Testing Suspense boundaries and lazy loading')
- if (analysis.hasPortal)
- points.push('- Testing Portal rendering')
- if (analysis.hasImperativeHandle)
- points.push('- Testing imperative handle methods')
- points.push('- Testing edge cases and error handling')
- points.push('- Testing all prop variations')
-
- return points.join('\n')
- }
-
- getSpecificGuidelines(analysis) {
- const guidelines = []
-
- // ===== Test Priority Guidance =====
- if (analysis.priority.level.includes('CRITICAL')) {
- guidelines.push('🔴 CRITICAL PRIORITY component:')
- guidelines.push(` - Used in ${analysis.usageCount} places across the codebase`)
- guidelines.push(' - Changes will have WIDE impact')
- guidelines.push(' - Require comprehensive test coverage')
- guidelines.push(' - Add regression tests for all use cases')
- guidelines.push(' - Consider integration tests with dependent components')
- }
- else if (analysis.usageCount > 50) {
- guidelines.push('🟠 VERY HIGH USAGE component:')
- guidelines.push(` - Referenced ${analysis.usageCount} times in the codebase`)
- guidelines.push(' - Changes may affect many parts of the application')
- guidelines.push(' - Comprehensive test coverage is CRITICAL')
- guidelines.push(' - Add tests for all common usage patterns')
- guidelines.push(' - Consider regression tests')
- }
- else if (analysis.usageCount > 20) {
- guidelines.push('🟡 HIGH USAGE component:')
- guidelines.push(` - Referenced ${analysis.usageCount} times in the codebase`)
- guidelines.push(' - Test coverage is important to prevent widespread bugs')
- guidelines.push(' - Add tests for common usage patterns')
- }
-
- // ===== Complexity Warning =====
- if (analysis.complexity > 75) {
- guidelines.push(`🔴 HIGH Total Complexity (${analysis.complexity}/100). Consider:`)
- guidelines.push(' - Splitting component into smaller pieces before testing')
- guidelines.push(' - Creating integration tests for complex workflows')
- guidelines.push(' - Using test.each() for data-driven tests')
- }
- else if (analysis.complexity > 50) {
- guidelines.push(`⚠️ MODERATE Total Complexity (${analysis.complexity}/100). Consider:`)
- guidelines.push(' - Breaking tests into multiple describe blocks')
- guidelines.push(' - Testing integration scenarios')
- guidelines.push(' - Grouping related test cases')
- }
-
- // ===== Max Function Complexity Warning =====
- if (analysis.maxComplexity > 75) {
- guidelines.push(`🔴 HIGH Single Function Complexity (max: ${analysis.maxComplexity}/100). Consider:`)
- guidelines.push(' - Breaking down the complex function into smaller helpers')
- guidelines.push(' - Extracting logic into custom hooks or utility functions')
- }
- else if (analysis.maxComplexity > 50) {
- guidelines.push(`⚠️ MODERATE Single Function Complexity (max: ${analysis.maxComplexity}/100). Consider:`)
- guidelines.push(' - Simplifying conditional logic')
- guidelines.push(' - Using early returns to reduce nesting')
- }
-
- // ===== State Management =====
- if (analysis.hasState && analysis.hasEffects) {
- guidelines.push('🔄 State + Effects detected:')
- guidelines.push(' - Test state initialization and updates')
- guidelines.push(' - Test useEffect dependencies array')
- guidelines.push(' - Test cleanup functions (return from useEffect)')
- guidelines.push(' - Use waitFor() for async state changes')
- }
- else if (analysis.hasState) {
- guidelines.push('📊 State management detected:')
- guidelines.push(' - Test initial state values')
- guidelines.push(' - Test all state transitions')
- guidelines.push(' - Test state reset/cleanup scenarios')
- }
- else if (analysis.hasEffects) {
- guidelines.push('⚡ Side effects detected:')
- guidelines.push(' - Test effect execution conditions')
- guidelines.push(' - Verify dependencies array correctness')
- guidelines.push(' - Test cleanup on unmount')
- }
-
- // ===== Performance Optimization =====
- if (analysis.hasCallbacks || analysis.hasMemo || analysis.hasComponentMemo) {
- const features = []
- if (analysis.hasCallbacks)
- features.push('useCallback')
- if (analysis.hasMemo)
- features.push('useMemo')
- if (analysis.hasComponentMemo)
- features.push('React.memo')
-
- guidelines.push(`🚀 Performance optimization (${features.join(', ')}):`)
- guidelines.push(' - Verify callbacks maintain referential equality')
- guidelines.push(' - Test memoization dependencies')
- guidelines.push(' - Ensure expensive computations are cached')
- if (analysis.hasComponentMemo) {
- guidelines.push(' - Test component re-render behavior with prop changes')
- }
- }
-
- // ===== Ref Forwarding =====
- if (analysis.hasForwardRef || analysis.hasImperativeHandle) {
- guidelines.push('🔗 Ref forwarding detected:')
- guidelines.push(' - Test ref attachment to DOM elements')
- if (analysis.hasImperativeHandle) {
- guidelines.push(' - Test all exposed imperative methods')
- guidelines.push(' - Verify method behavior with different ref types')
- }
- }
-
- // ===== Suspense and Lazy Loading =====
- if (analysis.hasSuspense) {
- guidelines.push('⏳ Suspense/Lazy loading detected:')
- guidelines.push(' - Test fallback UI during loading')
- guidelines.push(' - Test component behavior after lazy load completes')
- guidelines.push(' - Test error boundaries with failed loads')
- }
-
- // ===== Portal =====
- if (analysis.hasPortal) {
- guidelines.push('🚪 Portal rendering detected:')
- guidelines.push(' - Test content renders in portal target')
- guidelines.push(' - Test portal cleanup on unmount')
- guidelines.push(' - Verify event bubbling through portal')
- }
-
- // ===== API Calls =====
- if (analysis.hasAPI) {
- guidelines.push('🌐 API calls detected:')
- guidelines.push(' - Mock API calls/hooks (useQuery, useMutation, fetch, etc.)')
- guidelines.push(' - Test loading, success, and error states')
- guidelines.push(' - Focus on component behavior, not the data fetching lib')
- }
-
- // ===== ahooks =====
- if (analysis.hasAhooks) {
- guidelines.push('🪝 ahooks detected (mock only, no need to test the lib):')
- guidelines.push(' - Mock ahooks utilities (useBoolean, useRequest, etc.)')
- guidelines.push(' - Focus on testing how your component uses the hooks')
- guidelines.push(' - Use fake timers if debounce/throttle is involved')
- }
-
- // ===== Routing =====
- if (analysis.hasRouter) {
- guidelines.push('🔀 Next.js routing detected:')
- guidelines.push(' - Mock useRouter, usePathname, useSearchParams')
- guidelines.push(' - Test navigation behavior and parameters')
- guidelines.push(' - Test query string handling')
- guidelines.push(' - Verify route guards/redirects if any')
- }
-
- // ===== Event Handlers =====
- if (analysis.hasEvents) {
- guidelines.push('🎯 Event handlers detected:')
- guidelines.push(' - Test all onClick, onChange, onSubmit handlers')
- guidelines.push(' - Test keyboard events (Enter, Escape, etc.)')
- guidelines.push(' - Verify event.preventDefault() calls if needed')
- guidelines.push(' - Test event bubbling/propagation')
- }
-
- // ===== Domain-Specific Components =====
- if (analysis.path.includes('workflow')) {
- guidelines.push('⚙️ Workflow component:')
- guidelines.push(' - Test node configuration and validation')
- guidelines.push(' - Test data flow and variable passing')
- guidelines.push(' - Test edge connections and graph structure')
- guidelines.push(' - Verify error handling for invalid configs')
- }
-
- if (analysis.path.includes('dataset')) {
- guidelines.push('📚 Dataset component:')
- guidelines.push(' - Test file upload and validation')
- guidelines.push(' - Test pagination and data loading')
- guidelines.push(' - Test search and filtering')
- guidelines.push(' - Verify data format handling')
- }
-
- if (analysis.path.includes('app/configuration') || analysis.path.includes('config')) {
- guidelines.push('⚙️ Configuration component:')
- guidelines.push(' - Test form validation thoroughly')
- guidelines.push(' - Test save/reset functionality')
- guidelines.push(' - Test required vs optional fields')
- guidelines.push(' - Verify configuration persistence')
- }
-
- // ===== File Size Warning =====
- if (analysis.lineCount > 500) {
- guidelines.push('📏 Large component (500+ lines):')
- guidelines.push(' - Consider splitting into smaller components')
- guidelines.push(' - Test major sections separately')
- guidelines.push(' - Use helper functions to reduce test complexity')
- }
-
- return guidelines.length > 0 ? `\n${guidelines.join('\n')}\n` : ''
- }
-}
-
-class TestReviewPromptBuilder {
- build({ analysis, testPath, originalPromptSection }) {
- const formattedOriginalPrompt = originalPromptSection
- ? originalPromptSection
- .split('\n')
- .map(line => (line.trim().length > 0 ? ` ${line}` : ''))
- .join('\n')
- .trimEnd()
- : ' (original generation prompt unavailable)'
-
- return `
-╔════════════════════════════════════════════════════════════════════════════╗
-║ ✅ REVIEW TEST FOR DIFY COMPONENT ║
-╚════════════════════════════════════════════════════════════════════════════╝
-
-📂 Component Path: ${analysis.path}
-🧪 Test File: ${testPath}
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-
-📝 REVIEW TASK:
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-
-📋 PROMPT FOR AI ASSISTANT (COPY THIS TO YOUR AI ASSISTANT):
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-
-You are reviewing the frontend test coverage for @${analysis.path}.
-
-Original generation requirements:
-${formattedOriginalPrompt}
-
-Test file under review:
-${testPath}
-
-Checklist (ensure every item is addressed in your review):
-- Confirm the tests satisfy all requirements listed above and in web/docs/test.md.
-- Verify Arrange → Act → Assert structure, mocks, and cleanup follow project conventions.
-- Ensure all detected component features (state, effects, routing, API, events, etc.) are exercised, including edge cases and error paths.
-- Check coverage of prop variations, null/undefined inputs, and high-priority workflows implied by usage score.
-- Validate mocks/stubs interact correctly with Next.js router, network calls, and async updates.
-- Ensure naming, describe/it structure, and placement match repository standards.
-
-Output format:
-1. Start with a single word verdict: PASS or FAIL.
-2. If FAIL, list each missing requirement or defect as a separate bullet with actionable fixes.
-3. Highlight any optional improvements or refactors after mandatory issues.
-4. Mention any additional tests or tooling steps (e.g., pnpm lint/test) the developer should run.
-
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-`
- }
-}
-
-// ============================================================================
-// Main Function
-// ============================================================================
-
-function showHelp() {
- console.log(`
-📋 Component Analyzer - Generate test prompts for AI assistants
-
-Usage:
- node analyze-component.js <component-path> [options]
- pnpm analyze-component <component-path> [options]
-
-Options:
- --help Show this help message
- --json Output analysis result as JSON (for programmatic use)
- --review Generate a review prompt for existing test file
-
-Examples:
- # Analyze a component and generate test prompt
- pnpm analyze-component app/components/base/action-button/index.tsx
-
- # Output as JSON
- pnpm analyze-component app/components/base/action-button/index.tsx --json
-
- # Review existing test
- pnpm analyze-component app/components/base/action-button/index.tsx --review
-
-For complete testing guidelines, see: web/docs/test.md
-`)
-}
-
-function main() {
- const rawArgs = process.argv.slice(2)
-
- let isReviewMode = false
- let isJsonMode = false
- const args = []
-
- rawArgs.forEach((arg) => {
- if (arg === '--review') {
- isReviewMode = true
- return
- }
- if (arg === '--json') {
- isJsonMode = true
- return
- }
- if (arg === '--help' || arg === '-h') {
- showHelp()
- process.exit(0)
- }
- args.push(arg)
- })
-
- if (args.length === 0) {
- showHelp()
- process.exit(1)
- }
-
- let componentPath = args[0]
- let absolutePath = path.resolve(process.cwd(), componentPath)
-
- // Check if path exists
- if (!fs.existsSync(absolutePath)) {
- console.error(`❌ Error: Path not found: ${componentPath}`)
- process.exit(1)
- }
-
- // If directory, try to find entry file
- if (fs.statSync(absolutePath).isDirectory()) {
- const resolvedFile = resolveDirectoryEntry(absolutePath, componentPath)
- if (resolvedFile) {
- absolutePath = resolvedFile.absolutePath
- componentPath = resolvedFile.componentPath
- }
- else {
- // List available files for user to choose
- const availableFiles = listAnalyzableFiles(absolutePath)
- console.error(`❌ Error: Directory does not contain a recognizable entry file: ${componentPath}`)
- if (availableFiles.length > 0) {
- console.error(`\n Available files to analyze:`)
- availableFiles.forEach(f => console.error(` - ${path.join(componentPath, f)}`))
- console.error(`\n Please specify the exact file path, e.g.:`)
- console.error(` pnpm analyze-component ${path.join(componentPath, availableFiles[0])}`)
- }
- process.exit(1)
- }
- }
-
- // Read source code
- const sourceCode = fs.readFileSync(absolutePath, 'utf-8')
-
- // Analyze
- const analyzer = new ComponentAnalyzer()
- const analysis = analyzer.analyze(sourceCode, componentPath, absolutePath)
-
- // Check if component is too complex - suggest refactoring instead of testing
- // Skip this check in JSON mode to always output analysis result
- if (!isReviewMode && !isJsonMode && (analysis.complexity > 75 || analysis.lineCount > 300)) {
- console.log(`
-╔════════════════════════════════════════════════════════════════════════════╗
-║ ⚠️ COMPONENT TOO COMPLEX TO TEST ║
-╚════════════════════════════════════════════════════════════════════════════╝
-
-📍 Component: ${analysis.name}
-📂 Path: ${analysis.path}
-
-📊 Component Metrics:
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-Total Complexity: ${analysis.complexity}/100 ${analysis.complexity > 75 ? '🔴 TOO HIGH' : analysis.complexity > 50 ? '⚠️ WARNING' : '🟢 OK'}
-Max Func Complexity: ${analysis.maxComplexity}/100 ${analysis.maxComplexity > 75 ? '🔴 TOO HIGH' : analysis.maxComplexity > 50 ? '⚠️ WARNING' : '🟢 OK'}
-Lines: ${analysis.lineCount} ${analysis.lineCount > 300 ? '🔴 TOO LARGE' : '🟢 OK'}
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-
-🚫 RECOMMENDATION: REFACTOR BEFORE TESTING
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-
-This component is too complex to test effectively. Please consider:
-
-1️⃣ **Split into smaller components**
- - Extract reusable UI sections into separate components
- - Separate business logic from presentation
- - Create smaller, focused components (< 300 lines each)
-
-2️⃣ **Extract custom hooks**
- - Move state management logic to custom hooks
- - Extract complex data transformation logic
- - Separate API calls into dedicated hooks
-
-3️⃣ **Simplify logic**
- - Reduce nesting depth
- - Break down complex conditions
- - Extract helper functions
-
-4️⃣ **After refactoring**
- - Run this tool again on each smaller component
- - Generate tests for the refactored components
- - Tests will be easier to write and maintain
-
-💡 TIP: Aim for components with:
- - Cognitive Complexity < 50/100 (preferably < 25/100)
- - Line count < 300 (preferably < 200)
- - Single responsibility principle
-
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-`)
- process.exit(0)
- }
-
- // Build prompt for AI assistant
- const builder = new TestPromptBuilder()
- const generationPrompt = builder.build(analysis)
-
- let prompt = generationPrompt
-
- if (isReviewMode) {
- const providedTestPath = args[1]
- const inferredTestPath = inferTestPath(componentPath)
- const testPath = providedTestPath ?? inferredTestPath
- const absoluteTestPath = path.resolve(process.cwd(), testPath)
-
- if (!fs.existsSync(absoluteTestPath)) {
- console.error(`❌ Error: Test file not found: ${testPath}`)
- process.exit(1)
- }
-
- const testCode = fs.readFileSync(absoluteTestPath, 'utf-8')
- const reviewBuilder = new TestReviewPromptBuilder()
- const originalPromptSection = extractCopyContent(generationPrompt)
- const normalizedTestPath = path.relative(process.cwd(), absoluteTestPath) || testPath
-
- prompt = reviewBuilder.build({
- analysis,
- testPath: normalizedTestPath,
- testCode,
- originalPromptSection,
- })
- }
-
- // JSON output mode
- if (isJsonMode) {
- console.log(JSON.stringify(analysis, null, 2))
- return
- }
-
- // Output
- console.log(prompt)
-
- try {
- const checkPbcopy = spawnSync('which', ['pbcopy'], { stdio: 'pipe' })
- if (checkPbcopy.status !== 0)
- return
- const copyContent = extractCopyContent(prompt)
- if (!copyContent)
- return
-
- const result = spawnSync('pbcopy', [], {
- input: copyContent,
- encoding: 'utf-8',
- })
-
- if (result.status === 0) {
- console.log('\n📋 Prompt copied to clipboard!')
- console.log(' Paste it in your AI assistant:')
- console.log(' - Cursor: Cmd+L (Chat) or Cmd+I (Composer)')
- console.log(' - GitHub Copilot Chat: Cmd+I')
- console.log(' - Or any other AI coding tool\n')
- }
- }
- catch {
- // pbcopy failed, but don't break the script
- }
-}
-
-function inferTestPath(componentPath) {
- const ext = path.extname(componentPath)
- if (!ext)
- return `${componentPath}.spec.ts`
- return componentPath.replace(ext, `.spec${ext}`)
-}
-
-// ============================================================================
-// Run
-// ============================================================================
-
-main()
diff --git a/web/scripts/component-analyzer.js b/web/scripts/component-analyzer.js
deleted file mode 100644
index 59f1e3f10e6..00000000000
--- a/web/scripts/component-analyzer.js
+++ /dev/null
@@ -1,484 +0,0 @@
-/**
- * Component Analyzer - Shared module for analyzing React component complexity
- *
- * This module is used by:
- * - analyze-component.js (for test generation)
- * - refactor-component.js (for refactoring suggestions)
- */
-
-import fs from 'node:fs'
-import path from 'node:path'
-import tsParser from '@typescript-eslint/parser'
-import { Linter } from 'eslint'
-import sonarPlugin from 'eslint-plugin-sonarjs'
-
-// ============================================================================
-// Component Analyzer
-// ============================================================================
-
-export class ComponentAnalyzer {
- analyze(code, filePath, absolutePath) {
- const resolvedPath = absolutePath ?? path.resolve(process.cwd(), filePath)
- const fileName = path.basename(filePath, path.extname(filePath))
- const lineCount = code.split('\n').length
- const hasReactQuery = /\buse(?:Query|Queries|InfiniteQuery|SuspenseQuery|SuspenseInfiniteQuery|Mutation)\b/.test(code)
-
- // Calculate complexity metrics
- const { total: rawComplexity, max: rawMaxComplexity } = this.calculateCognitiveComplexity(code)
- const complexity = this.normalizeComplexity(rawComplexity)
- const maxComplexity = this.normalizeComplexity(rawMaxComplexity)
-
- // Count usage references (may take a few seconds)
- const usageCount = this.countUsageReferences(filePath, resolvedPath)
-
- // Calculate test priority
- const priority = this.calculateTestPriority(complexity, usageCount)
-
- return {
- name: fileName.charAt(0).toUpperCase() + fileName.slice(1),
- path: filePath,
- type: this.detectType(filePath, code),
- hasProps: code.includes('Props') || code.includes('interface'),
- hasState: code.includes('useState') || code.includes('useReducer'),
- hasEffects: code.includes('useEffect'),
- hasCallbacks: code.includes('useCallback'),
- hasMemo: code.includes('useMemo'),
- hasEvents: /on[A-Z]\w+/.test(code),
- hasRouter: code.includes('useRouter') || code.includes('usePathname'),
- hasAPI: code.includes('service/') || code.includes('fetch(') || hasReactQuery,
- hasForwardRef: code.includes('forwardRef'),
- hasComponentMemo: /React\.memo|memo\(/.test(code),
- hasSuspense: code.includes('Suspense') || /\blazy\(/.test(code),
- hasPortal: code.includes('createPortal'),
- hasImperativeHandle: code.includes('useImperativeHandle'),
- hasReactQuery,
- hasAhooks: code.includes('from \'ahooks\''),
- complexity,
- maxComplexity,
- rawComplexity,
- rawMaxComplexity,
- lineCount,
- usageCount,
- priority,
- }
- }
-
- detectType(filePath, code) {
- const normalizedPath = filePath.replace(/\\/g, '/')
- if (normalizedPath.includes('/hooks/'))
- return 'hook'
- if (normalizedPath.includes('/utils/'))
- return 'util'
- if (/\/page\.(t|j)sx?$/.test(normalizedPath))
- return 'page'
- if (/\/layout\.(t|j)sx?$/.test(normalizedPath))
- return 'layout'
- if (/\/providers?\//.test(normalizedPath))
- return 'provider'
- // Dify-specific types
- if (normalizedPath.includes('/components/base/'))
- return 'base-component'
- if (normalizedPath.includes('/context/'))
- return 'context'
- if (normalizedPath.includes('/store/'))
- return 'store'
- if (normalizedPath.includes('/service/'))
- return 'service'
- if (/use[A-Z]\w+/.test(code))
- return 'component'
- return 'component'
- }
-
- /**
- * Calculate Cognitive Complexity using SonarJS ESLint plugin
- * Reference: https://www.sonarsource.com/blog/5-clean-code-tips-for-reducing-cognitive-complexity/
- *
- * Returns raw (unnormalized) complexity values:
- * - total: sum of all functions' complexity in the file
- * - max: highest single function complexity in the file
- *
- * Raw Score Thresholds (per function):
- * 0-15: Simple | 16-30: Medium | 31-50: Complex | 51+: Very Complex
- *
- * @returns {{ total: number, max: number }} raw total and max complexity
- */
- calculateCognitiveComplexity(code) {
- const linter = new Linter()
- const baseConfig = {
- languageOptions: {
- parser: tsParser,
- parserOptions: {
- ecmaVersion: 'latest',
- sourceType: 'module',
- ecmaFeatures: { jsx: true },
- },
- },
- plugins: { sonarjs: sonarPlugin },
- }
-
- try {
- // Get total complexity using 'metric' option (more stable)
- const totalConfig = {
- ...baseConfig,
- rules: { 'sonarjs/cognitive-complexity': ['error', 0, 'metric'] },
- }
- const totalMessages = linter.verify(code, totalConfig)
- const totalMsg = totalMessages.find(
- msg => msg.ruleId === 'sonarjs/cognitive-complexity'
- && msg.messageId === 'fileComplexity',
- )
- const total = totalMsg ? Number.parseInt(totalMsg.message, 10) : 0
-
- // Get max function complexity by analyzing each function
- const maxConfig = {
- ...baseConfig,
- rules: { 'sonarjs/cognitive-complexity': ['error', 0] },
- }
- const maxMessages = linter.verify(code, maxConfig)
- let max = 0
- const complexityPattern = /reduce its Cognitive Complexity from (\d+)/
-
- maxMessages.forEach((msg) => {
- if (msg.ruleId === 'sonarjs/cognitive-complexity') {
- const match = complexityPattern.exec(msg.message)
- if (match && match[1])
- max = Math.max(max, Number.parseInt(match[1], 10))
- }
- })
-
- return { total, max }
- }
- catch {
- return { total: 0, max: 0 }
- }
- }
-
- /**
- * Normalize cognitive complexity to 0-100 scale
- *
- * Mapping (aligned with SonarJS thresholds):
- * Raw 0-15 (Simple) -> Normalized 0-25
- * Raw 16-30 (Medium) -> Normalized 25-50
- * Raw 31-50 (Complex) -> Normalized 50-75
- * Raw 51+ (Very Complex) -> Normalized 75-100 (asymptotic)
- */
- normalizeComplexity(rawComplexity) {
- if (rawComplexity <= 15) {
- // Linear: 0-15 -> 0-25
- return Math.round((rawComplexity / 15) * 25)
- }
- else if (rawComplexity <= 30) {
- // Linear: 16-30 -> 25-50
- return Math.round(25 + ((rawComplexity - 15) / 15) * 25)
- }
- else if (rawComplexity <= 50) {
- // Linear: 31-50 -> 50-75
- return Math.round(50 + ((rawComplexity - 30) / 20) * 25)
- }
- else {
- // Asymptotic: 51+ -> 75-100
- // Formula ensures score approaches but never exceeds 100
- return Math.round(75 + 25 * (1 - 1 / (1 + (rawComplexity - 50) / 100)))
- }
- }
-
- /**
- * Count how many times a component is referenced in the codebase
- * Scans TypeScript sources for import statements referencing the component
- */
- countUsageReferences(filePath, absolutePath) {
- try {
- const resolvedComponentPath = absolutePath ?? path.resolve(process.cwd(), filePath)
- const fileName = path.basename(resolvedComponentPath, path.extname(resolvedComponentPath))
-
- let searchName = fileName
- if (fileName === 'index') {
- const parentDir = path.dirname(resolvedComponentPath)
- searchName = path.basename(parentDir)
- }
-
- if (!searchName)
- return 0
-
- const searchRoots = this.collectSearchRoots(resolvedComponentPath)
- if (searchRoots.length === 0)
- return 0
-
- const escapedName = ComponentAnalyzer.escapeRegExp(searchName)
- const patterns = [
- new RegExp(`from\\s+['"][^'"]*(?:/|^)${escapedName}(?:['"/]|$)`),
- new RegExp(`import\\s*\\(\\s*['"][^'"]*(?:/|^)${escapedName}(?:['"/]|$)`),
- new RegExp(`export\\s+(?:\\*|{[^}]*})\\s*from\\s+['"][^'"]*(?:/|^)${escapedName}(?:['"/]|$)`),
- new RegExp(`require\\s*\\(\\s*['"][^'"]*(?:/|^)${escapedName}(?:['"/]|$)`),
- ]
-
- const visited = new Set()
- let usageCount = 0
-
- const stack = [...searchRoots]
- while (stack.length > 0) {
- const currentDir = stack.pop()
- if (!currentDir || visited.has(currentDir))
- continue
- visited.add(currentDir)
-
- const entries = fs.readdirSync(currentDir, { withFileTypes: true })
-
- entries.forEach((entry) => {
- const entryPath = path.join(currentDir, entry.name)
-
- if (entry.isDirectory()) {
- if (this.shouldSkipDir(entry.name))
- return
- stack.push(entryPath)
- return
- }
-
- if (!this.shouldInspectFile(entry.name))
- return
-
- const normalizedEntryPath = path.resolve(entryPath)
- if (normalizedEntryPath === path.resolve(resolvedComponentPath))
- return
-
- const source = fs.readFileSync(entryPath, 'utf-8')
- if (!source.includes(searchName))
- return
-
- if (patterns.some((pattern) => {
- pattern.lastIndex = 0
- return pattern.test(source)
- })) {
- usageCount += 1
- }
- })
- }
-
- return usageCount
- }
- catch {
- // If command fails, return 0
- return 0
- }
- }
-
- collectSearchRoots(resolvedComponentPath) {
- const roots = new Set()
-
- let currentDir = path.dirname(resolvedComponentPath)
- const workspaceRoot = process.cwd()
-
- while (currentDir && currentDir !== path.dirname(currentDir)) {
- if (path.basename(currentDir) === 'app') {
- roots.add(currentDir)
- break
- }
-
- if (currentDir === workspaceRoot)
- break
- currentDir = path.dirname(currentDir)
- }
-
- const fallbackRoots = [
- path.join(workspaceRoot, 'app'),
- path.join(workspaceRoot, 'web', 'app'),
- path.join(workspaceRoot, 'src'),
- ]
-
- fallbackRoots.forEach((root) => {
- if (fs.existsSync(root) && fs.statSync(root).isDirectory())
- roots.add(root)
- })
-
- return Array.from(roots)
- }
-
- shouldSkipDir(dirName) {
- const normalized = dirName.toLowerCase()
- return [
- 'node_modules',
- '.git',
- '.next',
- 'dist',
- 'out',
- 'coverage',
- 'build',
- '__tests__',
- '__mocks__',
- ].includes(normalized)
- }
-
- shouldInspectFile(fileName) {
- const normalized = fileName.toLowerCase()
- if (!(/\.(ts|tsx)$/i.test(fileName)))
- return false
- if (normalized.endsWith('.d.ts'))
- return false
- if (/\.(spec|test)\.(ts|tsx)$/.test(normalized))
- return false
- if (normalized.endsWith('.stories.tsx'))
- return false
- return true
- }
-
- static escapeRegExp(value) {
- return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
- }
-
- /**
- * Calculate test priority based on cognitive complexity and usage
- *
- * Priority Score = 0.7 * Complexity + 0.3 * Usage Score (all normalized to 0-100)
- * - Complexity Score: 0-100 (normalized from SonarJS)
- * - Usage Score: 0-100 (based on reference count)
- *
- * Priority Levels (0-100):
- * - 0-25: 🟢 LOW
- * - 26-50: 🟡 MEDIUM
- * - 51-75: 🟠 HIGH
- * - 76-100: 🔴 CRITICAL
- */
- calculateTestPriority(complexity, usageCount) {
- const complexityScore = complexity
-
- // Normalize usage score to 0-100
- let usageScore
- if (usageCount === 0)
- usageScore = 0
- else if (usageCount <= 5)
- usageScore = 20
- else if (usageCount <= 20)
- usageScore = 40
- else if (usageCount <= 50)
- usageScore = 70
- else
- usageScore = 100
-
- // Weighted average: complexity (70%) + usage (30%)
- const totalScore = Math.round(0.7 * complexityScore + 0.3 * usageScore)
-
- return {
- score: totalScore,
- level: this.getPriorityLevel(totalScore),
- usageScore,
- complexityScore,
- }
- }
-
- /**
- * Get priority level based on score (0-100 scale)
- */
- getPriorityLevel(score) {
- if (score > 75)
- return '🔴 CRITICAL'
- if (score > 50)
- return '🟠 HIGH'
- if (score > 25)
- return '🟡 MEDIUM'
- return '🟢 LOW'
- }
-}
-
-// ============================================================================
-// Helper Functions
-// ============================================================================
-
-/**
- * Resolve directory to entry file
- * Priority: index files > common entry files (node.tsx, panel.tsx, etc.)
- */
-export function resolveDirectoryEntry(absolutePath, componentPath) {
- // Entry files in priority order: index files first, then common entry files
- const entryFiles = [
- 'index.tsx',
- 'index.ts', // Priority 1: index files
- 'node.tsx',
- 'panel.tsx',
- 'component.tsx',
- 'main.tsx',
- 'container.tsx', // Priority 2: common entry files
- ]
- for (const entryFile of entryFiles) {
- const entryPath = path.join(absolutePath, entryFile)
- if (fs.existsSync(entryPath)) {
- return {
- absolutePath: entryPath,
- componentPath: path.join(componentPath, entryFile),
- }
- }
- }
-
- return null
-}
-
-/**
- * List analyzable files in directory (for user guidance)
- */
-export function listAnalyzableFiles(dirPath) {
- try {
- const entries = fs.readdirSync(dirPath, { withFileTypes: true })
- return entries
- .filter(entry => !entry.isDirectory() && /\.(tsx?|jsx?)$/.test(entry.name) && !entry.name.endsWith('.d.ts'))
- .map(entry => entry.name)
- .sort((a, b) => {
- // Prioritize common entry files
- const priority = ['index.tsx', 'index.ts', 'node.tsx', 'panel.tsx', 'component.tsx', 'main.tsx', 'container.tsx']
- const aIdx = priority.indexOf(a)
- const bIdx = priority.indexOf(b)
- if (aIdx !== -1 && bIdx !== -1)
- return aIdx - bIdx
- if (aIdx !== -1)
- return -1
- if (bIdx !== -1)
- return 1
- return a.localeCompare(b)
- })
- }
- catch {
- return []
- }
-}
-
-/**
- * Extract copy content from prompt (for clipboard)
- */
-export function extractCopyContent(prompt) {
- const marker = '📋 PROMPT FOR AI ASSISTANT (COPY THIS TO YOUR AI ASSISTANT):'
- const markerIndex = prompt.indexOf(marker)
- if (markerIndex === -1)
- return ''
-
- const section = prompt.slice(markerIndex)
- const lines = section.split('\n')
- const firstDivider = lines.findIndex(line => line.includes('━━━━━━━━'))
- if (firstDivider === -1)
- return ''
-
- const startIdx = firstDivider + 1
- let endIdx = lines.length
-
- for (let i = startIdx; i < lines.length; i++) {
- if (lines[i].includes('━━━━━━━━')) {
- endIdx = i
- break
- }
- }
-
- if (startIdx >= endIdx)
- return ''
-
- return lines.slice(startIdx, endIdx).join('\n').trim()
-}
-
-/**
- * Get complexity level label
- */
-export function getComplexityLevel(score) {
- if (score <= 25)
- return '🟢 Simple'
- if (score <= 50)
- return '🟡 Medium'
- if (score <= 75)
- return '🟠 Complex'
- return '🔴 Very Complex'
-}
diff --git a/web/scripts/refactor-component.js b/web/scripts/refactor-component.js
deleted file mode 100644
index 58b440cd3ae..00000000000
--- a/web/scripts/refactor-component.js
+++ /dev/null
@@ -1,415 +0,0 @@
-#!/usr/bin/env node
-
-import { spawnSync } from 'node:child_process'
-import fs from 'node:fs'
-import path from 'node:path'
-import {
- ComponentAnalyzer,
- extractCopyContent,
- getComplexityLevel,
- listAnalyzableFiles,
- resolveDirectoryEntry,
-} from './component-analyzer.js'
-
-// ============================================================================
-// Extended Analyzer for Refactoring
-// ============================================================================
-
-class RefactorAnalyzer extends ComponentAnalyzer {
- analyze(code, filePath, absolutePath) {
- // Get base analysis from parent class
- const baseAnalysis = super.analyze(code, filePath, absolutePath)
-
- // Add refactoring-specific metrics
- // Note: These counts use regex matching which may include import statements.
- // For most components this results in +1 over actual usage, which is acceptable
- // for heuristic analysis. For precise AST-based counting, consider using
- // @typescript-eslint/parser to traverse the AST.
- const stateCount = (code.match(/useState\s*[(<]/g) || []).length
- const effectCount = (code.match(/useEffect\s*\(/g) || []).length
- const callbackCount = (code.match(/useCallback\s*\(/g) || []).length
- const memoCount = (code.match(/useMemo\s*\(/g) || []).length
- const conditionalBlocks = this.countConditionalBlocks(code)
- const nestedTernaries = this.countNestedTernaries(code)
- const hasContext = code.includes('useContext') || code.includes('createContext')
- const hasReducer = code.includes('useReducer')
- const hasModals = this.countModals(code)
-
- return {
- ...baseAnalysis,
- stateCount,
- effectCount,
- callbackCount,
- memoCount,
- conditionalBlocks,
- nestedTernaries,
- hasContext,
- hasReducer,
- hasModals,
- }
- }
-
- countModals(code) {
- const modalPatterns = [
- /Modal/g,
- /Dialog/g,
- /Drawer/g,
- /Confirm/g,
- /showModal|setShowModal|isShown|isShowing/g,
- ]
- let count = 0
- modalPatterns.forEach((pattern) => {
- const matches = code.match(pattern)
- if (matches)
- count += matches.length
- })
- return Math.floor(count / 3) // Rough estimate of actual modals
- }
-
- countConditionalBlocks(code) {
- const ifBlocks = (code.match(/\bif\s*\(/g) || []).length
- const ternaries = (code.match(/\?.*:/g) || []).length
- const switchCases = (code.match(/\bswitch\s*\(/g) || []).length
- return ifBlocks + ternaries + switchCases
- }
-
- countNestedTernaries(code) {
- const nestedInTrueBranch = (code.match(/\?[^:?]*\?[^:]*:/g) || []).length
- const nestedInFalseBranch = (code.match(/\?[^:?]*:[^?]*\?[^:]*:/g) || []).length
-
- return nestedInTrueBranch + nestedInFalseBranch
- }
-}
-
-// ============================================================================
-// Refactor Prompt Builder
-// ============================================================================
-
-class RefactorPromptBuilder {
- build(analysis) {
- const refactorActions = this.identifyRefactorActions(analysis)
-
- return `
-╔════════════════════════════════════════════════════════════════════════════╗
-║ 🔧 REFACTOR DIFY COMPONENT ║
-╚════════════════════════════════════════════════════════════════════════════╝
-
-📍 Component: ${analysis.name}
-📂 Path: ${analysis.path}
-
-📊 Complexity Analysis:
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-Total Complexity: ${analysis.complexity}/100 ${getComplexityLevel(analysis.complexity)}
-Max Func Complexity: ${analysis.maxComplexity}/100 ${getComplexityLevel(analysis.maxComplexity)}
-Lines: ${analysis.lineCount} ${analysis.lineCount > 300 ? '⚠️ TOO LARGE' : ''}
-Usage: ${analysis.usageCount} reference${analysis.usageCount !== 1 ? 's' : ''}
-
-📈 Code Metrics:
- useState calls: ${analysis.stateCount}
- useEffect calls: ${analysis.effectCount}
- useCallback calls: ${analysis.callbackCount}
- useMemo calls: ${analysis.memoCount}
- Conditional blocks: ${analysis.conditionalBlocks}
- Nested ternaries: ${analysis.nestedTernaries}
- Modal components: ${analysis.hasModals}
-
-🔍 Features Detected:
- ${analysis.hasState ? '✓' : '✗'} Local state (useState/useReducer)
- ${analysis.hasEffects ? '✓' : '✗'} Side effects (useEffect)
- ${analysis.hasCallbacks ? '✓' : '✗'} Callbacks (useCallback)
- ${analysis.hasMemo ? '✓' : '✗'} Memoization (useMemo)
- ${analysis.hasContext ? '✓' : '✗'} Context (useContext/createContext)
- ${analysis.hasEvents ? '✓' : '✗'} Event handlers
- ${analysis.hasRouter ? '✓' : '✗'} Next.js routing
- ${analysis.hasAPI ? '✓' : '✗'} API calls
- ${analysis.hasReactQuery ? '✓' : '✗'} React Query
- ${analysis.hasAhooks ? '✓' : '✗'} ahooks
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-
-🎯 RECOMMENDED REFACTORING ACTIONS:
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-${refactorActions.map((action, i) => `${i + 1}. ${action}`).join('\n')}
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-
-📋 PROMPT FOR AI ASSISTANT (COPY THIS TO YOUR AI ASSISTANT):
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-
-Please refactor the component at @${analysis.path}
-
-Component metrics:
-- Complexity: ${analysis.complexity}/100 (target: < 50)
-- Lines: ${analysis.lineCount} (target: < 300)
-- useState: ${analysis.stateCount}, useEffect: ${analysis.effectCount}
-
-Refactoring tasks:
-${refactorActions.map(action => `- ${action}`).join('\n')}
-
-Requirements:
-${this.buildRequirements(analysis)}
-
-Follow Dify project conventions:
-- Place extracted hooks in \`hooks/\` subdirectory or as \`use-<feature>.ts\`
-- Use React Query (\`@tanstack/react-query\`) for data fetching
-- Follow existing patterns in \`web/service/use-*.ts\` for API hooks
-- Keep each new file under 300 lines
-- Maintain TypeScript strict typing
-
-After refactoring, verify:
-- \`pnpm lint:fix\` passes
-- \`pnpm type-check\` passes
-- Re-run \`pnpm refactor-component ${analysis.path}\` to confirm complexity < 50
-
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-`
- }
-
- identifyRefactorActions(analysis) {
- const actions = []
-
- // Priority 1: Extract hooks for complex state management
- if (analysis.stateCount >= 3 || (analysis.stateCount >= 2 && analysis.effectCount >= 2)) {
- actions.push(`🪝 EXTRACT CUSTOM HOOK: ${analysis.stateCount} useState + ${analysis.effectCount} useEffect detected. Extract related state and effects into a custom hook (e.g., \`use${analysis.name}State.ts\`)`)
- }
-
- // Priority 2: Extract API/data logic
- if (analysis.hasAPI)
- actions.push('🌐 EXTRACT DATA HOOK: Move API calls and data fetching logic into a dedicated hook using React Query')
-
- // Priority 3: Split large components
- if (analysis.lineCount > 300) {
- actions.push(`📦 SPLIT COMPONENT: ${analysis.lineCount} lines exceeds limit. Extract UI sections into sub-components`)
- }
-
- // Priority 4: Extract modal management
- if (analysis.hasModals >= 2) {
- actions.push(`🔲 EXTRACT MODAL MANAGEMENT: ${analysis.hasModals} modal-related patterns detected. Create a useModalState hook or separate modal components`)
- }
-
- // Priority 5: Simplify conditionals
- if (analysis.conditionalBlocks > 10 || analysis.nestedTernaries >= 2) {
- actions.push('🔀 SIMPLIFY CONDITIONALS: Use lookup tables, early returns, or extract complex conditions into named functions')
- }
-
- // Priority 6: Extract callbacks
- if (analysis.callbackCount >= 4) {
- actions.push(`⚡ CONSOLIDATE CALLBACKS: ${analysis.callbackCount} useCallback calls. Consider extracting related callbacks into a custom hook`)
- }
-
- // Priority 7: Context provider extraction
- if (analysis.hasContext && analysis.complexity > 50) {
- actions.push('🎯 EXTRACT CONTEXT LOGIC: Move context provider logic into separate files or split into domain-specific contexts')
- }
-
- // Priority 8: Memoization review
- if (analysis.memoCount >= 3 && analysis.complexity > 50) {
- actions.push(`📝 REVIEW MEMOIZATION: ${analysis.memoCount} useMemo calls. Extract complex computations into utility functions or hooks`)
- }
-
- // If no specific issues, provide general guidance
- if (actions.length === 0) {
- if (analysis.complexity > 50) {
- actions.push('🔍 ANALYZE FUNCTIONS: Review individual functions for complexity and extract helper functions')
- }
- else {
- actions.push('✅ Component complexity is acceptable. Consider minor improvements for maintainability')
- }
- }
-
- return actions
- }
-
- buildRequirements(analysis) {
- const requirements = []
-
- if (analysis.stateCount >= 3) {
- requirements.push('- Group related useState calls into a single custom hook')
- requirements.push('- Move associated useEffect calls with the state they depend on')
- }
-
- if (analysis.hasAPI) {
- requirements.push('- Create data fetching hook following web/service/use-*.ts patterns')
- requirements.push('- Use useQuery with proper queryKey and enabled options')
- requirements.push('- Export invalidation hook (useInvalidXxx) for cache management')
- }
-
- if (analysis.lineCount > 300) {
- requirements.push('- Extract logical UI sections into separate components')
- requirements.push('- Keep parent component focused on orchestration')
- requirements.push('- Pass minimal props to child components')
- }
-
- if (analysis.hasModals >= 2) {
- requirements.push('- Create unified modal state management')
- requirements.push('- Consider extracting modals to separate file')
- }
-
- if (analysis.conditionalBlocks > 10) {
- requirements.push('- Replace switch statements with lookup tables')
- requirements.push('- Use early returns to reduce nesting')
- requirements.push('- Extract complex boolean logic to named functions')
- }
-
- if (requirements.length === 0) {
- requirements.push('- Maintain existing code structure')
- requirements.push('- Focus on readability improvements')
- }
-
- return requirements.join('\n')
- }
-}
-
-// ============================================================================
-// Main Function
-// ============================================================================
-
-function showHelp() {
- console.log(`
-🔧 Component Refactor Tool - Generate refactoring prompts for AI assistants
-
-Usage:
- node refactor-component.js <component-path> [options]
- pnpm refactor-component <component-path> [options]
-
-Options:
- --help Show this help message
- --json Output analysis result as JSON (for programmatic use)
-
-Examples:
- # Analyze and generate refactoring prompt
- pnpm refactor-component app/components/app/configuration/index.tsx
-
- # Output as JSON
- pnpm refactor-component app/components/tools/mcp/modal.tsx --json
-
-Complexity Thresholds:
- 🟢 0-25: Simple (no refactoring needed)
- 🟡 26-50: Medium (consider minor refactoring)
- 🟠 51-75: Complex (should refactor)
- 🔴 76-100: Very Complex (must refactor)
-
-For complete refactoring guidelines, see:
- .claude/skills/component-refactoring/SKILL.md
-`)
-}
-
-function main() {
- const rawArgs = process.argv.slice(2)
-
- let isJsonMode = false
- const args = []
-
- rawArgs.forEach((arg) => {
- if (arg === '--json') {
- isJsonMode = true
- return
- }
- if (arg === '--help' || arg === '-h') {
- showHelp()
- process.exit(0)
- }
- args.push(arg)
- })
-
- if (args.length === 0) {
- showHelp()
- process.exit(1)
- }
-
- let componentPath = args[0]
- let absolutePath = path.resolve(process.cwd(), componentPath)
-
- if (!fs.existsSync(absolutePath)) {
- console.error(`❌ Error: Path not found: ${componentPath}`)
- process.exit(1)
- }
-
- if (fs.statSync(absolutePath).isDirectory()) {
- const resolvedFile = resolveDirectoryEntry(absolutePath, componentPath)
- if (resolvedFile) {
- absolutePath = resolvedFile.absolutePath
- componentPath = resolvedFile.componentPath
- }
- else {
- const availableFiles = listAnalyzableFiles(absolutePath)
- console.error(`❌ Error: Directory does not contain a recognizable entry file: ${componentPath}`)
- if (availableFiles.length > 0) {
- console.error(`\n Available files to analyze:`)
- availableFiles.forEach(f => console.error(` - ${path.join(componentPath, f)}`))
- console.error(`\n Please specify the exact file path, e.g.:`)
- console.error(` pnpm refactor-component ${path.join(componentPath, availableFiles[0])}`)
- }
- process.exit(1)
- }
- }
-
- const sourceCode = fs.readFileSync(absolutePath, 'utf-8')
-
- const analyzer = new RefactorAnalyzer()
- const analysis = analyzer.analyze(sourceCode, componentPath, absolutePath)
-
- // JSON output mode
- if (isJsonMode) {
- console.log(JSON.stringify(analysis, null, 2))
- return
- }
-
- // Check if refactoring is needed
- if (analysis.complexity <= 25 && analysis.lineCount <= 200) {
- console.log(`
-╔════════════════════════════════════════════════════════════════════════════╗
-║ ✅ COMPONENT IS WELL-STRUCTURED ║
-╚════════════════════════════════════════════════════════════════════════════╝
-
-📍 Component: ${analysis.name}
-📂 Path: ${analysis.path}
-
-📊 Metrics:
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-Complexity: ${analysis.complexity}/100 🟢 Simple
-Lines: ${analysis.lineCount} ✓ Within limits
-━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-
-This component has good structure. No immediate refactoring needed.
-You can proceed with testing using: pnpm analyze-component ${componentPath}
-`)
- return
- }
-
- // Build refactoring prompt
- const builder = new RefactorPromptBuilder()
- const prompt = builder.build(analysis)
-
- console.log(prompt)
-
- // Copy to clipboard (macOS)
- try {
- const checkPbcopy = spawnSync('which', ['pbcopy'], { stdio: 'pipe' })
- if (checkPbcopy.status !== 0)
- return
- const copyContent = extractCopyContent(prompt)
- if (!copyContent)
- return
-
- const result = spawnSync('pbcopy', [], {
- input: copyContent,
- encoding: 'utf-8',
- })
-
- if (result.status === 0) {
- console.log('\n📋 Refactoring prompt copied to clipboard!')
- console.log(' Paste it in your AI assistant:')
- console.log(' - Cursor: Cmd+L (Chat) or Cmd+I (Composer)')
- console.log(' - GitHub Copilot Chat: Cmd+I')
- console.log(' - Or any other AI coding tool\n')
- }
- }
- catch {
- // pbcopy failed, but don't break the script
- }
-}
-
-// ============================================================================
-// Run
-// ============================================================================
-
-main()