@elench/testkit 0.1.64 → 0.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/browser-bridge.mjs +66 -0
- package/lib/app/configs.mjs +81 -0
- package/lib/app/configs.test.mjs +34 -0
- package/lib/cli/command-helpers.mjs +2 -10
- package/lib/cli/commands/browser/serve.mjs +3 -62
- package/lib/cli/db.mjs +3 -68
- package/lib/config/binaries.mjs +34 -0
- package/lib/config/database.mjs +9 -6
- package/lib/config/index.mjs +2 -31
- package/lib/config/runtime.mjs +24 -95
- package/lib/config/validation.mjs +18 -62
- package/lib/coverage/backend-discovery.mjs +68 -85
- package/lib/coverage/backend-discovery.test.mjs +55 -46
- package/lib/coverage/evidence.mjs +15 -3
- package/lib/coverage/evidence.test.mjs +13 -4
- package/lib/coverage/graph-builder.mjs +25 -26
- package/lib/coverage/next-ir-to-graph.mjs +239 -0
- package/lib/coverage/routing.mjs +2 -29
- package/lib/coverage/routing.test.mjs +0 -16
- package/lib/coverage/shared.mjs +22 -82
- package/lib/database/fingerprint.mjs +1 -1
- package/lib/known-failures/github-cache.mjs +159 -0
- package/lib/known-failures/github-transport.mjs +174 -0
- package/lib/known-failures/github.mjs +17 -325
- package/lib/runner/default-runtime-runner.mjs +4 -10
- package/lib/runner/execution-config.mjs +12 -83
- package/lib/runner/live-run.mjs +45 -0
- package/lib/runner/managed-processes.mjs +29 -0
- package/lib/runner/orchestrator.mjs +57 -188
- package/lib/runner/playwright-runner.mjs +4 -11
- package/lib/runner/run-finalization.mjs +132 -0
- package/lib/runner/run-guards.mjs +45 -0
- package/lib/runner/runtime-preparation.mjs +1 -1
- package/lib/runner/services.mjs +3 -4
- package/lib/runner/template-steps.mjs +8 -45
- package/lib/runner/template.mjs +7 -28
- package/lib/shared/configured-steps.mjs +178 -0
- package/lib/shared/configured-steps.test.mjs +73 -0
- package/lib/shared/execution-schema.mjs +74 -0
- package/lib/shared/execution-schema.test.mjs +26 -0
- package/node_modules/@elench/next-analysis/dist/api-routes.d.ts +7 -0
- package/node_modules/@elench/next-analysis/dist/api-routes.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/api-routes.js +66 -0
- package/node_modules/@elench/next-analysis/dist/api-routes.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/app-root.d.ts +2 -0
- package/node_modules/@elench/next-analysis/dist/app-root.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/app-root.js +7 -0
- package/node_modules/@elench/next-analysis/dist/app-root.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/backend-links.d.ts +8 -0
- package/node_modules/@elench/next-analysis/dist/backend-links.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/backend-links.js +30 -0
- package/node_modules/@elench/next-analysis/dist/backend-links.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/index.d.ts +11 -0
- package/node_modules/@elench/next-analysis/dist/index.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/index.js +10 -0
- package/node_modules/@elench/next-analysis/dist/index.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/pages.d.ts +7 -0
- package/node_modules/@elench/next-analysis/dist/pages.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/pages.js +47 -0
- package/node_modules/@elench/next-analysis/dist/pages.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/project.d.ts +3 -0
- package/node_modules/@elench/next-analysis/dist/project.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/project.js +102 -0
- package/node_modules/@elench/next-analysis/dist/project.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/route-tree.d.ts +7 -0
- package/node_modules/@elench/next-analysis/dist/route-tree.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/route-tree.js +575 -0
- package/node_modules/@elench/next-analysis/dist/route-tree.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/routes.d.ts +6 -0
- package/node_modules/@elench/next-analysis/dist/routes.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/routes.js +41 -0
- package/node_modules/@elench/next-analysis/dist/routes.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/server-actions.d.ts +7 -0
- package/node_modules/@elench/next-analysis/dist/server-actions.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/server-actions.js +37 -0
- package/node_modules/@elench/next-analysis/dist/server-actions.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/shared.d.ts +57 -0
- package/node_modules/@elench/next-analysis/dist/shared.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/shared.js +229 -0
- package/node_modules/@elench/next-analysis/dist/shared.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/swc.d.ts +53 -0
- package/node_modules/@elench/next-analysis/dist/swc.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/swc.js +387 -0
- package/node_modules/@elench/next-analysis/dist/swc.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/types.d.ts +125 -0
- package/node_modules/@elench/next-analysis/dist/types.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/types.js +2 -0
- package/node_modules/@elench/next-analysis/dist/types.js.map +1 -0
- package/node_modules/@elench/next-analysis/package.json +27 -0
- package/node_modules/@elench/testkit-bridge/dist/index.d.ts +36 -0
- package/node_modules/@elench/testkit-bridge/dist/index.d.ts.map +1 -0
- package/node_modules/@elench/testkit-bridge/dist/index.js +538 -0
- package/node_modules/@elench/testkit-bridge/dist/index.js.map +1 -0
- package/node_modules/@elench/testkit-bridge/package.json +16 -5
- package/node_modules/@elench/testkit-protocol/dist/index.d.ts +190 -0
- package/node_modules/@elench/testkit-protocol/dist/index.d.ts.map +1 -0
- package/node_modules/@elench/testkit-protocol/dist/index.js +296 -0
- package/node_modules/@elench/testkit-protocol/dist/index.js.map +1 -0
- package/node_modules/@elench/testkit-protocol/package.json +14 -7
- package/node_modules/@elench/ts-analysis/dist/callables.d.ts +8 -0
- package/node_modules/@elench/ts-analysis/dist/callables.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/callables.js +126 -0
- package/node_modules/@elench/ts-analysis/dist/callables.js.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/exports.d.ts +6 -0
- package/node_modules/@elench/ts-analysis/dist/exports.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/exports.js +70 -0
- package/node_modules/@elench/ts-analysis/dist/exports.js.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/index.d.ts +10 -0
- package/node_modules/@elench/ts-analysis/dist/index.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/{src/index.mjs → dist/index.js} +9 -14
- package/node_modules/@elench/ts-analysis/dist/index.js.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/jsx.d.ts +9 -0
- package/node_modules/@elench/ts-analysis/dist/jsx.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/jsx.js +68 -0
- package/node_modules/@elench/ts-analysis/dist/jsx.js.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/project.d.ts +5 -0
- package/node_modules/@elench/ts-analysis/dist/project.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/project.js +90 -0
- package/node_modules/@elench/ts-analysis/dist/project.js.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/requests.d.ts +6 -0
- package/node_modules/@elench/ts-analysis/dist/requests.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/requests.js +140 -0
- package/node_modules/@elench/ts-analysis/dist/requests.js.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/resolution.d.ts +4 -0
- package/node_modules/@elench/ts-analysis/dist/resolution.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/resolution.js +53 -0
- package/node_modules/@elench/ts-analysis/dist/resolution.js.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/shared.d.ts +6 -0
- package/node_modules/@elench/ts-analysis/dist/shared.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/shared.js +31 -0
- package/node_modules/@elench/ts-analysis/dist/shared.js.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/syntax.d.ts +7 -0
- package/node_modules/@elench/ts-analysis/dist/syntax.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/syntax.js +27 -0
- package/node_modules/@elench/ts-analysis/dist/syntax.js.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/types.d.ts +58 -0
- package/node_modules/@elench/ts-analysis/dist/types.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/types.js +2 -0
- package/node_modules/@elench/ts-analysis/dist/types.js.map +1 -0
- package/node_modules/@elench/ts-analysis/package.json +18 -2
- package/node_modules/@next/routing/README.md +91 -0
- package/node_modules/@next/routing/dist/__tests__/captures.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/__tests__/conditions.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/__tests__/dynamic-after-rewrites.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/__tests__/i18n-resolve-routes.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/__tests__/i18n.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/__tests__/middleware.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/__tests__/normalize-next-data.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/__tests__/redirects.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/__tests__/resolve-routes.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/__tests__/rewrites.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/destination.d.ts +22 -0
- package/node_modules/@next/routing/dist/i18n.d.ts +48 -0
- package/node_modules/@next/routing/dist/index.d.ts +5 -0
- package/node_modules/@next/routing/dist/index.js +1 -0
- package/node_modules/@next/routing/dist/matchers.d.ts +12 -0
- package/node_modules/@next/routing/dist/middleware.d.ts +12 -0
- package/node_modules/@next/routing/dist/next-data.d.ts +10 -0
- package/node_modules/@next/routing/dist/resolve-routes.d.ts +2 -0
- package/node_modules/@next/routing/dist/types.d.ts +97 -0
- package/node_modules/@next/routing/package.json +39 -0
- package/node_modules/@swc/core/README.md +100 -0
- package/node_modules/@swc/core/Visitor.d.ts +218 -0
- package/node_modules/@swc/core/Visitor.js +1399 -0
- package/node_modules/@swc/core/binding.d.ts +59 -0
- package/node_modules/@swc/core/binding.js +368 -0
- package/node_modules/@swc/core/index.d.ts +120 -0
- package/node_modules/@swc/core/index.js +443 -0
- package/node_modules/@swc/core/package.json +120 -0
- package/node_modules/@swc/core/postinstall.js +148 -0
- package/node_modules/@swc/core/spack.d.ts +51 -0
- package/node_modules/@swc/core/spack.js +87 -0
- package/node_modules/@swc/core/util.d.ts +1 -0
- package/node_modules/@swc/core/util.js +104 -0
- package/node_modules/@swc/core-linux-x64-gnu/README.md +3 -0
- package/node_modules/@swc/core-linux-x64-gnu/package.json +46 -0
- package/node_modules/@swc/core-linux-x64-gnu/swc.linux-x64-gnu.node +0 -0
- package/node_modules/@swc/counter/CHANGELOG.md +7 -0
- package/node_modules/@swc/counter/README.md +7 -0
- package/node_modules/@swc/counter/index.js +1 -0
- package/node_modules/@swc/counter/package.json +27 -0
- package/node_modules/@swc/types/LICENSE +201 -0
- package/node_modules/@swc/types/README.md +4 -0
- package/node_modules/@swc/types/assumptions.d.ts +92 -0
- package/node_modules/@swc/types/assumptions.js +2 -0
- package/node_modules/@swc/types/index.d.ts +2049 -0
- package/node_modules/@swc/types/index.js +2 -0
- package/node_modules/@swc/types/package.json +40 -0
- package/node_modules/typescript/LICENSE.txt +55 -0
- package/node_modules/typescript/README.md +50 -0
- package/node_modules/typescript/SECURITY.md +41 -0
- package/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
- package/node_modules/typescript/bin/tsc +2 -0
- package/node_modules/typescript/bin/tsserver +2 -0
- package/node_modules/typescript/lib/_tsc.js +133818 -0
- package/node_modules/typescript/lib/_tsserver.js +659 -0
- package/node_modules/typescript/lib/_typingsInstaller.js +222 -0
- package/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/lib.d.ts +22 -0
- package/node_modules/typescript/lib/lib.decorators.d.ts +384 -0
- package/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
- package/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +41 -0
- package/node_modules/typescript/lib/lib.dom.d.ts +39429 -0
- package/node_modules/typescript/lib/lib.dom.iterable.d.ts +571 -0
- package/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
- package/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
- package/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
- package/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
- package/node_modules/typescript/lib/lib.es2015.iterable.d.ts +605 -0
- package/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
- package/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
- package/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
- package/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
- package/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
- package/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
- package/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
- package/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
- package/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +21 -0
- package/node_modules/typescript/lib/lib.es2017.d.ts +26 -0
- package/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
- package/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
- package/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
- package/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
- package/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
- package/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
- package/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
- package/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +53 -0
- package/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
- package/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
- package/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
- package/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
- package/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
- package/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
- package/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2020.bigint.d.ts +765 -0
- package/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
- package/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
- package/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
- package/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
- package/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
- package/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +99 -0
- package/node_modules/typescript/lib/lib.es2020.string.d.ts +44 -0
- package/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
- package/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
- package/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
- package/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
- package/node_modules/typescript/lib/lib.es2021.weakref.d.ts +78 -0
- package/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
- package/node_modules/typescript/lib/lib.es2022.d.ts +25 -0
- package/node_modules/typescript/lib/lib.es2022.error.d.ts +75 -0
- package/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2022.intl.d.ts +145 -0
- package/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
- package/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
- package/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
- package/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
- package/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
- package/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
- package/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
- package/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +65 -0
- package/node_modules/typescript/lib/lib.es2024.collection.d.ts +29 -0
- package/node_modules/typescript/lib/lib.es2024.d.ts +26 -0
- package/node_modules/typescript/lib/lib.es2024.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2024.object.d.ts +29 -0
- package/node_modules/typescript/lib/lib.es2024.promise.d.ts +35 -0
- package/node_modules/typescript/lib/lib.es2024.regexp.d.ts +25 -0
- package/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +68 -0
- package/node_modules/typescript/lib/lib.es2024.string.d.ts +29 -0
- package/node_modules/typescript/lib/lib.es5.d.ts +4601 -0
- package/node_modules/typescript/lib/lib.es6.d.ts +23 -0
- package/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
- package/node_modules/typescript/lib/lib.esnext.collection.d.ts +96 -0
- package/node_modules/typescript/lib/lib.esnext.d.ts +29 -0
- package/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
- package/node_modules/typescript/lib/lib.esnext.disposable.d.ts +193 -0
- package/node_modules/typescript/lib/lib.esnext.error.d.ts +24 -0
- package/node_modules/typescript/lib/lib.esnext.float16.d.ts +445 -0
- package/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
- package/node_modules/typescript/lib/lib.esnext.iterator.d.ts +148 -0
- package/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
- package/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +25 -0
- package/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
- package/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +41 -0
- package/node_modules/typescript/lib/lib.webworker.d.ts +13150 -0
- package/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
- package/node_modules/typescript/lib/lib.webworker.iterable.d.ts +340 -0
- package/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/tsc.js +8 -0
- package/node_modules/typescript/lib/tsserver.js +8 -0
- package/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
- package/node_modules/typescript/lib/tsserverlibrary.js +21 -0
- package/node_modules/typescript/lib/typesMap.json +497 -0
- package/node_modules/typescript/lib/typescript.d.ts +11437 -0
- package/node_modules/typescript/lib/typescript.js +200276 -0
- package/node_modules/typescript/lib/typingsInstaller.js +8 -0
- package/node_modules/typescript/lib/watchGuard.js +53 -0
- package/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/package.json +120 -0
- package/package.json +13 -8
- package/lib/coverage/fs-walk.mjs +0 -64
- package/lib/coverage/next-discovery.mjs +0 -205
- package/lib/coverage/next-static-analysis.mjs +0 -1045
- package/node_modules/@elench/testkit-bridge/src/index.mjs +0 -583
- package/node_modules/@elench/testkit-bridge/src/index.test.mjs +0 -409
- package/node_modules/@elench/testkit-protocol/src/index.d.ts +0 -231
- package/node_modules/@elench/testkit-protocol/src/index.mjs +0 -265
- package/node_modules/@elench/testkit-protocol/src/index.test.mjs +0 -242
- package/node_modules/@elench/ts-analysis/src/callables.mjs +0 -135
- package/node_modules/@elench/ts-analysis/src/callables.test.mjs +0 -55
- package/node_modules/@elench/ts-analysis/src/exports.mjs +0 -69
- package/node_modules/@elench/ts-analysis/src/exports.test.mjs +0 -50
- package/node_modules/@elench/ts-analysis/src/jsx.mjs +0 -69
- package/node_modules/@elench/ts-analysis/src/jsx.test.mjs +0 -43
- package/node_modules/@elench/ts-analysis/src/project.mjs +0 -100
- package/node_modules/@elench/ts-analysis/src/project.test.mjs +0 -54
- package/node_modules/@elench/ts-analysis/src/requests.mjs +0 -141
- package/node_modules/@elench/ts-analysis/src/requests.test.mjs +0 -35
- package/node_modules/@elench/ts-analysis/src/resolution.mjs +0 -53
- package/node_modules/@elench/ts-analysis/src/shared.mjs +0 -32
- package/node_modules/@elench/ts-analysis/src/syntax.mjs +0 -27
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import { parseSync } from "@swc/core";
|
|
2
|
+
import { DYNAMIC_SEGMENT_TOKEN, directoryExists, findLineNumber, HTTP_WRAPPER_METHODS, isServerActionFile, normalizeRoute, readFileIfExists, resolveSourceCandidate, } from "./shared.js";
|
|
3
|
+
import { requestPathPatternFromLiteral } from "./routes.js";
|
|
4
|
+
export function parseModule(content, filePath) {
|
|
5
|
+
return parseSync(content, {
|
|
6
|
+
syntax: "typescript",
|
|
7
|
+
tsx: /\.(?:tsx|jsx)$/u.test(filePath),
|
|
8
|
+
target: "es2022",
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
export function resolveImportToSourceFile(rootDir, fromFilePath, specifier) {
|
|
12
|
+
const sourceRoot = directoryExists(`${rootDir}/src`) ? `${rootDir}/src` : rootDir;
|
|
13
|
+
const absoluteFrom = `${rootDir}/${fromFilePath}`;
|
|
14
|
+
const candidates = [];
|
|
15
|
+
if (specifier.startsWith("@/")) {
|
|
16
|
+
candidates.push(`${sourceRoot}/${specifier.slice(2)}`);
|
|
17
|
+
}
|
|
18
|
+
else if (specifier.startsWith("./") || specifier.startsWith("../")) {
|
|
19
|
+
candidates.push(new URL(specifier, `file://${absoluteFrom}`).pathname);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
for (const candidate of candidates) {
|
|
25
|
+
const resolved = resolveSourceCandidate(candidate);
|
|
26
|
+
if (resolved)
|
|
27
|
+
return resolved.slice(rootDir.length + 1).split("\\").join("/");
|
|
28
|
+
}
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
export function collectImports(ast, { rootDir, filePath, readSourceFile = readFileIfExists } = {}) {
|
|
32
|
+
const imports = new Map();
|
|
33
|
+
for (const statement of ast.body || []) {
|
|
34
|
+
if (statement.type !== "ImportDeclaration")
|
|
35
|
+
continue;
|
|
36
|
+
const specifier = statement.source?.value || null;
|
|
37
|
+
if (!specifier)
|
|
38
|
+
continue;
|
|
39
|
+
const resolvedFilePath = rootDir && filePath ? resolveImportToSourceFile(rootDir, filePath, specifier) : null;
|
|
40
|
+
const sourceContent = rootDir && resolvedFilePath ? readSourceFile(`${rootDir}/${resolvedFilePath}`) : null;
|
|
41
|
+
const serverActionImport = Boolean(sourceContent && isServerActionFile(sourceContent));
|
|
42
|
+
for (const entry of statement.specifiers || []) {
|
|
43
|
+
if (entry.type === "ImportDefaultSpecifier") {
|
|
44
|
+
imports.set(entry.local.value, {
|
|
45
|
+
importedName: "default",
|
|
46
|
+
specifier,
|
|
47
|
+
resolvedFilePath,
|
|
48
|
+
isServerAction: serverActionImport,
|
|
49
|
+
});
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
if (entry.type === "ImportSpecifier") {
|
|
53
|
+
imports.set(entry.local.value, {
|
|
54
|
+
importedName: entry.imported?.value || entry.local.value,
|
|
55
|
+
specifier,
|
|
56
|
+
resolvedFilePath,
|
|
57
|
+
isServerAction: serverActionImport,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return imports;
|
|
63
|
+
}
|
|
64
|
+
export function collectTopLevelFunctions(ast) {
|
|
65
|
+
const functions = new Map();
|
|
66
|
+
for (const statement of ast.body || []) {
|
|
67
|
+
if (statement.type === "FunctionDeclaration" && statement.identifier) {
|
|
68
|
+
functions.set(statement.identifier.value, statement);
|
|
69
|
+
continue;
|
|
70
|
+
}
|
|
71
|
+
if (statement.type === "VariableDeclaration") {
|
|
72
|
+
collectFunctionVariableDeclarations(statement, functions);
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
if (statement.type === "ExportDeclaration") {
|
|
76
|
+
const { declaration } = statement;
|
|
77
|
+
if (declaration?.type === "FunctionDeclaration" && declaration.identifier) {
|
|
78
|
+
functions.set(declaration.identifier.value, declaration);
|
|
79
|
+
}
|
|
80
|
+
else if (declaration?.type === "VariableDeclaration") {
|
|
81
|
+
collectFunctionVariableDeclarations(declaration, functions);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return functions;
|
|
86
|
+
}
|
|
87
|
+
function collectFunctionVariableDeclarations(statement, target) {
|
|
88
|
+
for (const declaration of statement.declarations || []) {
|
|
89
|
+
if (declaration.id?.type !== "Identifier" || !declaration.init)
|
|
90
|
+
continue;
|
|
91
|
+
if (declaration.init.type === "ArrowFunctionExpression" || declaration.init.type === "FunctionExpression") {
|
|
92
|
+
target.set(declaration.id.value, declaration.init);
|
|
93
|
+
}
|
|
94
|
+
else if (declaration.init.type === "Identifier") {
|
|
95
|
+
target.set(declaration.id.value, declaration.init);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
export function collectExportedCallables(ast, topLevelFunctions) {
|
|
100
|
+
const exports = new Map();
|
|
101
|
+
let defaultExport = null;
|
|
102
|
+
for (const statement of ast.body || []) {
|
|
103
|
+
if (statement.type === "ExportDeclaration") {
|
|
104
|
+
const { declaration } = statement;
|
|
105
|
+
if (declaration?.type === "FunctionDeclaration" && declaration.identifier) {
|
|
106
|
+
exports.set(declaration.identifier.value, declaration);
|
|
107
|
+
}
|
|
108
|
+
else if (declaration?.type === "VariableDeclaration") {
|
|
109
|
+
for (const declarator of declaration.declarations || []) {
|
|
110
|
+
if (declarator.id?.type !== "Identifier")
|
|
111
|
+
continue;
|
|
112
|
+
const name = declarator.id.value;
|
|
113
|
+
if (declarator.init?.type === "ArrowFunctionExpression" || declarator.init?.type === "FunctionExpression") {
|
|
114
|
+
exports.set(name, declarator.init);
|
|
115
|
+
}
|
|
116
|
+
else if (declarator.init?.type === "Identifier") {
|
|
117
|
+
const referenced = topLevelFunctions.get(declarator.init.value);
|
|
118
|
+
if (referenced)
|
|
119
|
+
exports.set(name, referenced);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
continue;
|
|
124
|
+
}
|
|
125
|
+
if (statement.type === "ExportNamedDeclaration") {
|
|
126
|
+
for (const specifier of statement.specifiers || []) {
|
|
127
|
+
if (specifier.type !== "ExportSpecifier")
|
|
128
|
+
continue;
|
|
129
|
+
const exportedName = specifier.exported?.value || specifier.orig?.value;
|
|
130
|
+
const origName = specifier.orig?.value;
|
|
131
|
+
if (exportedName && origName && topLevelFunctions.get(origName)) {
|
|
132
|
+
exports.set(exportedName, topLevelFunctions.get(origName));
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
continue;
|
|
136
|
+
}
|
|
137
|
+
if (statement.type === "ExportDefaultDeclaration") {
|
|
138
|
+
defaultExport = statement.decl;
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
if (statement.type === "ExportDefaultExpression" && statement.expression?.type === "Identifier") {
|
|
142
|
+
defaultExport = topLevelFunctions.get(statement.expression.value) || null;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return { exports, defaultExport };
|
|
146
|
+
}
|
|
147
|
+
export function collectScopeLocalFunctions(node) {
|
|
148
|
+
const functions = new Map();
|
|
149
|
+
const body = node?.body?.stmts ? node.body : node?.body?.type === "BlockStatement" ? node.body : null;
|
|
150
|
+
if (!body)
|
|
151
|
+
return functions;
|
|
152
|
+
for (const statement of body.stmts || []) {
|
|
153
|
+
if (statement.type === "FunctionDeclaration" && statement.identifier) {
|
|
154
|
+
functions.set(statement.identifier.value, statement);
|
|
155
|
+
}
|
|
156
|
+
else if (statement.type === "VariableDeclaration") {
|
|
157
|
+
collectFunctionVariableDeclarations(statement, functions);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return functions;
|
|
161
|
+
}
|
|
162
|
+
export function collectJsxAttributes(opening) {
|
|
163
|
+
const attributes = {};
|
|
164
|
+
for (const attribute of opening.attributes || []) {
|
|
165
|
+
if (attribute.type !== "JSXAttribute")
|
|
166
|
+
continue;
|
|
167
|
+
const name = attribute.name?.value || attribute.name?.name || null;
|
|
168
|
+
if (!name)
|
|
169
|
+
continue;
|
|
170
|
+
const value = attribute.value;
|
|
171
|
+
if (!value) {
|
|
172
|
+
attributes[name] = { stringValue: "true", expression: null };
|
|
173
|
+
}
|
|
174
|
+
else if (value.type === "StringLiteral") {
|
|
175
|
+
attributes[name] = { stringValue: value.value, expression: null };
|
|
176
|
+
}
|
|
177
|
+
else if (value.type === "JSXExpressionContainer") {
|
|
178
|
+
attributes[name] = {
|
|
179
|
+
stringValue: extractStringLiteral(value.expression),
|
|
180
|
+
expression: value.expression || null,
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return attributes;
|
|
185
|
+
}
|
|
186
|
+
export function flattenJsxText(children = []) {
|
|
187
|
+
let text = "";
|
|
188
|
+
for (const child of children) {
|
|
189
|
+
if (child.type === "JSXText") {
|
|
190
|
+
text += child.value.replace(/\s+/gu, " ");
|
|
191
|
+
}
|
|
192
|
+
else if (child.type === "JSXExpressionContainer" && child.expression?.type === "StringLiteral") {
|
|
193
|
+
text += child.expression.value;
|
|
194
|
+
}
|
|
195
|
+
else if (child.type === "JSXElement") {
|
|
196
|
+
text += flattenJsxText(child.children);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
return text;
|
|
200
|
+
}
|
|
201
|
+
export function extractJsxLabel(node, attributes) {
|
|
202
|
+
const ariaLabel = attributes["aria-label"]?.stringValue || attributes.title?.stringValue || null;
|
|
203
|
+
if (ariaLabel)
|
|
204
|
+
return ariaLabel;
|
|
205
|
+
if (node.type === "JSXElement") {
|
|
206
|
+
const text = flattenJsxText(node.children).trim();
|
|
207
|
+
if (text)
|
|
208
|
+
return text;
|
|
209
|
+
}
|
|
210
|
+
return null;
|
|
211
|
+
}
|
|
212
|
+
export function walkJsx(node, visitor) {
|
|
213
|
+
const visit = (current, formContext = null) => {
|
|
214
|
+
if (!current)
|
|
215
|
+
return;
|
|
216
|
+
let nextFormContext = formContext;
|
|
217
|
+
if (current.type === "JSXElement" || current.type === "JSXOpeningElement") {
|
|
218
|
+
nextFormContext = visitor(current, formContext);
|
|
219
|
+
}
|
|
220
|
+
if (current.type === "JSXElement") {
|
|
221
|
+
for (const child of current.children || [])
|
|
222
|
+
visit(child, nextFormContext);
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
forEachChild(current, (child) => visit(child, nextFormContext));
|
|
226
|
+
};
|
|
227
|
+
visit(node, null);
|
|
228
|
+
}
|
|
229
|
+
export function forEachChild(node, visitor) {
|
|
230
|
+
if (!node || typeof node !== "object")
|
|
231
|
+
return;
|
|
232
|
+
for (const value of Object.values(node)) {
|
|
233
|
+
if (!value)
|
|
234
|
+
continue;
|
|
235
|
+
if (Array.isArray(value)) {
|
|
236
|
+
for (const item of value) {
|
|
237
|
+
if (item && typeof item === "object" && "type" in item)
|
|
238
|
+
visitor(item);
|
|
239
|
+
}
|
|
240
|
+
continue;
|
|
241
|
+
}
|
|
242
|
+
if (value && typeof value === "object" && "type" in value)
|
|
243
|
+
visitor(value);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
export function extractStringLiteral(node) {
|
|
247
|
+
if (!node)
|
|
248
|
+
return null;
|
|
249
|
+
if (node.type === "StringLiteral")
|
|
250
|
+
return node.value;
|
|
251
|
+
if (node.type === "TemplateLiteral") {
|
|
252
|
+
let value = node.quasis?.[0]?.raw || "";
|
|
253
|
+
for (let index = 0; index < (node.expressions || []).length; index += 1) {
|
|
254
|
+
value += DYNAMIC_SEGMENT_TOKEN;
|
|
255
|
+
value += node.quasis?.[index + 1]?.raw || "";
|
|
256
|
+
}
|
|
257
|
+
return value;
|
|
258
|
+
}
|
|
259
|
+
return null;
|
|
260
|
+
}
|
|
261
|
+
export function extractRouteLiteral(node) {
|
|
262
|
+
const literal = extractStringLiteral(node);
|
|
263
|
+
if (!literal)
|
|
264
|
+
return null;
|
|
265
|
+
const normalized = literal.split("?")[0];
|
|
266
|
+
const requestPath = requestPathPatternFromLiteral(normalized);
|
|
267
|
+
return requestPath ? normalizeRoute(requestPath) : null;
|
|
268
|
+
}
|
|
269
|
+
export function extractFetchMethod(node) {
|
|
270
|
+
if (!node || node.type !== "ObjectExpression")
|
|
271
|
+
return null;
|
|
272
|
+
for (const property of node.properties || []) {
|
|
273
|
+
if (property.type !== "KeyValueProperty")
|
|
274
|
+
continue;
|
|
275
|
+
const key = property.key?.value || property.key?.name?.value || property.key?.name || property.key?.value;
|
|
276
|
+
if (key !== "method")
|
|
277
|
+
continue;
|
|
278
|
+
const value = extractStringLiteral(property.value);
|
|
279
|
+
return value ? value.toUpperCase() : null;
|
|
280
|
+
}
|
|
281
|
+
return null;
|
|
282
|
+
}
|
|
283
|
+
export function extractHttpRequests(rootNode) {
|
|
284
|
+
const requests = [];
|
|
285
|
+
walkNode(rootNode, (node) => {
|
|
286
|
+
if (node.type !== "CallExpression")
|
|
287
|
+
return;
|
|
288
|
+
const request = resolveHttpRequestCall(node);
|
|
289
|
+
if (request)
|
|
290
|
+
requests.push(request);
|
|
291
|
+
});
|
|
292
|
+
return requests;
|
|
293
|
+
}
|
|
294
|
+
export function resolveHttpRequestCall(callExpression) {
|
|
295
|
+
const callee = callExpression.callee;
|
|
296
|
+
if (callee?.type === "Identifier") {
|
|
297
|
+
if (callee.value === "fetch") {
|
|
298
|
+
const path = extractRouteLiteral(callExpression.arguments?.[0]?.expression);
|
|
299
|
+
if (!path || !path.startsWith("/api/"))
|
|
300
|
+
return null;
|
|
301
|
+
return {
|
|
302
|
+
method: extractFetchMethod(callExpression.arguments?.[1]?.expression) || "GET",
|
|
303
|
+
path,
|
|
304
|
+
confidence: "high",
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
const method = HTTP_WRAPPER_METHODS[callee.value];
|
|
308
|
+
if (method) {
|
|
309
|
+
const path = extractRouteLiteral(callExpression.arguments?.[0]?.expression);
|
|
310
|
+
if (!path || !path.startsWith("/api/"))
|
|
311
|
+
return null;
|
|
312
|
+
return {
|
|
313
|
+
method,
|
|
314
|
+
path,
|
|
315
|
+
confidence: "high",
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
if (callee.value === "rawReq") {
|
|
319
|
+
const methodLiteral = extractStringLiteral(callExpression.arguments?.[0]?.expression);
|
|
320
|
+
const path = extractRouteLiteral(callExpression.arguments?.[1]?.expression);
|
|
321
|
+
if (!methodLiteral || !path)
|
|
322
|
+
return null;
|
|
323
|
+
return {
|
|
324
|
+
method: methodLiteral.toUpperCase(),
|
|
325
|
+
path,
|
|
326
|
+
confidence: "high",
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
if (callee?.type === "MemberExpression" && callee.property?.type === "Identifier" && callee.property.value === "rawReq") {
|
|
331
|
+
const methodLiteral = extractStringLiteral(callExpression.arguments?.[0]?.expression);
|
|
332
|
+
const path = extractRouteLiteral(callExpression.arguments?.[1]?.expression);
|
|
333
|
+
if (!methodLiteral || !path)
|
|
334
|
+
return null;
|
|
335
|
+
return {
|
|
336
|
+
method: methodLiteral.toUpperCase(),
|
|
337
|
+
path,
|
|
338
|
+
confidence: "high",
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
return null;
|
|
342
|
+
}
|
|
343
|
+
export function extractPlaywrightVisitedRoutes(rootNode) {
|
|
344
|
+
const routes = [];
|
|
345
|
+
walkNode(rootNode, (node) => {
|
|
346
|
+
if (node.type !== "CallExpression")
|
|
347
|
+
return;
|
|
348
|
+
const route = resolveGotoRoute(node);
|
|
349
|
+
if (route)
|
|
350
|
+
routes.push(route);
|
|
351
|
+
});
|
|
352
|
+
return [...new Set(routes)];
|
|
353
|
+
}
|
|
354
|
+
function resolveGotoRoute(callExpression) {
|
|
355
|
+
const callee = callExpression.callee;
|
|
356
|
+
if (callee?.type !== "MemberExpression")
|
|
357
|
+
return null;
|
|
358
|
+
const property = callee.property;
|
|
359
|
+
if (property?.type !== "Identifier" || property.value !== "goto")
|
|
360
|
+
return null;
|
|
361
|
+
const literal = extractStringLiteral(callExpression.arguments?.[0]?.expression);
|
|
362
|
+
if (!literal)
|
|
363
|
+
return null;
|
|
364
|
+
if (/^https?:\/\//u.test(literal)) {
|
|
365
|
+
try {
|
|
366
|
+
const parsed = new URL(literal);
|
|
367
|
+
if (parsed.hostname === "localhost" || parsed.hostname === "127.0.0.1") {
|
|
368
|
+
return normalizeRoute(parsed.pathname.split("?")[0]);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
catch {
|
|
372
|
+
return null;
|
|
373
|
+
}
|
|
374
|
+
return null;
|
|
375
|
+
}
|
|
376
|
+
return normalizeRoute(literal.split("?")[0]);
|
|
377
|
+
}
|
|
378
|
+
export function walkNode(node, visitor) {
|
|
379
|
+
if (!node || typeof node !== "object")
|
|
380
|
+
return;
|
|
381
|
+
visitor(node);
|
|
382
|
+
forEachChild(node, (child) => walkNode(child, visitor));
|
|
383
|
+
}
|
|
384
|
+
export function extractLineNumber(content, node) {
|
|
385
|
+
return findLineNumber(content, node?.span?.start);
|
|
386
|
+
}
|
|
387
|
+
//# sourceMappingURL=swc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swc.js","sourceRoot":"","sources":["../src/swc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAK5D,MAAM,UAAU,WAAW,CAAC,OAAe,EAAE,QAAgB;IAC3D,OAAO,SAAS,CAAC,OAAO,EAAE;QACxB,MAAM,EAAE,YAAY;QACpB,GAAG,EAAE,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC;QACrC,MAAM,EAAE,QAAQ;KACjB,CAAc,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,OAAe,EAAE,YAAoB,EAAE,SAAiB;IAChG,MAAM,UAAU,GAAG,eAAe,CAAC,GAAG,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;IAClF,MAAM,YAAY,GAAG,GAAG,OAAO,IAAI,YAAY,EAAE,CAAC;IAClD,MAAM,UAAU,GAA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,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAe,EAAE,IAAa;IAC9D,OAAO,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
export interface NextAnalysisProjectOptions {
|
|
2
|
+
rootDir?: string;
|
|
3
|
+
buildDir?: string | null;
|
|
4
|
+
nextConfigPath?: string | null;
|
|
5
|
+
exclude?: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface NextDiagnostic {
|
|
8
|
+
level: "info" | "warn";
|
|
9
|
+
code: string;
|
|
10
|
+
message: string;
|
|
11
|
+
filePath?: string;
|
|
12
|
+
line?: number;
|
|
13
|
+
relatedIds?: string[];
|
|
14
|
+
}
|
|
15
|
+
export interface BackendRef {
|
|
16
|
+
id: string;
|
|
17
|
+
kind: "server_capability";
|
|
18
|
+
importName: string;
|
|
19
|
+
exportName: string;
|
|
20
|
+
modulePath: string;
|
|
21
|
+
specifier: string;
|
|
22
|
+
}
|
|
23
|
+
export interface TargetHint {
|
|
24
|
+
kind: "testId";
|
|
25
|
+
value: string;
|
|
26
|
+
label: string;
|
|
27
|
+
confidence: "high";
|
|
28
|
+
}
|
|
29
|
+
export interface NextPageEntry {
|
|
30
|
+
id: string;
|
|
31
|
+
kind: "page";
|
|
32
|
+
route: string;
|
|
33
|
+
label: string;
|
|
34
|
+
filePath: string;
|
|
35
|
+
layoutFiles: string[];
|
|
36
|
+
rootFiles: string[];
|
|
37
|
+
}
|
|
38
|
+
export interface NextApiRouteEntry {
|
|
39
|
+
id: string;
|
|
40
|
+
kind: "api_route";
|
|
41
|
+
route: string;
|
|
42
|
+
requestPath: string;
|
|
43
|
+
method: string;
|
|
44
|
+
filePath: string;
|
|
45
|
+
backendRefs: BackendRef[];
|
|
46
|
+
}
|
|
47
|
+
export interface NextServerActionEntry {
|
|
48
|
+
id: string;
|
|
49
|
+
kind: "server_action";
|
|
50
|
+
filePath: string;
|
|
51
|
+
exportName: string;
|
|
52
|
+
backendRefs: BackendRef[];
|
|
53
|
+
}
|
|
54
|
+
export interface NextSurfaceEntry {
|
|
55
|
+
id: string;
|
|
56
|
+
kind: "ui_surface";
|
|
57
|
+
route: string;
|
|
58
|
+
filePath: string;
|
|
59
|
+
label: string;
|
|
60
|
+
line: number;
|
|
61
|
+
surfaceKind: string;
|
|
62
|
+
tagName: string;
|
|
63
|
+
actionId?: string;
|
|
64
|
+
targetHint?: TargetHint | null;
|
|
65
|
+
}
|
|
66
|
+
export interface NextActionEntry {
|
|
67
|
+
id: string;
|
|
68
|
+
kind: "ui_action";
|
|
69
|
+
route: string;
|
|
70
|
+
filePath: string;
|
|
71
|
+
line: number;
|
|
72
|
+
label: string;
|
|
73
|
+
bindingKind: string;
|
|
74
|
+
actionProp: string;
|
|
75
|
+
}
|
|
76
|
+
export interface NextRequestEntry {
|
|
77
|
+
id: string;
|
|
78
|
+
method: string;
|
|
79
|
+
path: string;
|
|
80
|
+
confidence: "high";
|
|
81
|
+
ownerId: string;
|
|
82
|
+
ownerKind: string;
|
|
83
|
+
route: string;
|
|
84
|
+
filePath: string;
|
|
85
|
+
}
|
|
86
|
+
export interface NextServerActionRef {
|
|
87
|
+
exportKey: string;
|
|
88
|
+
confidence: "high";
|
|
89
|
+
ownerId?: string;
|
|
90
|
+
ownerKind?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface NextRouteTree {
|
|
93
|
+
id: string;
|
|
94
|
+
kind: "route_tree";
|
|
95
|
+
route: string;
|
|
96
|
+
pageFile: string;
|
|
97
|
+
rootFiles: string[];
|
|
98
|
+
surfaces: NextSurfaceEntry[];
|
|
99
|
+
actions: NextActionEntry[];
|
|
100
|
+
requests: NextRequestEntry[];
|
|
101
|
+
serverActionRefs: NextServerActionRef[];
|
|
102
|
+
reachableModules: string[];
|
|
103
|
+
diagnostics: NextDiagnostic[];
|
|
104
|
+
}
|
|
105
|
+
export interface BuildRouting {
|
|
106
|
+
resolve(url: string, pathnames?: string[]): Promise<unknown>;
|
|
107
|
+
}
|
|
108
|
+
export interface NextAnalysisProject {
|
|
109
|
+
rootDir: string;
|
|
110
|
+
buildDir: string | null;
|
|
111
|
+
nextConfigPath: string | null;
|
|
112
|
+
exclude: string[];
|
|
113
|
+
findAppRoot(): string | null;
|
|
114
|
+
readSourceFile(relativeFilePath: string): string | null;
|
|
115
|
+
getDiagnostics(): NextDiagnostic[];
|
|
116
|
+
loadModule(relativeFilePath: string): unknown | null;
|
|
117
|
+
isExcluded(relativeFilePath: string): boolean;
|
|
118
|
+
setModule(relativeFilePath: string, moduleInfo: unknown): void;
|
|
119
|
+
discoverPages(): NextPageEntry[];
|
|
120
|
+
discoverApiRoutes(): NextApiRouteEntry[];
|
|
121
|
+
discoverServerActions(): NextServerActionEntry[];
|
|
122
|
+
analyzeRouteTree(routeOrPageFile: string): NextRouteTree | null;
|
|
123
|
+
loadBuildRouting(): Promise<BuildRouting | null>;
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,EAA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B,EAAE,MAAM,EAAE,CAAC;IAC3B,WAAW,EAAE,cAAc,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC9D;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,IAAI,MAAM,GAAG,IAAI,CAAC;IAC7B,cAAc,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACxD,cAAc,IAAI,cAAc,EAAE,CAAC;IACnC,UAAU,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IACrD,UAAU,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9C,SAAS,CAAC,gBAAgB,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/D,aAAa,IAAI,aAAa,EAAE,CAAC;IACjC,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;IACzC,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;IACjD,gBAAgB,CAAC,eAAe,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAAC;IAChE,gBAAgB,IAAI,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;CAClD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@elench/next-analysis",
|
|
3
|
+
"version": "0.1.66",
|
|
4
|
+
"description": "SWC-backed Next.js source analysis primitives for Erench tools",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"default": "./dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./package.json": "./package.json"
|
|
12
|
+
},
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"files": [
|
|
15
|
+
"dist/",
|
|
16
|
+
"package.json"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsc -p tsconfig.build.json",
|
|
20
|
+
"clean": "rm -rf dist",
|
|
21
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@next/routing": "^16.2.4",
|
|
25
|
+
"@swc/core": "^1.15.32"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as http from "node:http";
|
|
2
|
+
import { type BrowserMatchResponse, type PageOverlayResponse } from "@elench/testkit-protocol";
|
|
3
|
+
type BridgeContext = {
|
|
4
|
+
product: any;
|
|
5
|
+
services?: any[];
|
|
6
|
+
discovery?: {
|
|
7
|
+
files?: any[];
|
|
8
|
+
coverageGraph?: any;
|
|
9
|
+
};
|
|
10
|
+
runArtifact?: any;
|
|
11
|
+
};
|
|
12
|
+
type BridgeAdapter = {
|
|
13
|
+
loadProductContext: () => Promise<BridgeContext> | BridgeContext;
|
|
14
|
+
};
|
|
15
|
+
export declare function createBrowserBridge(adapter: BridgeAdapter): {
|
|
16
|
+
handleRequest(request: http.IncomingMessage, response: http.ServerResponse): Promise<void>;
|
|
17
|
+
};
|
|
18
|
+
export declare function startBrowserBridgeServer(adapter: BridgeAdapter, options?: {
|
|
19
|
+
host?: string;
|
|
20
|
+
port?: number;
|
|
21
|
+
}): Promise<{
|
|
22
|
+
server: http.Server;
|
|
23
|
+
host: string;
|
|
24
|
+
port: number;
|
|
25
|
+
url: string;
|
|
26
|
+
}>;
|
|
27
|
+
export declare function buildHealthResponse(context: BridgeContext): {
|
|
28
|
+
protocolVersion: number;
|
|
29
|
+
bridgeVersion: string;
|
|
30
|
+
status: "ok";
|
|
31
|
+
product: any;
|
|
32
|
+
};
|
|
33
|
+
export declare function buildMatchResponse(context: BridgeContext, pageUrl: string): BrowserMatchResponse;
|
|
34
|
+
export declare function buildPageOverlayResponse(context: BridgeContext, pageUrl: string): PageOverlayResponse;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACzB,MAAM,0BAA0B,CAAC;AAElC,KAAK,aAAa,GAAG;IACnB,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;IACjB,SAAS,CAAC,EAAE;QACV,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;QACd,aAAa,CAAC,EAAE,GAAG,CAAC;KACrB,CAAC;IACF,WAAW,CAAC,EAAE,GAAG,CAAC;CACnB,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,kBAAkB,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAC;CAClE,CAAC;AAWF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,aAAa,GAAG;IAC3D,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE,QAAQ,EAAE,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5F,CA2EA;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,aAAa,EACtB,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,C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