zedbee 0.1.0-beta.14 → 0.1.0-beta.16
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/THIRD_PARTY_NOTICES.md +2 -0
- package/dist/attribution/pair-locations.d.ts.map +1 -1
- package/dist/attribution/pair-locations.js +20 -10
- package/dist/attribution/pair-locations.js.map +1 -1
- package/dist/cache/store.d.ts +1 -0
- package/dist/cache/store.d.ts.map +1 -1
- package/dist/cache/store.js +2 -0
- package/dist/cache/store.js.map +1 -1
- package/dist/checks/adapter.d.ts +3 -0
- package/dist/checks/adapter.d.ts.map +1 -1
- package/dist/checks/applicability.d.ts.map +1 -1
- package/dist/checks/applicability.js +43 -9
- package/dist/checks/applicability.js.map +1 -1
- package/dist/checks/comparison-context.d.ts +26 -0
- package/dist/checks/comparison-context.d.ts.map +1 -0
- package/dist/checks/comparison-context.js +187 -0
- package/dist/checks/comparison-context.js.map +1 -0
- package/dist/checks/compiler-inputs.d.ts +6 -6
- package/dist/checks/compiler-inputs.d.ts.map +1 -1
- package/dist/checks/compiler-inputs.js +88 -6
- package/dist/checks/compiler-inputs.js.map +1 -1
- package/dist/checks/diagnostic-details.d.ts +28 -0
- package/dist/checks/diagnostic-details.d.ts.map +1 -0
- package/dist/checks/diagnostic-details.js +410 -0
- package/dist/checks/diagnostic-details.js.map +1 -0
- package/dist/checks/dispatch-cache.d.ts.map +1 -1
- package/dist/checks/dispatch-cache.js +64 -5
- package/dist/checks/dispatch-cache.js.map +1 -1
- package/dist/checks/dispatch-target.d.ts.map +1 -1
- package/dist/checks/dispatch-target.js +6 -0
- package/dist/checks/dispatch-target.js.map +1 -1
- package/dist/checks/dispatcher.d.ts +9 -0
- package/dist/checks/dispatcher.d.ts.map +1 -1
- package/dist/checks/dispatcher.js +51 -18
- package/dist/checks/dispatcher.js.map +1 -1
- package/dist/checks/duplication/adapter.d.ts.map +1 -1
- package/dist/checks/duplication/adapter.js +2 -5
- package/dist/checks/duplication/adapter.js.map +1 -1
- package/dist/checks/duplication/input-paths.d.ts +10 -0
- package/dist/checks/duplication/input-paths.d.ts.map +1 -0
- package/dist/checks/duplication/input-paths.js +45 -0
- package/dist/checks/duplication/input-paths.js.map +1 -0
- package/dist/checks/engine-identity.d.ts.map +1 -1
- package/dist/checks/engine-identity.js +5 -4
- package/dist/checks/engine-identity.js.map +1 -1
- package/dist/checks/eslint/convert-message.d.ts.map +1 -1
- package/dist/checks/eslint/convert-message.js +4 -1
- package/dist/checks/eslint/convert-message.js.map +1 -1
- package/dist/checks/eslint/lint-adapter.d.ts.map +1 -1
- package/dist/checks/eslint/lint-adapter.js +12 -3
- package/dist/checks/eslint/lint-adapter.js.map +1 -1
- package/dist/checks/eslint/managed-config.d.ts +3 -0
- package/dist/checks/eslint/managed-config.d.ts.map +1 -1
- package/dist/checks/eslint/managed-config.js +18 -3
- package/dist/checks/eslint/managed-config.js.map +1 -1
- package/dist/checks/eslint/project/adapter.d.ts +3 -0
- package/dist/checks/eslint/project/adapter.d.ts.map +1 -0
- package/dist/checks/eslint/project/adapter.js +143 -0
- package/dist/checks/eslint/project/adapter.js.map +1 -0
- package/dist/checks/eslint/project/diagnostics.d.ts +15 -0
- package/dist/checks/eslint/project/diagnostics.d.ts.map +1 -0
- package/dist/checks/eslint/project/diagnostics.js +38 -0
- package/dist/checks/eslint/project/diagnostics.js.map +1 -0
- package/dist/checks/eslint/project/engine.d.ts +5 -0
- package/dist/checks/eslint/project/engine.d.ts.map +1 -0
- package/dist/checks/eslint/project/engine.js +207 -0
- package/dist/checks/eslint/project/engine.js.map +1 -0
- package/dist/checks/eslint/project/installation.d.ts +3 -0
- package/dist/checks/eslint/project/installation.d.ts.map +1 -0
- package/dist/checks/eslint/project/installation.js +118 -0
- package/dist/checks/eslint/project/installation.js.map +1 -0
- package/dist/checks/eslint/project/protocol.d.ts +6 -0
- package/dist/checks/eslint/project/protocol.d.ts.map +1 -0
- package/dist/checks/eslint/project/protocol.js +90 -0
- package/dist/checks/eslint/project/protocol.js.map +1 -0
- package/dist/checks/eslint/project/trust.d.ts +18 -0
- package/dist/checks/eslint/project/trust.d.ts.map +1 -0
- package/dist/checks/eslint/project/trust.js +93 -0
- package/dist/checks/eslint/project/trust.js.map +1 -0
- package/dist/checks/eslint/project/types.d.ts +53 -0
- package/dist/checks/eslint/project/types.d.ts.map +1 -0
- package/dist/checks/eslint/project/types.js +24 -0
- package/dist/checks/eslint/project/types.js.map +1 -0
- package/dist/checks/eslint/project/worker.d.ts +2 -0
- package/dist/checks/eslint/project/worker.d.ts.map +1 -0
- package/dist/checks/eslint/project/worker.js +89 -0
- package/dist/checks/eslint/project/worker.js.map +1 -0
- package/dist/checks/eslint/project/workspace.d.ts +7 -0
- package/dist/checks/eslint/project/workspace.d.ts.map +1 -0
- package/dist/checks/eslint/project/workspace.js +100 -0
- package/dist/checks/eslint/project/workspace.js.map +1 -0
- package/dist/checks/eslint/rule-settings.d.ts.map +1 -1
- package/dist/checks/eslint/rule-settings.js +2 -2
- package/dist/checks/eslint/rule-settings.js.map +1 -1
- package/dist/checks/observation-result.d.ts.map +1 -1
- package/dist/checks/observation-result.js +20 -2
- package/dist/checks/observation-result.js.map +1 -1
- package/dist/checks/policy-scheduling.d.ts +3 -5
- package/dist/checks/policy-scheduling.d.ts.map +1 -1
- package/dist/checks/policy-scheduling.js +15 -6
- package/dist/checks/policy-scheduling.js.map +1 -1
- package/dist/checks/prettier/settings.d.ts +2 -2
- package/dist/checks/project-inputs.d.ts.map +1 -1
- package/dist/checks/project-inputs.js +4 -13
- package/dist/checks/project-inputs.js.map +1 -1
- package/dist/checks/react/accessibility-settings.d.ts +14 -0
- package/dist/checks/react/accessibility-settings.d.ts.map +1 -0
- package/dist/checks/react/accessibility-settings.js +37 -0
- package/dist/checks/react/accessibility-settings.js.map +1 -0
- package/dist/checks/react/adapter.d.ts.map +1 -1
- package/dist/checks/react/adapter.js +3 -0
- package/dist/checks/react/adapter.js.map +1 -1
- package/dist/checks/react/config.d.ts +2 -1
- package/dist/checks/react/config.d.ts.map +1 -1
- package/dist/checks/react/config.js +9 -3
- package/dist/checks/react/config.js.map +1 -1
- package/dist/checks/react/managed-accessibility-plugin.d.ts +21 -0
- package/dist/checks/react/managed-accessibility-plugin.d.ts.map +1 -0
- package/dist/checks/react/managed-accessibility-plugin.js +83 -0
- package/dist/checks/react/managed-accessibility-plugin.js.map +1 -0
- package/dist/checks/react/managed-hooks-identity.d.ts +3 -0
- package/dist/checks/react/managed-hooks-identity.d.ts.map +1 -0
- package/dist/checks/react/managed-hooks-identity.js +4 -0
- package/dist/checks/react/managed-hooks-identity.js.map +1 -0
- package/dist/checks/react/managed-hooks-plugin.d.ts +5 -0
- package/dist/checks/react/managed-hooks-plugin.d.ts.map +1 -0
- package/dist/checks/react/managed-hooks-plugin.js +45 -0
- package/dist/checks/react/managed-hooks-plugin.js.map +1 -0
- package/dist/checks/runner/executor.d.ts +2 -0
- package/dist/checks/runner/executor.d.ts.map +1 -1
- package/dist/checks/runner/executor.js +16 -0
- package/dist/checks/runner/executor.js.map +1 -1
- package/dist/checks/runner/protocol.d.ts.map +1 -1
- package/dist/checks/runner/protocol.js +8 -0
- package/dist/checks/runner/protocol.js.map +1 -1
- package/dist/checks/runner/run-job.d.ts +1 -0
- package/dist/checks/runner/run-job.d.ts.map +1 -1
- package/dist/checks/runner/run-job.js +8 -1
- package/dist/checks/runner/run-job.js.map +1 -1
- package/dist/checks/runner/worker-slot.d.ts.map +1 -1
- package/dist/checks/runner/worker-slot.js +17 -1
- package/dist/checks/runner/worker-slot.js.map +1 -1
- package/dist/checks/runner/worker.js +4 -1
- package/dist/checks/runner/worker.js.map +1 -1
- package/dist/checks/sanitize-result.d.ts +4 -0
- package/dist/checks/sanitize-result.d.ts.map +1 -1
- package/dist/checks/sanitize-result.js +45 -0
- package/dist/checks/sanitize-result.js.map +1 -1
- package/dist/checks/secrets/content.d.ts.map +1 -1
- package/dist/checks/secrets/content.js +24 -9
- package/dist/checks/secrets/content.js.map +1 -1
- package/dist/checks/secrets/normalize.js +1 -1
- package/dist/checks/secrets/normalize.js.map +1 -1
- package/dist/checks/typescript/adapter.d.ts.map +1 -1
- package/dist/checks/typescript/adapter.js +6 -2
- package/dist/checks/typescript/adapter.js.map +1 -1
- package/dist/checks/typescript/compiler-host.d.ts +2 -0
- package/dist/checks/typescript/compiler-host.d.ts.map +1 -1
- package/dist/checks/typescript/compiler-host.js +2 -0
- package/dist/checks/typescript/compiler-host.js.map +1 -1
- package/dist/checks/typescript/compiler-options-provenance.d.ts +4 -0
- package/dist/checks/typescript/compiler-options-provenance.d.ts.map +1 -0
- package/dist/checks/typescript/compiler-options-provenance.js +13 -0
- package/dist/checks/typescript/compiler-options-provenance.js.map +1 -0
- package/dist/checks/typescript/configuration-paths.d.ts +8 -1
- package/dist/checks/typescript/configuration-paths.d.ts.map +1 -1
- package/dist/checks/typescript/configuration-paths.js +53 -13
- package/dist/checks/typescript/configuration-paths.js.map +1 -1
- package/dist/checks/typescript/convert-diagnostic.d.ts.map +1 -1
- package/dist/checks/typescript/convert-diagnostic.js +4 -1
- package/dist/checks/typescript/convert-diagnostic.js.map +1 -1
- package/dist/checks/typescript/project-coverage.d.ts.map +1 -1
- package/dist/checks/typescript/project-coverage.js +19 -2
- package/dist/checks/typescript/project-coverage.js.map +1 -1
- package/dist/checks/typescript/projects.d.ts +2 -1
- package/dist/checks/typescript/projects.d.ts.map +1 -1
- package/dist/checks/typescript/projects.js +3 -2
- package/dist/checks/typescript/projects.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +22 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/checks.d.ts.map +1 -1
- package/dist/commands/checks.js +12 -5
- package/dist/commands/checks.js.map +1 -1
- package/dist/commands/init.d.ts +4 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +13 -0
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/scan.d.ts +2 -1
- package/dist/commands/scan.d.ts.map +1 -1
- package/dist/commands/scan.js +6 -0
- package/dist/commands/scan.js.map +1 -1
- package/dist/config/immutable-configuration.d.ts +2 -0
- package/dist/config/immutable-configuration.d.ts.map +1 -0
- package/dist/config/immutable-configuration.js +81 -0
- package/dist/config/immutable-configuration.js.map +1 -0
- package/dist/config/load-config.d.ts.map +1 -1
- package/dist/config/load-config.js +8 -1
- package/dist/config/load-config.js.map +1 -1
- package/dist/config/profiles.d.ts.map +1 -1
- package/dist/config/profiles.js +24 -3
- package/dist/config/profiles.js.map +1 -1
- package/dist/config/schema.d.ts +115 -9
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +31 -2
- package/dist/config/schema.js.map +1 -1
- package/dist/config/settings-registry.d.ts +3 -1
- package/dist/config/settings-registry.d.ts.map +1 -1
- package/dist/config/settings-registry.js +7 -79
- package/dist/config/settings-registry.js.map +1 -1
- package/dist/config/target-policy.d.ts +4 -1
- package/dist/config/target-policy.d.ts.map +1 -1
- package/dist/config/target-policy.js +96 -0
- package/dist/config/target-policy.js.map +1 -1
- package/dist/core/types.d.ts +15 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/diagnostics/scan-performance.d.ts +50 -0
- package/dist/diagnostics/scan-performance.d.ts.map +1 -0
- package/dist/diagnostics/scan-performance.js +153 -0
- package/dist/diagnostics/scan-performance.js.map +1 -0
- package/dist/doctor/diagnostics.d.ts +2 -1
- package/dist/doctor/diagnostics.d.ts.map +1 -1
- package/dist/doctor/diagnostics.js +5 -0
- package/dist/doctor/diagnostics.js.map +1 -1
- package/dist/doctor/project-eslint.d.ts +4 -0
- package/dist/doctor/project-eslint.d.ts.map +1 -0
- package/dist/doctor/project-eslint.js +98 -0
- package/dist/doctor/project-eslint.js.map +1 -0
- package/dist/hooks/command.d.ts.map +1 -1
- package/dist/hooks/command.js +2 -4
- package/dist/hooks/command.js.map +1 -1
- package/dist/hooks/husky.d.ts.map +1 -1
- package/dist/hooks/husky.js +7 -1
- package/dist/hooks/husky.js.map +1 -1
- package/dist/hooks/install.d.ts.map +1 -1
- package/dist/hooks/install.js +5 -0
- package/dist/hooks/install.js.map +1 -1
- package/dist/hooks/installed-command.d.ts +11 -0
- package/dist/hooks/installed-command.d.ts.map +1 -0
- package/dist/hooks/installed-command.js +36 -0
- package/dist/hooks/installed-command.js.map +1 -0
- package/dist/init/eslint-setup.d.ts +16 -0
- package/dist/init/eslint-setup.d.ts.map +1 -0
- package/dist/init/eslint-setup.js +98 -0
- package/dist/init/eslint-setup.js.map +1 -0
- package/dist/init/presentation.d.ts +9 -2
- package/dist/init/presentation.d.ts.map +1 -1
- package/dist/init/presentation.js +20 -0
- package/dist/init/presentation.js.map +1 -1
- package/dist/init/recommend.d.ts.map +1 -1
- package/dist/init/recommend.js +28 -0
- package/dist/init/recommend.js.map +1 -1
- package/dist/init/selection-policy.d.ts +4 -0
- package/dist/init/selection-policy.d.ts.map +1 -1
- package/dist/init/selection-policy.js +17 -0
- package/dist/init/selection-policy.js.map +1 -1
- package/dist/init/types.d.ts +14 -0
- package/dist/init/types.d.ts.map +1 -1
- package/dist/init/write-config.d.ts.map +1 -1
- package/dist/init/write-config.js +34 -0
- package/dist/init/write-config.js.map +1 -1
- package/dist/policy/evaluate.d.ts.map +1 -1
- package/dist/policy/evaluate.js +19 -4
- package/dist/policy/evaluate.js.map +1 -1
- package/dist/renderers/json.d.ts.map +1 -1
- package/dist/renderers/json.js +21 -0
- package/dist/renderers/json.js.map +1 -1
- package/dist/renderers/text.d.ts.map +1 -1
- package/dist/renderers/text.js +41 -7
- package/dist/renderers/text.js.map +1 -1
- package/dist/reporting/agent-guidance.d.ts +1 -0
- package/dist/reporting/agent-guidance.d.ts.map +1 -1
- package/dist/reporting/agent-guidance.js +25 -0
- package/dist/reporting/agent-guidance.js.map +1 -1
- package/dist/reporting/check-coverage.d.ts +9 -0
- package/dist/reporting/check-coverage.d.ts.map +1 -0
- package/dist/reporting/check-coverage.js +38 -0
- package/dist/reporting/check-coverage.js.map +1 -0
- package/dist/reporting/fix-presentation.d.ts +1 -1
- package/dist/reporting/project-eslint-notices.d.ts +3 -0
- package/dist/reporting/project-eslint-notices.d.ts.map +1 -0
- package/dist/reporting/project-eslint-notices.js +9 -0
- package/dist/reporting/project-eslint-notices.js.map +1 -0
- package/dist/reporting/report-callouts.d.ts +2 -2
- package/dist/reporting/report-callouts.d.ts.map +1 -1
- package/dist/reporting/report-callouts.js +6 -2
- package/dist/reporting/report-callouts.js.map +1 -1
- package/dist/reporting/source-identity.d.ts +1 -0
- package/dist/reporting/source-identity.d.ts.map +1 -1
- package/dist/reporting/source-identity.js +6 -0
- package/dist/reporting/source-identity.js.map +1 -1
- package/dist/scan/analysis-session.d.ts +3 -0
- package/dist/scan/analysis-session.d.ts.map +1 -1
- package/dist/scan/analysis-session.js +53 -17
- package/dist/scan/analysis-session.js.map +1 -1
- package/dist/scan/change-summary.d.ts +9 -0
- package/dist/scan/change-summary.d.ts.map +1 -0
- package/dist/scan/change-summary.js +7 -0
- package/dist/scan/change-summary.js.map +1 -0
- package/dist/scan/incomplete-report.d.ts +2 -0
- package/dist/scan/incomplete-report.d.ts.map +1 -1
- package/dist/scan/incomplete-report.js +3 -0
- package/dist/scan/incomplete-report.js.map +1 -1
- package/dist/scan/merge-scan.d.ts.map +1 -1
- package/dist/scan/merge-scan.js +2 -1
- package/dist/scan/merge-scan.js.map +1 -1
- package/dist/scan/report.d.ts +2 -0
- package/dist/scan/report.d.ts.map +1 -1
- package/dist/scan/run-scan.d.ts +3 -0
- package/dist/scan/run-scan.d.ts.map +1 -1
- package/dist/scan/run-scan.js +57 -3
- package/dist/scan/run-scan.js.map +1 -1
- package/dist/scan/source-excerpts.d.ts.map +1 -1
- package/dist/scan/source-excerpts.js +7 -0
- package/dist/scan/source-excerpts.js.map +1 -1
- package/dist/service/client-connection.js +1 -1
- package/dist/service/client-connection.js.map +1 -1
- package/dist/service/client-executor.d.ts.map +1 -1
- package/dist/service/client-executor.js +35 -2
- package/dist/service/client-executor.js.map +1 -1
- package/dist/service/server-connection.d.ts.map +1 -1
- package/dist/service/server-connection.js +11 -2
- package/dist/service/server-connection.js.map +1 -1
- package/dist/telemetry/client.d.ts +5 -1
- package/dist/telemetry/client.d.ts.map +1 -1
- package/dist/telemetry/client.js +20 -3
- package/dist/telemetry/client.js.map +1 -1
- package/dist/telemetry/details-store.d.ts +8 -4
- package/dist/telemetry/details-store.d.ts.map +1 -1
- package/dist/telemetry/details-store.js +28 -5
- package/dist/telemetry/details-store.js.map +1 -1
- package/dist/telemetry/performance-summary.d.ts +7 -0
- package/dist/telemetry/performance-summary.d.ts.map +1 -0
- package/dist/telemetry/performance-summary.js +49 -0
- package/dist/telemetry/performance-summary.js.map +1 -0
- package/dist/telemetry/schema.d.ts +792 -145
- package/dist/telemetry/schema.d.ts.map +1 -1
- package/dist/telemetry/schema.js +78 -0
- package/dist/telemetry/schema.js.map +1 -1
- package/dist/telemetry/state.d.ts +12 -12
- package/dist/ui/branded-command-frame.d.ts.map +1 -1
- package/dist/ui/branded-command-frame.js +8 -3
- package/dist/ui/branded-command-frame.js.map +1 -1
- package/dist/ui/init-app.d.ts.map +1 -1
- package/dist/ui/init-app.js +41 -1
- package/dist/ui/init-app.js.map +1 -1
- package/dist/ui/init-view.d.ts.map +1 -1
- package/dist/ui/init-view.js +14 -4
- package/dist/ui/init-view.js.map +1 -1
- package/dist/ui/live-dashboard.d.ts.map +1 -1
- package/dist/ui/live-dashboard.js +10 -3
- package/dist/ui/live-dashboard.js.map +1 -1
- package/dist/ui/outcome-strip.d.ts.map +1 -1
- package/dist/ui/outcome-strip.js +7 -3
- package/dist/ui/outcome-strip.js.map +1 -1
- package/dist/ui/pixel-wordmark.d.ts +2 -1
- package/dist/ui/pixel-wordmark.d.ts.map +1 -1
- package/dist/ui/pixel-wordmark.js +3 -1
- package/dist/ui/pixel-wordmark.js.map +1 -1
- package/dist/ui/scan-app.d.ts.map +1 -1
- package/dist/ui/scan-app.js +2 -1
- package/dist/ui/scan-app.js.map +1 -1
- package/dist/ui/scan-result-dashboard.d.ts.map +1 -1
- package/dist/ui/scan-result-dashboard.js +11 -10
- package/dist/ui/scan-result-dashboard.js.map +1 -1
- package/dist/vendor/react-hooks/7.1.1/LICENSE +21 -0
- package/dist/vendor/react-hooks/7.1.1/development.cjs +55824 -0
- package/dist/vendor/react-hooks/7.1.1/index.cjs +2 -0
- package/dist/vendor/react-hooks/7.1.1/production.cjs +55649 -0
- package/dist/vendor/react-hooks/7.1.1/provenance.json +26 -0
- package/docs/checks.md +164 -9
- package/docs/cli-reference.md +56 -4
- package/docs/privacy.md +18 -1
- package/docs/react-analysis.md +66 -0
- package/docs/reporting.md +17 -0
- package/docs/support.md +23 -0
- package/package.json +8 -2
- package/plugins/swarm/references/scan.md +2 -0
- package/schema/zedbee.schema.json +134 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "7.1.1",
|
|
3
|
+
"revision": "effect-timing-v1",
|
|
4
|
+
"referenceCommits": [
|
|
5
|
+
"d083ec1da1e5252abd3ddfdde6dfbc09701a2c51"
|
|
6
|
+
],
|
|
7
|
+
"inputs": {
|
|
8
|
+
"development": {
|
|
9
|
+
"sha256": "d401e94560ab2660e40fe59a3408828b96d78e9929a22358386aa51acbe32e2b",
|
|
10
|
+
"regionSha256": "8e08df3504be2f1cc809bc5adba5668af338e95da9cf71d8da0cd6df682b6047"
|
|
11
|
+
},
|
|
12
|
+
"production": {
|
|
13
|
+
"sha256": "0804a982675cb73e81b870e29ec3ddcbba959ed722afc2cc42ad14d4a99cd27a",
|
|
14
|
+
"regionSha256": "8e08df3504be2f1cc809bc5adba5668af338e95da9cf71d8da0cd6df682b6047"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"licenseSha256": "da6d3703ed11cbe42bd212c725957c98da23cbff1998c05fa4b3d976d1a58e93",
|
|
18
|
+
"integrity": "sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==",
|
|
19
|
+
"analysisSha256": "7f63292231ae069cb3381182e72fa6f3d4f3cc44d00e2d64094edcc2a6353e12",
|
|
20
|
+
"files": {
|
|
21
|
+
"development.cjs": "0a5b751225380d1b65ca8fe25c44af4b25125a88b1fca284d9650eae2f4e4175",
|
|
22
|
+
"production.cjs": "6b88f6e0777a4a03e2b8667c4550d780bd01dd6e471b608f6e06b260314ad8a4",
|
|
23
|
+
"index.cjs": "983808bd4288084de6223487308109b9447ada19ab81ab7782c8dc72e42c11ab",
|
|
24
|
+
"LICENSE": "da6d3703ed11cbe42bd212c725957c98da23cbff1998c05fa4b3d976d1a58e93"
|
|
25
|
+
}
|
|
26
|
+
}
|
package/docs/checks.md
CHANGED
|
@@ -11,6 +11,32 @@ for investigating incomplete analyzer jobs.
|
|
|
11
11
|
|
|
12
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
13
|
|
|
14
|
+
Check selection uses the selected baseline and target snapshots before starting
|
|
15
|
+
analyzer workers. An eligible scan with no analyzer jobs still validates its
|
|
16
|
+
configuration and selected inputs, reports the real changed-file count and
|
|
17
|
+
skipped checks, and avoids opening an analyzer session or capturing source for
|
|
18
|
+
analysis. Skipped checks have not analyzed and passed their inputs.
|
|
19
|
+
|
|
20
|
+
With the recommended profile, ordinary files, default managed formatting and
|
|
21
|
+
`when: "relevant"`, the following changes select these checks:
|
|
22
|
+
|
|
23
|
+
| Selected changes | Analyzer jobs |
|
|
24
|
+
| --------------------------------------------------------------- | ---------------------- |
|
|
25
|
+
| Python edits | Secrets |
|
|
26
|
+
| `.gitignore` edit plus removal of a Markdown file from tracking | Secrets |
|
|
27
|
+
| Markdown deletion only | None |
|
|
28
|
+
| Markdown edit | Formatting and secrets |
|
|
29
|
+
|
|
30
|
+
Secrets is language-independent: a new secret in Python, Markdown or
|
|
31
|
+
`.gitignore` remains eligible. Deleted files have no target text to scan. A
|
|
32
|
+
secrets-only scan captures changed target files and their baseline counterparts,
|
|
33
|
+
including previous rename paths, rather than unrelated workspace source.
|
|
34
|
+
Profiles, overrides, exclusions and explicit `always` timing can change the
|
|
35
|
+
selected checks. Project Prettier support is determined within the explicitly
|
|
36
|
+
trusted formatter boundary, including its plugins, so an unfamiliar extension
|
|
37
|
+
does not by itself rule out formatting. Ignore-file edits do not expand
|
|
38
|
+
formatting to every unchanged file.
|
|
39
|
+
|
|
14
40
|
| Check ID | Coverage | Scope and attribution | Important limitation |
|
|
15
41
|
| ------------------------ | ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------- |
|
|
16
42
|
| `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 |
|
|
@@ -24,7 +50,7 @@ Zedbee owns the analyzer versions and inert configuration used by every v1 check
|
|
|
24
50
|
| `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
51
|
| `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 framework conventions can require future managed profiles |
|
|
26
52
|
| `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` |
|
|
53
|
+
| `reactAccessibility` | Static JSX accessibility checks | Runs only for React DOM, Next.js, and Remix—not Ink terminal UI | Static JSX rules cannot prove runtime accessibility |
|
|
28
54
|
| `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
55
|
|
|
30
56
|
## Incomplete staged inputs
|
|
@@ -37,16 +63,30 @@ Complete JSON, text, and SARIF exports report every attributed finding. Automati
|
|
|
37
63
|
|
|
38
64
|
## TypeScript diagnostics
|
|
39
65
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
66
|
+
`types` and typed `lint` inspect changed paths against source and configuration
|
|
67
|
+
metadata from both selected snapshots. Ordinary Python, documentation and
|
|
68
|
+
`.gitignore` changes do not select compiler jobs when that metadata establishes
|
|
69
|
+
that they are unrelated. JavaScript/TypeScript source, deletions and renames,
|
|
70
|
+
JSON/JSONC data, manifests, lockfiles and compiler configuration remain relevant.
|
|
71
|
+
A contained inherited configuration is relevant even with an unusual filename
|
|
72
|
+
such as `compiler.md`. Known source/configuration membership takes precedence
|
|
73
|
+
over the filename extension. Unknown inputs and incomplete configuration
|
|
74
|
+
metadata conservatively retain analysis; policy configuration edits may also
|
|
75
|
+
select compiler jobs even when only reporting settings changed.
|
|
76
|
+
|
|
77
|
+
When a possible compiler input changes, both checks still conservatively check
|
|
78
|
+
every discovered workspace containing TypeScript sources, including unchanged
|
|
79
|
+
consumers and sibling workspaces. Both compare findings across the project,
|
|
80
|
+
including unchanged files. Existing
|
|
44
81
|
baseline findings remain non-blocking when unchanged source moves or is renamed.
|
|
45
|
-
File policies still control which lint findings are enabled.
|
|
46
|
-
|
|
82
|
+
File policies still control which lint findings are enabled. `when: "always"`
|
|
83
|
+
retains full project comparison for a nonempty changeset even when its changed
|
|
84
|
+
paths would otherwise be unrelated. Other analyzers retain their own input
|
|
85
|
+
scope rules.
|
|
47
86
|
|
|
48
87
|
Types and typed lint share project discovery and validated compiler inputs within
|
|
49
|
-
an analysis session
|
|
88
|
+
an analysis session, with separate mutable TypeScript programs for each check.
|
|
89
|
+
They load contained snapshot projects, including sibling
|
|
50
90
|
configurations and project references. An option-only configuration used through
|
|
51
91
|
`extends` is a helper. Canonical `tsconfig.json`, configurations declaring their
|
|
52
92
|
own source selectors or project references, and explicitly referenced
|
|
@@ -128,10 +168,16 @@ Exactly seven configurable checks expose settings beyond severity and timing:
|
|
|
128
168
|
| `readabilityComplexity` | Positive safe-integer `max`; Boolean `blockWorsening` | `max: 15`, `blockWorsening: true`; file-scoped |
|
|
129
169
|
| `duplication` | Percentage `threshold`; `settings.minLines`, `settings.minTokens`, and `settings.mode` | `threshold: 5`, `minLines: 5`, `minTokens: 50`, `mode: "mild"`; workspace-wide |
|
|
130
170
|
| `reactCorrectness` | Bundled React and Hooks `rules` | File-scoped and limited to rule IDs Zedbee ships |
|
|
131
|
-
| `reactAccessibility` | Bundled jsx-a11y `rules`
|
|
171
|
+
| `reactAccessibility` | Bundled jsx-a11y `rules` and custom component/attribute/polymorphic `settings` | File-scoped and limited to rule IDs Zedbee ships |
|
|
132
172
|
|
|
133
173
|
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`.
|
|
134
174
|
|
|
175
|
+
`reactAccessibility.settings` accepts only `components` (component-to-element map),
|
|
176
|
+
`attributes` (DOM attribute-to-JSX-properties arrays), `polymorphicPropName`, and
|
|
177
|
+
`polymorphicAllowList`. Settings are file-scoped and default to no custom mappings.
|
|
178
|
+
See [static JSX accessibility examples and limitations](react-analysis.md#static-jsx-accessibility-checks).
|
|
179
|
+
These checks cannot certify runtime accessibility.
|
|
180
|
+
|
|
135
181
|
### Prettier settings
|
|
136
182
|
|
|
137
183
|
Formatting scans and fixes leave generated package-manager lockfiles alone:
|
|
@@ -325,3 +371,112 @@ Framework entries use Knip's entry-export exemption, so their exports are not
|
|
|
325
371
|
checked for exact framework consumption. Reachable library exports still receive
|
|
326
372
|
normal analysis. Custom `pageExtensions`, MDX/custom compilers and
|
|
327
373
|
`next <command> <subdirectory>` discovery are outside these default conventions.
|
|
374
|
+
|
|
375
|
+
### Synthetic credentials in fixtures
|
|
376
|
+
|
|
377
|
+
Secretlint can recognize a deliberately fake database URL as a credential. For a confirmed synthetic fixture, suppress just the database rule on the next line, with a reason:
|
|
378
|
+
|
|
379
|
+
```python
|
|
380
|
+
# secretlint-disable-next-line @secretlint/secretlint-rule-database-connection-string -- Synthetic redaction fixture
|
|
381
|
+
DATABASE_URL = "postgresql://fixture:fake_password@db.example.invalid/test"
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
```javascript
|
|
385
|
+
// secretlint-disable-next-line @secretlint/secretlint-rule-database-connection-string -- Synthetic redaction fixture
|
|
386
|
+
const databaseUrl =
|
|
387
|
+
"postgresql://fixture:fake_password@db.example.invalid/test";
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
Stage the annotation together with the fixture. It suppresses the named rule on that one line; other rules and adjacent lines remain protected. This is an intentional suppression, not verification that a credential is fake. Remove and rotate real credentials. Test directories and localhost URLs are not automatically exempt.
|
|
391
|
+
|
|
392
|
+
For dedicated fixture files, an exact-file `pathExclusions` entry with `checks: ["secrets"]` and a reason is also supported. That excludes the whole file from that check and is broader than the next-line annotation.
|
|
393
|
+
|
|
394
|
+
### Experimental project ESLint
|
|
395
|
+
|
|
396
|
+
Swarm's default lint mode uses its bundled rules. To use your project's own
|
|
397
|
+
ESLint, run `zedbee init --eslint-engine project` and review the proposal.
|
|
398
|
+
Project configuration and plugins execute JavaScript with your user privileges;
|
|
399
|
+
setup asks for separate ESLint execution trust. Prettier trust does not grant it.
|
|
400
|
+
For an explicit noninteractive setup, use
|
|
401
|
+
`zedbee init --eslint-engine project --trust-project-eslint --yes`.
|
|
402
|
+
|
|
403
|
+
You can also select `checks.lint.engine: "project"` in `.zedbeerc.jsonc`.
|
|
404
|
+
A workspace override must select its entire subtree, for example
|
|
405
|
+
`"files": ["packages/web/**"]`; individual-file engine selection is rejected.
|
|
406
|
+
Use `zedbee doctor` to inspect configuration, installation, and saved trust
|
|
407
|
+
without executing your project configuration.
|
|
408
|
+
|
|
409
|
+
Within a selected workspace, project ESLint supplies lint, React, and JSX
|
|
410
|
+
accessibility rules. Swarm shows its separate managed React checks as covered
|
|
411
|
+
by project ESLint; that does not establish that your configuration enables
|
|
412
|
+
accessibility rules. Formatting, complexity, secrets, and other independent
|
|
413
|
+
checks remain separate. Explicit managed rule/settings or React severity
|
|
414
|
+
settings must be resolved before selecting project mode; setup preserves and
|
|
415
|
+
explains conflicts instead of silently discarding them.
|
|
416
|
+
|
|
417
|
+
The initial supported environment is installed **ESLint 9.39.5**, JavaScript flat
|
|
418
|
+
configuration (`eslint.config.js`, `.mjs`, or `.cjs`), ordinary local node_modules,
|
|
419
|
+
and an npm package-lock v2 or v3 matching the selected target's direct installed
|
|
420
|
+
dependencies. Swarm does not automatically install dependencies. Legacy
|
|
421
|
+
`.eslintrc`, processors, TypeScript configuration modules, Yarn PnP, and extra
|
|
422
|
+
file formats are outside this initial boundary. Captured files over 32 MiB or a mirror that cannot reproduce every captured input make project analysis incomplete rather than silently omitting data. Next.js, Jest, and import-plugin
|
|
423
|
+
combinations have not yet been certified by the compatibility fixtures. Plugin
|
|
424
|
+
results use ESLint's standard interface; unsupported execution or a plugin crash
|
|
425
|
+
is incomplete analysis, with no silent managed fallback. Project-rule automatic
|
|
426
|
+
fixes are not enabled.
|
|
427
|
+
|
|
428
|
+
Project mode analyzes captured source and local configuration imports. Both
|
|
429
|
+
baseline and target configurations run in fresh processes using the target's
|
|
430
|
+
validated installed toolchain; Swarm does not recreate historical installations.
|
|
431
|
+
A newly introduced configuration can establish new coverage without a baseline
|
|
432
|
+
config. A broken existing baseline remains incomplete. Configurations requiring
|
|
433
|
+
external local files, live checkout paths, network state, or extra environment
|
|
434
|
+
variables are not guaranteed to reproduce. The worker receives PATH, fixed locale,
|
|
435
|
+
a temporary HOME/TMPDIR, and Windows system paths where needed.
|
|
436
|
+
|
|
437
|
+
A project plugin can inspect files beyond the source file it reports on, so
|
|
438
|
+
project mode runs its configured JS/TS scope for every nonempty repository
|
|
439
|
+
change, including Markdown and deletion-only changes. It does not use persistent
|
|
440
|
+
result caching. This can take longer than managed mode. An all-ignored scope is
|
|
441
|
+
reported as skipped, rather than a successful lint run. JSON check results expose
|
|
442
|
+
`eslintAnalysis` with the installed version, checked/ignored/excluded counts, baseline
|
|
443
|
+
comparison state, and effective message policy.
|
|
444
|
+
|
|
445
|
+
Project findings preserve rule IDs, severity, and locations. Messages are
|
|
446
|
+
redacted by default because plugins can quote source. Setting
|
|
447
|
+
`reporting.projectEslintMessages: "full"` also requires separate local permission;
|
|
448
|
+
setup offers this separately, or use `--allow-project-eslint-messages` with the
|
|
449
|
+
explicit project setup command. Without permission, analysis continues with
|
|
450
|
+
redacted messages. Full local messages can contain source in terminal and saved
|
|
451
|
+
JSON reports. Source-bearing messages and private rule identifiers are not sent
|
|
452
|
+
to telemetry. Returning to managed mode does not remove reports already written.
|
|
453
|
+
|
|
454
|
+
### Rule severity and focusable separators
|
|
455
|
+
|
|
456
|
+
For bundled lint, React, and accessibility rules, an explicit per-rule `warn`
|
|
457
|
+
remains a warning under an `error` check. Check-level `warn` limits enabled rules
|
|
458
|
+
to warnings; check or rule `off` disables its applicable scope. Numeric and array
|
|
459
|
+
rule forms follow the same precedence. An error from another enabled rule still
|
|
460
|
+
blocks the commit.
|
|
461
|
+
|
|
462
|
+
Swarm corrects jsx-a11y 6.10.2's treatment of a literal focusable
|
|
463
|
+
`role="separator"` with `aria-valuenow`: that pattern is an ARIA window splitter,
|
|
464
|
+
including programmatic focus through `tabIndex={-1}`. Plain unfocusable separators
|
|
465
|
+
with keyboard handlers and statically missing current values still report.
|
|
466
|
+
Ambiguous spread attributes do not receive the exception. This correction applies
|
|
467
|
+
to Swarm's managed engine; project ESLint retains the project's own plugin version
|
|
468
|
+
and behavior. It is a static check, not proof of runtime accessibility.
|
|
469
|
+
|
|
470
|
+
An existing JSX interaction finding can span an entire opening element, including
|
|
471
|
+
inline handlers. Swarm pairs an existing occurrence through its unchanged opening
|
|
472
|
+
line even when harmless handler edits expand the diagnostic range. A replacement
|
|
473
|
+
opening line or newly added occurrence is not exempt merely because it reuses a
|
|
474
|
+
line number.
|
|
475
|
+
|
|
476
|
+
The managed `react-hooks/set-state-in-effect` implementation includes a
|
|
477
|
+
versioned correction for state updates across waits and local effect helpers.
|
|
478
|
+
An async wrapper does not make an immediate update safe. See
|
|
479
|
+
[React analysis](react-analysis.md#state-updates-across-async-effect-helpers)
|
|
480
|
+
for its scope and the distinction from native project ESLint behavior.
|
|
481
|
+
|
|
482
|
+
Managed type and lint checks distinguish verified unavailable installation inputs from source errors. An incomplete comparison reports setup guidance; it does not suppress genuine new unresolved imports or removed exports. Existing relevance decisions still skip unaffected workspaces. Diagnostic messages can retain reviewed local names; see [reporting](reporting.md#diagnostic-message-detail) for contextual and source-free output.
|
package/docs/cli-reference.md
CHANGED
|
@@ -124,7 +124,7 @@ Doctor checks snapshot filesystem creation and cleanup separately from backgroun
|
|
|
124
124
|
|
|
125
125
|
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.
|
|
126
126
|
|
|
127
|
-
`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
|
|
127
|
+
`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 selects fresh snapshots and preserves configuration, attribution and cache validation. When analyzer jobs are selected, it captures a fresh source epoch and closes its own session. The caller must close the executor, including after cancellation or errors:
|
|
128
128
|
|
|
129
129
|
```js
|
|
130
130
|
import { createLocalAnalyzerExecutor, runScan } from "zedbee";
|
|
@@ -258,6 +258,24 @@ The optional root configuration is `.zedbeerc.jsonc`. It is data, not executable
|
|
|
258
258
|
|
|
259
259
|
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).
|
|
260
260
|
|
|
261
|
+
`relevant` selects checks from their actual inputs in the selected snapshots.
|
|
262
|
+
Ordinary Python, documentation and `.gitignore` changes skip TypeScript and typed
|
|
263
|
+
lint when source/configuration metadata proves they are unrelated. Source
|
|
264
|
+
changes, JSON/JSONC, dependency inputs and compiler configuration still select
|
|
265
|
+
project comparison, including unchanged consumers across TypeScript workspaces.
|
|
266
|
+
Custom inherited configuration filenames, unknown inputs and incomplete metadata
|
|
267
|
+
retain conservative analysis. Policy edits can also select compiler work even
|
|
268
|
+
when they only change reporting. `always` retains supported full project
|
|
269
|
+
comparisons for unrelated nonempty changesets.
|
|
270
|
+
|
|
271
|
+
Under recommended defaults with managed formatting, Python edits select secrets;
|
|
272
|
+
an ordinary `.gitignore` edit plus a Markdown deletion also selects only secrets.
|
|
273
|
+
A Markdown deletion alone starts no analyzer jobs, while a Markdown edit selects
|
|
274
|
+
formatting and secrets. `.gitignore` is text and can contain a secret. Project
|
|
275
|
+
formatter plugins, profiles and policy overrides can change selection; see the
|
|
276
|
+
[check selection details](checks.md). A skipped check has not analyzed and passed
|
|
277
|
+
its inputs.
|
|
278
|
+
|
|
261
279
|
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.
|
|
262
280
|
|
|
263
281
|
`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.
|
|
@@ -375,9 +393,9 @@ npx zedbee scan --format sarif > zedbee.sarif
|
|
|
375
393
|
npx zedbee scan --format text --include-source > zedbee-report-with-source.txt
|
|
376
394
|
```
|
|
377
395
|
|
|
378
|
-
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
|
|
396
|
+
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, and only after the file exists. In branded automatic output, the closing `AGENT NEXT STEP` guidance and `COMPLETE REPORT` path appear in a `NEXT STEPS` panel after `SCAN RESULT`, inside the yellow frame. Opening guidance remains above the frame; the complete closing path wraps within its panel. Configured guidance is preserved for every outcome, including a pass. Fixing only the visible preview is insufficient—process every finding in the complete report.
|
|
379
397
|
|
|
380
|
-
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.
|
|
398
|
+
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. The closing alert occupies `NEXT STEPS` in the branded automatic dashboard. A dashboard without closing callouts omits that panel. Any `REPORT DELIVERY WARNING` is a detail panel, not that fixed alert.
|
|
381
399
|
|
|
382
400
|
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.
|
|
383
401
|
|
|
@@ -431,6 +449,13 @@ Zedbee may cache content-addressed, normalized observations for audited local an
|
|
|
431
449
|
|
|
432
450
|
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.
|
|
433
451
|
|
|
452
|
+
Check selection precedes analyzer startup and source capture. An eligible scan
|
|
453
|
+
with no jobs opens no analyzer session; a secrets-only scan captures changed files
|
|
454
|
+
and their baseline or rename counterparts. Git selection, configuration checks,
|
|
455
|
+
snapshot safety checks and project inspection still take time. Reported elapsed
|
|
456
|
+
check durations can include worker waiting and are not measurements of analyzer
|
|
457
|
+
CPU time.
|
|
458
|
+
|
|
434
459
|
## Current coverage
|
|
435
460
|
|
|
436
461
|
The managed suite currently includes:
|
|
@@ -453,7 +478,34 @@ See [the complete check matrix](checks.md), [support matrix](support.md), [priva
|
|
|
453
478
|
- 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.
|
|
454
479
|
- 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.
|
|
455
480
|
- OSV connectivity failures follow `checks.vulnerabilities.onUnavailable`: `block` fails closed, while `warn` reports the incomplete check and permits the commit if nothing else blocks.
|
|
456
|
-
- If a hook cannot find Zedbee, restore the
|
|
481
|
+
- If a hook cannot find Zedbee, restore this checkout's dependencies using the repository's package-manager instructions. Fresh worktrees need their own available installation. Current generated hooks check their selected local CLI before starting Node and explain when no scan ran; they do not download a replacement or use another checkout's copy. Missing dependencies required by a running check are reported separately as incomplete analysis.
|
|
482
|
+
- Upgrading the installed package alone does not rewrite existing hooks. Run `zedbee init` to preview and apply the generated hook refresh. Custom hook commands are preserved and need a manual update. Lefthook and simple-git-hooks still require their normal activation step when setup reports activation as pending.
|
|
457
483
|
- 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.
|
|
458
484
|
- 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.
|
|
459
485
|
- 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.
|
|
486
|
+
|
|
487
|
+
### Selected changes and check coverage
|
|
488
|
+
|
|
489
|
+
Scan output distinguishes completed, skipped and incomplete check executions. Multiple workspace targets can contribute separate executions. Disabled checks are not counted as skipped. When every reported check is skipped, an allowed result says no applicable checks ran; when the execution list is empty, it says no checks ran for the selected changes. Neither claims that code was validated.
|
|
490
|
+
|
|
491
|
+
Optional JSON `changeSummary` contains `added`, `modified`, `deleted` and `renamed` path counts from the selected index or commit comparison. Renames count once. The field is absent when change discovery failed and for combined merge comparisons. Existing `summary.passed` still counts completed executions without findings.
|
|
492
|
+
|
|
493
|
+
A scan does not know whether an earlier staging command failed. Chain staging and committing with `&&` and review the selected changes; see [staging troubleshooting](support.md#staging-and-deletion-only-commits).
|
|
494
|
+
|
|
495
|
+
Experimental ESLint setup options for `zedbee init`:
|
|
496
|
+
|
|
497
|
+
- `--eslint-engine managed|project`: select bundled rules or the project's installed ESLint.
|
|
498
|
+
- `--trust-project-eslint`: explicitly grant execution trust when applying project setup.
|
|
499
|
+
- `--allow-project-eslint-messages`: separately allow source-bearing diagnostic text in local reports.
|
|
500
|
+
|
|
501
|
+
Review the experimental support boundary in [Checks](checks.md#experimental-project-eslint)
|
|
502
|
+
before choosing project mode. `zedbee doctor` inspects installation, flat config,
|
|
503
|
+
and stored trust as data, without executing the configuration.
|
|
504
|
+
|
|
505
|
+
### Managed diagnostic messages
|
|
506
|
+
|
|
507
|
+
`zedbee scan --diagnostic-messages contextual` preserves reviewed module, member and function descriptions in local output. This is the default. `--diagnostic-messages source-free` requests trusted source-free explanations. Combine it with `--no-source` for a report without diagnostic names or source excerpts. The repository setting is `reporting.diagnosticMessages`; the CLI choice overrides it.
|
|
508
|
+
|
|
509
|
+
Contextual output is local reporting, including temporary JSON reports, and can contain source-derived names. Sensitive or unsupported details are withheld with redaction metadata. Telemetry, ordinary progress events and persistent observation-cache prose remain source-free. Native project ESLint full messages still require their separate local permission.
|
|
510
|
+
|
|
511
|
+
The managed source-free option does not override separately authorized full project ESLint messages. When sharing a report from project ESLint mode, also set `reporting.projectEslintMessages` to `"redacted"`.
|
package/docs/privacy.md
CHANGED
|
@@ -239,7 +239,9 @@ and is not included in scan findings, temporary reports, or structured exports.
|
|
|
239
239
|
|
|
240
240
|
Syntax entity names, including quoted member keys and lexical owners, and Knip issue names become deterministic opaque digests before attribution or cache persistence. Structural ownership markers remain available for comparison, without retaining the original names. Prior cache payload versions are rejected; upgrades do not retroactively erase old cache files or exported reports.
|
|
241
241
|
|
|
242
|
-
TypeScript, lint, and React diagnostics
|
|
242
|
+
Managed TypeScript, lint, and React diagnostics default to contextual local messages. Supported messages retain useful module, member, and function-category names after targeted redaction. Local terminal output and JSON or temporary reports can therefore contain source-derived names. Secret detection is best-effort; unsupported or uncertain detail is withheld with a redaction reason. For strict source-free output, set `reporting.diagnosticMessages` to `"source-free"` or pass `--diagnostic-messages source-free`. This setting is independent of source excerpts: use `--no-source` as well when sharing a report that must contain neither diagnostic names nor source lines.
|
|
243
|
+
|
|
244
|
+
Diagnostic details are bounded to the current scan and reviewed before crossing analyzer IPC. Persistent analysis caches and ordinary progress events retain source-free diagnostic prose; private comparison digests preserve semantic matching without storing original messages. A contextual scan may rerun the affected analyzer on a cache hit to recover details from immutable inputs. Telemetry never receives diagnostic prose or source names. Native project ESLint retains its separate full-message consent requirement. Existing cache files and previously exported reports are not retroactively erased by an upgrade.
|
|
243
245
|
|
|
244
246
|
When enabled, the content-addressed cache stores only schema-validated normalized observations and integrity metadata from audited analyzers. TypeScript, lint, and Knip entries include private input fingerprints: content digests, scoped path identifiers, directory listings, and missing-file observations. Knip's scope remains the selected snapshot, including guards against installed packages entering resolution; its captured filesystem does not grant access to outside source bytes. Captured bytes remain in memory for analysis and are not saved in this cache. Zedbee rechecks fingerprints before reusing results; incomplete metadata disables caching for that result. Each internal Knip worker exits before its snapshot is released. New or unknown checks remain uncached until their inputs are audited. Installed engine identities come from the package metadata shipped with the active installation; missing identity metadata disables caching for that check. The cache must never store source, detected secret values, raw analyzer output, absolute snapshot paths, or online response bodies. Corrupt, ineligible, or incompatible entries are treated as misses.
|
|
245
247
|
|
|
@@ -258,3 +260,18 @@ Report cleanup and write warnings are non-blocking maintenance diagnostics. Zedb
|
|
|
258
260
|
## Agent and CI output
|
|
259
261
|
|
|
260
262
|
Explicit `--format text`, `--format json`, and `--format sarif` are complete surfaces with no terminal finding cap and no automatic report file. JSON and SARIF are stable machine surfaces; SARIF is emitted as a complete SARIF 2.1.0 report for enterprise ingestion. Both structured formats use repository-relative paths, deterministic ordering, stable finding IDs, explicit attribution evidence, and the same online disclosures as the interactive experience. ANSI decoration and animation are never included.
|
|
263
|
+
|
|
264
|
+
Project ESLint configuration and plugins require separate local execution trust.
|
|
265
|
+
Their diagnostic text is redacted by default. Full project messages require an
|
|
266
|
+
additional permission because they may quote source; when permitted, that text
|
|
267
|
+
may appear in terminal and local JSON reports. Revoking permission affects future
|
|
268
|
+
reports, not copies already saved. Arbitrary project diagnostic text, private
|
|
269
|
+
plugin rule names, source, and paths are excluded from telemetry. Supervised
|
|
270
|
+
processes provide cancellation and failure isolation, not a sandbox for trusted
|
|
271
|
+
configuration code.
|
|
272
|
+
|
|
273
|
+
The managed source-free option does not override separately authorized full project ESLint messages. When sharing a report from project ESLint mode, also set `reporting.projectEslintMessages` to `"redacted"`.
|
|
274
|
+
|
|
275
|
+
### Performance diagnostics
|
|
276
|
+
|
|
277
|
+
Completed scan telemetry can include bounded totals by check: elapsed, worker queue and execution milliseconds, cache hits/misses/bypasses, a changed-file-count bucket, execution mode, and approved incomplete-error codes. These retain everyday local usage. They contain no repository/workspace names, file paths, source, or raw error messages. Overlapping check durations are not CPU time or an additive scan-duration breakdown. Older clients may omit these details. Existing opt-out settings apply.
|
package/docs/react-analysis.md
CHANGED
|
@@ -37,3 +37,69 @@ node_modules or executes project React code. Baseline and target snapshots are
|
|
|
37
37
|
calibrated independently, so a React upgrade is analyzed with each side's own
|
|
38
38
|
declared dependency state. Rules of Hooks, missing list keys, and DOM accessibility
|
|
39
39
|
rules do not depend on the React version setting.
|
|
40
|
+
|
|
41
|
+
## Static JSX accessibility checks
|
|
42
|
+
|
|
43
|
+
`reactAccessibility` applies static JSX accessibility checks; it cannot certify
|
|
44
|
+
an accessible application. Test keyboard behavior, focus management, contrast,
|
|
45
|
+
and assistive technology against the rendered interface as well.
|
|
46
|
+
|
|
47
|
+
Teach the managed jsx-a11y engine about a design system with inert settings:
|
|
48
|
+
|
|
49
|
+
```json
|
|
50
|
+
{
|
|
51
|
+
"schemaVersion": 1,
|
|
52
|
+
"checks": {
|
|
53
|
+
"reactAccessibility": {
|
|
54
|
+
"settings": {
|
|
55
|
+
"components": { "Photo": "img", "Button": "button" },
|
|
56
|
+
"attributes": { "for": ["htmlFor", "for"] },
|
|
57
|
+
"polymorphicPropName": "as",
|
|
58
|
+
"polymorphicAllowList": ["Box"]
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Here `<Photo src="logo.png" />` receives the image's missing-alt check, while
|
|
66
|
+
`<Photo src="logo.png" alt="Logo" />` passes that check. `<Box as="img" />`
|
|
67
|
+
also receives image semantics. `attributes` maps a DOM attribute to an array of
|
|
68
|
+
JSX property names supported by jsx-a11y; the example permits `for` as well as
|
|
69
|
+
`htmlFor` for label association. A polymorphic allow list limits `as` handling to
|
|
70
|
+
named components; omitting it applies the configured property wherever the
|
|
71
|
+
plugin supports polymorphism. Dynamic rendered element names may be unknown to
|
|
72
|
+
static analysis.
|
|
73
|
+
|
|
74
|
+
These four fields are optional and default to no custom mappings. Use ordered
|
|
75
|
+
`overrides` to scope settings to workspace or file globs. Later settings replace
|
|
76
|
+
the corresponding field: a later `components` map replaces the earlier map,
|
|
77
|
+
while unrelated fields are retained. Configure mappings to match what components
|
|
78
|
+
actually render; Zedbee does not inspect their implementation to verify the map.
|
|
79
|
+
Mappings do not execute project code or load project plugins. The managed
|
|
80
|
+
focusable-separator correction also applies when the element uses a mapped
|
|
81
|
+
custom component.
|
|
82
|
+
|
|
83
|
+
### State updates across async effect helpers
|
|
84
|
+
|
|
85
|
+
Managed React correctness includes Swarm's versioned correction to
|
|
86
|
+
`react-hooks/set-state-in-effect`. The check distinguishes an immediate state
|
|
87
|
+
update from one that can run only after an `await` suspends execution. For
|
|
88
|
+
locally analyzable helpers, calling the helper with `.then()` or from an
|
|
89
|
+
immediately invoked async wrapper preserves that distinction.
|
|
90
|
+
|
|
91
|
+
An `async` function starts running immediately. A state update before its first
|
|
92
|
+
`await` can therefore still be reported when the function is called from an
|
|
93
|
+
effect, including through a wrapper. Updating state after a request settles
|
|
94
|
+
is allowed by this rule. Error handlers need the same distinction: a function
|
|
95
|
+
that throws before returning a promise can reach its caller's catch immediately;
|
|
96
|
+
a rejected promise is observed after suspension.
|
|
97
|
+
|
|
98
|
+
The correction follows known local calls and the compiler's supported aliases
|
|
99
|
+
and control flow. It does not provide whole-program analysis of arbitrary
|
|
100
|
+
imports, dynamic dispatch, or custom thenables. Existing rule options,
|
|
101
|
+
configured severity, and ref-derived exceptions still apply. Other React
|
|
102
|
+
checks continue to run.
|
|
103
|
+
|
|
104
|
+
Project ESLint mode uses the project's installed Hooks plugin and its native
|
|
105
|
+
behavior. Swarm's managed correction does not modify that installation.
|
package/docs/reporting.md
CHANGED
|
@@ -112,3 +112,20 @@ Explicit output is complete even when automatic terminal presentation is constra
|
|
|
112
112
|
SARIF follows the configured source-excerpt policy. Redirected SARIF omits ordinary source excerpts by default; use `--include-source` to opt in, `--no-source` to suppress them, or configure `reporting.sourceExcerpts`. Secret findings remain redacted in every format. Index-mode SARIF uses the exact staged Git-index snapshot; base-mode SARIF uses committed `HEAD`. Neither observes later working-tree edits.
|
|
113
113
|
|
|
114
114
|
SARIF columns use UTF-16 code units, declared by `run.columnKind: "utf16CodeUnits"`. Diagnostic locations retain their original ranges. Permitted source excerpts appear in `result.properties["zedbee/sourceExcerpt"]` with `line`, `text`, `redacted: false`, and `truncated`; the existing `sourceExcerptTruncated` property also records truncation. Excerpt text is a sanitized display line: tabs expand to spaces, unsafe characters are replaced, and long lines may be truncated. It is therefore not emitted as a SARIF `region.snippet` or `contextRegion`. Redacted and omitted excerpts expose no source text.
|
|
115
|
+
|
|
116
|
+
Experimental project ESLint adds optional `eslintAnalysis` metadata to its lint
|
|
117
|
+
check result: `version`, `checkedFiles`, `ignoredFiles`, `excludedFiles`, `baseline` (`compared` or
|
|
118
|
+
`new-coverage`), and `messages` (`redacted` or `full`). Both snapshot sides use the
|
|
119
|
+
reported target-installed toolchain. Zero checked files means skipped coverage,
|
|
120
|
+
not a successful lint run. A requested full-message policy without its separate
|
|
121
|
+
local permission remains `redacted` in the actual result.
|
|
122
|
+
|
|
123
|
+
### Diagnostic message detail
|
|
124
|
+
|
|
125
|
+
Managed diagnostics default to contextual messages so module, member and function descriptions can explain the finding. Use `zedbee scan --diagnostic-messages source-free` to request source-free explanations. Set `reporting.diagnosticMessages` in repository configuration for the default. The command-line choice overrides that default.
|
|
126
|
+
|
|
127
|
+
JSON and terminal output use the same reviewed message. A finding's optional `messageRedaction` metadata explains withheld detail. This affects presentation; severity, attribution, stable finding IDs and fix selection use the underlying observation. Source excerpts have their own control. Project ESLint's full-message permission is separate.
|
|
128
|
+
|
|
129
|
+
A `project-delta` finding means a diagnostic is new in a validated comparison; it is not an exact causal trace. If required installation inputs are unavailable, Swarm reports an incomplete check with setup guidance rather than claiming the commit introduced a source error. A required incomplete check prevents a misleading pass. Other completed checks still report their results.
|
|
130
|
+
|
|
131
|
+
The managed source-free option does not override separately authorized full project ESLint messages. When sharing a report from project ESLint mode, also set `reporting.projectEslintMessages` to `"redacted"`.
|
package/docs/support.md
CHANGED
|
@@ -163,3 +163,26 @@ every changed and skipped file, stage intended results, and rescan.
|
|
|
163
163
|
- an offline OSV database;
|
|
164
164
|
- legacy binary `bun.lockb` vulnerability parsing;
|
|
165
165
|
- automatic staging, committing, or mutation of the Git index.
|
|
166
|
+
|
|
167
|
+
## Check the version actually used by a hook
|
|
168
|
+
|
|
169
|
+
A dependency declaration, lockfile resolution, installed package, and executable selected by a hook can disagree. Inspect all four before diagnosing a version-specific problem. For a hook that invokes `node ./web/node_modules/zedbee/dist/cli.js`, run these from the repository root:
|
|
170
|
+
|
|
171
|
+
```sh
|
|
172
|
+
node ./web/node_modules/zedbee/dist/cli.js --version
|
|
173
|
+
node -p "require('./web/node_modules/zedbee/package.json').version"
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
Compare those results with the dependency in `web/package.json` and the owning lockfile. Use the repository's package manager and workspace installation instructions to synchronize the installation. If the manifest and lockfile disagree, update the lockfile deliberately; a frozen or clean install alone will not reconcile conflicting declarations. Recheck the exact hook executable and repeat the scan afterward. Swarm does not install or upgrade dependencies during a scan.
|
|
177
|
+
|
|
178
|
+
## Staging and deletion-only commits
|
|
179
|
+
|
|
180
|
+
A commit scan inspects the Git index. “Commit allowed” describes that selected content; it does not confirm that every intended file was staged. A failed earlier `git add` is not recorded in the index. Stop the calling workflow when staging fails, for example:
|
|
181
|
+
|
|
182
|
+
```sh
|
|
183
|
+
git add <paths> && git commit
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
Review `git diff --cached --stat` and the scan's staged-change counts. Unstaged and untracked files are not part of the scan. Deleting documentation may require no configured checks; the result reports skipped work rather than successful execution. Deleting source can still require compiler or project checks, including checks for broken imports. Partial staging is supported.
|
|
187
|
+
|
|
188
|
+
For synthetic credential fixtures, see [the narrow Secretlint annotation](checks.md#synthetic-credentials-in-fixtures).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zedbee",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.16",
|
|
4
4
|
"description": "Diff-aware pre-commit scanning for JavaScript and TypeScript",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -63,6 +63,8 @@
|
|
|
63
63
|
"node": "^22.17.0 || >=24.2.0"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
|
+
"hooks:generate": "node scripts/generate-managed-react-hooks.mjs --write",
|
|
67
|
+
"hooks:check": "node scripts/generate-managed-react-hooks.mjs --check",
|
|
66
68
|
"plugin:check": "node scripts/prepare-plugin.mjs --check",
|
|
67
69
|
"plugin:generate": "node scripts/prepare-plugin.mjs --write",
|
|
68
70
|
"plugin:pack": "node scripts/prepare-plugin.mjs --pack",
|
|
@@ -114,6 +116,8 @@
|
|
|
114
116
|
],
|
|
115
117
|
"dependencies": {
|
|
116
118
|
"@ast-grep/napi": "0.45.1",
|
|
119
|
+
"@babel/core": "7.29.7",
|
|
120
|
+
"@babel/parser": "7.29.8",
|
|
117
121
|
"@emnapi/core": "1.11.3",
|
|
118
122
|
"@emnapi/runtime": "1.11.3",
|
|
119
123
|
"@eslint/js": "9.39.5",
|
|
@@ -134,6 +138,7 @@
|
|
|
134
138
|
"fdir": "6.5.0",
|
|
135
139
|
"formatly": "0.3.0",
|
|
136
140
|
"get-tsconfig": "4.14.3",
|
|
141
|
+
"hermes-parser": "0.25.1",
|
|
137
142
|
"husky": "9.1.7",
|
|
138
143
|
"ignore": "7.0.11",
|
|
139
144
|
"ink": "7.1.1",
|
|
@@ -157,7 +162,8 @@
|
|
|
157
162
|
"typescript-eslint": "8.72.0",
|
|
158
163
|
"unbash": "4.0.10",
|
|
159
164
|
"yaml": "2.9.1",
|
|
160
|
-
"zod": "4.6.7"
|
|
165
|
+
"zod": "4.6.7",
|
|
166
|
+
"zod-validation-error": "4.0.2"
|
|
161
167
|
},
|
|
162
168
|
"devDependencies": {
|
|
163
169
|
"@types/node": "26.6.2",
|
|
@@ -110,3 +110,5 @@ without a new corrective approach, or further fixes would exceed scope. Report
|
|
|
110
110
|
what changed, relevant test results, final snapshot and scan outcome, remaining
|
|
111
111
|
findings, and incomplete or unverified coverage. Commit, push, or publish only
|
|
112
112
|
when the user or repository instructions authorize those actions.
|
|
113
|
+
|
|
114
|
+
A scan reviews only the selected index or committed comparison. Stop if staging fails; use `git add <paths> && git commit` rather than continuing after a failed command. Read the selected-change counts and completed/skipped/incomplete execution counts. An allowed deletion-only scan may have no applicable checks; unstaged files have not been validated. For confirmed synthetic credentials, use a rule-specific Secretlint next-line annotation with a reason; see the package's `docs/checks.md`. Verify the installed CLI used by the hook when its version differs from a dependency declaration.
|