zedbee 0.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DISCLOSURE +19 -0
- package/LICENSE +121 -0
- package/README.md +91 -0
- package/SECURITY.md +47 -0
- package/THIRD_PARTY_NOTICES.md +18244 -0
- package/dist/attribution/compare.d.ts +16 -0
- package/dist/attribution/compare.d.ts.map +1 -0
- package/dist/attribution/compare.js +159 -0
- package/dist/attribution/compare.js.map +1 -0
- package/dist/attribution/entities.d.ts +11 -0
- package/dist/attribution/entities.d.ts.map +1 -0
- package/dist/attribution/entities.js +349 -0
- package/dist/attribution/entities.js.map +1 -0
- package/dist/attribution/fingerprint.d.ts +18 -0
- package/dist/attribution/fingerprint.d.ts.map +1 -0
- package/dist/attribution/fingerprint.js +340 -0
- package/dist/attribution/fingerprint.js.map +1 -0
- package/dist/attribution/metrics.d.ts +8 -0
- package/dist/attribution/metrics.d.ts.map +1 -0
- package/dist/attribution/metrics.js +196 -0
- package/dist/attribution/metrics.js.map +1 -0
- package/dist/attribution/range.d.ts +4 -0
- package/dist/attribution/range.d.ts.map +1 -0
- package/dist/attribution/range.js +32 -0
- package/dist/attribution/range.js.map +1 -0
- package/dist/cache/captured-dependencies.d.ts +50 -0
- package/dist/cache/captured-dependencies.d.ts.map +1 -0
- package/dist/cache/captured-dependencies.js +479 -0
- package/dist/cache/captured-dependencies.js.map +1 -0
- package/dist/cache/dependency-inputs.d.ts +38 -0
- package/dist/cache/dependency-inputs.d.ts.map +1 -0
- package/dist/cache/dependency-inputs.js +151 -0
- package/dist/cache/dependency-inputs.js.map +1 -0
- package/dist/cache/key.d.ts +42 -0
- package/dist/cache/key.d.ts.map +1 -0
- package/dist/cache/key.js +197 -0
- package/dist/cache/key.js.map +1 -0
- package/dist/cache/store.d.ts +35 -0
- package/dist/cache/store.d.ts.map +1 -0
- package/dist/cache/store.js +177 -0
- package/dist/cache/store.js.map +1 -0
- package/dist/checks/adapter.d.ts +96 -0
- package/dist/checks/adapter.d.ts.map +1 -0
- package/dist/checks/adapter.js +2 -0
- package/dist/checks/adapter.js.map +1 -0
- package/dist/checks/analysis-reuse.d.ts +14 -0
- package/dist/checks/analysis-reuse.d.ts.map +1 -0
- package/dist/checks/analysis-reuse.js +123 -0
- package/dist/checks/analysis-reuse.js.map +1 -0
- package/dist/checks/applicability.d.ts +7 -0
- package/dist/checks/applicability.d.ts.map +1 -0
- package/dist/checks/applicability.js +121 -0
- package/dist/checks/applicability.js.map +1 -0
- package/dist/checks/complexity/adapter.d.ts +7 -0
- package/dist/checks/complexity/adapter.d.ts.map +1 -0
- package/dist/checks/complexity/adapter.js +206 -0
- package/dist/checks/complexity/adapter.js.map +1 -0
- package/dist/checks/complexity/metric-message.d.ts +7 -0
- package/dist/checks/complexity/metric-message.d.ts.map +1 -0
- package/dist/checks/complexity/metric-message.js +16 -0
- package/dist/checks/complexity/metric-message.js.map +1 -0
- package/dist/checks/complexity/readability-rule.d.ts +5 -0
- package/dist/checks/complexity/readability-rule.d.ts.map +1 -0
- package/dist/checks/complexity/readability-rule.js +110 -0
- package/dist/checks/complexity/readability-rule.js.map +1 -0
- package/dist/checks/configuration-presentation.d.ts +8 -0
- package/dist/checks/configuration-presentation.d.ts.map +1 -0
- package/dist/checks/configuration-presentation.js +94 -0
- package/dist/checks/configuration-presentation.js.map +1 -0
- package/dist/checks/dead-code/adapter.d.ts +3 -0
- package/dist/checks/dead-code/adapter.d.ts.map +1 -0
- package/dist/checks/dead-code/adapter.js +218 -0
- package/dist/checks/dead-code/adapter.js.map +1 -0
- package/dist/checks/dead-code/captured-filesystem.d.ts +12 -0
- package/dist/checks/dead-code/captured-filesystem.d.ts.map +1 -0
- package/dist/checks/dead-code/captured-filesystem.js +138 -0
- package/dist/checks/dead-code/captured-filesystem.js.map +1 -0
- package/dist/checks/dead-code/executor.d.ts +21 -0
- package/dist/checks/dead-code/executor.d.ts.map +1 -0
- package/dist/checks/dead-code/executor.js +78 -0
- package/dist/checks/dead-code/executor.js.map +1 -0
- package/dist/checks/dead-code/import-boundary.d.ts +14 -0
- package/dist/checks/dead-code/import-boundary.d.ts.map +1 -0
- package/dist/checks/dead-code/import-boundary.js +256 -0
- package/dist/checks/dead-code/import-boundary.js.map +1 -0
- package/dist/checks/dead-code/knip-worker.d.ts +2 -0
- package/dist/checks/dead-code/knip-worker.d.ts.map +1 -0
- package/dist/checks/dead-code/knip-worker.js +169 -0
- package/dist/checks/dead-code/knip-worker.js.map +1 -0
- package/dist/checks/dead-code/managed-config.d.ts +13 -0
- package/dist/checks/dead-code/managed-config.d.ts.map +1 -0
- package/dist/checks/dead-code/managed-config.js +128 -0
- package/dist/checks/dead-code/managed-config.js.map +1 -0
- package/dist/checks/dead-code/parse-report.d.ts +3 -0
- package/dist/checks/dead-code/parse-report.d.ts.map +1 -0
- package/dist/checks/dead-code/parse-report.js +107 -0
- package/dist/checks/dead-code/parse-report.js.map +1 -0
- package/dist/checks/dead-code/resolver.LICENSE +22 -0
- package/dist/checks/dead-code/resolver.provenance.json +10 -0
- package/dist/checks/dead-code/resolver.wasm +0 -0
- package/dist/checks/dead-code/wasi.d.ts +9 -0
- package/dist/checks/dead-code/wasi.d.ts.map +1 -0
- package/dist/checks/dead-code/wasi.js +101 -0
- package/dist/checks/dead-code/wasi.js.map +1 -0
- package/dist/checks/dependency-architecture/adapter.d.ts +3 -0
- package/dist/checks/dependency-architecture/adapter.d.ts.map +1 -0
- package/dist/checks/dependency-architecture/adapter.js +305 -0
- package/dist/checks/dependency-architecture/adapter.js.map +1 -0
- package/dist/checks/dependency-architecture/normalize-graph.d.ts +11 -0
- package/dist/checks/dependency-architecture/normalize-graph.d.ts.map +1 -0
- package/dist/checks/dependency-architecture/normalize-graph.js +225 -0
- package/dist/checks/dependency-architecture/normalize-graph.js.map +1 -0
- package/dist/checks/dependency-architecture/rules.d.ts +11 -0
- package/dist/checks/dependency-architecture/rules.d.ts.map +1 -0
- package/dist/checks/dependency-architecture/rules.js +47 -0
- package/dist/checks/dependency-architecture/rules.js.map +1 -0
- package/dist/checks/description.d.ts +41 -0
- package/dist/checks/description.d.ts.map +1 -0
- package/dist/checks/description.js +2 -0
- package/dist/checks/description.js.map +1 -0
- package/dist/checks/descriptors.d.ts +7 -0
- package/dist/checks/descriptors.d.ts.map +1 -0
- package/dist/checks/descriptors.js +50 -0
- package/dist/checks/descriptors.js.map +1 -0
- package/dist/checks/diagnostics.d.ts +25 -0
- package/dist/checks/diagnostics.d.ts.map +1 -0
- package/dist/checks/diagnostics.js +106 -0
- package/dist/checks/diagnostics.js.map +1 -0
- package/dist/checks/dispatcher.d.ts +18 -0
- package/dist/checks/dispatcher.d.ts.map +1 -0
- package/dist/checks/dispatcher.js +789 -0
- package/dist/checks/dispatcher.js.map +1 -0
- package/dist/checks/duplication/adapter.d.ts +9 -0
- package/dist/checks/duplication/adapter.d.ts.map +1 -0
- package/dist/checks/duplication/adapter.js +155 -0
- package/dist/checks/duplication/adapter.js.map +1 -0
- package/dist/checks/duplication/normalize-clone.d.ts +12 -0
- package/dist/checks/duplication/normalize-clone.d.ts.map +1 -0
- package/dist/checks/duplication/normalize-clone.js +190 -0
- package/dist/checks/duplication/normalize-clone.js.map +1 -0
- package/dist/checks/duplication/settings.d.ts +16 -0
- package/dist/checks/duplication/settings.d.ts.map +1 -0
- package/dist/checks/duplication/settings.js +32 -0
- package/dist/checks/duplication/settings.js.map +1 -0
- package/dist/checks/duplication/types.d.ts +53 -0
- package/dist/checks/duplication/types.d.ts.map +1 -0
- package/dist/checks/duplication/types.js +2 -0
- package/dist/checks/duplication/types.js.map +1 -0
- package/dist/checks/engine-identity.d.ts +5 -0
- package/dist/checks/engine-identity.d.ts.map +1 -0
- package/dist/checks/engine-identity.js +130 -0
- package/dist/checks/engine-identity.js.map +1 -0
- package/dist/checks/eslint/comment-directive.d.ts +3 -0
- package/dist/checks/eslint/comment-directive.d.ts.map +1 -0
- package/dist/checks/eslint/comment-directive.js +39 -0
- package/dist/checks/eslint/comment-directive.js.map +1 -0
- package/dist/checks/eslint/convert-message.d.ts +4 -0
- package/dist/checks/eslint/convert-message.d.ts.map +1 -0
- package/dist/checks/eslint/convert-message.js +67 -0
- package/dist/checks/eslint/convert-message.js.map +1 -0
- package/dist/checks/eslint/freeze-rule-settings.d.ts +4 -0
- package/dist/checks/eslint/freeze-rule-settings.d.ts.map +1 -0
- package/dist/checks/eslint/freeze-rule-settings.js +19 -0
- package/dist/checks/eslint/freeze-rule-settings.js.map +1 -0
- package/dist/checks/eslint/lint-adapter.d.ts +8 -0
- package/dist/checks/eslint/lint-adapter.d.ts.map +1 -0
- package/dist/checks/eslint/lint-adapter.js +227 -0
- package/dist/checks/eslint/lint-adapter.js.map +1 -0
- package/dist/checks/eslint/load-engine.d.ts +7 -0
- package/dist/checks/eslint/load-engine.d.ts.map +1 -0
- package/dist/checks/eslint/load-engine.js +126 -0
- package/dist/checks/eslint/load-engine.js.map +1 -0
- package/dist/checks/eslint/managed-config.d.ts +27 -0
- package/dist/checks/eslint/managed-config.d.ts.map +1 -0
- package/dist/checks/eslint/managed-config.js +223 -0
- package/dist/checks/eslint/managed-config.js.map +1 -0
- package/dist/checks/eslint/parse-store.d.ts +13 -0
- package/dist/checks/eslint/parse-store.d.ts.map +1 -0
- package/dist/checks/eslint/parse-store.js +138 -0
- package/dist/checks/eslint/parse-store.js.map +1 -0
- package/dist/checks/eslint/rule-settings.d.ts +15 -0
- package/dist/checks/eslint/rule-settings.d.ts.map +1 -0
- package/dist/checks/eslint/rule-settings.js +317 -0
- package/dist/checks/eslint/rule-settings.js.map +1 -0
- package/dist/checks/events.d.ts +27 -0
- package/dist/checks/events.d.ts.map +1 -0
- package/dist/checks/events.js +2 -0
- package/dist/checks/events.js.map +1 -0
- package/dist/checks/incomplete-error.d.ts +26 -0
- package/dist/checks/incomplete-error.d.ts.map +1 -0
- package/dist/checks/incomplete-error.js +53 -0
- package/dist/checks/incomplete-error.js.map +1 -0
- package/dist/checks/incomplete-result.d.ts +17 -0
- package/dist/checks/incomplete-result.d.ts.map +1 -0
- package/dist/checks/incomplete-result.js +27 -0
- package/dist/checks/incomplete-result.js.map +1 -0
- package/dist/checks/input-contract.d.ts +10 -0
- package/dist/checks/input-contract.d.ts.map +1 -0
- package/dist/checks/input-contract.js +85 -0
- package/dist/checks/input-contract.js.map +1 -0
- package/dist/checks/metadata.d.ts +71 -0
- package/dist/checks/metadata.d.ts.map +1 -0
- package/dist/checks/metadata.js +34 -0
- package/dist/checks/metadata.js.map +1 -0
- package/dist/checks/observation-result.d.ts +4 -0
- package/dist/checks/observation-result.d.ts.map +1 -0
- package/dist/checks/observation-result.js +242 -0
- package/dist/checks/observation-result.js.map +1 -0
- package/dist/checks/policy-scheduling.d.ts +9 -0
- package/dist/checks/policy-scheduling.d.ts.map +1 -0
- package/dist/checks/policy-scheduling.js +116 -0
- package/dist/checks/policy-scheduling.js.map +1 -0
- package/dist/checks/prettier/adapter.d.ts +3 -0
- package/dist/checks/prettier/adapter.d.ts.map +1 -0
- package/dist/checks/prettier/adapter.js +174 -0
- package/dist/checks/prettier/adapter.js.map +1 -0
- package/dist/checks/prettier/fingerprint.d.ts +2 -0
- package/dist/checks/prettier/fingerprint.d.ts.map +1 -0
- package/dist/checks/prettier/fingerprint.js +7 -0
- package/dist/checks/prettier/fingerprint.js.map +1 -0
- package/dist/checks/prettier/format-diff.d.ts +9 -0
- package/dist/checks/prettier/format-diff.d.ts.map +1 -0
- package/dist/checks/prettier/format-diff.js +180 -0
- package/dist/checks/prettier/format-diff.js.map +1 -0
- package/dist/checks/prettier/settings.d.ts +43 -0
- package/dist/checks/prettier/settings.d.ts.map +1 -0
- package/dist/checks/prettier/settings.js +76 -0
- package/dist/checks/prettier/settings.js.map +1 -0
- package/dist/checks/prettier/supported-path.d.ts +19 -0
- package/dist/checks/prettier/supported-path.d.ts.map +1 -0
- package/dist/checks/prettier/supported-path.js +21 -0
- package/dist/checks/prettier/supported-path.js.map +1 -0
- package/dist/checks/project/config-boundary.d.ts +16 -0
- package/dist/checks/project/config-boundary.d.ts.map +1 -0
- package/dist/checks/project/config-boundary.js +249 -0
- package/dist/checks/project/config-boundary.js.map +1 -0
- package/dist/checks/react/accessibility-adapter.d.ts +2 -0
- package/dist/checks/react/accessibility-adapter.d.ts.map +1 -0
- package/dist/checks/react/accessibility-adapter.js +3 -0
- package/dist/checks/react/accessibility-adapter.js.map +1 -0
- package/dist/checks/react/adapter.d.ts +11 -0
- package/dist/checks/react/adapter.d.ts.map +1 -0
- package/dist/checks/react/adapter.js +181 -0
- package/dist/checks/react/adapter.js.map +1 -0
- package/dist/checks/react/config.d.ts +4 -0
- package/dist/checks/react/config.d.ts.map +1 -0
- package/dist/checks/react/config.js +31 -0
- package/dist/checks/react/config.js.map +1 -0
- package/dist/checks/react/correctness-adapter.d.ts +2 -0
- package/dist/checks/react/correctness-adapter.d.ts.map +1 -0
- package/dist/checks/react/correctness-adapter.js +3 -0
- package/dist/checks/react/correctness-adapter.js.map +1 -0
- package/dist/checks/react/rule-settings.d.ts +2 -0
- package/dist/checks/react/rule-settings.d.ts.map +1 -0
- package/dist/checks/react/rule-settings.js +2 -0
- package/dist/checks/react/rule-settings.js.map +1 -0
- package/dist/checks/react/version.d.ts +13 -0
- package/dist/checks/react/version.d.ts.map +1 -0
- package/dist/checks/react/version.js +152 -0
- package/dist/checks/react/version.js.map +1 -0
- package/dist/checks/runner/bootstrap.d.ts +2 -0
- package/dist/checks/runner/bootstrap.d.ts.map +1 -0
- package/dist/checks/runner/bootstrap.js +30 -0
- package/dist/checks/runner/bootstrap.js.map +1 -0
- package/dist/checks/runner/context.d.ts +16 -0
- package/dist/checks/runner/context.d.ts.map +1 -0
- package/dist/checks/runner/context.js +38 -0
- package/dist/checks/runner/context.js.map +1 -0
- package/dist/checks/runner/envelope.d.ts +23 -0
- package/dist/checks/runner/envelope.d.ts.map +1 -0
- package/dist/checks/runner/envelope.js +134 -0
- package/dist/checks/runner/envelope.js.map +1 -0
- package/dist/checks/runner/executor.d.ts +29 -0
- package/dist/checks/runner/executor.d.ts.map +1 -0
- package/dist/checks/runner/executor.js +322 -0
- package/dist/checks/runner/executor.js.map +1 -0
- package/dist/checks/runner/exit-status.d.ts +10 -0
- package/dist/checks/runner/exit-status.d.ts.map +1 -0
- package/dist/checks/runner/exit-status.js +14 -0
- package/dist/checks/runner/exit-status.js.map +1 -0
- package/dist/checks/runner/process-group.d.ts +7 -0
- package/dist/checks/runner/process-group.d.ts.map +1 -0
- package/dist/checks/runner/process-group.js +54 -0
- package/dist/checks/runner/process-group.js.map +1 -0
- package/dist/checks/runner/protocol.d.ts +33 -0
- package/dist/checks/runner/protocol.d.ts.map +1 -0
- package/dist/checks/runner/protocol.js +120 -0
- package/dist/checks/runner/protocol.js.map +1 -0
- package/dist/checks/runner/registry.d.ts +5 -0
- package/dist/checks/runner/registry.d.ts.map +1 -0
- package/dist/checks/runner/registry.js +39 -0
- package/dist/checks/runner/registry.js.map +1 -0
- package/dist/checks/runner/run-job.d.ts +8 -0
- package/dist/checks/runner/run-job.d.ts.map +1 -0
- package/dist/checks/runner/run-job.js +16 -0
- package/dist/checks/runner/run-job.js.map +1 -0
- package/dist/checks/runner/send-worker-reply.d.ts +4 -0
- package/dist/checks/runner/send-worker-reply.d.ts.map +1 -0
- package/dist/checks/runner/send-worker-reply.js +11 -0
- package/dist/checks/runner/send-worker-reply.js.map +1 -0
- package/dist/checks/runner/session.d.ts +8 -0
- package/dist/checks/runner/session.d.ts.map +1 -0
- package/dist/checks/runner/session.js +18 -0
- package/dist/checks/runner/session.js.map +1 -0
- package/dist/checks/runner/supervisor.d.ts +2 -0
- package/dist/checks/runner/supervisor.d.ts.map +1 -0
- package/dist/checks/runner/supervisor.js +273 -0
- package/dist/checks/runner/supervisor.js.map +1 -0
- package/dist/checks/runner/windows-job.d.ts +10 -0
- package/dist/checks/runner/windows-job.d.ts.map +1 -0
- package/dist/checks/runner/windows-job.js +104 -0
- package/dist/checks/runner/windows-job.js.map +1 -0
- package/dist/checks/runner/worker-slot.d.ts +75 -0
- package/dist/checks/runner/worker-slot.d.ts.map +1 -0
- package/dist/checks/runner/worker-slot.js +375 -0
- package/dist/checks/runner/worker-slot.js.map +1 -0
- package/dist/checks/runner/worker.d.ts +2 -0
- package/dist/checks/runner/worker.d.ts.map +1 -0
- package/dist/checks/runner/worker.js +212 -0
- package/dist/checks/runner/worker.js.map +1 -0
- package/dist/checks/sanitize-result.d.ts +73 -0
- package/dist/checks/sanitize-result.d.ts.map +1 -0
- package/dist/checks/sanitize-result.js +281 -0
- package/dist/checks/sanitize-result.js.map +1 -0
- package/dist/checks/sanitize-target.d.ts +8 -0
- package/dist/checks/sanitize-target.d.ts.map +1 -0
- package/dist/checks/sanitize-target.js +26 -0
- package/dist/checks/sanitize-target.js.map +1 -0
- package/dist/checks/secrets/adapter.d.ts +9 -0
- package/dist/checks/secrets/adapter.d.ts.map +1 -0
- package/dist/checks/secrets/adapter.js +86 -0
- package/dist/checks/secrets/adapter.js.map +1 -0
- package/dist/checks/secrets/config.d.ts +3 -0
- package/dist/checks/secrets/config.d.ts.map +1 -0
- package/dist/checks/secrets/config.js +13 -0
- package/dist/checks/secrets/config.js.map +1 -0
- package/dist/checks/secrets/content.d.ts +25 -0
- package/dist/checks/secrets/content.d.ts.map +1 -0
- package/dist/checks/secrets/content.js +126 -0
- package/dist/checks/secrets/content.js.map +1 -0
- package/dist/checks/secrets/normalize.d.ts +11 -0
- package/dist/checks/secrets/normalize.d.ts.map +1 -0
- package/dist/checks/secrets/normalize.js +61 -0
- package/dist/checks/secrets/normalize.js.map +1 -0
- package/dist/checks/settle-snapshot-sides.d.ts +2 -0
- package/dist/checks/settle-snapshot-sides.d.ts.map +1 -0
- package/dist/checks/settle-snapshot-sides.js +30 -0
- package/dist/checks/settle-snapshot-sides.js.map +1 -0
- package/dist/checks/structural-security/adapter.d.ts +3 -0
- package/dist/checks/structural-security/adapter.d.ts.map +1 -0
- package/dist/checks/structural-security/adapter.js +112 -0
- package/dist/checks/structural-security/adapter.js.map +1 -0
- package/dist/checks/structural-security/fingerprint.d.ts +3 -0
- package/dist/checks/structural-security/fingerprint.d.ts.map +1 -0
- package/dist/checks/structural-security/fingerprint.js +13 -0
- package/dist/checks/structural-security/fingerprint.js.map +1 -0
- package/dist/checks/structural-security/rules.d.ts +11 -0
- package/dist/checks/structural-security/rules.d.ts.map +1 -0
- package/dist/checks/structural-security/rules.js +377 -0
- package/dist/checks/structural-security/rules.js.map +1 -0
- package/dist/checks/typescript/adapter.d.ts +11 -0
- package/dist/checks/typescript/adapter.d.ts.map +1 -0
- package/dist/checks/typescript/adapter.js +71 -0
- package/dist/checks/typescript/adapter.js.map +1 -0
- package/dist/checks/typescript/compiler-host.d.ts +20 -0
- package/dist/checks/typescript/compiler-host.d.ts.map +1 -0
- package/dist/checks/typescript/compiler-host.js +295 -0
- package/dist/checks/typescript/compiler-host.js.map +1 -0
- package/dist/checks/typescript/config.d.ts +10 -0
- package/dist/checks/typescript/config.d.ts.map +1 -0
- package/dist/checks/typescript/config.js +297 -0
- package/dist/checks/typescript/config.js.map +1 -0
- package/dist/checks/typescript/convert-diagnostic.d.ts +4 -0
- package/dist/checks/typescript/convert-diagnostic.d.ts.map +1 -0
- package/dist/checks/typescript/convert-diagnostic.js +79 -0
- package/dist/checks/typescript/convert-diagnostic.js.map +1 -0
- package/dist/checks/typescript/reuse-inputs.d.ts +7 -0
- package/dist/checks/typescript/reuse-inputs.d.ts.map +1 -0
- package/dist/checks/typescript/reuse-inputs.js +31 -0
- package/dist/checks/typescript/reuse-inputs.js.map +1 -0
- package/dist/checks/vulnerabilities/adapter.d.ts +10 -0
- package/dist/checks/vulnerabilities/adapter.d.ts.map +1 -0
- package/dist/checks/vulnerabilities/adapter.js +97 -0
- package/dist/checks/vulnerabilities/adapter.js.map +1 -0
- package/dist/checks/vulnerabilities/inventory/errors.d.ts +8 -0
- package/dist/checks/vulnerabilities/inventory/errors.d.ts.map +1 -0
- package/dist/checks/vulnerabilities/inventory/errors.js +18 -0
- package/dist/checks/vulnerabilities/inventory/errors.js.map +1 -0
- package/dist/checks/vulnerabilities/inventory/limits.d.ts +9 -0
- package/dist/checks/vulnerabilities/inventory/limits.d.ts.map +1 -0
- package/dist/checks/vulnerabilities/inventory/limits.js +9 -0
- package/dist/checks/vulnerabilities/inventory/limits.js.map +1 -0
- package/dist/checks/vulnerabilities/inventory/normalize.d.ts +7 -0
- package/dist/checks/vulnerabilities/inventory/normalize.d.ts.map +1 -0
- package/dist/checks/vulnerabilities/inventory/normalize.js +89 -0
- package/dist/checks/vulnerabilities/inventory/normalize.js.map +1 -0
- package/dist/checks/vulnerabilities/inventory/parse-bun.d.ts +3 -0
- package/dist/checks/vulnerabilities/inventory/parse-bun.d.ts.map +1 -0
- package/dist/checks/vulnerabilities/inventory/parse-bun.js +70 -0
- package/dist/checks/vulnerabilities/inventory/parse-bun.js.map +1 -0
- package/dist/checks/vulnerabilities/inventory/parse-lockfile.d.ts +4 -0
- package/dist/checks/vulnerabilities/inventory/parse-lockfile.d.ts.map +1 -0
- package/dist/checks/vulnerabilities/inventory/parse-lockfile.js +55 -0
- package/dist/checks/vulnerabilities/inventory/parse-lockfile.js.map +1 -0
- package/dist/checks/vulnerabilities/inventory/parse-npm.d.ts +3 -0
- package/dist/checks/vulnerabilities/inventory/parse-npm.d.ts.map +1 -0
- package/dist/checks/vulnerabilities/inventory/parse-npm.js +216 -0
- package/dist/checks/vulnerabilities/inventory/parse-npm.js.map +1 -0
- package/dist/checks/vulnerabilities/inventory/parse-pnpm.d.ts +3 -0
- package/dist/checks/vulnerabilities/inventory/parse-pnpm.d.ts.map +1 -0
- package/dist/checks/vulnerabilities/inventory/parse-pnpm.js +133 -0
- package/dist/checks/vulnerabilities/inventory/parse-pnpm.js.map +1 -0
- package/dist/checks/vulnerabilities/inventory/parse-yarn.d.ts +3 -0
- package/dist/checks/vulnerabilities/inventory/parse-yarn.d.ts.map +1 -0
- package/dist/checks/vulnerabilities/inventory/parse-yarn.js +125 -0
- package/dist/checks/vulnerabilities/inventory/parse-yarn.js.map +1 -0
- package/dist/checks/vulnerabilities/inventory/source-position.d.ts +5 -0
- package/dist/checks/vulnerabilities/inventory/source-position.d.ts.map +1 -0
- package/dist/checks/vulnerabilities/inventory/source-position.js +22 -0
- package/dist/checks/vulnerabilities/inventory/source-position.js.map +1 -0
- package/dist/checks/vulnerabilities/inventory/types.d.ts +11 -0
- package/dist/checks/vulnerabilities/inventory/types.d.ts.map +1 -0
- package/dist/checks/vulnerabilities/inventory/types.js +2 -0
- package/dist/checks/vulnerabilities/inventory/types.js.map +1 -0
- package/dist/checks/vulnerabilities/inventory/validate-structure.d.ts +2 -0
- package/dist/checks/vulnerabilities/inventory/validate-structure.d.ts.map +1 -0
- package/dist/checks/vulnerabilities/inventory/validate-structure.js +34 -0
- package/dist/checks/vulnerabilities/inventory/validate-structure.js.map +1 -0
- package/dist/checks/vulnerabilities/normalize.d.ts +5 -0
- package/dist/checks/vulnerabilities/normalize.d.ts.map +1 -0
- package/dist/checks/vulnerabilities/normalize.js +59 -0
- package/dist/checks/vulnerabilities/normalize.js.map +1 -0
- package/dist/checks/vulnerabilities/osv/client.d.ts +15 -0
- package/dist/checks/vulnerabilities/osv/client.d.ts.map +1 -0
- package/dist/checks/vulnerabilities/osv/client.js +229 -0
- package/dist/checks/vulnerabilities/osv/client.js.map +1 -0
- package/dist/checks/vulnerabilities/osv/errors.d.ts +11 -0
- package/dist/checks/vulnerabilities/osv/errors.d.ts.map +1 -0
- package/dist/checks/vulnerabilities/osv/errors.js +19 -0
- package/dist/checks/vulnerabilities/osv/errors.js.map +1 -0
- package/dist/checks/vulnerabilities/osv/read-response.d.ts +3 -0
- package/dist/checks/vulnerabilities/osv/read-response.d.ts.map +1 -0
- package/dist/checks/vulnerabilities/osv/read-response.js +50 -0
- package/dist/checks/vulnerabilities/osv/read-response.js.map +1 -0
- package/dist/checks/vulnerabilities/osv/schemas.d.ts +41 -0
- package/dist/checks/vulnerabilities/osv/schemas.d.ts.map +1 -0
- package/dist/checks/vulnerabilities/osv/schemas.js +50 -0
- package/dist/checks/vulnerabilities/osv/schemas.js.map +1 -0
- package/dist/checks/vulnerabilities/osv/types.d.ts +40 -0
- package/dist/checks/vulnerabilities/osv/types.d.ts.map +1 -0
- package/dist/checks/vulnerabilities/osv/types.js +2 -0
- package/dist/checks/vulnerabilities/osv/types.js.map +1 -0
- package/dist/cli.d.ts +14 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +289 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/checks.d.ts +32 -0
- package/dist/commands/checks.d.ts.map +1 -0
- package/dist/commands/checks.js +351 -0
- package/dist/commands/checks.js.map +1 -0
- package/dist/commands/diagnostics.d.ts +25 -0
- package/dist/commands/diagnostics.d.ts.map +1 -0
- package/dist/commands/diagnostics.js +82 -0
- package/dist/commands/diagnostics.js.map +1 -0
- package/dist/commands/doctor.d.ts +26 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +84 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/executor.d.ts +4 -0
- package/dist/commands/executor.d.ts.map +1 -0
- package/dist/commands/executor.js +42 -0
- package/dist/commands/executor.js.map +1 -0
- package/dist/commands/fix.d.ts +51 -0
- package/dist/commands/fix.d.ts.map +1 -0
- package/dist/commands/fix.js +462 -0
- package/dist/commands/fix.js.map +1 -0
- package/dist/commands/init.d.ts +40 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +184 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/scan.d.ts +55 -0
- package/dist/commands/scan.d.ts.map +1 -0
- package/dist/commands/scan.js +270 -0
- package/dist/commands/scan.js.map +1 -0
- package/dist/commands/service.d.ts +6 -0
- package/dist/commands/service.d.ts.map +1 -0
- package/dist/commands/service.js +20 -0
- package/dist/commands/service.js.map +1 -0
- package/dist/config/file-policy.d.ts +10 -0
- package/dist/config/file-policy.d.ts.map +1 -0
- package/dist/config/file-policy.js +72 -0
- package/dist/config/file-policy.js.map +1 -0
- package/dist/config/json-schema.d.ts +4 -0
- package/dist/config/json-schema.d.ts.map +1 -0
- package/dist/config/json-schema.js +129 -0
- package/dist/config/json-schema.js.map +1 -0
- package/dist/config/load-config.d.ts +17 -0
- package/dist/config/load-config.d.ts.map +1 -0
- package/dist/config/load-config.js +406 -0
- package/dist/config/load-config.js.map +1 -0
- package/dist/config/profiles.d.ts +3 -0
- package/dist/config/profiles.d.ts.map +1 -0
- package/dist/config/profiles.js +317 -0
- package/dist/config/profiles.js.map +1 -0
- package/dist/config/schema.d.ts +944 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +364 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/config/settings-definition.d.ts +25 -0
- package/dist/config/settings-definition.d.ts.map +1 -0
- package/dist/config/settings-definition.js +2 -0
- package/dist/config/settings-definition.js.map +1 -0
- package/dist/config/settings-registry.d.ts +19 -0
- package/dist/config/settings-registry.d.ts.map +1 -0
- package/dist/config/settings-registry.js +161 -0
- package/dist/config/settings-registry.js.map +1 -0
- package/dist/config/target-policy.d.ts +8 -0
- package/dist/config/target-policy.d.ts.map +1 -0
- package/dist/config/target-policy.js +58 -0
- package/dist/config/target-policy.js.map +1 -0
- package/dist/core/compare.d.ts +3 -0
- package/dist/core/compare.d.ts.map +1 -0
- package/dist/core/compare.js +5 -0
- package/dist/core/compare.js.map +1 -0
- package/dist/core/display-text.d.ts +13 -0
- package/dist/core/display-text.d.ts.map +1 -0
- package/dist/core/display-text.js +24 -0
- package/dist/core/display-text.js.map +1 -0
- package/dist/core/package-version.d.ts +2 -0
- package/dist/core/package-version.d.ts.map +1 -0
- package/dist/core/package-version.js +14 -0
- package/dist/core/package-version.js.map +1 -0
- package/dist/core/summarize.d.ts +4 -0
- package/dist/core/summarize.d.ts.map +1 -0
- package/dist/core/summarize.js +28 -0
- package/dist/core/summarize.js.map +1 -0
- package/dist/core/types.d.ts +128 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +2 -0
- package/dist/core/types.js.map +1 -0
- package/dist/doctor/diagnostics.d.ts +27 -0
- package/dist/doctor/diagnostics.d.ts.map +1 -0
- package/dist/doctor/diagnostics.js +379 -0
- package/dist/doctor/diagnostics.js.map +1 -0
- package/dist/fixes/apply-plan.d.ts +14 -0
- package/dist/fixes/apply-plan.d.ts.map +1 -0
- package/dist/fixes/apply-plan.js +245 -0
- package/dist/fixes/apply-plan.js.map +1 -0
- package/dist/fixes/availability.d.ts +3 -0
- package/dist/fixes/availability.d.ts.map +1 -0
- package/dist/fixes/availability.js +4 -0
- package/dist/fixes/availability.js.map +1 -0
- package/dist/fixes/build-plan.d.ts +40 -0
- package/dist/fixes/build-plan.d.ts.map +1 -0
- package/dist/fixes/build-plan.js +589 -0
- package/dist/fixes/build-plan.js.map +1 -0
- package/dist/fixes/eslint-provider.d.ts +16 -0
- package/dist/fixes/eslint-provider.d.ts.map +1 -0
- package/dist/fixes/eslint-provider.js +153 -0
- package/dist/fixes/eslint-provider.js.map +1 -0
- package/dist/fixes/exact-edits.d.ts +5 -0
- package/dist/fixes/exact-edits.d.ts.map +1 -0
- package/dist/fixes/exact-edits.js +69 -0
- package/dist/fixes/exact-edits.js.map +1 -0
- package/dist/fixes/prettier-provider.d.ts +18 -0
- package/dist/fixes/prettier-provider.d.ts.map +1 -0
- package/dist/fixes/prettier-provider.js +74 -0
- package/dist/fixes/prettier-provider.js.map +1 -0
- package/dist/fixes/result-presentation.d.ts +9 -0
- package/dist/fixes/result-presentation.d.ts.map +1 -0
- package/dist/fixes/result-presentation.js +20 -0
- package/dist/fixes/result-presentation.js.map +1 -0
- package/dist/fixes/sanitize.d.ts +11 -0
- package/dist/fixes/sanitize.d.ts.map +1 -0
- package/dist/fixes/sanitize.js +217 -0
- package/dist/fixes/sanitize.js.map +1 -0
- package/dist/fixes/types.d.ts +123 -0
- package/dist/fixes/types.d.ts.map +1 -0
- package/dist/fixes/types.js +8 -0
- package/dist/fixes/types.js.map +1 -0
- package/dist/fixes/write-working-file.d.ts +26 -0
- package/dist/fixes/write-working-file.d.ts.map +1 -0
- package/dist/fixes/write-working-file.js +221 -0
- package/dist/fixes/write-working-file.js.map +1 -0
- package/dist/git/base-comparison.d.ts +13 -0
- package/dist/git/base-comparison.d.ts.map +1 -0
- package/dist/git/base-comparison.js +64 -0
- package/dist/git/base-comparison.js.map +1 -0
- package/dist/git/base-ref.d.ts +4 -0
- package/dist/git/base-ref.d.ts.map +1 -0
- package/dist/git/base-ref.js +21 -0
- package/dist/git/base-ref.js.map +1 -0
- package/dist/git/batch-object-stream.d.ts +8 -0
- package/dist/git/batch-object-stream.d.ts.map +1 -0
- package/dist/git/batch-object-stream.js +111 -0
- package/dist/git/batch-object-stream.js.map +1 -0
- package/dist/git/change-set.d.ts +25 -0
- package/dist/git/change-set.d.ts.map +1 -0
- package/dist/git/change-set.js +346 -0
- package/dist/git/change-set.js.map +1 -0
- package/dist/git/client.d.ts +39 -0
- package/dist/git/client.d.ts.map +1 -0
- package/dist/git/client.js +384 -0
- package/dist/git/client.js.map +1 -0
- package/dist/git/errors.d.ts +7 -0
- package/dist/git/errors.d.ts.map +1 -0
- package/dist/git/errors.js +11 -0
- package/dist/git/errors.js.map +1 -0
- package/dist/git/snapshot-path.d.ts +14 -0
- package/dist/git/snapshot-path.d.ts.map +1 -0
- package/dist/git/snapshot-path.js +59 -0
- package/dist/git/snapshot-path.js.map +1 -0
- package/dist/git/snapshot.d.ts +28 -0
- package/dist/git/snapshot.d.ts.map +1 -0
- package/dist/git/snapshot.js +492 -0
- package/dist/git/snapshot.js.map +1 -0
- package/dist/hooks/detect.d.ts +8 -0
- package/dist/hooks/detect.d.ts.map +1 -0
- package/dist/hooks/detect.js +208 -0
- package/dist/hooks/detect.js.map +1 -0
- package/dist/hooks/husky.d.ts +3 -0
- package/dist/hooks/husky.d.ts.map +1 -0
- package/dist/hooks/husky.js +23 -0
- package/dist/hooks/husky.js.map +1 -0
- package/dist/hooks/lefthook.d.ts +3 -0
- package/dist/hooks/lefthook.d.ts.map +1 -0
- package/dist/hooks/lefthook.js +27 -0
- package/dist/hooks/lefthook.js.map +1 -0
- package/dist/hooks/raw-git.d.ts +2 -0
- package/dist/hooks/raw-git.d.ts.map +1 -0
- package/dist/hooks/raw-git.js +5 -0
- package/dist/hooks/raw-git.js.map +1 -0
- package/dist/hooks/simple-git-hooks.d.ts +3 -0
- package/dist/hooks/simple-git-hooks.d.ts.map +1 -0
- package/dist/hooks/simple-git-hooks.js +33 -0
- package/dist/hooks/simple-git-hooks.js.map +1 -0
- package/dist/hooks/state.d.ts +2 -0
- package/dist/hooks/state.d.ts.map +1 -0
- package/dist/hooks/state.js +10 -0
- package/dist/hooks/state.js.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/dist/init/recommend.d.ts +7 -0
- package/dist/init/recommend.d.ts.map +1 -0
- package/dist/init/recommend.js +274 -0
- package/dist/init/recommend.js.map +1 -0
- package/dist/init/types.d.ts +60 -0
- package/dist/init/types.d.ts.map +1 -0
- package/dist/init/types.js +2 -0
- package/dist/init/types.js.map +1 -0
- package/dist/init/write-config.d.ts +3 -0
- package/dist/init/write-config.d.ts.map +1 -0
- package/dist/init/write-config.js +195 -0
- package/dist/init/write-config.js.map +1 -0
- package/dist/inspection/inspect-repository.d.ts +7 -0
- package/dist/inspection/inspect-repository.d.ts.map +1 -0
- package/dist/inspection/inspect-repository.js +212 -0
- package/dist/inspection/inspect-repository.js.map +1 -0
- package/dist/inspection/read-json.d.ts +37 -0
- package/dist/inspection/read-json.d.ts.map +1 -0
- package/dist/inspection/read-json.js +345 -0
- package/dist/inspection/read-json.js.map +1 -0
- package/dist/inspection/snapshot-registry.d.ts +24 -0
- package/dist/inspection/snapshot-registry.d.ts.map +1 -0
- package/dist/inspection/snapshot-registry.js +174 -0
- package/dist/inspection/snapshot-registry.js.map +1 -0
- package/dist/inspection/source-capture.d.ts +42 -0
- package/dist/inspection/source-capture.d.ts.map +1 -0
- package/dist/inspection/source-capture.js +336 -0
- package/dist/inspection/source-capture.js.map +1 -0
- package/dist/inspection/types.d.ts +31 -0
- package/dist/inspection/types.d.ts.map +1 -0
- package/dist/inspection/types.js +9 -0
- package/dist/inspection/types.js.map +1 -0
- package/dist/inspection/workspaces.d.ts +22 -0
- package/dist/inspection/workspaces.d.ts.map +1 -0
- package/dist/inspection/workspaces.js +209 -0
- package/dist/inspection/workspaces.js.map +1 -0
- package/dist/policy/evaluate.d.ts +13 -0
- package/dist/policy/evaluate.d.ts.map +1 -0
- package/dist/policy/evaluate.js +71 -0
- package/dist/policy/evaluate.js.map +1 -0
- package/dist/renderers/incomplete.d.ts +4 -0
- package/dist/renderers/incomplete.d.ts.map +1 -0
- package/dist/renderers/incomplete.js +72 -0
- package/dist/renderers/incomplete.js.map +1 -0
- package/dist/renderers/json.d.ts +3 -0
- package/dist/renderers/json.d.ts.map +1 -0
- package/dist/renderers/json.js +126 -0
- package/dist/renderers/json.js.map +1 -0
- package/dist/renderers/sarif.d.ts +3 -0
- package/dist/renderers/sarif.d.ts.map +1 -0
- package/dist/renderers/sarif.js +222 -0
- package/dist/renderers/sarif.js.map +1 -0
- package/dist/renderers/terminal-cells.d.ts +6 -0
- package/dist/renderers/terminal-cells.d.ts.map +1 -0
- package/dist/renderers/terminal-cells.js +110 -0
- package/dist/renderers/terminal-cells.js.map +1 -0
- package/dist/renderers/terminal-style.d.ts +4 -0
- package/dist/renderers/terminal-style.d.ts.map +1 -0
- package/dist/renderers/terminal-style.js +21 -0
- package/dist/renderers/terminal-style.js.map +1 -0
- package/dist/renderers/text.d.ts +10 -0
- package/dist/renderers/text.d.ts.map +1 -0
- package/dist/renderers/text.js +379 -0
- package/dist/renderers/text.js.map +1 -0
- package/dist/reporting/agent-guidance.d.ts +11 -0
- package/dist/reporting/agent-guidance.d.ts.map +1 -0
- package/dist/reporting/agent-guidance.js +17 -0
- package/dist/reporting/agent-guidance.js.map +1 -0
- package/dist/reporting/check-label.d.ts +3 -0
- package/dist/reporting/check-label.d.ts.map +1 -0
- package/dist/reporting/check-label.js +38 -0
- package/dist/reporting/check-label.js.map +1 -0
- package/dist/reporting/next-steps.d.ts +13 -0
- package/dist/reporting/next-steps.d.ts.map +1 -0
- package/dist/reporting/next-steps.js +47 -0
- package/dist/reporting/next-steps.js.map +1 -0
- package/dist/reporting/presentation.d.ts +23 -0
- package/dist/reporting/presentation.d.ts.map +1 -0
- package/dist/reporting/presentation.js +120 -0
- package/dist/reporting/presentation.js.map +1 -0
- package/dist/reporting/report-age.d.ts +3 -0
- package/dist/reporting/report-age.d.ts.map +1 -0
- package/dist/reporting/report-age.js +31 -0
- package/dist/reporting/report-age.js.map +1 -0
- package/dist/reporting/report-callouts.d.ts +15 -0
- package/dist/reporting/report-callouts.d.ts.map +1 -0
- package/dist/reporting/report-callouts.js +47 -0
- package/dist/reporting/report-callouts.js.map +1 -0
- package/dist/reporting/report-path.d.ts +3 -0
- package/dist/reporting/report-path.d.ts.map +1 -0
- package/dist/reporting/report-path.js +8 -0
- package/dist/reporting/report-path.js.map +1 -0
- package/dist/reporting/result-sections.d.ts +14 -0
- package/dist/reporting/result-sections.d.ts.map +1 -0
- package/dist/reporting/result-sections.js +27 -0
- package/dist/reporting/result-sections.js.map +1 -0
- package/dist/reporting/source-identity.d.ts +4 -0
- package/dist/reporting/source-identity.d.ts.map +1 -0
- package/dist/reporting/source-identity.js +17 -0
- package/dist/reporting/source-identity.js.map +1 -0
- package/dist/reporting/source-line.d.ts +3 -0
- package/dist/reporting/source-line.d.ts.map +1 -0
- package/dist/reporting/source-line.js +8 -0
- package/dist/reporting/source-line.js.map +1 -0
- package/dist/reporting/temporary-reports.d.ts +31 -0
- package/dist/reporting/temporary-reports.d.ts.map +1 -0
- package/dist/reporting/temporary-reports.js +646 -0
- package/dist/reporting/temporary-reports.js.map +1 -0
- package/dist/runtime/node-support.d.ts +3 -0
- package/dist/runtime/node-support.d.ts.map +1 -0
- package/dist/runtime/node-support.js +6 -0
- package/dist/runtime/node-support.js.map +1 -0
- package/dist/scan/analysis-failure.d.ts +18 -0
- package/dist/scan/analysis-failure.d.ts.map +1 -0
- package/dist/scan/analysis-failure.js +210 -0
- package/dist/scan/analysis-failure.js.map +1 -0
- package/dist/scan/analysis-session.d.ts +90 -0
- package/dist/scan/analysis-session.d.ts.map +1 -0
- package/dist/scan/analysis-session.js +327 -0
- package/dist/scan/analysis-session.js.map +1 -0
- package/dist/scan/incomplete-report.d.ts +25 -0
- package/dist/scan/incomplete-report.d.ts.map +1 -0
- package/dist/scan/incomplete-report.js +78 -0
- package/dist/scan/incomplete-report.js.map +1 -0
- package/dist/scan/report.d.ts +37 -0
- package/dist/scan/report.d.ts.map +1 -0
- package/dist/scan/report.js +2 -0
- package/dist/scan/report.js.map +1 -0
- package/dist/scan/reporting-options.d.ts +7 -0
- package/dist/scan/reporting-options.d.ts.map +1 -0
- package/dist/scan/reporting-options.js +19 -0
- package/dist/scan/reporting-options.js.map +1 -0
- package/dist/scan/resource-policy.d.ts +13 -0
- package/dist/scan/resource-policy.d.ts.map +1 -0
- package/dist/scan/resource-policy.js +67 -0
- package/dist/scan/resource-policy.js.map +1 -0
- package/dist/scan/run-scan.d.ts +32 -0
- package/dist/scan/run-scan.d.ts.map +1 -0
- package/dist/scan/run-scan.js +130 -0
- package/dist/scan/run-scan.js.map +1 -0
- package/dist/scan/source-excerpts.d.ts +7 -0
- package/dist/scan/source-excerpts.d.ts.map +1 -0
- package/dist/scan/source-excerpts.js +225 -0
- package/dist/scan/source-excerpts.js.map +1 -0
- package/dist/scan/source-mode.d.ts +9 -0
- package/dist/scan/source-mode.d.ts.map +1 -0
- package/dist/scan/source-mode.js +20 -0
- package/dist/scan/source-mode.js.map +1 -0
- package/dist/scan/unsupported-inputs.d.ts +14 -0
- package/dist/scan/unsupported-inputs.d.ts.map +1 -0
- package/dist/scan/unsupported-inputs.js +71 -0
- package/dist/scan/unsupported-inputs.js.map +1 -0
- package/dist/service/client.d.ts +37 -0
- package/dist/service/client.d.ts.map +1 -0
- package/dist/service/client.js +656 -0
- package/dist/service/client.js.map +1 -0
- package/dist/service/entry.d.ts +2 -0
- package/dist/service/entry.d.ts.map +1 -0
- package/dist/service/entry.js +104 -0
- package/dist/service/entry.js.map +1 -0
- package/dist/service/identity-content.d.ts +8 -0
- package/dist/service/identity-content.d.ts.map +1 -0
- package/dist/service/identity-content.js +250 -0
- package/dist/service/identity-content.js.map +1 -0
- package/dist/service/identity-parallel.d.ts +3 -0
- package/dist/service/identity-parallel.d.ts.map +1 -0
- package/dist/service/identity-parallel.js +83 -0
- package/dist/service/identity-parallel.js.map +1 -0
- package/dist/service/identity-worker.d.ts +2 -0
- package/dist/service/identity-worker.d.ts.map +1 -0
- package/dist/service/identity-worker.js +32 -0
- package/dist/service/identity-worker.js.map +1 -0
- package/dist/service/identity.d.ts +17 -0
- package/dist/service/identity.d.ts.map +1 -0
- package/dist/service/identity.js +70 -0
- package/dist/service/identity.js.map +1 -0
- package/dist/service/protocol.d.ts +32 -0
- package/dist/service/protocol.d.ts.map +1 -0
- package/dist/service/protocol.js +153 -0
- package/dist/service/protocol.js.map +1 -0
- package/dist/service/server.d.ts +28 -0
- package/dist/service/server.d.ts.map +1 -0
- package/dist/service/server.js +462 -0
- package/dist/service/server.js.map +1 -0
- package/dist/service/state.d.ts +32 -0
- package/dist/service/state.d.ts.map +1 -0
- package/dist/service/state.js +270 -0
- package/dist/service/state.js.map +1 -0
- package/dist/service/transport.d.ts +16 -0
- package/dist/service/transport.d.ts.map +1 -0
- package/dist/service/transport.js +116 -0
- package/dist/service/transport.js.map +1 -0
- package/dist/service/windows-pipe.d.ts +16 -0
- package/dist/service/windows-pipe.d.ts.map +1 -0
- package/dist/service/windows-pipe.js +397 -0
- package/dist/service/windows-pipe.js.map +1 -0
- package/dist/ui/bee-grid.d.ts +19 -0
- package/dist/ui/bee-grid.d.ts.map +1 -0
- package/dist/ui/bee-grid.js +36 -0
- package/dist/ui/bee-grid.js.map +1 -0
- package/dist/ui/branded-command-frame.d.ts +18 -0
- package/dist/ui/branded-command-frame.d.ts.map +1 -0
- package/dist/ui/branded-command-frame.js +46 -0
- package/dist/ui/branded-command-frame.js.map +1 -0
- package/dist/ui/checks-dashboard.d.ts +11 -0
- package/dist/ui/checks-dashboard.d.ts.map +1 -0
- package/dist/ui/checks-dashboard.js +39 -0
- package/dist/ui/checks-dashboard.js.map +1 -0
- package/dist/ui/compact-pixels.d.ts +7 -0
- package/dist/ui/compact-pixels.d.ts.map +1 -0
- package/dist/ui/compact-pixels.js +21 -0
- package/dist/ui/compact-pixels.js.map +1 -0
- package/dist/ui/doctor-dashboard.d.ts +11 -0
- package/dist/ui/doctor-dashboard.d.ts.map +1 -0
- package/dist/ui/doctor-dashboard.js +46 -0
- package/dist/ui/doctor-dashboard.js.map +1 -0
- package/dist/ui/findings-list.d.ts +8 -0
- package/dist/ui/findings-list.d.ts.map +1 -0
- package/dist/ui/findings-list.js +39 -0
- package/dist/ui/findings-list.js.map +1 -0
- package/dist/ui/fix-app.d.ts +34 -0
- package/dist/ui/fix-app.d.ts.map +1 -0
- package/dist/ui/fix-app.js +232 -0
- package/dist/ui/fix-app.js.map +1 -0
- package/dist/ui/fix-result-dashboard.d.ts +12 -0
- package/dist/ui/fix-result-dashboard.d.ts.map +1 -0
- package/dist/ui/fix-result-dashboard.js +47 -0
- package/dist/ui/fix-result-dashboard.js.map +1 -0
- package/dist/ui/incomplete-list.d.ts +7 -0
- package/dist/ui/incomplete-list.d.ts.map +1 -0
- package/dist/ui/incomplete-list.js +25 -0
- package/dist/ui/incomplete-list.js.map +1 -0
- package/dist/ui/init-app.d.ts +24 -0
- package/dist/ui/init-app.d.ts.map +1 -0
- package/dist/ui/init-app.js +294 -0
- package/dist/ui/init-app.js.map +1 -0
- package/dist/ui/live-dashboard.d.ts +28 -0
- package/dist/ui/live-dashboard.d.ts.map +1 -0
- package/dist/ui/live-dashboard.js +268 -0
- package/dist/ui/live-dashboard.js.map +1 -0
- package/dist/ui/outcome-strip.d.ts +7 -0
- package/dist/ui/outcome-strip.d.ts.map +1 -0
- package/dist/ui/outcome-strip.js +67 -0
- package/dist/ui/outcome-strip.js.map +1 -0
- package/dist/ui/pixel-bee.d.ts +11 -0
- package/dist/ui/pixel-bee.d.ts.map +1 -0
- package/dist/ui/pixel-bee.js +67 -0
- package/dist/ui/pixel-bee.js.map +1 -0
- package/dist/ui/pixel-clock.d.ts +10 -0
- package/dist/ui/pixel-clock.d.ts.map +1 -0
- package/dist/ui/pixel-clock.js +65 -0
- package/dist/ui/pixel-clock.js.map +1 -0
- package/dist/ui/pixel-wordmark.d.ts +11 -0
- package/dist/ui/pixel-wordmark.d.ts.map +1 -0
- package/dist/ui/pixel-wordmark.js +47 -0
- package/dist/ui/pixel-wordmark.js.map +1 -0
- package/dist/ui/render-ink.d.ts +12 -0
- package/dist/ui/render-ink.d.ts.map +1 -0
- package/dist/ui/render-ink.js +119 -0
- package/dist/ui/render-ink.js.map +1 -0
- package/dist/ui/render-static.d.ts +8 -0
- package/dist/ui/render-static.d.ts.map +1 -0
- package/dist/ui/render-static.js +40 -0
- package/dist/ui/render-static.js.map +1 -0
- package/dist/ui/scan-app.d.ts +17 -0
- package/dist/ui/scan-app.d.ts.map +1 -0
- package/dist/ui/scan-app.js +65 -0
- package/dist/ui/scan-app.js.map +1 -0
- package/dist/ui/scan-result-dashboard.d.ts +9 -0
- package/dist/ui/scan-result-dashboard.d.ts.map +1 -0
- package/dist/ui/scan-result-dashboard.js +109 -0
- package/dist/ui/scan-result-dashboard.js.map +1 -0
- package/dist/ui/terminal-mouse.d.ts +11 -0
- package/dist/ui/terminal-mouse.d.ts.map +1 -0
- package/dist/ui/terminal-mouse.js +18 -0
- package/dist/ui/terminal-mouse.js.map +1 -0
- package/dist/ui/terminal-viewport-model.d.ts +5 -0
- package/dist/ui/terminal-viewport-model.d.ts.map +1 -0
- package/dist/ui/terminal-viewport-model.js +32 -0
- package/dist/ui/terminal-viewport-model.js.map +1 -0
- package/dist/ui/terminal-viewport.d.ts +18 -0
- package/dist/ui/terminal-viewport.d.ts.map +1 -0
- package/dist/ui/terminal-viewport.js +80 -0
- package/dist/ui/terminal-viewport.js.map +1 -0
- package/dist/ui/theme.d.ts +18 -0
- package/dist/ui/theme.d.ts.map +1 -0
- package/dist/ui/theme.js +18 -0
- package/dist/ui/theme.js.map +1 -0
- package/dist/updates/cache.d.ts +12 -0
- package/dist/updates/cache.d.ts.map +1 -0
- package/dist/updates/cache.js +71 -0
- package/dist/updates/cache.js.map +1 -0
- package/dist/updates/metadata.d.ts +15 -0
- package/dist/updates/metadata.d.ts.map +1 -0
- package/dist/updates/metadata.js +78 -0
- package/dist/updates/metadata.js.map +1 -0
- package/dist/updates/notification.d.ts +19 -0
- package/dist/updates/notification.d.ts.map +1 -0
- package/dist/updates/notification.js +95 -0
- package/dist/updates/notification.js.map +1 -0
- package/dist/updates/worker.d.ts +5 -0
- package/dist/updates/worker.d.ts.map +1 -0
- package/dist/updates/worker.js +54 -0
- package/dist/updates/worker.js.map +1 -0
- package/docs/checks.md +185 -0
- package/docs/cli-reference.md +324 -0
- package/docs/commercial-licensing.md +26 -0
- package/docs/dependency-license-obligations.md +16 -0
- package/docs/managed-fixes.md +203 -0
- package/docs/privacy.md +90 -0
- package/docs/react-analysis.md +39 -0
- package/docs/readability-complexity.md +35 -0
- package/docs/reporting.md +105 -0
- package/docs/structural-security-coverage.md +32 -0
- package/docs/support.md +137 -0
- package/licenses/overrides/ast-grep-platform-0.45.1-LICENSE +21 -0
- package/licenses/overrides/emnapi-1.11.2-LICENSE +21 -0
- package/licenses/overrides/esrecurse-4.3.0-LICENSE +22 -0
- package/licenses/overrides/humanfs-types-0.15.0-LICENSE +201 -0
- package/licenses/overrides/imurmurhash-0.1.4-LICENSE +20 -0
- package/licenses/overrides/jscpd-5.0.15-LICENSE +21 -0
- package/licenses/overrides/keyv-4.5.4-LICENSE +22 -0
- package/licenses/overrides/koffi-platform-3.2.1-LICENSE +22 -0
- package/licenses/overrides/language-subtag-registry-0.3.23-LICENSE +125 -0
- package/licenses/overrides/language-tags-1.0.9-LICENSE +21 -0
- package/licenses/overrides/napi-rs-wasm-runtime-1.1.6-LICENSE +43 -0
- package/licenses/overrides/natural-compare-1.4.0-LICENSE +21 -0
- package/licenses/overrides/oxc-parser-platform-0.143.0-LICENSE +22 -0
- package/licenses/overrides/tslib-2.8.1-LICENSE +12 -0
- package/licenses/overrides/wasm-util-0.10.3-LICENSE +21 -0
- package/licenses/overrides/yarnpkg-lockfile-1.1.0-LICENSE +26 -0
- package/licenses/overrides/yoga-layout-3.2.1-LICENSE +21 -0
- package/licenses/production-inventory.json +8533 -0
- package/licenses/reviewed-obligations.json +23 -0
- package/licenses/reviewed-overrides.json +614 -0
- package/package.json +133 -0
- package/schema/zedbee.schema.json +4828 -0
package/docs/checks.md
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# Checks
|
|
2
|
+
|
|
3
|
+
Scan and fix analysis opens fresh sessions in reusable supervised workers,
|
|
4
|
+
normally shared through a private local service. Session release clears source
|
|
5
|
+
and project state. Compiler-backed React checks retire their worker on release;
|
|
6
|
+
Knip uses a fresh internal worker for each snapshot side, and jscpd launches its
|
|
7
|
+
managed child tool. The CLI owns applicability, attribution, policy, and reports. See the
|
|
8
|
+
[execution boundary](support.md#managed-configuration-compatibility) for isolation
|
|
9
|
+
limits and cache exclusions, and [diagnostics](reporting.md#safe-analyzer-diagnostics)
|
|
10
|
+
for investigating incomplete analyzer jobs.
|
|
11
|
+
|
|
12
|
+
Zedbee owns the analyzer versions and inert configuration used by every v1 check. `relevant` checks run when staged state can affect them; `always` checks run whenever their required project inputs exist. Analysis scope may be broader than the changed lines, while attribution still blocks only new or worsened staged responsibility.
|
|
13
|
+
|
|
14
|
+
| Check ID | Coverage | Scope and attribution | Important limitation |
|
|
15
|
+
| ------------------------ | ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------- |
|
|
16
|
+
| `formatting` | Prettier formatting | Transforms staged target files and intersects formatting changes with added lines | Managed fixing formats the complete current working file, including unstaged work |
|
|
17
|
+
| `lint` | ESLint, typescript-eslint, and managed correctness rules | Compares workspace diagnostics and attributes locations/entities | Does not load project ESLint plugins or executable config |
|
|
18
|
+
| `types` | TypeScript diagnostics | Compares isolated baseline/target programs for each workspace | TypeScript source requires a contained staged `tsconfig.json` |
|
|
19
|
+
| `cyclomaticComplexity` | Branch-path complexity | Compares changed syntax entities against `max` and worsening policy | Thresholds require team calibration |
|
|
20
|
+
| `readabilityComplexity` | Zedbee's original nesting/readability metric | Compares changed syntax entities against `max` and worsening policy | It is not Sonar Cognitive Complexity and scores are not interchangeable |
|
|
21
|
+
| `structuralSecurity` | Managed ast-grep rules for high-confidence local patterns | Compares rule/location observations in JavaScript and TypeScript source | Narrower than Semgrep; no general taint, dataflow, reachability, interfile, or live registry coverage |
|
|
22
|
+
| `secrets` | Secretlint 13.0.5 recommended preset | Compares redacted baseline/target locations; an ephemeral keyed source-range digest detects same-location replacement | Scans changed regular UTF-8 files up to 1 MiB, not Git history; pattern matches can need review |
|
|
23
|
+
| `duplication` | jscpd clone detection and repository duplication percentage | Compares whole workspaces and attributes new clone regions/project regressions | Large source lists can exceed an operating-system argument limit |
|
|
24
|
+
| `dependencyArchitecture` | Dependency Cruiser cycles and invalid dependency edges | Compares the workspace module graph | Uses managed rules, not a project's executable dependency-cruiser config |
|
|
25
|
+
| `deadCode` | Knip unused files, exports, and dependency hygiene | Compares each workspace as a project; saved findings require validated snapshot inputs and package-absence guards | Framework plugins are disabled; dynamic conventions and TS path aliases can require future managed profiles |
|
|
26
|
+
| `reactCorrectness` | React, Hooks, and JSX correctness | Runs only in discovered React/Ink/Next/Remix workspaces; calibrates each baseline/target workspace from staged dependency data | Uses the staged manifest, an unambiguous supported lockfile when available, then the managed React 19.2 fallback |
|
|
27
|
+
| `reactAccessibility` | React DOM JSX accessibility | Runs only for React DOM, Next.js, and Remix—not Ink terminal UI | Static JSX rules cannot prove runtime accessibility |
|
|
28
|
+
| `vulnerabilities` | Zedbee's bounded OSV API v1 client | Compares advisory/package/dependency-path state when supported lockfiles change or timing is `always` | Online only; discloses package name, exact version, and npm ecosystem identifier to `api.osv.dev` |
|
|
29
|
+
|
|
30
|
+
## Incomplete staged inputs
|
|
31
|
+
|
|
32
|
+
Intent-to-add records supply no staged file content, so Zedbee excludes them as unstaged. A Git LFS pointer that is actually staged remains in scope but cannot be analyzed as the referenced file; Zedbee reports the repository-relative path and returns incomplete. With LFS tracking active, materializing and staging the object again recreates the pointer. Validate the referenced object separately; that validation does not clear Zedbee's incomplete result. If the file is appropriate for ordinary tracked text, deliberately convert it out of LFS tracking, then review, stage, and rescan. In committed base mode, that conversion must be committed. An intentional repository policy can instead exclude the path from the affected checks with `pathExclusions`; an exclusion suppresses those checks and does not validate the object.
|
|
33
|
+
|
|
34
|
+
Complete JSON, text, and SARIF exports report every attributed finding. Automatic terminal output and explicit Ink show 25 findings by default, with blockers first, while keeping counts, disclosures, incomplete checks, warnings, guidance, and report paths complete. Automatic scans always write a complete versioned temporary JSON report, including a pass with zero findings; explicit Ink writes one only when its finding preview overflows. Explicit text, JSON, and SARIF write no sidecar. Use explicit JSON or SARIF output/redirection for a durable export.
|
|
35
|
+
|
|
36
|
+
## Profiles
|
|
37
|
+
|
|
38
|
+
- `fast`: local formatting, lint, complexity, structural security, and applicable React checks.
|
|
39
|
+
- `recommended`: `fast` plus TypeScript and Secretlint.
|
|
40
|
+
- `thorough`: every check, including project analysis and OSV vulnerability comparison.
|
|
41
|
+
|
|
42
|
+
Every check can be set to severity `off`, `warn`, or `error`. A warning remains visible but does not block. An enabled check that cannot complete returns exit code 2 when `failOnIncomplete` is enabled.
|
|
43
|
+
|
|
44
|
+
## Managed fix availability
|
|
45
|
+
|
|
46
|
+
`zedbee fix` rescans the current index and includes warning and blocking
|
|
47
|
+
candidates for `formatting`, `lint`, and `reactCorrectness`. The managed fix
|
|
48
|
+
boundary for lint and React is exact reported official fixes only. Analyzer
|
|
49
|
+
suggestions remain manual, as do every finding from unsupported checks such as
|
|
50
|
+
types, accessibility, complexity, security, secrets, duplication, architecture,
|
|
51
|
+
dead code, and vulnerabilities.
|
|
52
|
+
|
|
53
|
+
Exact lint and React fixes are composed with non-overlapping working changes.
|
|
54
|
+
When formatting is selected, Prettier then formats the complete current working
|
|
55
|
+
file, including unstaged work. Zedbee never mutates the index. Use
|
|
56
|
+
[`zedbee fix`](managed-fixes.md) for preview, selection, conflicts, partial
|
|
57
|
+
progress, JSON, and the review-stage-rescan workflow.
|
|
58
|
+
|
|
59
|
+
## Managed customization
|
|
60
|
+
|
|
61
|
+
Exactly seven configurable checks expose settings beyond severity and timing:
|
|
62
|
+
|
|
63
|
+
| Check ID | Managed settings | Defaults and boundary |
|
|
64
|
+
| ----------------------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
|
|
65
|
+
| `formatting` | Fourteen Prettier options under `settings` | File-scoped; defaults are listed below |
|
|
66
|
+
| `lint` | Bundled ESLint and typescript-eslint `rules` | File-scoped and limited to rule IDs Zedbee ships |
|
|
67
|
+
| `cyclomaticComplexity` | Positive safe-integer `max`; Boolean `blockWorsening` | `max: 20`, `blockWorsening: true`; file-scoped |
|
|
68
|
+
| `readabilityComplexity` | Positive safe-integer `max`; Boolean `blockWorsening` | `max: 15`, `blockWorsening: true`; file-scoped |
|
|
69
|
+
| `duplication` | Percentage `threshold`; `settings.minLines`, `settings.minTokens`, and `settings.mode` | `threshold: 5`, `minLines: 5`, `minTokens: 50`, `mode: "mild"`; workspace-wide |
|
|
70
|
+
| `reactCorrectness` | Bundled React and Hooks `rules` | File-scoped and limited to rule IDs Zedbee ships |
|
|
71
|
+
| `reactAccessibility` | Bundled jsx-a11y `rules` | File-scoped and limited to rule IDs Zedbee ships |
|
|
72
|
+
|
|
73
|
+
A target-only score above `max` and a staged score that crosses `max` are blocking. `blockWorsening: true` additionally blocks an increase when both the baseline and target were already above `max`; set it to `false` to tolerate that above-limit worsening while teams pay down existing debt. Duplication `threshold` accepts 0 through 100. `minLines` and `minTokens` are positive safe integers. Duplication mode is one of `strict`, `mild`, or `weak`.
|
|
74
|
+
|
|
75
|
+
### Prettier settings
|
|
76
|
+
|
|
77
|
+
Formatting comparisons have a two-second limit per file. If a comparison takes longer, Zedbee reports `FORMATTING_DIFF_TIMEOUT` and marks the check incomplete. It does not guess which staged lines changed or treat the file as passing. Format the affected file with Prettier directly or manually, using the intended formatting settings, then review, stage, and scan again. A persistently incomplete formatting check cannot produce a managed `zedbee fix formatting` action.
|
|
78
|
+
|
|
79
|
+
The formatting check accepts all and only these fourteen Prettier fields. Values not listed here, including `parser` and plugin settings, are rejected.
|
|
80
|
+
|
|
81
|
+
| Field | Default | Accepted value |
|
|
82
|
+
| ------------------------ | ------------: | ---------------------------------------------- |
|
|
83
|
+
| `printWidth` | `80` | Positive safe integer |
|
|
84
|
+
| `tabWidth` | `2` | Positive safe integer |
|
|
85
|
+
| `useTabs` | `false` | Boolean |
|
|
86
|
+
| `semi` | `true` | Boolean |
|
|
87
|
+
| `singleQuote` | `false` | Boolean |
|
|
88
|
+
| `quoteProps` | `"as-needed"` | `"as-needed"`, `"consistent"`, or `"preserve"` |
|
|
89
|
+
| `jsxSingleQuote` | `false` | Boolean |
|
|
90
|
+
| `trailingComma` | `"all"` | `"all"`, `"es5"`, or `"none"` |
|
|
91
|
+
| `bracketSpacing` | `true` | Boolean |
|
|
92
|
+
| `bracketSameLine` | `false` | Boolean |
|
|
93
|
+
| `arrowParens` | `"always"` | `"always"` or `"avoid"` |
|
|
94
|
+
| `proseWrap` | `"preserve"` | `"always"`, `"never"`, or `"preserve"` |
|
|
95
|
+
| `endOfLine` | `"lf"` | `"lf"`, `"crlf"`, `"cr"`, or `"auto"` |
|
|
96
|
+
| `singleAttributePerLine` | `false` | Boolean |
|
|
97
|
+
|
|
98
|
+
### Duplication settings
|
|
99
|
+
|
|
100
|
+
Duplication uses these workspace-wide values:
|
|
101
|
+
|
|
102
|
+
| Field | Default | Accepted value |
|
|
103
|
+
| ----------- | -------: | --------------------------------- |
|
|
104
|
+
| `threshold` | `5` | Finite percentage from 0 to 100 |
|
|
105
|
+
| `minLines` | `5` | Positive safe integer |
|
|
106
|
+
| `minTokens` | `50` | Positive safe integer |
|
|
107
|
+
| `mode` | `"mild"` | `"strict"`, `"mild"`, or `"weak"` |
|
|
108
|
+
|
|
109
|
+
### Bundled ESLint and React rules
|
|
110
|
+
|
|
111
|
+
`lint`, `reactCorrectness`, and `reactAccessibility` accept a `rules` object. A value can be a severity (`"off"`, `"warn"`, `"error"`, `0`, `1`, or `2`) or an array such as `["error", { "argsIgnorePattern": "^_" }]`. Each check has a bounded editor-schema inventory: bundled rules are supported, while unknown rules, rules belonging to another check, and custom plugins are rejected. Rule options follow the analyzer and plugin versions pinned by the installed Zedbee release and may change only with a Zedbee engine upgrade.
|
|
112
|
+
|
|
113
|
+
`lint.typeInformation` accepts `"required"` or `"when-available"` and defaults to `"required"`. Typed lint loads every contained TypeScript project in a workspace. A file covered by any loaded project receives type-aware rules. An uncovered file blocks typed lint under `"required"`. Under an explicit `"when-available"` file policy, it receives the bundled basic TypeScript rules without rules that require project type information. This setting is file-scoped and can be limited with an override such as `{ "files": ["tools/*.ts"], "checks": { "lint": { "typeInformation": "when-available" } } }`.
|
|
114
|
+
|
|
115
|
+
```jsonc
|
|
116
|
+
{
|
|
117
|
+
"schemaVersion": 1,
|
|
118
|
+
"checks": {
|
|
119
|
+
"lint": {
|
|
120
|
+
"rules": {
|
|
121
|
+
"no-console": "warn",
|
|
122
|
+
"@typescript-eslint/no-unused-vars": [
|
|
123
|
+
"error",
|
|
124
|
+
{ "argsIgnorePattern": "^_" },
|
|
125
|
+
],
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
"reactCorrectness": {
|
|
129
|
+
"rules": {
|
|
130
|
+
"react/prop-types": "off",
|
|
131
|
+
"react-hooks/rules-of-hooks": "error",
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
"reactAccessibility": {
|
|
135
|
+
"rules": { "jsx-a11y/no-autofocus": "warn" },
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
}
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Ordered file overrides
|
|
142
|
+
|
|
143
|
+
File overrides are evaluated in array order independently for every repository-relative file. All matching entries contribute a patch; a later matching override takes precedence only for fields it supplies. Settings omitted by that later entry retain the result of the profile, repository check policy, and earlier matches.
|
|
144
|
+
|
|
145
|
+
```jsonc
|
|
146
|
+
{
|
|
147
|
+
"schemaVersion": 1,
|
|
148
|
+
"checks": {
|
|
149
|
+
"formatting": {
|
|
150
|
+
"settings": { "printWidth": 100, "singleAttributePerLine": true },
|
|
151
|
+
},
|
|
152
|
+
"cyclomaticComplexity": { "max": 20, "blockWorsening": true },
|
|
153
|
+
"duplication": {
|
|
154
|
+
"threshold": 5,
|
|
155
|
+
"settings": { "minLines": 5, "minTokens": 50, "mode": "mild" },
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
"overrides": [
|
|
159
|
+
{
|
|
160
|
+
"files": ["packages/**"],
|
|
161
|
+
"checks": {
|
|
162
|
+
"formatting": { "settings": { "printWidth": 90 } },
|
|
163
|
+
"cyclomaticComplexity": { "max": 18 },
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"files": ["packages/legacy/**"],
|
|
168
|
+
"checks": {
|
|
169
|
+
"formatting": { "settings": { "printWidth": 120 } },
|
|
170
|
+
"cyclomaticComplexity": { "blockWorsening": false },
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
}
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
For `packages/legacy/view.ts`, the example resolves formatting `printWidth` to 120, complexity `max` to 18, and `blockWorsening` to false. A file outside `packages/**` keeps the repository values. This is true per-file last-match behavior, not one merged workspace policy.
|
|
178
|
+
|
|
179
|
+
Duplication analysis is workspace-wide because jscpd compares clone regions and the duplication percentage across a whole workspace. Configure `threshold`, `minLines`, `minTokens`, and `mode` only under the root `checks.duplication`; putting them in `overrides` is rejected. Overrides may still supply duplication severity or timing, but Zedbee resolves those patches conservatively for the whole workspace target rather than per clone finding. OSV availability policy is also repository-wide: `checks.vulnerabilities.onUnavailable` accepts `block` or `warn`, while file-scoped availability overrides are rejected.
|
|
180
|
+
|
|
181
|
+
Run `zedbee checks` to inspect effective settings and configured overrides. Its output identifies whether each root value came from the selected profile or repository configuration and includes the primary managed engine summary; it is not an inventory of every supporting package version. `zedbee checks --format json` returns the complete deterministic settings metadata.
|
|
182
|
+
|
|
183
|
+
## Managed-only configuration boundary
|
|
184
|
+
|
|
185
|
+
Zedbee does not load a project's native analyzer config. It ignores native Prettier, ESLint, plugin, parser, and executable analyzer configuration in favor of its pinned engines and inert managed settings. Teams with native configs may see different Zedbee results because those files are not loaded. Adopt Zedbee by calibrating the supported `.zedbeerc.jsonc` settings and rule inventory, not by assuming identical results from an existing native tool invocation.
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
# CLI and configuration reference
|
|
2
|
+
|
|
3
|
+
[Back to the README](../README.md)
|
|
4
|
+
|
|
5
|
+
Detailed setup, commands, settings, and troubleshooting for Zedbee.
|
|
6
|
+
|
|
7
|
+
- [Setup](#install)
|
|
8
|
+
- [Commands and local service](#commands)
|
|
9
|
+
- [Experimental programmatic API](#experimental-programmatic-api)
|
|
10
|
+
- [Staged code and CI comparisons](#exact-selected-content)
|
|
11
|
+
- [Configuration](#configuration)
|
|
12
|
+
- [Analyzer boundaries](#managed-analyzer-boundary)
|
|
13
|
+
- [Output and reports](#output)
|
|
14
|
+
- [Exit codes](#exit-codes)
|
|
15
|
+
- [Hooks](#hooks)
|
|
16
|
+
- [Cache and performance](#cache-and-performance)
|
|
17
|
+
- [Coverage](#current-coverage)
|
|
18
|
+
- [Troubleshooting](#troubleshooting)
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
Install the public beta from npm's `next` tag:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm install --save-dev zedbee@next
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Stage the configuration and the files you intend to commit before scanning.
|
|
29
|
+
Zedbee reads staged content, not later working-file edits. With nothing staged,
|
|
30
|
+
there is nothing to scan.
|
|
31
|
+
|
|
32
|
+
Run a scan directly:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx zedbee scan
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Interactive commands can show an `UPDATE AVAILABLE` notice after their result.
|
|
39
|
+
Zedbee checks npm's public `latest` release in a background process and caches
|
|
40
|
+
the result for a day; a newly discovered update appears on a subsequent run.
|
|
41
|
+
Only newer stable releases compatible with your Node.js version are suggested.
|
|
42
|
+
The notice provides a manual update command for the detected project package
|
|
43
|
+
manager. It never installs anything, changes scan results, or waits for npm.
|
|
44
|
+
Unpublished packages, offline checks, and cache failures are silent.
|
|
45
|
+
|
|
46
|
+
Set `ZEDBEE_NO_UPDATE_CHECK=1` or `NO_UPDATE_NOTIFIER=1` to disable both checking
|
|
47
|
+
and notices. CI, redirected output, JSON, and SARIF also disable both. See the
|
|
48
|
+
[privacy guide](privacy.md#update-notifications) for the network and cache details.
|
|
49
|
+
|
|
50
|
+
Scans never modify source files. `zedbee fix` is a separate, approval-gated
|
|
51
|
+
workflow that rescans current staged code, previews supported managed fixes, and
|
|
52
|
+
writes only working files. Zedbee never stages or commits. See the
|
|
53
|
+
[managed-fixes guide](managed-fixes.md).
|
|
54
|
+
|
|
55
|
+
For guided setup, preview the detected project, recommended policy, network use, and exact hook/config edits:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
npx zedbee init
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Nothing is written until the interactive confirmation. Automation can apply the same proposal with `--yes`; use `--format json` for a deterministic machine-readable preview/result.
|
|
62
|
+
|
|
63
|
+
## Commands
|
|
64
|
+
|
|
65
|
+
| Command | Purpose |
|
|
66
|
+
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
67
|
+
| `zedbee init` | Recommend checks and safely add `.zedbeerc.jsonc` plus a Husky, Lefthook, simple-git-hooks, or raw Git pre-commit integration |
|
|
68
|
+
| `zedbee scan` | Scan the exact index target, or a committed target with `--base`, and return pass, blocked, or incomplete |
|
|
69
|
+
| `zedbee fix` | Rescan current staged code, preview managed formatting/lint/React fixes, and apply approved changes to working files only |
|
|
70
|
+
| `zedbee checks` | Explain every configured check, applicability, targets, engine/license, network use, and limitation without running analysis |
|
|
71
|
+
| `zedbee doctor` | Diagnose Git, Node, configuration, snapshots, workspaces, hooks, Secretlint, lockfile parsing, licenses, and bounded OSV connectivity without running a scan |
|
|
72
|
+
| `zedbee service status` | Inspect the current installation/runtime's local service without starting one |
|
|
73
|
+
| `zedbee service stop` | Drain active sessions and wait for service and worker cleanup |
|
|
74
|
+
|
|
75
|
+
`scan --no-service` and `fix --no-service` use a local executor that closes with the command. Ordinary commands acquire the service only when analysis is needed; empty-index scans and help do not start it. The service stops after five minutes with no active sessions. `service status` and `service stop` support `--format json` for machine-readable state. A service failure makes analysis incomplete; it is never silently retried through another executor.
|
|
76
|
+
|
|
77
|
+
`init` supports `--profile fast|recommended|thorough`, `--hook auto|husky|lefthook|simple-git-hooks|raw|none`, `--checks <comma-separated IDs>`, `--osv-unavailable block|warn`, `--yes`, and text/JSON output. Interactive setup exposes the same check toggles and OSV outage choice without requiring documentation lookup. `scan`, `checks`, and `doctor` accept `--config <path>`.
|
|
78
|
+
|
|
79
|
+
Bare `zedbee fix` selects `formatting`, `lint`, and `reactCorrectness`; a named
|
|
80
|
+
selector limits the plan to that supported check. Interactive terminals preview
|
|
81
|
+
and request confirmation. Redirected and JSON use is preview-only unless
|
|
82
|
+
`--yes`, the automation approval flag, is present. Managed lint and React fixes
|
|
83
|
+
apply only exact reported official fixes; selected Prettier formatting runs
|
|
84
|
+
after them over each complete current working file, including unstaged work.
|
|
85
|
+
Warnings and blockers are both eligible. Suggestions and unsupported checks
|
|
86
|
+
remain manual. Review, stage, and rescan after applying; see the
|
|
87
|
+
[complete managed-fix contract](managed-fixes.md).
|
|
88
|
+
|
|
89
|
+
`zedbee doctor` defaults to responsive automatic output. Doctor uses the yellow Zedbee frame with one full-width `DOCTOR` panel in a wide interactive terminal. A narrow terminal, redirected output, CI environment, or `TERM=dumb` receives compact plain text instead. `zedbee doctor --format text` always forces the plain view, while `zedbee doctor --format json` is deterministic and ANSI-free. `--no-color` keeps an eligible framed layout but removes semantic status colors.
|
|
90
|
+
|
|
91
|
+
`zedbee checks` uses the same responsive behavior. Checks uses the yellow Zedbee frame with one full-width `CHECKS` panel in a wide interactive terminal, showing each check's severity, applicability, engine, targets, execution details, network use, and limitations. `zedbee checks --format text` forces the complete plain view, while `zedbee checks --format json` keeps the existing deterministic, ANSI-free machine output. Narrow terminals, redirected output, CI, and `TERM=dumb` use plain text; `--no-color` keeps an eligible framed layout without semantic colors.
|
|
92
|
+
|
|
93
|
+
## Experimental programmatic API
|
|
94
|
+
|
|
95
|
+
Zedbee's supported v1 interface is its command-line interface. The package also exports TypeScript and JavaScript functions for programmatic use, but that API is experimental: its names, types, and behavior may change between releases without the normal compatibility guarantees. Do not build a production integration around it yet. Feedback about intended API uses is welcome; see the package exports and generated declarations for the current surface.
|
|
96
|
+
|
|
97
|
+
`runScan({ repositoryRoot })` owns and closes a local executor. It does not start the CLI service. An explicit executor can be reused across calls; each call still captures a fresh source epoch, closes its own session, and preserves configuration, attribution and cache validation. The caller must close the executor, including after cancellation or errors:
|
|
98
|
+
|
|
99
|
+
```js
|
|
100
|
+
import { createLocalAnalyzerExecutor, runScan } from "zedbee";
|
|
101
|
+
|
|
102
|
+
const executor = createLocalAnalyzerExecutor({ concurrency: 2 }); // 1, 2 or 4
|
|
103
|
+
try {
|
|
104
|
+
const first = await runScan({ repositoryRoot, executor, cache: false });
|
|
105
|
+
const second = await runScan({ repositoryRoot, executor, cache: false });
|
|
106
|
+
// Inspect each report's outcome/exitCode; incomplete is never a clean scan.
|
|
107
|
+
} finally {
|
|
108
|
+
await executor.close();
|
|
109
|
+
}
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
`cache: false` disables observation reuse, independently of engine reuse. An executor has bounded session/job admission; `AnalyzerCapacityError` reports overload. It does not grant permission to replay accepted analysis. Ordinary scans submit bounded work across large workspace sets. Concurrent embedding callers must bound their own scans and handle admission failures. Never delete temporary snapshots after an unproved cleanup failure; follow the reported cleanup guidance.
|
|
113
|
+
|
|
114
|
+
## Exact selected content
|
|
115
|
+
|
|
116
|
+
Zedbee treats the Git index as the proposed commit. If you stage a file and edit it again without staging the later edit, Zedbee scans the staged version. It materializes isolated baseline and target snapshots by reading the selected Git blobs directly, without checkout EOL conversion, smudge/process filters, or Git LFS materialization, and cleans them after proving execution has stopped. Unproved cleanup retains the snapshots and makes the scan incomplete. Source excerpts therefore come from the exact selected object bytes and line, never from a later working-tree edit.
|
|
117
|
+
|
|
118
|
+
A bare `zedbee scan`, along with `zedbee fix` and `zedbee checks`, reads repository configuration from the Git index. `zedbee scan --base <ref>` instead reads it from the committed target `HEAD`. In index mode, a newly staged `.zedbeerc.jsonc` takes effect immediately, while an unstaged or untracked copy cannot weaken the policy applied to staged code; when the selected source has no configuration, Zedbee uses the recommended defaults. `zedbee init` and `zedbee doctor` still inspect the working copy because they create or diagnose local configuration rather than judge a proposed commit.
|
|
119
|
+
|
|
120
|
+
### Committed branch scans in CI
|
|
121
|
+
|
|
122
|
+
An ordinary `zedbee scan` examines the Git index. A clean pull-request checkout therefore has zero index changes; it does not automatically scan the commits on the checked-out branch. Fetch the base branch history and request committed base mode explicitly:
|
|
123
|
+
|
|
124
|
+
```sh
|
|
125
|
+
git fetch --no-tags origin main
|
|
126
|
+
npx zedbee scan --base origin/main --format sarif > zedbee.sarif
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
`--base <ref>` resolves the unique merge base of the locally available ref and committed `HEAD`, then scans only the committed changes from that merge base through `HEAD`. If the base branch advances after the feature branch splits, base-only commits are not treated as feature changes. The named ref and enough common history must already exist locally. Zedbee never fetches automatically; a shallow checkout without the required ancestry is incomplete and exits 2, so configure sufficient fetch depth or fetch more history before retrying.
|
|
130
|
+
|
|
131
|
+
Base mode is immutable by design. Both snapshots and `.zedbeerc.jsonc` come from commits: the target policy is read from `HEAD`, while staged, unstaged, and untracked source edits are ignored. The command does not change `HEAD`, refs, the index, or the working tree. It cleans its temporary committed-tree snapshots after success, failure, timeout, or cancellation once execution cleanup is proved; otherwise it retains them and reports incomplete. `zedbee fix --base` does not exist because managed fixes write reviewed working files from the staged-index workflow; a committed CI comparison is an inspection target, not a mutable fix target.
|
|
132
|
+
|
|
133
|
+
In index mode, an intent-to-add entry (`git add --intent-to-add`) supplies no staged file content and is excluded as unstaged. Git LFS pointers and submodule pointers in either the selected index or committed target cannot be inspected, so Zedbee reports every affected path as incomplete. Binary assets remain allowed, but a binary file whose path is selected by an enabled source, formatting, or vulnerability check is incomplete rather than silently skipped. Intentional per-path suppressions are configured with `pathExclusions`.
|
|
134
|
+
|
|
135
|
+
An analyzer may inspect a whole file or project when correctness requires it. Zedbee separately attributes the result and reports only issues introduced or worsened by the selected target changes.
|
|
136
|
+
|
|
137
|
+
## Configuration
|
|
138
|
+
|
|
139
|
+
The optional root configuration is `.zedbeerc.jsonc`. It is data, not executable project code.
|
|
140
|
+
|
|
141
|
+
```jsonc
|
|
142
|
+
{
|
|
143
|
+
"$schema": "./node_modules/zedbee/schema/zedbee.schema.json",
|
|
144
|
+
"schemaVersion": 1,
|
|
145
|
+
"profile": "recommended",
|
|
146
|
+
"checks": {
|
|
147
|
+
"formatting": {
|
|
148
|
+
"severity": "error",
|
|
149
|
+
"settings": {
|
|
150
|
+
"printWidth": 100,
|
|
151
|
+
"singleAttributePerLine": true,
|
|
152
|
+
"singleQuote": true,
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
"lint": { "rules": { "no-console": "warn" } },
|
|
156
|
+
"cyclomaticComplexity": { "max": 20, "blockWorsening": true },
|
|
157
|
+
"readabilityComplexity": { "max": 15, "blockWorsening": true },
|
|
158
|
+
"duplication": {
|
|
159
|
+
"threshold": 5,
|
|
160
|
+
"settings": { "minLines": 5, "minTokens": 50, "mode": "mild" },
|
|
161
|
+
},
|
|
162
|
+
"reactCorrectness": { "rules": { "react/prop-types": "off" } },
|
|
163
|
+
"reactAccessibility": {
|
|
164
|
+
"rules": { "jsx-a11y/no-autofocus": "warn" },
|
|
165
|
+
},
|
|
166
|
+
"vulnerabilities": { "severity": "error", "onUnavailable": "block" },
|
|
167
|
+
},
|
|
168
|
+
"overrides": [
|
|
169
|
+
{
|
|
170
|
+
"files": ["**/*.test.{ts,tsx}"],
|
|
171
|
+
"checks": {
|
|
172
|
+
"lint": { "rules": { "no-console": "off" } },
|
|
173
|
+
"formatting": { "settings": { "printWidth": 88 } },
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
"pathExclusions": [
|
|
178
|
+
{
|
|
179
|
+
"files": ["**/*.snap", "coverage/**"],
|
|
180
|
+
"checks": ["formatting", "lint", "types"],
|
|
181
|
+
"reason": "Known snapshot and generated files are intentionally excluded.",
|
|
182
|
+
},
|
|
183
|
+
],
|
|
184
|
+
"reporting": {
|
|
185
|
+
"sourceExcerpts": "interactive",
|
|
186
|
+
"terminalFindingLimit": 25,
|
|
187
|
+
"temporaryReportMaxAge": "24h",
|
|
188
|
+
"agentGuidance": {
|
|
189
|
+
"opening": "Use the complete report as the source of truth.",
|
|
190
|
+
"nextStep": "Fix every blocking finding, then run Zedbee again.",
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
"failOnIncomplete": true,
|
|
194
|
+
}
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
Profiles are `fast`, `recommended`, and `thorough`. A check can use severity `off`, `warn`, or `error`, and timing `relevant` or `always`. Exactly seven configurable checks expose additional managed settings: `formatting`, `lint`, `cyclomaticComplexity`, `readabilityComplexity`, `duplication`, `reactCorrectness`, and `reactAccessibility`. The complete option tables, defaults, rule boundaries, and override examples are in the [check guide](checks.md).
|
|
198
|
+
|
|
199
|
+
Overrides are evaluated in array order for each repository-relative file. Every matching patch is applied, and a later matching override takes precedence for the fields it supplies. This is true per-file behavior: two selected target files in the same workspace can receive different formatting, rule, complexity, severity, and timing policy. Duplication is the exception because jscpd compares a workspace as a whole; its `threshold`, `minLines`, `minTokens`, and `mode` settings are workspace-wide and are rejected in file overrides.
|
|
200
|
+
|
|
201
|
+
`pathExclusions` suppresses named checks for exact files or directory globs. Each entry must include at least one repository-relative path, at least one check ID, and a short reason. Exclusions are applied after file overrides, so a matching exclusion always wins for the named checks. Patterns use forward slashes and support ordinary `*`, `**`, and `?` matching; absolute paths, parent traversal, negation, braces, and extended globs are rejected. Other checks still inspect the path. JSON reports include the configured exclusions and identify the ones that matched the selected changes.
|
|
202
|
+
|
|
203
|
+
Run `zedbee checks` to inspect effective settings, their profile or repository source, and configured file overrides without running analysis. Use `zedbee checks --format json` for the complete machine-readable view. `zedbee init` deliberately writes only the selected profile/checks and existing guidance; the shipped editor schema, this documentation, and `zedbee checks` are the settings discovery surface.
|
|
204
|
+
|
|
205
|
+
`reporting.sourceExcerpts` accepts `never`, `interactive`, or `always` and defaults to `interactive`. `never` omits ordinary source from every format, `interactive` includes it only in Ink, and `always` includes it in Ink, text, JSON, and SARIF. An explicit `--include-source` or `--no-source` overrides repository policy for that scan.
|
|
206
|
+
|
|
207
|
+
The configuration example is illustrative. `zedbee init` writes editable recommended guidance. `opening` and `nextStep` can be blanked independently with `""` to hide only that message. The fixed complete-report lines remain when a configured message is blank.
|
|
208
|
+
|
|
209
|
+
`reporting.terminalFindingLimit` defaults to 25 findings for automatic terminal output and forced `--format ink`; set it to a positive integer or `"all"`. The limit applies to findings only, with blockers first. Counts, disclosures, incomplete checks, report warnings, guidance, and report paths are never limited. Automatic scans always save a complete versioned JSON report, including passes with zero findings. `reporting.temporaryReportMaxAge` defaults to `"24h"`. Temporary reports become eligible for cleanup at the configured age and are removed during a subsequent Zedbee maintenance run. The operating system may remove them sooner. These handoffs are not archives.
|
|
210
|
+
|
|
211
|
+
The versioned editor schema ships at `node_modules/zedbee/schema/zedbee.schema.json`. `zedbee init` writes that local schema reference, so validation does not depend on a website being available.
|
|
212
|
+
|
|
213
|
+
## Managed analyzer boundary
|
|
214
|
+
|
|
215
|
+
Zedbee ships and pins Prettier 3.9.6, ESLint 9.39.5, typescript-eslint 8.67.0, TypeScript 6.0.3, Secretlint 13.0.5, eslint-plugin-react 7.37.5, eslint-plugin-react-hooks 7.1.1, eslint-plugin-jsx-a11y 6.10.2, ast-grep 0.45.1, jscpd 5.0.15, Dependency Cruiser 18.2.0, and Knip 6.32.2. It supplies its own inert analyzer configuration and never loads project ESLint, Prettier, Secretlint, Babel, parser, plugin, or executable analyzer configuration. Rule options follow the analyzer and plugin versions pinned by the installed Zedbee release. Only bundled rules can be configured; custom plugins cannot be loaded. TypeScript configuration is parsed as selected snapshot data, not executed; installed declaration packages may be resolved through the constrained project `node_modules` boundary. Typed lint loads every contained `tsconfig*.json` in an inspected workspace and uses each project for the files it covers. By default, a TypeScript file outside every loaded project makes typed lint incomplete. This avoids validating changed target code under unrelated compiler settings.
|
|
216
|
+
|
|
217
|
+
Zedbee does not load any native analyzer config files, including native Prettier and ESLint configs. Adoption therefore has a deliberate tradeoff: teams with native configs may see different Zedbee results because those files are not loaded. Re-express the supported policy in `.zedbeerc.jsonc`, within Zedbee's bounded managed settings, rather than expecting native configuration parity.
|
|
218
|
+
|
|
219
|
+
Project checks inspect a workspace as a whole, then compare the isolated selected baseline and target snapshots so existing debt remains non-blocking. This roughly doubles analyzer work. Zedbee runs Knip in a fresh internal worker for each snapshot side, using a captured filesystem shared by Knip and its pinned Oxc WebAssembly resolver. Framework plugins and executable project configs remain disabled. Dynamic imports, framework conventions, wildcard package exports, and TypeScript path aliases may need future managed profiles. Package import aliases (`#name`) in the selected `package.json` are supported, including exact mappings, wildcard mappings, conditions, and fallback arrays. They use the nearest package manifest and the same scan boundary as other imports: an alias cannot bypass checks against installed packages outside the snapshot inventory. Missing aliases remain normal Knip findings; unsafe targets make the dead-code check incomplete. Knip findings can be cached when complete input metadata is available, including the absence checks that protect package resolution. jscpd runs as a subprocess and receives an exact source-file list; exceptionally large workspaces can exceed the operating system argument limit and fail incomplete. Dependency Cruiser runs through its public API.
|
|
220
|
+
|
|
221
|
+
React correctness runs for React, React DOM, Ink, Next.js, and Remix. DOM accessibility runs only when inspection finds React DOM, Next.js, or Remix, so Ink terminal components do not receive browser-DOM advice. For each baseline and target workspace, React correctness calibrates version-sensitive rules from that snapshot's direct manifest declaration and, when available, an unambiguous matching record in a supported lockfile. It falls back silently to the manifest and then Zedbee's managed React 19.2 baseline; developers do not need to edit lockfiles for Zedbee. The managed plugins never use `detect` mode or load project `node_modules`. See the [React analysis policy](react-analysis.md).
|
|
222
|
+
|
|
223
|
+
Zedbee Readability Complexity is an original metric, not Sonar Cognitive Complexity, and teams migrating from Sonar must recalibrate thresholds. The built-in structural-security rules are deliberately narrower than Semgrep: they have no dataflow, taint, interfile analysis, reachability, framework packs, or live rule registry. See [the readability scoring contract](readability-complexity.md), [React analysis policy](react-analysis.md), and [structural-security coverage](structural-security-coverage.md).
|
|
224
|
+
|
|
225
|
+
Use another repository-contained JSONC file when needed:
|
|
226
|
+
|
|
227
|
+
```bash
|
|
228
|
+
npx zedbee scan --config config/zedbee.jsonc
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
## Output
|
|
232
|
+
|
|
233
|
+
```text
|
|
234
|
+
--format auto Branded Ink in a wide interactive terminal; linear ANSI-free text otherwise
|
|
235
|
+
--format ink Live Ink progress and the compact Zedbee result
|
|
236
|
+
--format text Stable human-readable output
|
|
237
|
+
--format json Versioned structured output for CI and agents
|
|
238
|
+
--format sarif SARIF 2.1.0 structured output for enterprise ingestion
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
Accessibility controls:
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
npx zedbee scan --no-color
|
|
245
|
+
npx zedbee scan --no-animations
|
|
246
|
+
NO_COLOR=1 npx zedbee scan
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
Status always includes labels or symbols in addition to color. Animated Ink scans remain visible for at least 400ms so the transition can be perceived; `--no-animations` bypasses that minimum instead of adding a delay. A configurable display delay is deferred beyond v1. Text and JSON output contain no terminal animation, delay, or logo control sequences.
|
|
250
|
+
|
|
251
|
+
Source excerpt controls:
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
npx zedbee scan --include-source
|
|
255
|
+
npx zedbee scan --no-source
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
Ordinary selected target source may be visible in interactive Ink by default to the human or agent that invoked Zedbee. Text, JSON, and SARIF source is opt-in with `--include-source` unless repository policy is `always`. Excerpts come only from the exact selected target—the Git index in index mode or committed `HEAD` in base mode; secret findings are always redacted regardless of policy or CLI override.
|
|
259
|
+
|
|
260
|
+
Redirect complete stable reports with normal shell redirection:
|
|
261
|
+
|
|
262
|
+
```bash
|
|
263
|
+
npx zedbee scan --format text > zedbee-report.txt
|
|
264
|
+
npx zedbee scan --format json > zedbee-report.json
|
|
265
|
+
npx zedbee scan --format sarif > zedbee.sarif
|
|
266
|
+
npx zedbee scan --format text --include-source > zedbee-report-with-source.txt
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
Automatic scans use branded Ink in a wide ordinary TTY. Narrow terminals, redirected output, CI, `TERM=dumb`, and screen-reader output use a linear ANSI-free result. Every automatic scan writes a complete versioned temporary JSON report, even on pass with zero findings. Its path appears in the opening and closing complete-report lines around the final result, and only after the file exists. Fixing only the visible preview is insufficient—process every finding in the complete report.
|
|
270
|
+
|
|
271
|
+
Automatic output and explicit `--format ink` show at most `reporting.terminalFindingLimit` findings; blockers appear first. Explicit Ink writes a temporary report only when its finding preview overflows. If an automatic or overflowed Ink report cannot be retained safely, Zedbee shows every finding, omits report paths and configured guidance, preserves the canonical scan outcome, and prints the fixed `REPORT UNAVAILABLE` alert at both the top and bottom. Any `REPORT DELIVERY WARNING` is a detail panel, not that fixed alert.
|
|
272
|
+
|
|
273
|
+
Explicit `--format text`, `--format json`, and `--format sarif` output remains complete, has no finding cap, and writes no sidecar. Redirect an explicit format when you need a durable saved location. SARIF is the complete, deterministically ordered enterprise export and retains Zedbee's normal exit status. See the [reporting guide](reporting.md) for the full contract, including incomplete-scan notifications, retention, and source-excerpt behavior.
|
|
274
|
+
|
|
275
|
+
For coding tools and CI, prefer `zedbee scan --format json` or `zedbee scan --format sarif` when the receiving system ingests SARIF. Both are versioned, deterministically ordered, ANSI-free, repository-relative, and include stable finding IDs, attribution evidence, incomplete states, and network disclosures. When automatic output provides a complete report path, coding tools must process that file rather than only the preview. They must respect exit code 2 as unknown/incomplete—not as a clean scan—and should never bypass the hook merely because a finding is not automatically fixable.
|
|
276
|
+
|
|
277
|
+
## Exit codes
|
|
278
|
+
|
|
279
|
+
| Code | Scan meaning | Managed-fix meaning |
|
|
280
|
+
| ---: | ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
|
|
281
|
+
| `0` | Scan completed with no blocking findings | Preview/cancel made no writes, or every approved file operation completed without an issue |
|
|
282
|
+
| `1` | Scan completed and repository policy blocked the commit | Partial completion: safe files may be applied while skipped fixes and their reasons are reported |
|
|
283
|
+
| `2` | Zedbee or an enabled check could not complete | The current staged code could not produce a trustworthy complete fix plan, so the plan was not applied |
|
|
284
|
+
|
|
285
|
+
Interrupted scans wait for execution cleanup before removing temporary snapshots and returning the platform's conventional interruption status. Unproved cleanup retains snapshots and reports the cleanup failure.
|
|
286
|
+
|
|
287
|
+
## Hooks
|
|
288
|
+
|
|
289
|
+
`zedbee init --hook auto` detects Husky, Lefthook, simple-git-hooks, or raw Git hooks. It preserves unrelated commands, shows exact before/after hashes and diffs, refuses symlink targets, writes atomically, and rolls back earlier writes if a later write fails. Linked worktrees resolve the real Git hook path instead of assuming `.git` is a directory.
|
|
290
|
+
|
|
291
|
+
Generated hooks run `npx --no-install zedbee scan`. This prevents an unexpected network download during a commit, but it means Zedbee must remain installed in the project. Run `zedbee init` again to preview an idempotent update; an existing Zedbee invocation is not duplicated.
|
|
292
|
+
|
|
293
|
+
## Cache and performance
|
|
294
|
+
|
|
295
|
+
Zedbee may cache content-addressed, normalized observations for audited local analyzers. Cache keys include source mode, the exact baseline and target identity, snapshot inventories, policy, workspace/config inputs, installed engine package identities, and runtime platform. TypeScript and lint capture their dependency files and resolution state; Knip captures its permitted snapshot inputs and package-absence guards. These inputs are checked again before saved findings are reused. Incomplete metadata prevents saving or reusing a result, and unknown checks default to uncached. Missing engine package metadata, cache failures, and corruption are misses and never reduce coverage. Source, raw analyzer output, Secretlint observations, OSV results, secrets, and online response bodies are never stored in the observation cache. Cached and uncached reports are required to remain semantically identical.
|
|
296
|
+
|
|
297
|
+
Scan time depends on project size, enabled checks, baseline comparison, and validated cache reuse. A running service does not mean every analyzer remains loaded: some engines retire after a session or snapshot side. These lifecycle choices do not guarantee faster scans. See [safe analyzer diagnostics](reporting.md#safe-analyzer-diagnostics) to investigate a slow or incomplete job.
|
|
298
|
+
|
|
299
|
+
## Current coverage
|
|
300
|
+
|
|
301
|
+
The managed suite currently includes:
|
|
302
|
+
|
|
303
|
+
1. Prettier formatting, ESLint and typescript-eslint lint, TypeScript diagnostics, both complexity metrics, original ast-grep security checks, React correctness, and React DOM accessibility.
|
|
304
|
+
2. jscpd duplication, Dependency Cruiser architecture validation, and Knip dead-code/package-hygiene analysis across npm, pnpm, Yarn, and Bun workspaces.
|
|
305
|
+
3. Exact index or committed snapshots, baseline comparison, changed-range and syntax-entity attribution, stable text/JSON output, and the live Ink progress display.
|
|
306
|
+
4. Direct Secretlint scanning with irreversible redaction, plus the bounded Zedbee OSV API client for disclosed online vulnerability comparison.
|
|
307
|
+
|
|
308
|
+
Optional Semgrep is not part of the v1 managed suite and is not silently approximated by the current structural rules. Online vulnerability scanning sends package names, exact versions, and the npm ecosystem identifier to `api.osv.dev`; source code and file hashes are not sent. There is no offline database mode. Choose whether an OSV outage blocks or warns with `checks.vulnerabilities.onUnavailable` or guided `zedbee init`.
|
|
309
|
+
|
|
310
|
+
See [the complete check matrix](checks.md), [support matrix](support.md), [privacy and data handling](privacy.md), and [security policy](../SECURITY.md).
|
|
311
|
+
|
|
312
|
+
## Troubleshooting
|
|
313
|
+
|
|
314
|
+
- Run `npx zedbee doctor` first; JSON mode is useful when sharing sanitized diagnostics.
|
|
315
|
+
- Exit code 2 means a required result is incomplete. Resolve the diagnostic rather than treating it as a pass.
|
|
316
|
+
- For a snapshot cleanup failure, resolve the reported execution/cleanup problem before removing retained snapshots. Inspect the exact listed Zedbee temporary directory when one is safely validated. If no path is listed, inspect the OS temporary directory for stale `zedbee-snapshot-*` directories. Correct temporary-directory permissions, locks, or filesystem problems before retrying; persistent problems can leave additional snapshots on later scans.
|
|
317
|
+
- Typed lint checks unchanged workspace source files too, using each snapshot's contained TypeScript projects. In each snapshot, every TypeScript file selected for typed lint must belong to at least one loaded project. Updating only the selected target configuration may leave the baseline snapshot uncovered.
|
|
318
|
+
- For files intentionally outside every TypeScript project, a file override can set `checks.lint.typeInformation` to `"when-available"`. Zedbee then runs basic TypeScript lint without rules that require type information. The default is `"required"`; Zedbee never reduces coverage silently.
|
|
319
|
+
- Intent-to-add entries are excluded from index mode as unstaged. Git LFS pointers, submodule pointers, and binary inputs selected by enabled text/source checks remain incomplete in either source mode with every affected path reported; use `pathExclusions` to intentionally suppress paths for specific checks.
|
|
320
|
+
- OSV connectivity failures follow `checks.vulnerabilities.onUnavailable`: `block` fails closed, while `warn` reports the incomplete check and permits the commit if nothing else blocks.
|
|
321
|
+
- If a hook cannot find Zedbee, restore the project-local dev dependency; generated hooks deliberately use `npx --no-install`.
|
|
322
|
+
- pnpm and modern Yarn lockfiles that use YAML alias references (including anchor-based reuse) make vulnerability analysis incomplete. Zedbee deliberately disables alias expansion to keep lockfile parsing bounded. Regenerate the lockfile with the package manager rather than hand-authoring reusable YAML nodes.
|
|
323
|
+
- If a repository commits a package beneath `node_modules` and source code imports it, managed Knip analysis is incomplete. Zedbee refuses to let snapshot-controlled packages participate in analyzer module resolution; remove the committed package and restore dependencies through the package manager and lockfile.
|
|
324
|
+
- Very large jscpd source lists can exceed the operating system argument limit, and framework-heavy Knip projects may need future managed profiles. Both cases are reported rather than silently skipped.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Licensing and Commercial Use
|
|
2
|
+
|
|
3
|
+
Zedbee's source and core npm package use the PolyForm Small Business License 1.0.0. The complete controlling terms are in [`LICENSE`](../LICENSE). This guide explains the package layout; it is not legal advice and does not replace review by qualified counsel.
|
|
4
|
+
|
|
5
|
+
## Zedbee license
|
|
6
|
+
|
|
7
|
+
PolyForm Small Business is source-available, not an OSI-approved open-source license. Its permitted purposes and small-business conditions are defined by the license itself. A user whose use falls outside those permissions needs separate terms from the Zedbee licensor. The project owner may offer a separate commercial license without relicensing third-party components.
|
|
8
|
+
|
|
9
|
+
The package license identifier is `PolyForm-Small-Business-1.0.0`, and the packed core includes the full PolyForm terms. Third-party licenses do not replace the license for Zedbee's own code.
|
|
10
|
+
|
|
11
|
+
## Requesting a commercial license
|
|
12
|
+
|
|
13
|
+
To discuss use outside the PolyForm Small Business permissions, email [licensing@zedbee.dev](mailto:licensing@zedbee.dev). In the initial message, include your name, organization, a short description of the intended use, whether Zedbee will be used internally or distributed, and an approximate organization size. Do not send proprietary source code, credentials, or other sensitive material.
|
|
14
|
+
|
|
15
|
+
The project owner will confirm whether separate terms are needed and explain the next steps. Sending an inquiry does not change the license that currently applies.
|
|
16
|
+
|
|
17
|
+
## Analyzer libraries and npm dependencies
|
|
18
|
+
|
|
19
|
+
Third-party npm packages keep their own licenses. In particular:
|
|
20
|
+
|
|
21
|
+
- Secretlint 13.0.5 and its recommended preset are installed as npm dependencies under MIT terms.
|
|
22
|
+
- The lockfile parsers and other analyzer dependencies retain the exact licenses recorded in `licenses/production-inventory.json` and `THIRD_PARTY_NOTICES.md`.
|
|
23
|
+
|
|
24
|
+
Zedbee does not redistribute Gitleaks or OSV-Scanner executables. The bounded OSV API client is Zedbee's own code and is covered by Zedbee's PolyForm Small Business terms; the remote OSV service is contacted but not distributed. The core package ships its reviewed production dependency inventory and third-party notices.
|
|
25
|
+
|
|
26
|
+
Zedbee's production dependency gate rejects unknown or unapproved license expressions. It accepts reviewed permissive terms and reviewed exceptions, including MPL-2.0 for the unmodified axe-core dependency. Those exceptions retain their separate obligations; see [dependency license obligations](dependency-license-obligations.md). This engineering control reduces accidental license drift but is not a legal opinion.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Dependency license obligations
|
|
2
|
+
|
|
3
|
+
Zedbee's release license inventory is exact-version and fail-closed. Most
|
|
4
|
+
dependencies use permissive licenses. Two production dependencies require
|
|
5
|
+
additional reviewed notices:
|
|
6
|
+
|
|
7
|
+
- `axe-core@4.13.0` is MPL-2.0. Zedbee distributes it unmodified and preserves
|
|
8
|
+
the exact upstream source link. MPL's file-level terms apply to covered
|
|
9
|
+
axe-core files; they do not relicense Zedbee's separately licensed code.
|
|
10
|
+
- `caniuse-lite@1.0.30001809` is CC-BY-4.0. Notices preserve the creator and
|
|
11
|
+
material attribution, source and license links, and record that no changes
|
|
12
|
+
were made.
|
|
13
|
+
|
|
14
|
+
Release verification rejects either dependency when its exact reviewed
|
|
15
|
+
obligation record is missing or stale. This compliance record is engineering
|
|
16
|
+
documentation, not legal advice.
|