zedbee 0.1.0-beta.12 → 0.1.0-beta.14
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/README.md +3 -2
- package/SECURITY.md +2 -0
- package/THIRD_PARTY_NOTICES.md +130 -14
- package/dist/attribution/entities.d.ts.map +1 -1
- package/dist/attribution/entities.js +74 -72
- package/dist/attribution/entities.js.map +1 -1
- package/dist/attribution/metrics.d.ts +2 -0
- package/dist/attribution/metrics.d.ts.map +1 -1
- package/dist/attribution/metrics.js +8 -0
- package/dist/attribution/metrics.js.map +1 -1
- package/dist/attribution/pair-locations.js +1 -1
- package/dist/attribution/pair-locations.js.map +1 -1
- package/dist/attribution/source-identity.d.ts +6 -0
- package/dist/attribution/source-identity.d.ts.map +1 -0
- package/dist/attribution/source-identity.js +60 -0
- package/dist/attribution/source-identity.js.map +1 -0
- package/dist/cache/key.d.ts +6 -1
- package/dist/cache/key.d.ts.map +1 -1
- package/dist/cache/key.js +57 -21
- package/dist/cache/key.js.map +1 -1
- package/dist/cache/store.d.ts.map +1 -1
- package/dist/cache/store.js +7 -7
- package/dist/cache/store.js.map +1 -1
- package/dist/checks/applicability.d.ts.map +1 -1
- package/dist/checks/applicability.js +17 -14
- package/dist/checks/applicability.js.map +1 -1
- package/dist/checks/complexity/adapter.d.ts.map +1 -1
- package/dist/checks/complexity/adapter.js +72 -18
- package/dist/checks/complexity/adapter.js.map +1 -1
- package/dist/checks/complexity/pair-class-metrics.d.ts +12 -0
- package/dist/checks/complexity/pair-class-metrics.d.ts.map +1 -0
- package/dist/checks/complexity/pair-class-metrics.js +220 -0
- package/dist/checks/complexity/pair-class-metrics.js.map +1 -0
- package/dist/checks/dead-code/adapter.d.ts.map +1 -1
- package/dist/checks/dead-code/adapter.js +8 -97
- package/dist/checks/dead-code/adapter.js.map +1 -1
- package/dist/checks/dead-code/framework-entrypoints.d.ts +9 -0
- package/dist/checks/dead-code/framework-entrypoints.d.ts.map +1 -0
- package/dist/checks/dead-code/framework-entrypoints.js +47 -0
- package/dist/checks/dead-code/framework-entrypoints.js.map +1 -0
- package/dist/checks/dead-code/import-boundary.d.ts +1 -1
- package/dist/checks/dead-code/import-boundary.d.ts.map +1 -1
- package/dist/checks/dead-code/import-boundary.js +3 -1
- package/dist/checks/dead-code/import-boundary.js.map +1 -1
- package/dist/checks/dead-code/knip-worker.js +19 -8
- package/dist/checks/dead-code/knip-worker.js.map +1 -1
- package/dist/checks/dead-code/managed-config.d.ts +4 -2
- package/dist/checks/dead-code/managed-config.d.ts.map +1 -1
- package/dist/checks/dead-code/managed-config.js +29 -2
- package/dist/checks/dead-code/managed-config.js.map +1 -1
- package/dist/checks/dead-code/parse-report.d.ts.map +1 -1
- package/dist/checks/dead-code/parse-report.js +26 -23
- package/dist/checks/dead-code/parse-report.js.map +1 -1
- package/dist/checks/dependency-architecture/adapter.d.ts.map +1 -1
- package/dist/checks/dependency-architecture/adapter.js +57 -46
- package/dist/checks/dependency-architecture/adapter.js.map +1 -1
- package/dist/checks/dependency-architecture/normalize-graph.d.ts +2 -0
- package/dist/checks/dependency-architecture/normalize-graph.d.ts.map +1 -1
- package/dist/checks/dependency-architecture/normalize-graph.js +12 -3
- package/dist/checks/dependency-architecture/normalize-graph.js.map +1 -1
- package/dist/checks/diagnostic-messages.d.ts +4 -0
- package/dist/checks/diagnostic-messages.d.ts.map +1 -0
- package/dist/checks/diagnostic-messages.js +50 -0
- package/dist/checks/diagnostic-messages.js.map +1 -0
- package/dist/checks/dispatch-adapter.d.ts +25 -0
- package/dist/checks/dispatch-adapter.d.ts.map +1 -0
- package/dist/checks/dispatch-adapter.js +133 -0
- package/dist/checks/dispatch-adapter.js.map +1 -0
- package/dist/checks/dispatch-cache.d.ts +9 -0
- package/dist/checks/dispatch-cache.d.ts.map +1 -0
- package/dist/checks/dispatch-cache.js +154 -0
- package/dist/checks/dispatch-cache.js.map +1 -0
- package/dist/checks/dispatch-context.d.ts +11 -0
- package/dist/checks/dispatch-context.d.ts.map +1 -0
- package/dist/checks/dispatch-context.js +155 -0
- package/dist/checks/dispatch-context.js.map +1 -0
- package/dist/checks/dispatch-target.d.ts +17 -0
- package/dist/checks/dispatch-target.d.ts.map +1 -0
- package/dist/checks/dispatch-target.js +167 -0
- package/dist/checks/dispatch-target.js.map +1 -0
- package/dist/checks/dispatcher.d.ts +3 -7
- package/dist/checks/dispatcher.d.ts.map +1 -1
- package/dist/checks/dispatcher.js +12 -642
- package/dist/checks/dispatcher.js.map +1 -1
- package/dist/checks/duplication/adapter.d.ts.map +1 -1
- package/dist/checks/duplication/adapter.js +44 -6
- package/dist/checks/duplication/adapter.js.map +1 -1
- package/dist/checks/duplication/clone-comparison.d.ts +6 -0
- package/dist/checks/duplication/clone-comparison.d.ts.map +1 -0
- package/dist/checks/duplication/clone-comparison.js +163 -0
- package/dist/checks/duplication/clone-comparison.js.map +1 -0
- package/dist/checks/duplication/normalize-clone.d.ts.map +1 -1
- package/dist/checks/duplication/normalize-clone.js +9 -0
- package/dist/checks/duplication/normalize-clone.js.map +1 -1
- package/dist/checks/duplication/source-tokens.d.ts +18 -0
- package/dist/checks/duplication/source-tokens.d.ts.map +1 -0
- package/dist/checks/duplication/source-tokens.js +68 -0
- package/dist/checks/duplication/source-tokens.js.map +1 -0
- package/dist/checks/duplication/types.d.ts +2 -0
- package/dist/checks/duplication/types.d.ts.map +1 -1
- package/dist/checks/engine-identity.d.ts.map +1 -1
- package/dist/checks/engine-identity.js +9 -8
- package/dist/checks/engine-identity.js.map +1 -1
- package/dist/checks/eslint/convert-message.d.ts +2 -0
- package/dist/checks/eslint/convert-message.d.ts.map +1 -1
- package/dist/checks/eslint/convert-message.js +34 -1
- package/dist/checks/eslint/convert-message.js.map +1 -1
- package/dist/checks/eslint/lint-adapter.d.ts.map +1 -1
- package/dist/checks/eslint/lint-adapter.js +17 -13
- package/dist/checks/eslint/lint-adapter.js.map +1 -1
- package/dist/checks/events.d.ts +7 -1
- package/dist/checks/events.d.ts.map +1 -1
- package/dist/checks/metadata.d.ts +4 -2
- package/dist/checks/metadata.d.ts.map +1 -1
- package/dist/checks/metadata.js +7 -4
- package/dist/checks/metadata.js.map +1 -1
- package/dist/checks/observation-result.d.ts.map +1 -1
- package/dist/checks/observation-result.js +26 -14
- package/dist/checks/observation-result.js.map +1 -1
- package/dist/checks/prettier/project-engine.d.ts +8 -14
- package/dist/checks/prettier/project-engine.d.ts.map +1 -1
- package/dist/checks/prettier/project-engine.js +33 -281
- package/dist/checks/prettier/project-engine.js.map +1 -1
- package/dist/checks/prettier/project-error.d.ts +7 -0
- package/dist/checks/prettier/project-error.d.ts.map +1 -0
- package/dist/checks/prettier/project-error.js +12 -0
- package/dist/checks/prettier/project-error.js.map +1 -0
- package/dist/checks/prettier/project-import-capture.d.ts +20 -0
- package/dist/checks/prettier/project-import-capture.d.ts.map +1 -0
- package/dist/checks/prettier/project-import-capture.js +173 -0
- package/dist/checks/prettier/project-import-capture.js.map +1 -0
- package/dist/checks/prettier/project-import-dependencies.d.ts +5 -0
- package/dist/checks/prettier/project-import-dependencies.d.ts.map +1 -0
- package/dist/checks/prettier/project-import-dependencies.js +84 -0
- package/dist/checks/prettier/project-import-dependencies.js.map +1 -0
- package/dist/checks/prettier/project-installation.d.ts +3 -0
- package/dist/checks/prettier/project-installation.d.ts.map +1 -0
- package/dist/checks/prettier/project-installation.js +204 -0
- package/dist/checks/prettier/project-installation.js.map +1 -0
- package/dist/checks/prettier/project-protocol.d.ts.map +1 -1
- package/dist/checks/prettier/project-protocol.js +15 -3
- package/dist/checks/prettier/project-protocol.js.map +1 -1
- package/dist/checks/prettier/project-snapshot-identity.d.ts +7 -0
- package/dist/checks/prettier/project-snapshot-identity.d.ts.map +1 -0
- package/dist/checks/prettier/project-snapshot-identity.js +63 -0
- package/dist/checks/prettier/project-snapshot-identity.js.map +1 -0
- package/dist/checks/prettier/project-types.d.ts +2 -0
- package/dist/checks/prettier/project-types.d.ts.map +1 -1
- package/dist/checks/prettier/project-worker.js +25 -3
- package/dist/checks/prettier/project-worker.js.map +1 -1
- package/dist/checks/prettier/project-workspace.d.ts +7 -0
- package/dist/checks/prettier/project-workspace.d.ts.map +1 -1
- package/dist/checks/prettier/project-workspace.js +101 -40
- package/dist/checks/prettier/project-workspace.js.map +1 -1
- package/dist/checks/project-inputs.d.ts +6 -0
- package/dist/checks/project-inputs.d.ts.map +1 -0
- package/dist/checks/project-inputs.js +70 -0
- package/dist/checks/project-inputs.js.map +1 -0
- package/dist/checks/runner/process-group.d.ts.map +1 -1
- package/dist/checks/runner/process-group.js +30 -2
- package/dist/checks/runner/process-group.js.map +1 -1
- package/dist/checks/secrets/content.d.ts.map +1 -1
- package/dist/checks/secrets/content.js +35 -16
- package/dist/checks/secrets/content.js.map +1 -1
- package/dist/checks/typescript/adapter.d.ts.map +1 -1
- package/dist/checks/typescript/adapter.js +6 -14
- package/dist/checks/typescript/adapter.js.map +1 -1
- package/dist/checks/typescript/aliases.d.ts +28 -0
- package/dist/checks/typescript/aliases.d.ts.map +1 -0
- package/dist/checks/typescript/aliases.js +259 -0
- package/dist/checks/typescript/aliases.js.map +1 -0
- package/dist/checks/typescript/configuration-paths.d.ts +8 -0
- package/dist/checks/typescript/configuration-paths.d.ts.map +1 -0
- package/dist/checks/typescript/configuration-paths.js +138 -0
- package/dist/checks/typescript/configuration-paths.js.map +1 -0
- package/dist/checks/typescript/convert-diagnostic.d.ts +2 -0
- package/dist/checks/typescript/convert-diagnostic.d.ts.map +1 -1
- package/dist/checks/typescript/convert-diagnostic.js +23 -5
- package/dist/checks/typescript/convert-diagnostic.js.map +1 -1
- package/dist/checks/typescript/project-coverage.d.ts +16 -0
- package/dist/checks/typescript/project-coverage.d.ts.map +1 -0
- package/dist/checks/typescript/project-coverage.js +49 -0
- package/dist/checks/typescript/project-coverage.js.map +1 -0
- package/dist/checks/vulnerabilities/inventory/normalize.d.ts +1 -0
- package/dist/checks/vulnerabilities/inventory/normalize.d.ts.map +1 -1
- package/dist/checks/vulnerabilities/inventory/normalize.js +5 -2
- package/dist/checks/vulnerabilities/inventory/normalize.js.map +1 -1
- package/dist/checks/vulnerabilities/inventory/parse-bun.d.ts.map +1 -1
- package/dist/checks/vulnerabilities/inventory/parse-bun.js +18 -7
- package/dist/checks/vulnerabilities/inventory/parse-bun.js.map +1 -1
- package/dist/checks/vulnerabilities/inventory/parse-yarn.d.ts.map +1 -1
- package/dist/checks/vulnerabilities/inventory/parse-yarn.js +21 -11
- package/dist/checks/vulnerabilities/inventory/parse-yarn.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +3 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/agent.js +1 -1
- package/dist/commands/agent.js.map +1 -1
- package/dist/commands/checks.d.ts +5 -2
- package/dist/commands/checks.d.ts.map +1 -1
- package/dist/commands/checks.js +18 -5
- package/dist/commands/checks.js.map +1 -1
- package/dist/commands/fix.d.ts.map +1 -1
- package/dist/commands/fix.js +6 -297
- package/dist/commands/fix.js.map +1 -1
- package/dist/commands/init.d.ts +4 -2
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +36 -379
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/scan.d.ts +2 -1
- package/dist/commands/scan.d.ts.map +1 -1
- package/dist/commands/scan.js +6 -13
- package/dist/commands/scan.js.map +1 -1
- package/dist/commands/telemetry.d.ts.map +1 -1
- package/dist/commands/telemetry.js +3 -0
- package/dist/commands/telemetry.js.map +1 -1
- package/dist/config/load-config.d.ts.map +1 -1
- package/dist/config/load-config.js +6 -15
- package/dist/config/load-config.js.map +1 -1
- package/dist/config/selection-path.d.ts +7 -0
- package/dist/config/selection-path.d.ts.map +1 -0
- package/dist/config/selection-path.js +20 -0
- package/dist/config/selection-path.js.map +1 -0
- package/dist/core/check-label.d.ts +2 -0
- package/dist/core/check-label.d.ts.map +1 -0
- package/dist/core/check-label.js +19 -0
- package/dist/core/check-label.js.map +1 -0
- package/dist/core/freeze-result.d.ts +3 -0
- package/dist/core/freeze-result.d.ts.map +1 -0
- package/dist/core/freeze-result.js +10 -0
- package/dist/core/freeze-result.js.map +1 -0
- package/dist/core/immutable-map.d.ts +3 -0
- package/dist/core/immutable-map.d.ts.map +1 -0
- package/dist/core/immutable-map.js +33 -0
- package/dist/core/immutable-map.js.map +1 -0
- package/dist/core/kernel-lease.d.ts +17 -0
- package/dist/core/kernel-lease.d.ts.map +1 -0
- package/dist/core/kernel-lease.js +55 -0
- package/dist/core/kernel-lease.js.map +1 -0
- package/dist/fixes/apply-plan.d.ts.map +1 -1
- package/dist/fixes/apply-plan.js +2 -9
- package/dist/fixes/apply-plan.js.map +1 -1
- package/dist/fixes/build-plan.d.ts +5 -5
- package/dist/fixes/build-plan.d.ts.map +1 -1
- package/dist/fixes/build-plan.js +15 -466
- package/dist/fixes/build-plan.js.map +1 -1
- package/dist/fixes/exact-edits.d.ts +11 -1
- package/dist/fixes/exact-edits.d.ts.map +1 -1
- package/dist/fixes/exact-edits.js +101 -46
- package/dist/fixes/exact-edits.js.map +1 -1
- package/dist/fixes/plan-candidates.d.ts +8 -0
- package/dist/fixes/plan-candidates.d.ts.map +1 -0
- package/dist/fixes/plan-candidates.js +144 -0
- package/dist/fixes/plan-candidates.js.map +1 -0
- package/dist/fixes/prettier-provider.d.ts +3 -2
- package/dist/fixes/prettier-provider.d.ts.map +1 -1
- package/dist/fixes/prettier-provider.js +53 -0
- package/dist/fixes/prettier-provider.js.map +1 -1
- package/dist/fixes/public-plan.d.ts +8 -0
- package/dist/fixes/public-plan.d.ts.map +1 -0
- package/dist/fixes/public-plan.js +194 -0
- package/dist/fixes/public-plan.js.map +1 -0
- package/dist/fixes/working-preview.d.ts +18 -0
- package/dist/fixes/working-preview.d.ts.map +1 -0
- package/dist/fixes/working-preview.js +162 -0
- package/dist/fixes/working-preview.js.map +1 -0
- package/dist/git/change-set.d.ts.map +1 -1
- package/dist/git/change-set.js +10 -9
- package/dist/git/change-set.js.map +1 -1
- package/dist/git/client.d.ts +16 -0
- package/dist/git/client.d.ts.map +1 -1
- package/dist/git/client.js +46 -3
- package/dist/git/client.js.map +1 -1
- package/dist/git/merge-comparison.d.ts.map +1 -1
- package/dist/git/merge-comparison.js +16 -4
- package/dist/git/merge-comparison.js.map +1 -1
- package/dist/git/selected-comparison.d.ts +13 -0
- package/dist/git/selected-comparison.d.ts.map +1 -0
- package/dist/git/selected-comparison.js +143 -0
- package/dist/git/selected-comparison.js.map +1 -0
- package/dist/git/snapshot-work.d.ts +18 -0
- package/dist/git/snapshot-work.d.ts.map +1 -0
- package/dist/git/snapshot-work.js +59 -0
- package/dist/git/snapshot-work.js.map +1 -0
- package/dist/git/snapshot.d.ts +6 -1
- package/dist/git/snapshot.d.ts.map +1 -1
- package/dist/git/snapshot.js +102 -5
- package/dist/git/snapshot.js.map +1 -1
- package/dist/init/formatter-setup.d.ts +29 -0
- package/dist/init/formatter-setup.d.ts.map +1 -0
- package/dist/init/formatter-setup.js +166 -0
- package/dist/init/formatter-setup.js.map +1 -0
- package/dist/init/import-provenance.d.ts +7 -0
- package/dist/init/import-provenance.d.ts.map +1 -0
- package/dist/init/import-provenance.js +58 -0
- package/dist/init/import-provenance.js.map +1 -0
- package/dist/init/install-dependency.d.mts +40 -0
- package/dist/init/install-dependency.mjs +427 -0
- package/dist/init/install-project.d.ts +1 -0
- package/dist/init/install-project.d.ts.map +1 -1
- package/dist/init/install-project.js +12 -31
- package/dist/init/install-project.js.map +1 -1
- package/dist/init/presentation.d.ts +54 -0
- package/dist/init/presentation.d.ts.map +1 -0
- package/dist/init/presentation.js +139 -0
- package/dist/init/presentation.js.map +1 -0
- package/dist/init/selection-policy.d.ts +29 -0
- package/dist/init/selection-policy.d.ts.map +1 -0
- package/dist/init/selection-policy.js +59 -0
- package/dist/init/selection-policy.js.map +1 -0
- package/dist/init/types.d.ts +7 -0
- package/dist/init/types.d.ts.map +1 -1
- package/dist/init/types.js.map +1 -1
- package/dist/init/write-config.d.ts.map +1 -1
- package/dist/init/write-config.js +3 -13
- package/dist/init/write-config.js.map +1 -1
- package/dist/inspection/inspect-repository.d.ts.map +1 -1
- package/dist/inspection/inspect-repository.js +17 -3
- package/dist/inspection/inspect-repository.js.map +1 -1
- package/dist/inspection/snapshot-registry.d.ts +2 -0
- package/dist/inspection/snapshot-registry.d.ts.map +1 -1
- package/dist/inspection/snapshot-registry.js +58 -7
- package/dist/inspection/snapshot-registry.js.map +1 -1
- package/dist/inspection/types.d.ts +6 -1
- package/dist/inspection/types.d.ts.map +1 -1
- package/dist/inspection/types.js +7 -1
- package/dist/inspection/types.js.map +1 -1
- package/dist/inspection/workspaces.d.ts.map +1 -1
- package/dist/inspection/workspaces.js +17 -0
- package/dist/inspection/workspaces.js.map +1 -1
- package/dist/reporting/check-label.d.ts +1 -1
- package/dist/reporting/check-label.d.ts.map +1 -1
- package/dist/reporting/check-label.js +1 -18
- package/dist/reporting/check-label.js.map +1 -1
- package/dist/reporting/fix-plan-store.d.ts +7 -0
- package/dist/reporting/fix-plan-store.d.ts.map +1 -0
- package/dist/reporting/fix-plan-store.js +29 -0
- package/dist/reporting/fix-plan-store.js.map +1 -0
- package/dist/reporting/fix-presentation.d.ts +77 -0
- package/dist/reporting/fix-presentation.d.ts.map +1 -0
- package/dist/reporting/fix-presentation.js +262 -0
- package/dist/reporting/fix-presentation.js.map +1 -0
- package/dist/reporting/temporary-report-common.d.ts +27 -0
- package/dist/reporting/temporary-report-common.d.ts.map +1 -0
- package/dist/reporting/temporary-report-common.js +33 -0
- package/dist/reporting/temporary-report-common.js.map +1 -0
- package/dist/reporting/temporary-report-filesystem.d.ts +6 -0
- package/dist/reporting/temporary-report-filesystem.d.ts.map +1 -0
- package/dist/reporting/temporary-report-filesystem.js +124 -0
- package/dist/reporting/temporary-report-filesystem.js.map +1 -0
- package/dist/reporting/temporary-report-lifecycle.d.ts +19 -0
- package/dist/reporting/temporary-report-lifecycle.d.ts.map +1 -0
- package/dist/reporting/temporary-report-lifecycle.js +278 -0
- package/dist/reporting/temporary-report-lifecycle.js.map +1 -0
- package/dist/reporting/temporary-report-lock.d.ts +21 -0
- package/dist/reporting/temporary-report-lock.d.ts.map +1 -0
- package/dist/reporting/temporary-report-lock.js +106 -0
- package/dist/reporting/temporary-report-lock.js.map +1 -0
- package/dist/reporting/temporary-reports.d.ts +3 -24
- package/dist/reporting/temporary-reports.d.ts.map +1 -1
- package/dist/reporting/temporary-reports.js +10 -534
- package/dist/reporting/temporary-reports.js.map +1 -1
- package/dist/scan/analysis-failure.d.ts.map +1 -1
- package/dist/scan/analysis-failure.js +23 -0
- package/dist/scan/analysis-failure.js.map +1 -1
- package/dist/scan/analysis-session.d.ts +4 -0
- package/dist/scan/analysis-session.d.ts.map +1 -1
- package/dist/scan/analysis-session.js +60 -13
- package/dist/scan/analysis-session.js.map +1 -1
- package/dist/scan/incomplete-report.js +2 -2
- package/dist/scan/incomplete-report.js.map +1 -1
- package/dist/scan/merge-scan.d.ts +2 -1
- package/dist/scan/merge-scan.d.ts.map +1 -1
- package/dist/scan/merge-scan.js +82 -37
- package/dist/scan/merge-scan.js.map +1 -1
- package/dist/scan/progress.d.ts +4 -0
- package/dist/scan/progress.d.ts.map +1 -0
- package/dist/scan/progress.js +18 -0
- package/dist/scan/progress.js.map +1 -0
- package/dist/scan/run-scan.d.ts.map +1 -1
- package/dist/scan/run-scan.js +11 -15
- package/dist/scan/run-scan.js.map +1 -1
- package/dist/scan/source-excerpts.d.ts +1 -1
- package/dist/scan/source-excerpts.d.ts.map +1 -1
- package/dist/scan/source-excerpts.js +25 -27
- package/dist/scan/source-excerpts.js.map +1 -1
- package/dist/service/client-connection.d.ts +21 -0
- package/dist/service/client-connection.d.ts.map +1 -0
- package/dist/service/client-connection.js +219 -0
- package/dist/service/client-connection.js.map +1 -0
- package/dist/service/client-executor.d.ts +10 -0
- package/dist/service/client-executor.d.ts.map +1 -0
- package/dist/service/client-executor.js +69 -0
- package/dist/service/client-executor.js.map +1 -0
- package/dist/service/client-ownership.d.ts +16 -0
- package/dist/service/client-ownership.d.ts.map +1 -0
- package/dist/service/client-ownership.js +104 -0
- package/dist/service/client-ownership.js.map +1 -0
- package/dist/service/client-startup.d.ts +3 -0
- package/dist/service/client-startup.d.ts.map +1 -0
- package/dist/service/client-startup.js +123 -0
- package/dist/service/client-startup.js.map +1 -0
- package/dist/service/client.d.ts +2 -27
- package/dist/service/client.d.ts.map +1 -1
- package/dist/service/client.js +7 -490
- package/dist/service/client.js.map +1 -1
- package/dist/service/identity-parallel.js +3 -3
- package/dist/service/identity-parallel.js.map +1 -1
- package/dist/service/identity.js +4 -4
- package/dist/service/identity.js.map +1 -1
- package/dist/service/server-connection.d.ts +43 -0
- package/dist/service/server-connection.d.ts.map +1 -0
- package/dist/service/server-connection.js +327 -0
- package/dist/service/server-connection.js.map +1 -0
- package/dist/service/server.d.ts +1 -1
- package/dist/service/server.d.ts.map +1 -1
- package/dist/service/server.js +77 -343
- package/dist/service/server.js.map +1 -1
- package/dist/service/state.d.ts.map +1 -1
- package/dist/service/state.js +14 -26
- package/dist/service/state.js.map +1 -1
- package/dist/service/windows-pipe.d.ts +22 -14
- package/dist/service/windows-pipe.d.ts.map +1 -1
- package/dist/service/windows-pipe.js +384 -350
- package/dist/service/windows-pipe.js.map +1 -1
- package/dist/telemetry/ai-context.d.ts +14 -0
- package/dist/telemetry/ai-context.d.ts.map +1 -0
- package/dist/telemetry/ai-context.js +129 -0
- package/dist/telemetry/ai-context.js.map +1 -0
- package/dist/telemetry/batch.d.ts +4 -0
- package/dist/telemetry/batch.d.ts.map +1 -0
- package/dist/telemetry/batch.js +21 -0
- package/dist/telemetry/batch.js.map +1 -0
- package/dist/telemetry/client.d.ts +3 -0
- package/dist/telemetry/client.d.ts.map +1 -1
- package/dist/telemetry/client.js +63 -2
- package/dist/telemetry/client.js.map +1 -1
- package/dist/telemetry/details-store.d.ts +15 -0
- package/dist/telemetry/details-store.d.ts.map +1 -0
- package/dist/telemetry/details-store.js +198 -0
- package/dist/telemetry/details-store.js.map +1 -0
- package/dist/telemetry/finding-catalog.d.ts +2 -0
- package/dist/telemetry/finding-catalog.d.ts.map +1 -0
- package/dist/telemetry/finding-catalog.js +2817 -0
- package/dist/telemetry/finding-catalog.js.map +1 -0
- package/dist/telemetry/finding-rules.d.ts +3 -0
- package/dist/telemetry/finding-rules.d.ts.map +1 -0
- package/dist/telemetry/finding-rules.js +16 -0
- package/dist/telemetry/finding-rules.js.map +1 -0
- package/dist/telemetry/finding-summary.d.ts +8 -0
- package/dist/telemetry/finding-summary.d.ts.map +1 -0
- package/dist/telemetry/finding-summary.js +63 -0
- package/dist/telemetry/finding-summary.js.map +1 -0
- package/dist/telemetry/schema.d.ts +603 -4
- package/dist/telemetry/schema.d.ts.map +1 -1
- package/dist/telemetry/schema.js +117 -1
- package/dist/telemetry/schema.js.map +1 -1
- package/dist/telemetry/state.d.ts +5 -4
- package/dist/telemetry/state.d.ts.map +1 -1
- package/dist/telemetry/state.js +115 -69
- package/dist/telemetry/state.js.map +1 -1
- package/dist/telemetry/transport.d.ts.map +1 -1
- package/dist/telemetry/transport.js +5 -1
- package/dist/telemetry/transport.js.map +1 -1
- package/dist/telemetry/worker.d.ts.map +1 -1
- package/dist/telemetry/worker.js +9 -1
- package/dist/telemetry/worker.js.map +1 -1
- package/dist/ui/init-app.d.ts +6 -14
- package/dist/ui/init-app.d.ts.map +1 -1
- package/dist/ui/init-app.js +39 -203
- package/dist/ui/init-app.js.map +1 -1
- package/dist/ui/init-operation.d.ts +19 -0
- package/dist/ui/init-operation.d.ts.map +1 -0
- package/dist/ui/init-operation.js +54 -0
- package/dist/ui/init-operation.js.map +1 -0
- package/dist/ui/init-view.d.ts +42 -0
- package/dist/ui/init-view.d.ts.map +1 -0
- package/dist/ui/init-view.js +199 -0
- package/dist/ui/init-view.js.map +1 -0
- package/dist/ui/live-dashboard.d.ts +5 -1
- package/dist/ui/live-dashboard.d.ts.map +1 -1
- package/dist/ui/live-dashboard.js +46 -4
- package/dist/ui/live-dashboard.js.map +1 -1
- package/dist/vendor/knip/node_modules/get-tsconfig/LICENSE +21 -0
- package/dist/vendor/knip/node_modules/get-tsconfig/README.md +268 -0
- package/dist/vendor/knip/node_modules/get-tsconfig/dist/index.cjs +7 -0
- package/dist/vendor/knip/node_modules/get-tsconfig/dist/index.d.cts +2116 -0
- package/dist/vendor/knip/node_modules/get-tsconfig/dist/index.d.mts +2116 -0
- package/dist/vendor/knip/node_modules/get-tsconfig/dist/index.mjs +7 -0
- package/dist/vendor/knip/node_modules/get-tsconfig/package.json +46 -0
- package/docs/checks.md +56 -5
- package/docs/cli-reference.md +12 -2
- package/docs/commercial-licensing.md +1 -1
- package/docs/managed-fixes.md +14 -0
- package/docs/privacy.md +55 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/all.d.ts +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/all.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/base.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/disable-type-checked.d.ts +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/disable-type-checked.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/eslint-recommended.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/recommended-type-checked-only.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/recommended-type-checked.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/recommended.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict-type-checked-only.d.ts +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict-type-checked-only.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict-type-checked.d.ts +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict-type-checked.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/stylistic-type-checked-only.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/stylistic-type-checked.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/stylistic.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/all.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/base.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/disable-type-checked.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/eslint-recommended.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/recommended-type-checked-only.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/recommended-type-checked.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/recommended.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/strict-type-checked-only.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/strict-type-checked.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/strict.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/stylistic-type-checked-only.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/stylistic-type-checked.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/stylistic.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/index.d.ts +9 -447
- package/node_modules/@typescript-eslint/eslint-plugin/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/raw-plugin.d.ts +9 -447
- package/node_modules/@typescript-eslint/eslint-plugin/dist/raw-plugin.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.d.ts +6 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js +41 -6
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.d.ts +9 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js +69 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.d.ts +1 -447
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js +141 -273
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +59 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js +30 -10
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js +57 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js +10 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js +12 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +65 -55
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-generated-empty-object-type.d.ts +4 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-generated-empty-object-type.js +97 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.d.ts +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js +49 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.d.ts +5 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +76 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-spread.js +6 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js +35 -23
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js +6 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +85 -12
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js +14 -4
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js +4 -14
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.d.ts +2 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js +52 -49
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-conversion.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js +46 -18
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js +3 -91
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-assignment.d.ts +5 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-assignment.js +518 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js +4 -113
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-private-class-members.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +6 -5
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-default-assignment.d.ts +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-default-assignment.js +29 -7
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +4 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js +47 -10
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/related-getter-setter-pairs.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +50 -3
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js +12 -9
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +3 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-void-return.d.ts +3 -2
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-void-return.js +100 -5
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +3 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js +6 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +39 -12
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.d.ts +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js +75 -37
- package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/FunctionSignature.d.ts +15 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/FunctionSignature.js +123 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/assertionFunctionUtils.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/baseTypeUtils.d.ts +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/baseTypeUtils.js +17 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/class-scope-analyzer/classScopeAnalyzer.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/class-scope-analyzer/extractComputedName.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/class-scope-analyzer/types.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js +11 -7
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getAwaitTokenRemovalRange.d.ts +4 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getAwaitTokenRemovalRange.js +15 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getBaseTypesOfClassMember.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getConstraintInfo.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFixOrSuggest.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getForStatementHeadLoc.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getMemberHeadLoc.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getParentFunctionNode.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getTextWithParentheses.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getValueOfLiteralType.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js +1 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/hasOverloadSignatures.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.d.ts +4 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js +5 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isArrayMethodCallWithPredicate.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isAssignee.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isConditionalTest.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isHigherPrecedenceThanAwait.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isPromiseAggregatorMethod.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfArrowFunctionBodyNeedingParentheses.d.ts +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfArrowFunctionBodyNeedingParentheses.js +30 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatement.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatementNeedingParentheses.d.ts +2 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatementNeedingParentheses.js +9 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeOnlyReference.d.ts +4 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeOnlyReference.js +23 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/lazyRules.d.ts +6 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/lazyRules.js +18 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsPrecedingSemiColon.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsToBeAwaited.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/promiseUtils.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/rangeToLoc.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypePredicate.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypeQuery.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/scopeUtils.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/skipChainExpression.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/truthinessUtils.js +3 -1
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/dist/util/walkStatements.js +1 -0
- package/node_modules/@typescript-eslint/eslint-plugin/package.json +19 -18
- package/node_modules/@typescript-eslint/parser/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/parser/dist/parser.js +1 -0
- package/node_modules/@typescript-eslint/parser/package.json +9 -8
- package/node_modules/@typescript-eslint/project-service/dist/createProjectService.js +10 -9
- package/node_modules/@typescript-eslint/project-service/dist/getParsedConfigFileFromTSServer.js +1 -0
- package/node_modules/@typescript-eslint/project-service/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/project-service/dist/throttleOpenedFileCleanup.d.ts +7 -0
- package/node_modules/@typescript-eslint/project-service/dist/throttleOpenedFileCleanup.js +37 -0
- package/node_modules/@typescript-eslint/project-service/package.json +7 -6
- package/node_modules/@typescript-eslint/scope-manager/dist/ID.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/analyze.js +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/assert.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.collection.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.float16.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.iterator.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.promise.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.regexp.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.date.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.error.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.float16.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.sharedmemory.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.temporal.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.typedarrays.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +13 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js +1 -0
- package/node_modules/@typescript-eslint/scope-manager/package.json +8 -7
- package/node_modules/@typescript-eslint/tsconfig-utils/dist/compilerOptions.js +1 -0
- package/node_modules/@typescript-eslint/tsconfig-utils/dist/getParsedConfigFile.js +1 -0
- package/node_modules/@typescript-eslint/tsconfig-utils/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/tsconfig-utils/package.json +4 -3
- package/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js +4 -14
- package/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/discriminateAnyType.js +7 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeBrandedLiteralLike.js +3 -1
- package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +10 -5
- package/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts +5 -0
- package/node_modules/@typescript-eslint/type-utils/dist/predicates.js +11 -0
- package/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js +2 -1
- package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierSourceMatches.d.ts +3 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierSourceMatches.js +19 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.js +1 -0
- package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.d.ts +1 -1
- package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js +87 -9
- package/node_modules/@typescript-eslint/type-utils/package.json +9 -8
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +3 -3
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +1 -0
- package/node_modules/@typescript-eslint/types/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/types/dist/lib.js +1 -0
- package/node_modules/@typescript-eslint/types/dist/parser-options.js +1 -0
- package/node_modules/@typescript-eslint/types/dist/ts-estree.js +1 -0
- package/node_modules/@typescript-eslint/types/package.json +8 -7
- package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/check-modifiers.js +7 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/check-syntax-errors.js +8 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +3 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +12 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js +3 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js +2 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js +14 -6
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +23 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +86 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/getImportClausePhaseModifier.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +48 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/candidateTSConfigRootDirs.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +2 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js +45 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/version.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/package.json +9 -8
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js +2 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/json-schema.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +17 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-estree.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.d.ts +1 -1
- package/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js +1 -0
- package/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js +1 -0
- package/node_modules/@typescript-eslint/utils/package.json +7 -6
- package/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js +1 -0
- package/node_modules/@typescript-eslint/visitor-keys/dist/index.js +1 -0
- package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +1 -0
- package/node_modules/@typescript-eslint/visitor-keys/package.json +6 -5
- package/node_modules/dependency-cruiser/node_modules/ignore/LICENSE-MIT +21 -0
- package/node_modules/dependency-cruiser/node_modules/ignore/README.md +452 -0
- package/node_modules/dependency-cruiser/node_modules/ignore/index.d.ts +81 -0
- package/node_modules/dependency-cruiser/node_modules/ignore/index.js +793 -0
- package/node_modules/dependency-cruiser/node_modules/ignore/legacy.js +690 -0
- package/node_modules/dependency-cruiser/node_modules/ignore/package.json +87 -0
- package/node_modules/get-tsconfig/dist/index.cjs +4 -4
- package/node_modules/get-tsconfig/dist/index.mjs +4 -4
- package/node_modules/get-tsconfig/package.json +1 -1
- package/node_modules/ignore/README.md +49 -0
- package/node_modules/ignore/index.js +906 -162
- package/node_modules/ignore/legacy.js +760 -127
- package/node_modules/ignore/package.json +10 -4
- package/node_modules/typescript-eslint/dist/compatibility-types.js +1 -0
- package/node_modules/typescript-eslint/dist/config-helper.js +1 -0
- package/node_modules/typescript-eslint/dist/getTSConfigRootDirFromStack.js +1 -0
- package/node_modules/typescript-eslint/dist/globs.js +1 -0
- package/node_modules/typescript-eslint/dist/index.js +2 -0
- package/node_modules/typescript-eslint/package.json +13 -20
- package/package.json +11 -9
- package/plugins/swarm/README.md +31 -14
- package/plugins/swarm/{skills/scan/SKILL.md → references/scan.md} +6 -13
- package/schema/zedbee.schema.json +12 -0
|
@@ -1,68 +1,123 @@
|
|
|
1
1
|
import { diffChars } from "diff";
|
|
2
2
|
export function exactFixesOverlap(left, right) {
|
|
3
|
-
if (left.start === left.end && right.start === right.end)
|
|
3
|
+
if (left.start === left.end && right.start === right.end)
|
|
4
4
|
return left.start === right.start;
|
|
5
|
-
|
|
6
|
-
if (left.start === left.end) {
|
|
5
|
+
if (left.start === left.end)
|
|
7
6
|
return left.start > right.start && left.start < right.end;
|
|
8
|
-
|
|
9
|
-
if (right.start === right.end) {
|
|
7
|
+
if (right.start === right.end)
|
|
10
8
|
return right.start > left.start && right.start < left.end;
|
|
11
|
-
}
|
|
12
9
|
return left.start < right.end && right.start < left.end;
|
|
13
10
|
}
|
|
14
|
-
/**
|
|
15
|
-
export function
|
|
16
|
-
const
|
|
17
|
-
|
|
11
|
+
/** Marks every participating edit in O(E log E), including duplicate insertions. */
|
|
12
|
+
export function overlappingExactEdits(edits) {
|
|
13
|
+
const conflicts = new Set();
|
|
14
|
+
let longest;
|
|
15
|
+
let insertion;
|
|
16
|
+
for (const edit of [...edits].sort((a, b) => a.start - b.start || a.end - b.end)) {
|
|
17
|
+
if (edit.start === edit.end) {
|
|
18
|
+
if (insertion?.start === edit.start) {
|
|
19
|
+
conflicts.add(insertion);
|
|
20
|
+
conflicts.add(edit);
|
|
21
|
+
}
|
|
22
|
+
insertion = edit;
|
|
23
|
+
if (longest !== undefined && exactFixesOverlap(longest, edit)) {
|
|
24
|
+
conflicts.add(longest);
|
|
25
|
+
conflicts.add(edit);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
if (longest !== undefined && longest.end > edit.start) {
|
|
30
|
+
conflicts.add(longest);
|
|
31
|
+
conflicts.add(edit);
|
|
32
|
+
}
|
|
33
|
+
if (longest === undefined || edit.end > longest.end)
|
|
34
|
+
longest = edit;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return conflicts;
|
|
38
|
+
}
|
|
39
|
+
/** First index for which the monotone predicate holds. */
|
|
40
|
+
function lowerBound(values, predicate) {
|
|
41
|
+
let low = 0;
|
|
42
|
+
let high = values.length;
|
|
43
|
+
while (low < high) {
|
|
44
|
+
const middle = low + Math.floor((high - low) / 2);
|
|
45
|
+
if (predicate(values[middle]))
|
|
46
|
+
high = middle;
|
|
47
|
+
else
|
|
48
|
+
low = middle + 1;
|
|
49
|
+
}
|
|
50
|
+
return low;
|
|
51
|
+
}
|
|
52
|
+
/** One diff and compact unchanged spans per file; no edited text is built while planning. */
|
|
53
|
+
export function createExactEditMapping(base, working) {
|
|
54
|
+
const components = base === working
|
|
55
|
+
? [{ value: base }]
|
|
56
|
+
: diffChars(base, working, { timeout: 1_000 });
|
|
57
|
+
if (components === undefined)
|
|
58
|
+
return undefined;
|
|
59
|
+
const spans = [];
|
|
60
|
+
const removals = [];
|
|
61
|
+
const additions = [];
|
|
18
62
|
let baseOffset = 0;
|
|
19
63
|
let workingOffset = 0;
|
|
20
|
-
|
|
21
|
-
for (const component of diffChars(base, working)) {
|
|
64
|
+
for (const component of components) {
|
|
22
65
|
const length = component.value.length;
|
|
23
|
-
if (component.added) {
|
|
24
|
-
|
|
25
|
-
? edit.start === baseOffset
|
|
26
|
-
: edit.start < baseOffset && baseOffset < edit.end);
|
|
27
|
-
if (intersects)
|
|
28
|
-
return undefined;
|
|
66
|
+
if ("added" in component && component.added) {
|
|
67
|
+
additions.push(baseOffset);
|
|
29
68
|
workingOffset += length;
|
|
30
|
-
continue;
|
|
31
69
|
}
|
|
32
|
-
if (component.removed) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
? baseOffset <= edit.start && edit.start <= end
|
|
36
|
-
: edit.start < end && baseOffset < edit.end)) {
|
|
37
|
-
return undefined;
|
|
38
|
-
}
|
|
39
|
-
baseOffset = end;
|
|
40
|
-
continue;
|
|
70
|
+
else if ("removed" in component && component.removed) {
|
|
71
|
+
removals.push({ start: baseOffset, end: baseOffset + length });
|
|
72
|
+
baseOffset += length;
|
|
41
73
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
74
|
+
else {
|
|
75
|
+
spans.push({
|
|
76
|
+
start: baseOffset,
|
|
77
|
+
end: baseOffset + length,
|
|
78
|
+
working: workingOffset,
|
|
79
|
+
});
|
|
80
|
+
baseOffset += length;
|
|
81
|
+
workingOffset += length;
|
|
45
82
|
}
|
|
46
|
-
baseOffset += length;
|
|
47
|
-
workingOffset += length;
|
|
48
|
-
baseToWorking[baseOffset] = workingOffset;
|
|
49
83
|
}
|
|
50
|
-
|
|
84
|
+
const characterOffset = (position) => {
|
|
85
|
+
const span = spans[lowerBound(spans, (span) => span.end > position)];
|
|
86
|
+
return span !== undefined && span.start <= position
|
|
87
|
+
? span.working + position - span.start
|
|
88
|
+
: undefined;
|
|
89
|
+
};
|
|
90
|
+
return Object.freeze({
|
|
91
|
+
mapEdit(edit) {
|
|
92
|
+
const insertion = edit.start === edit.end;
|
|
93
|
+
const removed = removals[lowerBound(removals, (span) => insertion ? span.end >= edit.start : span.end > edit.start)];
|
|
94
|
+
if (removed !== undefined &&
|
|
95
|
+
(insertion ? removed.start <= edit.start : removed.start < edit.end))
|
|
96
|
+
return undefined;
|
|
97
|
+
const added = additions[lowerBound(additions, (position) => insertion ? position >= edit.start : position > edit.start)];
|
|
98
|
+
if (added !== undefined &&
|
|
99
|
+
(insertion ? added === edit.start : added < edit.end))
|
|
100
|
+
return undefined;
|
|
101
|
+
const start = characterOffset(edit.start) ??
|
|
102
|
+
(insertion && edit.start === base.length ? working.length : undefined);
|
|
103
|
+
const last = insertion ? start : characterOffset(edit.end - 1);
|
|
104
|
+
if (start === undefined || last === undefined)
|
|
105
|
+
return undefined;
|
|
106
|
+
return Object.freeze({ start, end: insertion ? start : last + 1 });
|
|
107
|
+
},
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/** Maps base UTF-16 offsets to working UTF-16 offsets, constructing text only at apply. */
|
|
111
|
+
export function composeExactFixes(base, working, edits) {
|
|
112
|
+
const mapping = createExactEditMapping(base, working);
|
|
113
|
+
if (mapping === undefined)
|
|
51
114
|
return undefined;
|
|
52
115
|
let merged = working;
|
|
53
116
|
for (const edit of [...edits].sort((left, right) => right.start - left.start || right.end - left.end)) {
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
: baseCharacterToWorking[edit.start];
|
|
57
|
-
const end = edit.start === edit.end
|
|
58
|
-
? start
|
|
59
|
-
: (() => {
|
|
60
|
-
const lastCharacter = baseCharacterToWorking[edit.end - 1];
|
|
61
|
-
return lastCharacter === undefined ? undefined : lastCharacter + 1;
|
|
62
|
-
})();
|
|
63
|
-
if (start === undefined || end === undefined)
|
|
117
|
+
const offsets = mapping.mapEdit(edit);
|
|
118
|
+
if (offsets === undefined)
|
|
64
119
|
return undefined;
|
|
65
|
-
merged = `${merged.slice(0, start)}${edit.replacement}${merged.slice(end)}`;
|
|
120
|
+
merged = `${merged.slice(0, offsets.start)}${edit.replacement}${merged.slice(offsets.end)}`;
|
|
66
121
|
}
|
|
67
122
|
return merged;
|
|
68
123
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exact-edits.js","sourceRoot":"","sources":["../../src/fixes/exact-edits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAGjC,MAAM,UAAU,iBAAiB,CAC/B,IAAkB,EAClB,KAAmB;IAEnB,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,KAAK,KAAK,CAAC,GAAG
|
|
1
|
+
{"version":3,"file":"exact-edits.js","sourceRoot":"","sources":["../../src/fixes/exact-edits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAGjC,MAAM,UAAU,iBAAiB,CAC/B,IAAkB,EAClB,KAAmB;IAEnB,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,KAAK,KAAK,CAAC,GAAG;QACtD,OAAO,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,CAAC;IACpC,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,GAAG;QACzB,OAAO,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC;IAC5D,IAAI,KAAK,CAAC,KAAK,KAAK,KAAK,CAAC,GAAG;QAC3B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,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC;QACrE,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED,2FAA2F;AAC3F,MAAM,UAAU,iBAAiB,CAC/B,IAAY,EACZ,OAAe,EACf,KAA8B;IAE9B,MAAM,OAAO,GAAG,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACtD,IAAI,OAAO,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC5C,IAAI,MAAM,GAAG,OAAO,CAAC;IACrB,KAAK,MAAM,IAAI,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,IAAI,CAChC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAClE,EAAE,CAAC;QACF,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,OAAO,KAAK,SAAS;YAAE,OAAO,SAAS,CAAC;QAC5C,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;IAC9F,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CheckFixCandidate, FixPlanItem, WorkingFilePreview } from "./types.js";
|
|
2
|
+
interface PlannedCandidates {
|
|
3
|
+
readonly candidates: readonly CheckFixCandidate[];
|
|
4
|
+
readonly items: readonly FixPlanItem[];
|
|
5
|
+
}
|
|
6
|
+
export declare function planCandidates(candidates: readonly CheckFixCandidate[], workingFiles: ReadonlyMap<string, WorkingFilePreview>): PlannedCandidates;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=plan-candidates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-candidates.d.ts","sourceRoot":"","sources":["../../src/fixes/plan-candidates.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,iBAAiB,EAIjB,WAAW,EAEX,kBAAkB,EACnB,MAAM,YAAY,CAAC;AA4GpB,UAAU,iBAAiB;IACzB,QAAQ,CAAC,UAAU,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAClD,QAAQ,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;CACxC;AASD,wBAAgB,cAAc,CAC5B,UAAU,EAAE,SAAS,iBAAiB,EAAE,EACxC,YAAY,EAAE,WAAW,CAAC,MAAM,EAAE,kBAAkB,CAAC,GACpD,iBAAiB,CAwEnB"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { compareCodeUnits } from "../core/compare.js";
|
|
2
|
+
import { createExactEditMapping, overlappingExactEdits, } from "./exact-edits.js";
|
|
3
|
+
function itemForExact(candidate, edits, reason) {
|
|
4
|
+
return Object.freeze({
|
|
5
|
+
checkId: candidate.checkId,
|
|
6
|
+
file: candidate.file,
|
|
7
|
+
findingIds: Object.freeze([
|
|
8
|
+
...new Set(edits.map((edit) => edit.findingId)),
|
|
9
|
+
]),
|
|
10
|
+
scope: "finding",
|
|
11
|
+
fixes: edits.length,
|
|
12
|
+
status: reason === undefined ? "applicable" : "skipped",
|
|
13
|
+
...(reason === undefined ? {} : { reason }),
|
|
14
|
+
severities: Object.freeze(edits.map((edit) => ({
|
|
15
|
+
findingId: edit.findingId,
|
|
16
|
+
severity: edit.severity,
|
|
17
|
+
}))),
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function itemForFormatting(candidate) {
|
|
21
|
+
return Object.freeze({
|
|
22
|
+
checkId: candidate.checkId,
|
|
23
|
+
file: candidate.file,
|
|
24
|
+
findingIds: Object.freeze([...new Set(candidate.findingIds)]),
|
|
25
|
+
scope: "working-file",
|
|
26
|
+
fixes: 1,
|
|
27
|
+
status: "applicable",
|
|
28
|
+
severities: Object.freeze(candidate.findingIds.map((findingId, index) => ({
|
|
29
|
+
findingId,
|
|
30
|
+
severity: candidate.severities[index],
|
|
31
|
+
}))),
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function finalizeItems(drafts) {
|
|
35
|
+
const countedFindings = new Set();
|
|
36
|
+
return Object.freeze(drafts
|
|
37
|
+
.map((draft) => {
|
|
38
|
+
const severities = new Map();
|
|
39
|
+
for (const entry of draft.severities) {
|
|
40
|
+
if (severities.get(entry.findingId) !== "error" ||
|
|
41
|
+
entry.severity === "error") {
|
|
42
|
+
severities.set(entry.findingId, entry.severity);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const unique = [...severities].filter(([findingId]) => {
|
|
46
|
+
if (countedFindings.has(findingId))
|
|
47
|
+
return false;
|
|
48
|
+
countedFindings.add(findingId);
|
|
49
|
+
return true;
|
|
50
|
+
});
|
|
51
|
+
return Object.freeze({
|
|
52
|
+
checkId: draft.checkId,
|
|
53
|
+
file: draft.file,
|
|
54
|
+
findingIds: draft.findingIds,
|
|
55
|
+
scope: draft.scope,
|
|
56
|
+
fixes: draft.fixes,
|
|
57
|
+
blocking: unique.filter(([, severity]) => severity === "error")
|
|
58
|
+
.length,
|
|
59
|
+
warnings: unique.filter(([, severity]) => severity === "warning")
|
|
60
|
+
.length,
|
|
61
|
+
status: draft.status,
|
|
62
|
+
...(draft.reason === undefined ? {} : { reason: draft.reason }),
|
|
63
|
+
});
|
|
64
|
+
})
|
|
65
|
+
.sort(compareItems));
|
|
66
|
+
}
|
|
67
|
+
function compareItems(left, right) {
|
|
68
|
+
return (compareCodeUnits(left.file, right.file) ||
|
|
69
|
+
compareCodeUnits(left.checkId, right.checkId) ||
|
|
70
|
+
compareCodeUnits(left.scope, right.scope) ||
|
|
71
|
+
compareCodeUnits(left.findingIds[0] ?? "", right.findingIds[0] ?? ""));
|
|
72
|
+
}
|
|
73
|
+
const WORKING_OVERLAP_REASON = "Working changes overlap a managed exact fix.";
|
|
74
|
+
const MAPPING_LIMIT_REASON = "Managed exact fixes could not be mapped within the preview time limit.";
|
|
75
|
+
const MANAGED_OVERLAP_REASON = "Managed exact fixes overlap each other.";
|
|
76
|
+
const INCOMPATIBLE_BASE_REASON = "Managed exact fixes use incompatible staged sources.";
|
|
77
|
+
export function planCandidates(candidates, workingFiles) {
|
|
78
|
+
const reasons = new Map();
|
|
79
|
+
const exactByFile = new Map();
|
|
80
|
+
for (const candidate of candidates) {
|
|
81
|
+
if (candidate.kind !== "exact-file")
|
|
82
|
+
continue;
|
|
83
|
+
const existing = exactByFile.get(candidate.file);
|
|
84
|
+
if (existing === undefined)
|
|
85
|
+
exactByFile.set(candidate.file, [candidate]);
|
|
86
|
+
else
|
|
87
|
+
existing.push(candidate);
|
|
88
|
+
}
|
|
89
|
+
for (const [file, exactCandidates] of exactByFile) {
|
|
90
|
+
const baseSource = exactCandidates[0].baseSource;
|
|
91
|
+
const entries = exactCandidates.flatMap((candidate) => candidate.edits.map((edit) => ({ candidate, edit })));
|
|
92
|
+
if (exactCandidates.some((candidate) => candidate.baseSource !== baseSource)) {
|
|
93
|
+
for (const { edit } of entries)
|
|
94
|
+
reasons.set(edit, INCOMPATIBLE_BASE_REASON);
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
for (const edit of overlappingExactEdits(entries.map(({ edit }) => edit))) {
|
|
98
|
+
reasons.set(edit, MANAGED_OVERLAP_REASON);
|
|
99
|
+
}
|
|
100
|
+
const preview = workingFiles.get(file);
|
|
101
|
+
const mapping = preview === undefined
|
|
102
|
+
? undefined
|
|
103
|
+
: createExactEditMapping(baseSource, preview.content);
|
|
104
|
+
for (const { edit } of entries) {
|
|
105
|
+
if (reasons.has(edit))
|
|
106
|
+
continue;
|
|
107
|
+
if (mapping?.mapEdit(edit) === undefined) {
|
|
108
|
+
reasons.set(edit, preview !== undefined && mapping === undefined
|
|
109
|
+
? MAPPING_LIMIT_REASON
|
|
110
|
+
: WORKING_OVERLAP_REASON);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
const itemDrafts = [];
|
|
115
|
+
const applicable = [];
|
|
116
|
+
for (const candidate of candidates) {
|
|
117
|
+
if (candidate.kind === "format-file") {
|
|
118
|
+
itemDrafts.push(itemForFormatting(candidate));
|
|
119
|
+
applicable.push(candidate);
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
const edits = candidate.edits.filter((edit) => !reasons.has(edit));
|
|
123
|
+
const partitions = new Map();
|
|
124
|
+
for (const edit of candidate.edits) {
|
|
125
|
+
const reason = reasons.get(edit);
|
|
126
|
+
const partition = partitions.get(reason);
|
|
127
|
+
if (partition === undefined)
|
|
128
|
+
partitions.set(reason, [edit]);
|
|
129
|
+
else
|
|
130
|
+
partition.push(edit);
|
|
131
|
+
}
|
|
132
|
+
for (const [reason, partition] of partitions) {
|
|
133
|
+
itemDrafts.push(itemForExact(candidate, partition, reason));
|
|
134
|
+
}
|
|
135
|
+
if (edits.length > 0) {
|
|
136
|
+
applicable.push(Object.freeze({ ...candidate, edits: Object.freeze(edits) }));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return Object.freeze({
|
|
140
|
+
candidates: Object.freeze(applicable),
|
|
141
|
+
items: finalizeItems(itemDrafts),
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
//# sourceMappingURL=plan-candidates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-candidates.js","sourceRoot":"","sources":["../../src/fixes/plan-candidates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EACL,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAyB1B,SAAS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AE,CAAC,IAAI,CAAC,CAAC,CAAC;;gBACvD,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;QACD,KAAK,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,UAAU,EAAE,CAAC;YAC7C,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;QAC9D,CAAC;QACD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACrB,UAAU,CAAC,IAAI,CACb,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAC7D,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;QACrC,KAAK,EAAE,aAAa,CAAC,UAAU,CAAC;KACjC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { CheckRunContext } from "../checks/adapter.js";
|
|
1
|
+
import type { CheckRunContext, CheckExecutionResult } from "../checks/adapter.js";
|
|
2
2
|
import type { FormattingSettings } from "../checks/prettier/settings.js";
|
|
3
3
|
import type { Finding } from "../core/types.js";
|
|
4
|
-
import type { FormatFileFixCandidate } from "./types.js";
|
|
4
|
+
import type { FormatFileFixCandidate, CheckFixCandidate, FixableCheckId } from "./types.js";
|
|
5
5
|
/**
|
|
6
6
|
* Plans whole-working-file formatting for the reported target findings only.
|
|
7
7
|
* The candidate deliberately contains settings or a project engine reference
|
|
@@ -16,4 +16,5 @@ export declare function formatWorkingSource(input: {
|
|
|
16
16
|
}, options?: {
|
|
17
17
|
readonly signal?: AbortSignal;
|
|
18
18
|
}): Promise<string>;
|
|
19
|
+
export declare function addFormattingForExactCandidates(candidates: readonly CheckFixCandidate[], selected: ReadonlySet<FixableCheckId>, executions: readonly CheckExecutionResult[]): readonly CheckFixCandidate[];
|
|
19
20
|
//# sourceMappingURL=prettier-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prettier-provider.d.ts","sourceRoot":"","sources":["../../src/fixes/prettier-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prettier-provider.d.ts","sourceRoot":"","sources":["../../src/fixes/prettier-provider.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AASzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,KAAK,EACV,sBAAsB,EACtB,iBAAiB,EACjB,cAAc,EACf,MAAM,YAAY,CAAC;AAapB;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,SAAS,OAAO,EAAE,GAC3B,OAAO,CAAC,SAAS,sBAAsB,EAAE,CAAC,CAyE5C;AAED,wBAAsB,mBAAmB,CACvC,KAAK,EAAE;IACL,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAAC;CACjD,EACD,OAAO,GAAE;IAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;CAAO,GAC9C,OAAO,CAAC,MAAM,CAAC,CAejB;AASD,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,SAAS,iBAAiB,EAAE,EACxC,QAAQ,EAAE,WAAW,CAAC,cAAc,CAAC,EACrC,UAAU,EAAE,SAAS,oBAAoB,EAAE,GAC1C,SAAS,iBAAiB,EAAE,CAmD9B"}
|
|
@@ -88,4 +88,57 @@ export async function formatWorkingSource(input, options = {}) {
|
|
|
88
88
|
input: { ...input, file },
|
|
89
89
|
}, options);
|
|
90
90
|
}
|
|
91
|
+
function resolvePolicyForFile(executions) {
|
|
92
|
+
return executions.find((execution) => execution.policyForFile !== undefined)
|
|
93
|
+
?.policyForFile;
|
|
94
|
+
}
|
|
95
|
+
export function addFormattingForExactCandidates(candidates, selected, executions) {
|
|
96
|
+
if (!selected.has("formatting"))
|
|
97
|
+
return candidates;
|
|
98
|
+
const policyForFile = resolvePolicyForFile(executions);
|
|
99
|
+
if (policyForFile === undefined)
|
|
100
|
+
return candidates;
|
|
101
|
+
const byFile = new Map();
|
|
102
|
+
for (const candidate of candidates) {
|
|
103
|
+
if (candidate.kind !== "format-file")
|
|
104
|
+
continue;
|
|
105
|
+
byFile.set(candidate.file, candidate);
|
|
106
|
+
}
|
|
107
|
+
for (const candidate of candidates) {
|
|
108
|
+
if (candidate.kind !== "exact-file" ||
|
|
109
|
+
prettierParserFor(candidate.file) === undefined) {
|
|
110
|
+
continue;
|
|
111
|
+
}
|
|
112
|
+
const policy = policyForFile("formatting", candidate.file, "target");
|
|
113
|
+
if (policy.severity === "off")
|
|
114
|
+
continue;
|
|
115
|
+
// Project-engine files are formatted by their own engine through the
|
|
116
|
+
// formatting finding path, never by bundling managed settings here.
|
|
117
|
+
if (policy.engine === "project")
|
|
118
|
+
continue;
|
|
119
|
+
const existing = byFile.get(candidate.file);
|
|
120
|
+
const findingIds = [
|
|
121
|
+
...(existing?.findingIds ?? []),
|
|
122
|
+
...candidate.edits.map((edit) => edit.findingId),
|
|
123
|
+
];
|
|
124
|
+
const severities = [
|
|
125
|
+
...(existing?.severities ?? []),
|
|
126
|
+
...candidate.edits.map((edit) => edit.severity),
|
|
127
|
+
];
|
|
128
|
+
const [formatCandidate] = sanitizeFixCandidates([
|
|
129
|
+
{
|
|
130
|
+
kind: "format-file",
|
|
131
|
+
checkId: "formatting",
|
|
132
|
+
file: candidate.file,
|
|
133
|
+
findingIds,
|
|
134
|
+
severities,
|
|
135
|
+
settings: policy.settings,
|
|
136
|
+
},
|
|
137
|
+
], { checkId: "formatting", findingIds });
|
|
138
|
+
byFile.set(candidate.file, formatCandidate);
|
|
139
|
+
}
|
|
140
|
+
const otherCandidates = candidates.filter((candidate) => candidate.kind !== "format-file");
|
|
141
|
+
const formattingCandidates = [...byFile.values()];
|
|
142
|
+
return Object.freeze([...otherCandidates, ...formattingCandidates]);
|
|
143
|
+
}
|
|
91
144
|
//# sourceMappingURL=prettier-provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prettier-provider.js","sourceRoot":"","sources":["../../src/fixes/prettier-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prettier-provider.js","sourceRoot":"","sources":["../../src/fixes/prettier-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAMhF,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,OAAO,EACL,iBAAiB,EACjB,kCAAkC,EAClC,gBAAgB,GACjB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAOtD,SAAS,0BAA0B,CAAC,OAAgB;IAIlD,OAAO,CACL,OAAO,CAAC,KAAK,KAAK,YAAY;QAC9B,OAAO,CAAC,QAAQ,KAAK,SAAS;QAC9B,CAAC,OAAO,CAAC,QAAQ,KAAK,SAAS,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CACjE,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,OAAwB,EACxB,QAA4B;IAE5B,MAAM,cAAc,GAAG,IAAI,GAAG,EAAqB,C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,QAAQ;aAC1B;SACF,EACD,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CACtC,CAAC;QACF,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,eAAyC,CAAC,CAAC;IACxE,CAAC;IACD,MAAM,eAAe,GAAG,UAAU,CAAC,MAAM,CACvC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,KAAK,aAAa,CAChD,CAAC;IACF,MAAM,oBAAoB,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IAClD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,eAAe,EAAE,GAAG,oBAAoB,CAAC,CAAC,CAAC;AACtE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CheckExecutionResult } from "../checks/adapter.js";
|
|
2
|
+
import type { PolicyDecision } from "../policy/evaluate.js";
|
|
3
|
+
import type { FixPlan, FixPlanCheck, FixPlanItem, FixableCheckId, WorkingFilePreview } from "./types.js";
|
|
4
|
+
export declare function publicPlan(selected: readonly FixableCheckId[], items: readonly FixPlanItem[], workingFiles: ReadonlyMap<string, WorkingFilePreview>, checks: readonly FixPlanCheck[], decision?: PolicyDecision): FixPlan;
|
|
5
|
+
export declare function planChecks(selected: readonly FixableCheckId[], executions: readonly CheckExecutionResult[], items: readonly FixPlanItem[]): readonly FixPlanCheck[];
|
|
6
|
+
/** Serializes only the public, source-free plan projection. */
|
|
7
|
+
export declare function renderFixPlanJson(plan: FixPlan): string;
|
|
8
|
+
//# sourceMappingURL=public-plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-plan.d.ts","sourceRoot":"","sources":["../../src/fixes/public-plan.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EACV,OAAO,EACP,YAAY,EAEZ,WAAW,EAEX,cAAc,EACd,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAEpB,wBAAgB,UAAU,CACxB,QAAQ,EAAE,SAAS,cAAc,EAAE,EACnC,KAAK,EAAE,SAAS,WAAW,EAAE,EAC7B,YAAY,EAAE,WAAW,CAAC,MAAM,EAAE,kBAAkB,CAAC,EACrD,MAAM,EAAE,SAAS,YAAY,EAAE,EAC/B,QAAQ,CAAC,EAAE,cAAc,GACxB,OAAO,CA8ET;AAED,wBAAgB,UAAU,CACxB,QAAQ,EAAE,SAAS,cAAc,EAAE,EACnC,UAAU,EAAE,SAAS,oBAAoB,EAAE,EAC3C,KAAK,EAAE,SAAS,WAAW,EAAE,GAC5B,SAAS,YAAY,EAAE,CAwEzB;AAED,+DAA+D;AAC/D,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAiEvD"}
|