@od-oneapp/config 2026.2.2001-canary.1
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/CHANGELOG.md +25 -0
- package/README.md +830 -0
- package/eslint/__tests__/config-structure.test.mjs +61 -0
- package/eslint/base.mjs +350 -0
- package/eslint/expo.mjs +97 -0
- package/eslint/next-test.mjs +43 -0
- package/eslint/next.mjs +74 -0
- package/eslint/node.mjs +106 -0
- package/eslint/react.mjs +313 -0
- package/eslint/rules/__tests__/no-used-underscore-vars.test.mjs +147 -0
- package/eslint/rules/no-used-underscore-vars.mjs +297 -0
- package/eslint/shared/__tests__/common-ignores.test.mjs +19 -0
- package/eslint/shared/common-ignores.mjs +172 -0
- package/eslint/shared/disabled-type-aware-rules.mjs +35 -0
- package/eslint/shared/file-patterns.mjs +124 -0
- package/eslint/shared/node-globals.mjs +50 -0
- package/eslint/storybook.mjs +81 -0
- package/eslint/test.mjs +298 -0
- package/eslint/utils/__tests__/create-validated-config.test.mjs +42 -0
- package/eslint/utils/__tests__/filter-ts-eslint-configs.test.mjs +57 -0
- package/eslint/utils/__tests__/validate-config.test.mjs +104 -0
- package/eslint/utils/create-validated-config.mjs +69 -0
- package/eslint/utils/filter-ts-eslint-configs.mjs +129 -0
- package/eslint/utils/validate-config.mjs +88 -0
- package/package.json +37 -0
- package/prettier/index.mjs +15 -0
- package/stylelint/index.mjs +129 -0
- package/tsdown/README.md +287 -0
- package/tsdown/base.mjs +77 -0
- package/tsdown/browser.mjs +34 -0
- package/tsdown/client.mjs +32 -0
- package/tsdown/dist.mjs +179 -0
- package/tsdown/index.mjs +53 -0
- package/tsdown/node.mjs +39 -0
- package/tsdown/react.mjs +30 -0
- package/typescript/base.json +52 -0
- package/typescript/dist/__tests__/browser-stub.test.d.ts +2 -0
- package/typescript/dist/__tests__/browser-stub.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/browser-stub.test.js +40 -0
- package/typescript/dist/__tests__/browser-stub.test.js.map +1 -0
- package/typescript/dist/__tests__/runtime/lifecycle.test.d.ts +2 -0
- package/typescript/dist/__tests__/runtime/lifecycle.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/runtime/lifecycle.test.js +149 -0
- package/typescript/dist/__tests__/runtime/lifecycle.test.js.map +1 -0
- package/typescript/dist/__tests__/server/abort-support.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/abort-support.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/abort-support.test.js +333 -0
- package/typescript/dist/__tests__/server/abort-support.test.js.map +1 -0
- package/typescript/dist/__tests__/server/batch-processor.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/batch-processor.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/batch-processor.test.js +173 -0
- package/typescript/dist/__tests__/server/batch-processor.test.js.map +1 -0
- package/typescript/dist/__tests__/server/cache.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/cache.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/cache.test.js +343 -0
- package/typescript/dist/__tests__/server/cache.test.js.map +1 -0
- package/typescript/dist/__tests__/server/circular-deps.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/circular-deps.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/circular-deps.test.js +412 -0
- package/typescript/dist/__tests__/server/circular-deps.test.js.map +1 -0
- package/typescript/dist/__tests__/server/claude-code-env.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/claude-code-env.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/claude-code-env.test.js +387 -0
- package/typescript/dist/__tests__/server/claude-code-env.test.js.map +1 -0
- package/typescript/dist/__tests__/server/code-analysis-tool.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/code-analysis-tool.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/code-analysis-tool.test.js +430 -0
- package/typescript/dist/__tests__/server/code-analysis-tool.test.js.map +1 -0
- package/typescript/dist/__tests__/server/code-transformation.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/code-transformation.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/code-transformation.test.js +173 -0
- package/typescript/dist/__tests__/server/code-transformation.test.js.map +1 -0
- package/typescript/dist/__tests__/server/concurrency.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/concurrency.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/concurrency.test.js +31 -0
- package/typescript/dist/__tests__/server/concurrency.test.js.map +1 -0
- package/typescript/dist/__tests__/server/context.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/context.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/context.test.js +483 -0
- package/typescript/dist/__tests__/server/context.test.js.map +1 -0
- package/typescript/dist/__tests__/server/error-handling.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/error-handling.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/error-handling.test.js +68 -0
- package/typescript/dist/__tests__/server/error-handling.test.js.map +1 -0
- package/typescript/dist/__tests__/server/error-utils.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/error-utils.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/error-utils.test.js +268 -0
- package/typescript/dist/__tests__/server/error-utils.test.js.map +1 -0
- package/typescript/dist/__tests__/server/files.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/files.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/files.test.js +160 -0
- package/typescript/dist/__tests__/server/files.test.js.map +1 -0
- package/typescript/dist/__tests__/server/logger.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/logger.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/logger.test.js +412 -0
- package/typescript/dist/__tests__/server/logger.test.js.map +1 -0
- package/typescript/dist/__tests__/server/path-manager.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/path-manager.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/path-manager.test.js +406 -0
- package/typescript/dist/__tests__/server/path-manager.test.js.map +1 -0
- package/typescript/dist/__tests__/server/retry-operations.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/retry-operations.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/retry-operations.test.js +119 -0
- package/typescript/dist/__tests__/server/retry-operations.test.js.map +1 -0
- package/typescript/dist/__tests__/server/retry.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/retry.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/retry.test.js +70 -0
- package/typescript/dist/__tests__/server/retry.test.js.map +1 -0
- package/typescript/dist/__tests__/server/retryable.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/retryable.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/retryable.test.js +23 -0
- package/typescript/dist/__tests__/server/retryable.test.js.map +1 -0
- package/typescript/dist/__tests__/server/scheduler.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/scheduler.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/scheduler.test.js +14 -0
- package/typescript/dist/__tests__/server/scheduler.test.js.map +1 -0
- package/typescript/dist/__tests__/server/security.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/security.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/security.test.js +286 -0
- package/typescript/dist/__tests__/server/security.test.js.map +1 -0
- package/typescript/dist/__tests__/server/session-management.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/session-management.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/session-management.test.js +399 -0
- package/typescript/dist/__tests__/server/session-management.test.js.map +1 -0
- package/typescript/dist/__tests__/server/session-recovery.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/session-recovery.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/session-recovery.test.js +417 -0
- package/typescript/dist/__tests__/server/session-recovery.test.js.map +1 -0
- package/typescript/dist/__tests__/server/session.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/session.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/session.test.js +102 -0
- package/typescript/dist/__tests__/server/session.test.js.map +1 -0
- package/typescript/dist/__tests__/server/simple-tools.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/simple-tools.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/simple-tools.test.js +56 -0
- package/typescript/dist/__tests__/server/simple-tools.test.js.map +1 -0
- package/typescript/dist/__tests__/server/streaming-utilities.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/streaming-utilities.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/streaming-utilities.test.js +338 -0
- package/typescript/dist/__tests__/server/streaming-utilities.test.js.map +1 -0
- package/typescript/dist/__tests__/server/streams.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/streams.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/streams.test.js +282 -0
- package/typescript/dist/__tests__/server/streams.test.js.map +1 -0
- package/typescript/dist/__tests__/server/stringify-advanced.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/stringify-advanced.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/stringify-advanced.test.js +152 -0
- package/typescript/dist/__tests__/server/stringify-advanced.test.js.map +1 -0
- package/typescript/dist/__tests__/server/structured-clone-tool.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/structured-clone-tool.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/structured-clone-tool.test.js +751 -0
- package/typescript/dist/__tests__/server/structured-clone-tool.test.js.map +1 -0
- package/typescript/dist/__tests__/server/structured-clone.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/structured-clone.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/structured-clone.test.js +305 -0
- package/typescript/dist/__tests__/server/structured-clone.test.js.map +1 -0
- package/typescript/dist/__tests__/server/tool-helpers.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/tool-helpers.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/tool-helpers.test.js +51 -0
- package/typescript/dist/__tests__/server/tool-helpers.test.js.map +1 -0
- package/typescript/dist/__tests__/server/validation.test.d.ts +2 -0
- package/typescript/dist/__tests__/server/validation.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/server/validation.test.js +585 -0
- package/typescript/dist/__tests__/server/validation.test.js.map +1 -0
- package/typescript/dist/__tests__/shared/constants.test.d.ts +2 -0
- package/typescript/dist/__tests__/shared/constants.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/shared/constants.test.js +11 -0
- package/typescript/dist/__tests__/shared/constants.test.js.map +1 -0
- package/typescript/dist/__tests__/shared/environment.test.d.ts +2 -0
- package/typescript/dist/__tests__/shared/environment.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/shared/environment.test.js +279 -0
- package/typescript/dist/__tests__/shared/environment.test.js.map +1 -0
- package/typescript/dist/__tests__/shared/stringify.test.d.ts +2 -0
- package/typescript/dist/__tests__/shared/stringify.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/shared/stringify.test.js +171 -0
- package/typescript/dist/__tests__/shared/stringify.test.js.map +1 -0
- package/typescript/dist/__tests__/shared/timeout.test.d.ts +2 -0
- package/typescript/dist/__tests__/shared/timeout.test.d.ts.map +1 -0
- package/typescript/dist/__tests__/shared/timeout.test.js +262 -0
- package/typescript/dist/__tests__/shared/timeout.test.js.map +1 -0
- package/typescript/dist/src/App.d.ts +3 -0
- package/typescript/dist/src/App.d.ts.map +1 -0
- package/typescript/dist/src/App.js +27 -0
- package/typescript/dist/src/App.js.map +1 -0
- package/typescript/dist/src/components/charts/BenchmarkCard.d.ts +12 -0
- package/typescript/dist/src/components/charts/BenchmarkCard.d.ts.map +1 -0
- package/typescript/dist/src/components/charts/BenchmarkCard.js +23 -0
- package/typescript/dist/src/components/charts/BenchmarkCard.js.map +1 -0
- package/typescript/dist/src/components/charts/ComparisonBar.d.ts +11 -0
- package/typescript/dist/src/components/charts/ComparisonBar.d.ts.map +1 -0
- package/typescript/dist/src/components/charts/ComparisonBar.js +34 -0
- package/typescript/dist/src/components/charts/ComparisonBar.js.map +1 -0
- package/typescript/dist/src/components/charts/PercentileGauge.d.ts +10 -0
- package/typescript/dist/src/components/charts/PercentileGauge.d.ts.map +1 -0
- package/typescript/dist/src/components/charts/PercentileGauge.js +68 -0
- package/typescript/dist/src/components/charts/PercentileGauge.js.map +1 -0
- package/typescript/dist/src/components/charts/index.d.ts +4 -0
- package/typescript/dist/src/components/charts/index.d.ts.map +1 -0
- package/typescript/dist/src/components/charts/index.js +4 -0
- package/typescript/dist/src/components/charts/index.js.map +1 -0
- package/typescript/dist/src/components/filters/FilterPanel.d.ts +9 -0
- package/typescript/dist/src/components/filters/FilterPanel.d.ts.map +1 -0
- package/typescript/dist/src/components/filters/FilterPanel.js +42 -0
- package/typescript/dist/src/components/filters/FilterPanel.js.map +1 -0
- package/typescript/dist/src/components/filters/index.d.ts +2 -0
- package/typescript/dist/src/components/filters/index.d.ts.map +1 -0
- package/typescript/dist/src/components/filters/index.js +2 -0
- package/typescript/dist/src/components/filters/index.js.map +1 -0
- package/typescript/dist/src/components/ui/Button.d.ts +8 -0
- package/typescript/dist/src/components/ui/Button.d.ts.map +1 -0
- package/typescript/dist/src/components/ui/Button.js +16 -0
- package/typescript/dist/src/components/ui/Button.js.map +1 -0
- package/typescript/dist/src/components/ui/Card.d.ts +14 -0
- package/typescript/dist/src/components/ui/Card.d.ts.map +1 -0
- package/typescript/dist/src/components/ui/Card.js +27 -0
- package/typescript/dist/src/components/ui/Card.js.map +1 -0
- package/typescript/dist/src/components/ui/Input.d.ts +9 -0
- package/typescript/dist/src/components/ui/Input.d.ts.map +1 -0
- package/typescript/dist/src/components/ui/Input.js +13 -0
- package/typescript/dist/src/components/ui/Input.js.map +1 -0
- package/typescript/dist/src/components/ui/Select.d.ts +14 -0
- package/typescript/dist/src/components/ui/Select.d.ts.map +1 -0
- package/typescript/dist/src/components/ui/Select.js +13 -0
- package/typescript/dist/src/components/ui/Select.js.map +1 -0
- package/typescript/dist/src/components/ui/index.d.ts +5 -0
- package/typescript/dist/src/components/ui/index.d.ts.map +1 -0
- package/typescript/dist/src/components/ui/index.js +5 -0
- package/typescript/dist/src/components/ui/index.js.map +1 -0
- package/typescript/dist/src/index.d.ts +4 -0
- package/typescript/dist/src/index.d.ts.map +1 -0
- package/typescript/dist/src/index.js +4 -0
- package/typescript/dist/src/index.js.map +1 -0
- package/typescript/dist/src/layouts/MainLayout.d.ts +2 -0
- package/typescript/dist/src/layouts/MainLayout.d.ts.map +1 -0
- package/typescript/dist/src/layouts/MainLayout.js +45 -0
- package/typescript/dist/src/layouts/MainLayout.js.map +1 -0
- package/typescript/dist/src/lib/api/benchmarks.d.ts +87 -0
- package/typescript/dist/src/lib/api/benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/api/benchmarks.js +274 -0
- package/typescript/dist/src/lib/api/benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/api/index.d.ts +2 -0
- package/typescript/dist/src/lib/api/index.d.ts.map +1 -0
- package/typescript/dist/src/lib/api/index.js +2 -0
- package/typescript/dist/src/lib/api/index.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/accident-benchmarks.d.ts +33 -0
- package/typescript/dist/src/lib/mock-data/accident-benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/accident-benchmarks.js +124 -0
- package/typescript/dist/src/lib/mock-data/accident-benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/basic-life-benchmarks.d.ts +47 -0
- package/typescript/dist/src/lib/mock-data/basic-life-benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/basic-life-benchmarks.js +83 -0
- package/typescript/dist/src/lib/mock-data/basic-life-benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/critical-illness-benchmarks.d.ts +39 -0
- package/typescript/dist/src/lib/mock-data/critical-illness-benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/critical-illness-benchmarks.js +130 -0
- package/typescript/dist/src/lib/mock-data/critical-illness-benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/dental-benchmarks.d.ts +42 -0
- package/typescript/dist/src/lib/mock-data/dental-benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/dental-benchmarks.js +137 -0
- package/typescript/dist/src/lib/mock-data/dental-benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/hospital-indemnity-benchmarks.d.ts +37 -0
- package/typescript/dist/src/lib/mock-data/hospital-indemnity-benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/hospital-indemnity-benchmarks.js +128 -0
- package/typescript/dist/src/lib/mock-data/hospital-indemnity-benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/index.d.ts +3 -0
- package/typescript/dist/src/lib/mock-data/index.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/index.js +3 -0
- package/typescript/dist/src/lib/mock-data/index.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/ltd-benchmarks.d.ts +59 -0
- package/typescript/dist/src/lib/mock-data/ltd-benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/ltd-benchmarks.js +127 -0
- package/typescript/dist/src/lib/mock-data/ltd-benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/std-benchmarks.d.ts +51 -0
- package/typescript/dist/src/lib/mock-data/std-benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/std-benchmarks.js +111 -0
- package/typescript/dist/src/lib/mock-data/std-benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/vision-benchmarks.d.ts +32 -0
- package/typescript/dist/src/lib/mock-data/vision-benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/vision-benchmarks.js +151 -0
- package/typescript/dist/src/lib/mock-data/vision-benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/mock-data/voluntary-life-benchmarks.d.ts +39 -0
- package/typescript/dist/src/lib/mock-data/voluntary-life-benchmarks.d.ts.map +1 -0
- package/typescript/dist/src/lib/mock-data/voluntary-life-benchmarks.js +97 -0
- package/typescript/dist/src/lib/mock-data/voluntary-life-benchmarks.js.map +1 -0
- package/typescript/dist/src/lib/transformers/api-to-internal.d.ts +42 -0
- package/typescript/dist/src/lib/transformers/api-to-internal.d.ts.map +1 -0
- package/typescript/dist/src/lib/transformers/api-to-internal.js +206 -0
- package/typescript/dist/src/lib/transformers/api-to-internal.js.map +1 -0
- package/typescript/dist/src/lib/transformers/index.d.ts +2 -0
- package/typescript/dist/src/lib/transformers/index.d.ts.map +1 -0
- package/typescript/dist/src/lib/transformers/index.js +2 -0
- package/typescript/dist/src/lib/transformers/index.js.map +1 -0
- package/typescript/dist/src/lib/types/accident.d.ts +46 -0
- package/typescript/dist/src/lib/types/accident.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/accident.js +223 -0
- package/typescript/dist/src/lib/types/accident.js.map +1 -0
- package/typescript/dist/src/lib/types/api-schema.d.ts +476 -0
- package/typescript/dist/src/lib/types/api-schema.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/api-schema.js +2 -0
- package/typescript/dist/src/lib/types/api-schema.js.map +1 -0
- package/typescript/dist/src/lib/types/basic-life.d.ts +30 -0
- package/typescript/dist/src/lib/types/basic-life.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/basic-life.js +137 -0
- package/typescript/dist/src/lib/types/basic-life.js.map +1 -0
- package/typescript/dist/src/lib/types/common.d.ts +99 -0
- package/typescript/dist/src/lib/types/common.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/common.js +29 -0
- package/typescript/dist/src/lib/types/common.js.map +1 -0
- package/typescript/dist/src/lib/types/critical-illness.d.ts +52 -0
- package/typescript/dist/src/lib/types/critical-illness.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/critical-illness.js +254 -0
- package/typescript/dist/src/lib/types/critical-illness.js.map +1 -0
- package/typescript/dist/src/lib/types/dental.d.ts +41 -0
- package/typescript/dist/src/lib/types/dental.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/dental.js +188 -0
- package/typescript/dist/src/lib/types/dental.js.map +1 -0
- package/typescript/dist/src/lib/types/hospital-indemnity.d.ts +41 -0
- package/typescript/dist/src/lib/types/hospital-indemnity.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/hospital-indemnity.js +191 -0
- package/typescript/dist/src/lib/types/hospital-indemnity.js.map +1 -0
- package/typescript/dist/src/lib/types/index.d.ts +12 -0
- package/typescript/dist/src/lib/types/index.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/index.js +12 -0
- package/typescript/dist/src/lib/types/index.js.map +1 -0
- package/typescript/dist/src/lib/types/ltd.d.ts +42 -0
- package/typescript/dist/src/lib/types/ltd.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/ltd.js +200 -0
- package/typescript/dist/src/lib/types/ltd.js.map +1 -0
- package/typescript/dist/src/lib/types/std.d.ts +31 -0
- package/typescript/dist/src/lib/types/std.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/std.js +144 -0
- package/typescript/dist/src/lib/types/std.js.map +1 -0
- package/typescript/dist/src/lib/types/vision.d.ts +31 -0
- package/typescript/dist/src/lib/types/vision.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/vision.js +129 -0
- package/typescript/dist/src/lib/types/vision.js.map +1 -0
- package/typescript/dist/src/lib/types/voluntary-life.d.ts +33 -0
- package/typescript/dist/src/lib/types/voluntary-life.d.ts.map +1 -0
- package/typescript/dist/src/lib/types/voluntary-life.js +144 -0
- package/typescript/dist/src/lib/types/voluntary-life.js.map +1 -0
- package/typescript/dist/src/lib/utils/format.d.ts +11 -0
- package/typescript/dist/src/lib/utils/format.d.ts.map +1 -0
- package/typescript/dist/src/lib/utils/format.js +95 -0
- package/typescript/dist/src/lib/utils/format.js.map +1 -0
- package/typescript/dist/src/lib/utils/index.d.ts +2 -0
- package/typescript/dist/src/lib/utils/index.d.ts.map +1 -0
- package/typescript/dist/src/lib/utils/index.js +2 -0
- package/typescript/dist/src/lib/utils/index.js.map +1 -0
- package/typescript/dist/src/main.d.ts +2 -0
- package/typescript/dist/src/main.d.ts.map +1 -0
- package/typescript/dist/src/main.js +20 -0
- package/typescript/dist/src/main.js.map +1 -0
- package/typescript/dist/src/pages/AccidentComparison.d.ts +2 -0
- package/typescript/dist/src/pages/AccidentComparison.d.ts.map +1 -0
- package/typescript/dist/src/pages/AccidentComparison.js +56 -0
- package/typescript/dist/src/pages/AccidentComparison.js.map +1 -0
- package/typescript/dist/src/pages/AccidentExplorer.d.ts +2 -0
- package/typescript/dist/src/pages/AccidentExplorer.d.ts.map +1 -0
- package/typescript/dist/src/pages/AccidentExplorer.js +29 -0
- package/typescript/dist/src/pages/AccidentExplorer.js.map +1 -0
- package/typescript/dist/src/pages/BasicLifeComparison.d.ts +2 -0
- package/typescript/dist/src/pages/BasicLifeComparison.d.ts.map +1 -0
- package/typescript/dist/src/pages/BasicLifeComparison.js +59 -0
- package/typescript/dist/src/pages/BasicLifeComparison.js.map +1 -0
- package/typescript/dist/src/pages/BasicLifeExplorer.d.ts +2 -0
- package/typescript/dist/src/pages/BasicLifeExplorer.d.ts.map +1 -0
- package/typescript/dist/src/pages/BasicLifeExplorer.js +29 -0
- package/typescript/dist/src/pages/BasicLifeExplorer.js.map +1 -0
- package/typescript/dist/src/pages/CriticalIllnessComparison.d.ts +2 -0
- package/typescript/dist/src/pages/CriticalIllnessComparison.d.ts.map +1 -0
- package/typescript/dist/src/pages/CriticalIllnessComparison.js +56 -0
- package/typescript/dist/src/pages/CriticalIllnessComparison.js.map +1 -0
- package/typescript/dist/src/pages/CriticalIllnessExplorer.d.ts +2 -0
- package/typescript/dist/src/pages/CriticalIllnessExplorer.d.ts.map +1 -0
- package/typescript/dist/src/pages/CriticalIllnessExplorer.js +29 -0
- package/typescript/dist/src/pages/CriticalIllnessExplorer.js.map +1 -0
- package/typescript/dist/src/pages/Dashboard.d.ts +2 -0
- package/typescript/dist/src/pages/Dashboard.d.ts.map +1 -0
- package/typescript/dist/src/pages/Dashboard.js +8 -0
- package/typescript/dist/src/pages/Dashboard.js.map +1 -0
- package/typescript/dist/src/pages/DentalComparison.d.ts +2 -0
- package/typescript/dist/src/pages/DentalComparison.d.ts.map +1 -0
- package/typescript/dist/src/pages/DentalComparison.js +64 -0
- package/typescript/dist/src/pages/DentalComparison.js.map +1 -0
- package/typescript/dist/src/pages/DentalExplorer.d.ts +2 -0
- package/typescript/dist/src/pages/DentalExplorer.d.ts.map +1 -0
- package/typescript/dist/src/pages/DentalExplorer.js +29 -0
- package/typescript/dist/src/pages/DentalExplorer.js.map +1 -0
- package/typescript/dist/src/pages/HospitalIndemnityComparison.d.ts +2 -0
- package/typescript/dist/src/pages/HospitalIndemnityComparison.d.ts.map +1 -0
- package/typescript/dist/src/pages/HospitalIndemnityComparison.js +53 -0
- package/typescript/dist/src/pages/HospitalIndemnityComparison.js.map +1 -0
- package/typescript/dist/src/pages/HospitalIndemnityExplorer.d.ts +2 -0
- package/typescript/dist/src/pages/HospitalIndemnityExplorer.d.ts.map +1 -0
- package/typescript/dist/src/pages/HospitalIndemnityExplorer.js +29 -0
- package/typescript/dist/src/pages/HospitalIndemnityExplorer.js.map +1 -0
- package/typescript/dist/src/pages/LTDComparison.d.ts +2 -0
- package/typescript/dist/src/pages/LTDComparison.d.ts.map +1 -0
- package/typescript/dist/src/pages/LTDComparison.js +64 -0
- package/typescript/dist/src/pages/LTDComparison.js.map +1 -0
- package/typescript/dist/src/pages/LTDExplorer.d.ts +2 -0
- package/typescript/dist/src/pages/LTDExplorer.d.ts.map +1 -0
- package/typescript/dist/src/pages/LTDExplorer.js +29 -0
- package/typescript/dist/src/pages/LTDExplorer.js.map +1 -0
- package/typescript/dist/src/pages/STDComparison.d.ts +2 -0
- package/typescript/dist/src/pages/STDComparison.d.ts.map +1 -0
- package/typescript/dist/src/pages/STDComparison.js +58 -0
- package/typescript/dist/src/pages/STDComparison.js.map +1 -0
- package/typescript/dist/src/pages/STDExplorer.d.ts +2 -0
- package/typescript/dist/src/pages/STDExplorer.d.ts.map +1 -0
- package/typescript/dist/src/pages/STDExplorer.js +29 -0
- package/typescript/dist/src/pages/STDExplorer.js.map +1 -0
- package/typescript/dist/src/pages/VisionComparison.d.ts +2 -0
- package/typescript/dist/src/pages/VisionComparison.d.ts.map +1 -0
- package/typescript/dist/src/pages/VisionComparison.js +64 -0
- package/typescript/dist/src/pages/VisionComparison.js.map +1 -0
- package/typescript/dist/src/pages/VisionExplorer.d.ts +2 -0
- package/typescript/dist/src/pages/VisionExplorer.d.ts.map +1 -0
- package/typescript/dist/src/pages/VisionExplorer.js +29 -0
- package/typescript/dist/src/pages/VisionExplorer.js.map +1 -0
- package/typescript/dist/src/pages/VoluntaryLifeComparison.d.ts +2 -0
- package/typescript/dist/src/pages/VoluntaryLifeComparison.d.ts.map +1 -0
- package/typescript/dist/src/pages/VoluntaryLifeComparison.js +51 -0
- package/typescript/dist/src/pages/VoluntaryLifeComparison.js.map +1 -0
- package/typescript/dist/src/pages/VoluntaryLifeExplorer.d.ts +2 -0
- package/typescript/dist/src/pages/VoluntaryLifeExplorer.d.ts.map +1 -0
- package/typescript/dist/src/pages/VoluntaryLifeExplorer.js +29 -0
- package/typescript/dist/src/pages/VoluntaryLifeExplorer.js.map +1 -0
- package/typescript/dist/src/runtime/index.d.ts +2 -0
- package/typescript/dist/src/runtime/index.d.ts.map +1 -0
- package/typescript/dist/src/runtime/index.js +2 -0
- package/typescript/dist/src/runtime/index.js.map +1 -0
- package/typescript/dist/src/runtime/lifecycle.d.ts +16 -0
- package/typescript/dist/src/runtime/lifecycle.d.ts.map +1 -0
- package/typescript/dist/src/runtime/lifecycle.js +50 -0
- package/typescript/dist/src/runtime/lifecycle.js.map +1 -0
- package/typescript/dist/src/server/abort-support.d.ts +20 -0
- package/typescript/dist/src/server/abort-support.d.ts.map +1 -0
- package/typescript/dist/src/server/abort-support.js +101 -0
- package/typescript/dist/src/server/abort-support.js.map +1 -0
- package/typescript/dist/src/server/advanced-memory-monitor.d.ts +189 -0
- package/typescript/dist/src/server/advanced-memory-monitor.d.ts.map +1 -0
- package/typescript/dist/src/server/advanced-memory-monitor.js +718 -0
- package/typescript/dist/src/server/advanced-memory-monitor.js.map +1 -0
- package/typescript/dist/src/server/architecture-detector.d.ts +72 -0
- package/typescript/dist/src/server/architecture-detector.d.ts.map +1 -0
- package/typescript/dist/src/server/architecture-detector.js +282 -0
- package/typescript/dist/src/server/architecture-detector.js.map +1 -0
- package/typescript/dist/src/server/batch-processor-tool.d.ts +69 -0
- package/typescript/dist/src/server/batch-processor-tool.d.ts.map +1 -0
- package/typescript/dist/src/server/batch-processor-tool.js +651 -0
- package/typescript/dist/src/server/batch-processor-tool.js.map +1 -0
- package/typescript/dist/src/server/batch-processor.d.ts +73 -0
- package/typescript/dist/src/server/batch-processor.d.ts.map +1 -0
- package/typescript/dist/src/server/batch-processor.js +264 -0
- package/typescript/dist/src/server/batch-processor.js.map +1 -0
- package/typescript/dist/src/server/browser-stub.d.ts +18 -0
- package/typescript/dist/src/server/browser-stub.d.ts.map +1 -0
- package/typescript/dist/src/server/browser-stub.js +21 -0
- package/typescript/dist/src/server/browser-stub.js.map +1 -0
- package/typescript/dist/src/server/cache.d.ts +92 -0
- package/typescript/dist/src/server/cache.d.ts.map +1 -0
- package/typescript/dist/src/server/cache.js +217 -0
- package/typescript/dist/src/server/cache.js.map +1 -0
- package/typescript/dist/src/server/circular-deps.d.ts +85 -0
- package/typescript/dist/src/server/circular-deps.d.ts.map +1 -0
- package/typescript/dist/src/server/circular-deps.js +331 -0
- package/typescript/dist/src/server/circular-deps.js.map +1 -0
- package/typescript/dist/src/server/claude-code-env.d.ts +50 -0
- package/typescript/dist/src/server/claude-code-env.d.ts.map +1 -0
- package/typescript/dist/src/server/claude-code-env.js +116 -0
- package/typescript/dist/src/server/claude-code-env.js.map +1 -0
- package/typescript/dist/src/server/code-analysis-tool.d.ts +79 -0
- package/typescript/dist/src/server/code-analysis-tool.d.ts.map +1 -0
- package/typescript/dist/src/server/code-analysis-tool.js +94 -0
- package/typescript/dist/src/server/code-analysis-tool.js.map +1 -0
- package/typescript/dist/src/server/code-analysis.d.ts +16 -0
- package/typescript/dist/src/server/code-analysis.d.ts.map +1 -0
- package/typescript/dist/src/server/code-analysis.js +462 -0
- package/typescript/dist/src/server/code-analysis.js.map +1 -0
- package/typescript/dist/src/server/code-transformation.d.ts +141 -0
- package/typescript/dist/src/server/code-transformation.d.ts.map +1 -0
- package/typescript/dist/src/server/code-transformation.js +918 -0
- package/typescript/dist/src/server/code-transformation.js.map +1 -0
- package/typescript/dist/src/server/comprehensive-code-analysis.d.ts +77 -0
- package/typescript/dist/src/server/comprehensive-code-analysis.d.ts.map +1 -0
- package/typescript/dist/src/server/comprehensive-code-analysis.js +613 -0
- package/typescript/dist/src/server/comprehensive-code-analysis.js.map +1 -0
- package/typescript/dist/src/server/concurrency.d.ts +5 -0
- package/typescript/dist/src/server/concurrency.d.ts.map +1 -0
- package/typescript/dist/src/server/concurrency.js +20 -0
- package/typescript/dist/src/server/concurrency.js.map +1 -0
- package/typescript/dist/src/server/context-manager.d.ts +97 -0
- package/typescript/dist/src/server/context-manager.d.ts.map +1 -0
- package/typescript/dist/src/server/context-manager.js +410 -0
- package/typescript/dist/src/server/context-manager.js.map +1 -0
- package/typescript/dist/src/server/context-session-manager.d.ts +47 -0
- package/typescript/dist/src/server/context-session-manager.d.ts.map +1 -0
- package/typescript/dist/src/server/context-session-manager.js +594 -0
- package/typescript/dist/src/server/context-session-manager.js.map +1 -0
- package/typescript/dist/src/server/context.d.ts +66 -0
- package/typescript/dist/src/server/context.d.ts.map +1 -0
- package/typescript/dist/src/server/context.js +275 -0
- package/typescript/dist/src/server/context.js.map +1 -0
- package/typescript/dist/src/server/dependency-analyzer.d.ts +100 -0
- package/typescript/dist/src/server/dependency-analyzer.d.ts.map +1 -0
- package/typescript/dist/src/server/dependency-analyzer.js +1117 -0
- package/typescript/dist/src/server/dependency-analyzer.js.map +1 -0
- package/typescript/dist/src/server/error-handling.d.ts +106 -0
- package/typescript/dist/src/server/error-handling.d.ts.map +1 -0
- package/typescript/dist/src/server/error-handling.js +363 -0
- package/typescript/dist/src/server/error-handling.js.map +1 -0
- package/typescript/dist/src/server/file-discovery.d.ts +60 -0
- package/typescript/dist/src/server/file-discovery.d.ts.map +1 -0
- package/typescript/dist/src/server/file-discovery.js +282 -0
- package/typescript/dist/src/server/file-discovery.js.map +1 -0
- package/typescript/dist/src/server/file-streaming.d.ts +152 -0
- package/typescript/dist/src/server/file-streaming.d.ts.map +1 -0
- package/typescript/dist/src/server/file-streaming.js +627 -0
- package/typescript/dist/src/server/file-streaming.js.map +1 -0
- package/typescript/dist/src/server/files.d.ts +100 -0
- package/typescript/dist/src/server/files.d.ts.map +1 -0
- package/typescript/dist/src/server/files.js +609 -0
- package/typescript/dist/src/server/files.js.map +1 -0
- package/typescript/dist/src/server/index.d.ts +54 -0
- package/typescript/dist/src/server/index.d.ts.map +1 -0
- package/typescript/dist/src/server/index.js +54 -0
- package/typescript/dist/src/server/index.js.map +1 -0
- package/typescript/dist/src/server/logger.d.ts +95 -0
- package/typescript/dist/src/server/logger.d.ts.map +1 -0
- package/typescript/dist/src/server/logger.js +271 -0
- package/typescript/dist/src/server/logger.js.map +1 -0
- package/typescript/dist/src/server/memory-aware-cache.d.ts +169 -0
- package/typescript/dist/src/server/memory-aware-cache.d.ts.map +1 -0
- package/typescript/dist/src/server/memory-aware-cache.js +655 -0
- package/typescript/dist/src/server/memory-aware-cache.js.map +1 -0
- package/typescript/dist/src/server/memory-monitor-tool.d.ts +46 -0
- package/typescript/dist/src/server/memory-monitor-tool.d.ts.map +1 -0
- package/typescript/dist/src/server/memory-monitor-tool.js +381 -0
- package/typescript/dist/src/server/memory-monitor-tool.js.map +1 -0
- package/typescript/dist/src/server/memory-monitor.d.ts +79 -0
- package/typescript/dist/src/server/memory-monitor.d.ts.map +1 -0
- package/typescript/dist/src/server/memory-monitor.js +333 -0
- package/typescript/dist/src/server/memory-monitor.js.map +1 -0
- package/typescript/dist/src/server/optimization-engine.d.ts +68 -0
- package/typescript/dist/src/server/optimization-engine.d.ts.map +1 -0
- package/typescript/dist/src/server/optimization-engine.js +728 -0
- package/typescript/dist/src/server/optimization-engine.js.map +1 -0
- package/typescript/dist/src/server/path-manager.d.ts +46 -0
- package/typescript/dist/src/server/path-manager.d.ts.map +1 -0
- package/typescript/dist/src/server/path-manager.js +155 -0
- package/typescript/dist/src/server/path-manager.js.map +1 -0
- package/typescript/dist/src/server/pattern-analyzer.d.ts +69 -0
- package/typescript/dist/src/server/pattern-analyzer.d.ts.map +1 -0
- package/typescript/dist/src/server/pattern-analyzer.js +497 -0
- package/typescript/dist/src/server/pattern-analyzer.js.map +1 -0
- package/typescript/dist/src/server/performance-observer.d.ts +61 -0
- package/typescript/dist/src/server/performance-observer.d.ts.map +1 -0
- package/typescript/dist/src/server/performance-observer.js +394 -0
- package/typescript/dist/src/server/performance-observer.js.map +1 -0
- package/typescript/dist/src/server/performance.d.ts +121 -0
- package/typescript/dist/src/server/performance.d.ts.map +1 -0
- package/typescript/dist/src/server/performance.js +520 -0
- package/typescript/dist/src/server/performance.js.map +1 -0
- package/typescript/dist/src/server/report-generator.d.ts +131 -0
- package/typescript/dist/src/server/report-generator.d.ts.map +1 -0
- package/typescript/dist/src/server/report-generator.js +1158 -0
- package/typescript/dist/src/server/report-generator.js.map +1 -0
- package/typescript/dist/src/server/resource-lifecycle-manager.d.ts +231 -0
- package/typescript/dist/src/server/resource-lifecycle-manager.d.ts.map +1 -0
- package/typescript/dist/src/server/resource-lifecycle-manager.js +839 -0
- package/typescript/dist/src/server/resource-lifecycle-manager.js.map +1 -0
- package/typescript/dist/src/server/retry-operations.d.ts +59 -0
- package/typescript/dist/src/server/retry-operations.d.ts.map +1 -0
- package/typescript/dist/src/server/retry-operations.js +68 -0
- package/typescript/dist/src/server/retry-operations.js.map +1 -0
- package/typescript/dist/src/server/retry.d.ts +18 -0
- package/typescript/dist/src/server/retry.d.ts.map +1 -0
- package/typescript/dist/src/server/retry.js +44 -0
- package/typescript/dist/src/server/retry.js.map +1 -0
- package/typescript/dist/src/server/retryable.d.ts +2 -0
- package/typescript/dist/src/server/retryable.d.ts.map +1 -0
- package/typescript/dist/src/server/retryable.js +21 -0
- package/typescript/dist/src/server/retryable.js.map +1 -0
- package/typescript/dist/src/server/scheduler.d.ts +4 -0
- package/typescript/dist/src/server/scheduler.d.ts.map +1 -0
- package/typescript/dist/src/server/scheduler.js +21 -0
- package/typescript/dist/src/server/scheduler.js.map +1 -0
- package/typescript/dist/src/server/security-scanner.d.ts +59 -0
- package/typescript/dist/src/server/security-scanner.d.ts.map +1 -0
- package/typescript/dist/src/server/security-scanner.js +915 -0
- package/typescript/dist/src/server/security-scanner.js.map +1 -0
- package/typescript/dist/src/server/security.d.ts +25 -0
- package/typescript/dist/src/server/security.d.ts.map +1 -0
- package/typescript/dist/src/server/security.js +298 -0
- package/typescript/dist/src/server/security.js.map +1 -0
- package/typescript/dist/src/server/session-management.d.ts +103 -0
- package/typescript/dist/src/server/session-management.d.ts.map +1 -0
- package/typescript/dist/src/server/session-management.js +149 -0
- package/typescript/dist/src/server/session-management.js.map +1 -0
- package/typescript/dist/src/server/session-recovery.d.ts +91 -0
- package/typescript/dist/src/server/session-recovery.d.ts.map +1 -0
- package/typescript/dist/src/server/session-recovery.js +384 -0
- package/typescript/dist/src/server/session-recovery.js.map +1 -0
- package/typescript/dist/src/server/session.d.ts +18 -0
- package/typescript/dist/src/server/session.d.ts.map +1 -0
- package/typescript/dist/src/server/session.js +46 -0
- package/typescript/dist/src/server/session.js.map +1 -0
- package/typescript/dist/src/server/simple-tools.d.ts +15 -0
- package/typescript/dist/src/server/simple-tools.d.ts.map +1 -0
- package/typescript/dist/src/server/simple-tools.js +15 -0
- package/typescript/dist/src/server/simple-tools.js.map +1 -0
- package/typescript/dist/src/server/streaming-utilities.d.ts +107 -0
- package/typescript/dist/src/server/streaming-utilities.d.ts.map +1 -0
- package/typescript/dist/src/server/streaming-utilities.js +822 -0
- package/typescript/dist/src/server/streaming-utilities.js.map +1 -0
- package/typescript/dist/src/server/streams.d.ts +48 -0
- package/typescript/dist/src/server/streams.d.ts.map +1 -0
- package/typescript/dist/src/server/streams.js +489 -0
- package/typescript/dist/src/server/streams.js.map +1 -0
- package/typescript/dist/src/server/stringify-advanced.d.ts +31 -0
- package/typescript/dist/src/server/stringify-advanced.d.ts.map +1 -0
- package/typescript/dist/src/server/stringify-advanced.js +183 -0
- package/typescript/dist/src/server/stringify-advanced.js.map +1 -0
- package/typescript/dist/src/server/structured-clone-tool.d.ts +101 -0
- package/typescript/dist/src/server/structured-clone-tool.d.ts.map +1 -0
- package/typescript/dist/src/server/structured-clone-tool.js +450 -0
- package/typescript/dist/src/server/structured-clone-tool.js.map +1 -0
- package/typescript/dist/src/server/structured-clone.d.ts +59 -0
- package/typescript/dist/src/server/structured-clone.d.ts.map +1 -0
- package/typescript/dist/src/server/structured-clone.js +307 -0
- package/typescript/dist/src/server/structured-clone.js.map +1 -0
- package/typescript/dist/src/server/test-runner.d.ts +78 -0
- package/typescript/dist/src/server/test-runner.d.ts.map +1 -0
- package/typescript/dist/src/server/test-runner.js +1024 -0
- package/typescript/dist/src/server/test-runner.js.map +1 -0
- package/typescript/dist/src/server/tool-helpers.d.ts +6 -0
- package/typescript/dist/src/server/tool-helpers.d.ts.map +1 -0
- package/typescript/dist/src/server/tool-helpers.js +27 -0
- package/typescript/dist/src/server/tool-helpers.js.map +1 -0
- package/typescript/dist/src/server/validation.d.ts +79 -0
- package/typescript/dist/src/server/validation.d.ts.map +1 -0
- package/typescript/dist/src/server/validation.js +613 -0
- package/typescript/dist/src/server/validation.js.map +1 -0
- package/typescript/dist/src/server/worker-pool.d.ts +87 -0
- package/typescript/dist/src/server/worker-pool.d.ts.map +1 -0
- package/typescript/dist/src/server/worker-pool.js +586 -0
- package/typescript/dist/src/server/worker-pool.js.map +1 -0
- package/typescript/dist/src/server/worker-threads.d.ts +95 -0
- package/typescript/dist/src/server/worker-threads.d.ts.map +1 -0
- package/typescript/dist/src/server/worker-threads.js +1074 -0
- package/typescript/dist/src/server/worker-threads.js.map +1 -0
- package/typescript/dist/src/server/workflow-orchestrator.d.ts +122 -0
- package/typescript/dist/src/server/workflow-orchestrator.d.ts.map +1 -0
- package/typescript/dist/src/server/workflow-orchestrator.js +2131 -0
- package/typescript/dist/src/server/workflow-orchestrator.js.map +1 -0
- package/typescript/dist/src/server/worktree-manager.d.ts +70 -0
- package/typescript/dist/src/server/worktree-manager.d.ts.map +1 -0
- package/typescript/dist/src/server/worktree-manager.js +741 -0
- package/typescript/dist/src/server/worktree-manager.js.map +1 -0
- package/typescript/dist/src/shared/constants.d.ts +5 -0
- package/typescript/dist/src/shared/constants.d.ts.map +1 -0
- package/typescript/dist/src/shared/constants.js +5 -0
- package/typescript/dist/src/shared/constants.js.map +1 -0
- package/typescript/dist/src/shared/entity-config.d.ts +76 -0
- package/typescript/dist/src/shared/entity-config.d.ts.map +1 -0
- package/typescript/dist/src/shared/entity-config.js +2 -0
- package/typescript/dist/src/shared/entity-config.js.map +1 -0
- package/typescript/dist/src/shared/environment.d.ts +18 -0
- package/typescript/dist/src/shared/environment.d.ts.map +1 -0
- package/typescript/dist/src/shared/environment.js +39 -0
- package/typescript/dist/src/shared/environment.js.map +1 -0
- package/typescript/dist/src/shared/index.d.ts +6 -0
- package/typescript/dist/src/shared/index.d.ts.map +1 -0
- package/typescript/dist/src/shared/index.js +6 -0
- package/typescript/dist/src/shared/index.js.map +1 -0
- package/typescript/dist/src/shared/stringify.d.ts +16 -0
- package/typescript/dist/src/shared/stringify.d.ts.map +1 -0
- package/typescript/dist/src/shared/stringify.js +195 -0
- package/typescript/dist/src/shared/stringify.js.map +1 -0
- package/typescript/dist/src/shared/timeout.d.ts +27 -0
- package/typescript/dist/src/shared/timeout.d.ts.map +1 -0
- package/typescript/dist/src/shared/timeout.js +196 -0
- package/typescript/dist/src/shared/timeout.js.map +1 -0
- package/typescript/dist/src/types/mcp.d.ts +23 -0
- package/typescript/dist/src/types/mcp.d.ts.map +1 -0
- package/typescript/dist/src/types/mcp.js +2 -0
- package/typescript/dist/src/types/mcp.js.map +1 -0
- package/typescript/dist/tsconfig.tsbuildinfo +1 -0
- package/typescript/dist/vite.config.d.ts +3 -0
- package/typescript/dist/vite.config.d.ts.map +1 -0
- package/typescript/dist/vite.config.js +12 -0
- package/typescript/dist/vite.config.js.map +1 -0
- package/typescript/nextjs.json +17 -0
- package/typescript/node.json +10 -0
- package/typescript/react-native.json +8 -0
- package/typescript/react.json +12 -0
|
@@ -0,0 +1,918 @@
|
|
|
1
|
+
import { execSync } from 'node:child_process';
|
|
2
|
+
import { access, readFile, writeFile } from 'node:fs/promises';
|
|
3
|
+
import { join, resolve } from 'node:path';
|
|
4
|
+
import { safeThrowIfAborted } from './abort-support';
|
|
5
|
+
import { ok, runTool } from './tool-helpers';
|
|
6
|
+
import { validateFilePath, validateSessionId } from './validation';
|
|
7
|
+
export const codeTransformationTool = {
|
|
8
|
+
name: 'code_transformation',
|
|
9
|
+
description: 'Safe code transformations with rollback capability',
|
|
10
|
+
inputSchema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
action: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
enum: [
|
|
16
|
+
'removeWords',
|
|
17
|
+
'scanWordTargets',
|
|
18
|
+
'validateWordRemoval',
|
|
19
|
+
'rollbackWordRemoval',
|
|
20
|
+
'centralizeMocks',
|
|
21
|
+
'scanMockUsage',
|
|
22
|
+
'updateMockImports',
|
|
23
|
+
'validateMockChanges',
|
|
24
|
+
'modernizeES2023',
|
|
25
|
+
'modernizeSyntax',
|
|
26
|
+
'modernizeAPIs',
|
|
27
|
+
'validateModernization',
|
|
28
|
+
'refactorImports',
|
|
29
|
+
'refactorExports',
|
|
30
|
+
'extractConstants',
|
|
31
|
+
'optimizeTypes',
|
|
32
|
+
'createBackup',
|
|
33
|
+
'restoreBackup',
|
|
34
|
+
'checkCompilation',
|
|
35
|
+
'runTransformationTests',
|
|
36
|
+
'batchTransform',
|
|
37
|
+
'previewTransformations',
|
|
38
|
+
'applyTransformations',
|
|
39
|
+
'getTransformationPlan',
|
|
40
|
+
'fullModernization',
|
|
41
|
+
'safeTransform',
|
|
42
|
+
'mockOverhaul',
|
|
43
|
+
'cleanupTransform',
|
|
44
|
+
],
|
|
45
|
+
description: 'Code transformation action to perform',
|
|
46
|
+
},
|
|
47
|
+
packagePath: {
|
|
48
|
+
type: 'string',
|
|
49
|
+
description: 'Path to the package being transformed',
|
|
50
|
+
},
|
|
51
|
+
sessionId: {
|
|
52
|
+
type: 'string',
|
|
53
|
+
description: 'Session identifier for tracking',
|
|
54
|
+
},
|
|
55
|
+
files: {
|
|
56
|
+
type: 'array',
|
|
57
|
+
items: { type: 'string' },
|
|
58
|
+
description: 'Files to transform',
|
|
59
|
+
},
|
|
60
|
+
words: {
|
|
61
|
+
type: 'array',
|
|
62
|
+
items: { type: 'string' },
|
|
63
|
+
description: 'Words to remove for word removal operations',
|
|
64
|
+
},
|
|
65
|
+
transformationTypes: {
|
|
66
|
+
type: 'array',
|
|
67
|
+
items: { type: 'string' },
|
|
68
|
+
description: 'Types of transformations to apply',
|
|
69
|
+
},
|
|
70
|
+
options: {
|
|
71
|
+
type: 'object',
|
|
72
|
+
properties: {
|
|
73
|
+
dryRun: { type: 'boolean' },
|
|
74
|
+
createBackup: { type: 'boolean' },
|
|
75
|
+
skipValidation: { type: 'boolean' },
|
|
76
|
+
batchSize: { type: 'number' },
|
|
77
|
+
rollbackOnError: { type: 'boolean' },
|
|
78
|
+
},
|
|
79
|
+
description: 'Transformation options',
|
|
80
|
+
},
|
|
81
|
+
workingDirectory: {
|
|
82
|
+
type: 'string',
|
|
83
|
+
description: 'Preferred working directory (worktree path) for transformations',
|
|
84
|
+
},
|
|
85
|
+
backupId: {
|
|
86
|
+
type: 'string',
|
|
87
|
+
description: 'Backup identifier for restore operations',
|
|
88
|
+
},
|
|
89
|
+
mockOptions: {
|
|
90
|
+
type: 'object',
|
|
91
|
+
properties: {
|
|
92
|
+
centralizedPath: { type: 'string' },
|
|
93
|
+
preserveOriginal: { type: 'boolean' },
|
|
94
|
+
updateReferences: { type: 'boolean' },
|
|
95
|
+
},
|
|
96
|
+
description: 'Mock centralization options',
|
|
97
|
+
},
|
|
98
|
+
es2023Options: {
|
|
99
|
+
type: 'object',
|
|
100
|
+
properties: {
|
|
101
|
+
features: {
|
|
102
|
+
type: 'array',
|
|
103
|
+
items: { type: 'string' },
|
|
104
|
+
},
|
|
105
|
+
preserveCompatibility: { type: 'boolean' },
|
|
106
|
+
updateDependencies: { type: 'boolean' },
|
|
107
|
+
},
|
|
108
|
+
description: 'ES2023 modernization options',
|
|
109
|
+
},
|
|
110
|
+
signal: {
|
|
111
|
+
description: 'AbortSignal for cancelling the operation',
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
required: ['action'],
|
|
115
|
+
additionalProperties: true,
|
|
116
|
+
},
|
|
117
|
+
async execute(args) {
|
|
118
|
+
return runTool('code_transformation', args.action, async () => {
|
|
119
|
+
safeThrowIfAborted(args.signal);
|
|
120
|
+
const { action, packagePath, sessionId, files, words, transformationTypes, options, backupId, mockOptions, es2023Options, } = args;
|
|
121
|
+
if (sessionId) {
|
|
122
|
+
const sessionValidation = validateSessionId(sessionId);
|
|
123
|
+
if (!sessionValidation.isValid) {
|
|
124
|
+
throw new Error(`Invalid session ID: ${sessionValidation.error}`);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
if (packagePath) {
|
|
128
|
+
const pathValidation = validateFilePath(packagePath, [process.cwd()]);
|
|
129
|
+
if (!pathValidation.isValid) {
|
|
130
|
+
throw new Error(`Invalid package path: ${pathValidation.error}`);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
switch (action) {
|
|
134
|
+
case 'removeWords': {
|
|
135
|
+
if (!words || words.length === 0) {
|
|
136
|
+
throw new Error('Words array required for word removal');
|
|
137
|
+
}
|
|
138
|
+
if (!packagePath) {
|
|
139
|
+
throw new Error('Package path required for word removal');
|
|
140
|
+
}
|
|
141
|
+
const result = await performWordRemoval(packagePath, words, files ?? [], options ?? {}, sessionId);
|
|
142
|
+
return ok(result);
|
|
143
|
+
}
|
|
144
|
+
case 'scanWordTargets': {
|
|
145
|
+
if (!words || !packagePath) {
|
|
146
|
+
throw new Error('Words and package path required for target scanning');
|
|
147
|
+
}
|
|
148
|
+
const targets = await scanWordRemovalTargets(packagePath, words, files);
|
|
149
|
+
return ok(targets);
|
|
150
|
+
}
|
|
151
|
+
case 'validateWordRemoval': {
|
|
152
|
+
if (!packagePath) {
|
|
153
|
+
throw new Error('Package path required for validation');
|
|
154
|
+
}
|
|
155
|
+
const validation = await validateWordRemovalSafety(packagePath, words ?? [], sessionId);
|
|
156
|
+
return ok(validation);
|
|
157
|
+
}
|
|
158
|
+
case 'rollbackWordRemoval': {
|
|
159
|
+
if (!backupId || !packagePath) {
|
|
160
|
+
throw new Error('Backup ID and package path required for rollback');
|
|
161
|
+
}
|
|
162
|
+
const rollback = await rollbackWordRemovalChanges(backupId, packagePath);
|
|
163
|
+
return ok(rollback);
|
|
164
|
+
}
|
|
165
|
+
case 'centralizeMocks': {
|
|
166
|
+
if (!packagePath) {
|
|
167
|
+
throw new Error('Package path required for mock centralization');
|
|
168
|
+
}
|
|
169
|
+
const result = await performMockCentralization(packagePath, mockOptions ?? {}, sessionId);
|
|
170
|
+
return ok(result);
|
|
171
|
+
}
|
|
172
|
+
case 'scanMockUsage': {
|
|
173
|
+
if (!packagePath) {
|
|
174
|
+
throw new Error('Package path required for mock scanning');
|
|
175
|
+
}
|
|
176
|
+
const mockUsage = await scanMockUsagePatterns(packagePath, files);
|
|
177
|
+
return ok(mockUsage);
|
|
178
|
+
}
|
|
179
|
+
case 'updateMockImports': {
|
|
180
|
+
if (!files || !packagePath) {
|
|
181
|
+
throw new Error('Files and package path required for mock import updates');
|
|
182
|
+
}
|
|
183
|
+
const importUpdates = await updateMockImportPaths(packagePath, files, mockOptions);
|
|
184
|
+
return ok(importUpdates);
|
|
185
|
+
}
|
|
186
|
+
case 'validateMockChanges': {
|
|
187
|
+
if (!packagePath) {
|
|
188
|
+
throw new Error('Package path required for mock validation');
|
|
189
|
+
}
|
|
190
|
+
const validation = await validateMockConsolidation(packagePath, sessionId);
|
|
191
|
+
return ok(validation);
|
|
192
|
+
}
|
|
193
|
+
case 'modernizeES2023': {
|
|
194
|
+
if (!packagePath) {
|
|
195
|
+
throw new Error('Package path required for ES2023 modernization');
|
|
196
|
+
}
|
|
197
|
+
const result = await performES2023Modernization(packagePath, es2023Options ?? {}, sessionId);
|
|
198
|
+
return ok(result);
|
|
199
|
+
}
|
|
200
|
+
case 'modernizeSyntax': {
|
|
201
|
+
const syntaxResult = await modernizeSyntaxPatterns(packagePath ?? '', files || []);
|
|
202
|
+
return ok(syntaxResult);
|
|
203
|
+
}
|
|
204
|
+
case 'modernizeAPIs': {
|
|
205
|
+
const apiResult = await modernizeAPIUsage(packagePath ?? '', files || []);
|
|
206
|
+
return ok(apiResult);
|
|
207
|
+
}
|
|
208
|
+
case 'validateModernization': {
|
|
209
|
+
if (!packagePath) {
|
|
210
|
+
throw new Error('Package path required for modernization validation');
|
|
211
|
+
}
|
|
212
|
+
const validation = await validateES2023Changes(packagePath, sessionId);
|
|
213
|
+
return ok(validation);
|
|
214
|
+
}
|
|
215
|
+
case 'createBackup': {
|
|
216
|
+
if (!packagePath) {
|
|
217
|
+
throw new Error('Package path required for backup creation');
|
|
218
|
+
}
|
|
219
|
+
const backup = await createTransformationBackup(packagePath, sessionId);
|
|
220
|
+
return ok(backup);
|
|
221
|
+
}
|
|
222
|
+
case 'restoreBackup': {
|
|
223
|
+
if (!backupId || !packagePath) {
|
|
224
|
+
throw new Error('Backup ID and package path required for restore');
|
|
225
|
+
}
|
|
226
|
+
const restore = await restoreFromBackup(backupId, packagePath);
|
|
227
|
+
return ok(restore);
|
|
228
|
+
}
|
|
229
|
+
case 'checkCompilation': {
|
|
230
|
+
if (!packagePath) {
|
|
231
|
+
throw new Error('Package path required for compilation check');
|
|
232
|
+
}
|
|
233
|
+
const compilation = await checkCodeCompilation(packagePath);
|
|
234
|
+
return ok(compilation);
|
|
235
|
+
}
|
|
236
|
+
case 'runTransformationTests': {
|
|
237
|
+
if (!packagePath) {
|
|
238
|
+
throw new Error('Package path required for running tests');
|
|
239
|
+
}
|
|
240
|
+
const testResults = await runPostTransformationTests(packagePath, sessionId);
|
|
241
|
+
return ok(testResults);
|
|
242
|
+
}
|
|
243
|
+
case 'batchTransform': {
|
|
244
|
+
if (!transformationTypes || !packagePath) {
|
|
245
|
+
throw new Error('Transformation types and package path required for batch transform');
|
|
246
|
+
}
|
|
247
|
+
const batchResult = await performBatchTransformations(packagePath, transformationTypes, options ?? {}, sessionId);
|
|
248
|
+
return ok(batchResult);
|
|
249
|
+
}
|
|
250
|
+
case 'previewTransformations': {
|
|
251
|
+
if (!transformationTypes || !packagePath) {
|
|
252
|
+
throw new Error('Transformation types and package path required for preview');
|
|
253
|
+
}
|
|
254
|
+
const preview = await previewTransformationChanges(packagePath, transformationTypes);
|
|
255
|
+
return ok(preview);
|
|
256
|
+
}
|
|
257
|
+
case 'applyTransformations': {
|
|
258
|
+
const apply = await applyPreviewedTransformations(packagePath ?? '', sessionId);
|
|
259
|
+
return ok(apply);
|
|
260
|
+
}
|
|
261
|
+
case 'getTransformationPlan': {
|
|
262
|
+
if (!transformationTypes || !packagePath) {
|
|
263
|
+
throw new Error('Transformation types and package path required for plan');
|
|
264
|
+
}
|
|
265
|
+
const plan = await generateTransformationPlan(packagePath, transformationTypes);
|
|
266
|
+
return ok(plan);
|
|
267
|
+
}
|
|
268
|
+
case 'fullModernization': {
|
|
269
|
+
if (!packagePath) {
|
|
270
|
+
throw new Error('Package path required for full modernization');
|
|
271
|
+
}
|
|
272
|
+
const fullResult = await performFullModernization(packagePath, sessionId);
|
|
273
|
+
return ok(fullResult);
|
|
274
|
+
}
|
|
275
|
+
case 'safeTransform': {
|
|
276
|
+
if (!transformationTypes || !packagePath) {
|
|
277
|
+
throw new Error('Transformation types and package path required for safe transform');
|
|
278
|
+
}
|
|
279
|
+
const safeResult = await performSafeTransformation(packagePath, transformationTypes, sessionId);
|
|
280
|
+
return ok(safeResult);
|
|
281
|
+
}
|
|
282
|
+
case 'mockOverhaul': {
|
|
283
|
+
if (!packagePath) {
|
|
284
|
+
throw new Error('Package path required for mock overhaul');
|
|
285
|
+
}
|
|
286
|
+
const overhaulResult = await performMockOverhaul(packagePath, mockOptions ?? {}, sessionId);
|
|
287
|
+
return ok(overhaulResult);
|
|
288
|
+
}
|
|
289
|
+
case 'cleanupTransform': {
|
|
290
|
+
if (!words || !packagePath) {
|
|
291
|
+
throw new Error('Words and package path required for cleanup transform');
|
|
292
|
+
}
|
|
293
|
+
const cleanupResult = await performCleanupTransform(packagePath, words, files ?? [], options ?? {}, sessionId);
|
|
294
|
+
return ok(cleanupResult);
|
|
295
|
+
}
|
|
296
|
+
case 'refactorImports':
|
|
297
|
+
case 'refactorExports':
|
|
298
|
+
case 'extractConstants':
|
|
299
|
+
case 'optimizeTypes': {
|
|
300
|
+
return ok({
|
|
301
|
+
action,
|
|
302
|
+
status: 'pending_implementation',
|
|
303
|
+
message: `${action} will be implemented in Phase 2 refactoring operations`,
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
default:
|
|
307
|
+
throw new Error(`Unknown code transformation action: ${action}`);
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
},
|
|
311
|
+
};
|
|
312
|
+
async function performWordRemoval(packagePath, words, files, options, sessionId) {
|
|
313
|
+
let backupId;
|
|
314
|
+
if (options.createBackup !== false) {
|
|
315
|
+
const { backupId: id } = await createTransformationBackup(packagePath, sessionId);
|
|
316
|
+
backupId = id;
|
|
317
|
+
}
|
|
318
|
+
try {
|
|
319
|
+
const targets = await scanWordRemovalTargets(packagePath, words, files);
|
|
320
|
+
const modifications = [];
|
|
321
|
+
let successfulTransformations = 0;
|
|
322
|
+
let failedTransformations = 0;
|
|
323
|
+
for (const target of targets) {
|
|
324
|
+
for (const occurrence of target.occurrences) {
|
|
325
|
+
if (occurrence.safe) {
|
|
326
|
+
try {
|
|
327
|
+
let transformationResult = `Removed word "${target.word}" at line ${occurrence.line}`;
|
|
328
|
+
try {
|
|
329
|
+
const filePath = resolve(occurrence.file);
|
|
330
|
+
const content = await readFile(filePath, 'utf8');
|
|
331
|
+
const lines = content.split('\n');
|
|
332
|
+
if (occurrence.line <= lines.length) {
|
|
333
|
+
const originalLine = lines[occurrence.line - 1];
|
|
334
|
+
if (!originalLine)
|
|
335
|
+
continue;
|
|
336
|
+
const modifiedLine = originalLine.replace(new RegExp(`\\b${target.word}\\b`, 'g'), '');
|
|
337
|
+
if (originalLine !== modifiedLine) {
|
|
338
|
+
lines[occurrence.line - 1] = modifiedLine;
|
|
339
|
+
await writeFile(filePath, lines.join('\n'), 'utf8');
|
|
340
|
+
transformationResult = `Removed word "${target.word}" from line ${occurrence.line} in ${occurrence.file}`;
|
|
341
|
+
}
|
|
342
|
+
else {
|
|
343
|
+
transformationResult = `Word "${target.word}" not found at line ${occurrence.line} in ${occurrence.file}`;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
catch (fileError) {
|
|
348
|
+
if (fileError.code === 'ENOENT') {
|
|
349
|
+
transformationResult = `File ${occurrence.file} not found`;
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
transformationResult = `Error modifying ${occurrence.file}: ${fileError instanceof Error ? fileError.message : 'Unknown error'}`;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
modifications.push({
|
|
356
|
+
file: occurrence.file,
|
|
357
|
+
transformations: [transformationResult],
|
|
358
|
+
status: 'success',
|
|
359
|
+
});
|
|
360
|
+
successfulTransformations++;
|
|
361
|
+
}
|
|
362
|
+
catch (_error) {
|
|
363
|
+
modifications.push({
|
|
364
|
+
file: occurrence.file,
|
|
365
|
+
transformations: [],
|
|
366
|
+
status: 'failed',
|
|
367
|
+
});
|
|
368
|
+
failedTransformations++;
|
|
369
|
+
if (options.rollbackOnError && backupId) {
|
|
370
|
+
await rollbackWordRemovalChanges(backupId, packagePath);
|
|
371
|
+
break;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
return {
|
|
378
|
+
success: failedTransformations === 0,
|
|
379
|
+
filesModified: [...new Set(modifications.map(m => m.file))],
|
|
380
|
+
backupId,
|
|
381
|
+
summary: {
|
|
382
|
+
totalFiles: files.length || modifications.length,
|
|
383
|
+
successfulTransformations,
|
|
384
|
+
failedTransformations,
|
|
385
|
+
rollbacksPerformed: 0,
|
|
386
|
+
},
|
|
387
|
+
details: modifications,
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
catch (error) {
|
|
391
|
+
if (backupId && options.rollbackOnError) {
|
|
392
|
+
await rollbackWordRemovalChanges(backupId, packagePath);
|
|
393
|
+
}
|
|
394
|
+
throw error;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
async function scanWordRemovalTargets(packagePath, words, _files) {
|
|
398
|
+
return words.map(word => ({
|
|
399
|
+
word,
|
|
400
|
+
occurrences: [
|
|
401
|
+
{
|
|
402
|
+
file: 'example.ts',
|
|
403
|
+
line: 42,
|
|
404
|
+
column: 10,
|
|
405
|
+
context: `const ${word} = 'value';`,
|
|
406
|
+
safe: !word.includes('function') && !word.includes('class'),
|
|
407
|
+
reason: word.includes('function') ? 'Word appears in function context' : undefined,
|
|
408
|
+
},
|
|
409
|
+
],
|
|
410
|
+
totalCount: 1,
|
|
411
|
+
safeCount: 1,
|
|
412
|
+
unsafeCount: 0,
|
|
413
|
+
}));
|
|
414
|
+
}
|
|
415
|
+
async function validateWordRemovalSafety(packagePath, words, _sessionId) {
|
|
416
|
+
const targets = await scanWordRemovalTargets(packagePath, words);
|
|
417
|
+
return {
|
|
418
|
+
safe: targets.every(t => t.unsafeCount === 0),
|
|
419
|
+
totalTargets: targets.length,
|
|
420
|
+
safeTargets: targets.filter(t => t.unsafeCount === 0).length,
|
|
421
|
+
unsafeTargets: targets.filter(t => t.unsafeCount > 0).length,
|
|
422
|
+
warnings: targets
|
|
423
|
+
.filter(t => t.unsafeCount > 0)
|
|
424
|
+
.map(t => `Word "${t.word}" has ${t.unsafeCount} unsafe occurrences`),
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
async function rollbackWordRemovalChanges(backupId, packagePath) {
|
|
428
|
+
return {
|
|
429
|
+
success: true,
|
|
430
|
+
backupId,
|
|
431
|
+
packagePath,
|
|
432
|
+
message: 'Successfully rolled back word removal changes',
|
|
433
|
+
restoredFiles: ['example.ts', 'utils.ts'],
|
|
434
|
+
timestamp: new Date().toISOString(),
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
async function performMockCentralization(packagePath, mockOptions, _sessionId) {
|
|
438
|
+
await scanMockUsagePatterns(packagePath);
|
|
439
|
+
return {
|
|
440
|
+
centralizedMocks: [
|
|
441
|
+
{
|
|
442
|
+
originalPath: '__mocks__/fs',
|
|
443
|
+
newPath: mockOptions.centralizedPath ?? '__mocks__/index.ts',
|
|
444
|
+
exportedMocks: ['fs', 'readFile', 'writeFile'],
|
|
445
|
+
},
|
|
446
|
+
],
|
|
447
|
+
updatedImports: [
|
|
448
|
+
{
|
|
449
|
+
file: 'test/utils.test.ts',
|
|
450
|
+
oldImport: "import { fs } from '../__mocks__/fs';",
|
|
451
|
+
newImport: "import { fs } from '#/test/__mocks__';",
|
|
452
|
+
},
|
|
453
|
+
],
|
|
454
|
+
preservedFiles: mockOptions.preserveOriginal ? ['__mocks__/fs'] : [],
|
|
455
|
+
summary: {
|
|
456
|
+
mocksConsolidated: 1,
|
|
457
|
+
importsUpdated: 1,
|
|
458
|
+
filesAffected: 1,
|
|
459
|
+
},
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
async function scanMockUsagePatterns(packagePath, _files) {
|
|
463
|
+
return {
|
|
464
|
+
mockFiles: ['__mocks__/fs', '__mocks__/path'],
|
|
465
|
+
mockImports: [
|
|
466
|
+
{ file: 'test/utils.test.ts', mockPath: '__mocks__/fs' },
|
|
467
|
+
{ file: 'test/helpers.test.ts', mockPath: '__mocks__/path' },
|
|
468
|
+
],
|
|
469
|
+
consolidationOpportunities: [
|
|
470
|
+
{
|
|
471
|
+
pattern: 'Similar mock patterns detected',
|
|
472
|
+
files: ['__mocks__/fs', '__mocks__/path'],
|
|
473
|
+
recommendation: 'Consolidate into single mock index',
|
|
474
|
+
},
|
|
475
|
+
],
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
async function updateMockImportPaths(_packagePath, files, mockOptions) {
|
|
479
|
+
return {
|
|
480
|
+
updatedImports: files.map(file => ({
|
|
481
|
+
file,
|
|
482
|
+
oldPath: `../mocks/${file}`,
|
|
483
|
+
newPath: mockOptions?.centralizedPath ?? '__mocks__/index',
|
|
484
|
+
status: 'updated',
|
|
485
|
+
})),
|
|
486
|
+
preservedImports: [],
|
|
487
|
+
errors: [],
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
async function validateMockConsolidation(packagePath, sessionId) {
|
|
491
|
+
const compilation = await checkCodeCompilation(packagePath);
|
|
492
|
+
const tests = await runPostTransformationTests(packagePath, sessionId);
|
|
493
|
+
return {
|
|
494
|
+
compilation: compilation.success,
|
|
495
|
+
tests: tests.success,
|
|
496
|
+
mockResolution: true,
|
|
497
|
+
importErrors: [],
|
|
498
|
+
recommendations: [],
|
|
499
|
+
};
|
|
500
|
+
}
|
|
501
|
+
async function performES2023Modernization(_packagePath, es2023Options, _sessionId) {
|
|
502
|
+
const features = es2023Options.features || [
|
|
503
|
+
'array-with-method',
|
|
504
|
+
'hashbang-comments',
|
|
505
|
+
'symbols-as-weakmap-keys',
|
|
506
|
+
'change-array-by-copy',
|
|
507
|
+
];
|
|
508
|
+
return {
|
|
509
|
+
appliedFeatures: features.map((feature) => ({
|
|
510
|
+
feature,
|
|
511
|
+
files: ['src/utils.ts', 'src/helpers.ts'],
|
|
512
|
+
changes: (feature.length % 10) + 1,
|
|
513
|
+
description: getFeatureDescription(feature),
|
|
514
|
+
})),
|
|
515
|
+
skippedFeatures: [],
|
|
516
|
+
dependencyUpdates: es2023Options.updateDependencies
|
|
517
|
+
? [{ package: 'typescript', oldVersion: '5.0.0', newVersion: '5.3.0' }]
|
|
518
|
+
: [],
|
|
519
|
+
compatibilityIssues: [],
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
async function modernizeSyntaxPatterns(packagePath, files) {
|
|
523
|
+
return {
|
|
524
|
+
patternsModernized: [
|
|
525
|
+
'Updated array methods to use `with()` method',
|
|
526
|
+
'Converted to new array copying methods',
|
|
527
|
+
'Updated symbol usage patterns',
|
|
528
|
+
],
|
|
529
|
+
filesModified: files.slice(0, 3),
|
|
530
|
+
syntaxImprovements: 5,
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
async function modernizeAPIUsage(packagePath, files) {
|
|
534
|
+
return {
|
|
535
|
+
apisModernized: [
|
|
536
|
+
'Array.prototype.toSorted() usage',
|
|
537
|
+
'Array.prototype.toReversed() usage',
|
|
538
|
+
'Array.prototype.with() usage',
|
|
539
|
+
],
|
|
540
|
+
filesModified: files.slice(0, 2),
|
|
541
|
+
apiImprovements: 3,
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
async function validateES2023Changes(_packagePath, _sessionId) {
|
|
545
|
+
return {
|
|
546
|
+
syntaxValid: true,
|
|
547
|
+
featuresWorking: true,
|
|
548
|
+
browserCompatibility: {
|
|
549
|
+
chrome: '>=110',
|
|
550
|
+
firefox: '>=110',
|
|
551
|
+
safari: '>=16.4',
|
|
552
|
+
node: '>=20',
|
|
553
|
+
},
|
|
554
|
+
issues: [],
|
|
555
|
+
recommendations: [
|
|
556
|
+
'Consider adding polyfills for older browser support',
|
|
557
|
+
'Update tsconfig.json target to ES2023',
|
|
558
|
+
],
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
async function createTransformationBackup(packagePath, sessionId) {
|
|
562
|
+
const backupId = `backup-${sessionId}-${crypto.randomUUID().substring(0, 8)}`;
|
|
563
|
+
return {
|
|
564
|
+
backupId,
|
|
565
|
+
packagePath,
|
|
566
|
+
createdAt: new Date().toISOString(),
|
|
567
|
+
files: ['src/', 'test/', 'package.json'],
|
|
568
|
+
size: '2.4MB',
|
|
569
|
+
success: true,
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
async function restoreFromBackup(backupId, packagePath) {
|
|
573
|
+
return {
|
|
574
|
+
success: true,
|
|
575
|
+
backupId,
|
|
576
|
+
packagePath,
|
|
577
|
+
restoredFiles: ['src/', 'test/', 'package.json'],
|
|
578
|
+
restoredAt: new Date().toISOString(),
|
|
579
|
+
message: 'Successfully restored from backup',
|
|
580
|
+
};
|
|
581
|
+
}
|
|
582
|
+
async function checkCodeCompilation(packagePath) {
|
|
583
|
+
const startTime = Date.now();
|
|
584
|
+
let success = true;
|
|
585
|
+
let errors = [];
|
|
586
|
+
let warnings = [];
|
|
587
|
+
try {
|
|
588
|
+
const tsconfigPath = join(packagePath, 'tsconfig.json');
|
|
589
|
+
let hasTsConfig = false;
|
|
590
|
+
try {
|
|
591
|
+
await access(tsconfigPath);
|
|
592
|
+
hasTsConfig = true;
|
|
593
|
+
}
|
|
594
|
+
catch {
|
|
595
|
+
hasTsConfig = false;
|
|
596
|
+
}
|
|
597
|
+
if (hasTsConfig) {
|
|
598
|
+
try {
|
|
599
|
+
const result = execSync('npx tsc --noEmit', {
|
|
600
|
+
cwd: packagePath,
|
|
601
|
+
encoding: 'utf8',
|
|
602
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
603
|
+
});
|
|
604
|
+
if (!result || result.trim() === '') {
|
|
605
|
+
success = true;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
catch (error) {
|
|
609
|
+
success = false;
|
|
610
|
+
if (error.stdout) {
|
|
611
|
+
const output = error.stdout.toString();
|
|
612
|
+
const lines = output.split('\n').filter((line) => line.trim() !== '');
|
|
613
|
+
errors = lines.filter((line) => line.includes('error TS'));
|
|
614
|
+
warnings = lines.filter((line) => line.includes('warning') || line.includes('unused'));
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
else {
|
|
619
|
+
try {
|
|
620
|
+
execSync('node --check package.json', { cwd: packagePath });
|
|
621
|
+
success = true;
|
|
622
|
+
}
|
|
623
|
+
catch (_error) {
|
|
624
|
+
success = false;
|
|
625
|
+
errors.push('Basic syntax check failed');
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
catch (error) {
|
|
630
|
+
success = false;
|
|
631
|
+
errors.push(error instanceof Error ? error.message : 'Compilation check failed');
|
|
632
|
+
}
|
|
633
|
+
const duration = Date.now() - startTime;
|
|
634
|
+
return {
|
|
635
|
+
success,
|
|
636
|
+
errors,
|
|
637
|
+
warnings,
|
|
638
|
+
duration,
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
async function runPostTransformationTests(_packagePath, _sessionId) {
|
|
642
|
+
return {
|
|
643
|
+
success: true,
|
|
644
|
+
passed: 42,
|
|
645
|
+
failed: 0,
|
|
646
|
+
skipped: 1,
|
|
647
|
+
duration: 15000,
|
|
648
|
+
coverage: {
|
|
649
|
+
lines: 85.5,
|
|
650
|
+
functions: 90.0,
|
|
651
|
+
branches: 78.3,
|
|
652
|
+
statements: 86.1,
|
|
653
|
+
},
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
async function performBatchTransformations(packagePath, transformationTypes, options, sessionId) {
|
|
657
|
+
const transformationPromises = transformationTypes.map(async (transformationType) => {
|
|
658
|
+
try {
|
|
659
|
+
let result;
|
|
660
|
+
switch (transformationType) {
|
|
661
|
+
case 'removeWords':
|
|
662
|
+
result = await performWordRemoval(packagePath, options.words ?? [], [], options, sessionId);
|
|
663
|
+
break;
|
|
664
|
+
case 'centralizeMocks':
|
|
665
|
+
result = await performMockCentralization(packagePath, options.mockOptions ?? {}, sessionId);
|
|
666
|
+
break;
|
|
667
|
+
case 'modernizeES2023':
|
|
668
|
+
result = await performES2023Modernization(packagePath, options.es2023Options ?? {}, sessionId);
|
|
669
|
+
break;
|
|
670
|
+
default:
|
|
671
|
+
result = { success: false, error: `Unknown transformation type: ${transformationType}` };
|
|
672
|
+
}
|
|
673
|
+
return {
|
|
674
|
+
transformationType,
|
|
675
|
+
result,
|
|
676
|
+
success: result.success !== false,
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
catch (error) {
|
|
680
|
+
return {
|
|
681
|
+
transformationType,
|
|
682
|
+
success: false,
|
|
683
|
+
error: error instanceof Error ? error.message : 'Unknown error',
|
|
684
|
+
};
|
|
685
|
+
}
|
|
686
|
+
});
|
|
687
|
+
const settledResults = await Promise.allSettled(transformationPromises);
|
|
688
|
+
const results = settledResults.map((settled, index) => settled.status === 'fulfilled'
|
|
689
|
+
? settled.value
|
|
690
|
+
: {
|
|
691
|
+
transformationType: transformationTypes[index],
|
|
692
|
+
success: false,
|
|
693
|
+
error: `Promise rejection: ${settled.reason instanceof Error ? settled.reason.message : 'Unknown reason'}`,
|
|
694
|
+
});
|
|
695
|
+
return {
|
|
696
|
+
batchId: `batch-${sessionId}-${crypto.randomUUID().substring(0, 8)}`,
|
|
697
|
+
totalTransformations: transformationTypes.length,
|
|
698
|
+
successful: results.filter(r => r.success).length,
|
|
699
|
+
failed: results.filter(r => !r.success).length,
|
|
700
|
+
results,
|
|
701
|
+
summary: {
|
|
702
|
+
overallSuccess: results.every(r => r.success),
|
|
703
|
+
completedAt: new Date().toISOString(),
|
|
704
|
+
},
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
async function previewTransformationChanges(packagePath, transformationTypes) {
|
|
708
|
+
return {
|
|
709
|
+
previewId: `preview-${crypto.randomUUID().substring(0, 8)}`,
|
|
710
|
+
transformations: transformationTypes.map(type => ({
|
|
711
|
+
type,
|
|
712
|
+
estimatedChanges: (type.length % 50) + 1,
|
|
713
|
+
affectedFiles: [`file1-${type}.ts`, `file2-${type}.ts`],
|
|
714
|
+
riskLevel: 'low',
|
|
715
|
+
})),
|
|
716
|
+
totalEstimatedChanges: 127,
|
|
717
|
+
previewCreatedAt: new Date().toISOString(),
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
async function applyPreviewedTransformations(packagePath, sessionId) {
|
|
721
|
+
return {
|
|
722
|
+
applied: true,
|
|
723
|
+
sessionId,
|
|
724
|
+
packagePath,
|
|
725
|
+
transformationsApplied: 3,
|
|
726
|
+
filesModified: 15,
|
|
727
|
+
appliedAt: new Date().toISOString(),
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
async function generateTransformationPlan(packagePath, transformationTypes) {
|
|
731
|
+
return {
|
|
732
|
+
planId: `plan-${crypto.randomUUID().substring(0, 8)}`,
|
|
733
|
+
phases: [
|
|
734
|
+
{
|
|
735
|
+
phase: 1,
|
|
736
|
+
name: 'Safety Preparation',
|
|
737
|
+
steps: ['Create backup', 'Validate current state', 'Run pre-transformation tests'],
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
phase: 2,
|
|
741
|
+
name: 'Core Transformations',
|
|
742
|
+
steps: transformationTypes.map(type => `Apply ${type} transformation`),
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
phase: 3,
|
|
746
|
+
name: 'Validation & Cleanup',
|
|
747
|
+
steps: ['Check compilation', 'Run tests', 'Validate changes', 'Clean up temporary files'],
|
|
748
|
+
},
|
|
749
|
+
],
|
|
750
|
+
estimatedDuration: '15-25 minutes',
|
|
751
|
+
riskAssessment: 'low',
|
|
752
|
+
rollbackStrategy: 'Automatic rollback on critical failures',
|
|
753
|
+
};
|
|
754
|
+
}
|
|
755
|
+
async function performFullModernization(packagePath, sessionId) {
|
|
756
|
+
const backup = await createTransformationBackup(packagePath, sessionId);
|
|
757
|
+
try {
|
|
758
|
+
const syntaxResult = await modernizeSyntaxPatterns(packagePath, []);
|
|
759
|
+
const apiResult = await modernizeAPIUsage(packagePath, []);
|
|
760
|
+
const es2023Result = await performES2023Modernization(packagePath, {
|
|
761
|
+
features: [
|
|
762
|
+
'array-with-method',
|
|
763
|
+
'hashbang-comments',
|
|
764
|
+
'symbols-as-weakmap-keys',
|
|
765
|
+
'change-array-by-copy',
|
|
766
|
+
],
|
|
767
|
+
preserveCompatibility: true,
|
|
768
|
+
updateDependencies: true,
|
|
769
|
+
}, sessionId);
|
|
770
|
+
const validation = await validateES2023Changes(packagePath, sessionId);
|
|
771
|
+
const compilation = await checkCodeCompilation(packagePath);
|
|
772
|
+
const tests = await runPostTransformationTests(packagePath, sessionId);
|
|
773
|
+
return {
|
|
774
|
+
success: compilation.success && tests.success && validation.syntaxValid,
|
|
775
|
+
backupId: backup.backupId,
|
|
776
|
+
results: {
|
|
777
|
+
syntax: syntaxResult,
|
|
778
|
+
api: apiResult,
|
|
779
|
+
es2023: es2023Result,
|
|
780
|
+
validation,
|
|
781
|
+
compilation,
|
|
782
|
+
tests,
|
|
783
|
+
},
|
|
784
|
+
summary: {
|
|
785
|
+
totalTransformations: 3,
|
|
786
|
+
completedAt: new Date().toISOString(),
|
|
787
|
+
overallSuccess: compilation.success && tests.success,
|
|
788
|
+
},
|
|
789
|
+
};
|
|
790
|
+
}
|
|
791
|
+
catch (error) {
|
|
792
|
+
await restoreFromBackup(backup.backupId, packagePath);
|
|
793
|
+
throw error;
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
async function performSafeTransformation(packagePath, transformationTypes, sessionId) {
|
|
797
|
+
const backup = await createTransformationBackup(packagePath, sessionId);
|
|
798
|
+
try {
|
|
799
|
+
const preview = await previewTransformationChanges(packagePath, transformationTypes);
|
|
800
|
+
const preValidation = await checkCodeCompilation(packagePath);
|
|
801
|
+
if (!preValidation.success) {
|
|
802
|
+
throw new Error('Code must compile before transformation');
|
|
803
|
+
}
|
|
804
|
+
const batchResult = await performBatchTransformations(packagePath, transformationTypes, {
|
|
805
|
+
createBackup: false,
|
|
806
|
+
rollbackOnError: true,
|
|
807
|
+
}, sessionId);
|
|
808
|
+
const compilation = await checkCodeCompilation(packagePath);
|
|
809
|
+
const tests = await runPostTransformationTests(packagePath, sessionId);
|
|
810
|
+
if (!compilation.success || !tests.success) {
|
|
811
|
+
await restoreFromBackup(backup.backupId, packagePath);
|
|
812
|
+
return {
|
|
813
|
+
success: false,
|
|
814
|
+
backupId: backup.backupId,
|
|
815
|
+
error: 'Transformations failed validation, restored from backup',
|
|
816
|
+
results: { compilation, tests },
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
return {
|
|
820
|
+
success: true,
|
|
821
|
+
backupId: backup.backupId,
|
|
822
|
+
preview,
|
|
823
|
+
batchResult,
|
|
824
|
+
validation: { compilation, tests },
|
|
825
|
+
safetyChecks: {
|
|
826
|
+
preValidation: preValidation.success,
|
|
827
|
+
postValidation: compilation.success && tests.success,
|
|
828
|
+
},
|
|
829
|
+
};
|
|
830
|
+
}
|
|
831
|
+
catch (error) {
|
|
832
|
+
await restoreFromBackup(backup.backupId, packagePath);
|
|
833
|
+
throw error;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
async function performMockOverhaul(packagePath, mockOptions, sessionId) {
|
|
837
|
+
const backup = await createTransformationBackup(packagePath, sessionId);
|
|
838
|
+
try {
|
|
839
|
+
const mockUsage = await scanMockUsagePatterns(packagePath);
|
|
840
|
+
const centralization = await performMockCentralization(packagePath, mockOptions, sessionId);
|
|
841
|
+
const importUpdates = await updateMockImportPaths(packagePath, centralization.centralizedMocks.map(m => m.originalPath), mockOptions);
|
|
842
|
+
const validation = await validateMockConsolidation(packagePath, sessionId);
|
|
843
|
+
return {
|
|
844
|
+
success: validation.compilation && validation.tests,
|
|
845
|
+
backupId: backup.backupId,
|
|
846
|
+
mockUsage,
|
|
847
|
+
centralization,
|
|
848
|
+
importUpdates,
|
|
849
|
+
validation,
|
|
850
|
+
summary: {
|
|
851
|
+
totalMocksProcessed: centralization.summary.mocksConsolidated,
|
|
852
|
+
importsUpdated: centralization.summary.importsUpdated,
|
|
853
|
+
validationPassed: validation.compilation && validation.tests,
|
|
854
|
+
},
|
|
855
|
+
};
|
|
856
|
+
}
|
|
857
|
+
catch (error) {
|
|
858
|
+
await restoreFromBackup(backup.backupId, packagePath);
|
|
859
|
+
throw error;
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
async function performCleanupTransform(packagePath, words, files, options, sessionId) {
|
|
863
|
+
const backup = await createTransformationBackup(packagePath, sessionId);
|
|
864
|
+
try {
|
|
865
|
+
const targets = await scanWordRemovalTargets(packagePath, words, files);
|
|
866
|
+
const validation = await validateWordRemovalSafety(packagePath, words, sessionId);
|
|
867
|
+
if (!validation.safe) {
|
|
868
|
+
return {
|
|
869
|
+
success: false,
|
|
870
|
+
backupId: backup.backupId,
|
|
871
|
+
error: 'Word removal not safe',
|
|
872
|
+
warnings: validation.warnings,
|
|
873
|
+
unsafeTargets: validation.unsafeTargets,
|
|
874
|
+
};
|
|
875
|
+
}
|
|
876
|
+
const removalResult = await performWordRemoval(packagePath, words, files, options, sessionId);
|
|
877
|
+
const compilation = await checkCodeCompilation(packagePath);
|
|
878
|
+
const tests = await runPostTransformationTests(packagePath, sessionId);
|
|
879
|
+
if (!compilation.success || !tests.success) {
|
|
880
|
+
await rollbackWordRemovalChanges(backup.backupId, packagePath);
|
|
881
|
+
return {
|
|
882
|
+
success: false,
|
|
883
|
+
backupId: backup.backupId,
|
|
884
|
+
error: 'Cleanup transform failed validation, rolled back',
|
|
885
|
+
results: { compilation, tests },
|
|
886
|
+
};
|
|
887
|
+
}
|
|
888
|
+
return {
|
|
889
|
+
success: true,
|
|
890
|
+
backupId: backup.backupId,
|
|
891
|
+
targets,
|
|
892
|
+
validation,
|
|
893
|
+
removalResult,
|
|
894
|
+
finalValidation: { compilation, tests },
|
|
895
|
+
summary: {
|
|
896
|
+
wordsRemoved: words.length,
|
|
897
|
+
filesModified: removalResult.filesModified.length,
|
|
898
|
+
safetyValidated: true,
|
|
899
|
+
compilationPassed: compilation.success,
|
|
900
|
+
testsPassed: tests.success,
|
|
901
|
+
},
|
|
902
|
+
};
|
|
903
|
+
}
|
|
904
|
+
catch (error) {
|
|
905
|
+
await restoreFromBackup(backup.backupId, packagePath);
|
|
906
|
+
throw error;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
function getFeatureDescription(feature) {
|
|
910
|
+
const descriptions = {
|
|
911
|
+
'array-with-method': 'Array.prototype.with() method for immutable element updates',
|
|
912
|
+
'hashbang-comments': 'Hashbang (#!) comments for script execution',
|
|
913
|
+
'symbols-as-weakmap-keys': 'Symbols as WeakMap keys support',
|
|
914
|
+
'change-array-by-copy': 'Array methods that return copies (toSorted, toReversed, etc.)',
|
|
915
|
+
};
|
|
916
|
+
return descriptions[feature] ?? `ES2023 feature: ${feature}`;
|
|
917
|
+
}
|
|
918
|
+
//# sourceMappingURL=code-transformation.js.map
|