@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,822 @@
|
|
|
1
|
+
import { pipeline } from 'node:stream/promises';
|
|
2
|
+
import { scheduler } from 'node:timers/promises';
|
|
3
|
+
import { safeThrowIfAborted } from './abort-support';
|
|
4
|
+
import { ioQueue } from './concurrency';
|
|
5
|
+
import { withRetry } from './retryable';
|
|
6
|
+
import { yieldToEventLoop } from './scheduler';
|
|
7
|
+
import { createSafeFunction } from './security';
|
|
8
|
+
import { asyncGeneratorToReadableStream, createBatchingTransformStream, createCollectorWritableStream, createThrottlingTransformStream, createTransformStream, mergeReadableStreams, pipelineStreams, streamWithBackpressure, } from './streams';
|
|
9
|
+
import { safeStringifyAdvanced } from './stringify-advanced.js';
|
|
10
|
+
import { ok, runTool } from './tool-helpers';
|
|
11
|
+
export const streamingUtilitiesTool = {
|
|
12
|
+
name: 'streaming_utilities',
|
|
13
|
+
description: 'Node.js 22+ streaming utilities for efficient data processing',
|
|
14
|
+
inputSchema: {
|
|
15
|
+
type: 'object',
|
|
16
|
+
properties: {
|
|
17
|
+
action: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
enum: [
|
|
20
|
+
'streamArray',
|
|
21
|
+
'streamTransform',
|
|
22
|
+
'streamFilter',
|
|
23
|
+
'streamReduce',
|
|
24
|
+
'streamMerge',
|
|
25
|
+
'streamBatch',
|
|
26
|
+
'streamThrottle',
|
|
27
|
+
'streamBuffer',
|
|
28
|
+
'streamCompress',
|
|
29
|
+
'streamParallel',
|
|
30
|
+
'createAsyncIterator',
|
|
31
|
+
'createWebReadableStream',
|
|
32
|
+
'createWebTransformStream',
|
|
33
|
+
'pipelineWebStreams',
|
|
34
|
+
'webStreamBackpressure',
|
|
35
|
+
'mergeWebStreams',
|
|
36
|
+
],
|
|
37
|
+
description: 'Streaming operation to perform',
|
|
38
|
+
},
|
|
39
|
+
data: {
|
|
40
|
+
type: 'array',
|
|
41
|
+
description: 'Input data array for streaming operations',
|
|
42
|
+
},
|
|
43
|
+
streams: {
|
|
44
|
+
type: 'array',
|
|
45
|
+
items: { type: 'array' },
|
|
46
|
+
description: 'Multiple data streams for merge operations',
|
|
47
|
+
},
|
|
48
|
+
chunkSize: {
|
|
49
|
+
type: 'number',
|
|
50
|
+
description: 'Size of each streamed chunk',
|
|
51
|
+
default: 10,
|
|
52
|
+
},
|
|
53
|
+
batchSize: {
|
|
54
|
+
type: 'number',
|
|
55
|
+
description: 'Size of batches for batch operations',
|
|
56
|
+
default: 5,
|
|
57
|
+
},
|
|
58
|
+
transformFunction: {
|
|
59
|
+
type: 'string',
|
|
60
|
+
description: 'JavaScript function to transform data (e.g., "x => x * 2")',
|
|
61
|
+
},
|
|
62
|
+
filterFunction: {
|
|
63
|
+
type: 'string',
|
|
64
|
+
description: 'JavaScript function to filter data (e.g., "x => x > 10")',
|
|
65
|
+
},
|
|
66
|
+
reduceFunction: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
description: 'JavaScript function to reduce data (e.g., "(acc, x) => acc + x")',
|
|
69
|
+
},
|
|
70
|
+
initialValue: {
|
|
71
|
+
description: 'Initial value for reduce operations',
|
|
72
|
+
},
|
|
73
|
+
throttleMs: {
|
|
74
|
+
type: 'number',
|
|
75
|
+
description: 'Throttling delay in milliseconds',
|
|
76
|
+
default: 100,
|
|
77
|
+
},
|
|
78
|
+
bufferSize: {
|
|
79
|
+
type: 'number',
|
|
80
|
+
description: 'Buffer size for backpressure management',
|
|
81
|
+
default: 1000,
|
|
82
|
+
},
|
|
83
|
+
parallelism: {
|
|
84
|
+
type: 'number',
|
|
85
|
+
description: 'Number of parallel workers',
|
|
86
|
+
default: 4,
|
|
87
|
+
},
|
|
88
|
+
compressionLevel: {
|
|
89
|
+
type: 'number',
|
|
90
|
+
description: 'Compression level (1-9)',
|
|
91
|
+
minimum: 1,
|
|
92
|
+
maximum: 9,
|
|
93
|
+
default: 6,
|
|
94
|
+
},
|
|
95
|
+
iteratorName: {
|
|
96
|
+
type: 'string',
|
|
97
|
+
description: 'Name for custom async iterator',
|
|
98
|
+
},
|
|
99
|
+
iteratorCode: {
|
|
100
|
+
type: 'string',
|
|
101
|
+
description: 'Custom async iterator implementation code',
|
|
102
|
+
},
|
|
103
|
+
signal: {
|
|
104
|
+
description: 'AbortSignal for cancelling the operation',
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
required: ['action'],
|
|
108
|
+
},
|
|
109
|
+
async execute(args) {
|
|
110
|
+
return runTool('StreamingUtilities', args.action, async () => {
|
|
111
|
+
const { action, data = [], streams = [], chunkSize = 10, batchSize = 5, transformFunction, filterFunction, reduceFunction, initialValue, throttleMs = 100, bufferSize = 1000, parallelism = 4, compressionLevel: _compressionLevel = 6, iteratorName, iteratorCode, signal, } = args;
|
|
112
|
+
safeThrowIfAborted(signal);
|
|
113
|
+
switch (action) {
|
|
114
|
+
case 'streamArray': {
|
|
115
|
+
if (data.length === 0) {
|
|
116
|
+
throw new Error('Data array required for streamArray operation');
|
|
117
|
+
}
|
|
118
|
+
const chunks = [];
|
|
119
|
+
for await (const chunk of streamArray(data, { chunkSize, signal })) {
|
|
120
|
+
safeThrowIfAborted(signal);
|
|
121
|
+
chunks.push(chunk);
|
|
122
|
+
}
|
|
123
|
+
return ok({
|
|
124
|
+
success: true,
|
|
125
|
+
operation: 'streamArray',
|
|
126
|
+
chunks: chunks.length,
|
|
127
|
+
results: chunks,
|
|
128
|
+
totalItems: data.length,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
case 'streamTransform': {
|
|
132
|
+
if (!transformFunction) {
|
|
133
|
+
throw new Error('Transform function required for streamTransform operation');
|
|
134
|
+
}
|
|
135
|
+
if (data.length === 0) {
|
|
136
|
+
throw new Error('Data array required for streamTransform operation');
|
|
137
|
+
}
|
|
138
|
+
const transform = createSafeFunction(transformFunction, 'x');
|
|
139
|
+
const chunks = [];
|
|
140
|
+
for await (const chunk of streamTransform(data, transform, { chunkSize, signal })) {
|
|
141
|
+
safeThrowIfAborted(signal);
|
|
142
|
+
chunks.push(chunk);
|
|
143
|
+
}
|
|
144
|
+
return ok({
|
|
145
|
+
success: true,
|
|
146
|
+
operation: 'streamTransform',
|
|
147
|
+
chunks: chunks.length,
|
|
148
|
+
results: chunks,
|
|
149
|
+
transformFunction,
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
case 'streamFilter': {
|
|
153
|
+
if (!filterFunction) {
|
|
154
|
+
throw new Error('Filter function required for streamFilter operation');
|
|
155
|
+
}
|
|
156
|
+
if (data.length === 0) {
|
|
157
|
+
throw new Error('Data array required for streamFilter operation');
|
|
158
|
+
}
|
|
159
|
+
const filterFn = createSafeFunction(filterFunction, 'x');
|
|
160
|
+
const filter = (x) => Boolean(filterFn(x));
|
|
161
|
+
const chunks = [];
|
|
162
|
+
for await (const chunk of streamFilter(data, filter, { chunkSize, signal })) {
|
|
163
|
+
chunks.push(chunk);
|
|
164
|
+
if (chunks.length % 5 === 0) {
|
|
165
|
+
await yieldToEventLoop();
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return {
|
|
169
|
+
content: [
|
|
170
|
+
{
|
|
171
|
+
type: 'text',
|
|
172
|
+
text: safeStringifyAdvanced({
|
|
173
|
+
success: true,
|
|
174
|
+
operation: 'streamFilter',
|
|
175
|
+
chunks: chunks.length,
|
|
176
|
+
results: chunks,
|
|
177
|
+
filterFunction,
|
|
178
|
+
}).result,
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
case 'streamReduce': {
|
|
184
|
+
if (!reduceFunction) {
|
|
185
|
+
throw new Error('Reduce function required for streamReduce operation');
|
|
186
|
+
}
|
|
187
|
+
if (data.length === 0) {
|
|
188
|
+
throw new Error('Data array required for streamReduce operation');
|
|
189
|
+
}
|
|
190
|
+
const reducer = createSafeFunction(reduceFunction, ['acc', 'x']);
|
|
191
|
+
const result = await streamReduce(data, reducer, initialValue, { signal });
|
|
192
|
+
return {
|
|
193
|
+
content: [
|
|
194
|
+
{
|
|
195
|
+
type: 'text',
|
|
196
|
+
text: safeStringifyAdvanced({
|
|
197
|
+
success: true,
|
|
198
|
+
operation: 'streamReduce',
|
|
199
|
+
result,
|
|
200
|
+
reduceFunction,
|
|
201
|
+
initialValue,
|
|
202
|
+
}).result,
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
case 'streamMerge': {
|
|
208
|
+
if (streams.length === 0) {
|
|
209
|
+
throw new Error('Multiple streams required for streamMerge operation');
|
|
210
|
+
}
|
|
211
|
+
const chunks = [];
|
|
212
|
+
for await (const chunk of streamMerge(streams, { chunkSize, signal })) {
|
|
213
|
+
chunks.push(chunk);
|
|
214
|
+
if (chunks.length % 5 === 0) {
|
|
215
|
+
await yieldToEventLoop();
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
return {
|
|
219
|
+
content: [
|
|
220
|
+
{
|
|
221
|
+
type: 'text',
|
|
222
|
+
text: safeStringifyAdvanced({
|
|
223
|
+
success: true,
|
|
224
|
+
operation: 'streamMerge',
|
|
225
|
+
chunks: chunks.length,
|
|
226
|
+
results: chunks,
|
|
227
|
+
streamCount: streams.length,
|
|
228
|
+
}).result,
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
case 'streamBatch': {
|
|
234
|
+
if (data.length === 0) {
|
|
235
|
+
throw new Error('Data array required for streamBatch operation');
|
|
236
|
+
}
|
|
237
|
+
const chunks = [];
|
|
238
|
+
for await (const chunk of streamBatch(data, { batchSize, signal })) {
|
|
239
|
+
chunks.push(chunk);
|
|
240
|
+
if (chunks.length % 3 === 0) {
|
|
241
|
+
await yieldToEventLoop();
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
return {
|
|
245
|
+
content: [
|
|
246
|
+
{
|
|
247
|
+
type: 'text',
|
|
248
|
+
text: safeStringifyAdvanced({
|
|
249
|
+
success: true,
|
|
250
|
+
operation: 'streamBatch',
|
|
251
|
+
chunks: chunks.length,
|
|
252
|
+
results: chunks,
|
|
253
|
+
batchSize,
|
|
254
|
+
}).result,
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
case 'streamThrottle': {
|
|
260
|
+
if (data.length === 0) {
|
|
261
|
+
throw new Error('Data array required for streamThrottle operation');
|
|
262
|
+
}
|
|
263
|
+
const chunks = [];
|
|
264
|
+
for await (const chunk of streamThrottle(data, { throttleMs, chunkSize, signal })) {
|
|
265
|
+
chunks.push(chunk);
|
|
266
|
+
}
|
|
267
|
+
return {
|
|
268
|
+
content: [
|
|
269
|
+
{
|
|
270
|
+
type: 'text',
|
|
271
|
+
text: safeStringifyAdvanced({
|
|
272
|
+
success: true,
|
|
273
|
+
operation: 'streamThrottle',
|
|
274
|
+
chunks: chunks.length,
|
|
275
|
+
results: chunks,
|
|
276
|
+
throttleMs,
|
|
277
|
+
}).result,
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
case 'streamBuffer': {
|
|
283
|
+
if (data.length === 0) {
|
|
284
|
+
throw new Error('Data array required for streamBuffer operation');
|
|
285
|
+
}
|
|
286
|
+
const chunks = [];
|
|
287
|
+
for await (const chunk of streamBuffer(data, { bufferSize, chunkSize, signal })) {
|
|
288
|
+
chunks.push(chunk);
|
|
289
|
+
if (chunks.length % 5 === 0) {
|
|
290
|
+
await yieldToEventLoop();
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
return {
|
|
294
|
+
content: [
|
|
295
|
+
{
|
|
296
|
+
type: 'text',
|
|
297
|
+
text: safeStringifyAdvanced({
|
|
298
|
+
success: true,
|
|
299
|
+
operation: 'streamBuffer',
|
|
300
|
+
chunks: chunks.length,
|
|
301
|
+
results: chunks,
|
|
302
|
+
bufferSize,
|
|
303
|
+
}).result,
|
|
304
|
+
},
|
|
305
|
+
],
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
case 'streamParallel': {
|
|
309
|
+
if (data.length === 0) {
|
|
310
|
+
throw new Error('Data array required for streamParallel operation');
|
|
311
|
+
}
|
|
312
|
+
if (!transformFunction) {
|
|
313
|
+
throw new Error('Transform function required for parallel processing');
|
|
314
|
+
}
|
|
315
|
+
const transform = createSafeFunction(transformFunction, 'x');
|
|
316
|
+
const chunks = [];
|
|
317
|
+
for await (const chunk of streamParallel(data, transform, {
|
|
318
|
+
parallelism,
|
|
319
|
+
chunkSize,
|
|
320
|
+
signal,
|
|
321
|
+
})) {
|
|
322
|
+
chunks.push(chunk);
|
|
323
|
+
if (chunks.length % 3 === 0) {
|
|
324
|
+
await yieldToEventLoop();
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
return {
|
|
328
|
+
content: [
|
|
329
|
+
{
|
|
330
|
+
type: 'text',
|
|
331
|
+
text: safeStringifyAdvanced({
|
|
332
|
+
success: true,
|
|
333
|
+
operation: 'streamParallel',
|
|
334
|
+
chunks: chunks.length,
|
|
335
|
+
results: chunks,
|
|
336
|
+
parallelism,
|
|
337
|
+
transformFunction,
|
|
338
|
+
}).result,
|
|
339
|
+
},
|
|
340
|
+
],
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
case 'createAsyncIterator': {
|
|
344
|
+
if (!iteratorName || !iteratorCode) {
|
|
345
|
+
throw new Error('Iterator name and code required for createAsyncIterator');
|
|
346
|
+
}
|
|
347
|
+
const iteratorFactory = createSafeFunction(iteratorCode, 'signal');
|
|
348
|
+
const iterator = iteratorFactory(signal);
|
|
349
|
+
if (!iterator || typeof iterator[Symbol.asyncIterator] !== 'function') {
|
|
350
|
+
throw new Error('Iterator code must return an async iterable');
|
|
351
|
+
}
|
|
352
|
+
const chunks = [];
|
|
353
|
+
let index = 0;
|
|
354
|
+
for await (const value of iterator) {
|
|
355
|
+
safeThrowIfAborted(signal);
|
|
356
|
+
chunks.push({
|
|
357
|
+
data: value,
|
|
358
|
+
index: index++,
|
|
359
|
+
timestamp: new Date().toISOString(),
|
|
360
|
+
});
|
|
361
|
+
if (index > 100)
|
|
362
|
+
break;
|
|
363
|
+
if (index % 5 === 0) {
|
|
364
|
+
await yieldToEventLoop();
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
return {
|
|
368
|
+
content: [
|
|
369
|
+
{
|
|
370
|
+
type: 'text',
|
|
371
|
+
text: safeStringifyAdvanced({
|
|
372
|
+
success: true,
|
|
373
|
+
operation: 'createAsyncIterator',
|
|
374
|
+
iteratorName,
|
|
375
|
+
iterations: chunks.length,
|
|
376
|
+
results: chunks,
|
|
377
|
+
}).result,
|
|
378
|
+
},
|
|
379
|
+
],
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
case 'createWebReadableStream': {
|
|
383
|
+
if (data.length === 0) {
|
|
384
|
+
throw new Error('Data array required for createWebReadableStream operation');
|
|
385
|
+
}
|
|
386
|
+
const chunks = [];
|
|
387
|
+
const generator = streamArray(data, { chunkSize, signal });
|
|
388
|
+
const readableStream = asyncGeneratorToReadableStream(generator, { signal });
|
|
389
|
+
const { stream: collectorStream, getCollectedData } = createCollectorWritableStream({
|
|
390
|
+
signal,
|
|
391
|
+
});
|
|
392
|
+
try {
|
|
393
|
+
await readableStream.pipeTo(collectorStream, { signal });
|
|
394
|
+
const results = getCollectedData();
|
|
395
|
+
return {
|
|
396
|
+
content: [
|
|
397
|
+
{
|
|
398
|
+
type: 'text',
|
|
399
|
+
text: safeStringifyAdvanced({
|
|
400
|
+
success: true,
|
|
401
|
+
operation: 'createWebReadableStream',
|
|
402
|
+
streamType: 'ReadableStream',
|
|
403
|
+
chunks: results.length,
|
|
404
|
+
results,
|
|
405
|
+
totalItems: data.length,
|
|
406
|
+
}).result,
|
|
407
|
+
},
|
|
408
|
+
],
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
catch (error) {
|
|
412
|
+
if (error instanceof Error && error.message.includes('aborted')) {
|
|
413
|
+
return {
|
|
414
|
+
content: [
|
|
415
|
+
{
|
|
416
|
+
type: 'text',
|
|
417
|
+
text: safeStringifyAdvanced({
|
|
418
|
+
success: false,
|
|
419
|
+
aborted: true,
|
|
420
|
+
chunks: chunks.length,
|
|
421
|
+
}).result,
|
|
422
|
+
},
|
|
423
|
+
],
|
|
424
|
+
isError: true,
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
throw error;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
case 'createWebTransformStream': {
|
|
431
|
+
if (!transformFunction) {
|
|
432
|
+
throw new Error('Transform function required for createWebTransformStream operation');
|
|
433
|
+
}
|
|
434
|
+
if (data.length === 0) {
|
|
435
|
+
throw new Error('Data array required for createWebTransformStream operation');
|
|
436
|
+
}
|
|
437
|
+
const transform = createSafeFunction(transformFunction, 'x');
|
|
438
|
+
const _results = [];
|
|
439
|
+
const transformStream = createTransformStream(async (item) => transform(item), { signal });
|
|
440
|
+
const sourceGenerator = streamArray(data, { chunkSize, signal });
|
|
441
|
+
const sourceStream = asyncGeneratorToReadableStream(sourceGenerator, { signal });
|
|
442
|
+
const { stream: collectorStream, getCollectedData } = createCollectorWritableStream({
|
|
443
|
+
signal,
|
|
444
|
+
});
|
|
445
|
+
try {
|
|
446
|
+
await pipelineStreams(sourceStream, [transformStream], collectorStream, signal);
|
|
447
|
+
const transformedResults = getCollectedData();
|
|
448
|
+
return {
|
|
449
|
+
content: [
|
|
450
|
+
{
|
|
451
|
+
type: 'text',
|
|
452
|
+
text: safeStringifyAdvanced({
|
|
453
|
+
success: true,
|
|
454
|
+
operation: 'createWebTransformStream',
|
|
455
|
+
streamType: 'TransformStream',
|
|
456
|
+
chunks: transformedResults.length,
|
|
457
|
+
results: transformedResults,
|
|
458
|
+
transformFunction,
|
|
459
|
+
}).result,
|
|
460
|
+
},
|
|
461
|
+
],
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
catch (error) {
|
|
465
|
+
if (error instanceof Error && error.message.includes('aborted')) {
|
|
466
|
+
return {
|
|
467
|
+
content: [
|
|
468
|
+
{
|
|
469
|
+
type: 'text',
|
|
470
|
+
text: safeStringifyAdvanced({ success: false, aborted: true }).result,
|
|
471
|
+
},
|
|
472
|
+
],
|
|
473
|
+
isError: true,
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
throw error;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
case 'webStreamBackpressure': {
|
|
480
|
+
if (data.length === 0) {
|
|
481
|
+
throw new Error('Data array required for webStreamBackpressure operation');
|
|
482
|
+
}
|
|
483
|
+
const chunks = [];
|
|
484
|
+
for await (const item of streamWithBackpressure(data, async (x) => {
|
|
485
|
+
await scheduler.yield();
|
|
486
|
+
return x;
|
|
487
|
+
}, { chunkSize, signal, backpressure: true })) {
|
|
488
|
+
chunks.push({
|
|
489
|
+
data: item,
|
|
490
|
+
timestamp: new Date().toISOString(),
|
|
491
|
+
index: chunks.length,
|
|
492
|
+
});
|
|
493
|
+
if (chunks.length % 10 === 0) {
|
|
494
|
+
await yieldToEventLoop();
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
return {
|
|
498
|
+
content: [
|
|
499
|
+
{
|
|
500
|
+
type: 'text',
|
|
501
|
+
text: safeStringifyAdvanced({
|
|
502
|
+
success: true,
|
|
503
|
+
operation: 'webStreamBackpressure',
|
|
504
|
+
backpressureEnabled: true,
|
|
505
|
+
chunks: chunks.length,
|
|
506
|
+
results: chunks,
|
|
507
|
+
totalItems: data.length,
|
|
508
|
+
}).result,
|
|
509
|
+
},
|
|
510
|
+
],
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
case 'mergeWebStreams': {
|
|
514
|
+
if (streams.length === 0) {
|
|
515
|
+
throw new Error('Multiple streams required for mergeWebStreams operation');
|
|
516
|
+
}
|
|
517
|
+
const readableStreams = streams.map(streamData => {
|
|
518
|
+
const generator = streamArray(streamData, { chunkSize, signal });
|
|
519
|
+
return asyncGeneratorToReadableStream(generator, { signal });
|
|
520
|
+
});
|
|
521
|
+
const mergedStream = mergeReadableStreams(readableStreams, { signal });
|
|
522
|
+
const { stream: collectorStream, getCollectedData } = createCollectorWritableStream({
|
|
523
|
+
signal,
|
|
524
|
+
});
|
|
525
|
+
try {
|
|
526
|
+
await mergedStream.pipeTo(collectorStream, { signal });
|
|
527
|
+
const results = getCollectedData();
|
|
528
|
+
return {
|
|
529
|
+
content: [
|
|
530
|
+
{
|
|
531
|
+
type: 'text',
|
|
532
|
+
text: safeStringifyAdvanced({
|
|
533
|
+
success: true,
|
|
534
|
+
operation: 'mergeWebStreams',
|
|
535
|
+
streamType: 'MergedReadableStream',
|
|
536
|
+
streamCount: streams.length,
|
|
537
|
+
chunks: results.length,
|
|
538
|
+
results,
|
|
539
|
+
}).result,
|
|
540
|
+
},
|
|
541
|
+
],
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
catch (error) {
|
|
545
|
+
if (error instanceof Error && error.message.includes('aborted')) {
|
|
546
|
+
return {
|
|
547
|
+
content: [
|
|
548
|
+
{
|
|
549
|
+
type: 'text',
|
|
550
|
+
text: safeStringifyAdvanced({ success: false, aborted: true }).result,
|
|
551
|
+
},
|
|
552
|
+
],
|
|
553
|
+
isError: true,
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
throw error;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
case 'pipelineWebStreams': {
|
|
560
|
+
if (data.length === 0) {
|
|
561
|
+
throw new Error('Data array required for pipelineWebStreams operation');
|
|
562
|
+
}
|
|
563
|
+
if (!transformFunction) {
|
|
564
|
+
throw new Error('Transform function required for pipeline demonstration');
|
|
565
|
+
}
|
|
566
|
+
const transform = createSafeFunction(transformFunction, 'x');
|
|
567
|
+
const sourceGenerator = streamArray(data, { chunkSize, signal });
|
|
568
|
+
const sourceStream = asyncGeneratorToReadableStream(sourceGenerator, { signal });
|
|
569
|
+
const transforms = [
|
|
570
|
+
createBatchingTransformStream(batchSize, { signal }),
|
|
571
|
+
createTransformStream(async (batch) => batch.map(transform), { signal }),
|
|
572
|
+
createThrottlingTransformStream(throttleMs, { signal }),
|
|
573
|
+
];
|
|
574
|
+
const { stream: collectorStream, getCollectedData } = createCollectorWritableStream({
|
|
575
|
+
signal,
|
|
576
|
+
});
|
|
577
|
+
try {
|
|
578
|
+
await pipeline(sourceStream, ...transforms.map(t => t), collectorStream, { signal });
|
|
579
|
+
const results = getCollectedData();
|
|
580
|
+
return {
|
|
581
|
+
content: [
|
|
582
|
+
{
|
|
583
|
+
type: 'text',
|
|
584
|
+
text: safeStringifyAdvanced({
|
|
585
|
+
success: true,
|
|
586
|
+
operation: 'pipelineWebStreams',
|
|
587
|
+
pipelineStages: transforms.length,
|
|
588
|
+
transformFunction,
|
|
589
|
+
chunks: results.length,
|
|
590
|
+
results: results.flat(),
|
|
591
|
+
}).result,
|
|
592
|
+
},
|
|
593
|
+
],
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
catch (error) {
|
|
597
|
+
if (error instanceof Error && error.message.includes('aborted')) {
|
|
598
|
+
return {
|
|
599
|
+
content: [
|
|
600
|
+
{
|
|
601
|
+
type: 'text',
|
|
602
|
+
text: safeStringifyAdvanced({ success: false, aborted: true }).result,
|
|
603
|
+
},
|
|
604
|
+
],
|
|
605
|
+
isError: true,
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
throw error;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
default:
|
|
612
|
+
throw new Error(`Unknown streaming utilities action: ${action}`);
|
|
613
|
+
}
|
|
614
|
+
});
|
|
615
|
+
},
|
|
616
|
+
};
|
|
617
|
+
async function* streamArray(data, options = {}) {
|
|
618
|
+
const { chunkSize = 10, signal } = options;
|
|
619
|
+
let bytesProcessed = 0;
|
|
620
|
+
for (let i = 0; i < data.length; i += chunkSize) {
|
|
621
|
+
safeThrowIfAborted(signal);
|
|
622
|
+
const chunk = data.slice(i, i + chunkSize);
|
|
623
|
+
const chunkBytes = Buffer.byteLength(JSON.stringify(chunk), 'utf8');
|
|
624
|
+
bytesProcessed += chunkBytes;
|
|
625
|
+
yield {
|
|
626
|
+
data: chunk,
|
|
627
|
+
index: Math.floor(i / chunkSize),
|
|
628
|
+
isComplete: i + chunkSize >= data.length,
|
|
629
|
+
timestamp: new Date().toISOString(),
|
|
630
|
+
bytesProcessed,
|
|
631
|
+
metadata: {
|
|
632
|
+
chunkSize: chunk.length,
|
|
633
|
+
totalItems: data.length,
|
|
634
|
+
progress: Math.round(((i + chunk.length) / data.length) * 100),
|
|
635
|
+
},
|
|
636
|
+
};
|
|
637
|
+
await yieldToEventLoop();
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
async function* streamTransform(data, transformFn, options = {}) {
|
|
641
|
+
const { chunkSize = 10, signal } = options;
|
|
642
|
+
let bytesProcessed = 0;
|
|
643
|
+
for (let i = 0; i < data.length; i += chunkSize) {
|
|
644
|
+
safeThrowIfAborted(signal);
|
|
645
|
+
const chunk = data.slice(i, i + chunkSize);
|
|
646
|
+
const transformedChunk = chunk.map(transformFn);
|
|
647
|
+
const chunkBytes = Buffer.byteLength(JSON.stringify(transformedChunk), 'utf8');
|
|
648
|
+
bytesProcessed += chunkBytes;
|
|
649
|
+
yield {
|
|
650
|
+
data: transformedChunk,
|
|
651
|
+
index: Math.floor(i / chunkSize),
|
|
652
|
+
isComplete: i + chunkSize >= data.length,
|
|
653
|
+
timestamp: new Date().toISOString(),
|
|
654
|
+
bytesProcessed,
|
|
655
|
+
metadata: {
|
|
656
|
+
originalSize: chunk.length,
|
|
657
|
+
transformedSize: transformedChunk.length,
|
|
658
|
+
},
|
|
659
|
+
};
|
|
660
|
+
await yieldToEventLoop();
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
async function* streamFilter(data, filterFn, options = {}) {
|
|
664
|
+
const { chunkSize = 10, signal } = options;
|
|
665
|
+
let bytesProcessed = 0;
|
|
666
|
+
for (let i = 0; i < data.length; i += chunkSize) {
|
|
667
|
+
safeThrowIfAborted(signal);
|
|
668
|
+
const chunk = data.slice(i, i + chunkSize);
|
|
669
|
+
const filteredChunk = chunk.filter(filterFn);
|
|
670
|
+
const chunkBytes = Buffer.byteLength(JSON.stringify(filteredChunk), 'utf8');
|
|
671
|
+
bytesProcessed += chunkBytes;
|
|
672
|
+
yield {
|
|
673
|
+
data: filteredChunk,
|
|
674
|
+
index: Math.floor(i / chunkSize),
|
|
675
|
+
isComplete: i + chunkSize >= data.length,
|
|
676
|
+
timestamp: new Date().toISOString(),
|
|
677
|
+
bytesProcessed,
|
|
678
|
+
metadata: {
|
|
679
|
+
originalSize: chunk.length,
|
|
680
|
+
filteredSize: filteredChunk.length,
|
|
681
|
+
filterRatio: chunk.length > 0 ? filteredChunk.length / chunk.length : 0,
|
|
682
|
+
},
|
|
683
|
+
};
|
|
684
|
+
await yieldToEventLoop();
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
async function streamReduce(data, reduceFn, initialValue, options = {}) {
|
|
688
|
+
const { signal } = options;
|
|
689
|
+
let accumulator = initialValue;
|
|
690
|
+
for (let i = 0; i < data.length; i++) {
|
|
691
|
+
safeThrowIfAborted(signal);
|
|
692
|
+
const item = data[i];
|
|
693
|
+
if (item === undefined && !(i in data)) {
|
|
694
|
+
continue;
|
|
695
|
+
}
|
|
696
|
+
accumulator = reduceFn(accumulator, item);
|
|
697
|
+
if (i % 100 === 0) {
|
|
698
|
+
await yieldToEventLoop();
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
return accumulator;
|
|
702
|
+
}
|
|
703
|
+
async function* streamMerge(streams, options = {}) {
|
|
704
|
+
const { chunkSize = 10, signal } = options;
|
|
705
|
+
const iterators = streams.map(stream => streamArray(stream, { chunkSize, signal }));
|
|
706
|
+
let chunkIndex = 0;
|
|
707
|
+
let bytesProcessed = 0;
|
|
708
|
+
while (iterators.length > 0) {
|
|
709
|
+
safeThrowIfAborted(signal);
|
|
710
|
+
for (let i = iterators.length - 1; i >= 0; i--) {
|
|
711
|
+
const iterator = iterators[i];
|
|
712
|
+
if (!iterator) {
|
|
713
|
+
continue;
|
|
714
|
+
}
|
|
715
|
+
const { value, done } = await iterator.next();
|
|
716
|
+
if (done) {
|
|
717
|
+
iterators.splice(i, 1);
|
|
718
|
+
continue;
|
|
719
|
+
}
|
|
720
|
+
const chunk = value.data;
|
|
721
|
+
const chunkBytes = Buffer.byteLength(JSON.stringify(chunk), 'utf8');
|
|
722
|
+
bytesProcessed += chunkBytes;
|
|
723
|
+
yield {
|
|
724
|
+
data: chunk,
|
|
725
|
+
index: chunkIndex++,
|
|
726
|
+
isComplete: iterators.length === 1 && i === iterators.length - 1,
|
|
727
|
+
timestamp: new Date().toISOString(),
|
|
728
|
+
bytesProcessed,
|
|
729
|
+
metadata: {
|
|
730
|
+
sourceStream: streams.length - iterators.length,
|
|
731
|
+
remainingStreams: iterators.length,
|
|
732
|
+
},
|
|
733
|
+
};
|
|
734
|
+
await yieldToEventLoop();
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
async function* streamBatch(data, options = {}) {
|
|
739
|
+
const { batchSize = 5, signal } = options;
|
|
740
|
+
let bytesProcessed = 0;
|
|
741
|
+
for (let i = 0; i < data.length; i += batchSize) {
|
|
742
|
+
safeThrowIfAborted(signal);
|
|
743
|
+
const batch = data.slice(i, i + batchSize);
|
|
744
|
+
const groupedBatch = [batch];
|
|
745
|
+
const chunkBytes = Buffer.byteLength(JSON.stringify(groupedBatch), 'utf8');
|
|
746
|
+
bytesProcessed += chunkBytes;
|
|
747
|
+
yield {
|
|
748
|
+
data: groupedBatch,
|
|
749
|
+
index: Math.floor(i / batchSize),
|
|
750
|
+
isComplete: i + batchSize >= data.length,
|
|
751
|
+
timestamp: new Date().toISOString(),
|
|
752
|
+
bytesProcessed,
|
|
753
|
+
metadata: {
|
|
754
|
+
batchSize: batch.length,
|
|
755
|
+
totalBatches: Math.ceil(data.length / batchSize),
|
|
756
|
+
},
|
|
757
|
+
};
|
|
758
|
+
await yieldToEventLoop();
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
async function* streamThrottle(data, options = {}) {
|
|
762
|
+
const { throttleMs = 100, chunkSize = 10, signal } = options;
|
|
763
|
+
for await (const chunk of streamArray(data, { chunkSize, signal })) {
|
|
764
|
+
safeThrowIfAborted(signal);
|
|
765
|
+
yield chunk;
|
|
766
|
+
if (!chunk.isComplete && throttleMs > 0) {
|
|
767
|
+
await scheduler.wait(throttleMs);
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
async function* streamBuffer(data, options = {}) {
|
|
772
|
+
const { bufferSize = 1000, chunkSize = 10, signal } = options;
|
|
773
|
+
const buffer = [];
|
|
774
|
+
for await (const chunk of streamArray(data, { chunkSize, signal })) {
|
|
775
|
+
safeThrowIfAborted(signal);
|
|
776
|
+
buffer.push(...chunk.data);
|
|
777
|
+
if (buffer.length >= bufferSize || chunk.isComplete) {
|
|
778
|
+
const bufferedData = buffer.splice(0, buffer.length);
|
|
779
|
+
yield {
|
|
780
|
+
...chunk,
|
|
781
|
+
data: bufferedData,
|
|
782
|
+
metadata: {
|
|
783
|
+
...chunk.metadata,
|
|
784
|
+
bufferSize: bufferedData.length,
|
|
785
|
+
bufferFull: bufferedData.length >= bufferSize,
|
|
786
|
+
},
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
async function* streamParallel(data, transformFn, options = {}) {
|
|
792
|
+
const { parallelism = 4, chunkSize = 10, signal } = options;
|
|
793
|
+
let bytesProcessed = 0;
|
|
794
|
+
for (let i = 0; i < data.length; i += chunkSize * parallelism) {
|
|
795
|
+
safeThrowIfAborted(signal);
|
|
796
|
+
const batchFunctions = [];
|
|
797
|
+
for (let j = 0; j < parallelism && i + j * chunkSize < data.length; j++) {
|
|
798
|
+
const batchStart = i + j * chunkSize;
|
|
799
|
+
const batchEnd = Math.min(batchStart + chunkSize, data.length);
|
|
800
|
+
const batch = data.slice(batchStart, batchEnd);
|
|
801
|
+
batchFunctions.push(async () => withRetry(async () => batch.map(transformFn)));
|
|
802
|
+
}
|
|
803
|
+
const results = await ioQueue.addAll(batchFunctions);
|
|
804
|
+
const flatResults = results.flat();
|
|
805
|
+
const chunkBytes = Buffer.byteLength(JSON.stringify(flatResults), 'utf8');
|
|
806
|
+
bytesProcessed += chunkBytes;
|
|
807
|
+
yield {
|
|
808
|
+
data: flatResults,
|
|
809
|
+
index: Math.floor(i / (chunkSize * parallelism)),
|
|
810
|
+
isComplete: i + chunkSize * parallelism >= data.length,
|
|
811
|
+
timestamp: new Date().toISOString(),
|
|
812
|
+
bytesProcessed,
|
|
813
|
+
metadata: {
|
|
814
|
+
parallelBatches: batchFunctions.length,
|
|
815
|
+
parallelism,
|
|
816
|
+
processedItems: flatResults.length,
|
|
817
|
+
},
|
|
818
|
+
};
|
|
819
|
+
await yieldToEventLoop();
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
//# sourceMappingURL=streaming-utilities.js.map
|