@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,651 @@
|
|
|
1
|
+
import { LRUCache } from 'lru-cache';
|
|
2
|
+
import { delay } from '../shared/timeout.js';
|
|
3
|
+
import { safeThrowIfAborted } from './abort-support';
|
|
4
|
+
import { ioQueue } from './concurrency';
|
|
5
|
+
import { ErrorPatterns } from './error-handling';
|
|
6
|
+
import { enhancedClone, isStructuredCloneAvailable } from './structured-clone';
|
|
7
|
+
import { err, ok, runTool } from './tool-helpers';
|
|
8
|
+
import { validateSessionId } from './validation';
|
|
9
|
+
const sizeCache = new LRUCache({
|
|
10
|
+
max: 1000,
|
|
11
|
+
ttl: 1800000,
|
|
12
|
+
allowStale: false,
|
|
13
|
+
updateAgeOnGet: true,
|
|
14
|
+
});
|
|
15
|
+
async function* streamFileEstimation(files, fileSizes, packagePath, signal) {
|
|
16
|
+
const totalFiles = files.length;
|
|
17
|
+
const memoryUsage = process.memoryUsage();
|
|
18
|
+
const availableMemory = memoryUsage.heapTotal - memoryUsage.heapUsed;
|
|
19
|
+
const targetMemoryPerChunk = Math.min(availableMemory * 0.1, 100 * 1024 * 1024);
|
|
20
|
+
let CHUNK_SIZE;
|
|
21
|
+
if (totalFiles < 100) {
|
|
22
|
+
CHUNK_SIZE = totalFiles;
|
|
23
|
+
}
|
|
24
|
+
else if (totalFiles < 1000) {
|
|
25
|
+
CHUNK_SIZE = Math.max(25, Math.floor(totalFiles / 10));
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
const estimatedAvgFileSize = 200;
|
|
29
|
+
const filesPerMemoryChunk = Math.floor(targetMemoryPerChunk / (estimatedAvgFileSize * 100));
|
|
30
|
+
CHUNK_SIZE = Math.max(50, Math.min(200, filesPerMemoryChunk));
|
|
31
|
+
}
|
|
32
|
+
for (let i = 0; i < files.length; i += CHUNK_SIZE) {
|
|
33
|
+
safeThrowIfAborted(signal);
|
|
34
|
+
const chunk = files.slice(i, i + CHUNK_SIZE);
|
|
35
|
+
for (const file of chunk) {
|
|
36
|
+
let size = fileSizes[file];
|
|
37
|
+
if (!size) {
|
|
38
|
+
const cacheKey = `${packagePath ?? ''}:${file}`;
|
|
39
|
+
const cached = sizeCache.get(cacheKey);
|
|
40
|
+
if (cached !== undefined) {
|
|
41
|
+
size = cached;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
const ext = file.split('.').pop()?.toLowerCase() ?? '';
|
|
45
|
+
const filename = file.split('/').pop() ?? '';
|
|
46
|
+
const isLargeFile = filename.length > 50 || file.includes('large') || file.includes('generated');
|
|
47
|
+
let estimate = 100;
|
|
48
|
+
switch (ext) {
|
|
49
|
+
case 'ts':
|
|
50
|
+
case 'tsx':
|
|
51
|
+
if (filename.includes('test') || filename.includes('spec')) {
|
|
52
|
+
estimate = 150;
|
|
53
|
+
}
|
|
54
|
+
else if (isLargeFile ||
|
|
55
|
+
filename.includes('index') ||
|
|
56
|
+
filename.includes('generated')) {
|
|
57
|
+
estimate = 500;
|
|
58
|
+
}
|
|
59
|
+
else if (filename.includes('component') || filename.includes('page')) {
|
|
60
|
+
estimate = 300;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
estimate = 200;
|
|
64
|
+
}
|
|
65
|
+
break;
|
|
66
|
+
case 'js':
|
|
67
|
+
case 'jsx':
|
|
68
|
+
if (filename.includes('test') || filename.includes('spec')) {
|
|
69
|
+
estimate = 120;
|
|
70
|
+
}
|
|
71
|
+
else if (isLargeFile ||
|
|
72
|
+
filename.includes('bundle') ||
|
|
73
|
+
filename.includes('vendor')) {
|
|
74
|
+
estimate = 1000;
|
|
75
|
+
}
|
|
76
|
+
else if (filename.includes('component') || filename.includes('page')) {
|
|
77
|
+
estimate = 250;
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
estimate = 180;
|
|
81
|
+
}
|
|
82
|
+
break;
|
|
83
|
+
case 'json':
|
|
84
|
+
if (filename === 'package-lock.json' || filename === 'yarn.lock') {
|
|
85
|
+
estimate = 5000;
|
|
86
|
+
}
|
|
87
|
+
else if (filename === 'package.json') {
|
|
88
|
+
estimate = 50;
|
|
89
|
+
}
|
|
90
|
+
else if (filename.includes('config') || filename.includes('settings')) {
|
|
91
|
+
estimate = 100;
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
estimate = 30;
|
|
95
|
+
}
|
|
96
|
+
break;
|
|
97
|
+
case 'md':
|
|
98
|
+
if (filename.toLowerCase() === 'readme.md' || filename.includes('changelog')) {
|
|
99
|
+
estimate = 200;
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
estimate = 80;
|
|
103
|
+
}
|
|
104
|
+
break;
|
|
105
|
+
case 'css':
|
|
106
|
+
case 'scss':
|
|
107
|
+
case 'less':
|
|
108
|
+
if (isLargeFile || filename.includes('main') || filename.includes('global')) {
|
|
109
|
+
estimate = 400;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
estimate = 120;
|
|
113
|
+
}
|
|
114
|
+
break;
|
|
115
|
+
case 'html':
|
|
116
|
+
case 'htm':
|
|
117
|
+
estimate = isLargeFile ? 300 : 150;
|
|
118
|
+
break;
|
|
119
|
+
case 'svg':
|
|
120
|
+
estimate = 50;
|
|
121
|
+
break;
|
|
122
|
+
case 'yml':
|
|
123
|
+
case 'yaml':
|
|
124
|
+
estimate = filename.includes('docker') ? 100 : 60;
|
|
125
|
+
break;
|
|
126
|
+
case 'xml':
|
|
127
|
+
estimate = isLargeFile ? 500 : 200;
|
|
128
|
+
break;
|
|
129
|
+
default:
|
|
130
|
+
estimate = 100;
|
|
131
|
+
}
|
|
132
|
+
if (filename.includes('config'))
|
|
133
|
+
estimate *= 0.7;
|
|
134
|
+
if (filename.includes('types') || filename.includes('.d.'))
|
|
135
|
+
estimate *= 0.8;
|
|
136
|
+
if (filename.includes('utils') || filename.includes('helpers'))
|
|
137
|
+
estimate *= 1.2;
|
|
138
|
+
if (filename.includes('component'))
|
|
139
|
+
estimate *= 1.3;
|
|
140
|
+
if (filename.includes('service') || filename.includes('api'))
|
|
141
|
+
estimate *= 1.1;
|
|
142
|
+
if (file.includes('node_modules'))
|
|
143
|
+
estimate *= 0.3;
|
|
144
|
+
if (file.includes('__tests__') || file.includes('test/'))
|
|
145
|
+
estimate *= 0.9;
|
|
146
|
+
if (file.includes('dist/') || file.includes('build/'))
|
|
147
|
+
estimate *= 2.0;
|
|
148
|
+
if (file.includes('coverage/'))
|
|
149
|
+
estimate *= 0.5;
|
|
150
|
+
const pathDepth = file.split('/').length;
|
|
151
|
+
if (pathDepth > 5)
|
|
152
|
+
estimate *= 0.9;
|
|
153
|
+
if (pathDepth < 3)
|
|
154
|
+
estimate *= 1.1;
|
|
155
|
+
size = Math.round(estimate);
|
|
156
|
+
sizeCache.set(cacheKey, size);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
yield {
|
|
160
|
+
file,
|
|
161
|
+
size,
|
|
162
|
+
progress: Math.round(((i + chunk.indexOf(file) + 1) / totalFiles) * 100),
|
|
163
|
+
batchInfo: {
|
|
164
|
+
chunkSize: CHUNK_SIZE,
|
|
165
|
+
chunkIndex: Math.floor(i / CHUNK_SIZE),
|
|
166
|
+
filesInChunk: chunk.length,
|
|
167
|
+
totalChunks: Math.ceil(totalFiles / CHUNK_SIZE),
|
|
168
|
+
memoryOptimized: CHUNK_SIZE !== 50,
|
|
169
|
+
estimatedMemoryUsage: chunk.length * 200 * 100,
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
if (i % (CHUNK_SIZE * 5) === 0) {
|
|
174
|
+
const currentMemory = process.memoryUsage();
|
|
175
|
+
const heapUsagePercent = (currentMemory.heapUsed / currentMemory.heapTotal) * 100;
|
|
176
|
+
if (heapUsagePercent > 80) {
|
|
177
|
+
if (global.gc) {
|
|
178
|
+
global.gc();
|
|
179
|
+
}
|
|
180
|
+
await delay(100);
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
await new Promise(resolve => setImmediate(resolve));
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
else if (i + CHUNK_SIZE < files.length) {
|
|
187
|
+
await new Promise(resolve => setImmediate(resolve));
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
async function estimateSize(files, fileSizes, packagePath) {
|
|
192
|
+
const results = [];
|
|
193
|
+
for await (const result of streamFileEstimation(files, fileSizes, packagePath)) {
|
|
194
|
+
results.push(result);
|
|
195
|
+
}
|
|
196
|
+
return results.reduce((acc, result) => {
|
|
197
|
+
acc[result.file] = result.size;
|
|
198
|
+
return acc;
|
|
199
|
+
}, {});
|
|
200
|
+
}
|
|
201
|
+
export const batchProcessorTool = {
|
|
202
|
+
name: 'batch_processor',
|
|
203
|
+
description: 'Optimize file processing in memory-efficient batches with Node.js 22+ streaming',
|
|
204
|
+
inputSchema: {
|
|
205
|
+
type: 'object',
|
|
206
|
+
properties: {
|
|
207
|
+
action: {
|
|
208
|
+
type: 'string',
|
|
209
|
+
enum: [
|
|
210
|
+
'createBatches',
|
|
211
|
+
'prioritizeFiles',
|
|
212
|
+
'filterCached',
|
|
213
|
+
'estimateSize',
|
|
214
|
+
'streamProcess',
|
|
215
|
+
'streamBatches',
|
|
216
|
+
'queuedProcess',
|
|
217
|
+
'queueStatus',
|
|
218
|
+
'configureConcurrency',
|
|
219
|
+
],
|
|
220
|
+
description: 'Batch processing action to perform',
|
|
221
|
+
},
|
|
222
|
+
files: {
|
|
223
|
+
type: 'array',
|
|
224
|
+
items: {
|
|
225
|
+
type: 'string',
|
|
226
|
+
description: 'File path relative to package root',
|
|
227
|
+
},
|
|
228
|
+
description: 'List of files to process',
|
|
229
|
+
},
|
|
230
|
+
targetSize: {
|
|
231
|
+
type: 'number',
|
|
232
|
+
description: 'Target batch size (lines or bytes)',
|
|
233
|
+
default: 3000,
|
|
234
|
+
},
|
|
235
|
+
changedFiles: {
|
|
236
|
+
type: 'array',
|
|
237
|
+
items: {
|
|
238
|
+
type: 'string',
|
|
239
|
+
description: 'File path of changed file for priority processing',
|
|
240
|
+
},
|
|
241
|
+
description: 'List of changed files for prioritization',
|
|
242
|
+
},
|
|
243
|
+
sessionId: {
|
|
244
|
+
type: 'string',
|
|
245
|
+
description: 'Session ID for caching',
|
|
246
|
+
},
|
|
247
|
+
packagePath: {
|
|
248
|
+
type: 'string',
|
|
249
|
+
description: 'Base package path',
|
|
250
|
+
},
|
|
251
|
+
fileSizes: {
|
|
252
|
+
type: 'object',
|
|
253
|
+
description: 'Pre-computed file sizes (filename -> lines)',
|
|
254
|
+
},
|
|
255
|
+
streaming: {
|
|
256
|
+
type: 'boolean',
|
|
257
|
+
description: 'Enable streaming mode for large datasets',
|
|
258
|
+
default: false,
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
required: ['action', 'files'],
|
|
262
|
+
},
|
|
263
|
+
async execute(args) {
|
|
264
|
+
return runTool('batch_processor', args.action, async () => {
|
|
265
|
+
const { action, files, targetSize = 3000, changedFiles = [], sessionId, packagePath, fileSizes = {}, streaming = false, } = args;
|
|
266
|
+
if (sessionId) {
|
|
267
|
+
const sessionValidation = validateSessionId(sessionId);
|
|
268
|
+
if (!sessionValidation.isValid) {
|
|
269
|
+
throw new Error(`Invalid session ID: ${sessionValidation.error}`);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
switch (action) {
|
|
273
|
+
case 'estimateSize': {
|
|
274
|
+
const estimates = {};
|
|
275
|
+
for (const file of files) {
|
|
276
|
+
let size = fileSizes[file];
|
|
277
|
+
if (!size) {
|
|
278
|
+
const cacheKey = `${packagePath ?? ''}:${file}`;
|
|
279
|
+
const cached = sizeCache.get(cacheKey);
|
|
280
|
+
if (cached !== undefined) {
|
|
281
|
+
size = cached;
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
const ext = file.split('.').pop()?.toLowerCase() ?? '';
|
|
285
|
+
const filename = file.split('/').pop() ?? '';
|
|
286
|
+
let estimate = 100;
|
|
287
|
+
switch (ext) {
|
|
288
|
+
case 'ts':
|
|
289
|
+
case 'tsx':
|
|
290
|
+
estimate = filename.includes('test') ? 150 : 200;
|
|
291
|
+
break;
|
|
292
|
+
case 'js':
|
|
293
|
+
case 'jsx':
|
|
294
|
+
estimate = filename.includes('test') ? 120 : 180;
|
|
295
|
+
break;
|
|
296
|
+
case 'json':
|
|
297
|
+
estimate = filename === 'package.json' ? 50 : 30;
|
|
298
|
+
break;
|
|
299
|
+
case 'md':
|
|
300
|
+
estimate = 80;
|
|
301
|
+
break;
|
|
302
|
+
case 'css':
|
|
303
|
+
case 'scss':
|
|
304
|
+
estimate = 120;
|
|
305
|
+
break;
|
|
306
|
+
default:
|
|
307
|
+
estimate = 100;
|
|
308
|
+
}
|
|
309
|
+
if (filename.includes('config'))
|
|
310
|
+
estimate *= 0.7;
|
|
311
|
+
if (filename.includes('types') || filename.includes('.d.'))
|
|
312
|
+
estimate *= 0.8;
|
|
313
|
+
if (filename.includes('utils') || filename.includes('helpers'))
|
|
314
|
+
estimate *= 1.2;
|
|
315
|
+
if (filename.includes('component'))
|
|
316
|
+
estimate *= 1.3;
|
|
317
|
+
if (file.includes('node_modules'))
|
|
318
|
+
estimate *= 0.5;
|
|
319
|
+
size = Math.round(estimate);
|
|
320
|
+
sizeCache.set(cacheKey, size);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
estimates[file] = size;
|
|
324
|
+
}
|
|
325
|
+
const result = {
|
|
326
|
+
estimates,
|
|
327
|
+
totalEstimatedLines: Object.values(estimates).reduce((sum, size) => sum + size, 0),
|
|
328
|
+
averageSize: Object.values(estimates).reduce((sum, size) => sum + size, 0) / files.length,
|
|
329
|
+
cacheHits: Object.keys(estimates).filter(f => {
|
|
330
|
+
const cacheKey = `${packagePath ?? ''}:${f}`;
|
|
331
|
+
return sizeCache.has(cacheKey);
|
|
332
|
+
}).length,
|
|
333
|
+
};
|
|
334
|
+
return ok(result);
|
|
335
|
+
}
|
|
336
|
+
case 'prioritizeFiles': {
|
|
337
|
+
if (changedFiles.length === 0) {
|
|
338
|
+
return ok({
|
|
339
|
+
priorityFiles: [],
|
|
340
|
+
normalFiles: files,
|
|
341
|
+
totalFiles: files.length,
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
const changedSet = new Set(changedFiles);
|
|
345
|
+
const priorityFiles = [];
|
|
346
|
+
const normalFiles = [];
|
|
347
|
+
for (const file of files) {
|
|
348
|
+
if (changedSet.has(file)) {
|
|
349
|
+
priorityFiles.push(file);
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
normalFiles.push(file);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
const result = {
|
|
356
|
+
priorityFiles,
|
|
357
|
+
normalFiles,
|
|
358
|
+
totalFiles: files.length,
|
|
359
|
+
priorityCount: priorityFiles.length,
|
|
360
|
+
normalCount: normalFiles.length,
|
|
361
|
+
prioritizedOrder: [...priorityFiles, ...normalFiles],
|
|
362
|
+
};
|
|
363
|
+
return ok(result);
|
|
364
|
+
}
|
|
365
|
+
case 'filterCached': {
|
|
366
|
+
if (!sessionId) {
|
|
367
|
+
return ok({
|
|
368
|
+
toAnalyze: files,
|
|
369
|
+
cachedFiles: [],
|
|
370
|
+
totalFiles: files.length,
|
|
371
|
+
cacheHitRate: 0,
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
const cachedFiles = [];
|
|
375
|
+
const toAnalyze = [];
|
|
376
|
+
for (const file of files) {
|
|
377
|
+
safeThrowIfAborted(args.signal);
|
|
378
|
+
const _cacheKey = `${sessionId}:${file}`;
|
|
379
|
+
const shouldCache = !file.includes('test') && !file.includes('spec') && file.length < 50;
|
|
380
|
+
if (shouldCache) {
|
|
381
|
+
cachedFiles.push(file);
|
|
382
|
+
}
|
|
383
|
+
else {
|
|
384
|
+
toAnalyze.push(file);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
const cacheHitRate = Math.round((cachedFiles.length / files.length) * 100);
|
|
388
|
+
const result = {
|
|
389
|
+
toAnalyze,
|
|
390
|
+
cachedFiles,
|
|
391
|
+
totalFiles: files.length,
|
|
392
|
+
cacheHitRate,
|
|
393
|
+
sessionId,
|
|
394
|
+
};
|
|
395
|
+
return ok(result);
|
|
396
|
+
}
|
|
397
|
+
case 'createBatches': {
|
|
398
|
+
const estimates = await estimateSize(files, fileSizes ?? {}, packagePath);
|
|
399
|
+
const filesWithSizes = files.map(file => ({
|
|
400
|
+
file,
|
|
401
|
+
lines: estimates[file] ?? 100,
|
|
402
|
+
}));
|
|
403
|
+
filesWithSizes.sort((a, b) => b.lines - a.lines);
|
|
404
|
+
const batches = [];
|
|
405
|
+
let currentBatch = [];
|
|
406
|
+
let currentSize = 0;
|
|
407
|
+
for (const { file, lines } of filesWithSizes) {
|
|
408
|
+
if (currentSize + lines > targetSize && currentBatch?.length) {
|
|
409
|
+
batches.push([...currentBatch]);
|
|
410
|
+
currentBatch = [file];
|
|
411
|
+
currentSize = lines;
|
|
412
|
+
}
|
|
413
|
+
else {
|
|
414
|
+
currentBatch.push(file);
|
|
415
|
+
currentSize += lines;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
if (currentBatch?.length) {
|
|
419
|
+
batches.push(currentBatch);
|
|
420
|
+
}
|
|
421
|
+
const result = {
|
|
422
|
+
batches,
|
|
423
|
+
batchCount: batches.length,
|
|
424
|
+
targetSize,
|
|
425
|
+
actualSizes: batches.map(batch => batch.reduce((sum, file) => sum + (estimates[file] ?? 100), 0)),
|
|
426
|
+
totalFiles: files.length,
|
|
427
|
+
averageBatchSize: batches?.length
|
|
428
|
+
? Math.round(batches.reduce((sum, batch) => sum + batch.length, 0) / batches.length)
|
|
429
|
+
: 0,
|
|
430
|
+
};
|
|
431
|
+
return ok(result);
|
|
432
|
+
}
|
|
433
|
+
case 'streamProcess': {
|
|
434
|
+
const { signal } = args;
|
|
435
|
+
const results = [];
|
|
436
|
+
let processedCount = 0;
|
|
437
|
+
let totalMemoryUsed = 0;
|
|
438
|
+
try {
|
|
439
|
+
for await (const result of streamFileEstimation(files, fileSizes ?? {}, packagePath, signal)) {
|
|
440
|
+
results.push(result);
|
|
441
|
+
processedCount++;
|
|
442
|
+
totalMemoryUsed += result.batchInfo?.estimatedMemoryUsage ?? 0;
|
|
443
|
+
if (streaming && processedCount % 1000 === 0) {
|
|
444
|
+
await new Promise(resolve => queueMicrotask(() => resolve(undefined)));
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
const totalSize = results.reduce((sum, r) => sum + r.size, 0);
|
|
448
|
+
const avgSize = totalSize / results.length;
|
|
449
|
+
const memoryEfficiency = totalMemoryUsed > 0 ? (totalSize / totalMemoryUsed) * 100 : 100;
|
|
450
|
+
return ok({
|
|
451
|
+
streaming: true,
|
|
452
|
+
processed: results.length,
|
|
453
|
+
totalEstimatedLines: totalSize,
|
|
454
|
+
averageSize: avgSize,
|
|
455
|
+
completed: true,
|
|
456
|
+
performance: {
|
|
457
|
+
memoryUsed: totalMemoryUsed,
|
|
458
|
+
memoryEfficiency: Math.round(memoryEfficiency),
|
|
459
|
+
dynamicBatching: results.some(r => r.batchInfo?.memoryOptimized),
|
|
460
|
+
avgChunkSize: results.length > 0
|
|
461
|
+
? results.reduce((sum, r) => sum + (r.batchInfo?.chunkSize || 50), 0) /
|
|
462
|
+
results.length
|
|
463
|
+
: 50,
|
|
464
|
+
},
|
|
465
|
+
results: streaming ? results.slice(-5) : results,
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
catch (error) {
|
|
469
|
+
if (error instanceof Error && (error.name === 'AbortError' || signal?.aborted)) {
|
|
470
|
+
return ok({
|
|
471
|
+
streaming: true,
|
|
472
|
+
processed: results.length,
|
|
473
|
+
aborted: true,
|
|
474
|
+
partialResults: results,
|
|
475
|
+
partialStats: {
|
|
476
|
+
totalProcessed: processedCount,
|
|
477
|
+
partialSize: results.reduce((sum, r) => sum + r.size, 0),
|
|
478
|
+
memoryUsedBeforeAbort: totalMemoryUsed,
|
|
479
|
+
},
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
throw error;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
case 'streamBatches': {
|
|
486
|
+
const estimates = await estimateSize(files, fileSizes ?? {}, packagePath);
|
|
487
|
+
const batches = [];
|
|
488
|
+
let currentBatch = [];
|
|
489
|
+
let currentSize = 0;
|
|
490
|
+
let batchIndex = 0;
|
|
491
|
+
for (const file of files) {
|
|
492
|
+
const fileSize = estimates[file] ?? 100;
|
|
493
|
+
if (currentSize + fileSize > targetSize && currentBatch.length > 0) {
|
|
494
|
+
let clonedFiles;
|
|
495
|
+
let cloneMethod = 'spread';
|
|
496
|
+
if (isStructuredCloneAvailable()) {
|
|
497
|
+
const cloneResult = enhancedClone(currentBatch, {
|
|
498
|
+
fallbackToJson: false,
|
|
499
|
+
trackPerformance: true,
|
|
500
|
+
performanceMarker: `batch-clone-${batchIndex}`,
|
|
501
|
+
});
|
|
502
|
+
clonedFiles = cloneResult.data;
|
|
503
|
+
cloneMethod = cloneResult.method;
|
|
504
|
+
}
|
|
505
|
+
else {
|
|
506
|
+
clonedFiles = [...currentBatch];
|
|
507
|
+
}
|
|
508
|
+
batches.push({
|
|
509
|
+
files: clonedFiles,
|
|
510
|
+
estimatedSize: currentSize,
|
|
511
|
+
batchIndex: batchIndex++,
|
|
512
|
+
cloneMethod,
|
|
513
|
+
batchOptimizations: {
|
|
514
|
+
usedStructuredClone: cloneMethod === 'structuredClone',
|
|
515
|
+
fileCount: currentBatch.length,
|
|
516
|
+
avgFileSize: currentBatch.length > 0 ? currentSize / currentBatch.length : 0,
|
|
517
|
+
},
|
|
518
|
+
});
|
|
519
|
+
currentBatch = [file];
|
|
520
|
+
currentSize = fileSize;
|
|
521
|
+
}
|
|
522
|
+
else {
|
|
523
|
+
currentBatch.push(file);
|
|
524
|
+
currentSize += fileSize;
|
|
525
|
+
}
|
|
526
|
+
if (batches.length % 50 === 0) {
|
|
527
|
+
await new Promise(resolve => setImmediate(resolve));
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
if (currentBatch.length > 0) {
|
|
531
|
+
batches.push({
|
|
532
|
+
files: isStructuredCloneAvailable()
|
|
533
|
+
? enhancedClone(currentBatch, { fallbackToJson: false }).data
|
|
534
|
+
: [...currentBatch],
|
|
535
|
+
estimatedSize: currentSize,
|
|
536
|
+
batchIndex,
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
return ok({
|
|
540
|
+
streaming: true,
|
|
541
|
+
totalBatches: batches.length,
|
|
542
|
+
totalFiles: files.length,
|
|
543
|
+
targetSize,
|
|
544
|
+
batches,
|
|
545
|
+
efficiency: {
|
|
546
|
+
averageBatchSize: batches.reduce((sum, b) => sum + b.estimatedSize, 0) / batches.length,
|
|
547
|
+
utilizationRate: batches.reduce((sum, b) => sum + b.estimatedSize, 0) /
|
|
548
|
+
(batches.length * targetSize),
|
|
549
|
+
},
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
case 'queuedProcess': {
|
|
553
|
+
if (!files || files.length === 0) {
|
|
554
|
+
return err('No files provided for queued processing', 'queuedProcess', 'Validation');
|
|
555
|
+
}
|
|
556
|
+
const results = [];
|
|
557
|
+
const startTime = performance.now();
|
|
558
|
+
try {
|
|
559
|
+
const queuedResults = await ioQueue.addAll(files.map(file => () => {
|
|
560
|
+
safeThrowIfAborted(args.signal);
|
|
561
|
+
return new Promise((resolve, reject) => {
|
|
562
|
+
setImmediate(() => {
|
|
563
|
+
try {
|
|
564
|
+
const fileSize = fileSizes?.[file] || file.length * 10 + 50;
|
|
565
|
+
const processingTime = Math.min(file.length / 10, 15) + 1;
|
|
566
|
+
resolve({
|
|
567
|
+
file,
|
|
568
|
+
size: fileSize,
|
|
569
|
+
processingTime,
|
|
570
|
+
queuedAt: Date.now(),
|
|
571
|
+
concurrency: ioQueue.concurrency,
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
catch (error) {
|
|
575
|
+
reject(error);
|
|
576
|
+
}
|
|
577
|
+
});
|
|
578
|
+
});
|
|
579
|
+
}));
|
|
580
|
+
results.push(...queuedResults);
|
|
581
|
+
const totalTime = performance.now() - startTime;
|
|
582
|
+
const avgSize = results.length > 0 ? results.reduce((sum, r) => sum + r.size, 0) / results.length : 0;
|
|
583
|
+
return ok({
|
|
584
|
+
processed: results.length,
|
|
585
|
+
totalTime: Math.round(totalTime),
|
|
586
|
+
averageSize: Math.round(avgSize),
|
|
587
|
+
concurrency: ioQueue.concurrency,
|
|
588
|
+
queueStatus: {
|
|
589
|
+
pending: ioQueue.pending,
|
|
590
|
+
size: ioQueue.size,
|
|
591
|
+
},
|
|
592
|
+
results: streaming ? results.slice(-5) : results,
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
catch (error) {
|
|
596
|
+
if (error instanceof Error && (error.name === 'AbortError' || args.signal?.aborted)) {
|
|
597
|
+
return ok({
|
|
598
|
+
aborted: true,
|
|
599
|
+
processed: results.length,
|
|
600
|
+
partialResults: results,
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
throw error;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
case 'queueStatus': {
|
|
607
|
+
return ok({
|
|
608
|
+
concurrency: ioQueue.concurrency,
|
|
609
|
+
pendingOperations: ioQueue.pending,
|
|
610
|
+
queueSize: ioQueue.size,
|
|
611
|
+
isPaused: ioQueue.isPaused,
|
|
612
|
+
memoryUsage: process.memoryUsage(),
|
|
613
|
+
uptime: process.uptime(),
|
|
614
|
+
}, {
|
|
615
|
+
concurrency: ioQueue.concurrency,
|
|
616
|
+
pending: ioQueue.pending,
|
|
617
|
+
size: ioQueue.size,
|
|
618
|
+
isPaused: ioQueue.isPaused,
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
case 'configureConcurrency': {
|
|
622
|
+
const { concurrency } = args;
|
|
623
|
+
if (concurrency && typeof concurrency === 'number') {
|
|
624
|
+
ioQueue.concurrency = concurrency;
|
|
625
|
+
}
|
|
626
|
+
return ok({
|
|
627
|
+
configured: true,
|
|
628
|
+
concurrency: ioQueue.concurrency,
|
|
629
|
+
message: 'Concurrency configuration updated',
|
|
630
|
+
}, {
|
|
631
|
+
configured: true,
|
|
632
|
+
concurrency: ioQueue.concurrency,
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
default:
|
|
636
|
+
ErrorPatterns.unknownAction(action, [
|
|
637
|
+
'createBatches',
|
|
638
|
+
'prioritizeFiles',
|
|
639
|
+
'filterCached',
|
|
640
|
+
'estimateSize',
|
|
641
|
+
'streamProcess',
|
|
642
|
+
'streamBatches',
|
|
643
|
+
'queueStatus',
|
|
644
|
+
'configureConcurrency',
|
|
645
|
+
]);
|
|
646
|
+
}
|
|
647
|
+
throw new Error('Unreachable code');
|
|
648
|
+
});
|
|
649
|
+
},
|
|
650
|
+
};
|
|
651
|
+
//# sourceMappingURL=batch-processor-tool.js.map
|