zedbee 0.1.0-beta.15 → 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 +13 -1
- 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.map +1 -1
- package/dist/checks/compiler-inputs.js +6 -0
- 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.map +1 -1
- package/dist/checks/dispatcher.js +14 -2
- package/dist/checks/dispatcher.js.map +1 -1
- 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 +7 -0
- 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.map +1 -1
- package/dist/checks/policy-scheduling.js +6 -0
- package/dist/checks/policy-scheduling.js.map +1 -1
- package/dist/checks/prettier/settings.d.ts +2 -2
- 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/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 +2 -0
- package/dist/checks/typescript/adapter.js.map +1 -1
- 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/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/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 +9 -4
- 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 +5 -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 +13 -0
- 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 +813 -166
- 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/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/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/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 +7 -6
- 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 +117 -2
- package/docs/cli-reference.md +28 -1
- 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
|
@@ -23,17 +23,17 @@ export declare const telemetryV1EventSchema: z.ZodObject<{
|
|
|
23
23
|
}>;
|
|
24
24
|
arch: z.ZodEnum<{
|
|
25
25
|
other: "other";
|
|
26
|
-
|
|
26
|
+
x64: "x64";
|
|
27
27
|
arm64: "arm64";
|
|
28
28
|
ia32: "ia32";
|
|
29
|
-
|
|
29
|
+
arm: "arm";
|
|
30
30
|
}>;
|
|
31
31
|
node_major: z.ZodNumber;
|
|
32
32
|
command: z.ZodEnum<{
|
|
33
33
|
checks: "checks";
|
|
34
34
|
fix: "fix";
|
|
35
|
-
init: "init";
|
|
36
35
|
scan: "scan";
|
|
36
|
+
init: "init";
|
|
37
37
|
doctor: "doctor";
|
|
38
38
|
}>;
|
|
39
39
|
environment: z.ZodEnum<{
|
|
@@ -53,24 +53,24 @@ export declare const telemetryV1EventSchema: z.ZodObject<{
|
|
|
53
53
|
generic: "generic";
|
|
54
54
|
}>>;
|
|
55
55
|
scan_mode: z.ZodOptional<z.ZodEnum<{
|
|
56
|
-
staged: "staged";
|
|
57
56
|
base: "base";
|
|
57
|
+
staged: "staged";
|
|
58
58
|
}>>;
|
|
59
59
|
output_format: z.ZodOptional<z.ZodEnum<{
|
|
60
|
-
auto: "auto";
|
|
61
60
|
json: "json";
|
|
62
|
-
|
|
61
|
+
auto: "auto";
|
|
63
62
|
ink: "ink";
|
|
63
|
+
text: "text";
|
|
64
64
|
sarif: "sarif";
|
|
65
65
|
}>>;
|
|
66
66
|
outcome: z.ZodOptional<z.ZodEnum<{
|
|
67
|
-
completed: "completed";
|
|
68
|
-
incomplete: "incomplete";
|
|
69
67
|
pass: "pass";
|
|
70
68
|
blocked: "blocked";
|
|
69
|
+
incomplete: "incomplete";
|
|
70
|
+
completed: "completed";
|
|
71
|
+
cancelled: "cancelled";
|
|
71
72
|
preview: "preview";
|
|
72
73
|
applied: "applied";
|
|
73
|
-
cancelled: "cancelled";
|
|
74
74
|
}>>;
|
|
75
75
|
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
76
76
|
empty_input: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -114,14 +114,14 @@ export declare const telemetryV1EventSchema: z.ZodObject<{
|
|
|
114
114
|
thorough: "thorough";
|
|
115
115
|
}>>;
|
|
116
116
|
hook: z.ZodOptional<z.ZodEnum<{
|
|
117
|
+
custom: "custom";
|
|
117
118
|
none: "none";
|
|
118
119
|
auto: "auto";
|
|
119
|
-
custom: "custom";
|
|
120
|
-
raw: "raw";
|
|
121
|
-
"simple-git-hooks": "simple-git-hooks";
|
|
122
120
|
tracked: "tracked";
|
|
123
121
|
husky: "husky";
|
|
124
122
|
lefthook: "lefthook";
|
|
123
|
+
"simple-git-hooks": "simple-git-hooks";
|
|
124
|
+
raw: "raw";
|
|
125
125
|
}>>;
|
|
126
126
|
}, z.core.$strict>;
|
|
127
127
|
export type TelemetryV1Event = z.infer<typeof telemetryV1EventSchema>;
|
|
@@ -153,8 +153,8 @@ export declare const findingGroupSchema: z.ZodObject<{
|
|
|
153
153
|
export declare const scanDetailsSchema: z.ZodObject<{
|
|
154
154
|
finding_breakdown_version: z.ZodLiteral<1>;
|
|
155
155
|
finding_breakdown_status: z.ZodEnum<{
|
|
156
|
-
truncated: "truncated";
|
|
157
156
|
complete: "complete";
|
|
157
|
+
truncated: "truncated";
|
|
158
158
|
unavailable: "unavailable";
|
|
159
159
|
}>;
|
|
160
160
|
finding_groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -202,14 +202,14 @@ export declare const scanDetailsSchema: z.ZodObject<{
|
|
|
202
202
|
ai_detection_version: z.ZodLiteral<1>;
|
|
203
203
|
caller_ai_tool: z.ZodEnum<{
|
|
204
204
|
unknown: "unknown";
|
|
205
|
-
codex: "codex";
|
|
206
205
|
claude_code: "claude_code";
|
|
206
|
+
codex: "codex";
|
|
207
207
|
cursor: "cursor";
|
|
208
208
|
ambiguous: "ambiguous";
|
|
209
209
|
}>;
|
|
210
210
|
caller_ai_tool_candidates: z.ZodArray<z.ZodEnum<{
|
|
211
|
-
codex: "codex";
|
|
212
211
|
claude_code: "claude_code";
|
|
212
|
+
codex: "codex";
|
|
213
213
|
cursor: "cursor";
|
|
214
214
|
}>>;
|
|
215
215
|
caller_ai_tool_source: z.ZodEnum<{
|
|
@@ -217,8 +217,8 @@ export declare const scanDetailsSchema: z.ZodObject<{
|
|
|
217
217
|
environment_hint: "environment_hint";
|
|
218
218
|
}>;
|
|
219
219
|
detected_ai_tools: z.ZodArray<z.ZodEnum<{
|
|
220
|
-
codex: "codex";
|
|
221
220
|
claude_code: "claude_code";
|
|
221
|
+
codex: "codex";
|
|
222
222
|
cursor: "cursor";
|
|
223
223
|
}>>;
|
|
224
224
|
generic_agent_instructions_detected: z.ZodBoolean;
|
|
@@ -231,6 +231,101 @@ export declare const scanDetailsSchema: z.ZodObject<{
|
|
|
231
231
|
export type ScanDetails = z.infer<typeof scanDetailsSchema>;
|
|
232
232
|
export type FindingGroup = z.infer<typeof findingGroupSchema>;
|
|
233
233
|
export declare const SCAN_DETAIL_KEYS: (keyof ScanDetails)[];
|
|
234
|
+
export declare const INCOMPLETE_CODES: readonly ["other", "SECRET_FILE_TOO_LARGE", "SECRET_FILE_INVALID_UTF8", "SECRET_FILE_UNSAFE", "SECRETLINT_ANALYSIS_FAILED", "TYPED_LINT_PROJECT_MISMATCH", "TYPESCRIPT_PROJECT_MISMATCH", "ADAPTER_RESULT_INVALID", "CHECK_DISPATCH_FAILED", "SNAPSHOT_CLEANUP_FAILED", "COMPLEXITY_FILE_ANALYSIS_FAILED", "STRUCTURAL_SECURITY_PARSE_FAILED", "ANALYZER_SERVICE_UNAVAILABLE"];
|
|
235
|
+
export declare const performanceTelemetrySchema: z.ZodObject<{
|
|
236
|
+
performance_version: z.ZodLiteral<1>;
|
|
237
|
+
performance_status: z.ZodEnum<{
|
|
238
|
+
partial: "partial";
|
|
239
|
+
complete: "complete";
|
|
240
|
+
unavailable: "unavailable";
|
|
241
|
+
}>;
|
|
242
|
+
changed_file_count_bucket: z.ZodEnum<{
|
|
243
|
+
0: "0";
|
|
244
|
+
1: "1";
|
|
245
|
+
unknown: "unknown";
|
|
246
|
+
"2-5": "2-5";
|
|
247
|
+
"6-20": "6-20";
|
|
248
|
+
"21-100": "21-100";
|
|
249
|
+
"101+": "101+";
|
|
250
|
+
}>;
|
|
251
|
+
change_category: z.ZodEnum<{
|
|
252
|
+
unknown: "unknown";
|
|
253
|
+
source: "source";
|
|
254
|
+
non_source: "non_source";
|
|
255
|
+
configuration_or_dependency: "configuration_or_dependency";
|
|
256
|
+
mixed: "mixed";
|
|
257
|
+
}>;
|
|
258
|
+
execution_mode: z.ZodEnum<{
|
|
259
|
+
unknown: "unknown";
|
|
260
|
+
none: "none";
|
|
261
|
+
local: "local";
|
|
262
|
+
service: "service";
|
|
263
|
+
}>;
|
|
264
|
+
worker_count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
265
|
+
check_performance: z.ZodArray<z.ZodObject<{
|
|
266
|
+
check_id: z.ZodEnum<{
|
|
267
|
+
formatting: "formatting";
|
|
268
|
+
lint: "lint";
|
|
269
|
+
types: "types";
|
|
270
|
+
cyclomaticComplexity: "cyclomaticComplexity";
|
|
271
|
+
readabilityComplexity: "readabilityComplexity";
|
|
272
|
+
structuralSecurity: "structuralSecurity";
|
|
273
|
+
secrets: "secrets";
|
|
274
|
+
duplication: "duplication";
|
|
275
|
+
dependencyArchitecture: "dependencyArchitecture";
|
|
276
|
+
deadCode: "deadCode";
|
|
277
|
+
reactCorrectness: "reactCorrectness";
|
|
278
|
+
reactAccessibility: "reactAccessibility";
|
|
279
|
+
vulnerabilities: "vulnerabilities";
|
|
280
|
+
}>;
|
|
281
|
+
task_count: z.ZodNumber;
|
|
282
|
+
elapsed_sum_ms: z.ZodNumber;
|
|
283
|
+
elapsed_max_ms: z.ZodNumber;
|
|
284
|
+
queue_sum_ms: z.ZodOptional<z.ZodNumber>;
|
|
285
|
+
queue_max_ms: z.ZodOptional<z.ZodNumber>;
|
|
286
|
+
worker_sum_ms: z.ZodOptional<z.ZodNumber>;
|
|
287
|
+
worker_max_ms: z.ZodOptional<z.ZodNumber>;
|
|
288
|
+
cache_hits: z.ZodNumber;
|
|
289
|
+
cache_misses: z.ZodNumber;
|
|
290
|
+
cache_bypasses: z.ZodNumber;
|
|
291
|
+
}, z.core.$strict>>;
|
|
292
|
+
incomplete_reasons: z.ZodArray<z.ZodObject<{
|
|
293
|
+
check_id: z.ZodEnum<{
|
|
294
|
+
formatting: "formatting";
|
|
295
|
+
lint: "lint";
|
|
296
|
+
types: "types";
|
|
297
|
+
cyclomaticComplexity: "cyclomaticComplexity";
|
|
298
|
+
readabilityComplexity: "readabilityComplexity";
|
|
299
|
+
structuralSecurity: "structuralSecurity";
|
|
300
|
+
secrets: "secrets";
|
|
301
|
+
duplication: "duplication";
|
|
302
|
+
dependencyArchitecture: "dependencyArchitecture";
|
|
303
|
+
deadCode: "deadCode";
|
|
304
|
+
reactCorrectness: "reactCorrectness";
|
|
305
|
+
reactAccessibility: "reactAccessibility";
|
|
306
|
+
vulnerabilities: "vulnerabilities";
|
|
307
|
+
zedbee: "zedbee";
|
|
308
|
+
}>;
|
|
309
|
+
code: z.ZodEnum<{
|
|
310
|
+
other: "other";
|
|
311
|
+
SECRET_FILE_TOO_LARGE: "SECRET_FILE_TOO_LARGE";
|
|
312
|
+
SECRET_FILE_INVALID_UTF8: "SECRET_FILE_INVALID_UTF8";
|
|
313
|
+
SECRET_FILE_UNSAFE: "SECRET_FILE_UNSAFE";
|
|
314
|
+
SECRETLINT_ANALYSIS_FAILED: "SECRETLINT_ANALYSIS_FAILED";
|
|
315
|
+
TYPED_LINT_PROJECT_MISMATCH: "TYPED_LINT_PROJECT_MISMATCH";
|
|
316
|
+
TYPESCRIPT_PROJECT_MISMATCH: "TYPESCRIPT_PROJECT_MISMATCH";
|
|
317
|
+
ADAPTER_RESULT_INVALID: "ADAPTER_RESULT_INVALID";
|
|
318
|
+
CHECK_DISPATCH_FAILED: "CHECK_DISPATCH_FAILED";
|
|
319
|
+
SNAPSHOT_CLEANUP_FAILED: "SNAPSHOT_CLEANUP_FAILED";
|
|
320
|
+
COMPLEXITY_FILE_ANALYSIS_FAILED: "COMPLEXITY_FILE_ANALYSIS_FAILED";
|
|
321
|
+
STRUCTURAL_SECURITY_PARSE_FAILED: "STRUCTURAL_SECURITY_PARSE_FAILED";
|
|
322
|
+
ANALYZER_SERVICE_UNAVAILABLE: "ANALYZER_SERVICE_UNAVAILABLE";
|
|
323
|
+
}>;
|
|
324
|
+
count: z.ZodNumber;
|
|
325
|
+
}, z.core.$strict>>;
|
|
326
|
+
incomplete_reasons_omitted: z.ZodNumber;
|
|
327
|
+
}, z.core.$strict>;
|
|
328
|
+
export type ScanPerformanceTelemetry = z.infer<typeof performanceTelemetrySchema>;
|
|
234
329
|
export declare const telemetryEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
235
330
|
schema_version: z.ZodLiteral<1>;
|
|
236
331
|
event: z.ZodEnum<{
|
|
@@ -252,17 +347,17 @@ export declare const telemetryEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
252
347
|
}>;
|
|
253
348
|
arch: z.ZodEnum<{
|
|
254
349
|
other: "other";
|
|
255
|
-
|
|
350
|
+
x64: "x64";
|
|
256
351
|
arm64: "arm64";
|
|
257
352
|
ia32: "ia32";
|
|
258
|
-
|
|
353
|
+
arm: "arm";
|
|
259
354
|
}>;
|
|
260
355
|
node_major: z.ZodNumber;
|
|
261
356
|
command: z.ZodEnum<{
|
|
262
357
|
checks: "checks";
|
|
263
358
|
fix: "fix";
|
|
264
|
-
init: "init";
|
|
265
359
|
scan: "scan";
|
|
360
|
+
init: "init";
|
|
266
361
|
doctor: "doctor";
|
|
267
362
|
}>;
|
|
268
363
|
environment: z.ZodEnum<{
|
|
@@ -282,24 +377,24 @@ export declare const telemetryEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
282
377
|
generic: "generic";
|
|
283
378
|
}>>;
|
|
284
379
|
scan_mode: z.ZodOptional<z.ZodEnum<{
|
|
285
|
-
staged: "staged";
|
|
286
380
|
base: "base";
|
|
381
|
+
staged: "staged";
|
|
287
382
|
}>>;
|
|
288
383
|
output_format: z.ZodOptional<z.ZodEnum<{
|
|
289
|
-
auto: "auto";
|
|
290
384
|
json: "json";
|
|
291
|
-
|
|
385
|
+
auto: "auto";
|
|
292
386
|
ink: "ink";
|
|
387
|
+
text: "text";
|
|
293
388
|
sarif: "sarif";
|
|
294
389
|
}>>;
|
|
295
390
|
outcome: z.ZodOptional<z.ZodEnum<{
|
|
296
|
-
completed: "completed";
|
|
297
|
-
incomplete: "incomplete";
|
|
298
391
|
pass: "pass";
|
|
299
392
|
blocked: "blocked";
|
|
393
|
+
incomplete: "incomplete";
|
|
394
|
+
completed: "completed";
|
|
395
|
+
cancelled: "cancelled";
|
|
300
396
|
preview: "preview";
|
|
301
397
|
applied: "applied";
|
|
302
|
-
cancelled: "cancelled";
|
|
303
398
|
}>>;
|
|
304
399
|
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
305
400
|
empty_input: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -343,14 +438,14 @@ export declare const telemetryEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
343
438
|
thorough: "thorough";
|
|
344
439
|
}>>;
|
|
345
440
|
hook: z.ZodOptional<z.ZodEnum<{
|
|
441
|
+
custom: "custom";
|
|
346
442
|
none: "none";
|
|
347
443
|
auto: "auto";
|
|
348
|
-
custom: "custom";
|
|
349
|
-
raw: "raw";
|
|
350
|
-
"simple-git-hooks": "simple-git-hooks";
|
|
351
444
|
tracked: "tracked";
|
|
352
445
|
husky: "husky";
|
|
353
446
|
lefthook: "lefthook";
|
|
447
|
+
"simple-git-hooks": "simple-git-hooks";
|
|
448
|
+
raw: "raw";
|
|
354
449
|
}>>;
|
|
355
450
|
}, z.core.$strict>, z.ZodObject<{
|
|
356
451
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -358,8 +453,8 @@ export declare const telemetryEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
358
453
|
command: z.ZodLiteral<"scan">;
|
|
359
454
|
finding_breakdown_version: z.ZodLiteral<1>;
|
|
360
455
|
finding_breakdown_status: z.ZodEnum<{
|
|
361
|
-
truncated: "truncated";
|
|
362
456
|
complete: "complete";
|
|
457
|
+
truncated: "truncated";
|
|
363
458
|
unavailable: "unavailable";
|
|
364
459
|
}>;
|
|
365
460
|
finding_groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -407,14 +502,14 @@ export declare const telemetryEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
407
502
|
ai_detection_version: z.ZodLiteral<1>;
|
|
408
503
|
caller_ai_tool: z.ZodEnum<{
|
|
409
504
|
unknown: "unknown";
|
|
410
|
-
codex: "codex";
|
|
411
505
|
claude_code: "claude_code";
|
|
506
|
+
codex: "codex";
|
|
412
507
|
cursor: "cursor";
|
|
413
508
|
ambiguous: "ambiguous";
|
|
414
509
|
}>;
|
|
415
510
|
caller_ai_tool_candidates: z.ZodArray<z.ZodEnum<{
|
|
416
|
-
codex: "codex";
|
|
417
511
|
claude_code: "claude_code";
|
|
512
|
+
codex: "codex";
|
|
418
513
|
cursor: "cursor";
|
|
419
514
|
}>>;
|
|
420
515
|
caller_ai_tool_source: z.ZodEnum<{
|
|
@@ -422,8 +517,8 @@ export declare const telemetryEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
422
517
|
environment_hint: "environment_hint";
|
|
423
518
|
}>;
|
|
424
519
|
detected_ai_tools: z.ZodArray<z.ZodEnum<{
|
|
425
|
-
codex: "codex";
|
|
426
520
|
claude_code: "claude_code";
|
|
521
|
+
codex: "codex";
|
|
427
522
|
cursor: "cursor";
|
|
428
523
|
}>>;
|
|
429
524
|
generic_agent_instructions_detected: z.ZodBoolean;
|
|
@@ -444,10 +539,10 @@ export declare const telemetryEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
444
539
|
}>;
|
|
445
540
|
arch: z.ZodEnum<{
|
|
446
541
|
other: "other";
|
|
447
|
-
|
|
542
|
+
x64: "x64";
|
|
448
543
|
arm64: "arm64";
|
|
449
544
|
ia32: "ia32";
|
|
450
|
-
|
|
545
|
+
arm: "arm";
|
|
451
546
|
}>;
|
|
452
547
|
node_major: z.ZodNumber;
|
|
453
548
|
environment: z.ZodEnum<{
|
|
@@ -467,24 +562,24 @@ export declare const telemetryEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
467
562
|
generic: "generic";
|
|
468
563
|
}>>;
|
|
469
564
|
scan_mode: z.ZodOptional<z.ZodEnum<{
|
|
470
|
-
staged: "staged";
|
|
471
565
|
base: "base";
|
|
566
|
+
staged: "staged";
|
|
472
567
|
}>>;
|
|
473
568
|
output_format: z.ZodOptional<z.ZodEnum<{
|
|
474
|
-
auto: "auto";
|
|
475
569
|
json: "json";
|
|
476
|
-
|
|
570
|
+
auto: "auto";
|
|
477
571
|
ink: "ink";
|
|
572
|
+
text: "text";
|
|
478
573
|
sarif: "sarif";
|
|
479
574
|
}>>;
|
|
480
575
|
outcome: z.ZodOptional<z.ZodEnum<{
|
|
481
|
-
completed: "completed";
|
|
482
|
-
incomplete: "incomplete";
|
|
483
576
|
pass: "pass";
|
|
484
577
|
blocked: "blocked";
|
|
578
|
+
incomplete: "incomplete";
|
|
579
|
+
completed: "completed";
|
|
580
|
+
cancelled: "cancelled";
|
|
485
581
|
preview: "preview";
|
|
486
582
|
applied: "applied";
|
|
487
|
-
cancelled: "cancelled";
|
|
488
583
|
}>>;
|
|
489
584
|
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
490
585
|
empty_input: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -528,92 +623,48 @@ export declare const telemetryEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
528
623
|
thorough: "thorough";
|
|
529
624
|
}>>;
|
|
530
625
|
hook: z.ZodOptional<z.ZodEnum<{
|
|
626
|
+
custom: "custom";
|
|
531
627
|
none: "none";
|
|
532
628
|
auto: "auto";
|
|
533
|
-
custom: "custom";
|
|
534
|
-
raw: "raw";
|
|
535
|
-
"simple-git-hooks": "simple-git-hooks";
|
|
536
629
|
tracked: "tracked";
|
|
537
630
|
husky: "husky";
|
|
538
631
|
lefthook: "lefthook";
|
|
632
|
+
"simple-git-hooks": "simple-git-hooks";
|
|
633
|
+
raw: "raw";
|
|
539
634
|
}>>;
|
|
540
|
-
}, z.core.$strict
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
fix: "fix";
|
|
574
|
-
init: "init";
|
|
575
|
-
scan: "scan";
|
|
576
|
-
doctor: "doctor";
|
|
577
|
-
}>;
|
|
578
|
-
environment: z.ZodEnum<{
|
|
579
|
-
ci: "ci";
|
|
580
|
-
ci_not_detected: "ci_not_detected";
|
|
581
|
-
}>;
|
|
582
|
-
invocation_source: z.ZodEnum<{
|
|
583
|
-
git_hook: "git_hook";
|
|
584
|
-
unspecified: "unspecified";
|
|
585
|
-
}>;
|
|
586
|
-
installation_id: z.ZodOptional<z.ZodString>;
|
|
587
|
-
ci_execution_id: z.ZodOptional<z.ZodString>;
|
|
588
|
-
ci_provider: z.ZodOptional<z.ZodEnum<{
|
|
589
|
-
unknown: "unknown";
|
|
590
|
-
github_actions: "github_actions";
|
|
591
|
-
gitlab_ci: "gitlab_ci";
|
|
592
|
-
generic: "generic";
|
|
593
|
-
}>>;
|
|
594
|
-
scan_mode: z.ZodOptional<z.ZodEnum<{
|
|
595
|
-
staged: "staged";
|
|
596
|
-
base: "base";
|
|
597
|
-
}>>;
|
|
598
|
-
output_format: z.ZodOptional<z.ZodEnum<{
|
|
599
|
-
auto: "auto";
|
|
600
|
-
json: "json";
|
|
601
|
-
text: "text";
|
|
602
|
-
ink: "ink";
|
|
603
|
-
sarif: "sarif";
|
|
604
|
-
}>>;
|
|
605
|
-
outcome: z.ZodOptional<z.ZodEnum<{
|
|
606
|
-
completed: "completed";
|
|
607
|
-
incomplete: "incomplete";
|
|
608
|
-
pass: "pass";
|
|
609
|
-
blocked: "blocked";
|
|
610
|
-
preview: "preview";
|
|
611
|
-
applied: "applied";
|
|
612
|
-
cancelled: "cancelled";
|
|
613
|
-
}>>;
|
|
614
|
-
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
615
|
-
empty_input: z.ZodOptional<z.ZodBoolean>;
|
|
616
|
-
check_ids: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
635
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
636
|
+
schema_version: z.ZodLiteral<3>;
|
|
637
|
+
performance_version: z.ZodLiteral<1>;
|
|
638
|
+
performance_status: z.ZodEnum<{
|
|
639
|
+
partial: "partial";
|
|
640
|
+
complete: "complete";
|
|
641
|
+
unavailable: "unavailable";
|
|
642
|
+
}>;
|
|
643
|
+
changed_file_count_bucket: z.ZodEnum<{
|
|
644
|
+
0: "0";
|
|
645
|
+
1: "1";
|
|
646
|
+
unknown: "unknown";
|
|
647
|
+
"2-5": "2-5";
|
|
648
|
+
"6-20": "6-20";
|
|
649
|
+
"21-100": "21-100";
|
|
650
|
+
"101+": "101+";
|
|
651
|
+
}>;
|
|
652
|
+
change_category: z.ZodEnum<{
|
|
653
|
+
unknown: "unknown";
|
|
654
|
+
source: "source";
|
|
655
|
+
non_source: "non_source";
|
|
656
|
+
configuration_or_dependency: "configuration_or_dependency";
|
|
657
|
+
mixed: "mixed";
|
|
658
|
+
}>;
|
|
659
|
+
execution_mode: z.ZodEnum<{
|
|
660
|
+
unknown: "unknown";
|
|
661
|
+
none: "none";
|
|
662
|
+
local: "local";
|
|
663
|
+
service: "service";
|
|
664
|
+
}>;
|
|
665
|
+
worker_count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
666
|
+
check_performance: z.ZodArray<z.ZodObject<{
|
|
667
|
+
check_id: z.ZodEnum<{
|
|
617
668
|
formatting: "formatting";
|
|
618
669
|
lint: "lint";
|
|
619
670
|
types: "types";
|
|
@@ -627,8 +678,20 @@ export declare const telemetryBatchSchema: z.ZodObject<{
|
|
|
627
678
|
reactCorrectness: "reactCorrectness";
|
|
628
679
|
reactAccessibility: "reactAccessibility";
|
|
629
680
|
vulnerabilities: "vulnerabilities";
|
|
630
|
-
}
|
|
631
|
-
|
|
681
|
+
}>;
|
|
682
|
+
task_count: z.ZodNumber;
|
|
683
|
+
elapsed_sum_ms: z.ZodNumber;
|
|
684
|
+
elapsed_max_ms: z.ZodNumber;
|
|
685
|
+
queue_sum_ms: z.ZodOptional<z.ZodNumber>;
|
|
686
|
+
queue_max_ms: z.ZodOptional<z.ZodNumber>;
|
|
687
|
+
worker_sum_ms: z.ZodOptional<z.ZodNumber>;
|
|
688
|
+
worker_max_ms: z.ZodOptional<z.ZodNumber>;
|
|
689
|
+
cache_hits: z.ZodNumber;
|
|
690
|
+
cache_misses: z.ZodNumber;
|
|
691
|
+
cache_bypasses: z.ZodNumber;
|
|
692
|
+
}, z.core.$strict>>;
|
|
693
|
+
incomplete_reasons: z.ZodArray<z.ZodObject<{
|
|
694
|
+
check_id: z.ZodEnum<{
|
|
632
695
|
formatting: "formatting";
|
|
633
696
|
lint: "lint";
|
|
634
697
|
types: "types";
|
|
@@ -642,38 +705,346 @@ export declare const telemetryBatchSchema: z.ZodObject<{
|
|
|
642
705
|
reactCorrectness: "reactCorrectness";
|
|
643
706
|
reactAccessibility: "reactAccessibility";
|
|
644
707
|
vulnerabilities: "vulnerabilities";
|
|
645
|
-
|
|
646
|
-
finding_count: z.ZodOptional<z.ZodNumber>;
|
|
647
|
-
applied_count: z.ZodOptional<z.ZodNumber>;
|
|
648
|
-
skipped_count: z.ZodOptional<z.ZodNumber>;
|
|
649
|
-
profile: z.ZodOptional<z.ZodEnum<{
|
|
650
|
-
custom: "custom";
|
|
651
|
-
fast: "fast";
|
|
652
|
-
recommended: "recommended";
|
|
653
|
-
thorough: "thorough";
|
|
654
|
-
}>>;
|
|
655
|
-
hook: z.ZodOptional<z.ZodEnum<{
|
|
656
|
-
none: "none";
|
|
657
|
-
auto: "auto";
|
|
658
|
-
custom: "custom";
|
|
659
|
-
raw: "raw";
|
|
660
|
-
"simple-git-hooks": "simple-git-hooks";
|
|
661
|
-
tracked: "tracked";
|
|
662
|
-
husky: "husky";
|
|
663
|
-
lefthook: "lefthook";
|
|
664
|
-
}>>;
|
|
665
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
666
|
-
schema_version: z.ZodLiteral<2>;
|
|
667
|
-
event: z.ZodLiteral<"scan_finished">;
|
|
668
|
-
command: z.ZodLiteral<"scan">;
|
|
669
|
-
finding_breakdown_version: z.ZodLiteral<1>;
|
|
670
|
-
finding_breakdown_status: z.ZodEnum<{
|
|
671
|
-
truncated: "truncated";
|
|
672
|
-
complete: "complete";
|
|
673
|
-
unavailable: "unavailable";
|
|
708
|
+
zedbee: "zedbee";
|
|
674
709
|
}>;
|
|
675
|
-
|
|
676
|
-
|
|
710
|
+
code: z.ZodEnum<{
|
|
711
|
+
other: "other";
|
|
712
|
+
SECRET_FILE_TOO_LARGE: "SECRET_FILE_TOO_LARGE";
|
|
713
|
+
SECRET_FILE_INVALID_UTF8: "SECRET_FILE_INVALID_UTF8";
|
|
714
|
+
SECRET_FILE_UNSAFE: "SECRET_FILE_UNSAFE";
|
|
715
|
+
SECRETLINT_ANALYSIS_FAILED: "SECRETLINT_ANALYSIS_FAILED";
|
|
716
|
+
TYPED_LINT_PROJECT_MISMATCH: "TYPED_LINT_PROJECT_MISMATCH";
|
|
717
|
+
TYPESCRIPT_PROJECT_MISMATCH: "TYPESCRIPT_PROJECT_MISMATCH";
|
|
718
|
+
ADAPTER_RESULT_INVALID: "ADAPTER_RESULT_INVALID";
|
|
719
|
+
CHECK_DISPATCH_FAILED: "CHECK_DISPATCH_FAILED";
|
|
720
|
+
SNAPSHOT_CLEANUP_FAILED: "SNAPSHOT_CLEANUP_FAILED";
|
|
721
|
+
COMPLEXITY_FILE_ANALYSIS_FAILED: "COMPLEXITY_FILE_ANALYSIS_FAILED";
|
|
722
|
+
STRUCTURAL_SECURITY_PARSE_FAILED: "STRUCTURAL_SECURITY_PARSE_FAILED";
|
|
723
|
+
ANALYZER_SERVICE_UNAVAILABLE: "ANALYZER_SERVICE_UNAVAILABLE";
|
|
724
|
+
}>;
|
|
725
|
+
count: z.ZodNumber;
|
|
726
|
+
}, z.core.$strict>>;
|
|
727
|
+
incomplete_reasons_omitted: z.ZodNumber;
|
|
728
|
+
event: z.ZodLiteral<"scan_finished">;
|
|
729
|
+
command: z.ZodLiteral<"scan">;
|
|
730
|
+
finding_breakdown_version: z.ZodLiteral<1>;
|
|
731
|
+
finding_breakdown_status: z.ZodEnum<{
|
|
732
|
+
complete: "complete";
|
|
733
|
+
truncated: "truncated";
|
|
734
|
+
unavailable: "unavailable";
|
|
735
|
+
}>;
|
|
736
|
+
finding_groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
737
|
+
check_id: z.ZodEnum<{
|
|
738
|
+
formatting: "formatting";
|
|
739
|
+
lint: "lint";
|
|
740
|
+
types: "types";
|
|
741
|
+
cyclomaticComplexity: "cyclomaticComplexity";
|
|
742
|
+
readabilityComplexity: "readabilityComplexity";
|
|
743
|
+
structuralSecurity: "structuralSecurity";
|
|
744
|
+
secrets: "secrets";
|
|
745
|
+
duplication: "duplication";
|
|
746
|
+
dependencyArchitecture: "dependencyArchitecture";
|
|
747
|
+
deadCode: "deadCode";
|
|
748
|
+
reactCorrectness: "reactCorrectness";
|
|
749
|
+
reactAccessibility: "reactAccessibility";
|
|
750
|
+
vulnerabilities: "vulnerabilities";
|
|
751
|
+
}>;
|
|
752
|
+
rule_id: z.ZodString;
|
|
753
|
+
severity: z.ZodEnum<{
|
|
754
|
+
error: "error";
|
|
755
|
+
info: "info";
|
|
756
|
+
warning: "warning";
|
|
757
|
+
}>;
|
|
758
|
+
count: z.ZodNumber;
|
|
759
|
+
}, z.core.$strict>>>;
|
|
760
|
+
finding_unmapped_count: z.ZodOptional<z.ZodNumber>;
|
|
761
|
+
finding_omitted_count: z.ZodOptional<z.ZodNumber>;
|
|
762
|
+
finding_counts_clipped: z.ZodOptional<z.ZodBoolean>;
|
|
763
|
+
completed_check_ids: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
764
|
+
formatting: "formatting";
|
|
765
|
+
lint: "lint";
|
|
766
|
+
types: "types";
|
|
767
|
+
cyclomaticComplexity: "cyclomaticComplexity";
|
|
768
|
+
readabilityComplexity: "readabilityComplexity";
|
|
769
|
+
structuralSecurity: "structuralSecurity";
|
|
770
|
+
secrets: "secrets";
|
|
771
|
+
duplication: "duplication";
|
|
772
|
+
dependencyArchitecture: "dependencyArchitecture";
|
|
773
|
+
deadCode: "deadCode";
|
|
774
|
+
reactCorrectness: "reactCorrectness";
|
|
775
|
+
reactAccessibility: "reactAccessibility";
|
|
776
|
+
vulnerabilities: "vulnerabilities";
|
|
777
|
+
}>>>;
|
|
778
|
+
ai_detection_version: z.ZodLiteral<1>;
|
|
779
|
+
caller_ai_tool: z.ZodEnum<{
|
|
780
|
+
unknown: "unknown";
|
|
781
|
+
claude_code: "claude_code";
|
|
782
|
+
codex: "codex";
|
|
783
|
+
cursor: "cursor";
|
|
784
|
+
ambiguous: "ambiguous";
|
|
785
|
+
}>;
|
|
786
|
+
caller_ai_tool_candidates: z.ZodArray<z.ZodEnum<{
|
|
787
|
+
claude_code: "claude_code";
|
|
788
|
+
codex: "codex";
|
|
789
|
+
cursor: "cursor";
|
|
790
|
+
}>>;
|
|
791
|
+
caller_ai_tool_source: z.ZodEnum<{
|
|
792
|
+
none: "none";
|
|
793
|
+
environment_hint: "environment_hint";
|
|
794
|
+
}>;
|
|
795
|
+
detected_ai_tools: z.ZodArray<z.ZodEnum<{
|
|
796
|
+
claude_code: "claude_code";
|
|
797
|
+
codex: "codex";
|
|
798
|
+
cursor: "cursor";
|
|
799
|
+
}>>;
|
|
800
|
+
generic_agent_instructions_detected: z.ZodBoolean;
|
|
801
|
+
repo_ai_detection_status: z.ZodEnum<{
|
|
802
|
+
partial: "partial";
|
|
803
|
+
complete: "complete";
|
|
804
|
+
unavailable: "unavailable";
|
|
805
|
+
}>;
|
|
806
|
+
event_id: z.ZodString;
|
|
807
|
+
run_id: z.ZodString;
|
|
808
|
+
timestamp: z.ZodString;
|
|
809
|
+
version: z.ZodString;
|
|
810
|
+
os: z.ZodEnum<{
|
|
811
|
+
darwin: "darwin";
|
|
812
|
+
linux: "linux";
|
|
813
|
+
win32: "win32";
|
|
814
|
+
other: "other";
|
|
815
|
+
}>;
|
|
816
|
+
arch: z.ZodEnum<{
|
|
817
|
+
other: "other";
|
|
818
|
+
x64: "x64";
|
|
819
|
+
arm64: "arm64";
|
|
820
|
+
ia32: "ia32";
|
|
821
|
+
arm: "arm";
|
|
822
|
+
}>;
|
|
823
|
+
node_major: z.ZodNumber;
|
|
824
|
+
environment: z.ZodEnum<{
|
|
825
|
+
ci: "ci";
|
|
826
|
+
ci_not_detected: "ci_not_detected";
|
|
827
|
+
}>;
|
|
828
|
+
invocation_source: z.ZodEnum<{
|
|
829
|
+
git_hook: "git_hook";
|
|
830
|
+
unspecified: "unspecified";
|
|
831
|
+
}>;
|
|
832
|
+
installation_id: z.ZodOptional<z.ZodString>;
|
|
833
|
+
ci_execution_id: z.ZodOptional<z.ZodString>;
|
|
834
|
+
ci_provider: z.ZodOptional<z.ZodEnum<{
|
|
835
|
+
unknown: "unknown";
|
|
836
|
+
github_actions: "github_actions";
|
|
837
|
+
gitlab_ci: "gitlab_ci";
|
|
838
|
+
generic: "generic";
|
|
839
|
+
}>>;
|
|
840
|
+
scan_mode: z.ZodOptional<z.ZodEnum<{
|
|
841
|
+
base: "base";
|
|
842
|
+
staged: "staged";
|
|
843
|
+
}>>;
|
|
844
|
+
output_format: z.ZodOptional<z.ZodEnum<{
|
|
845
|
+
json: "json";
|
|
846
|
+
auto: "auto";
|
|
847
|
+
ink: "ink";
|
|
848
|
+
text: "text";
|
|
849
|
+
sarif: "sarif";
|
|
850
|
+
}>>;
|
|
851
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
852
|
+
pass: "pass";
|
|
853
|
+
blocked: "blocked";
|
|
854
|
+
incomplete: "incomplete";
|
|
855
|
+
completed: "completed";
|
|
856
|
+
cancelled: "cancelled";
|
|
857
|
+
preview: "preview";
|
|
858
|
+
applied: "applied";
|
|
859
|
+
}>>;
|
|
860
|
+
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
861
|
+
empty_input: z.ZodOptional<z.ZodBoolean>;
|
|
862
|
+
check_ids: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
863
|
+
formatting: "formatting";
|
|
864
|
+
lint: "lint";
|
|
865
|
+
types: "types";
|
|
866
|
+
cyclomaticComplexity: "cyclomaticComplexity";
|
|
867
|
+
readabilityComplexity: "readabilityComplexity";
|
|
868
|
+
structuralSecurity: "structuralSecurity";
|
|
869
|
+
secrets: "secrets";
|
|
870
|
+
duplication: "duplication";
|
|
871
|
+
dependencyArchitecture: "dependencyArchitecture";
|
|
872
|
+
deadCode: "deadCode";
|
|
873
|
+
reactCorrectness: "reactCorrectness";
|
|
874
|
+
reactAccessibility: "reactAccessibility";
|
|
875
|
+
vulnerabilities: "vulnerabilities";
|
|
876
|
+
}>>>;
|
|
877
|
+
enabled_check_ids: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
878
|
+
formatting: "formatting";
|
|
879
|
+
lint: "lint";
|
|
880
|
+
types: "types";
|
|
881
|
+
cyclomaticComplexity: "cyclomaticComplexity";
|
|
882
|
+
readabilityComplexity: "readabilityComplexity";
|
|
883
|
+
structuralSecurity: "structuralSecurity";
|
|
884
|
+
secrets: "secrets";
|
|
885
|
+
duplication: "duplication";
|
|
886
|
+
dependencyArchitecture: "dependencyArchitecture";
|
|
887
|
+
deadCode: "deadCode";
|
|
888
|
+
reactCorrectness: "reactCorrectness";
|
|
889
|
+
reactAccessibility: "reactAccessibility";
|
|
890
|
+
vulnerabilities: "vulnerabilities";
|
|
891
|
+
}>>>;
|
|
892
|
+
finding_count: z.ZodOptional<z.ZodNumber>;
|
|
893
|
+
applied_count: z.ZodOptional<z.ZodNumber>;
|
|
894
|
+
skipped_count: z.ZodOptional<z.ZodNumber>;
|
|
895
|
+
profile: z.ZodOptional<z.ZodEnum<{
|
|
896
|
+
custom: "custom";
|
|
897
|
+
fast: "fast";
|
|
898
|
+
recommended: "recommended";
|
|
899
|
+
thorough: "thorough";
|
|
900
|
+
}>>;
|
|
901
|
+
hook: z.ZodOptional<z.ZodEnum<{
|
|
902
|
+
custom: "custom";
|
|
903
|
+
none: "none";
|
|
904
|
+
auto: "auto";
|
|
905
|
+
tracked: "tracked";
|
|
906
|
+
husky: "husky";
|
|
907
|
+
lefthook: "lefthook";
|
|
908
|
+
"simple-git-hooks": "simple-git-hooks";
|
|
909
|
+
raw: "raw";
|
|
910
|
+
}>>;
|
|
911
|
+
}, z.core.$strict>]>;
|
|
912
|
+
export type TelemetryEvent = z.infer<typeof telemetryEventSchema>;
|
|
913
|
+
export type TelemetryCommand = (typeof TELEMETRY_COMMANDS)[number];
|
|
914
|
+
export declare const telemetryBatchSchema: z.ZodObject<{
|
|
915
|
+
events: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
916
|
+
schema_version: z.ZodLiteral<1>;
|
|
917
|
+
event: z.ZodEnum<{
|
|
918
|
+
scan_started: "scan_started";
|
|
919
|
+
scan_finished: "scan_finished";
|
|
920
|
+
fix_finished: "fix_finished";
|
|
921
|
+
setup_finished: "setup_finished";
|
|
922
|
+
command_finished: "command_finished";
|
|
923
|
+
}>;
|
|
924
|
+
event_id: z.ZodString;
|
|
925
|
+
run_id: z.ZodString;
|
|
926
|
+
timestamp: z.ZodString;
|
|
927
|
+
version: z.ZodString;
|
|
928
|
+
os: z.ZodEnum<{
|
|
929
|
+
darwin: "darwin";
|
|
930
|
+
linux: "linux";
|
|
931
|
+
win32: "win32";
|
|
932
|
+
other: "other";
|
|
933
|
+
}>;
|
|
934
|
+
arch: z.ZodEnum<{
|
|
935
|
+
other: "other";
|
|
936
|
+
x64: "x64";
|
|
937
|
+
arm64: "arm64";
|
|
938
|
+
ia32: "ia32";
|
|
939
|
+
arm: "arm";
|
|
940
|
+
}>;
|
|
941
|
+
node_major: z.ZodNumber;
|
|
942
|
+
command: z.ZodEnum<{
|
|
943
|
+
checks: "checks";
|
|
944
|
+
fix: "fix";
|
|
945
|
+
scan: "scan";
|
|
946
|
+
init: "init";
|
|
947
|
+
doctor: "doctor";
|
|
948
|
+
}>;
|
|
949
|
+
environment: z.ZodEnum<{
|
|
950
|
+
ci: "ci";
|
|
951
|
+
ci_not_detected: "ci_not_detected";
|
|
952
|
+
}>;
|
|
953
|
+
invocation_source: z.ZodEnum<{
|
|
954
|
+
git_hook: "git_hook";
|
|
955
|
+
unspecified: "unspecified";
|
|
956
|
+
}>;
|
|
957
|
+
installation_id: z.ZodOptional<z.ZodString>;
|
|
958
|
+
ci_execution_id: z.ZodOptional<z.ZodString>;
|
|
959
|
+
ci_provider: z.ZodOptional<z.ZodEnum<{
|
|
960
|
+
unknown: "unknown";
|
|
961
|
+
github_actions: "github_actions";
|
|
962
|
+
gitlab_ci: "gitlab_ci";
|
|
963
|
+
generic: "generic";
|
|
964
|
+
}>>;
|
|
965
|
+
scan_mode: z.ZodOptional<z.ZodEnum<{
|
|
966
|
+
base: "base";
|
|
967
|
+
staged: "staged";
|
|
968
|
+
}>>;
|
|
969
|
+
output_format: z.ZodOptional<z.ZodEnum<{
|
|
970
|
+
json: "json";
|
|
971
|
+
auto: "auto";
|
|
972
|
+
ink: "ink";
|
|
973
|
+
text: "text";
|
|
974
|
+
sarif: "sarif";
|
|
975
|
+
}>>;
|
|
976
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
977
|
+
pass: "pass";
|
|
978
|
+
blocked: "blocked";
|
|
979
|
+
incomplete: "incomplete";
|
|
980
|
+
completed: "completed";
|
|
981
|
+
cancelled: "cancelled";
|
|
982
|
+
preview: "preview";
|
|
983
|
+
applied: "applied";
|
|
984
|
+
}>>;
|
|
985
|
+
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
986
|
+
empty_input: z.ZodOptional<z.ZodBoolean>;
|
|
987
|
+
check_ids: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
988
|
+
formatting: "formatting";
|
|
989
|
+
lint: "lint";
|
|
990
|
+
types: "types";
|
|
991
|
+
cyclomaticComplexity: "cyclomaticComplexity";
|
|
992
|
+
readabilityComplexity: "readabilityComplexity";
|
|
993
|
+
structuralSecurity: "structuralSecurity";
|
|
994
|
+
secrets: "secrets";
|
|
995
|
+
duplication: "duplication";
|
|
996
|
+
dependencyArchitecture: "dependencyArchitecture";
|
|
997
|
+
deadCode: "deadCode";
|
|
998
|
+
reactCorrectness: "reactCorrectness";
|
|
999
|
+
reactAccessibility: "reactAccessibility";
|
|
1000
|
+
vulnerabilities: "vulnerabilities";
|
|
1001
|
+
}>>>;
|
|
1002
|
+
enabled_check_ids: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1003
|
+
formatting: "formatting";
|
|
1004
|
+
lint: "lint";
|
|
1005
|
+
types: "types";
|
|
1006
|
+
cyclomaticComplexity: "cyclomaticComplexity";
|
|
1007
|
+
readabilityComplexity: "readabilityComplexity";
|
|
1008
|
+
structuralSecurity: "structuralSecurity";
|
|
1009
|
+
secrets: "secrets";
|
|
1010
|
+
duplication: "duplication";
|
|
1011
|
+
dependencyArchitecture: "dependencyArchitecture";
|
|
1012
|
+
deadCode: "deadCode";
|
|
1013
|
+
reactCorrectness: "reactCorrectness";
|
|
1014
|
+
reactAccessibility: "reactAccessibility";
|
|
1015
|
+
vulnerabilities: "vulnerabilities";
|
|
1016
|
+
}>>>;
|
|
1017
|
+
finding_count: z.ZodOptional<z.ZodNumber>;
|
|
1018
|
+
applied_count: z.ZodOptional<z.ZodNumber>;
|
|
1019
|
+
skipped_count: z.ZodOptional<z.ZodNumber>;
|
|
1020
|
+
profile: z.ZodOptional<z.ZodEnum<{
|
|
1021
|
+
custom: "custom";
|
|
1022
|
+
fast: "fast";
|
|
1023
|
+
recommended: "recommended";
|
|
1024
|
+
thorough: "thorough";
|
|
1025
|
+
}>>;
|
|
1026
|
+
hook: z.ZodOptional<z.ZodEnum<{
|
|
1027
|
+
custom: "custom";
|
|
1028
|
+
none: "none";
|
|
1029
|
+
auto: "auto";
|
|
1030
|
+
tracked: "tracked";
|
|
1031
|
+
husky: "husky";
|
|
1032
|
+
lefthook: "lefthook";
|
|
1033
|
+
"simple-git-hooks": "simple-git-hooks";
|
|
1034
|
+
raw: "raw";
|
|
1035
|
+
}>>;
|
|
1036
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1037
|
+
schema_version: z.ZodLiteral<2>;
|
|
1038
|
+
event: z.ZodLiteral<"scan_finished">;
|
|
1039
|
+
command: z.ZodLiteral<"scan">;
|
|
1040
|
+
finding_breakdown_version: z.ZodLiteral<1>;
|
|
1041
|
+
finding_breakdown_status: z.ZodEnum<{
|
|
1042
|
+
complete: "complete";
|
|
1043
|
+
truncated: "truncated";
|
|
1044
|
+
unavailable: "unavailable";
|
|
1045
|
+
}>;
|
|
1046
|
+
finding_groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1047
|
+
check_id: z.ZodEnum<{
|
|
677
1048
|
formatting: "formatting";
|
|
678
1049
|
lint: "lint";
|
|
679
1050
|
types: "types";
|
|
@@ -717,14 +1088,14 @@ export declare const telemetryBatchSchema: z.ZodObject<{
|
|
|
717
1088
|
ai_detection_version: z.ZodLiteral<1>;
|
|
718
1089
|
caller_ai_tool: z.ZodEnum<{
|
|
719
1090
|
unknown: "unknown";
|
|
720
|
-
codex: "codex";
|
|
721
1091
|
claude_code: "claude_code";
|
|
1092
|
+
codex: "codex";
|
|
722
1093
|
cursor: "cursor";
|
|
723
1094
|
ambiguous: "ambiguous";
|
|
724
1095
|
}>;
|
|
725
1096
|
caller_ai_tool_candidates: z.ZodArray<z.ZodEnum<{
|
|
726
|
-
codex: "codex";
|
|
727
1097
|
claude_code: "claude_code";
|
|
1098
|
+
codex: "codex";
|
|
728
1099
|
cursor: "cursor";
|
|
729
1100
|
}>>;
|
|
730
1101
|
caller_ai_tool_source: z.ZodEnum<{
|
|
@@ -732,8 +1103,8 @@ export declare const telemetryBatchSchema: z.ZodObject<{
|
|
|
732
1103
|
environment_hint: "environment_hint";
|
|
733
1104
|
}>;
|
|
734
1105
|
detected_ai_tools: z.ZodArray<z.ZodEnum<{
|
|
735
|
-
codex: "codex";
|
|
736
1106
|
claude_code: "claude_code";
|
|
1107
|
+
codex: "codex";
|
|
737
1108
|
cursor: "cursor";
|
|
738
1109
|
}>>;
|
|
739
1110
|
generic_agent_instructions_detected: z.ZodBoolean;
|
|
@@ -754,10 +1125,10 @@ export declare const telemetryBatchSchema: z.ZodObject<{
|
|
|
754
1125
|
}>;
|
|
755
1126
|
arch: z.ZodEnum<{
|
|
756
1127
|
other: "other";
|
|
757
|
-
|
|
1128
|
+
x64: "x64";
|
|
758
1129
|
arm64: "arm64";
|
|
759
1130
|
ia32: "ia32";
|
|
760
|
-
|
|
1131
|
+
arm: "arm";
|
|
761
1132
|
}>;
|
|
762
1133
|
node_major: z.ZodNumber;
|
|
763
1134
|
environment: z.ZodEnum<{
|
|
@@ -777,24 +1148,24 @@ export declare const telemetryBatchSchema: z.ZodObject<{
|
|
|
777
1148
|
generic: "generic";
|
|
778
1149
|
}>>;
|
|
779
1150
|
scan_mode: z.ZodOptional<z.ZodEnum<{
|
|
780
|
-
staged: "staged";
|
|
781
1151
|
base: "base";
|
|
1152
|
+
staged: "staged";
|
|
782
1153
|
}>>;
|
|
783
1154
|
output_format: z.ZodOptional<z.ZodEnum<{
|
|
784
|
-
auto: "auto";
|
|
785
1155
|
json: "json";
|
|
786
|
-
|
|
1156
|
+
auto: "auto";
|
|
787
1157
|
ink: "ink";
|
|
1158
|
+
text: "text";
|
|
788
1159
|
sarif: "sarif";
|
|
789
1160
|
}>>;
|
|
790
1161
|
outcome: z.ZodOptional<z.ZodEnum<{
|
|
791
|
-
completed: "completed";
|
|
792
|
-
incomplete: "incomplete";
|
|
793
1162
|
pass: "pass";
|
|
794
1163
|
blocked: "blocked";
|
|
1164
|
+
incomplete: "incomplete";
|
|
1165
|
+
completed: "completed";
|
|
1166
|
+
cancelled: "cancelled";
|
|
795
1167
|
preview: "preview";
|
|
796
1168
|
applied: "applied";
|
|
797
|
-
cancelled: "cancelled";
|
|
798
1169
|
}>>;
|
|
799
1170
|
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
800
1171
|
empty_input: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -838,14 +1209,290 @@ export declare const telemetryBatchSchema: z.ZodObject<{
|
|
|
838
1209
|
thorough: "thorough";
|
|
839
1210
|
}>>;
|
|
840
1211
|
hook: z.ZodOptional<z.ZodEnum<{
|
|
1212
|
+
custom: "custom";
|
|
841
1213
|
none: "none";
|
|
842
1214
|
auto: "auto";
|
|
843
|
-
|
|
844
|
-
|
|
1215
|
+
tracked: "tracked";
|
|
1216
|
+
husky: "husky";
|
|
1217
|
+
lefthook: "lefthook";
|
|
845
1218
|
"simple-git-hooks": "simple-git-hooks";
|
|
1219
|
+
raw: "raw";
|
|
1220
|
+
}>>;
|
|
1221
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1222
|
+
schema_version: z.ZodLiteral<3>;
|
|
1223
|
+
performance_version: z.ZodLiteral<1>;
|
|
1224
|
+
performance_status: z.ZodEnum<{
|
|
1225
|
+
partial: "partial";
|
|
1226
|
+
complete: "complete";
|
|
1227
|
+
unavailable: "unavailable";
|
|
1228
|
+
}>;
|
|
1229
|
+
changed_file_count_bucket: z.ZodEnum<{
|
|
1230
|
+
0: "0";
|
|
1231
|
+
1: "1";
|
|
1232
|
+
unknown: "unknown";
|
|
1233
|
+
"2-5": "2-5";
|
|
1234
|
+
"6-20": "6-20";
|
|
1235
|
+
"21-100": "21-100";
|
|
1236
|
+
"101+": "101+";
|
|
1237
|
+
}>;
|
|
1238
|
+
change_category: z.ZodEnum<{
|
|
1239
|
+
unknown: "unknown";
|
|
1240
|
+
source: "source";
|
|
1241
|
+
non_source: "non_source";
|
|
1242
|
+
configuration_or_dependency: "configuration_or_dependency";
|
|
1243
|
+
mixed: "mixed";
|
|
1244
|
+
}>;
|
|
1245
|
+
execution_mode: z.ZodEnum<{
|
|
1246
|
+
unknown: "unknown";
|
|
1247
|
+
none: "none";
|
|
1248
|
+
local: "local";
|
|
1249
|
+
service: "service";
|
|
1250
|
+
}>;
|
|
1251
|
+
worker_count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
1252
|
+
check_performance: z.ZodArray<z.ZodObject<{
|
|
1253
|
+
check_id: z.ZodEnum<{
|
|
1254
|
+
formatting: "formatting";
|
|
1255
|
+
lint: "lint";
|
|
1256
|
+
types: "types";
|
|
1257
|
+
cyclomaticComplexity: "cyclomaticComplexity";
|
|
1258
|
+
readabilityComplexity: "readabilityComplexity";
|
|
1259
|
+
structuralSecurity: "structuralSecurity";
|
|
1260
|
+
secrets: "secrets";
|
|
1261
|
+
duplication: "duplication";
|
|
1262
|
+
dependencyArchitecture: "dependencyArchitecture";
|
|
1263
|
+
deadCode: "deadCode";
|
|
1264
|
+
reactCorrectness: "reactCorrectness";
|
|
1265
|
+
reactAccessibility: "reactAccessibility";
|
|
1266
|
+
vulnerabilities: "vulnerabilities";
|
|
1267
|
+
}>;
|
|
1268
|
+
task_count: z.ZodNumber;
|
|
1269
|
+
elapsed_sum_ms: z.ZodNumber;
|
|
1270
|
+
elapsed_max_ms: z.ZodNumber;
|
|
1271
|
+
queue_sum_ms: z.ZodOptional<z.ZodNumber>;
|
|
1272
|
+
queue_max_ms: z.ZodOptional<z.ZodNumber>;
|
|
1273
|
+
worker_sum_ms: z.ZodOptional<z.ZodNumber>;
|
|
1274
|
+
worker_max_ms: z.ZodOptional<z.ZodNumber>;
|
|
1275
|
+
cache_hits: z.ZodNumber;
|
|
1276
|
+
cache_misses: z.ZodNumber;
|
|
1277
|
+
cache_bypasses: z.ZodNumber;
|
|
1278
|
+
}, z.core.$strict>>;
|
|
1279
|
+
incomplete_reasons: z.ZodArray<z.ZodObject<{
|
|
1280
|
+
check_id: z.ZodEnum<{
|
|
1281
|
+
formatting: "formatting";
|
|
1282
|
+
lint: "lint";
|
|
1283
|
+
types: "types";
|
|
1284
|
+
cyclomaticComplexity: "cyclomaticComplexity";
|
|
1285
|
+
readabilityComplexity: "readabilityComplexity";
|
|
1286
|
+
structuralSecurity: "structuralSecurity";
|
|
1287
|
+
secrets: "secrets";
|
|
1288
|
+
duplication: "duplication";
|
|
1289
|
+
dependencyArchitecture: "dependencyArchitecture";
|
|
1290
|
+
deadCode: "deadCode";
|
|
1291
|
+
reactCorrectness: "reactCorrectness";
|
|
1292
|
+
reactAccessibility: "reactAccessibility";
|
|
1293
|
+
vulnerabilities: "vulnerabilities";
|
|
1294
|
+
zedbee: "zedbee";
|
|
1295
|
+
}>;
|
|
1296
|
+
code: z.ZodEnum<{
|
|
1297
|
+
other: "other";
|
|
1298
|
+
SECRET_FILE_TOO_LARGE: "SECRET_FILE_TOO_LARGE";
|
|
1299
|
+
SECRET_FILE_INVALID_UTF8: "SECRET_FILE_INVALID_UTF8";
|
|
1300
|
+
SECRET_FILE_UNSAFE: "SECRET_FILE_UNSAFE";
|
|
1301
|
+
SECRETLINT_ANALYSIS_FAILED: "SECRETLINT_ANALYSIS_FAILED";
|
|
1302
|
+
TYPED_LINT_PROJECT_MISMATCH: "TYPED_LINT_PROJECT_MISMATCH";
|
|
1303
|
+
TYPESCRIPT_PROJECT_MISMATCH: "TYPESCRIPT_PROJECT_MISMATCH";
|
|
1304
|
+
ADAPTER_RESULT_INVALID: "ADAPTER_RESULT_INVALID";
|
|
1305
|
+
CHECK_DISPATCH_FAILED: "CHECK_DISPATCH_FAILED";
|
|
1306
|
+
SNAPSHOT_CLEANUP_FAILED: "SNAPSHOT_CLEANUP_FAILED";
|
|
1307
|
+
COMPLEXITY_FILE_ANALYSIS_FAILED: "COMPLEXITY_FILE_ANALYSIS_FAILED";
|
|
1308
|
+
STRUCTURAL_SECURITY_PARSE_FAILED: "STRUCTURAL_SECURITY_PARSE_FAILED";
|
|
1309
|
+
ANALYZER_SERVICE_UNAVAILABLE: "ANALYZER_SERVICE_UNAVAILABLE";
|
|
1310
|
+
}>;
|
|
1311
|
+
count: z.ZodNumber;
|
|
1312
|
+
}, z.core.$strict>>;
|
|
1313
|
+
incomplete_reasons_omitted: z.ZodNumber;
|
|
1314
|
+
event: z.ZodLiteral<"scan_finished">;
|
|
1315
|
+
command: z.ZodLiteral<"scan">;
|
|
1316
|
+
finding_breakdown_version: z.ZodLiteral<1>;
|
|
1317
|
+
finding_breakdown_status: z.ZodEnum<{
|
|
1318
|
+
complete: "complete";
|
|
1319
|
+
truncated: "truncated";
|
|
1320
|
+
unavailable: "unavailable";
|
|
1321
|
+
}>;
|
|
1322
|
+
finding_groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1323
|
+
check_id: z.ZodEnum<{
|
|
1324
|
+
formatting: "formatting";
|
|
1325
|
+
lint: "lint";
|
|
1326
|
+
types: "types";
|
|
1327
|
+
cyclomaticComplexity: "cyclomaticComplexity";
|
|
1328
|
+
readabilityComplexity: "readabilityComplexity";
|
|
1329
|
+
structuralSecurity: "structuralSecurity";
|
|
1330
|
+
secrets: "secrets";
|
|
1331
|
+
duplication: "duplication";
|
|
1332
|
+
dependencyArchitecture: "dependencyArchitecture";
|
|
1333
|
+
deadCode: "deadCode";
|
|
1334
|
+
reactCorrectness: "reactCorrectness";
|
|
1335
|
+
reactAccessibility: "reactAccessibility";
|
|
1336
|
+
vulnerabilities: "vulnerabilities";
|
|
1337
|
+
}>;
|
|
1338
|
+
rule_id: z.ZodString;
|
|
1339
|
+
severity: z.ZodEnum<{
|
|
1340
|
+
error: "error";
|
|
1341
|
+
info: "info";
|
|
1342
|
+
warning: "warning";
|
|
1343
|
+
}>;
|
|
1344
|
+
count: z.ZodNumber;
|
|
1345
|
+
}, z.core.$strict>>>;
|
|
1346
|
+
finding_unmapped_count: z.ZodOptional<z.ZodNumber>;
|
|
1347
|
+
finding_omitted_count: z.ZodOptional<z.ZodNumber>;
|
|
1348
|
+
finding_counts_clipped: z.ZodOptional<z.ZodBoolean>;
|
|
1349
|
+
completed_check_ids: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1350
|
+
formatting: "formatting";
|
|
1351
|
+
lint: "lint";
|
|
1352
|
+
types: "types";
|
|
1353
|
+
cyclomaticComplexity: "cyclomaticComplexity";
|
|
1354
|
+
readabilityComplexity: "readabilityComplexity";
|
|
1355
|
+
structuralSecurity: "structuralSecurity";
|
|
1356
|
+
secrets: "secrets";
|
|
1357
|
+
duplication: "duplication";
|
|
1358
|
+
dependencyArchitecture: "dependencyArchitecture";
|
|
1359
|
+
deadCode: "deadCode";
|
|
1360
|
+
reactCorrectness: "reactCorrectness";
|
|
1361
|
+
reactAccessibility: "reactAccessibility";
|
|
1362
|
+
vulnerabilities: "vulnerabilities";
|
|
1363
|
+
}>>>;
|
|
1364
|
+
ai_detection_version: z.ZodLiteral<1>;
|
|
1365
|
+
caller_ai_tool: z.ZodEnum<{
|
|
1366
|
+
unknown: "unknown";
|
|
1367
|
+
claude_code: "claude_code";
|
|
1368
|
+
codex: "codex";
|
|
1369
|
+
cursor: "cursor";
|
|
1370
|
+
ambiguous: "ambiguous";
|
|
1371
|
+
}>;
|
|
1372
|
+
caller_ai_tool_candidates: z.ZodArray<z.ZodEnum<{
|
|
1373
|
+
claude_code: "claude_code";
|
|
1374
|
+
codex: "codex";
|
|
1375
|
+
cursor: "cursor";
|
|
1376
|
+
}>>;
|
|
1377
|
+
caller_ai_tool_source: z.ZodEnum<{
|
|
1378
|
+
none: "none";
|
|
1379
|
+
environment_hint: "environment_hint";
|
|
1380
|
+
}>;
|
|
1381
|
+
detected_ai_tools: z.ZodArray<z.ZodEnum<{
|
|
1382
|
+
claude_code: "claude_code";
|
|
1383
|
+
codex: "codex";
|
|
1384
|
+
cursor: "cursor";
|
|
1385
|
+
}>>;
|
|
1386
|
+
generic_agent_instructions_detected: z.ZodBoolean;
|
|
1387
|
+
repo_ai_detection_status: z.ZodEnum<{
|
|
1388
|
+
partial: "partial";
|
|
1389
|
+
complete: "complete";
|
|
1390
|
+
unavailable: "unavailable";
|
|
1391
|
+
}>;
|
|
1392
|
+
event_id: z.ZodString;
|
|
1393
|
+
run_id: z.ZodString;
|
|
1394
|
+
timestamp: z.ZodString;
|
|
1395
|
+
version: z.ZodString;
|
|
1396
|
+
os: z.ZodEnum<{
|
|
1397
|
+
darwin: "darwin";
|
|
1398
|
+
linux: "linux";
|
|
1399
|
+
win32: "win32";
|
|
1400
|
+
other: "other";
|
|
1401
|
+
}>;
|
|
1402
|
+
arch: z.ZodEnum<{
|
|
1403
|
+
other: "other";
|
|
1404
|
+
x64: "x64";
|
|
1405
|
+
arm64: "arm64";
|
|
1406
|
+
ia32: "ia32";
|
|
1407
|
+
arm: "arm";
|
|
1408
|
+
}>;
|
|
1409
|
+
node_major: z.ZodNumber;
|
|
1410
|
+
environment: z.ZodEnum<{
|
|
1411
|
+
ci: "ci";
|
|
1412
|
+
ci_not_detected: "ci_not_detected";
|
|
1413
|
+
}>;
|
|
1414
|
+
invocation_source: z.ZodEnum<{
|
|
1415
|
+
git_hook: "git_hook";
|
|
1416
|
+
unspecified: "unspecified";
|
|
1417
|
+
}>;
|
|
1418
|
+
installation_id: z.ZodOptional<z.ZodString>;
|
|
1419
|
+
ci_execution_id: z.ZodOptional<z.ZodString>;
|
|
1420
|
+
ci_provider: z.ZodOptional<z.ZodEnum<{
|
|
1421
|
+
unknown: "unknown";
|
|
1422
|
+
github_actions: "github_actions";
|
|
1423
|
+
gitlab_ci: "gitlab_ci";
|
|
1424
|
+
generic: "generic";
|
|
1425
|
+
}>>;
|
|
1426
|
+
scan_mode: z.ZodOptional<z.ZodEnum<{
|
|
1427
|
+
base: "base";
|
|
1428
|
+
staged: "staged";
|
|
1429
|
+
}>>;
|
|
1430
|
+
output_format: z.ZodOptional<z.ZodEnum<{
|
|
1431
|
+
json: "json";
|
|
1432
|
+
auto: "auto";
|
|
1433
|
+
ink: "ink";
|
|
1434
|
+
text: "text";
|
|
1435
|
+
sarif: "sarif";
|
|
1436
|
+
}>>;
|
|
1437
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
1438
|
+
pass: "pass";
|
|
1439
|
+
blocked: "blocked";
|
|
1440
|
+
incomplete: "incomplete";
|
|
1441
|
+
completed: "completed";
|
|
1442
|
+
cancelled: "cancelled";
|
|
1443
|
+
preview: "preview";
|
|
1444
|
+
applied: "applied";
|
|
1445
|
+
}>>;
|
|
1446
|
+
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1447
|
+
empty_input: z.ZodOptional<z.ZodBoolean>;
|
|
1448
|
+
check_ids: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1449
|
+
formatting: "formatting";
|
|
1450
|
+
lint: "lint";
|
|
1451
|
+
types: "types";
|
|
1452
|
+
cyclomaticComplexity: "cyclomaticComplexity";
|
|
1453
|
+
readabilityComplexity: "readabilityComplexity";
|
|
1454
|
+
structuralSecurity: "structuralSecurity";
|
|
1455
|
+
secrets: "secrets";
|
|
1456
|
+
duplication: "duplication";
|
|
1457
|
+
dependencyArchitecture: "dependencyArchitecture";
|
|
1458
|
+
deadCode: "deadCode";
|
|
1459
|
+
reactCorrectness: "reactCorrectness";
|
|
1460
|
+
reactAccessibility: "reactAccessibility";
|
|
1461
|
+
vulnerabilities: "vulnerabilities";
|
|
1462
|
+
}>>>;
|
|
1463
|
+
enabled_check_ids: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1464
|
+
formatting: "formatting";
|
|
1465
|
+
lint: "lint";
|
|
1466
|
+
types: "types";
|
|
1467
|
+
cyclomaticComplexity: "cyclomaticComplexity";
|
|
1468
|
+
readabilityComplexity: "readabilityComplexity";
|
|
1469
|
+
structuralSecurity: "structuralSecurity";
|
|
1470
|
+
secrets: "secrets";
|
|
1471
|
+
duplication: "duplication";
|
|
1472
|
+
dependencyArchitecture: "dependencyArchitecture";
|
|
1473
|
+
deadCode: "deadCode";
|
|
1474
|
+
reactCorrectness: "reactCorrectness";
|
|
1475
|
+
reactAccessibility: "reactAccessibility";
|
|
1476
|
+
vulnerabilities: "vulnerabilities";
|
|
1477
|
+
}>>>;
|
|
1478
|
+
finding_count: z.ZodOptional<z.ZodNumber>;
|
|
1479
|
+
applied_count: z.ZodOptional<z.ZodNumber>;
|
|
1480
|
+
skipped_count: z.ZodOptional<z.ZodNumber>;
|
|
1481
|
+
profile: z.ZodOptional<z.ZodEnum<{
|
|
1482
|
+
custom: "custom";
|
|
1483
|
+
fast: "fast";
|
|
1484
|
+
recommended: "recommended";
|
|
1485
|
+
thorough: "thorough";
|
|
1486
|
+
}>>;
|
|
1487
|
+
hook: z.ZodOptional<z.ZodEnum<{
|
|
1488
|
+
custom: "custom";
|
|
1489
|
+
none: "none";
|
|
1490
|
+
auto: "auto";
|
|
846
1491
|
tracked: "tracked";
|
|
847
1492
|
husky: "husky";
|
|
848
1493
|
lefthook: "lefthook";
|
|
1494
|
+
"simple-git-hooks": "simple-git-hooks";
|
|
1495
|
+
raw: "raw";
|
|
849
1496
|
}>>;
|
|
850
1497
|
}, z.core.$strict>]>>;
|
|
851
1498
|
}, z.core.$strict>;
|