@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,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview ESLint configuration for Storybook v10 projects
|
|
3
|
+
*
|
|
4
|
+
* Extends Next.js config and adds Storybook-specific rules for story files.
|
|
5
|
+
* Optimized for Storybook v10 with Next.js integration.
|
|
6
|
+
*
|
|
7
|
+
* **Features**:
|
|
8
|
+
* - Storybook v10 recommended rules
|
|
9
|
+
* - Story file patterns (.stories.tsx, .stories.mdx)
|
|
10
|
+
* - Storybook config file support (.storybook/**)
|
|
11
|
+
* - Type-aware linting disabled for performance
|
|
12
|
+
*
|
|
13
|
+
* **Use cases**:
|
|
14
|
+
* - Storybook documentation sites
|
|
15
|
+
* - Component development with Storybook
|
|
16
|
+
* - Storybook stories and addons
|
|
17
|
+
*
|
|
18
|
+
* **Note**: Should be combined with Next.js config and test config:
|
|
19
|
+
* ```javascript
|
|
20
|
+
* import nextConfig from '@od-oneapp/config/eslint/next';
|
|
21
|
+
* import storybookConfig from '@od-oneapp/config/eslint/storybook';
|
|
22
|
+
* import testConfig from '@od-oneapp/config/eslint/test';
|
|
23
|
+
* export default [...nextConfig, ...storybookConfig, ...testConfig];
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```javascript
|
|
28
|
+
* // eslint.config.mjs
|
|
29
|
+
* import nextConfig from '@od-oneapp/config/eslint/next';
|
|
30
|
+
* import storybookConfig from '@od-oneapp/config/eslint/storybook';
|
|
31
|
+
* import testConfig from '@od-oneapp/config/eslint/test';
|
|
32
|
+
*
|
|
33
|
+
* export default [...nextConfig, ...storybookConfig, ...testConfig];
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
import storybook from 'eslint-plugin-storybook';
|
|
38
|
+
import tseslint from 'typescript-eslint';
|
|
39
|
+
|
|
40
|
+
import nextConfig from './next.mjs';
|
|
41
|
+
import { DISABLED_TYPE_AWARE_RULES } from './shared/disabled-type-aware-rules.mjs';
|
|
42
|
+
import { createValidatedConfig } from './utils/create-validated-config.mjs';
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Storybook ESLint configuration
|
|
46
|
+
*
|
|
47
|
+
* @type {import('typescript-eslint').ConfigArray}
|
|
48
|
+
*/
|
|
49
|
+
const config = tseslint.config(
|
|
50
|
+
...nextConfig,
|
|
51
|
+
// Storybook-specific configuration for story files and Storybook config files
|
|
52
|
+
// This config extends Next.js and adds Storybook v10 specific rules
|
|
53
|
+
{
|
|
54
|
+
files: [
|
|
55
|
+
'**/*.stories.@(ts|tsx|js|jsx|mjs|mdx)',
|
|
56
|
+
'**/.storybook/**/*.{ts,tsx,js,jsx,mjs}',
|
|
57
|
+
// Test files in stories directory
|
|
58
|
+
'**/stories/**/*.test.{ts,tsx}',
|
|
59
|
+
'**/stories/**/*.spec.{ts,tsx}',
|
|
60
|
+
],
|
|
61
|
+
languageOptions: {
|
|
62
|
+
parserOptions: {
|
|
63
|
+
// Disable type-aware linting for Storybook config files to avoid project service errors
|
|
64
|
+
projectService: false,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
plugins: {
|
|
68
|
+
storybook,
|
|
69
|
+
},
|
|
70
|
+
rules: {
|
|
71
|
+
// Storybook v10 recommended rules
|
|
72
|
+
...storybook.configs.recommended.rules,
|
|
73
|
+
// Disable type-aware rules that require project service
|
|
74
|
+
...DISABLED_TYPE_AWARE_RULES,
|
|
75
|
+
// Allow console.log in Storybook files for demonstration purposes
|
|
76
|
+
'no-console': 'off',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
export default createValidatedConfig(config, 'storybook');
|
package/eslint/test.mjs
ADDED
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview ESLint configuration for test files
|
|
3
|
+
*
|
|
4
|
+
* Extends base config and adds test framework rules for Vitest, Cypress, and Playwright.
|
|
5
|
+
* Optimized for test file patterns and test-specific best practices.
|
|
6
|
+
*
|
|
7
|
+
* **Features**:
|
|
8
|
+
* - Vitest rules (recommended + custom)
|
|
9
|
+
* - Cypress E2E test rules
|
|
10
|
+
* - Playwright E2E test rules
|
|
11
|
+
* - Testing Library rules
|
|
12
|
+
* - Jest-DOM matcher rules
|
|
13
|
+
* - Type-aware linting disabled for performance
|
|
14
|
+
*
|
|
15
|
+
* **Supported test frameworks**:
|
|
16
|
+
* - Vitest (unit and integration tests)
|
|
17
|
+
* - Cypress (E2E tests)
|
|
18
|
+
* - Playwright (E2E tests)
|
|
19
|
+
* - Testing Library (component tests)
|
|
20
|
+
*
|
|
21
|
+
* **Note**: Automatically applies to test file patterns. Include alongside your framework config:
|
|
22
|
+
* ```javascript
|
|
23
|
+
* import nextConfig from '@od-oneapp/config/eslint/next';
|
|
24
|
+
* import testConfig from '@od-oneapp/config/eslint/test';
|
|
25
|
+
* export default [...nextConfig, ...testConfig];
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```javascript
|
|
30
|
+
* // eslint.config.mjs
|
|
31
|
+
* import nextConfig from '@od-oneapp/config/eslint/next';
|
|
32
|
+
* import testConfig from '@od-oneapp/config/eslint/test';
|
|
33
|
+
*
|
|
34
|
+
* export default [...nextConfig, ...testConfig];
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
import vitestPlugin from '@vitest/eslint-plugin';
|
|
39
|
+
import cypressPlugin from 'eslint-plugin-cypress';
|
|
40
|
+
import jestDom from 'eslint-plugin-jest-dom';
|
|
41
|
+
import playwrightPlugin from 'eslint-plugin-playwright';
|
|
42
|
+
import testingLibrary from 'eslint-plugin-testing-library';
|
|
43
|
+
import tseslint from 'typescript-eslint';
|
|
44
|
+
|
|
45
|
+
import baseConfig from './base.mjs';
|
|
46
|
+
import { DISABLED_TYPE_AWARE_RULES } from './shared/disabled-type-aware-rules.mjs';
|
|
47
|
+
import { createValidatedConfig } from './utils/create-validated-config.mjs';
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Test files ESLint configuration
|
|
51
|
+
*
|
|
52
|
+
* @type {import('typescript-eslint').ConfigArray}
|
|
53
|
+
*/
|
|
54
|
+
const config = tseslint.config(
|
|
55
|
+
...baseConfig,
|
|
56
|
+
// Test file configuration for Vitest, Cypress, and Playwright
|
|
57
|
+
{
|
|
58
|
+
files: [
|
|
59
|
+
// Vitest test files
|
|
60
|
+
'**/*.test.{ts,tsx,js,jsx,mjs}',
|
|
61
|
+
'**/*.spec.{ts,tsx,js,jsx,mjs}',
|
|
62
|
+
'**/test/**/*.{ts,tsx,js,jsx,mjs}',
|
|
63
|
+
'**/tests/**/*.{ts,tsx,js,jsx,mjs}',
|
|
64
|
+
'**/__tests__/**/*.{ts,tsx,js,jsx,mjs}',
|
|
65
|
+
// Cypress test files
|
|
66
|
+
'**/cypress/**/*.{ts,tsx,js,jsx}',
|
|
67
|
+
'**/cypress.config.{ts,js,mjs}',
|
|
68
|
+
'**/cypress.env.{ts,js,mjs}',
|
|
69
|
+
// Playwright test files
|
|
70
|
+
'**/playwright/**/*.{ts,tsx,js,jsx}',
|
|
71
|
+
'**/playwright.config.{ts,js,mjs}',
|
|
72
|
+
'**/*.playwright.{ts,tsx,js,jsx}',
|
|
73
|
+
// Vitest config files (excluding Storybook-specific ones)
|
|
74
|
+
'**/vitest.config.{ts,js,mjs}',
|
|
75
|
+
// Vitest setup files
|
|
76
|
+
'**/vitest.setup.{ts,js,mjs}',
|
|
77
|
+
'**/vitest/setup/**/*.{ts,tsx,js,jsx,mjs}',
|
|
78
|
+
// General test utilities and helpers
|
|
79
|
+
'**/*.test-utils.{ts,tsx,js,jsx}',
|
|
80
|
+
'**/*.test-helpers.{ts,tsx,js,jsx}',
|
|
81
|
+
'**/vitest/utils/**/*.{ts,tsx,js,jsx,mjs}',
|
|
82
|
+
'**/test-utils/**/*.{ts,tsx,js,jsx,mjs}',
|
|
83
|
+
'**/test-helpers/**/*.{ts,tsx,js,jsx,mjs}',
|
|
84
|
+
],
|
|
85
|
+
// Explicitly exclude Storybook files - handled by Storybook config
|
|
86
|
+
ignores: [
|
|
87
|
+
'**/.storybook/**',
|
|
88
|
+
'**/*.stories.{ts,tsx,js,jsx,mjs}',
|
|
89
|
+
// Exclude test files in stories directory - they're handled by Storybook config
|
|
90
|
+
'**/stories/**/*.test.{ts,tsx}',
|
|
91
|
+
'**/stories/**/*.spec.{ts,tsx}',
|
|
92
|
+
],
|
|
93
|
+
plugins: {
|
|
94
|
+
vitest: vitestPlugin,
|
|
95
|
+
cypress: cypressPlugin,
|
|
96
|
+
playwright: playwrightPlugin,
|
|
97
|
+
'testing-library': testingLibrary,
|
|
98
|
+
'jest-dom': jestDom,
|
|
99
|
+
},
|
|
100
|
+
languageOptions: {
|
|
101
|
+
globals: {
|
|
102
|
+
// Vitest globals
|
|
103
|
+
describe: 'readonly',
|
|
104
|
+
it: 'readonly',
|
|
105
|
+
test: 'readonly',
|
|
106
|
+
expect: 'readonly',
|
|
107
|
+
vi: 'readonly',
|
|
108
|
+
beforeEach: 'readonly',
|
|
109
|
+
afterEach: 'readonly',
|
|
110
|
+
beforeAll: 'readonly',
|
|
111
|
+
afterAll: 'readonly',
|
|
112
|
+
// Playwright globals (when using @playwright/test)
|
|
113
|
+
// Note: expect is also provided by Playwright, but Vitest's expect takes precedence
|
|
114
|
+
page: 'readonly',
|
|
115
|
+
context: 'readonly',
|
|
116
|
+
browser: 'readonly',
|
|
117
|
+
request: 'readonly',
|
|
118
|
+
chromium: 'readonly',
|
|
119
|
+
firefox: 'readonly',
|
|
120
|
+
webkit: 'readonly',
|
|
121
|
+
// Cypress globals
|
|
122
|
+
cy: 'readonly',
|
|
123
|
+
Cypress: 'readonly',
|
|
124
|
+
},
|
|
125
|
+
parserOptions: {
|
|
126
|
+
// Disable type-aware linting for test files to improve performance
|
|
127
|
+
// Test files often don't need full type checking and this speeds up linting
|
|
128
|
+
projectService: false,
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
rules: {
|
|
132
|
+
// ============================================================================
|
|
133
|
+
// Vitest Rules
|
|
134
|
+
// ============================================================================
|
|
135
|
+
...vitestPlugin.configs.recommended.rules,
|
|
136
|
+
'vitest/consistent-test-it': ['error', { fn: 'test', withinDescribe: 'it' }],
|
|
137
|
+
'vitest/no-alias-methods': 'error',
|
|
138
|
+
'vitest/no-commented-out-tests': 'warn',
|
|
139
|
+
'vitest/no-conditional-expect': 'off', // Allow conditionals in mocks and test utilities
|
|
140
|
+
'vitest/no-conditional-in-test': 'off', // Allow conditionals in mocks and test utilities
|
|
141
|
+
'vitest/no-disabled-tests': 'warn',
|
|
142
|
+
'vitest/no-done-callback': 'error',
|
|
143
|
+
'vitest/no-duplicate-hooks': 'error',
|
|
144
|
+
'vitest/no-focused-tests': 'error',
|
|
145
|
+
'vitest/no-identical-title': 'error',
|
|
146
|
+
'vitest/no-interpolation-in-snapshots': 'error',
|
|
147
|
+
'vitest/no-large-snapshots': 'warn',
|
|
148
|
+
'vitest/no-mocks-import': 'error',
|
|
149
|
+
'vitest/no-standalone-expect': 'error',
|
|
150
|
+
'vitest/no-test-prefixes': 'error',
|
|
151
|
+
'vitest/no-test-return-statement': 'error',
|
|
152
|
+
'vitest/prefer-called-with': 'warn',
|
|
153
|
+
'vitest/prefer-comparison-matcher': 'warn',
|
|
154
|
+
'vitest/prefer-each': 'warn',
|
|
155
|
+
'vitest/prefer-equality-matcher': 'warn',
|
|
156
|
+
'vitest/prefer-expect-assertions': 'off', // Can be noisy
|
|
157
|
+
'vitest/prefer-expect-resolves': 'error',
|
|
158
|
+
'vitest/prefer-hooks-in-order': 'error',
|
|
159
|
+
'vitest/prefer-hooks-on-top': 'error',
|
|
160
|
+
'vitest/prefer-lowercase-title': ['error', { ignoreTopLevelDescribe: true }],
|
|
161
|
+
'vitest/prefer-mock-promise-shorthand': 'warn',
|
|
162
|
+
'vitest/prefer-snapshot-hint': 'warn',
|
|
163
|
+
'vitest/prefer-spy-on': 'warn',
|
|
164
|
+
'vitest/prefer-strict-equal': 'warn',
|
|
165
|
+
'vitest/prefer-todo': 'warn',
|
|
166
|
+
'vitest/require-hook': 'off', // Allow top-level operations in test factories and setup
|
|
167
|
+
'vitest/require-to-throw-message': 'warn',
|
|
168
|
+
'vitest/require-top-level-describe': 'off', // Flexible for test organization
|
|
169
|
+
'vitest/valid-describe-callback': 'error',
|
|
170
|
+
'vitest/valid-expect': 'error',
|
|
171
|
+
'vitest/valid-title': 'error',
|
|
172
|
+
|
|
173
|
+
// ============================================================================
|
|
174
|
+
// Cypress Rules
|
|
175
|
+
// ============================================================================
|
|
176
|
+
...cypressPlugin.configs.recommended.rules,
|
|
177
|
+
'cypress/assertion-before-screenshot': 'warn',
|
|
178
|
+
'cypress/no-assigning-return-values': 'error',
|
|
179
|
+
'cypress/no-async-tests': 'error',
|
|
180
|
+
'cypress/no-force': 'warn',
|
|
181
|
+
'cypress/no-pause': 'error',
|
|
182
|
+
'cypress/no-unnecessary-waiting': 'error',
|
|
183
|
+
|
|
184
|
+
// ============================================================================
|
|
185
|
+
// Playwright Rules
|
|
186
|
+
// ============================================================================
|
|
187
|
+
'playwright/expect-expect': 'warn',
|
|
188
|
+
'playwright/max-nested-describe': ['warn', { max: 5 }],
|
|
189
|
+
'playwright/missing-playwright-await': 'error',
|
|
190
|
+
'playwright/no-conditional-expect': 'off', // Allow conditionals in test utilities
|
|
191
|
+
'playwright/no-conditional-in-test': 'off', // Allow conditionals in test utilities
|
|
192
|
+
'playwright/no-element-handle': 'warn',
|
|
193
|
+
'playwright/no-eval': 'error',
|
|
194
|
+
'playwright/no-focused-test': 'error',
|
|
195
|
+
'playwright/no-force-option': 'warn',
|
|
196
|
+
'playwright/no-page-pause': 'error',
|
|
197
|
+
'playwright/no-useless-await': 'error',
|
|
198
|
+
'playwright/no-wait-for-timeout': 'warn',
|
|
199
|
+
'playwright/prefer-web-first-assertions': 'error',
|
|
200
|
+
'playwright/valid-expect': 'error',
|
|
201
|
+
|
|
202
|
+
// ============================================================================
|
|
203
|
+
// Testing Library Rules
|
|
204
|
+
// ============================================================================
|
|
205
|
+
'testing-library/await-async-queries': 'error',
|
|
206
|
+
'testing-library/no-await-sync-queries': 'error',
|
|
207
|
+
'testing-library/no-debugging-utils': 'warn',
|
|
208
|
+
'testing-library/prefer-screen-queries': 'error',
|
|
209
|
+
'testing-library/no-container': 'warn',
|
|
210
|
+
'testing-library/no-node-access': 'warn',
|
|
211
|
+
|
|
212
|
+
// ============================================================================
|
|
213
|
+
// Jest-DOM Rules
|
|
214
|
+
// ============================================================================
|
|
215
|
+
'jest-dom/prefer-checked': 'warn',
|
|
216
|
+
'jest-dom/prefer-enabled-disabled': 'warn',
|
|
217
|
+
'jest-dom/prefer-in-document': 'warn',
|
|
218
|
+
'jest-dom/prefer-required': 'warn',
|
|
219
|
+
'jest-dom/prefer-to-have-attribute': 'warn',
|
|
220
|
+
|
|
221
|
+
// ============================================================================
|
|
222
|
+
// Test-Specific Overrides
|
|
223
|
+
// ============================================================================
|
|
224
|
+
// Disable type-aware rules for test files (type checking disabled for performance)
|
|
225
|
+
...DISABLED_TYPE_AWARE_RULES,
|
|
226
|
+
|
|
227
|
+
// Allow console in tests
|
|
228
|
+
'no-console': 'off',
|
|
229
|
+
|
|
230
|
+
// Allow explicit undefined in mocks for type safety (e.g., mockResolvedValue(undefined) for Promise<void>)
|
|
231
|
+
'unicorn/no-useless-undefined': 'off',
|
|
232
|
+
|
|
233
|
+
// Allow explicit any in tests (mocks, test utilities, etc.)
|
|
234
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
235
|
+
|
|
236
|
+
// Allow non-null assertions in tests (common for accessing mock properties)
|
|
237
|
+
// Note: Already disabled via DISABLED_TYPE_AWARE_RULES, but explicit here for clarity
|
|
238
|
+
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
239
|
+
|
|
240
|
+
// Allow array callback references in tests (common pattern for test data)
|
|
241
|
+
// This is 'error' in react config, but tests often need function references
|
|
242
|
+
'unicorn/no-array-callback-reference': 'off',
|
|
243
|
+
|
|
244
|
+
// Relax security and promise rules in tests
|
|
245
|
+
'security/detect-object-injection': 'off',
|
|
246
|
+
'promise/always-return': 'off',
|
|
247
|
+
'promise/catch-or-return': 'off',
|
|
248
|
+
|
|
249
|
+
// Note: unused-imports/no-unused-vars from base config handles unused vars with _ prefix pattern
|
|
250
|
+
// No need to re-enable @typescript-eslint/no-unused-vars (would cause double reporting)
|
|
251
|
+
|
|
252
|
+
// Note: import/no-extraneous-dependencies is handled in the import plugin override below
|
|
253
|
+
// (only applies when test.mjs is combined with react.mjs or next.mjs which have the import plugin)
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
// Import plugin override - only applies when combined with react.mjs/next.mjs
|
|
258
|
+
// This config block is safely ignored if import plugin isn't loaded
|
|
259
|
+
files: [
|
|
260
|
+
'**/*.test.{ts,tsx,js,jsx,mjs}',
|
|
261
|
+
'**/*.spec.{ts,tsx,js,jsx,mjs}',
|
|
262
|
+
'**/test/**/*.{ts,tsx,js,jsx,mjs}',
|
|
263
|
+
'**/tests/**/*.{ts,tsx,js,jsx,mjs}',
|
|
264
|
+
'**/__tests__/**/*.{ts,tsx,js,jsx,mjs}',
|
|
265
|
+
],
|
|
266
|
+
rules: {
|
|
267
|
+
'import/no-extraneous-dependencies': 'off', // Test files can import dev dependencies
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
// Separate config for test config files (vitest.config.ts, cypress.config.ts, etc.)
|
|
271
|
+
// Excludes .storybook/** files which are handled by Storybook config
|
|
272
|
+
{
|
|
273
|
+
files: [
|
|
274
|
+
'**/vitest.config.{ts,js,mjs}',
|
|
275
|
+
'**/cypress.config.{ts,js,mjs}',
|
|
276
|
+
'**/playwright.config.{ts,js,mjs}',
|
|
277
|
+
// Vitest setup files (excluding .storybook/** which is ignored)
|
|
278
|
+
'**/vitest.setup.{ts,js,mjs}',
|
|
279
|
+
'**/setupTests.{ts,js,mjs}',
|
|
280
|
+
'**/test-setup.{ts,js,mjs}',
|
|
281
|
+
],
|
|
282
|
+
ignores: ['**/.storybook/**'],
|
|
283
|
+
languageOptions: {
|
|
284
|
+
parserOptions: {
|
|
285
|
+
// Disable type-aware linting for test config files
|
|
286
|
+
projectService: false,
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
rules: {
|
|
290
|
+
// Config files don't need type-aware linting
|
|
291
|
+
...DISABLED_TYPE_AWARE_RULES,
|
|
292
|
+
// Setup files need to run code at top level
|
|
293
|
+
'vitest/require-hook': 'off',
|
|
294
|
+
},
|
|
295
|
+
},
|
|
296
|
+
);
|
|
297
|
+
|
|
298
|
+
export default createValidatedConfig(config, 'test');
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { describe, expect, it, vi, beforeEach } from 'vitest';
|
|
2
|
+
|
|
3
|
+
import { createValidatedConfig } from '../create-validated-config.mjs';
|
|
4
|
+
|
|
5
|
+
describe('createValidatedConfig', () => {
|
|
6
|
+
beforeEach(() => {
|
|
7
|
+
vi.resetModules();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('should return config directly and cache it', () => {
|
|
11
|
+
const config = [{ rules: {} }];
|
|
12
|
+
const result = createValidatedConfig(config, 'test');
|
|
13
|
+
expect(result).toBe(config);
|
|
14
|
+
|
|
15
|
+
// Calling again should hit cache
|
|
16
|
+
const result2 = createValidatedConfig(config, 'test');
|
|
17
|
+
expect(result2).toBe(config);
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should throw if config is invalid in development', () => {
|
|
21
|
+
const originalEnv = process.env.NODE_ENV;
|
|
22
|
+
process.env.NODE_ENV = 'development';
|
|
23
|
+
|
|
24
|
+
// Passing a non-object to trigger validation failure
|
|
25
|
+
// Note: WeakMap will throw if we try to set it later, but validation should throw first
|
|
26
|
+
expect(() => createValidatedConfig(null, 'test')).toThrow();
|
|
27
|
+
|
|
28
|
+
process.env.NODE_ENV = originalEnv;
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it('should skip validation if not in development', () => {
|
|
32
|
+
const originalEnv = process.env.NODE_ENV;
|
|
33
|
+
process.env.NODE_ENV = 'production';
|
|
34
|
+
|
|
35
|
+
// An object that would fail validation if it was enabled
|
|
36
|
+
const invalidConfig = { rules: 'not-an-object' };
|
|
37
|
+
const result = createValidatedConfig(invalidConfig, 'test');
|
|
38
|
+
expect(result).toBe(invalidConfig);
|
|
39
|
+
|
|
40
|
+
process.env.NODE_ENV = originalEnv;
|
|
41
|
+
});
|
|
42
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
filterTypeScriptESLintConfigs,
|
|
5
|
+
filterPluginsForNextJs,
|
|
6
|
+
} from '../filter-ts-eslint-configs.mjs';
|
|
7
|
+
|
|
8
|
+
describe('filter-ts-eslint-configs', () => {
|
|
9
|
+
describe('filterTypeScriptESLintConfigs', () => {
|
|
10
|
+
it('should filter configs by name', () => {
|
|
11
|
+
const configs = [
|
|
12
|
+
{ name: 'typescript-eslint/recommended', rules: {} },
|
|
13
|
+
{ name: 'my-config', rules: {} },
|
|
14
|
+
];
|
|
15
|
+
const result = filterTypeScriptESLintConfigs(configs);
|
|
16
|
+
expect(result).toHaveLength(1);
|
|
17
|
+
expect(result[0].name).toBe('my-config');
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should filter configs by plugin', () => {
|
|
21
|
+
const configs = [
|
|
22
|
+
{ plugins: { '@typescript-eslint': {} }, rules: {} },
|
|
23
|
+
{ plugins: { other: {} }, rules: {} },
|
|
24
|
+
];
|
|
25
|
+
const result = filterTypeScriptESLintConfigs(configs);
|
|
26
|
+
expect(result).toHaveLength(1);
|
|
27
|
+
expect(result[0].plugins).toHaveProperty('other');
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it('should keep null/undefined configs', () => {
|
|
31
|
+
const configs = [null, undefined, { name: 'test' }];
|
|
32
|
+
const result = filterTypeScriptESLintConfigs(configs);
|
|
33
|
+
expect(result).toHaveLength(3);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
describe('filterPluginsForNextJs', () => {
|
|
38
|
+
it('should filter conflicting plugins', () => {
|
|
39
|
+
const configs = [{ plugins: { import: {}, other: {} }, rules: {} }];
|
|
40
|
+
const result = filterPluginsForNextJs(configs);
|
|
41
|
+
expect(result[0].plugins).toHaveProperty('other');
|
|
42
|
+
expect(result[0].plugins).not.toHaveProperty('import');
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
it('should remove plugins property if empty after filtering', () => {
|
|
46
|
+
const configs = [{ plugins: { import: {} }, rules: {} }];
|
|
47
|
+
const result = filterPluginsForNextJs(configs);
|
|
48
|
+
expect(result[0]).not.toHaveProperty('plugins');
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
it('should return as-is if no plugins or no conflicts', () => {
|
|
52
|
+
const configs = [{ rules: {} }, { plugins: { other: {} }, rules: {} }];
|
|
53
|
+
const result = filterPluginsForNextJs(configs);
|
|
54
|
+
expect(result).toEqual(configs);
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
});
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview validate-config.test.mjs
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { describe, expect, it } from 'vitest';
|
|
6
|
+
|
|
7
|
+
import { validateAllConfigs, validateESLintConfig } from '../validate-config.mjs';
|
|
8
|
+
|
|
9
|
+
describe('validateESLintConfig', () => {
|
|
10
|
+
it('should validate a valid config object', () => {
|
|
11
|
+
const config = {
|
|
12
|
+
files: ['**/*.ts'],
|
|
13
|
+
rules: {
|
|
14
|
+
'no-console': 'warn',
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
expect(validateESLintConfig(config, 'test')).toBe(true);
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should validate a valid config array', () => {
|
|
21
|
+
const config = [
|
|
22
|
+
{ files: ['**/*.ts'], rules: {} },
|
|
23
|
+
{ files: ['**/*.js'], rules: {} },
|
|
24
|
+
];
|
|
25
|
+
expect(validateESLintConfig(config, 'test')).toBe(true);
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it('should reject null config', () => {
|
|
29
|
+
expect(() => validateESLintConfig(null, 'test')).toThrow(
|
|
30
|
+
'[test] Config must be an object or array',
|
|
31
|
+
);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
it('should reject non-object config', () => {
|
|
35
|
+
expect(() => validateESLintConfig('invalid', 'test')).toThrow(
|
|
36
|
+
'[test] Config must be an object or array',
|
|
37
|
+
);
|
|
38
|
+
expect(() => validateESLintConfig(123, 'test')).toThrow(
|
|
39
|
+
'[test] Config must be an object or array',
|
|
40
|
+
);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
it('should validate config with plugins', () => {
|
|
44
|
+
const config = {
|
|
45
|
+
plugins: {
|
|
46
|
+
react: {},
|
|
47
|
+
},
|
|
48
|
+
rules: {},
|
|
49
|
+
};
|
|
50
|
+
expect(validateESLintConfig(config, 'test')).toBe(true);
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
it('should reject config with invalid plugins type', () => {
|
|
54
|
+
const config = {
|
|
55
|
+
plugins: 'invalid', // Should be object
|
|
56
|
+
};
|
|
57
|
+
expect(() => validateESLintConfig(config, 'test')).toThrow('[test] plugins must be an object');
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it('should reject config with invalid rules type', () => {
|
|
61
|
+
const config = {
|
|
62
|
+
rules: 'invalid', // Should be object
|
|
63
|
+
};
|
|
64
|
+
expect(() => validateESLintConfig(config, 'test')).toThrow('[test] rules must be an object');
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
it('should reject config with invalid languageOptions type', () => {
|
|
68
|
+
const config = {
|
|
69
|
+
languageOptions: 'invalid', // Should be object
|
|
70
|
+
};
|
|
71
|
+
expect(() => validateESLintConfig(config, 'test')).toThrow(
|
|
72
|
+
'[test] languageOptions must be an object',
|
|
73
|
+
);
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
it('should validate nested array configs', () => {
|
|
77
|
+
const config = [
|
|
78
|
+
{ files: ['**/*.ts'], rules: {} },
|
|
79
|
+
[
|
|
80
|
+
{ files: ['**/*.js'], rules: {} },
|
|
81
|
+
{ files: ['**/*.mjs'], rules: {} },
|
|
82
|
+
],
|
|
83
|
+
];
|
|
84
|
+
expect(validateESLintConfig(config, 'test')).toBe(true);
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
describe('validateAllConfigs', () => {
|
|
89
|
+
it('should validate all configs successfully', () => {
|
|
90
|
+
const configs = {
|
|
91
|
+
node: { files: ['**/*.ts'], rules: {} },
|
|
92
|
+
react: { files: ['**/*.tsx'], rules: {} },
|
|
93
|
+
};
|
|
94
|
+
expect(validateAllConfigs(configs)).toBe(true);
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
it('should throw if any config is invalid', () => {
|
|
98
|
+
const configs = {
|
|
99
|
+
valid: { files: ['**/*.ts'], rules: {} },
|
|
100
|
+
invalid: { plugins: 'invalid' },
|
|
101
|
+
};
|
|
102
|
+
expect(() => validateAllConfigs(configs)).toThrow('[invalid] plugins must be an object');
|
|
103
|
+
});
|
|
104
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Utility for creating validated ESLint configurations
|
|
3
|
+
*
|
|
4
|
+
* Provides caching and development-mode validation for ESLint configs.
|
|
5
|
+
* Helps catch configuration errors early during development without impacting production builds.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { validateESLintConfig } from './validate-config.mjs';
|
|
9
|
+
|
|
10
|
+
// Use console.error to avoid cross-package dependency cycles in @od-oneapp/config.
|
|
11
|
+
const logError = console.error;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Cache for validated configs to avoid redundant validation on repeated imports.
|
|
15
|
+
*
|
|
16
|
+
* Uses WeakMap to allow garbage collection of config objects when they're no longer referenced.
|
|
17
|
+
* This prevents memory leaks when configs are recreated or replaced.
|
|
18
|
+
*
|
|
19
|
+
* @type {WeakMap<object, boolean>}
|
|
20
|
+
*/
|
|
21
|
+
const validatedConfigsCache = new WeakMap();
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Creates a validated ESLint config that checks structure in development mode.
|
|
25
|
+
* This helps catch configuration errors early during development.
|
|
26
|
+
*
|
|
27
|
+
* Includes caching to avoid redundant validation when configs are imported
|
|
28
|
+
* multiple times (e.g., base -> react -> next chain).
|
|
29
|
+
*
|
|
30
|
+
* @param {import('typescript-eslint').ConfigArray} config - The ESLint config array from tseslint.config()
|
|
31
|
+
* @param {string} configName - Name of the config for error messages (e.g., 'react', 'node')
|
|
32
|
+
* @returns {import('typescript-eslint').ConfigArray} The validated config array
|
|
33
|
+
* @throws {Error} If config is invalid in development mode
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* import tseslint from 'typescript-eslint';
|
|
37
|
+
* import { createValidatedConfig } from './utils/create-validated-config.mjs';
|
|
38
|
+
*
|
|
39
|
+
* const config = tseslint.config(...);
|
|
40
|
+
* export default createValidatedConfig(config, 'react');
|
|
41
|
+
*/
|
|
42
|
+
export function createValidatedConfig(config, configName = 'config') {
|
|
43
|
+
// Skip if already validated (cache hit)
|
|
44
|
+
if (validatedConfigsCache.has(config)) {
|
|
45
|
+
return config;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Only validate in development mode to avoid impacting production builds
|
|
49
|
+
// NODE_ENV is commonly used for development/production distinction
|
|
50
|
+
const isDevelopment = process.env.NODE_ENV === 'development' || !process.env.NODE_ENV;
|
|
51
|
+
|
|
52
|
+
if (isDevelopment) {
|
|
53
|
+
try {
|
|
54
|
+
validateESLintConfig(config, configName);
|
|
55
|
+
} catch (error) {
|
|
56
|
+
// Provide helpful error message with context
|
|
57
|
+
const message = `\n❌ ESLint config validation failed for "${configName}": ${error.message}\nThis error is only shown in development mode.\n`;
|
|
58
|
+
// logError is either the logger function (takes message, context) or console.error (takes message, ...args)
|
|
59
|
+
// Both will work - logger will use context, console will log all args
|
|
60
|
+
logError(message, { configName, error });
|
|
61
|
+
throw error;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Mark as validated in cache
|
|
66
|
+
validatedConfigsCache.set(config, true);
|
|
67
|
+
|
|
68
|
+
return config;
|
|
69
|
+
}
|