zedbee 0.1.0-beta.12 → 0.1.0-beta.13
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/THIRD_PARTY_NOTICES.md +130 -14
- package/dist/attribution/entities.d.ts.map +1 -1
- package/dist/attribution/entities.js +32 -9
- package/dist/attribution/entities.js.map +1 -1
- package/dist/cache/key.d.ts.map +1 -1
- package/dist/cache/key.js +3 -0
- package/dist/cache/key.js.map +1 -1
- package/dist/checks/applicability.d.ts.map +1 -1
- package/dist/checks/applicability.js +12 -12
- package/dist/checks/applicability.js.map +1 -1
- package/dist/checks/complexity/adapter.d.ts.map +1 -1
- package/dist/checks/complexity/adapter.js +11 -6
- 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 +187 -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/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 +3 -2
- package/dist/checks/dead-code/managed-config.d.ts.map +1 -1
- package/dist/checks/dead-code/managed-config.js +23 -1
- package/dist/checks/dead-code/managed-config.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/engine-identity.js +6 -6
- package/dist/checks/engine-identity.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/observation-result.js +2 -2
- package/dist/checks/observation-result.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 +32 -0
- package/dist/checks/project-inputs.js.map +1 -0
- package/dist/checks/secrets/content.d.ts.map +1 -1
- package/dist/checks/secrets/content.js +16 -7
- 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 +7 -0
- package/dist/checks/typescript/configuration-paths.d.ts.map +1 -0
- package/dist/checks/typescript/configuration-paths.js +69 -0
- package/dist/checks/typescript/configuration-paths.js.map +1 -0
- 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/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/scan.d.ts +2 -1
- package/dist/commands/scan.d.ts.map +1 -1
- package/dist/commands/scan.js +5 -0
- 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/fixes/build-plan.d.ts +1 -0
- package/dist/fixes/build-plan.d.ts.map +1 -1
- package/dist/fixes/build-plan.js +5 -1
- package/dist/fixes/build-plan.js.map +1 -1
- package/dist/git/change-set.d.ts.map +1 -1
- package/dist/git/change-set.js +9 -0
- 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 +44 -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/inspection/inspect-repository.d.ts.map +1 -1
- package/dist/inspection/inspect-repository.js +13 -0
- 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 +34 -5
- 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/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 +7 -3
- package/dist/scan/run-scan.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/state.d.ts.map +1 -1
- package/dist/service/state.js +12 -1
- package/dist/service/state.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 +602 -3
- 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 +2 -2
- package/dist/telemetry/state.d.ts.map +1 -1
- package/dist/telemetry/state.js +3 -3
- 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.js +1 -1
- package/dist/ui/init-app.js.map +1 -1
- 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 +32 -5
- package/docs/cli-reference.md +9 -1
- package/docs/commercial-licensing.md +1 -1
- package/docs/privacy.md +34 -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/schema/zedbee.schema.json +12 -0
- /package/plugins/swarm/{skills/scan/SKILL.md → references/scan.md} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TelemetryEnvironment } from "./policy.js";
|
|
2
|
+
import type { ScanDetails } from "./schema.js";
|
|
3
|
+
export type CallerContext = Pick<ScanDetails, "caller_ai_tool" | "caller_ai_tool_candidates" | "caller_ai_tool_source">;
|
|
4
|
+
export type RepositoryToolContext = Pick<ScanDetails, "detected_ai_tools" | "generic_agent_instructions_detected" | "repo_ai_detection_status">;
|
|
5
|
+
export interface DetectionOptions {
|
|
6
|
+
permitted?: () => boolean;
|
|
7
|
+
budgetMs?: number;
|
|
8
|
+
maxScopes?: number;
|
|
9
|
+
maxProbes?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare function callerContext(env: TelemetryEnvironment): CallerContext;
|
|
12
|
+
export declare function emptyRepositoryContext(): RepositoryToolContext;
|
|
13
|
+
export declare function detectRepositoryTools(root: string, cwd: string, options?: DetectionOptions): Promise<RepositoryToolContext>;
|
|
14
|
+
//# sourceMappingURL=ai-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-context.d.ts","sourceRoot":"","sources":["../../src/telemetry/ai-context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,WAAW,EACX,gBAAgB,GAAG,2BAA2B,GAAG,uBAAuB,CACzE,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,WAAW,EACT,mBAAmB,GACnB,qCAAqC,GACrC,0BAA0B,CAC7B,CAAC;AACF,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,wBAAgB,aAAa,CAAC,GAAG,EAAE,oBAAoB,GAAG,aAAa,CAmBtE;AACD,wBAAgB,sBAAsB,IAAI,qBAAqB,CAM9D;AAmBD,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,qBAAqB,CAAC,CAqFhC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { lstat, realpath } from "node:fs/promises";
|
|
2
|
+
import { dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
3
|
+
export function callerContext(env) {
|
|
4
|
+
const candidates = [];
|
|
5
|
+
if (env.CLAUDECODE === "1")
|
|
6
|
+
candidates.push("claude_code");
|
|
7
|
+
if (/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/iu.test(env.CODEX_THREAD_ID ?? ""))
|
|
8
|
+
candidates.push("codex");
|
|
9
|
+
return {
|
|
10
|
+
caller_ai_tool: candidates.length === 0
|
|
11
|
+
? "unknown"
|
|
12
|
+
: candidates.length === 1
|
|
13
|
+
? candidates[0]
|
|
14
|
+
: "ambiguous",
|
|
15
|
+
caller_ai_tool_candidates: candidates,
|
|
16
|
+
caller_ai_tool_source: candidates.length ? "environment_hint" : "none",
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export function emptyRepositoryContext() {
|
|
20
|
+
return {
|
|
21
|
+
detected_ai_tools: [],
|
|
22
|
+
generic_agent_instructions_detected: false,
|
|
23
|
+
repo_ai_detection_status: "unavailable",
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
const markers = [
|
|
27
|
+
[".codex", "directory", "codex"],
|
|
28
|
+
["CLAUDE.md", "file", "claude_code"],
|
|
29
|
+
["CLAUDE.local.md", "file", "claude_code"],
|
|
30
|
+
[".claude", "directory", "claude_code"],
|
|
31
|
+
[".cursorrules", "file", "cursor"],
|
|
32
|
+
[".cursor", "directory", "cursor"],
|
|
33
|
+
["AGENTS.md", "file", "generic"],
|
|
34
|
+
["AGENTS.override.md", "file", "generic"],
|
|
35
|
+
[".agents", "directory", "generic"],
|
|
36
|
+
];
|
|
37
|
+
function contained(root, path) {
|
|
38
|
+
const from = relative(root, path);
|
|
39
|
+
return (from === "" ||
|
|
40
|
+
(!isAbsolute(from) && from !== ".." && !from.startsWith(`..${sep}`)));
|
|
41
|
+
}
|
|
42
|
+
export async function detectRepositoryTools(root, cwd, options = {}) {
|
|
43
|
+
root = resolve(root);
|
|
44
|
+
cwd = resolve(cwd);
|
|
45
|
+
if (!contained(root, cwd)) {
|
|
46
|
+
try {
|
|
47
|
+
const physicalRoot = await realpath(root);
|
|
48
|
+
const physicalCwd = await realpath(cwd);
|
|
49
|
+
if (!contained(physicalRoot, physicalCwd))
|
|
50
|
+
return emptyRepositoryContext();
|
|
51
|
+
root = physicalRoot;
|
|
52
|
+
cwd = physicalCwd;
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
return emptyRepositoryContext();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
const result = {
|
|
59
|
+
...emptyRepositoryContext(),
|
|
60
|
+
repo_ai_detection_status: "complete",
|
|
61
|
+
};
|
|
62
|
+
const tools = new Set();
|
|
63
|
+
const started = performance.now();
|
|
64
|
+
const budget = Math.max(0, Math.min(1000, options.budgetMs ?? 25));
|
|
65
|
+
const maximumScopes = Math.max(1, Math.min(16, options.maxScopes ?? 16));
|
|
66
|
+
const maximumProbes = Math.max(0, Math.min(256, options.maxProbes ?? 256));
|
|
67
|
+
const scopes = [root];
|
|
68
|
+
const pieces = relative(root, cwd).split(sep).filter(Boolean);
|
|
69
|
+
let scope = root;
|
|
70
|
+
for (const piece of pieces) {
|
|
71
|
+
if (scopes.length >= maximumScopes) {
|
|
72
|
+
result.repo_ai_detection_status = "partial";
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
scope = join(scope, piece);
|
|
76
|
+
scopes.push(scope);
|
|
77
|
+
}
|
|
78
|
+
let probes = 0;
|
|
79
|
+
for (const directory of scopes) {
|
|
80
|
+
if (options.permitted?.() === false ||
|
|
81
|
+
performance.now() - started >= budget ||
|
|
82
|
+
probes >= maximumProbes) {
|
|
83
|
+
result.repo_ai_detection_status = "partial";
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
probes++;
|
|
87
|
+
try {
|
|
88
|
+
const stat = await lstat(directory);
|
|
89
|
+
if (stat.isSymbolicLink() || !stat.isDirectory()) {
|
|
90
|
+
result.repo_ai_detection_status = "partial";
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
catch {
|
|
95
|
+
result.repo_ai_detection_status =
|
|
96
|
+
directory === root ? "unavailable" : "partial";
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
for (const [name, kind, tool] of markers) {
|
|
100
|
+
if (options.permitted?.() === false ||
|
|
101
|
+
performance.now() - started >= budget ||
|
|
102
|
+
probes >= maximumProbes) {
|
|
103
|
+
result.repo_ai_detection_status = "partial";
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
probes++;
|
|
107
|
+
try {
|
|
108
|
+
const stat = await lstat(join(directory, name));
|
|
109
|
+
if (stat.isSymbolicLink()) {
|
|
110
|
+
result.repo_ai_detection_status = "partial";
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
if (!(kind === "file" ? stat.isFile() : stat.isDirectory()))
|
|
114
|
+
continue;
|
|
115
|
+
if (tool === "generic")
|
|
116
|
+
result.generic_agent_instructions_detected = true;
|
|
117
|
+
else
|
|
118
|
+
tools.add(tool);
|
|
119
|
+
}
|
|
120
|
+
catch (error) {
|
|
121
|
+
if (error.code !== "ENOENT")
|
|
122
|
+
result.repo_ai_detection_status = "partial";
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
result.detected_ai_tools = [...tools].sort();
|
|
127
|
+
return result;
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=ai-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-context.js","sourceRoot":"","sources":["../../src/telemetry/ai-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAoB9E,MAAM,UAAU,aAAa,CAAC,GAAyB;IACrD,MAAM,UAAU,GAA6C,EAAE,CAAC;IAChE,IAAI,GAAG,CAAC,UAAU,KAAK,GAAG;QAAE,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAC3D,IACE,kEAAkE,CAAC,IAAI,CACrE,GAAG,CAAC,eAAe,IAA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":3,"file":"batch.d.ts","sourceRoot":"","sources":["../../src/telemetry/batch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,eAAO,MAAM,uBAAuB,QAAY,CAAC;AACjD,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,SAAS,cAAc,EAAE,GAChC,cAAc,EAAE,EAAE,CAqBpB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const TELEMETRY_REQUEST_BYTES = 60 * 1024;
|
|
2
|
+
export function telemetryBatches(events) {
|
|
3
|
+
const batches = [];
|
|
4
|
+
let current = [];
|
|
5
|
+
for (const event of events) {
|
|
6
|
+
if (Buffer.byteLength(JSON.stringify({ events: [event] })) >
|
|
7
|
+
TELEMETRY_REQUEST_BYTES)
|
|
8
|
+
throw Error("Telemetry event exceeds request budget");
|
|
9
|
+
if (current.length >= 20 ||
|
|
10
|
+
Buffer.byteLength(JSON.stringify({ events: [...current, event] })) >
|
|
11
|
+
TELEMETRY_REQUEST_BYTES) {
|
|
12
|
+
batches.push(current);
|
|
13
|
+
current = [];
|
|
14
|
+
}
|
|
15
|
+
current.push(event);
|
|
16
|
+
}
|
|
17
|
+
if (current.length)
|
|
18
|
+
batches.push(current);
|
|
19
|
+
return batches;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=batch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"batch.js","sourceRoot":"","sources":["../../src/telemetry/batch.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,GAAG,IAAI,CAAC;AACjD,MAAM,UAAU,gBAAgB,CAC9B,MAAiC;IAEjC,MAAM,OAAO,GAAuB,EAAE,CAAC;IACvC,IAAI,OAAO,GAAqB,EAAE,CAAC;IACnC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IACE,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YACtD,uBAAuB;YAEvB,MAAM,KAAK,CAAC,wCAAwC,CAAC,CAAC;QACxD,IACE,OAAO,CAAC,MAAM,IAAI,EAAE;YACpB,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;gBAChE,uBAAuB,EACzB,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACtB,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;IACD,IAAI,OAAO,CAAC,MAAM;QAAE,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1C,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -2,8 +2,11 @@ import { type TelemetryEnvironment } from "./policy.js";
|
|
|
2
2
|
import { TelemetryStore } from "./state.js";
|
|
3
3
|
import { type TelemetryEvent, type TelemetryCommand } from "./schema.js";
|
|
4
4
|
import { type TelemetrySend } from "./transport.js";
|
|
5
|
+
import type { ScanReport } from "../scan/report.js";
|
|
5
6
|
export type TelemetrySummary = Partial<Pick<TelemetryEvent, "empty_input" | "check_ids" | "enabled_check_ids" | "finding_count" | "applied_count" | "skipped_count" | "profile" | "hook" | "outcome">>;
|
|
6
7
|
export interface CommandTelemetry {
|
|
8
|
+
observeRepository?(root: string, cwd: string): void;
|
|
9
|
+
scanReport?(report: Pick<ScanReport, "summary" | "checks">): void;
|
|
7
10
|
summary(value: TelemetrySummary): void;
|
|
8
11
|
finish(exitCode: number): void;
|
|
9
12
|
flush(cancelled: boolean, signal?: AbortSignal): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/telemetry/client.ts"],"names":[],"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AAM,WAAW,qBAAqB;IACpC,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,GAAG,EAAE,oBAAoB,CAAC;IAC1B,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC7B,YAAY,CAAC,EAAE,cAAc,CAAC,eAAe,CAAC,CAAC;IAC/C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;AACD,wBAAgB,cAAc,CAC5B,OAAO,EAAE,qBAAqB,GAC7B,gBAAgB,CAMlB"}
|
package/dist/telemetry/client.js
CHANGED
|
@@ -4,8 +4,11 @@ import { fileURLToPath } from "node:url";
|
|
|
4
4
|
import { ZEDBEE_VERSION } from "../core/package-version.js";
|
|
5
5
|
import { telemetryContext, telemetryDisabled, } from "./policy.js";
|
|
6
6
|
import { TelemetryStore, telemetryDirectory } from "./state.js";
|
|
7
|
-
import { telemetryEventSchema, } from "./schema.js";
|
|
7
|
+
import { telemetryV1EventSchema as telemetryEventSchema, } from "./schema.js";
|
|
8
8
|
import { sendTelemetry } from "./transport.js";
|
|
9
|
+
import { summarizeFindings, fitScanDetails, } from "./finding-summary.js";
|
|
10
|
+
import { callerContext, detectRepositoryTools, emptyRepositoryContext, } from "./ai-context.js";
|
|
11
|
+
import { TelemetryDetailsStore, enrichTelemetryEvent, } from "./details-store.js";
|
|
9
12
|
const NOOP = { summary() { }, finish() { }, async flush() { } };
|
|
10
13
|
export function launchTelemetrySender(env) {
|
|
11
14
|
const child = spawn(process.execPath, [fileURLToPath(new URL("./worker.js", import.meta.url))], {
|
|
@@ -65,6 +68,12 @@ function createTelemetry(options) {
|
|
|
65
68
|
...(options.outputFormat ? { output_format: options.outputFormat } : {}),
|
|
66
69
|
};
|
|
67
70
|
let summary = {};
|
|
71
|
+
let findingBreakdown;
|
|
72
|
+
let repository = emptyRepositoryContext();
|
|
73
|
+
const caller = callerContext(env);
|
|
74
|
+
const detailsStore = ci
|
|
75
|
+
? undefined
|
|
76
|
+
: new TelemetryDetailsStore(store.directory);
|
|
68
77
|
let finished = false;
|
|
69
78
|
let pending = Promise.resolve();
|
|
70
79
|
const allowed = () => {
|
|
@@ -86,15 +95,38 @@ function createTelemetry(options) {
|
|
|
86
95
|
event_id: randomUUID(),
|
|
87
96
|
timestamp: new Date().toISOString(),
|
|
88
97
|
});
|
|
98
|
+
let scanDetails;
|
|
99
|
+
if (event === "scan_finished") {
|
|
100
|
+
try {
|
|
101
|
+
scanDetails = fitScanDetails({
|
|
102
|
+
finding_breakdown_version: 1,
|
|
103
|
+
finding_breakdown_status: "unavailable",
|
|
104
|
+
...findingBreakdown,
|
|
105
|
+
ai_detection_version: 1,
|
|
106
|
+
...caller,
|
|
107
|
+
...repository,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
catch {
|
|
111
|
+
/* Optional reduction cannot suppress ordinary usage metadata. */
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
const wire = enrichTelemetryEvent(value, scanDetails);
|
|
89
115
|
if (ci) {
|
|
90
116
|
pending = pending
|
|
91
117
|
.then(async () => {
|
|
92
118
|
if (!controller.signal.aborted && allowed())
|
|
93
|
-
await send([
|
|
119
|
+
await send([wire], controller.signal);
|
|
94
120
|
})
|
|
95
121
|
.catch(() => { });
|
|
96
122
|
}
|
|
97
123
|
else {
|
|
124
|
+
if (wire.schema_version === 2 && scanDetails) {
|
|
125
|
+
try {
|
|
126
|
+
detailsStore?.write(value, scanDetails);
|
|
127
|
+
}
|
|
128
|
+
catch { }
|
|
129
|
+
}
|
|
98
130
|
store.enqueue(value);
|
|
99
131
|
(options.launch ?? (() => launchTelemetrySender(env)))();
|
|
100
132
|
}
|
|
@@ -106,6 +138,35 @@ function createTelemetry(options) {
|
|
|
106
138
|
if (command === "scan")
|
|
107
139
|
emit("scan_started");
|
|
108
140
|
return {
|
|
141
|
+
...(command === "scan"
|
|
142
|
+
? {
|
|
143
|
+
observeRepository(root, cwd) {
|
|
144
|
+
if (!allowed() || finished)
|
|
145
|
+
return;
|
|
146
|
+
repository = {
|
|
147
|
+
...emptyRepositoryContext(),
|
|
148
|
+
repo_ai_detection_status: "partial",
|
|
149
|
+
};
|
|
150
|
+
void detectRepositoryTools(root, cwd, {
|
|
151
|
+
permitted: () => allowed() && !finished,
|
|
152
|
+
})
|
|
153
|
+
.then((value) => {
|
|
154
|
+
if (allowed() && !finished)
|
|
155
|
+
repository = value;
|
|
156
|
+
})
|
|
157
|
+
.catch(() => { });
|
|
158
|
+
},
|
|
159
|
+
scanReport(report) {
|
|
160
|
+
if (!allowed() || finished)
|
|
161
|
+
return;
|
|
162
|
+
try {
|
|
163
|
+
findingBreakdown = summarizeFindings(report);
|
|
164
|
+
summary.finding_count = Math.min(1_000_000, report.summary.findings.length);
|
|
165
|
+
}
|
|
166
|
+
catch { }
|
|
167
|
+
},
|
|
168
|
+
}
|
|
169
|
+
: {}),
|
|
109
170
|
summary(value) {
|
|
110
171
|
// Only explicit metadata fields cross this boundary, even for untyped callers.
|
|
111
172
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/telemetry/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EACL,gBAAgB,EAChB,iBAAiB,GAElB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EACL,oBAAoB,
|
|
1
|
+
{"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4BACnB,OAAO,EAAE,CAAC;wBACZ,CAAC,CAAC;wBACF,MAAM,EAAE,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;oBAC7D,CAAC,CAAC;oBACF,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;wBAC5B,KAAK,GAAG,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;oBACpC,CAAC,CAAC;iBACH,CAAC,CAAC;YACL,CAAC;oBAAS,CAAC;gBACT,IAAI,KAAK;oBAAE,YAAY,CAAC,KAAK,CAAC,CAAC;gBAC/B,IAAI,OAAO;oBAAE,MAAM,EAAE,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;gBAC3D,UAAU,CAAC,KAAK,EAAE,CAAC;YACrB,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ScanDetails, type TelemetryEvent, type TelemetryV1Event } from "./schema.js";
|
|
2
|
+
export declare class TelemetryDetailsStore {
|
|
3
|
+
readonly directory: string;
|
|
4
|
+
readonly path: string;
|
|
5
|
+
constructor(directory: string);
|
|
6
|
+
private directoryReady;
|
|
7
|
+
write(input: TelemetryV1Event, details: ScanDetails): void;
|
|
8
|
+
read(event: TelemetryV1Event): ScanDetails | undefined;
|
|
9
|
+
private entries;
|
|
10
|
+
remove(ids: readonly string[]): void;
|
|
11
|
+
clear(): void;
|
|
12
|
+
prune(pendingIds?: readonly string[]): void;
|
|
13
|
+
}
|
|
14
|
+
export declare function enrichTelemetryEvent(event: TelemetryV1Event, details?: ScanDetails): TelemetryEvent;
|
|
15
|
+
//# sourceMappingURL=details-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"details-store.d.ts","sourceRoot":"","sources":["../../src/telemetry/details-store.ts"],"names":[],"mappings":"AAiBA,OAAO,EAIL,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAkBrB,qBAAa,qBAAqB;IAEpB,QAAQ,CAAC,SAAS,EAAE,MAAM;IADtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;gBACD,SAAS,EAAE,MAAM;IAGtC,OAAO,CAAC,cAAc;IAoBtB,KAAK,CAAC,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,WAAW,GAAG,IAAI;IA0B1D,IAAI,CAAC,KAAK,EAAE,gBAAgB,GAAG,WAAW,GAAG,SAAS;IAkCtD,OAAO,CAAC,OAAO;IAqBf,MAAM,CAAC,GAAG,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI;IAWpC,KAAK,IAAI,IAAI;IAMb,KAAK,CAAC,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI;CA+B5C;AACD,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,gBAAgB,EACvB,OAAO,CAAC,EAAE,WAAW,GACpB,cAAc,CAUhB"}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { constants, openSync, closeSync, fstatSync, lstatSync, mkdirSync, opendirSync, readFileSync, writeFileSync, renameSync, unlinkSync, } from "node:fs";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
import { randomUUID } from "node:crypto";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import { scanDetailsSchema, telemetryEventSchema, telemetryV1EventSchema, } from "./schema.js";
|
|
6
|
+
const envelopeSchema = z.strictObject({
|
|
7
|
+
event_id: z.string().uuid(),
|
|
8
|
+
run_id: z.string().uuid(),
|
|
9
|
+
timestamp: z.string().datetime(),
|
|
10
|
+
details: scanDetailsSchema,
|
|
11
|
+
});
|
|
12
|
+
const filename = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\.(?:json|tmp)$/u;
|
|
13
|
+
function owned(stat) {
|
|
14
|
+
if (stat.isSymbolicLink() ||
|
|
15
|
+
(process.platform !== "win32" &&
|
|
16
|
+
(stat.uid !== process.getuid?.() || (stat.mode & 0o077) !== 0)))
|
|
17
|
+
throw Error("Unsafe telemetry details permissions");
|
|
18
|
+
}
|
|
19
|
+
export class TelemetryDetailsStore {
|
|
20
|
+
directory;
|
|
21
|
+
path;
|
|
22
|
+
constructor(directory) {
|
|
23
|
+
this.directory = directory;
|
|
24
|
+
this.path = join(directory, "details");
|
|
25
|
+
}
|
|
26
|
+
directoryReady(create = false) {
|
|
27
|
+
try {
|
|
28
|
+
const root = lstatSync(this.directory);
|
|
29
|
+
owned(root);
|
|
30
|
+
if (!root.isDirectory())
|
|
31
|
+
return false;
|
|
32
|
+
if (create) {
|
|
33
|
+
try {
|
|
34
|
+
mkdirSync(this.path, { mode: 0o700 });
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
if (error.code !== "EEXIST")
|
|
38
|
+
throw error;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
const stat = lstatSync(this.path);
|
|
42
|
+
owned(stat);
|
|
43
|
+
return stat.isDirectory();
|
|
44
|
+
}
|
|
45
|
+
catch (error) {
|
|
46
|
+
if (error.code === "ENOENT")
|
|
47
|
+
return false;
|
|
48
|
+
throw error;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
write(input, details) {
|
|
52
|
+
const event = telemetryV1EventSchema.parse(input);
|
|
53
|
+
if (event.environment === "ci" || event.event !== "scan_finished")
|
|
54
|
+
throw Error("Invalid detail parent");
|
|
55
|
+
const envelope = envelopeSchema.parse({
|
|
56
|
+
event_id: event.event_id,
|
|
57
|
+
run_id: event.run_id,
|
|
58
|
+
timestamp: event.timestamp,
|
|
59
|
+
details,
|
|
60
|
+
});
|
|
61
|
+
if (!this.directoryReady(true))
|
|
62
|
+
throw Error("Details directory unavailable");
|
|
63
|
+
const temporary = join(this.path, `${randomUUID()}.tmp`);
|
|
64
|
+
try {
|
|
65
|
+
writeFileSync(temporary, JSON.stringify(envelope), {
|
|
66
|
+
flag: "wx",
|
|
67
|
+
mode: 0o600,
|
|
68
|
+
});
|
|
69
|
+
renameSync(temporary, join(this.path, `${event.event_id}.json`));
|
|
70
|
+
}
|
|
71
|
+
finally {
|
|
72
|
+
try {
|
|
73
|
+
unlinkSync(temporary);
|
|
74
|
+
}
|
|
75
|
+
catch { }
|
|
76
|
+
}
|
|
77
|
+
this.prune();
|
|
78
|
+
}
|
|
79
|
+
read(event) {
|
|
80
|
+
let fd;
|
|
81
|
+
try {
|
|
82
|
+
if (!this.directoryReady() ||
|
|
83
|
+
event.event !== "scan_finished" ||
|
|
84
|
+
event.environment === "ci" ||
|
|
85
|
+
!z.string().uuid().safeParse(event.event_id).success)
|
|
86
|
+
return undefined;
|
|
87
|
+
const path = join(this.path, `${event.event_id}.json`);
|
|
88
|
+
const before = lstatSync(path);
|
|
89
|
+
owned(before);
|
|
90
|
+
if (!before.isFile() || before.nlink !== 1)
|
|
91
|
+
return undefined;
|
|
92
|
+
fd = openSync(path, constants.O_RDONLY | (constants.O_NOFOLLOW ?? 0));
|
|
93
|
+
const stat = fstatSync(fd);
|
|
94
|
+
owned(stat);
|
|
95
|
+
if (before.ino !== stat.ino || before.dev !== stat.dev)
|
|
96
|
+
return undefined;
|
|
97
|
+
if (!stat.isFile() || stat.nlink !== 1 || stat.size > 17_000)
|
|
98
|
+
return undefined;
|
|
99
|
+
const value = envelopeSchema.parse(JSON.parse(readFileSync(fd, "utf8")));
|
|
100
|
+
if (value.event_id !== event.event_id ||
|
|
101
|
+
value.run_id !== event.run_id ||
|
|
102
|
+
value.timestamp !== event.timestamp)
|
|
103
|
+
return undefined;
|
|
104
|
+
return value.details;
|
|
105
|
+
}
|
|
106
|
+
catch {
|
|
107
|
+
return undefined;
|
|
108
|
+
}
|
|
109
|
+
finally {
|
|
110
|
+
if (fd !== undefined)
|
|
111
|
+
closeSync(fd);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
entries() {
|
|
115
|
+
if (!this.directoryReady())
|
|
116
|
+
return [];
|
|
117
|
+
const entries = [];
|
|
118
|
+
const dir = opendirSync(this.path);
|
|
119
|
+
try {
|
|
120
|
+
for (let i = 0; i < 256; i++) {
|
|
121
|
+
const entry = dir.readSync();
|
|
122
|
+
if (!entry)
|
|
123
|
+
break;
|
|
124
|
+
if (!filename.test(entry.name))
|
|
125
|
+
continue;
|
|
126
|
+
try {
|
|
127
|
+
const stat = lstatSync(join(this.path, entry.name));
|
|
128
|
+
owned(stat);
|
|
129
|
+
if (stat.isFile() && stat.nlink === 1)
|
|
130
|
+
entries.push({ name: entry.name, stat });
|
|
131
|
+
}
|
|
132
|
+
catch { }
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
finally {
|
|
136
|
+
dir.closeSync();
|
|
137
|
+
}
|
|
138
|
+
return entries;
|
|
139
|
+
}
|
|
140
|
+
remove(ids) {
|
|
141
|
+
const names = new Set(ids
|
|
142
|
+
.filter((id) => z.string().uuid().safeParse(id).success)
|
|
143
|
+
.map((id) => `${id}.json`));
|
|
144
|
+
try {
|
|
145
|
+
for (const entry of this.entries())
|
|
146
|
+
if (names.has(entry.name))
|
|
147
|
+
unlinkSync(join(this.path, entry.name));
|
|
148
|
+
}
|
|
149
|
+
catch { }
|
|
150
|
+
}
|
|
151
|
+
clear() {
|
|
152
|
+
try {
|
|
153
|
+
for (const entry of this.entries())
|
|
154
|
+
unlinkSync(join(this.path, entry.name));
|
|
155
|
+
}
|
|
156
|
+
catch { }
|
|
157
|
+
}
|
|
158
|
+
prune(pendingIds) {
|
|
159
|
+
try {
|
|
160
|
+
const pending = pendingIds === undefined ? undefined : new Set(pendingIds);
|
|
161
|
+
let count = 0;
|
|
162
|
+
let bytes = 0;
|
|
163
|
+
for (const entry of this.entries().sort((a, b) => b.stat.mtimeMs - a.stat.mtimeMs)) {
|
|
164
|
+
const age = Date.now() - entry.stat.mtimeMs;
|
|
165
|
+
const temporary = entry.name.endsWith(".tmp");
|
|
166
|
+
const orphan = pending !== undefined &&
|
|
167
|
+
!pending.has(entry.name.slice(0, -5)) &&
|
|
168
|
+
age > 60_000;
|
|
169
|
+
if (age > 7 * 86_400_000 ||
|
|
170
|
+
(temporary && age > 60_000) ||
|
|
171
|
+
(!temporary &&
|
|
172
|
+
(orphan || count >= 100 || bytes + entry.stat.size > 256 * 1024))) {
|
|
173
|
+
unlinkSync(join(this.path, entry.name));
|
|
174
|
+
}
|
|
175
|
+
else if (!temporary) {
|
|
176
|
+
count++;
|
|
177
|
+
bytes += entry.stat.size;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
catch {
|
|
182
|
+
/* Optional detail maintenance cannot affect the command. */
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
export function enrichTelemetryEvent(event, details) {
|
|
187
|
+
if (event.event === "scan_finished" && details !== undefined) {
|
|
188
|
+
const enriched = telemetryEventSchema.safeParse({
|
|
189
|
+
...event,
|
|
190
|
+
...details,
|
|
191
|
+
schema_version: 2,
|
|
192
|
+
});
|
|
193
|
+
if (enriched.success)
|
|
194
|
+
return enriched.data;
|
|
195
|
+
}
|
|
196
|
+
return event;
|
|
197
|
+
}
|
|
198
|
+
//# sourceMappingURL=details-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"details-store.js","sourceRoot":"","sources":["../../src/telemetry/details-store.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,WAAW,EACX,YAAY,EACZ,aAAa,EACb,UAAU,EACV,UAAU,GAEX,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,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