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
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Presentation observers cannot change analysis or prevent resource cleanup. */
|
|
2
|
+
export function announceScanPhase(onEvent, phase, clock) {
|
|
3
|
+
if (onEvent === undefined)
|
|
4
|
+
return;
|
|
5
|
+
try {
|
|
6
|
+
onEvent({
|
|
7
|
+
type: "scan-phase",
|
|
8
|
+
checkId: "zedbee",
|
|
9
|
+
target: ".",
|
|
10
|
+
timestamp: clock(),
|
|
11
|
+
phase,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
catch {
|
|
15
|
+
// The observer owns display failure; scanning and cleanup must continue.
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../src/scan/progress.ts"],"names":[],"mappings":"AAEA,iFAAiF;AACjF,MAAM,UAAU,iBAAiB,CAC/B,OAAiD,EACjD,KAAgB,EAChB,KAAmB;IAEnB,IAAI,OAAO,KAAK,SAAS;QAAE,OAAO;IAClC,IAAI,CAAC;QACH,OAAO,CAAC;YACN,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,KAAK,EAAE;YAClB,KAAK;SACN,CAAC,CAAC;IACL,CAAC;IAAC,MAAM,CAAC;QACP,yEAAyE;IAC3E,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-scan.d.ts","sourceRoot":"","sources":["../../src/scan/run-scan.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run-scan.d.ts","sourceRoot":"","sources":["../../src/scan/run-scan.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,KAAK,EAGV,UAAU,EACX,MAAM,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EAAE,OAAO,CAAC;CAChC;AA8BD,wBAAsB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,CAgJ1E"}
|
package/dist/scan/run-scan.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { runMergeScan } from "./merge-scan.js";
|
|
2
|
+
import { freezeResult } from "../core/freeze-result.js";
|
|
2
3
|
export { DEFAULT_CHECK_ADAPTERS } from "../checks/descriptors.js";
|
|
3
4
|
import { summarizeConfiguration, } from "../config/summary.js";
|
|
4
5
|
import { EMPTY_AGENT_GUIDANCE } from "../reporting/agent-guidance.js";
|
|
@@ -16,15 +17,6 @@ const DEFAULT_DEPENDENCIES = {
|
|
|
16
17
|
now: () => new Date(),
|
|
17
18
|
createObservationCache: () => new ObservationCacheStore({ root: defaultObservationCacheRoot() }),
|
|
18
19
|
};
|
|
19
|
-
function deepFreeze(value) {
|
|
20
|
-
if (value !== null && typeof value === "object" && !Object.isFrozen(value)) {
|
|
21
|
-
for (const nested of Object.values(value)) {
|
|
22
|
-
deepFreeze(nested);
|
|
23
|
-
}
|
|
24
|
-
Object.freeze(value);
|
|
25
|
-
}
|
|
26
|
-
return value;
|
|
27
|
-
}
|
|
28
20
|
function dispatchOptions(onEvent, networkDisclosures, cache) {
|
|
29
21
|
return {
|
|
30
22
|
...(cache === undefined ? {} : { cache }),
|
|
@@ -43,13 +35,16 @@ function dispatchOptions(onEvent, networkDisclosures, cache) {
|
|
|
43
35
|
}
|
|
44
36
|
export async function runScan(options) {
|
|
45
37
|
const dependencies = options.dependencies ?? DEFAULT_DEPENDENCIES;
|
|
38
|
+
const startedAt = dependencies.now().toISOString();
|
|
39
|
+
const started = dependencies.clock();
|
|
40
|
+
let selectedComparison;
|
|
46
41
|
if (options.merge !== undefined) {
|
|
47
|
-
const merged = await runMergeScan(options, dependencies, runScan)
|
|
42
|
+
const merged = await runMergeScan(options, dependencies, runScan, (selected) => {
|
|
43
|
+
selectedComparison = selected;
|
|
44
|
+
});
|
|
48
45
|
if (merged !== undefined)
|
|
49
|
-
return
|
|
46
|
+
return freezeResult(merged);
|
|
50
47
|
}
|
|
51
|
-
const startedAt = dependencies.now().toISOString();
|
|
52
|
-
const started = dependencies.clock();
|
|
53
48
|
const networkDisclosures = [];
|
|
54
49
|
let includeSourceExcerpts = false;
|
|
55
50
|
let presentationPolicy = Object.freeze({
|
|
@@ -71,6 +66,7 @@ export async function runScan(options) {
|
|
|
71
66
|
});
|
|
72
67
|
const outcome = await withAnalysisSession({
|
|
73
68
|
...options,
|
|
69
|
+
...(selectedComparison === undefined ? {} : { selectedComparison }),
|
|
74
70
|
dependencies,
|
|
75
71
|
onConfiguration(config) {
|
|
76
72
|
try {
|
|
@@ -99,7 +95,7 @@ export async function runScan(options) {
|
|
|
99
95
|
const checks = decision === undefined
|
|
100
96
|
? []
|
|
101
97
|
: includeSourceExcerpts && session.kind === "analyzed"
|
|
102
|
-
? await enrichSourceExcerpts(decision.results, session.targetInspection)
|
|
98
|
+
? await enrichSourceExcerpts(decision.results, session.targetInspection, session.executions.map(({ result }) => result))
|
|
103
99
|
: omitSourceExcerpts(decision.results);
|
|
104
100
|
const context = reportContext(state);
|
|
105
101
|
return {
|
|
@@ -138,6 +134,6 @@ export async function runScan(options) {
|
|
|
138
134
|
? withUnreportableCleanupFailure(report, durationMs)
|
|
139
135
|
: withCleanupFailure(report, outcome.cleanupFailure.temporaryPath, durationMs);
|
|
140
136
|
}
|
|
141
|
-
return
|
|
137
|
+
return freezeResult(report);
|
|
142
138
|
}
|
|
143
139
|
//# sourceMappingURL=run-scan.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-scan.js","sourceRoot":"","sources":["../../src/scan/run-scan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"run-scan.js","sourceRoot":"","sources":["../../src/scan/run-scan.ts"],"names":[],"mappings":"AA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AY,CAAC,KAAK,EAAE,GAAG,OAAO,CAAC,CAAC;QAC/D,MAAM;YACJ,OAAO,CAAC,cAAc,CAAC,aAAa,KAAK,SAAS;gBAChD,CAAC,CAAC,8BAA8B,CAAC,MAAM,EAAE,UAAU,CAAC;gBACpD,CAAC,CAAC,kBAAkB,CAChB,MAAM,EACN,OAAO,CAAC,cAAc,CAAC,aAAa,EACpC,UAAU,CACX,CAAC;IACV,CAAC;IACD,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -3,5 +3,5 @@ import type { RepositoryInspection } from "../inspection/types.js";
|
|
|
3
3
|
import type { ScanReport } from "./report.js";
|
|
4
4
|
export declare function omitSourceExcerpts(checks: readonly CheckResult[]): readonly CheckResult[];
|
|
5
5
|
export declare function omitReportSourceExcerpts(report: ScanReport): ScanReport;
|
|
6
|
-
export declare function enrichSourceExcerpts(checks: readonly CheckResult[], snapshot: Pick<RepositoryInspection, "snapshotRoot"
|
|
6
|
+
export declare function enrichSourceExcerpts(checks: readonly CheckResult[], snapshot: Pick<RepositoryInspection, "snapshotRoot">, privateTargetResults?: readonly CheckResult[]): Promise<readonly CheckResult[]>;
|
|
7
7
|
//# sourceMappingURL=source-excerpts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-excerpts.d.ts","sourceRoot":"","sources":["../../src/scan/source-excerpts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAA0B,MAAM,kBAAkB,CAAC;AAO5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"source-excerpts.d.ts","sourceRoot":"","sources":["../../src/scan/source-excerpts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAA0B,MAAM,kBAAkB,CAAC;AAO5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAqJ9C,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,WAAW,EAAE,GAC7B,SAAS,WAAW,EAAE,CASxB;AAaD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAqCvE;AAED,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,SAAS,WAAW,EAAE,EAC9B,QAAQ,EAAE,IAAI,CAAC,oBAAoB,EAAE,cAAc,CAAC,EACpD,oBAAoB,GAAE,SAAS,WAAW,EAAW,GACpD,OAAO,CAAC,SAAS,WAAW,EAAE,CAAC,CAgGjC"}
|
|
@@ -3,8 +3,10 @@ import { SOURCE_EXCERPT_MAX_CODE_POINTS } from "../checks/sanitize-result.js";
|
|
|
3
3
|
import { summarizeChecks } from "../core/summarize.js";
|
|
4
4
|
import { normalizeRepositoryRelativePath } from "../attribution/fingerprint.js";
|
|
5
5
|
import { readContainedLines } from "../inspection/read-json.js";
|
|
6
|
-
import { captureSnapshotRegistry, } from "../inspection/snapshot-registry.js";
|
|
6
|
+
import { captureSnapshotRegistry, IGNORED_DIRECTORY_NAMES, } from "../inspection/snapshot-registry.js";
|
|
7
7
|
import { sanitizeSourceLine } from "../reporting/source-line.js";
|
|
8
|
+
import pLimit from "p-limit";
|
|
9
|
+
import { freezeResult } from "../core/freeze-result.js";
|
|
8
10
|
function normalizedPath(file) {
|
|
9
11
|
try {
|
|
10
12
|
return normalizeRepositoryRelativePath(file);
|
|
@@ -132,18 +134,9 @@ function redactedMarker(sourceExcerpt) {
|
|
|
132
134
|
truncated: sourceExcerpt.truncated,
|
|
133
135
|
});
|
|
134
136
|
}
|
|
135
|
-
function deepFreeze(value) {
|
|
136
|
-
if (value !== null && typeof value === "object" && !Object.isFrozen(value)) {
|
|
137
|
-
for (const nested of Object.values(value)) {
|
|
138
|
-
deepFreeze(nested);
|
|
139
|
-
}
|
|
140
|
-
Object.freeze(value);
|
|
141
|
-
}
|
|
142
|
-
return value;
|
|
143
|
-
}
|
|
144
137
|
export function omitReportSourceExcerpts(report) {
|
|
145
138
|
const checks = Object.freeze(report.checks.map((check) => copyCheck(check, check.findings.map((finding) => copyFinding(finding, redactedMarker(finding.sourceExcerpt))))));
|
|
146
|
-
return
|
|
139
|
+
return freezeResult({
|
|
147
140
|
schemaVersion: report.schemaVersion,
|
|
148
141
|
outcome: report.outcome,
|
|
149
142
|
exitCode: report.exitCode,
|
|
@@ -170,17 +163,9 @@ export function omitReportSourceExcerpts(report) {
|
|
|
170
163
|
checks,
|
|
171
164
|
});
|
|
172
165
|
}
|
|
173
|
-
async function
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
catch {
|
|
178
|
-
return undefined;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
export async function enrichSourceExcerpts(checks, snapshot) {
|
|
182
|
-
const secretRanges = secretRangeIndex(checks);
|
|
183
|
-
const registry = await captureRegistry(snapshot.snapshotRoot);
|
|
166
|
+
export async function enrichSourceExcerpts(checks, snapshot, privateTargetResults = checks) {
|
|
167
|
+
// Attribution and visibility decide what is reported, never what is secret.
|
|
168
|
+
const secretRanges = secretRangeIndex([...checks, ...privateTargetResults]);
|
|
184
169
|
const requestedLines = new Map();
|
|
185
170
|
for (const check of checks) {
|
|
186
171
|
for (const finding of check.findings) {
|
|
@@ -200,12 +185,25 @@ export async function enrichSourceExcerpts(checks, snapshot) {
|
|
|
200
185
|
}
|
|
201
186
|
}
|
|
202
187
|
const sourceLines = new Map();
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
188
|
+
const limit = pLimit(8);
|
|
189
|
+
for (const [file, lines] of requestedLines) {
|
|
190
|
+
sourceLines.set(file, limit(async () => {
|
|
191
|
+
const path = normalizedPath(file);
|
|
192
|
+
if (path === undefined)
|
|
193
|
+
return undefined;
|
|
194
|
+
const registry = await captureSnapshotRegistry(snapshot.snapshotRoot, [
|
|
195
|
+
path,
|
|
196
|
+
]);
|
|
197
|
+
if (registry
|
|
198
|
+
.entries()
|
|
199
|
+
.some((entry) => entry.repositoryPath
|
|
200
|
+
.split("/")
|
|
201
|
+
.some((part) => IGNORED_DIRECTORY_NAMES.includes(part))))
|
|
202
|
+
return undefined;
|
|
203
|
+
return readContainedLines(registry, path, [...lines], {
|
|
206
204
|
maxCodePoints: SOURCE_EXCERPT_MAX_CODE_POINTS + 1,
|
|
207
|
-
})
|
|
208
|
-
}
|
|
205
|
+
});
|
|
206
|
+
}).catch(() => undefined));
|
|
209
207
|
}
|
|
210
208
|
const enrichedChecks = await Promise.all(checks.map(async (check) => {
|
|
211
209
|
const findings = await Promise.all(check.findings.map(async (finding) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-excerpts.js","sourceRoot":"","sources":["../../src/scan/source-excerpts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EACL,uBAAuB,
|
|
1
|
+
{"version":3,"file":"source-excerpts.js","sourceRoot":"","sources":["../../src/scan/source-excerpts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;A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,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAC1C,MAAM,UAAU,GAAG,KAAK,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;YACpC,OAAO,WAAW,CAChB,OAAO,EACP,UAAU,KAAK,SAAS;gBACtB,CAAC,CAAC,SAAS;gBACX,CAAC,CAAC,WAAW,CAAC,UAAU,EAAE,IAAI,CAAC,CAClC,CAAC;QACJ,CAAC,CAAC,CACH,CAAC;QACF,OAAO,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IACpC,CAAC,CAAC,CACH,CAAC;IAEF,OAAO,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AnalyzerRequest } from "../checks/runner/protocol.js";
|
|
2
|
+
import { ServiceConnection } from "./transport.js";
|
|
3
|
+
import { type ServiceState, type ServiceRecord } from "./state.js";
|
|
4
|
+
export declare class ServiceClient {
|
|
5
|
+
readonly peer: ServiceConnection;
|
|
6
|
+
private next;
|
|
7
|
+
private pending;
|
|
8
|
+
private readonly retained;
|
|
9
|
+
private closed;
|
|
10
|
+
private cleanup;
|
|
11
|
+
private readonly ownership;
|
|
12
|
+
constructor(peer: ServiceConnection, state: Pick<ServiceState, "lease" | "removeLease">);
|
|
13
|
+
private rejectPending;
|
|
14
|
+
event(value: Record<string, unknown>): void;
|
|
15
|
+
receive(value: unknown): void;
|
|
16
|
+
request(op: string, fields?: Record<string, unknown>, signal?: AbortSignal, request?: AnalyzerRequest): Promise<unknown>;
|
|
17
|
+
close(): Promise<void>;
|
|
18
|
+
closeSession(sessionId: string): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
export declare function connectService(state: ServiceState, record: ServiceRecord): Promise<ServiceClient>;
|
|
21
|
+
//# sourceMappingURL=client-connection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-connection.d.ts","sourceRoot":"","sources":["../../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";
|
|
3
|
+
import { AnalyzerCapacityError, analyzerRequestRetentionBytes, exactFields, jobFailure, } from "../checks/runner/envelope.js";
|
|
4
|
+
import { AnalyzerJobError } from "../checks/diagnostics.js";
|
|
5
|
+
import { CheckIncompleteError } from "../checks/incomplete-error.js";
|
|
6
|
+
import { ByteBudget, GLOBAL_BYTES, HEX, ServiceUnavailableError, proof, verifyProof, } from "./protocol.js";
|
|
7
|
+
import { ServiceConnection, serviceEndpoint } from "./transport.js";
|
|
8
|
+
import {} from "./state.js";
|
|
9
|
+
import { ClientOwnership } from "./client-ownership.js";
|
|
10
|
+
function decodeError(value) {
|
|
11
|
+
if (!exactFields(value, ["code", "scope", "diagnostic", "incomplete"]))
|
|
12
|
+
return new ServiceUnavailableError();
|
|
13
|
+
if (value.code === "ANALYZER_CAPACITY" &&
|
|
14
|
+
["session", "job", "request"].includes(value.scope))
|
|
15
|
+
return new AnalyzerCapacityError(value.scope);
|
|
16
|
+
if (value.code === "analyzer")
|
|
17
|
+
return new AnalyzerJobError(value.diagnostic);
|
|
18
|
+
if (value.code === "incomplete")
|
|
19
|
+
return new CheckIncompleteError(value.incomplete);
|
|
20
|
+
return new ServiceUnavailableError();
|
|
21
|
+
}
|
|
22
|
+
export class ServiceClient {
|
|
23
|
+
peer;
|
|
24
|
+
next = 0;
|
|
25
|
+
pending = new Map();
|
|
26
|
+
retained = new ByteBudget(GLOBAL_BYTES);
|
|
27
|
+
closed = false;
|
|
28
|
+
cleanup;
|
|
29
|
+
ownership;
|
|
30
|
+
constructor(peer, state) {
|
|
31
|
+
this.peer = peer;
|
|
32
|
+
this.ownership = new ClientOwnership(state, (eventId) => this.request("ack", { eventId }), () => !peer.socket.destroyed);
|
|
33
|
+
peer.socket.once("close", () => {
|
|
34
|
+
this.closed = true;
|
|
35
|
+
for (const [id, pending] of this.pending)
|
|
36
|
+
if (pending.acknowledgement) {
|
|
37
|
+
this.pending.delete(id);
|
|
38
|
+
pending.cleanup();
|
|
39
|
+
pending.reject(new ServiceUnavailableError());
|
|
40
|
+
}
|
|
41
|
+
// Socket loss is not tree/source cleanup. Keep all calls pending until
|
|
42
|
+
// independent OS witnesses prove this client's reads have ended.
|
|
43
|
+
this.cleanup = this.ownership.close();
|
|
44
|
+
void this.cleanup.then(() => this.rejectPending(), () => this.rejectPending(true));
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
rejectPending(cleanupFailed = false) {
|
|
48
|
+
for (const pending of this.pending.values()) {
|
|
49
|
+
pending.cleanup();
|
|
50
|
+
pending.reject(pending.request
|
|
51
|
+
? jobFailure(pending.request, cleanupFailed ? "cleanup" : "abnormal-exit")
|
|
52
|
+
: new ServiceUnavailableError());
|
|
53
|
+
}
|
|
54
|
+
this.pending.clear();
|
|
55
|
+
}
|
|
56
|
+
event(value) {
|
|
57
|
+
void this.ownership.accept(value).catch(() => this.peer.destroy());
|
|
58
|
+
}
|
|
59
|
+
receive(value) {
|
|
60
|
+
if (!exactFields(value, ["id", "ok", "result", "error"]) ||
|
|
61
|
+
typeof value.ok !== "boolean" ||
|
|
62
|
+
!Number.isSafeInteger(value.id))
|
|
63
|
+
throw new ServiceUnavailableError();
|
|
64
|
+
const pending = this.pending.get(value.id);
|
|
65
|
+
if (!pending)
|
|
66
|
+
throw new ServiceUnavailableError();
|
|
67
|
+
if (!exactFields(value, value.ok ? ["id", "ok", "result"] : ["id", "ok", "error"]))
|
|
68
|
+
throw new ServiceUnavailableError();
|
|
69
|
+
const error = value.ok ? undefined : decodeError(value.error);
|
|
70
|
+
this.pending.delete(value.id);
|
|
71
|
+
pending.cleanup();
|
|
72
|
+
if (value.ok)
|
|
73
|
+
pending.resolve(value.result);
|
|
74
|
+
else
|
|
75
|
+
pending.reject(error);
|
|
76
|
+
}
|
|
77
|
+
request(op, fields = {}, signal, request) {
|
|
78
|
+
if ((this.closed || this.peer.socket.destroyed) && op === "ack")
|
|
79
|
+
return Promise.reject(new ServiceUnavailableError());
|
|
80
|
+
if (this.closed || this.peer.socket.destroyed)
|
|
81
|
+
return this.close().then(() => {
|
|
82
|
+
throw request
|
|
83
|
+
? jobFailure(request, "abnormal-exit")
|
|
84
|
+
: new ServiceUnavailableError();
|
|
85
|
+
});
|
|
86
|
+
if (this.pending.size >= 32)
|
|
87
|
+
return Promise.reject(new AnalyzerCapacityError("job"));
|
|
88
|
+
if (signal?.aborted)
|
|
89
|
+
return Promise.reject(request
|
|
90
|
+
? jobFailure(request, "cancellation")
|
|
91
|
+
: new ServiceUnavailableError());
|
|
92
|
+
let releaseRetention;
|
|
93
|
+
try {
|
|
94
|
+
// Cleanup/control exchanges must remain possible while payload admission
|
|
95
|
+
// is full. Pending accepted source/request objects share one byte budget.
|
|
96
|
+
releaseRetention = this.retained.reserve(op === "run" || op === "open"
|
|
97
|
+
? analyzerRequestRetentionBytes(fields)
|
|
98
|
+
: 0);
|
|
99
|
+
}
|
|
100
|
+
catch (error) {
|
|
101
|
+
return Promise.reject(error);
|
|
102
|
+
}
|
|
103
|
+
const id = ++this.next;
|
|
104
|
+
return new Promise((resolve, reject) => {
|
|
105
|
+
const abort = () => {
|
|
106
|
+
void this.request("cancel", { jobId: id }).catch(() => this.peer.destroy());
|
|
107
|
+
};
|
|
108
|
+
this.pending.set(id, {
|
|
109
|
+
resolve,
|
|
110
|
+
reject,
|
|
111
|
+
request,
|
|
112
|
+
acknowledgement: op === "ack",
|
|
113
|
+
cleanup: () => {
|
|
114
|
+
releaseRetention();
|
|
115
|
+
signal?.removeEventListener("abort", abort);
|
|
116
|
+
},
|
|
117
|
+
});
|
|
118
|
+
signal?.addEventListener("abort", abort, { once: true });
|
|
119
|
+
void this.peer.send({ id, op, ...fields }).catch((error) => {
|
|
120
|
+
// Encoding/admission failed synchronously before socket.write: no
|
|
121
|
+
// accepted job exists and the authenticated connection remains usable.
|
|
122
|
+
if (error instanceof AnalyzerCapacityError) {
|
|
123
|
+
const pending = this.pending.get(id);
|
|
124
|
+
this.pending.delete(id);
|
|
125
|
+
pending?.cleanup();
|
|
126
|
+
pending?.reject(error);
|
|
127
|
+
}
|
|
128
|
+
else
|
|
129
|
+
this.peer.destroy();
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
async close() {
|
|
134
|
+
if (!this.closed)
|
|
135
|
+
await new Promise((resolve) => {
|
|
136
|
+
this.peer.socket.once("close", resolve);
|
|
137
|
+
this.peer.destroy();
|
|
138
|
+
});
|
|
139
|
+
await this.cleanup;
|
|
140
|
+
}
|
|
141
|
+
async closeSession(sessionId) {
|
|
142
|
+
try {
|
|
143
|
+
await this.request("close", { sessionId });
|
|
144
|
+
}
|
|
145
|
+
catch (error) {
|
|
146
|
+
if (!this.closed && !this.peer.socket.destroyed)
|
|
147
|
+
throw error;
|
|
148
|
+
// Disconnect is not proof. Only successful settlement of the independent
|
|
149
|
+
// process-tree and source-lease witnesses permits snapshot deletion.
|
|
150
|
+
await this.close();
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
export async function connectService(state, record) {
|
|
155
|
+
const socket = connect(serviceEndpoint(state, record.instance));
|
|
156
|
+
let phase = 0, client;
|
|
157
|
+
const nonce = randomBytes(32).toString("hex");
|
|
158
|
+
return new Promise((resolve, reject) => {
|
|
159
|
+
const timer = setTimeout(() => socket.destroy(), 10000);
|
|
160
|
+
socket.once("close", () => {
|
|
161
|
+
clearTimeout(timer);
|
|
162
|
+
if (!client)
|
|
163
|
+
reject(new ServiceUnavailableError());
|
|
164
|
+
});
|
|
165
|
+
const peer = new ServiceConnection(socket, new ByteBudget(GLOBAL_BYTES), new ByteBudget(GLOBAL_BYTES), (value, release) => {
|
|
166
|
+
try {
|
|
167
|
+
if (client) {
|
|
168
|
+
if (exactFields(value, [
|
|
169
|
+
"type",
|
|
170
|
+
"eventId",
|
|
171
|
+
"sessionId",
|
|
172
|
+
"witness",
|
|
173
|
+
"witnessId",
|
|
174
|
+
]) &&
|
|
175
|
+
typeof value.type === "string")
|
|
176
|
+
client.event(value);
|
|
177
|
+
else
|
|
178
|
+
client.receive(value);
|
|
179
|
+
}
|
|
180
|
+
else if (phase === 0 &&
|
|
181
|
+
exactFields(value, ["type", "nonce", "proof"]) &&
|
|
182
|
+
value.type === "challenge" &&
|
|
183
|
+
typeof value.nonce === "string" &&
|
|
184
|
+
HEX.test(value.nonce) &&
|
|
185
|
+
verifyProof(value.proof, record.secret, "server", record.identity, nonce, value.nonce)) {
|
|
186
|
+
phase = 1;
|
|
187
|
+
void peer
|
|
188
|
+
.send({
|
|
189
|
+
type: "authenticate",
|
|
190
|
+
proof: proof(record.secret, "client", record.identity, nonce, value.nonce),
|
|
191
|
+
})
|
|
192
|
+
.catch(() => socket.destroy());
|
|
193
|
+
}
|
|
194
|
+
else if (phase === 1 &&
|
|
195
|
+
exactFields(value, ["type"]) &&
|
|
196
|
+
value.type === "authenticated") {
|
|
197
|
+
clearTimeout(timer);
|
|
198
|
+
peer.authenticated(true);
|
|
199
|
+
client = new ServiceClient(peer, state);
|
|
200
|
+
resolve(client);
|
|
201
|
+
}
|
|
202
|
+
else
|
|
203
|
+
throw new ServiceUnavailableError();
|
|
204
|
+
}
|
|
205
|
+
catch {
|
|
206
|
+
socket.destroy();
|
|
207
|
+
}
|
|
208
|
+
finally {
|
|
209
|
+
release();
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
socket.once("connect", () => {
|
|
213
|
+
void peer
|
|
214
|
+
.send({ type: "hello", identity: record.identity, nonce })
|
|
215
|
+
.catch(() => socket.destroy());
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
//# sourceMappingURL=client-connection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-connection.js","sourceRoot":"","sources":["../../src/service/client-connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EACL,qBAAqB,EAC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|
|
|
1
|
+
import { type AnalyzerRequest } from "../checks/runner/protocol.js";
|
|
2
|
+
import type { AnalyzerExecutor } from "../checks/runner/executor.js";
|
|
3
|
+
/** Closing must settle independent tree/lease witnesses before resolving. */
|
|
4
|
+
export interface ServiceSessionConnection {
|
|
5
|
+
request(op: string, fields?: Record<string, unknown>, signal?: AbortSignal, request?: AnalyzerRequest): Promise<unknown>;
|
|
6
|
+
closeSession(sessionId: string): Promise<void>;
|
|
7
|
+
close(): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export declare function executorForConnection(client: ServiceSessionConnection): AnalyzerExecutor;
|
|
10
|
+
//# sourceMappingURL=client-executor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-executor.d.ts","sourceRoot":"","sources":["../../src/service/client-executor.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,eAAe,EAErB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EACV,gBAAgB,EAGjB,MAAM,8BAA8B,CAAC;AAItC,6EAA6E;AAC7E,MAAM,WAAW,wBAAwB;IACvC,OAAO,CACL,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,MAAM,CAAC,EAAE,WAAW,EACpB,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,OAAO,CAAC,CAAC;IACpB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,wBAAwB,GAC/B,gBAAgB,CA+ElB"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { analyzerRequestRetentionBytes, exactFields, } from "../checks/runner/envelope.js";
|
|
2
|
+
import { validateAnalyzerRequest, validateAnalyzerResult, } from "../checks/runner/protocol.js";
|
|
3
|
+
import { HEX, ServiceUnavailableError } from "./protocol.js";
|
|
4
|
+
export function executorForConnection(client) {
|
|
5
|
+
const sessions = new Set();
|
|
6
|
+
let closed = false, closing;
|
|
7
|
+
return {
|
|
8
|
+
async openSession(options = {}) {
|
|
9
|
+
if (closed)
|
|
10
|
+
throw new ServiceUnavailableError();
|
|
11
|
+
analyzerRequestRetentionBytes(options);
|
|
12
|
+
if (!exactFields(options, ["sourceSelections"]))
|
|
13
|
+
throw new ServiceUnavailableError();
|
|
14
|
+
const result = await client.request("open", { options });
|
|
15
|
+
if (!exactFields(result, ["sessionId"]) ||
|
|
16
|
+
typeof result.sessionId !== "string" ||
|
|
17
|
+
!HEX.test(result.sessionId))
|
|
18
|
+
throw new ServiceUnavailableError();
|
|
19
|
+
const sessionId = result.sessionId;
|
|
20
|
+
let released = false, release;
|
|
21
|
+
const session = {
|
|
22
|
+
async run(request, options = {}) {
|
|
23
|
+
if (released || closed)
|
|
24
|
+
throw new ServiceUnavailableError();
|
|
25
|
+
const signal = options.signal;
|
|
26
|
+
if (!exactFields(options, ["signal"]))
|
|
27
|
+
throw new ServiceUnavailableError();
|
|
28
|
+
analyzerRequestRetentionBytes(request);
|
|
29
|
+
const captured = structuredClone(request);
|
|
30
|
+
validateAnalyzerRequest(captured);
|
|
31
|
+
return validateAnalyzerResult(captured, await client.request("run", { sessionId, request: captured }, signal, captured));
|
|
32
|
+
},
|
|
33
|
+
close() {
|
|
34
|
+
if (!release) {
|
|
35
|
+
released = true;
|
|
36
|
+
release = client.closeSession(sessionId).then(() => {
|
|
37
|
+
sessions.delete(session);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
return release;
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
sessions.add(session);
|
|
44
|
+
if (closed) {
|
|
45
|
+
await session.close();
|
|
46
|
+
throw new ServiceUnavailableError();
|
|
47
|
+
}
|
|
48
|
+
return session;
|
|
49
|
+
},
|
|
50
|
+
close() {
|
|
51
|
+
if (!closing) {
|
|
52
|
+
closed = true;
|
|
53
|
+
closing = (async () => {
|
|
54
|
+
try {
|
|
55
|
+
const results = await Promise.allSettled([...sessions].map((session) => session.close()));
|
|
56
|
+
const failure = results.find((result) => result.status === "rejected");
|
|
57
|
+
if (failure?.status === "rejected")
|
|
58
|
+
throw failure.reason;
|
|
59
|
+
}
|
|
60
|
+
finally {
|
|
61
|
+
await client.close();
|
|
62
|
+
}
|
|
63
|
+
})();
|
|
64
|
+
}
|
|
65
|
+
return closing;
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=client-executor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-executor.js","sourceRoot":"","sources":["../../src/service/client-executor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,WAAW,GACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,uBAAuB,EACvB,sBAAsB,GAGvB,MAAM,8BAA8B,CAAC;AAOtC,OAAO,EAAE,GAAG,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAc7D,MAAM,UAAU,qBAAqB,CACnC,MAAgC;IAEhC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAA4B,CAAC;IACrD,IAAI,MAAM,GAAG,KAAK,EAChB,OAAkC,CAAC;IACrC,OAAO;QACL,KAAK,CAAC,WAAW,CAAC,UAA2C,EAAE;YAC7D,IAAI,MAAM;gBAAE,MAAM,IAAI,uBAAuB,EAAE,CAAC;YAChD,6BAA6B,CAAC,OAAO,CAAC,CAAC;YACvC,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC,kBAAkB,CAAC,CAAC;gBAC7C,MAAM,IAAI,uBAAuB,EAAE,CAAC;YACtC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;YACzD,IACE,CAAC,WAAW,CAAC,MAAM,EAAE,CAA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