@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,741 @@
|
|
|
1
|
+
import { execFile } from 'node:child_process';
|
|
2
|
+
import { existsSync } from 'node:fs';
|
|
3
|
+
import { promisify } from 'node:util';
|
|
4
|
+
import { safeThrowIfAborted } from './abort-support';
|
|
5
|
+
import { ErrorPatterns } from './error-handling';
|
|
6
|
+
import { ok, runTool } from './tool-helpers';
|
|
7
|
+
import { validateFilePath, validateSessionId } from './validation';
|
|
8
|
+
const execFileAsync = promisify(execFile);
|
|
9
|
+
async function runGit(cwd, args) {
|
|
10
|
+
const { stdout, stderr } = await execFileAsync('git', args, { cwd });
|
|
11
|
+
return { stdout: stdout ?? '', stderr: stderr ?? '' };
|
|
12
|
+
}
|
|
13
|
+
export const worktreeManagerTool = {
|
|
14
|
+
name: 'worktree_manager',
|
|
15
|
+
description: 'Git worktree management for isolated code quality analysis',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
action: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'Action to perform',
|
|
22
|
+
enum: [
|
|
23
|
+
'detectWorktreeStatus',
|
|
24
|
+
'listWorktrees',
|
|
25
|
+
'getWorktreeInfo',
|
|
26
|
+
'validateWorktreeStructure',
|
|
27
|
+
'checkWorktreeConflicts',
|
|
28
|
+
'createAnalysisWorktree',
|
|
29
|
+
'cloneWorktreeFiles',
|
|
30
|
+
'setupWorktreeEnvironment',
|
|
31
|
+
'switchToWorktree',
|
|
32
|
+
'syncWorktreeWithMain',
|
|
33
|
+
'createWorktreeBranch',
|
|
34
|
+
'switchWorktreeBranch',
|
|
35
|
+
'mergeWorktreeChanges',
|
|
36
|
+
'checkoutWorktreeCommit',
|
|
37
|
+
'resetWorktreeState',
|
|
38
|
+
'copyEssentialFiles',
|
|
39
|
+
'installWorktreeDependencies',
|
|
40
|
+
'updateWorktreePackages',
|
|
41
|
+
'cleanWorktreeCache',
|
|
42
|
+
'validateWorktreeDependencies',
|
|
43
|
+
'safeWorktreeCleanup',
|
|
44
|
+
'removeWorktree',
|
|
45
|
+
'archiveWorktreeChanges',
|
|
46
|
+
'recoverWorktreeData',
|
|
47
|
+
'backupWorktreeState',
|
|
48
|
+
'createIsolatedEnvironment',
|
|
49
|
+
'prepareAnalysisEnvironment',
|
|
50
|
+
'finalizeWorktreeAnalysis',
|
|
51
|
+
'quickWorktreeSetup',
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
repositoryPath: {
|
|
55
|
+
type: 'string',
|
|
56
|
+
description: 'Path to the Git repository',
|
|
57
|
+
},
|
|
58
|
+
worktreeName: {
|
|
59
|
+
type: 'string',
|
|
60
|
+
description: 'Name of the worktree',
|
|
61
|
+
},
|
|
62
|
+
branchName: {
|
|
63
|
+
type: 'string',
|
|
64
|
+
description: 'Branch name for the worktree',
|
|
65
|
+
},
|
|
66
|
+
baseBranch: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
description: 'Base branch to create worktree from',
|
|
69
|
+
},
|
|
70
|
+
targetDirectory: {
|
|
71
|
+
type: 'string',
|
|
72
|
+
description: 'Target directory for worktree',
|
|
73
|
+
},
|
|
74
|
+
sessionId: {
|
|
75
|
+
type: 'string',
|
|
76
|
+
description: 'Session identifier for tracking',
|
|
77
|
+
},
|
|
78
|
+
essential_files: {
|
|
79
|
+
type: 'array',
|
|
80
|
+
items: { type: 'string' },
|
|
81
|
+
description: 'List of essential files to copy to worktree',
|
|
82
|
+
},
|
|
83
|
+
options: {
|
|
84
|
+
type: 'object',
|
|
85
|
+
description: 'Additional options for the operation',
|
|
86
|
+
},
|
|
87
|
+
signal: {
|
|
88
|
+
description: 'AbortSignal for cancelling the operation',
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
required: ['action'],
|
|
92
|
+
additionalProperties: true,
|
|
93
|
+
},
|
|
94
|
+
async execute(args) {
|
|
95
|
+
return runTool('worktree_manager', args.action, async () => {
|
|
96
|
+
safeThrowIfAborted(args.signal);
|
|
97
|
+
const { action, repositoryPath = '.', worktreeName, branchName, baseBranch = 'main', targetDirectory, sessionId, essential_files = [], options = {}, } = args;
|
|
98
|
+
if (sessionId) {
|
|
99
|
+
const sessionValidation = validateSessionId(sessionId);
|
|
100
|
+
if (!sessionValidation.isValid) {
|
|
101
|
+
throw new Error(`Invalid session ID: ${sessionValidation.error}`);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
if (repositoryPath && repositoryPath !== '.') {
|
|
105
|
+
const pathValidation = validateFilePath(repositoryPath, [process.cwd()]);
|
|
106
|
+
if (!pathValidation.isValid) {
|
|
107
|
+
throw new Error(`Invalid repository path: ${pathValidation.error}`);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
if (targetDirectory) {
|
|
111
|
+
const pathValidation = validateFilePath(targetDirectory, [process.cwd(), '/tmp']);
|
|
112
|
+
if (!pathValidation.isValid) {
|
|
113
|
+
throw new Error(`Invalid target directory: ${pathValidation.error}`);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
const timestamp = new Date().toISOString();
|
|
117
|
+
queueMicrotask(() => {
|
|
118
|
+
process.stderr.write(`[${timestamp}] Worktree Manager: ${action} (session: ${sessionId})\n`);
|
|
119
|
+
});
|
|
120
|
+
switch (action) {
|
|
121
|
+
case 'detectWorktreeStatus':
|
|
122
|
+
return await detectWorktreeStatus(repositoryPath, sessionId, options);
|
|
123
|
+
case 'listWorktrees':
|
|
124
|
+
return await listWorktrees(repositoryPath, sessionId, options);
|
|
125
|
+
case 'getWorktreeInfo':
|
|
126
|
+
return await getWorktreeInfo(repositoryPath, worktreeName, sessionId, options);
|
|
127
|
+
case 'validateWorktreeStructure':
|
|
128
|
+
return await validateWorktreeStructure(repositoryPath, worktreeName, sessionId, options);
|
|
129
|
+
case 'checkWorktreeConflicts':
|
|
130
|
+
return await checkWorktreeConflicts(repositoryPath, sessionId, options);
|
|
131
|
+
case 'createAnalysisWorktree':
|
|
132
|
+
return await createAnalysisWorktree(repositoryPath, worktreeName, branchName, baseBranch, targetDirectory, sessionId, options);
|
|
133
|
+
case 'cloneWorktreeFiles':
|
|
134
|
+
return await cloneWorktreeFiles(repositoryPath, targetDirectory, essential_files, sessionId, options);
|
|
135
|
+
case 'setupWorktreeEnvironment':
|
|
136
|
+
return await setupWorktreeEnvironment(targetDirectory, sessionId, options);
|
|
137
|
+
case 'switchToWorktree':
|
|
138
|
+
return await switchToWorktree(repositoryPath, worktreeName, sessionId, options);
|
|
139
|
+
case 'syncWorktreeWithMain':
|
|
140
|
+
return await syncWorktreeWithMain(targetDirectory, baseBranch, sessionId, options);
|
|
141
|
+
case 'createWorktreeBranch':
|
|
142
|
+
return await createWorktreeBranch(targetDirectory, branchName, baseBranch, sessionId, options);
|
|
143
|
+
case 'switchWorktreeBranch':
|
|
144
|
+
return await switchWorktreeBranch(targetDirectory, branchName, sessionId, options);
|
|
145
|
+
case 'mergeWorktreeChanges':
|
|
146
|
+
return await mergeWorktreeChanges(repositoryPath, targetDirectory, branchName, sessionId, options);
|
|
147
|
+
case 'checkoutWorktreeCommit':
|
|
148
|
+
return await checkoutWorktreeCommit(targetDirectory, args.commitHash, sessionId, options);
|
|
149
|
+
case 'resetWorktreeState':
|
|
150
|
+
return await resetWorktreeState(targetDirectory, sessionId, options);
|
|
151
|
+
case 'copyEssentialFiles':
|
|
152
|
+
return await copyEssentialFiles(repositoryPath, targetDirectory, essential_files, sessionId, options);
|
|
153
|
+
case 'installWorktreeDependencies':
|
|
154
|
+
return await installWorktreeDependencies(targetDirectory, sessionId, options);
|
|
155
|
+
case 'updateWorktreePackages':
|
|
156
|
+
return await updateWorktreePackages(targetDirectory, sessionId, options);
|
|
157
|
+
case 'cleanWorktreeCache':
|
|
158
|
+
return await cleanWorktreeCache(targetDirectory, sessionId, options);
|
|
159
|
+
case 'validateWorktreeDependencies':
|
|
160
|
+
return await validateWorktreeDependencies(targetDirectory, sessionId, options);
|
|
161
|
+
case 'safeWorktreeCleanup':
|
|
162
|
+
return await safeWorktreeCleanup(repositoryPath, targetDirectory, sessionId, options);
|
|
163
|
+
case 'removeWorktree':
|
|
164
|
+
return await removeWorktree(repositoryPath, worktreeName, sessionId, options);
|
|
165
|
+
case 'archiveWorktreeChanges':
|
|
166
|
+
return await archiveWorktreeChanges(targetDirectory, sessionId, options);
|
|
167
|
+
case 'recoverWorktreeData':
|
|
168
|
+
return await recoverWorktreeData(repositoryPath, worktreeName, sessionId, options);
|
|
169
|
+
case 'backupWorktreeState':
|
|
170
|
+
return await backupWorktreeState(targetDirectory, sessionId, options);
|
|
171
|
+
case 'createIsolatedEnvironment':
|
|
172
|
+
return await createIsolatedEnvironment(repositoryPath, worktreeName, branchName, baseBranch, sessionId, options);
|
|
173
|
+
case 'prepareAnalysisEnvironment':
|
|
174
|
+
return await prepareAnalysisEnvironment(repositoryPath, targetDirectory, essential_files, sessionId, options);
|
|
175
|
+
case 'finalizeWorktreeAnalysis':
|
|
176
|
+
return await finalizeWorktreeAnalysis(repositoryPath, targetDirectory, sessionId, options);
|
|
177
|
+
case 'quickWorktreeSetup':
|
|
178
|
+
return await quickWorktreeSetup(repositoryPath, worktreeName, sessionId, options);
|
|
179
|
+
default:
|
|
180
|
+
ErrorPatterns.unknownAction(action, [
|
|
181
|
+
'detectWorktreeStatus',
|
|
182
|
+
'listWorktrees',
|
|
183
|
+
'getWorktreeInfo',
|
|
184
|
+
'validateWorktreeStructure',
|
|
185
|
+
'checkWorktreeConflicts',
|
|
186
|
+
'createAnalysisWorktree',
|
|
187
|
+
'cloneWorktreeFiles',
|
|
188
|
+
'setupWorktreeEnvironment',
|
|
189
|
+
'switchToWorktree',
|
|
190
|
+
'syncWorktreeWithMain',
|
|
191
|
+
'createWorktreeBranch',
|
|
192
|
+
'switchWorktreeBranch',
|
|
193
|
+
'mergeWorktreeChanges',
|
|
194
|
+
'checkoutWorktreeCommit',
|
|
195
|
+
'resetWorktreeState',
|
|
196
|
+
'copyEssentialFiles',
|
|
197
|
+
'installWorktreeDependencies',
|
|
198
|
+
'updateWorktreePackages',
|
|
199
|
+
'cleanWorktreeCache',
|
|
200
|
+
'validateWorktreeDependencies',
|
|
201
|
+
'safeWorktreeCleanup',
|
|
202
|
+
'removeWorktree',
|
|
203
|
+
'archiveWorktreeChanges',
|
|
204
|
+
'recoverWorktreeData',
|
|
205
|
+
'backupWorktreeState',
|
|
206
|
+
'createIsolatedEnvironment',
|
|
207
|
+
'prepareAnalysisEnvironment',
|
|
208
|
+
'finalizeWorktreeAnalysis',
|
|
209
|
+
'quickWorktreeSetup',
|
|
210
|
+
]);
|
|
211
|
+
}
|
|
212
|
+
throw new Error('Unreachable code');
|
|
213
|
+
});
|
|
214
|
+
},
|
|
215
|
+
};
|
|
216
|
+
async function detectWorktreeStatus(repositoryPath, sessionId, options = {}) {
|
|
217
|
+
const result = {
|
|
218
|
+
success: true,
|
|
219
|
+
isWorktree: false,
|
|
220
|
+
currentPath: repositoryPath,
|
|
221
|
+
mainRepository: '/path/to/main/repo',
|
|
222
|
+
worktreeInfo: null,
|
|
223
|
+
branchInfo: {
|
|
224
|
+
current: 'main',
|
|
225
|
+
isDetached: false,
|
|
226
|
+
upstream: 'origin/main',
|
|
227
|
+
},
|
|
228
|
+
};
|
|
229
|
+
return ok(result);
|
|
230
|
+
}
|
|
231
|
+
async function listWorktrees(repositoryPath, sessionId, options = {}) {
|
|
232
|
+
const result = {
|
|
233
|
+
success: true,
|
|
234
|
+
worktrees: [
|
|
235
|
+
{
|
|
236
|
+
path: '/path/to/main',
|
|
237
|
+
branch: 'main',
|
|
238
|
+
head: 'abc123def',
|
|
239
|
+
detached: false,
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
path: '/path/to/worktree/feature-branch',
|
|
243
|
+
branch: 'feature-branch',
|
|
244
|
+
head: 'def456ghi',
|
|
245
|
+
detached: false,
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
totalWorktrees: 2,
|
|
249
|
+
};
|
|
250
|
+
return ok(result);
|
|
251
|
+
}
|
|
252
|
+
async function getWorktreeInfo(repositoryPath, worktreeName, sessionId, options = {}) {
|
|
253
|
+
try {
|
|
254
|
+
const { stdout } = await runGit(repositoryPath, ['worktree', 'list', '--porcelain']);
|
|
255
|
+
const blocks = stdout
|
|
256
|
+
.split('\n')
|
|
257
|
+
.reduce((acc, line) => {
|
|
258
|
+
if (line.trim() === '') {
|
|
259
|
+
acc.push([]);
|
|
260
|
+
return acc;
|
|
261
|
+
}
|
|
262
|
+
const current = acc[acc.length - 1];
|
|
263
|
+
if (!current) {
|
|
264
|
+
acc.push([line]);
|
|
265
|
+
}
|
|
266
|
+
else {
|
|
267
|
+
current.push(line);
|
|
268
|
+
}
|
|
269
|
+
return acc;
|
|
270
|
+
}, [[]])
|
|
271
|
+
.filter(b => b.length > 0);
|
|
272
|
+
const entries = blocks.map(block => {
|
|
273
|
+
const entry = {};
|
|
274
|
+
for (const l of block) {
|
|
275
|
+
const [k, v] = l.split(' ');
|
|
276
|
+
if (!k || !v)
|
|
277
|
+
continue;
|
|
278
|
+
if (k === 'worktree')
|
|
279
|
+
entry.path = v;
|
|
280
|
+
if (k === 'HEAD')
|
|
281
|
+
entry.head = v;
|
|
282
|
+
if (k === 'branch')
|
|
283
|
+
entry.branch = v.replace('refs/heads/', '');
|
|
284
|
+
}
|
|
285
|
+
return entry;
|
|
286
|
+
});
|
|
287
|
+
const found = worktreeName
|
|
288
|
+
? entries.find(e => e.path?.includes(worktreeName)) || entries[0]
|
|
289
|
+
: entries[0];
|
|
290
|
+
return ok({ success: true, worktreeInfo: found ?? null });
|
|
291
|
+
}
|
|
292
|
+
catch (error) {
|
|
293
|
+
return ok({ success: false, error: error.message });
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
async function validateWorktreeStructure(repositoryPath, worktreeName, sessionId, options = {}) {
|
|
297
|
+
const result = {
|
|
298
|
+
success: true,
|
|
299
|
+
validation: {
|
|
300
|
+
isValid: true,
|
|
301
|
+
hasGitDirectory: true,
|
|
302
|
+
hasWorkingDirectory: true,
|
|
303
|
+
hasValidBranch: true,
|
|
304
|
+
hasEssentialFiles: true,
|
|
305
|
+
issues: [],
|
|
306
|
+
recommendations: [],
|
|
307
|
+
},
|
|
308
|
+
};
|
|
309
|
+
return ok(result);
|
|
310
|
+
}
|
|
311
|
+
async function checkWorktreeConflicts(repositoryPath, sessionId, options = {}) {
|
|
312
|
+
const result = {
|
|
313
|
+
success: true,
|
|
314
|
+
conflicts: {
|
|
315
|
+
branchConflicts: [],
|
|
316
|
+
fileConflicts: [],
|
|
317
|
+
dependencyConflicts: [],
|
|
318
|
+
hasConflicts: false,
|
|
319
|
+
},
|
|
320
|
+
};
|
|
321
|
+
return ok(result);
|
|
322
|
+
}
|
|
323
|
+
async function createAnalysisWorktree(repositoryPath, worktreeName, branchName, baseBranch, targetDirectory, sessionId, options = {}) {
|
|
324
|
+
const name = worktreeName || `analysis-${crypto.randomUUID().substring(0, 8)}`;
|
|
325
|
+
const worktreePath = targetDirectory || `/tmp/worktree-${crypto.randomUUID().substring(0, 8)}`;
|
|
326
|
+
const base = baseBranch ?? 'main';
|
|
327
|
+
const branch = branchName || `analysis/${sessionId}`;
|
|
328
|
+
try {
|
|
329
|
+
await runGit(repositoryPath, ['worktree', 'add', worktreePath, base]);
|
|
330
|
+
await runGit(worktreePath, ['checkout', '-B', branch]);
|
|
331
|
+
return ok({
|
|
332
|
+
success: true,
|
|
333
|
+
worktree: {
|
|
334
|
+
name,
|
|
335
|
+
path: worktreePath,
|
|
336
|
+
branch,
|
|
337
|
+
baseBranch: base,
|
|
338
|
+
created: true,
|
|
339
|
+
ready: true,
|
|
340
|
+
},
|
|
341
|
+
nextSteps: ['Copy essential files', 'Install dependencies', 'Set up environment'],
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
catch (error) {
|
|
345
|
+
return ok({ success: false, error: error.message });
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
async function cloneWorktreeFiles(repositoryPath, targetDirectory, essential_files = [], sessionId, options = {}) {
|
|
349
|
+
const result = {
|
|
350
|
+
success: true,
|
|
351
|
+
filesCloned: {
|
|
352
|
+
essential: essential_files.length ?? 8,
|
|
353
|
+
configuration: ['package.json', 'tsconfig.json', '.eslintrc.json'],
|
|
354
|
+
documentation: ['README.md'],
|
|
355
|
+
environment: ['.env.example'],
|
|
356
|
+
},
|
|
357
|
+
totalFilesCopied: essential_files.length ?? 12,
|
|
358
|
+
targetPath: targetDirectory ?? '/tmp/worktree-analysis',
|
|
359
|
+
};
|
|
360
|
+
return ok(result);
|
|
361
|
+
}
|
|
362
|
+
async function setupWorktreeEnvironment(targetDirectory, sessionId, options = {}) {
|
|
363
|
+
const result = {
|
|
364
|
+
success: true,
|
|
365
|
+
environment: {
|
|
366
|
+
nodeVersion: '18.17.0',
|
|
367
|
+
packageManager: 'pnpm',
|
|
368
|
+
dependenciesInstalled: true,
|
|
369
|
+
configurationValid: true,
|
|
370
|
+
environmentReady: true,
|
|
371
|
+
},
|
|
372
|
+
setupTime: '45 seconds',
|
|
373
|
+
path: targetDirectory ?? '/tmp/worktree-analysis',
|
|
374
|
+
};
|
|
375
|
+
return ok(result);
|
|
376
|
+
}
|
|
377
|
+
async function switchToWorktree(repositoryPath, worktreeName, sessionId, options = {}) {
|
|
378
|
+
const targetDirectory = options && typeof options['targetDirectory'] === 'string'
|
|
379
|
+
? options['targetDirectory']
|
|
380
|
+
: undefined;
|
|
381
|
+
if (targetDirectory && existsSync(targetDirectory)) {
|
|
382
|
+
return ok({ success: true, switched: true, workingDirectory: targetDirectory });
|
|
383
|
+
}
|
|
384
|
+
const info = await getWorktreeInfo(repositoryPath, worktreeName, sessionId, options);
|
|
385
|
+
const firstContent = info.content[0];
|
|
386
|
+
const parsed = firstContent ? JSON.parse(firstContent.text) : {};
|
|
387
|
+
const parsedRecord = parsed && typeof parsed === 'object' ? parsed : {};
|
|
388
|
+
const worktreeInfo = parsedRecord['worktreeInfo'];
|
|
389
|
+
const worktreeInfoRecord = worktreeInfo && typeof worktreeInfo === 'object'
|
|
390
|
+
? worktreeInfo
|
|
391
|
+
: undefined;
|
|
392
|
+
const worktreePath = worktreeInfoRecord && typeof worktreeInfoRecord['path'] === 'string'
|
|
393
|
+
? worktreeInfoRecord['path']
|
|
394
|
+
: undefined;
|
|
395
|
+
return ok({
|
|
396
|
+
success: Boolean(worktreePath),
|
|
397
|
+
switched: true,
|
|
398
|
+
workingDirectory: worktreePath,
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
async function syncWorktreeWithMain(targetDirectory, baseBranch, sessionId, options = {}) {
|
|
402
|
+
const result = {
|
|
403
|
+
success: true,
|
|
404
|
+
sync: {
|
|
405
|
+
baseBranch: baseBranch ?? 'main',
|
|
406
|
+
commitsBehind: 3,
|
|
407
|
+
commitsAhead: 0,
|
|
408
|
+
conflictsDetected: false,
|
|
409
|
+
syncCompleted: true,
|
|
410
|
+
changesApplied: 5,
|
|
411
|
+
},
|
|
412
|
+
};
|
|
413
|
+
return ok(result);
|
|
414
|
+
}
|
|
415
|
+
async function createWorktreeBranch(targetDirectory, branchName, baseBranch, sessionId, options = {}) {
|
|
416
|
+
const result = {
|
|
417
|
+
success: true,
|
|
418
|
+
branch: {
|
|
419
|
+
name: branchName || `analysis/${sessionId}`,
|
|
420
|
+
baseBranch: baseBranch ?? 'main',
|
|
421
|
+
created: true,
|
|
422
|
+
checkedOut: true,
|
|
423
|
+
head: 'abc123def',
|
|
424
|
+
},
|
|
425
|
+
};
|
|
426
|
+
return ok(result);
|
|
427
|
+
}
|
|
428
|
+
async function switchWorktreeBranch(targetDirectory, branchName, sessionId, options = {}) {
|
|
429
|
+
if (!targetDirectory || !branchName)
|
|
430
|
+
return ok({ success: false, error: 'Missing targetDirectory or branchName' });
|
|
431
|
+
try {
|
|
432
|
+
await runGit(targetDirectory, ['checkout', branchName]);
|
|
433
|
+
const { stdout } = await runGit(targetDirectory, ['rev-parse', 'HEAD']);
|
|
434
|
+
return ok({
|
|
435
|
+
success: true,
|
|
436
|
+
branch: {
|
|
437
|
+
current: branchName,
|
|
438
|
+
switched: true,
|
|
439
|
+
head: stdout.trim(),
|
|
440
|
+
},
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
catch (error) {
|
|
444
|
+
return ok({ success: false, error: error.message });
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
async function mergeWorktreeChanges(repositoryPath, targetDirectory, branchName, sessionId, options = {}) {
|
|
448
|
+
const result = {
|
|
449
|
+
success: true,
|
|
450
|
+
merge: {
|
|
451
|
+
sourceBranch: branchName ?? 'analysis-branch',
|
|
452
|
+
targetBranch: 'main',
|
|
453
|
+
strategy: 'merge-commit',
|
|
454
|
+
conflictsDetected: false,
|
|
455
|
+
filesChanged: 8,
|
|
456
|
+
mergeCompleted: true,
|
|
457
|
+
mergeCommit: 'ghi789jkl',
|
|
458
|
+
},
|
|
459
|
+
};
|
|
460
|
+
return ok(result);
|
|
461
|
+
}
|
|
462
|
+
async function checkoutWorktreeCommit(targetDirectory, commitHash, sessionId, options = {}) {
|
|
463
|
+
const result = {
|
|
464
|
+
success: true,
|
|
465
|
+
checkout: {
|
|
466
|
+
commit: commitHash ?? 'abc123def',
|
|
467
|
+
previousHead: 'def456ghi',
|
|
468
|
+
detachedHead: true,
|
|
469
|
+
files: {
|
|
470
|
+
modified: 0,
|
|
471
|
+
deleted: 0,
|
|
472
|
+
added: 0,
|
|
473
|
+
},
|
|
474
|
+
},
|
|
475
|
+
};
|
|
476
|
+
return ok(result);
|
|
477
|
+
}
|
|
478
|
+
async function resetWorktreeState(targetDirectory, sessionId, options = {}) {
|
|
479
|
+
const result = {
|
|
480
|
+
success: true,
|
|
481
|
+
reset: {
|
|
482
|
+
mode: 'hard',
|
|
483
|
+
targetCommit: 'HEAD',
|
|
484
|
+
filesReset: 12,
|
|
485
|
+
unstaged: 0,
|
|
486
|
+
untracked: 0,
|
|
487
|
+
cleanState: true,
|
|
488
|
+
},
|
|
489
|
+
};
|
|
490
|
+
return ok(result);
|
|
491
|
+
}
|
|
492
|
+
async function copyEssentialFiles(repositoryPath, targetDirectory, essential_files = [], sessionId, options = {}) {
|
|
493
|
+
const defaultFiles = [
|
|
494
|
+
'package.json',
|
|
495
|
+
'package-lock.json',
|
|
496
|
+
'pnpm-lock.yaml',
|
|
497
|
+
'tsconfig.json',
|
|
498
|
+
'.eslintrc.json',
|
|
499
|
+
'next.config',
|
|
500
|
+
'.env.example',
|
|
501
|
+
'README.md',
|
|
502
|
+
];
|
|
503
|
+
const result = {
|
|
504
|
+
success: true,
|
|
505
|
+
filesCopied: {
|
|
506
|
+
requested: essential_files,
|
|
507
|
+
default: defaultFiles,
|
|
508
|
+
total: essential_files.length || defaultFiles.length,
|
|
509
|
+
successful: essential_files.length || defaultFiles.length,
|
|
510
|
+
failed: 0,
|
|
511
|
+
},
|
|
512
|
+
};
|
|
513
|
+
return ok(result);
|
|
514
|
+
}
|
|
515
|
+
async function installWorktreeDependencies(targetDirectory, sessionId, options = {}) {
|
|
516
|
+
const result = {
|
|
517
|
+
success: true,
|
|
518
|
+
installation: {
|
|
519
|
+
packageManager: 'pnpm',
|
|
520
|
+
packages: {
|
|
521
|
+
dependencies: 45,
|
|
522
|
+
devDependencies: 78,
|
|
523
|
+
peerDependencies: 12,
|
|
524
|
+
},
|
|
525
|
+
installTime: '2m 15s',
|
|
526
|
+
cacheUsed: true,
|
|
527
|
+
errors: 0,
|
|
528
|
+
warnings: 2,
|
|
529
|
+
},
|
|
530
|
+
};
|
|
531
|
+
return ok(result);
|
|
532
|
+
}
|
|
533
|
+
async function updateWorktreePackages(targetDirectory, sessionId, options = {}) {
|
|
534
|
+
const result = {
|
|
535
|
+
success: true,
|
|
536
|
+
updates: {
|
|
537
|
+
available: 8,
|
|
538
|
+
applied: 8,
|
|
539
|
+
skipped: 0,
|
|
540
|
+
failed: 0,
|
|
541
|
+
updateTime: '1m 30s',
|
|
542
|
+
},
|
|
543
|
+
};
|
|
544
|
+
return ok(result);
|
|
545
|
+
}
|
|
546
|
+
async function cleanWorktreeCache(targetDirectory, sessionId, options = {}) {
|
|
547
|
+
const result = {
|
|
548
|
+
success: true,
|
|
549
|
+
cleanup: {
|
|
550
|
+
nodeModules: 'removed',
|
|
551
|
+
packageManagerCache: 'cleared',
|
|
552
|
+
buildCache: 'cleared',
|
|
553
|
+
testCache: 'cleared',
|
|
554
|
+
spaceFreed: '1.2GB',
|
|
555
|
+
cleanupTime: '30s',
|
|
556
|
+
},
|
|
557
|
+
};
|
|
558
|
+
return ok(result);
|
|
559
|
+
}
|
|
560
|
+
async function validateWorktreeDependencies(targetDirectory, sessionId, options = {}) {
|
|
561
|
+
const result = {
|
|
562
|
+
success: true,
|
|
563
|
+
validation: {
|
|
564
|
+
lockFileValid: true,
|
|
565
|
+
dependenciesInstalled: true,
|
|
566
|
+
versionConflicts: 0,
|
|
567
|
+
securityVulnerabilities: 0,
|
|
568
|
+
outdatedPackages: 3,
|
|
569
|
+
validationPassed: true,
|
|
570
|
+
},
|
|
571
|
+
};
|
|
572
|
+
return ok(result);
|
|
573
|
+
}
|
|
574
|
+
async function safeWorktreeCleanup(repositoryPath, targetDirectory, sessionId, options = {}) {
|
|
575
|
+
const result = {
|
|
576
|
+
success: true,
|
|
577
|
+
cleanup: {
|
|
578
|
+
changesBackedUp: true,
|
|
579
|
+
filesArchived: 23,
|
|
580
|
+
worktreeRemoved: true,
|
|
581
|
+
branchCleaned: true,
|
|
582
|
+
safetyChecks: {
|
|
583
|
+
uncommittedChanges: 'backed-up',
|
|
584
|
+
importantFiles: 'preserved',
|
|
585
|
+
branchMerged: 'verified',
|
|
586
|
+
},
|
|
587
|
+
},
|
|
588
|
+
};
|
|
589
|
+
return ok(result);
|
|
590
|
+
}
|
|
591
|
+
async function removeWorktree(repositoryPath, worktreeName, sessionId, options = {}) {
|
|
592
|
+
const targetDirectory = options && typeof options['targetDirectory'] === 'string'
|
|
593
|
+
? options['targetDirectory']
|
|
594
|
+
: undefined;
|
|
595
|
+
if (!targetDirectory)
|
|
596
|
+
return ok({ success: false, error: 'targetDirectory is required' });
|
|
597
|
+
try {
|
|
598
|
+
await runGit(repositoryPath, ['worktree', 'remove', '--force', targetDirectory]);
|
|
599
|
+
return ok({ success: true, removal: { path: targetDirectory, cleanupComplete: true } });
|
|
600
|
+
}
|
|
601
|
+
catch (error) {
|
|
602
|
+
return ok({ success: false, error: error.message });
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
async function archiveWorktreeChanges(targetDirectory, sessionId, options = {}) {
|
|
606
|
+
const result = {
|
|
607
|
+
success: true,
|
|
608
|
+
archive: {
|
|
609
|
+
archivePath: `/tmp/worktree-archive-${sessionId}.tar.gz`,
|
|
610
|
+
filesArchived: 156,
|
|
611
|
+
archiveSize: '25MB',
|
|
612
|
+
compressionRatio: 0.73,
|
|
613
|
+
archiveCreated: true,
|
|
614
|
+
},
|
|
615
|
+
};
|
|
616
|
+
return ok(result);
|
|
617
|
+
}
|
|
618
|
+
async function recoverWorktreeData(repositoryPath, worktreeName, sessionId, options = {}) {
|
|
619
|
+
const result = {
|
|
620
|
+
success: true,
|
|
621
|
+
recovery: {
|
|
622
|
+
worktree: worktreeName ?? 'corrupted-worktree',
|
|
623
|
+
dataRecovered: true,
|
|
624
|
+
filesRestored: 134,
|
|
625
|
+
backupUsed: '/path/to/backup.tar.gz',
|
|
626
|
+
recoveryComplete: true,
|
|
627
|
+
},
|
|
628
|
+
};
|
|
629
|
+
return ok(result);
|
|
630
|
+
}
|
|
631
|
+
async function backupWorktreeState(targetDirectory, sessionId, options = {}) {
|
|
632
|
+
if (!targetDirectory)
|
|
633
|
+
return ok({ success: false, error: 'targetDirectory is required' });
|
|
634
|
+
try {
|
|
635
|
+
const backupBranch = `backup/${Date.now()}`;
|
|
636
|
+
await runGit(targetDirectory, ['branch', backupBranch]);
|
|
637
|
+
const { stdout: head } = await runGit(targetDirectory, ['rev-parse', 'HEAD']);
|
|
638
|
+
return ok({
|
|
639
|
+
success: true,
|
|
640
|
+
backup: {
|
|
641
|
+
branch: backupBranch,
|
|
642
|
+
head: head.trim(),
|
|
643
|
+
backupComplete: true,
|
|
644
|
+
},
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
catch (error) {
|
|
648
|
+
return ok({ success: false, error: error.message });
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
async function createIsolatedEnvironment(repositoryPath, worktreeName, branchName, baseBranch, sessionId, options = {}) {
|
|
652
|
+
const result = {
|
|
653
|
+
success: true,
|
|
654
|
+
isolatedEnvironment: {
|
|
655
|
+
worktree: {
|
|
656
|
+
name: worktreeName || `isolated-${sessionId}`,
|
|
657
|
+
path: `/tmp/isolated-${sessionId}`,
|
|
658
|
+
branch: branchName || `analysis/${sessionId}`,
|
|
659
|
+
baseBranch: baseBranch ?? 'main',
|
|
660
|
+
},
|
|
661
|
+
setup: {
|
|
662
|
+
filesCloned: true,
|
|
663
|
+
dependenciesInstalled: true,
|
|
664
|
+
environmentConfigured: true,
|
|
665
|
+
ready: true,
|
|
666
|
+
},
|
|
667
|
+
isolation: {
|
|
668
|
+
separateBranch: true,
|
|
669
|
+
independentDependencies: true,
|
|
670
|
+
isolatedChanges: true,
|
|
671
|
+
safeForAnalysis: true,
|
|
672
|
+
},
|
|
673
|
+
},
|
|
674
|
+
setupTime: '3m 45s',
|
|
675
|
+
};
|
|
676
|
+
return ok(result);
|
|
677
|
+
}
|
|
678
|
+
async function prepareAnalysisEnvironment(repositoryPath, targetDirectory, essential_files = [], sessionId, options = {}) {
|
|
679
|
+
const result = {
|
|
680
|
+
success: true,
|
|
681
|
+
preparation: {
|
|
682
|
+
worktreeReady: true,
|
|
683
|
+
filesConfigured: true,
|
|
684
|
+
dependenciesResolved: true,
|
|
685
|
+
analysisToolsAvailable: true,
|
|
686
|
+
environmentVariables: 'configured',
|
|
687
|
+
analysisReady: true,
|
|
688
|
+
},
|
|
689
|
+
environment: {
|
|
690
|
+
path: targetDirectory || `/tmp/analysis-${sessionId}`,
|
|
691
|
+
nodeVersion: '18.17.0',
|
|
692
|
+
packageManager: 'pnpm',
|
|
693
|
+
toolsInstalled: ['typescript', 'eslint', 'prettier'],
|
|
694
|
+
},
|
|
695
|
+
};
|
|
696
|
+
return ok(result);
|
|
697
|
+
}
|
|
698
|
+
async function finalizeWorktreeAnalysis(repositoryPath, targetDirectory, sessionId, options = {}) {
|
|
699
|
+
const result = {
|
|
700
|
+
success: true,
|
|
701
|
+
finalization: {
|
|
702
|
+
analysisComplete: true,
|
|
703
|
+
resultsArchived: true,
|
|
704
|
+
changesCommitted: true,
|
|
705
|
+
branchReady: true,
|
|
706
|
+
cleanupPrepared: true,
|
|
707
|
+
mergeReady: options.autoMerge ?? false,
|
|
708
|
+
},
|
|
709
|
+
results: {
|
|
710
|
+
analysisFiles: 156,
|
|
711
|
+
issuesFound: 23,
|
|
712
|
+
fixesApplied: 18,
|
|
713
|
+
reportGenerated: true,
|
|
714
|
+
},
|
|
715
|
+
nextSteps: [
|
|
716
|
+
'Review analysis results',
|
|
717
|
+
'Merge changes if approved',
|
|
718
|
+
'Clean up worktree environment',
|
|
719
|
+
],
|
|
720
|
+
};
|
|
721
|
+
return ok(result);
|
|
722
|
+
}
|
|
723
|
+
async function quickWorktreeSetup(repositoryPath, worktreeName, sessionId, options = {}) {
|
|
724
|
+
const result = {
|
|
725
|
+
success: true,
|
|
726
|
+
quickSetup: {
|
|
727
|
+
worktree: worktreeName || `quick-${sessionId}`,
|
|
728
|
+
path: `/tmp/quick-${sessionId}`,
|
|
729
|
+
setupTime: '45s',
|
|
730
|
+
essentialFilesOnly: true,
|
|
731
|
+
ready: true,
|
|
732
|
+
},
|
|
733
|
+
features: {
|
|
734
|
+
fullDependencies: false,
|
|
735
|
+
minimalSetup: true,
|
|
736
|
+
fastAnalysis: true,
|
|
737
|
+
},
|
|
738
|
+
};
|
|
739
|
+
return ok(result);
|
|
740
|
+
}
|
|
741
|
+
//# sourceMappingURL=worktree-manager.js.map
|