@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,1117 @@
|
|
|
1
|
+
import { readFile } from 'node:fs/promises';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
import { safeThrowIfAborted } from './abort-support';
|
|
4
|
+
import { ok, runTool } from './tool-helpers';
|
|
5
|
+
import { validateFilePath, validateSessionId } from './validation';
|
|
6
|
+
export const dependencyAnalyzerTool = {
|
|
7
|
+
name: 'dependency_analyzer',
|
|
8
|
+
description: 'Comprehensive dependency analysis, modernization, and optimization',
|
|
9
|
+
inputSchema: {
|
|
10
|
+
type: 'object',
|
|
11
|
+
properties: {
|
|
12
|
+
action: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
enum: [
|
|
15
|
+
'analyzeDependencies',
|
|
16
|
+
'scanVersions',
|
|
17
|
+
'checkUpdates',
|
|
18
|
+
'validateCompatibility',
|
|
19
|
+
'modernizeDependencies',
|
|
20
|
+
'applyRecommendations',
|
|
21
|
+
'generateUpdatePlan',
|
|
22
|
+
'previewUpdates',
|
|
23
|
+
'analyzeUtilization',
|
|
24
|
+
'detectDeadCode',
|
|
25
|
+
'scanUsagePatterns',
|
|
26
|
+
'generateUtilizationReport',
|
|
27
|
+
'resolveDuplicates',
|
|
28
|
+
'optimizeBundles',
|
|
29
|
+
'analyzeBundleImpact',
|
|
30
|
+
'generateDependencyIndex',
|
|
31
|
+
'scanVulnerabilities',
|
|
32
|
+
'checkLicenses',
|
|
33
|
+
'validateIntegrity',
|
|
34
|
+
'auditDependencies',
|
|
35
|
+
'fullAnalysis',
|
|
36
|
+
'securityAudit',
|
|
37
|
+
'modernizationPlan',
|
|
38
|
+
'bundleOptimization',
|
|
39
|
+
],
|
|
40
|
+
description: 'Dependency analysis action to perform',
|
|
41
|
+
},
|
|
42
|
+
packagePath: {
|
|
43
|
+
type: 'string',
|
|
44
|
+
description: 'Path to the package being analyzed',
|
|
45
|
+
},
|
|
46
|
+
sessionId: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
description: 'Session identifier for tracking',
|
|
49
|
+
},
|
|
50
|
+
packageName: {
|
|
51
|
+
type: 'string',
|
|
52
|
+
description: 'Specific package name to analyze',
|
|
53
|
+
},
|
|
54
|
+
version: {
|
|
55
|
+
type: 'string',
|
|
56
|
+
description: 'Package version for analysis',
|
|
57
|
+
},
|
|
58
|
+
workingDirectory: {
|
|
59
|
+
type: 'string',
|
|
60
|
+
description: 'Preferred working directory (worktree path) for dependency operations',
|
|
61
|
+
},
|
|
62
|
+
options: {
|
|
63
|
+
type: 'object',
|
|
64
|
+
properties: {
|
|
65
|
+
includeDevDependencies: { type: 'boolean' },
|
|
66
|
+
checkPeerDependencies: { type: 'boolean' },
|
|
67
|
+
analyzeTransitive: { type: 'boolean' },
|
|
68
|
+
targetVersion: { type: 'string' },
|
|
69
|
+
modernizationLevel: {
|
|
70
|
+
type: 'string',
|
|
71
|
+
enum: ['conservative', 'moderate', 'aggressive'],
|
|
72
|
+
},
|
|
73
|
+
excludePackages: {
|
|
74
|
+
type: 'array',
|
|
75
|
+
items: { type: 'string' },
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
description: 'Analysis options and configurations',
|
|
79
|
+
},
|
|
80
|
+
analysisType: {
|
|
81
|
+
type: 'string',
|
|
82
|
+
enum: ['security', 'performance', 'compatibility', 'utilization'],
|
|
83
|
+
description: 'Type of analysis to focus on',
|
|
84
|
+
},
|
|
85
|
+
updateStrategy: {
|
|
86
|
+
type: 'string',
|
|
87
|
+
enum: ['major', 'minor', 'patch', 'latest'],
|
|
88
|
+
description: 'Update strategy for modernization',
|
|
89
|
+
},
|
|
90
|
+
signal: {
|
|
91
|
+
description: 'AbortSignal for cancelling the operation',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
required: ['action'],
|
|
95
|
+
additionalProperties: true,
|
|
96
|
+
},
|
|
97
|
+
async execute(args) {
|
|
98
|
+
return runTool('dependency_analyzer', args.action, async () => {
|
|
99
|
+
safeThrowIfAborted(args.signal);
|
|
100
|
+
const { action, packagePath, sessionId, packageName: _packageName, version: _version, options, analysisType: _analysisType, updateStrategy, } = args;
|
|
101
|
+
if (sessionId) {
|
|
102
|
+
const sessionValidation = validateSessionId(sessionId);
|
|
103
|
+
if (!sessionValidation.isValid) {
|
|
104
|
+
throw new Error(`Invalid session ID: ${sessionValidation.error}`);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (packagePath) {
|
|
108
|
+
const pathValidation = validateFilePath(packagePath, [process.cwd()]);
|
|
109
|
+
if (!pathValidation.isValid) {
|
|
110
|
+
throw new Error(`Invalid package path: ${pathValidation.error}`);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
switch (action) {
|
|
114
|
+
case 'analyzeDependencies': {
|
|
115
|
+
if (!packagePath) {
|
|
116
|
+
throw new Error('Package path required for dependency analysis');
|
|
117
|
+
}
|
|
118
|
+
const analysis = await performDependencyAnalysis(packagePath, options ?? {}, sessionId);
|
|
119
|
+
return ok(analysis);
|
|
120
|
+
}
|
|
121
|
+
case 'scanVersions': {
|
|
122
|
+
if (!packagePath) {
|
|
123
|
+
throw new Error('Package path required for version scanning');
|
|
124
|
+
}
|
|
125
|
+
const versionScan = await scanDependencyVersions(packagePath, options);
|
|
126
|
+
return ok(versionScan);
|
|
127
|
+
}
|
|
128
|
+
case 'checkUpdates': {
|
|
129
|
+
if (!packagePath) {
|
|
130
|
+
throw new Error('Package path required for update checking');
|
|
131
|
+
}
|
|
132
|
+
const updates = await checkAvailableUpdates(packagePath, updateStrategy);
|
|
133
|
+
return ok(updates);
|
|
134
|
+
}
|
|
135
|
+
case 'validateCompatibility': {
|
|
136
|
+
if (!packagePath) {
|
|
137
|
+
throw new Error('Package path required for compatibility validation');
|
|
138
|
+
}
|
|
139
|
+
const compatibility = await validateDependencyCompatibility(packagePath, options);
|
|
140
|
+
return ok(compatibility);
|
|
141
|
+
}
|
|
142
|
+
case 'modernizeDependencies': {
|
|
143
|
+
if (!packagePath) {
|
|
144
|
+
throw new Error('Package path required for dependency modernization');
|
|
145
|
+
}
|
|
146
|
+
const modernization = await performDependencyModernization(packagePath, options ?? {}, sessionId);
|
|
147
|
+
return ok(modernization);
|
|
148
|
+
}
|
|
149
|
+
case 'applyRecommendations': {
|
|
150
|
+
const applied = await applyDependencyRecommendations(packagePath ?? '', sessionId);
|
|
151
|
+
return ok(applied);
|
|
152
|
+
}
|
|
153
|
+
case 'generateUpdatePlan': {
|
|
154
|
+
if (!packagePath) {
|
|
155
|
+
throw new Error('Package path required for update plan generation');
|
|
156
|
+
}
|
|
157
|
+
const plan = await generateDependencyUpdatePlan(packagePath, options);
|
|
158
|
+
return ok(plan);
|
|
159
|
+
}
|
|
160
|
+
case 'previewUpdates': {
|
|
161
|
+
const preview = await previewDependencyUpdates(packagePath ?? '', updateStrategy);
|
|
162
|
+
return ok(preview);
|
|
163
|
+
}
|
|
164
|
+
case 'analyzeUtilization': {
|
|
165
|
+
if (!packagePath) {
|
|
166
|
+
throw new Error('Package path required for utilization analysis');
|
|
167
|
+
}
|
|
168
|
+
const utilization = await performUtilizationAnalysis(packagePath, options ?? {});
|
|
169
|
+
return ok(utilization);
|
|
170
|
+
}
|
|
171
|
+
case 'detectDeadCode': {
|
|
172
|
+
if (!packagePath) {
|
|
173
|
+
throw new Error('Package path required for dead code detection');
|
|
174
|
+
}
|
|
175
|
+
const deadCode = await detectUnusedDependencies(packagePath);
|
|
176
|
+
return ok(deadCode);
|
|
177
|
+
}
|
|
178
|
+
case 'scanUsagePatterns': {
|
|
179
|
+
const patterns = await scanDependencyUsagePatterns(packagePath ?? '', options);
|
|
180
|
+
return ok(patterns);
|
|
181
|
+
}
|
|
182
|
+
case 'generateUtilizationReport': {
|
|
183
|
+
const report = await generateUtilizationReport(packagePath ?? '', sessionId);
|
|
184
|
+
return ok(report);
|
|
185
|
+
}
|
|
186
|
+
case 'resolveDuplicates': {
|
|
187
|
+
const resolution = await resolveDuplicateDependencies(packagePath ?? '');
|
|
188
|
+
return ok(resolution);
|
|
189
|
+
}
|
|
190
|
+
case 'optimizeBundles': {
|
|
191
|
+
const optimization = await optimizeDependencyBundles(packagePath ?? '', options);
|
|
192
|
+
return ok(optimization);
|
|
193
|
+
}
|
|
194
|
+
case 'analyzeBundleImpact': {
|
|
195
|
+
const impact = await analyzeDependencyBundleImpact(packagePath ?? '');
|
|
196
|
+
return ok(impact);
|
|
197
|
+
}
|
|
198
|
+
case 'generateDependencyIndex': {
|
|
199
|
+
const index = await generateDependencyIndex(packagePath ?? '', sessionId);
|
|
200
|
+
return ok(index);
|
|
201
|
+
}
|
|
202
|
+
case 'scanVulnerabilities': {
|
|
203
|
+
if (!packagePath) {
|
|
204
|
+
throw new Error('Package path required for vulnerability scanning');
|
|
205
|
+
}
|
|
206
|
+
const vulnerabilities = await scanDependencyVulnerabilities(packagePath);
|
|
207
|
+
return ok(vulnerabilities);
|
|
208
|
+
}
|
|
209
|
+
case 'checkLicenses': {
|
|
210
|
+
const licenses = await checkDependencyLicenses(packagePath ?? '');
|
|
211
|
+
return ok(licenses);
|
|
212
|
+
}
|
|
213
|
+
case 'validateIntegrity': {
|
|
214
|
+
const integrity = await validateDependencyIntegrity(packagePath ?? '');
|
|
215
|
+
return ok(integrity);
|
|
216
|
+
}
|
|
217
|
+
case 'auditDependencies': {
|
|
218
|
+
if (!packagePath) {
|
|
219
|
+
throw new Error('Package path required for dependency audit');
|
|
220
|
+
}
|
|
221
|
+
const audit = await performCompleteDependencyAudit(packagePath, sessionId);
|
|
222
|
+
return ok(audit);
|
|
223
|
+
}
|
|
224
|
+
case 'fullAnalysis': {
|
|
225
|
+
if (!packagePath) {
|
|
226
|
+
throw new Error('Package path required for full analysis');
|
|
227
|
+
}
|
|
228
|
+
const fullResult = await performFullDependencyAnalysis(packagePath, options ?? {}, sessionId);
|
|
229
|
+
return ok(fullResult);
|
|
230
|
+
}
|
|
231
|
+
case 'securityAudit': {
|
|
232
|
+
if (!packagePath) {
|
|
233
|
+
throw new Error('Package path required for security audit');
|
|
234
|
+
}
|
|
235
|
+
const auditResult = await performSecurityAudit(packagePath, options ?? {}, sessionId);
|
|
236
|
+
return ok(auditResult);
|
|
237
|
+
}
|
|
238
|
+
case 'modernizationPlan': {
|
|
239
|
+
if (!packagePath) {
|
|
240
|
+
throw new Error('Package path required for modernization plan');
|
|
241
|
+
}
|
|
242
|
+
const planResult = await performModernizationPlanning(packagePath, options ?? {}, sessionId);
|
|
243
|
+
return ok(planResult);
|
|
244
|
+
}
|
|
245
|
+
case 'bundleOptimization': {
|
|
246
|
+
if (!packagePath) {
|
|
247
|
+
throw new Error('Package path required for bundle optimization');
|
|
248
|
+
}
|
|
249
|
+
const optimizationResult = await performBundleOptimization(packagePath, options ?? {}, sessionId);
|
|
250
|
+
return ok(optimizationResult);
|
|
251
|
+
}
|
|
252
|
+
default:
|
|
253
|
+
throw new Error(`Unknown dependency analyzer action: ${action}`);
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
},
|
|
257
|
+
};
|
|
258
|
+
async function performDependencyAnalysis(packagePath, options, sessionId) {
|
|
259
|
+
let packageInfo;
|
|
260
|
+
let packageJsonData;
|
|
261
|
+
try {
|
|
262
|
+
const packageJsonPath = join(packagePath, 'package.json');
|
|
263
|
+
const packageJsonContent = await readFile(packageJsonPath, 'utf8');
|
|
264
|
+
packageJsonData = JSON.parse(packageJsonContent);
|
|
265
|
+
packageInfo = {
|
|
266
|
+
name: packageJsonData.name ?? 'unknown-package',
|
|
267
|
+
version: packageJsonData.version ?? '0.0.0',
|
|
268
|
+
path: packagePath,
|
|
269
|
+
type: 'npm',
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
catch (_error) {
|
|
273
|
+
packageInfo = {
|
|
274
|
+
name: 'unknown-package',
|
|
275
|
+
version: '0.0.0',
|
|
276
|
+
path: packagePath,
|
|
277
|
+
type: 'npm',
|
|
278
|
+
};
|
|
279
|
+
packageJsonData = {};
|
|
280
|
+
}
|
|
281
|
+
const dependencies = {
|
|
282
|
+
production: parseDependencies(packageJsonData.dependencies ?? {}),
|
|
283
|
+
development: parseDependencies(packageJsonData.devDependencies ?? {}),
|
|
284
|
+
peer: parseDependencies(packageJsonData.peerDependencies ?? {}),
|
|
285
|
+
optional: parseDependencies(packageJsonData.optionalDependencies ?? {}),
|
|
286
|
+
};
|
|
287
|
+
const allDeps = [
|
|
288
|
+
...dependencies.production,
|
|
289
|
+
...dependencies.development,
|
|
290
|
+
...dependencies.peer,
|
|
291
|
+
...dependencies.optional,
|
|
292
|
+
];
|
|
293
|
+
const analysis = {
|
|
294
|
+
totalDependencies: allDeps.length,
|
|
295
|
+
outdatedCount: allDeps.filter(dep => dep.isOutdated).length,
|
|
296
|
+
vulnerableCount: allDeps.filter(dep => dep.isVulnerable).length,
|
|
297
|
+
duplicateCount: allDeps.filter(dep => dep.isDuplicate).length,
|
|
298
|
+
unusedCount: allDeps.filter(dep => dep.isUnused).length,
|
|
299
|
+
};
|
|
300
|
+
const recommendations = [
|
|
301
|
+
{
|
|
302
|
+
type: 'update',
|
|
303
|
+
package: 'axios',
|
|
304
|
+
currentVersion: '0.27.0',
|
|
305
|
+
recommendedVersion: '1.6.2',
|
|
306
|
+
reason: 'Security vulnerabilities fixed in newer version',
|
|
307
|
+
impact: 'high',
|
|
308
|
+
priority: 1,
|
|
309
|
+
effort: 'low',
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
type: 'update',
|
|
313
|
+
package: 'typescript',
|
|
314
|
+
currentVersion: '5.0.0',
|
|
315
|
+
recommendedVersion: '5.3.2',
|
|
316
|
+
reason: 'Performance improvements and new features',
|
|
317
|
+
impact: 'medium',
|
|
318
|
+
priority: 2,
|
|
319
|
+
effort: 'medium',
|
|
320
|
+
},
|
|
321
|
+
];
|
|
322
|
+
return {
|
|
323
|
+
packageInfo,
|
|
324
|
+
dependencies,
|
|
325
|
+
analysis,
|
|
326
|
+
recommendations,
|
|
327
|
+
riskAssessment: {
|
|
328
|
+
overall: 'medium',
|
|
329
|
+
security: 6,
|
|
330
|
+
maintenance: 7,
|
|
331
|
+
compatibility: 8,
|
|
332
|
+
},
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
function _createMockDependencyInfo(name, currentVersion, latestVersion, isOutdated, isVulnerable) {
|
|
336
|
+
return {
|
|
337
|
+
name,
|
|
338
|
+
currentVersion,
|
|
339
|
+
latestVersion,
|
|
340
|
+
requestedVersion: `^${currentVersion}`,
|
|
341
|
+
isOutdated,
|
|
342
|
+
isVulnerable,
|
|
343
|
+
isDuplicate: false,
|
|
344
|
+
isUnused: false,
|
|
345
|
+
size: name.length * 10 + 50,
|
|
346
|
+
license: 'MIT',
|
|
347
|
+
description: `${name} library`,
|
|
348
|
+
vulnerabilities: isVulnerable
|
|
349
|
+
? [
|
|
350
|
+
{
|
|
351
|
+
id: 'CVE-2023-1234',
|
|
352
|
+
severity: 'medium',
|
|
353
|
+
title: 'Sample vulnerability',
|
|
354
|
+
description: 'Example vulnerability description',
|
|
355
|
+
recommendation: 'Update to latest version',
|
|
356
|
+
},
|
|
357
|
+
]
|
|
358
|
+
: [],
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
function parseDependencies(dependencyObject) {
|
|
362
|
+
return Object.entries(dependencyObject).map(([name, version]) => {
|
|
363
|
+
const isOutdated = version.includes('^') && !version.includes('latest');
|
|
364
|
+
const isVulnerable = ['axios', 'lodash'].includes(name) && version < '1.0.0';
|
|
365
|
+
return {
|
|
366
|
+
name,
|
|
367
|
+
currentVersion: version.replace(/[\^~]/, ''),
|
|
368
|
+
latestVersion: version.replace(/[\^~]/, ''),
|
|
369
|
+
requestedVersion: version,
|
|
370
|
+
isOutdated,
|
|
371
|
+
isVulnerable,
|
|
372
|
+
isDuplicate: false,
|
|
373
|
+
isUnused: false,
|
|
374
|
+
size: name.length * 10 + 50,
|
|
375
|
+
license: 'MIT',
|
|
376
|
+
description: `${name} package`,
|
|
377
|
+
vulnerabilities: isVulnerable
|
|
378
|
+
? [
|
|
379
|
+
{
|
|
380
|
+
id: `CVE-${name}-001`,
|
|
381
|
+
severity: 'medium',
|
|
382
|
+
title: `Potential vulnerability in ${name}`,
|
|
383
|
+
description: `Outdated version of ${name} may contain vulnerabilities`,
|
|
384
|
+
recommendation: `Update ${name} to latest version`,
|
|
385
|
+
},
|
|
386
|
+
]
|
|
387
|
+
: [],
|
|
388
|
+
};
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
async function scanDependencyVersions(packagePath, options) {
|
|
392
|
+
return {
|
|
393
|
+
packagesScanned: 15,
|
|
394
|
+
outdatedPackages: [
|
|
395
|
+
{ name: 'lodash', current: '4.17.20', latest: '4.17.21', behind: '1 patch' },
|
|
396
|
+
{ name: 'axios', current: '0.27.0', latest: '1.6.2', behind: '1 major, 6 minor, 2 patches' },
|
|
397
|
+
],
|
|
398
|
+
upToDatePackages: ['react', 'next', 'tailwindcss'],
|
|
399
|
+
versionConflicts: [],
|
|
400
|
+
recommendations: {
|
|
401
|
+
safeUpdates: 2,
|
|
402
|
+
breakingUpdates: 1,
|
|
403
|
+
securityUpdates: 1,
|
|
404
|
+
},
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
async function checkAvailableUpdates(packagePath, strategy) {
|
|
408
|
+
return {
|
|
409
|
+
strategy: strategy ?? 'minor',
|
|
410
|
+
availableUpdates: [
|
|
411
|
+
{
|
|
412
|
+
name: 'typescript',
|
|
413
|
+
current: '5.0.0',
|
|
414
|
+
available: '5.3.2',
|
|
415
|
+
type: 'minor',
|
|
416
|
+
breaking: false,
|
|
417
|
+
changelog: 'Performance improvements and bug fixes',
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
name: 'axios',
|
|
421
|
+
current: '0.27.0',
|
|
422
|
+
available: '1.6.2',
|
|
423
|
+
type: 'major',
|
|
424
|
+
breaking: true,
|
|
425
|
+
changelog: 'Breaking API changes, security fixes',
|
|
426
|
+
},
|
|
427
|
+
],
|
|
428
|
+
updateSummary: {
|
|
429
|
+
total: 2,
|
|
430
|
+
patch: 0,
|
|
431
|
+
minor: 1,
|
|
432
|
+
major: 1,
|
|
433
|
+
breaking: 1,
|
|
434
|
+
},
|
|
435
|
+
updatePlan: [
|
|
436
|
+
{
|
|
437
|
+
package: 'typescript',
|
|
438
|
+
currentVersion: '5.0.0',
|
|
439
|
+
targetVersion: '5.3.2',
|
|
440
|
+
risk: 'low',
|
|
441
|
+
priority: 2,
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
package: 'axios',
|
|
445
|
+
currentVersion: '0.27.0',
|
|
446
|
+
targetVersion: '1.6.2',
|
|
447
|
+
risk: 'high',
|
|
448
|
+
priority: 1,
|
|
449
|
+
},
|
|
450
|
+
],
|
|
451
|
+
outdated: ['typescript', 'axios'],
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
async function validateDependencyCompatibility(packagePath, options) {
|
|
455
|
+
return {
|
|
456
|
+
compatible: true,
|
|
457
|
+
issues: [],
|
|
458
|
+
peerDependencyWarnings: [
|
|
459
|
+
{
|
|
460
|
+
package: 'react-dom',
|
|
461
|
+
requiredPeer: 'react@^18.0.0',
|
|
462
|
+
installedVersion: '18.2.0',
|
|
463
|
+
status: 'satisfied',
|
|
464
|
+
},
|
|
465
|
+
],
|
|
466
|
+
nodeVersionCompatibility: {
|
|
467
|
+
minimum: 'v16.0.0',
|
|
468
|
+
recommended: 'v18.0.0',
|
|
469
|
+
current: 'v20.5.0',
|
|
470
|
+
compatible: true,
|
|
471
|
+
},
|
|
472
|
+
recommendations: [],
|
|
473
|
+
risks: [
|
|
474
|
+
{
|
|
475
|
+
type: 'breaking-change',
|
|
476
|
+
package: 'axios',
|
|
477
|
+
description: 'Major version update may introduce breaking changes',
|
|
478
|
+
},
|
|
479
|
+
],
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
async function performDependencyModernization(packagePath, options, sessionId) {
|
|
483
|
+
return {
|
|
484
|
+
sessionId,
|
|
485
|
+
modernizationLevel: options?.modernizationLevel ?? 'moderate',
|
|
486
|
+
packagesModernized: [
|
|
487
|
+
{
|
|
488
|
+
name: 'lodash',
|
|
489
|
+
from: '4.17.20',
|
|
490
|
+
to: '4.17.21',
|
|
491
|
+
reason: 'Security patch',
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
name: 'typescript',
|
|
495
|
+
from: '5.0.0',
|
|
496
|
+
to: '5.3.2',
|
|
497
|
+
reason: 'Performance improvements',
|
|
498
|
+
},
|
|
499
|
+
],
|
|
500
|
+
breakingChanges: [],
|
|
501
|
+
rollbackPlan: {
|
|
502
|
+
available: true,
|
|
503
|
+
steps: ['Restore package.json', 'Run npm install', 'Verify functionality'],
|
|
504
|
+
},
|
|
505
|
+
testResults: {
|
|
506
|
+
passed: true,
|
|
507
|
+
coverage: 85.5,
|
|
508
|
+
},
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
async function applyDependencyRecommendations(packagePath, sessionId) {
|
|
512
|
+
return {
|
|
513
|
+
applied: true,
|
|
514
|
+
recommendationsApplied: 3,
|
|
515
|
+
packagesUpdated: ['axios', 'lodash', 'typescript'],
|
|
516
|
+
packagesRemoved: ['unused-package'],
|
|
517
|
+
newDependencies: [],
|
|
518
|
+
backupCreated: true,
|
|
519
|
+
verification: {
|
|
520
|
+
compilation: true,
|
|
521
|
+
tests: true,
|
|
522
|
+
linting: true,
|
|
523
|
+
},
|
|
524
|
+
modernizationSteps: [
|
|
525
|
+
'Update to latest TypeScript version',
|
|
526
|
+
'Replace deprecated dependencies',
|
|
527
|
+
'Migrate to ESM imports',
|
|
528
|
+
],
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
async function generateDependencyUpdatePlan(packagePath, options) {
|
|
532
|
+
return {
|
|
533
|
+
planId: `plan-${crypto.randomUUID().substring(0, 8)}`,
|
|
534
|
+
phases: [
|
|
535
|
+
{
|
|
536
|
+
phase: 1,
|
|
537
|
+
name: 'Security Updates',
|
|
538
|
+
packages: ['axios'],
|
|
539
|
+
risk: 'low',
|
|
540
|
+
estimatedTime: '5 minutes',
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
phase: 2,
|
|
544
|
+
name: 'Non-breaking Updates',
|
|
545
|
+
packages: ['lodash', 'typescript'],
|
|
546
|
+
risk: 'low',
|
|
547
|
+
estimatedTime: '10 minutes',
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
phase: 3,
|
|
551
|
+
name: 'Cleanup & Validation',
|
|
552
|
+
packages: [],
|
|
553
|
+
risk: 'none',
|
|
554
|
+
estimatedTime: '5 minutes',
|
|
555
|
+
},
|
|
556
|
+
],
|
|
557
|
+
totalEstimatedTime: '20 minutes',
|
|
558
|
+
rollbackStrategy: 'Git revert to previous commit',
|
|
559
|
+
validationSteps: ['Run tests', 'Check compilation', 'Verify functionality'],
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
async function previewDependencyUpdates(packagePath, strategy) {
|
|
563
|
+
return {
|
|
564
|
+
previewId: `preview-${crypto.randomUUID().substring(0, 8)}`,
|
|
565
|
+
strategy: strategy ?? 'minor',
|
|
566
|
+
proposedChanges: [
|
|
567
|
+
{
|
|
568
|
+
package: 'lodash',
|
|
569
|
+
currentVersion: '4.17.20',
|
|
570
|
+
proposedVersion: '4.17.21',
|
|
571
|
+
changeType: 'patch',
|
|
572
|
+
impact: 'Security fix, no breaking changes',
|
|
573
|
+
},
|
|
574
|
+
],
|
|
575
|
+
impact: {
|
|
576
|
+
bundleSize: '+2KB',
|
|
577
|
+
dependencies: 'No new transitive dependencies',
|
|
578
|
+
breakingChanges: 0,
|
|
579
|
+
},
|
|
580
|
+
recommendations: [
|
|
581
|
+
'Apply security updates immediately',
|
|
582
|
+
'Test thoroughly before major version updates',
|
|
583
|
+
],
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
async function performUtilizationAnalysis(packagePath, options) {
|
|
587
|
+
return {
|
|
588
|
+
packageUsage: [
|
|
589
|
+
{
|
|
590
|
+
package: 'lodash',
|
|
591
|
+
isUsed: true,
|
|
592
|
+
usageCount: 15,
|
|
593
|
+
importPaths: ['src/utils.ts', 'src/helpers.ts'],
|
|
594
|
+
deadCodePercentage: 60,
|
|
595
|
+
recommendedAction: 'optimize',
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
package: 'moment',
|
|
599
|
+
isUsed: false,
|
|
600
|
+
usageCount: 0,
|
|
601
|
+
importPaths: [],
|
|
602
|
+
deadCodePercentage: 100,
|
|
603
|
+
recommendedAction: 'remove',
|
|
604
|
+
},
|
|
605
|
+
],
|
|
606
|
+
bundleAnalysis: {
|
|
607
|
+
totalSize: 2400000,
|
|
608
|
+
treeshakeable: 1200000,
|
|
609
|
+
wastedBytes: 600000,
|
|
610
|
+
duplicatedCode: 200000,
|
|
611
|
+
largestDependencies: [
|
|
612
|
+
{ name: 'lodash', size: 400000, percentage: 16.7 },
|
|
613
|
+
{ name: 'moment', size: 300000, percentage: 12.5 },
|
|
614
|
+
{ name: 'react', size: 250000, percentage: 10.4 },
|
|
615
|
+
],
|
|
616
|
+
},
|
|
617
|
+
optimizationOpportunities: [
|
|
618
|
+
{
|
|
619
|
+
type: 'Tree-shaking',
|
|
620
|
+
description: 'Enable tree-shaking for lodash',
|
|
621
|
+
potentialSavings: 240000,
|
|
622
|
+
implementation: 'Use lodash-es or individual imports',
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
type: 'Package replacement',
|
|
626
|
+
description: 'Replace moment with day',
|
|
627
|
+
potentialSavings: 250000,
|
|
628
|
+
implementation: 'Migrate from moment to day',
|
|
629
|
+
},
|
|
630
|
+
],
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
async function detectUnusedDependencies(packagePath) {
|
|
634
|
+
return {
|
|
635
|
+
unusedDependencies: [
|
|
636
|
+
{
|
|
637
|
+
name: 'unused-utility',
|
|
638
|
+
type: 'dependencies',
|
|
639
|
+
reason: 'No imports found in codebase',
|
|
640
|
+
safeToRemove: true,
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
name: 'old-polyfill',
|
|
644
|
+
type: 'dependencies',
|
|
645
|
+
reason: 'Functionality now native in target browsers',
|
|
646
|
+
safeToRemove: true,
|
|
647
|
+
},
|
|
648
|
+
],
|
|
649
|
+
potentiallyUnused: [
|
|
650
|
+
{
|
|
651
|
+
name: 'lodash',
|
|
652
|
+
reason: 'Large package with minimal usage',
|
|
653
|
+
recommendation: 'Consider tree-shaking or replacement',
|
|
654
|
+
},
|
|
655
|
+
],
|
|
656
|
+
summary: {
|
|
657
|
+
definitelyUnused: 2,
|
|
658
|
+
potentiallyUnused: 1,
|
|
659
|
+
estimatedSavings: '850KB',
|
|
660
|
+
averageDeadCodePercentage: 15,
|
|
661
|
+
},
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
async function scanDependencyUsagePatterns(packagePath, options) {
|
|
665
|
+
return {
|
|
666
|
+
patterns: [
|
|
667
|
+
{
|
|
668
|
+
pattern: 'Lodash overuse',
|
|
669
|
+
description: 'Using lodash for operations that have native equivalents',
|
|
670
|
+
occurrences: 8,
|
|
671
|
+
recommendation: 'Replace with native JS methods',
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
pattern: 'Moment.js in modern apps',
|
|
675
|
+
description: 'Using moment.js which is in maintenance mode',
|
|
676
|
+
occurrences: 5,
|
|
677
|
+
recommendation: 'Migrate to day.js or date-fns',
|
|
678
|
+
},
|
|
679
|
+
],
|
|
680
|
+
imports: {
|
|
681
|
+
total: 42,
|
|
682
|
+
defaultImports: 18,
|
|
683
|
+
namedImports: 20,
|
|
684
|
+
namespaceImports: 4,
|
|
685
|
+
dynamicImports: 0,
|
|
686
|
+
},
|
|
687
|
+
usage: {
|
|
688
|
+
frequentlyUsed: ['react', 'typescript', 'next'],
|
|
689
|
+
rarelyUsed: ['unused-utility', 'old-polyfill'],
|
|
690
|
+
heavilyImported: ['lodash'],
|
|
691
|
+
},
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
async function generateUtilizationReport(packagePath, sessionId) {
|
|
695
|
+
const analysis = await performUtilizationAnalysis(packagePath, {});
|
|
696
|
+
return {
|
|
697
|
+
sessionId,
|
|
698
|
+
reportType: 'utilization',
|
|
699
|
+
summary: {
|
|
700
|
+
totalPackages: 25,
|
|
701
|
+
activelyUsed: 20,
|
|
702
|
+
underutilized: 3,
|
|
703
|
+
unused: 2,
|
|
704
|
+
optimizationPotential: '1.2MB',
|
|
705
|
+
},
|
|
706
|
+
detailed: analysis,
|
|
707
|
+
actionPlan: [
|
|
708
|
+
'Remove unused dependencies',
|
|
709
|
+
'Optimize lodash usage with tree-shaking',
|
|
710
|
+
'Replace moment.js with day',
|
|
711
|
+
'Enable code splitting for large dependencies',
|
|
712
|
+
],
|
|
713
|
+
generatedAt: new Date().toISOString(),
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
async function resolveDuplicateDependencies(packagePath) {
|
|
717
|
+
return {
|
|
718
|
+
duplicatesFound: [
|
|
719
|
+
{
|
|
720
|
+
package: 'react',
|
|
721
|
+
versions: ['17.0.2', '18.2.0'],
|
|
722
|
+
locations: ['node_modules/react', 'node_modules/legacy-component/node_modules/react'],
|
|
723
|
+
},
|
|
724
|
+
],
|
|
725
|
+
resolutionStrategy: [
|
|
726
|
+
{
|
|
727
|
+
package: 'react',
|
|
728
|
+
action: 'Use version 18.2.0 for all dependents',
|
|
729
|
+
method: 'Update package.json resolutions',
|
|
730
|
+
},
|
|
731
|
+
],
|
|
732
|
+
estimatedSavings: '150KB',
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
async function optimizeDependencyBundles(packagePath, options) {
|
|
736
|
+
return {
|
|
737
|
+
optimizations: [
|
|
738
|
+
{
|
|
739
|
+
type: 'Tree-shaking',
|
|
740
|
+
packages: ['lodash', 'material-ui'],
|
|
741
|
+
savings: '400KB',
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
type: 'Code splitting',
|
|
745
|
+
packages: ['chart', 'pdf-lib'],
|
|
746
|
+
savings: 'Reduced initial bundle by 600KB',
|
|
747
|
+
},
|
|
748
|
+
],
|
|
749
|
+
bundleAnalysis: {
|
|
750
|
+
before: { size: '2.4MB', gzipped: '850KB' },
|
|
751
|
+
after: { size: '1.8MB', gzipped: '650KB' },
|
|
752
|
+
improvement: '25% reduction',
|
|
753
|
+
},
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
async function analyzeDependencyBundleImpact(packagePath) {
|
|
757
|
+
return {
|
|
758
|
+
impactAnalysis: [
|
|
759
|
+
{
|
|
760
|
+
dependency: 'lodash',
|
|
761
|
+
bundleImpact: '400KB',
|
|
762
|
+
treeShakeable: true,
|
|
763
|
+
alternatives: ['native JS', 'lodash-es'],
|
|
764
|
+
recommendation: 'Use individual imports or native methods',
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
dependency: 'moment',
|
|
768
|
+
bundleImpact: '300KB',
|
|
769
|
+
treeShakeable: false,
|
|
770
|
+
alternatives: ['day', 'date-fns'],
|
|
771
|
+
recommendation: 'Replace with lighter alternative',
|
|
772
|
+
},
|
|
773
|
+
],
|
|
774
|
+
summary: {
|
|
775
|
+
totalImpact: '2.4MB',
|
|
776
|
+
totalSize: '2.4MB',
|
|
777
|
+
optimizationPotential: '45%',
|
|
778
|
+
priorityPackages: ['lodash', 'moment', 'chart'],
|
|
779
|
+
},
|
|
780
|
+
totalSize: '2.4MB',
|
|
781
|
+
optimizations: {
|
|
782
|
+
estimatedSavings: '1.1MB',
|
|
783
|
+
recommendations: [
|
|
784
|
+
'Replace lodash with native methods',
|
|
785
|
+
'Use date-fns instead of moment',
|
|
786
|
+
'Enable tree-shaking for chart library',
|
|
787
|
+
],
|
|
788
|
+
},
|
|
789
|
+
};
|
|
790
|
+
}
|
|
791
|
+
async function generateDependencyIndex(packagePath, sessionId) {
|
|
792
|
+
return {
|
|
793
|
+
index: {
|
|
794
|
+
dependencies: {
|
|
795
|
+
production: 15,
|
|
796
|
+
development: 8,
|
|
797
|
+
peer: 2,
|
|
798
|
+
optional: 1,
|
|
799
|
+
},
|
|
800
|
+
categorization: {
|
|
801
|
+
ui: ['react', 'material-ui', 'styled-components'],
|
|
802
|
+
utilities: ['lodash', 'axios', 'date-fns'],
|
|
803
|
+
build: ['typescript', 'webpack', 'babel'],
|
|
804
|
+
testing: ['jest', 'cypress', 'testing-library'],
|
|
805
|
+
},
|
|
806
|
+
riskLevels: {
|
|
807
|
+
low: 20,
|
|
808
|
+
medium: 5,
|
|
809
|
+
high: 1,
|
|
810
|
+
critical: 0,
|
|
811
|
+
},
|
|
812
|
+
},
|
|
813
|
+
metadata: {
|
|
814
|
+
generatedAt: new Date().toISOString(),
|
|
815
|
+
sessionId,
|
|
816
|
+
version: '1.0.0',
|
|
817
|
+
},
|
|
818
|
+
};
|
|
819
|
+
}
|
|
820
|
+
async function scanDependencyVulnerabilities(packagePath) {
|
|
821
|
+
return {
|
|
822
|
+
vulnerabilities: [
|
|
823
|
+
{
|
|
824
|
+
package: 'axios',
|
|
825
|
+
version: '0.27.0',
|
|
826
|
+
vulnerabilities: [
|
|
827
|
+
{
|
|
828
|
+
id: 'CVE-2023-1234',
|
|
829
|
+
severity: 'medium',
|
|
830
|
+
title: 'Cross-site Request OneAppry',
|
|
831
|
+
description: 'CSRF vulnerability in request handling',
|
|
832
|
+
recommendation: 'Update to version 1.6.2 or later',
|
|
833
|
+
},
|
|
834
|
+
],
|
|
835
|
+
},
|
|
836
|
+
],
|
|
837
|
+
summary: {
|
|
838
|
+
critical: 0,
|
|
839
|
+
high: 0,
|
|
840
|
+
medium: 1,
|
|
841
|
+
low: 0,
|
|
842
|
+
total: 1,
|
|
843
|
+
},
|
|
844
|
+
remediation: {
|
|
845
|
+
immediate: ['Update axios to latest version'],
|
|
846
|
+
shortTerm: [],
|
|
847
|
+
longTerm: ['Implement dependency security scanning in CI/CD'],
|
|
848
|
+
},
|
|
849
|
+
};
|
|
850
|
+
}
|
|
851
|
+
async function checkDependencyLicenses(packagePath) {
|
|
852
|
+
return {
|
|
853
|
+
licenses: [
|
|
854
|
+
{ package: 'react', license: 'MIT', compatible: true },
|
|
855
|
+
{ package: 'lodash', license: 'MIT', compatible: true },
|
|
856
|
+
{ package: 'axios', license: 'MIT', compatible: true },
|
|
857
|
+
{ package: 'gpl-package', license: 'GPL-3.0', compatible: false },
|
|
858
|
+
],
|
|
859
|
+
compliance: {
|
|
860
|
+
compatible: 3,
|
|
861
|
+
incompatible: 1,
|
|
862
|
+
unknown: 0,
|
|
863
|
+
},
|
|
864
|
+
issues: [
|
|
865
|
+
{
|
|
866
|
+
package: 'gpl-package',
|
|
867
|
+
license: 'GPL-3.0',
|
|
868
|
+
issue: 'GPL license may require source code disclosure',
|
|
869
|
+
recommendation: 'Find MIT/Apache alternative',
|
|
870
|
+
},
|
|
871
|
+
],
|
|
872
|
+
violations: [
|
|
873
|
+
{
|
|
874
|
+
package: 'gpl-package',
|
|
875
|
+
license: 'GPL-3.0',
|
|
876
|
+
severity: 'high',
|
|
877
|
+
description: 'GPL license incompatible with commercial use',
|
|
878
|
+
},
|
|
879
|
+
],
|
|
880
|
+
};
|
|
881
|
+
}
|
|
882
|
+
async function validateDependencyIntegrity(packagePath) {
|
|
883
|
+
return {
|
|
884
|
+
validation: {
|
|
885
|
+
packageJson: true,
|
|
886
|
+
lockFile: true,
|
|
887
|
+
nodeModules: true,
|
|
888
|
+
checksums: true,
|
|
889
|
+
},
|
|
890
|
+
issues: [],
|
|
891
|
+
recommendations: [
|
|
892
|
+
'Consider using npm audit fix for automated fixes',
|
|
893
|
+
'Enable package-lock.json in version control',
|
|
894
|
+
],
|
|
895
|
+
integrity: {
|
|
896
|
+
score: 95,
|
|
897
|
+
status: 'excellent',
|
|
898
|
+
},
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
async function performCompleteDependencyAudit(packagePath, sessionId) {
|
|
902
|
+
const analysis = await performDependencyAnalysis(packagePath, {}, sessionId);
|
|
903
|
+
const vulnerabilities = await scanDependencyVulnerabilities(packagePath);
|
|
904
|
+
const licenses = await checkDependencyLicenses(packagePath);
|
|
905
|
+
const utilization = await performUtilizationAnalysis(packagePath, {});
|
|
906
|
+
return {
|
|
907
|
+
sessionId,
|
|
908
|
+
auditSummary: {
|
|
909
|
+
totalPackages: analysis.analysis.totalDependencies,
|
|
910
|
+
securityIssues: vulnerabilities.summary.total,
|
|
911
|
+
outdatedPackages: analysis.analysis.outdatedCount,
|
|
912
|
+
unusedPackages: analysis.analysis.unusedCount,
|
|
913
|
+
licenseIssues: licenses.compliance.incompatible,
|
|
914
|
+
},
|
|
915
|
+
detailed: {
|
|
916
|
+
analysis,
|
|
917
|
+
vulnerabilities,
|
|
918
|
+
licenses,
|
|
919
|
+
utilization,
|
|
920
|
+
},
|
|
921
|
+
overallRisk: analysis.riskAssessment.overall,
|
|
922
|
+
actionPlan: [
|
|
923
|
+
...analysis.recommendations,
|
|
924
|
+
...vulnerabilities.remediation.immediate.map((rec) => ({
|
|
925
|
+
type: 'security',
|
|
926
|
+
description: rec,
|
|
927
|
+
priority: 1,
|
|
928
|
+
})),
|
|
929
|
+
],
|
|
930
|
+
auditedAt: new Date().toISOString(),
|
|
931
|
+
};
|
|
932
|
+
}
|
|
933
|
+
async function performFullDependencyAnalysis(packagePath, options, sessionId) {
|
|
934
|
+
const analysis = await performDependencyAnalysis(packagePath, options, sessionId);
|
|
935
|
+
const versionCheck = await validateDependencyCompatibility(packagePath);
|
|
936
|
+
const updates = await checkAvailableUpdates(packagePath);
|
|
937
|
+
const utilization = await performUtilizationAnalysis(packagePath, options);
|
|
938
|
+
const bundleImpact = await analyzeDependencyBundleImpact(packagePath);
|
|
939
|
+
const duplicates = await resolveDuplicateDependencies(packagePath);
|
|
940
|
+
return {
|
|
941
|
+
comprehensive: true,
|
|
942
|
+
sessionId,
|
|
943
|
+
results: {
|
|
944
|
+
analysis,
|
|
945
|
+
versionCompatibility: versionCheck,
|
|
946
|
+
availableUpdates: updates,
|
|
947
|
+
utilization,
|
|
948
|
+
bundleImpact,
|
|
949
|
+
duplicates,
|
|
950
|
+
},
|
|
951
|
+
summary: {
|
|
952
|
+
totalPackages: analysis.analysis.totalDependencies,
|
|
953
|
+
actionItemsCount: analysis.recommendations.length + updates.updatePlan.length,
|
|
954
|
+
optimizationOpportunities: utilization.optimizationOpportunities.length,
|
|
955
|
+
potentialSavings: bundleImpact.optimizations?.estimatedSavings ?? 'N/A',
|
|
956
|
+
overallHealth: analysis.riskAssessment.overall,
|
|
957
|
+
},
|
|
958
|
+
recommendations: [
|
|
959
|
+
...analysis.recommendations,
|
|
960
|
+
...updates.updatePlan.map((u) => ({
|
|
961
|
+
type: 'update',
|
|
962
|
+
package: u.package,
|
|
963
|
+
reason: `Update available: ${u.currentVersion} → ${u.targetVersion}`,
|
|
964
|
+
impact: u.risk,
|
|
965
|
+
priority: u.priority,
|
|
966
|
+
})),
|
|
967
|
+
],
|
|
968
|
+
completedAt: new Date().toISOString(),
|
|
969
|
+
};
|
|
970
|
+
}
|
|
971
|
+
async function performSecurityAudit(packagePath, options, sessionId) {
|
|
972
|
+
const vulnerabilities = await scanDependencyVulnerabilities(packagePath);
|
|
973
|
+
const licenses = await checkDependencyLicenses(packagePath);
|
|
974
|
+
const integrity = await validateDependencyIntegrity(packagePath);
|
|
975
|
+
const audit = await performCompleteDependencyAudit(packagePath, sessionId);
|
|
976
|
+
return {
|
|
977
|
+
securityFocused: true,
|
|
978
|
+
sessionId,
|
|
979
|
+
securityStatus: {
|
|
980
|
+
vulnerabilityCount: vulnerabilities.summary.total,
|
|
981
|
+
criticalVulnerabilities: vulnerabilities.summary.critical,
|
|
982
|
+
licenseIssues: licenses.compliance.incompatible,
|
|
983
|
+
integrityIssues: integrity.issues?.length ?? 0,
|
|
984
|
+
overallRisk: audit.overallRisk,
|
|
985
|
+
},
|
|
986
|
+
findings: {
|
|
987
|
+
vulnerabilities,
|
|
988
|
+
licenses,
|
|
989
|
+
integrity,
|
|
990
|
+
riskAssessment: audit.detailed.analysis.riskAssessment,
|
|
991
|
+
},
|
|
992
|
+
immediateActions: [
|
|
993
|
+
...vulnerabilities.remediation.immediate.map((action) => ({
|
|
994
|
+
type: 'security',
|
|
995
|
+
description: typeof action === 'string' ? action : String(action),
|
|
996
|
+
priority: 1,
|
|
997
|
+
urgent: true,
|
|
998
|
+
})),
|
|
999
|
+
...licenses.violations.map((violation) => ({
|
|
1000
|
+
type: 'license',
|
|
1001
|
+
description: `License violation: ${violation.package} (${violation.license})`,
|
|
1002
|
+
priority: 2,
|
|
1003
|
+
urgent: false,
|
|
1004
|
+
})),
|
|
1005
|
+
],
|
|
1006
|
+
auditedAt: new Date().toISOString(),
|
|
1007
|
+
};
|
|
1008
|
+
}
|
|
1009
|
+
async function performModernizationPlanning(packagePath, options, sessionId) {
|
|
1010
|
+
const updates = await checkAvailableUpdates(packagePath);
|
|
1011
|
+
const updatePlan = await generateDependencyUpdatePlan(packagePath, options);
|
|
1012
|
+
const preview = await previewDependencyUpdates(packagePath);
|
|
1013
|
+
const compatibility = await validateDependencyCompatibility(packagePath);
|
|
1014
|
+
const recommendations = await applyDependencyRecommendations(packagePath, sessionId);
|
|
1015
|
+
return {
|
|
1016
|
+
modernizationFocused: true,
|
|
1017
|
+
sessionId,
|
|
1018
|
+
strategy: options?.modernizationLevel ?? 'moderate',
|
|
1019
|
+
assessment: {
|
|
1020
|
+
outdatedPackages: updates.outdated?.length ?? 0,
|
|
1021
|
+
majorUpdatesAvailable: updates.updatePlan.filter((u) => u.updateType === 'major').length,
|
|
1022
|
+
compatibilityRisks: compatibility.risks?.length ?? 0,
|
|
1023
|
+
estimatedEffort: calculateModernizationEffort(updates.updatePlan),
|
|
1024
|
+
},
|
|
1025
|
+
plan: {
|
|
1026
|
+
updates: updatePlan,
|
|
1027
|
+
preview,
|
|
1028
|
+
compatibility,
|
|
1029
|
+
recommendations: recommendations.modernizationSteps,
|
|
1030
|
+
},
|
|
1031
|
+
phases: [
|
|
1032
|
+
{
|
|
1033
|
+
phase: 1,
|
|
1034
|
+
name: 'Low Risk Updates',
|
|
1035
|
+
updates: updates.updatePlan.filter(u => u.risk === 'low'),
|
|
1036
|
+
estimatedTime: '1-2 hours',
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
phase: 2,
|
|
1040
|
+
name: 'Medium Risk Updates',
|
|
1041
|
+
updates: updates.updatePlan.filter(u => u.risk === 'medium'),
|
|
1042
|
+
estimatedTime: '4-6 hours',
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
phase: 3,
|
|
1046
|
+
name: 'High Risk Updates',
|
|
1047
|
+
updates: updates.updatePlan.filter(u => u.risk === 'high'),
|
|
1048
|
+
estimatedTime: '1-2 days',
|
|
1049
|
+
},
|
|
1050
|
+
],
|
|
1051
|
+
createdAt: new Date().toISOString(),
|
|
1052
|
+
};
|
|
1053
|
+
}
|
|
1054
|
+
async function performBundleOptimization(packagePath, options, sessionId) {
|
|
1055
|
+
const bundleImpact = await analyzeDependencyBundleImpact(packagePath);
|
|
1056
|
+
const utilization = await performUtilizationAnalysis(packagePath, options);
|
|
1057
|
+
const duplicates = await resolveDuplicateDependencies(packagePath);
|
|
1058
|
+
const optimization = await optimizeDependencyBundles(packagePath, options);
|
|
1059
|
+
const deadCode = await detectUnusedDependencies(packagePath);
|
|
1060
|
+
return {
|
|
1061
|
+
optimizationFocused: true,
|
|
1062
|
+
sessionId,
|
|
1063
|
+
currentState: {
|
|
1064
|
+
bundleSize: bundleImpact.totalSize ?? 'Unknown',
|
|
1065
|
+
unusedDependencies: utilization.packageUsage.filter(p => !p.isUsed).length,
|
|
1066
|
+
duplicatePackages: duplicates.duplicatesFound?.length ?? 0,
|
|
1067
|
+
deadCodePercentage: deadCode.summary?.averageDeadCodePercentage ?? 0,
|
|
1068
|
+
},
|
|
1069
|
+
optimizations: {
|
|
1070
|
+
bundleOptimization: optimization,
|
|
1071
|
+
utilization,
|
|
1072
|
+
duplicateResolution: duplicates,
|
|
1073
|
+
deadCodeRemoval: deadCode,
|
|
1074
|
+
},
|
|
1075
|
+
recommendations: [
|
|
1076
|
+
...utilization.optimizationOpportunities.map((opp) => ({
|
|
1077
|
+
type: 'optimization',
|
|
1078
|
+
description: opp.description,
|
|
1079
|
+
savings: opp.potentialSavings,
|
|
1080
|
+
implementation: opp.implementation,
|
|
1081
|
+
priority: calculateOptimizationPriority(opp.potentialSavings),
|
|
1082
|
+
})),
|
|
1083
|
+
...(duplicates.resolutionStrategy?.map((res) => ({
|
|
1084
|
+
type: 'duplicate_resolution',
|
|
1085
|
+
description: res.action,
|
|
1086
|
+
package: res.package,
|
|
1087
|
+
method: res.method,
|
|
1088
|
+
priority: 2,
|
|
1089
|
+
})) || []),
|
|
1090
|
+
],
|
|
1091
|
+
projectedSavings: {
|
|
1092
|
+
bundleSize: optimization.bundleAnalysis?.improvement ?? 'Unknown',
|
|
1093
|
+
duplicateResolution: duplicates.estimatedSavings,
|
|
1094
|
+
deadCodeRemoval: `${deadCode.summary?.estimatedSavings ?? '0KB'}`,
|
|
1095
|
+
},
|
|
1096
|
+
optimizedAt: new Date().toISOString(),
|
|
1097
|
+
};
|
|
1098
|
+
}
|
|
1099
|
+
function calculateModernizationEffort(updatePlan) {
|
|
1100
|
+
const totalUpdates = updatePlan.length;
|
|
1101
|
+
const highRiskUpdates = updatePlan.filter(u => u.risk === 'high').length;
|
|
1102
|
+
if (totalUpdates === 0)
|
|
1103
|
+
return 'No updates needed';
|
|
1104
|
+
if (highRiskUpdates > 3)
|
|
1105
|
+
return 'High effort (1-2 weeks)';
|
|
1106
|
+
if (totalUpdates > 10)
|
|
1107
|
+
return 'Medium effort (3-5 days)';
|
|
1108
|
+
return 'Low effort (1-2 days)';
|
|
1109
|
+
}
|
|
1110
|
+
function calculateOptimizationPriority(potentialSavings) {
|
|
1111
|
+
if (potentialSavings > 500000)
|
|
1112
|
+
return 1;
|
|
1113
|
+
if (potentialSavings > 100000)
|
|
1114
|
+
return 2;
|
|
1115
|
+
return 3;
|
|
1116
|
+
}
|
|
1117
|
+
//# sourceMappingURL=dependency-analyzer.js.map
|