@stsepelin/checktrail 0.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +42 -0
- package/LICENSE +21 -0
- package/README.md +355 -0
- package/SECURITY.md +46 -0
- package/dist/src/actionlint-evidence.d.ts +2 -0
- package/dist/src/actionlint-evidence.js +166 -0
- package/dist/src/actionlint-inputs.d.ts +5 -0
- package/dist/src/actionlint-inputs.js +123 -0
- package/dist/src/actionlint-runner.d.ts +1 -0
- package/dist/src/actionlint-runner.js +122 -0
- package/dist/src/actionlint.d.ts +19 -0
- package/dist/src/actionlint.js +80 -0
- package/dist/src/adapters.d.ts +49 -0
- package/dist/src/adapters.js +430 -0
- package/dist/src/architecture.d.ts +107 -0
- package/dist/src/architecture.js +230 -0
- package/dist/src/clang-evidence.d.ts +2 -0
- package/dist/src/clang-evidence.js +194 -0
- package/dist/src/clang-protocol.d.ts +3 -0
- package/dist/src/clang-protocol.js +25 -0
- package/dist/src/clang-runner.d.ts +1 -0
- package/dist/src/clang-runner.js +159 -0
- package/dist/src/clang.d.ts +44 -0
- package/dist/src/clang.js +197 -0
- package/dist/src/cli.d.ts +2 -0
- package/dist/src/cli.js +338 -0
- package/dist/src/config.d.ts +33 -0
- package/dist/src/config.js +140 -0
- package/dist/src/contract-schema.d.ts +85 -0
- package/dist/src/contract-schema.js +56 -0
- package/dist/src/contract-worker.d.ts +1 -0
- package/dist/src/contract-worker.js +123 -0
- package/dist/src/contracts.d.ts +22 -0
- package/dist/src/contracts.js +123 -0
- package/dist/src/django-evidence.d.ts +2 -0
- package/dist/src/django-evidence.js +100 -0
- package/dist/src/django-runner.d.ts +1 -0
- package/dist/src/django-runner.js +80 -0
- package/dist/src/django.d.ts +9 -0
- package/dist/src/django.js +50 -0
- package/dist/src/dotnet-compiler.d.ts +1 -0
- package/dist/src/dotnet-compiler.js +87 -0
- package/dist/src/dotnet-evidence.d.ts +2 -0
- package/dist/src/dotnet-evidence.js +127 -0
- package/dist/src/dotnet-runner.d.ts +1 -0
- package/dist/src/dotnet-runner.js +167 -0
- package/dist/src/dotnet.d.ts +65 -0
- package/dist/src/dotnet.js +120 -0
- package/dist/src/engine.d.ts +19 -0
- package/dist/src/engine.js +239 -0
- package/dist/src/environment.d.ts +6 -0
- package/dist/src/environment.js +36 -0
- package/dist/src/eslint-evidence.d.ts +2 -0
- package/dist/src/eslint-evidence.js +98 -0
- package/dist/src/eslint-runner.d.ts +1 -0
- package/dist/src/eslint-runner.js +61 -0
- package/dist/src/eslint.d.ts +2 -0
- package/dist/src/eslint.js +40 -0
- package/dist/src/evidence.d.ts +2 -0
- package/dist/src/evidence.js +313 -0
- package/dist/src/external-adapter.d.ts +164 -0
- package/dist/src/external-adapter.js +265 -0
- package/dist/src/external-evidence.d.ts +2 -0
- package/dist/src/external-evidence.js +127 -0
- package/dist/src/external-runner.d.ts +1 -0
- package/dist/src/external-runner.js +122 -0
- package/dist/src/fastapi-evidence.d.ts +2 -0
- package/dist/src/fastapi-evidence.js +126 -0
- package/dist/src/fastapi-runner.d.ts +1 -0
- package/dist/src/fastapi-runner.js +84 -0
- package/dist/src/fastapi.d.ts +10 -0
- package/dist/src/fastapi.js +52 -0
- package/dist/src/fetch-pack.d.ts +16 -0
- package/dist/src/fetch-pack.js +154 -0
- package/dist/src/finding-policy-schema.d.ts +146 -0
- package/dist/src/finding-policy-schema.js +70 -0
- package/dist/src/finding-policy.d.ts +62 -0
- package/dist/src/finding-policy.js +206 -0
- package/dist/src/git-selection.d.ts +3 -0
- package/dist/src/git-selection.js +229 -0
- package/dist/src/go-directives.d.ts +1 -0
- package/dist/src/go-directives.js +32 -0
- package/dist/src/go-scope.d.ts +11 -0
- package/dist/src/go-scope.js +122 -0
- package/dist/src/golangci-evidence.d.ts +2 -0
- package/dist/src/golangci-evidence.js +92 -0
- package/dist/src/golangci-runner.d.ts +1 -0
- package/dist/src/golangci-runner.js +124 -0
- package/dist/src/golangci.d.ts +2 -0
- package/dist/src/golangci.js +35 -0
- package/dist/src/guidance.d.ts +98 -0
- package/dist/src/guidance.js +247 -0
- package/dist/src/index.d.ts +31 -0
- package/dist/src/index.js +16 -0
- package/dist/src/inventory.d.ts +4 -0
- package/dist/src/inventory.js +94 -0
- package/dist/src/java-compiler.d.ts +1 -0
- package/dist/src/java-compiler.js +110 -0
- package/dist/src/java-evidence.d.ts +2 -0
- package/dist/src/java-evidence.js +114 -0
- package/dist/src/java-runner.d.ts +1 -0
- package/dist/src/java-runner.js +79 -0
- package/dist/src/java.d.ts +25 -0
- package/dist/src/java.js +102 -0
- package/dist/src/jest-evidence.d.ts +2 -0
- package/dist/src/jest-evidence.js +117 -0
- package/dist/src/jest-runner.d.ts +1 -0
- package/dist/src/jest-runner.js +46 -0
- package/dist/src/jest.d.ts +2 -0
- package/dist/src/jest.js +36 -0
- package/dist/src/junit.d.ts +18 -0
- package/dist/src/junit.js +157 -0
- package/dist/src/laravel-evidence.d.ts +2 -0
- package/dist/src/laravel-evidence.js +175 -0
- package/dist/src/laravel-runner.d.ts +1 -0
- package/dist/src/laravel-runner.js +168 -0
- package/dist/src/laravel.d.ts +8 -0
- package/dist/src/laravel.js +50 -0
- package/dist/src/local-tool.d.ts +1 -0
- package/dist/src/local-tool.js +19 -0
- package/dist/src/mcp.d.ts +14 -0
- package/dist/src/mcp.js +362 -0
- package/dist/src/mutation.d.ts +118 -0
- package/dist/src/mutation.js +370 -0
- package/dist/src/mypy-evidence.d.ts +2 -0
- package/dist/src/mypy-evidence.js +63 -0
- package/dist/src/mypy.d.ts +2 -0
- package/dist/src/mypy.js +59 -0
- package/dist/src/node-reporter.d.ts +1 -0
- package/dist/src/node-reporter.js +28 -0
- package/dist/src/nuxt-evidence.d.ts +2 -0
- package/dist/src/nuxt-evidence.js +160 -0
- package/dist/src/nuxt-protocol.d.ts +52 -0
- package/dist/src/nuxt-protocol.js +29 -0
- package/dist/src/nuxt-runner.d.ts +1 -0
- package/dist/src/nuxt-runner.js +165 -0
- package/dist/src/nuxt.d.ts +24 -0
- package/dist/src/nuxt.js +105 -0
- package/dist/src/output.d.ts +3 -0
- package/dist/src/output.js +48 -0
- package/dist/src/phpstan-evidence.d.ts +2 -0
- package/dist/src/phpstan-evidence.js +81 -0
- package/dist/src/phpstan.d.ts +2 -0
- package/dist/src/phpstan.js +51 -0
- package/dist/src/phpunit-evidence.d.ts +2 -0
- package/dist/src/phpunit-evidence.js +53 -0
- package/dist/src/phpunit.d.ts +2 -0
- package/dist/src/phpunit.js +58 -0
- package/dist/src/pint-evidence.d.ts +2 -0
- package/dist/src/pint-evidence.js +79 -0
- package/dist/src/pint-runner.d.ts +1 -0
- package/dist/src/pint-runner.js +53 -0
- package/dist/src/pint.d.ts +2 -0
- package/dist/src/pint.js +37 -0
- package/dist/src/playwright-evidence.d.ts +2 -0
- package/dist/src/playwright-evidence.js +127 -0
- package/dist/src/playwright-reporter.d.ts +10 -0
- package/dist/src/playwright-reporter.js +37 -0
- package/dist/src/playwright-runner.d.ts +1 -0
- package/dist/src/playwright-runner.js +61 -0
- package/dist/src/playwright.d.ts +2 -0
- package/dist/src/playwright.js +35 -0
- package/dist/src/policy-pack.d.ts +21 -0
- package/dist/src/policy-pack.js +41 -0
- package/dist/src/pytest-evidence.d.ts +2 -0
- package/dist/src/pytest-evidence.js +116 -0
- package/dist/src/pytest-runner.d.ts +1 -0
- package/dist/src/pytest-runner.js +48 -0
- package/dist/src/pytest.d.ts +2 -0
- package/dist/src/pytest.js +25 -0
- package/dist/src/report-validation.d.ts +129 -0
- package/dist/src/report-validation.js +27 -0
- package/dist/src/review.d.ts +270 -0
- package/dist/src/review.js +349 -0
- package/dist/src/ruby.d.ts +2 -0
- package/dist/src/ruby.js +25 -0
- package/dist/src/ruff-evidence.d.ts +2 -0
- package/dist/src/ruff-evidence.js +99 -0
- package/dist/src/ruff.d.ts +2 -0
- package/dist/src/ruff.js +40 -0
- package/dist/src/runner.d.ts +8 -0
- package/dist/src/runner.js +117 -0
- package/dist/src/runtime-inventory.d.ts +112 -0
- package/dist/src/runtime-inventory.js +200 -0
- package/dist/src/rust-dep-info.d.ts +1 -0
- package/dist/src/rust-dep-info.js +46 -0
- package/dist/src/rust-evidence.d.ts +2 -0
- package/dist/src/rust-evidence.js +157 -0
- package/dist/src/rust-runner.d.ts +1 -0
- package/dist/src/rust-runner.js +161 -0
- package/dist/src/rust.d.ts +7 -0
- package/dist/src/rust.js +39 -0
- package/dist/src/sarif.d.ts +86 -0
- package/dist/src/sarif.js +113 -0
- package/dist/src/schemas.d.ts +393 -0
- package/dist/src/schemas.js +222 -0
- package/dist/src/staticcheck-evidence.d.ts +2 -0
- package/dist/src/staticcheck-evidence.js +75 -0
- package/dist/src/swift.d.ts +2 -0
- package/dist/src/swift.js +20 -0
- package/dist/src/task-store.d.ts +37 -0
- package/dist/src/task-store.js +349 -0
- package/dist/src/tool-versions.d.ts +3 -0
- package/dist/src/tool-versions.js +260 -0
- package/dist/src/types.d.ts +157 -0
- package/dist/src/types.js +37 -0
- package/dist/src/typescript-build-evidence.d.ts +2 -0
- package/dist/src/typescript-build-evidence.js +86 -0
- package/dist/src/typescript-build-runner.d.ts +1 -0
- package/dist/src/typescript-build-runner.js +132 -0
- package/dist/src/typescript-build.d.ts +2 -0
- package/dist/src/typescript-build.js +41 -0
- package/dist/src/typescript.d.ts +2 -0
- package/dist/src/typescript.js +54 -0
- package/dist/src/validation-task-worker.d.ts +1 -0
- package/dist/src/validation-task-worker.js +205 -0
- package/dist/src/validation-tasks-protocol.d.ts +69 -0
- package/dist/src/validation-tasks-protocol.js +57 -0
- package/dist/src/validation-tasks.d.ts +11 -0
- package/dist/src/validation-tasks.js +144 -0
- package/dist/src/vitest-evidence.d.ts +2 -0
- package/dist/src/vitest-evidence.js +112 -0
- package/dist/src/vitest-runner.d.ts +1 -0
- package/dist/src/vitest-runner.js +48 -0
- package/dist/src/vitest.d.ts +2 -0
- package/dist/src/vitest.js +36 -0
- package/dist/src/vue-router-capture.d.ts +42 -0
- package/dist/src/vue-router-capture.js +87 -0
- package/dist/src/vue-router-evidence.d.ts +2 -0
- package/dist/src/vue-router-evidence.js +126 -0
- package/dist/src/vue-router-protocol.d.ts +63 -0
- package/dist/src/vue-router-protocol.js +44 -0
- package/dist/src/vue-router-runner.d.ts +1 -0
- package/dist/src/vue-router-runner.js +88 -0
- package/dist/src/vue-router.d.ts +23 -0
- package/dist/src/vue-router.js +108 -0
- package/dist/src/vue-tsc-runner.d.ts +1 -0
- package/dist/src/vue-tsc-runner.js +24 -0
- package/dist/src/workspace.d.ts +7 -0
- package/dist/src/workspace.js +53 -0
- package/docs/ACCEPTANCE.md +56 -0
- package/docs/ACTIONLINT.md +112 -0
- package/docs/ARCHITECTURE-POLICY.md +82 -0
- package/docs/ARCHITECTURE.md +122 -0
- package/docs/CLANG.md +113 -0
- package/docs/CLIENTS.md +109 -0
- package/docs/CONTRACTS.md +73 -0
- package/docs/DEPENDENCIES.md +42 -0
- package/docs/DJANGO.md +70 -0
- package/docs/DOTNET.md +114 -0
- package/docs/ENVIRONMENTS.md +52 -0
- package/docs/ESLINT.md +68 -0
- package/docs/EVALUATION.md +124 -0
- package/docs/EXECUTION.md +250 -0
- package/docs/EXTERNAL-ADAPTERS.md +170 -0
- package/docs/EXTERNAL-EVALUATION.md +155 -0
- package/docs/EXTERNAL-RUFF-EVALUATION.md +85 -0
- package/docs/FASTAPI.md +73 -0
- package/docs/FINDING-POLICY.md +67 -0
- package/docs/GO-RACE.md +19 -0
- package/docs/GO-SCOPE.md +63 -0
- package/docs/GOLANGCI-LINT.md +64 -0
- package/docs/GUIDANCE.md +46 -0
- package/docs/IMPACT-MEASUREMENT.md +97 -0
- package/docs/INSTALLATION.md +102 -0
- package/docs/JAVA.md +79 -0
- package/docs/JEST.md +36 -0
- package/docs/JUNIT.md +31 -0
- package/docs/LANGUAGES.md +113 -0
- package/docs/LARAVEL.md +111 -0
- package/docs/MCP-COMPATIBILITY.md +68 -0
- package/docs/MUTATIONS.md +93 -0
- package/docs/MYPY.md +37 -0
- package/docs/NATIVE-CI.md +96 -0
- package/docs/NUXT.md +123 -0
- package/docs/PACK-DISTRIBUTION.md +98 -0
- package/docs/PERFORMANCE.md +71 -0
- package/docs/PEST.md +36 -0
- package/docs/PHPSTAN.md +48 -0
- package/docs/PHPUNIT.md +32 -0
- package/docs/PINT.md +41 -0
- package/docs/PLAN.md +265 -0
- package/docs/PLAYWRIGHT.md +73 -0
- package/docs/POLICY-PACKS.md +106 -0
- package/docs/PRIOR-WORKFLOW-EVALUATION.md +116 -0
- package/docs/PUBLICATION.md +28 -0
- package/docs/PYTEST.md +51 -0
- package/docs/RELEASE.md +115 -0
- package/docs/RENAMING.md +55 -0
- package/docs/REVIEW-EXCHANGE.md +136 -0
- package/docs/RUBY.md +50 -0
- package/docs/RUFF.md +39 -0
- package/docs/RUNTIME-INVENTORY.md +56 -0
- package/docs/RUST.md +74 -0
- package/docs/SARIF.md +64 -0
- package/docs/STATUS.md +530 -0
- package/docs/SWIFT.md +48 -0
- package/docs/TASK-STORAGE.md +141 -0
- package/docs/TOOL-IDENTITY.md +30 -0
- package/docs/TYPESCRIPT-BUILD.md +55 -0
- package/docs/VALIDATION-TASKS.md +119 -0
- package/docs/VITEST.md +36 -0
- package/docs/VUE-ROUTER.md +130 -0
- package/docs/VUE-TSC.md +26 -0
- package/docs/WORKSPACES.md +81 -0
- package/docs/licenses/nodable-entities-3.0.0.txt +21 -0
- package/docs/measurements/client-claude-before-schema-fix-darwin-arm64-node26.json +60 -0
- package/docs/measurements/client-claude-darwin-arm64-node26.json +55 -0
- package/docs/measurements/client-codex-darwin-arm64-node26.json +175 -0
- package/docs/measurements/evaluation-corpus-repo-verifier.json +332 -0
- package/docs/measurements/evaluation-darwin-arm64-node26.json +1236 -0
- package/docs/measurements/evaluation-linux-arm64-node22.json +1236 -0
- package/docs/measurements/external-eslint-darwin-arm64-node26.json +11866 -0
- package/docs/measurements/external-eslint-linux-arm64-node22.json +11866 -0
- package/docs/measurements/external-eslint-preservation.json +1527 -0
- package/docs/measurements/external-ruff-darwin-arm64-node26.json +1031 -0
- package/docs/measurements/external-ruff-linux-arm64-node22.json +1031 -0
- package/docs/measurements/hosted-ci-52ba415.json +1005 -0
- package/docs/measurements/impact-darwin-arm64-node26.json +6685 -0
- package/docs/measurements/impact-linux-arm64-node22.json +6690 -0
- package/docs/measurements/performance-darwin-arm64-node26.json +845 -0
- package/docs/measurements/performance-linux-arm64-node22.json +845 -0
- package/docs/measurements/required-native-profiles.json +500 -0
- package/package.json +72 -0
- package/packs/actionlint.json +8 -0
- package/packs/cpp.json +8 -0
- package/packs/dotnet.json +8 -0
- package/packs/go.json +7 -0
- package/packs/java.json +8 -0
- package/packs/javascript-node.json +7 -0
- package/packs/nuxt.json +7 -0
- package/packs/php-pest.json +7 -0
- package/packs/php-phpunit.json +7 -0
- package/packs/python-pytest.json +7 -0
- package/packs/ruby.json +7 -0
- package/packs/rust.json +7 -0
- package/packs/swift.json +7 -0
- package/packs/vue-router.json +7 -0
- package/packs/vue.json +11 -0
- package/schemas/actionlint-config.schema.json +19 -0
- package/schemas/architecture-policy.schema.json +51 -0
- package/schemas/architecture-report.schema.json +123 -0
- package/schemas/architecture-summary.schema.json +82 -0
- package/schemas/clang-database.schema.json +23 -0
- package/schemas/config.schema.json +69 -0
- package/schemas/contract-bundle.schema.json +78 -0
- package/schemas/contract-report.schema.json +114 -0
- package/schemas/contract-summary.schema.json +72 -0
- package/schemas/dependency-graph.schema.json +65 -0
- package/schemas/django-config.schema.json +16 -0
- package/schemas/dotnet-config.schema.json +60 -0
- package/schemas/external-manifest.schema.json +97 -0
- package/schemas/external-reference.schema.json +10 -0
- package/schemas/external-request.schema.json +56 -0
- package/schemas/external-result.schema.json +111 -0
- package/schemas/fastapi-config.schema.json +27 -0
- package/schemas/finding-baseline.schema.json +92 -0
- package/schemas/finding-comparison-summary.schema.json +95 -0
- package/schemas/finding-comparison.schema.json +121 -0
- package/schemas/guidance-context.schema.json +34 -0
- package/schemas/guidance-report.schema.json +176 -0
- package/schemas/guidance-summary.schema.json +68 -0
- package/schemas/java-config.schema.json +24 -0
- package/schemas/junit.schema.json +69 -0
- package/schemas/laravel-config.schema.json +11 -0
- package/schemas/mutation-recipe.schema.json +31 -0
- package/schemas/mutation-report.schema.json +238 -0
- package/schemas/mutation-summary.schema.json +98 -0
- package/schemas/nuxt-config.schema.json +51 -0
- package/schemas/plan-summary.schema.json +63 -0
- package/schemas/plan.schema.json +244 -0
- package/schemas/policy-pack.schema.json +41 -0
- package/schemas/report-summary.schema.json +100 -0
- package/schemas/report.schema.json +463 -0
- package/schemas/review-assessment.schema.json +133 -0
- package/schemas/review-context-summary.schema.json +31 -0
- package/schemas/review-context.schema.json +254 -0
- package/schemas/review-receipt-summary.schema.json +104 -0
- package/schemas/review-receipt.schema.json +271 -0
- package/schemas/review-selection.schema.json +30 -0
- package/schemas/runtime-comparison-summary.schema.json +68 -0
- package/schemas/runtime-comparison.schema.json +127 -0
- package/schemas/runtime-inventory.schema.json +99 -0
- package/schemas/vue-router-config.schema.json +67 -0
- package/server.json +47 -0
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import { nuxtEvidence } from "./nuxt-evidence.js";
|
|
2
|
+
import { externalEvidence } from "./external-evidence.js";
|
|
3
|
+
import { actionlintEvidence } from "./actionlint-evidence.js";
|
|
4
|
+
import { clangEvidence } from "./clang-evidence.js";
|
|
5
|
+
import { javaEvidence } from "./java-evidence.js";
|
|
6
|
+
import { dotnetEvidence } from "./dotnet-evidence.js";
|
|
7
|
+
import { rustEvidence } from "./rust-evidence.js";
|
|
8
|
+
import { laravelEvidence } from "./laravel-evidence.js";
|
|
9
|
+
import { pintEvidence } from "./pint-evidence.js";
|
|
10
|
+
import { fastapiEvidence } from "./fastapi-evidence.js";
|
|
11
|
+
import { vueRouterEvidence } from "./vue-router-evidence.js";
|
|
12
|
+
import { djangoEvidence } from "./django-evidence.js";
|
|
13
|
+
import path from "node:path";
|
|
14
|
+
import { phpunitEvidence } from "./phpunit-evidence.js";
|
|
15
|
+
import { phpstanEvidence } from "./phpstan-evidence.js";
|
|
16
|
+
import { mypyEvidence } from "./mypy-evidence.js";
|
|
17
|
+
import { ruffEvidence } from "./ruff-evidence.js";
|
|
18
|
+
import { pytestEvidence } from "./pytest-evidence.js";
|
|
19
|
+
import { eslintEvidence } from "./eslint-evidence.js";
|
|
20
|
+
import { golangciEvidence } from "./golangci-evidence.js";
|
|
21
|
+
import { typescriptBuildEvidence } from "./typescript-build-evidence.js";
|
|
22
|
+
import { goScopeComplete } from "./go-scope.js";
|
|
23
|
+
import { staticcheckEvidence } from "./staticcheck-evidence.js";
|
|
24
|
+
import { playwrightEvidence } from "./playwright-evidence.js";
|
|
25
|
+
import { jestEvidence } from "./jest-evidence.js";
|
|
26
|
+
import { vitestEvidence } from "./vitest-evidence.js";
|
|
27
|
+
function nodeTests(text, expectedFiles) {
|
|
28
|
+
const result = { total: 0, passed: 0, failed: 0, skipped: 0 };
|
|
29
|
+
const files = new Set();
|
|
30
|
+
let globalSummaries = 0;
|
|
31
|
+
let globalCounts;
|
|
32
|
+
try {
|
|
33
|
+
for (const line of text.split("\n").filter(Boolean)) {
|
|
34
|
+
const event = JSON.parse(line);
|
|
35
|
+
if (event.type !== "test:summary")
|
|
36
|
+
continue;
|
|
37
|
+
if (!event.data)
|
|
38
|
+
return undefined;
|
|
39
|
+
const counts = event.data.counts;
|
|
40
|
+
if (!counts)
|
|
41
|
+
return undefined;
|
|
42
|
+
for (const key of [
|
|
43
|
+
"tests",
|
|
44
|
+
"passed",
|
|
45
|
+
"failed",
|
|
46
|
+
"skipped",
|
|
47
|
+
"todo",
|
|
48
|
+
"cancelled",
|
|
49
|
+
]) {
|
|
50
|
+
if (typeof counts[key] !== "number" ||
|
|
51
|
+
!Number.isSafeInteger(counts[key]) ||
|
|
52
|
+
counts[key] < 0)
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
const total = counts.tests;
|
|
56
|
+
const passed = counts.passed;
|
|
57
|
+
const failed = counts.failed;
|
|
58
|
+
const skipped = counts.skipped + counts.todo;
|
|
59
|
+
if (counts.cancelled !== 0 || total !== passed + failed + skipped)
|
|
60
|
+
return undefined;
|
|
61
|
+
if (event.data.file === undefined) {
|
|
62
|
+
globalSummaries++;
|
|
63
|
+
globalCounts = { total, passed, failed, skipped };
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
if (typeof event.data.file !== "string" || files.has(event.data.file))
|
|
67
|
+
return undefined;
|
|
68
|
+
files.add(event.data.file);
|
|
69
|
+
result.total += total;
|
|
70
|
+
result.passed += passed;
|
|
71
|
+
result.failed += failed;
|
|
72
|
+
result.skipped += skipped;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
catch {
|
|
76
|
+
return undefined;
|
|
77
|
+
}
|
|
78
|
+
// Node counts an empty file as a passing test, but emits no file-level summary.
|
|
79
|
+
return files.size === expectedFiles &&
|
|
80
|
+
globalSummaries === 1 &&
|
|
81
|
+
JSON.stringify(result) === JSON.stringify(globalCounts)
|
|
82
|
+
? result
|
|
83
|
+
: undefined;
|
|
84
|
+
}
|
|
85
|
+
function pythonTests(text) {
|
|
86
|
+
const runs = [...text.matchAll(/^Ran (\d+) tests? in [\d.]+s\r?$/gm)];
|
|
87
|
+
if (runs.length !== 1)
|
|
88
|
+
return undefined;
|
|
89
|
+
const total = Number(runs[0]?.[1]);
|
|
90
|
+
if (!Number.isSafeInteger(total))
|
|
91
|
+
return undefined;
|
|
92
|
+
const finals = [...text.matchAll(/^(OK|FAILED)(?: \(([^\r\n]*)\))?\r?$/gm)];
|
|
93
|
+
if (finals.length !== 1)
|
|
94
|
+
return undefined;
|
|
95
|
+
const detail = finals[0]?.[2] ?? "";
|
|
96
|
+
const fields = detail ? detail.split(", ") : [];
|
|
97
|
+
if (fields.some((field) => !/^(skipped|expected failures|unexpected successes|failures|errors)=\d+$/.test(field)))
|
|
98
|
+
return undefined;
|
|
99
|
+
if (new Set(fields.map((field) => field.split("=")[0])).size !== fields.length)
|
|
100
|
+
return undefined;
|
|
101
|
+
const count = (key) => Number(new RegExp(`(?:^|, )${key}=(\\d+)(?:,|$)`).exec(detail)?.[1] ?? 0);
|
|
102
|
+
const skipped = count("skipped") + count("expected failures");
|
|
103
|
+
const failed = count("failures") + count("errors") + count("unexpected successes");
|
|
104
|
+
if (skipped + failed > total || (finals[0]?.[1] === "FAILED" && failed === 0))
|
|
105
|
+
return undefined;
|
|
106
|
+
return { total, passed: total - skipped - failed, failed, skipped };
|
|
107
|
+
}
|
|
108
|
+
function goTests(text, allowPackageFailures = false) {
|
|
109
|
+
const result = { total: 0, passed: 0, failed: 0, skipped: 0 };
|
|
110
|
+
const completed = new Set();
|
|
111
|
+
const packages = new Set();
|
|
112
|
+
const startedTests = new Set();
|
|
113
|
+
const startedPackages = new Set();
|
|
114
|
+
try {
|
|
115
|
+
for (const line of text.split("\n").filter(Boolean)) {
|
|
116
|
+
const event = JSON.parse(line);
|
|
117
|
+
if (typeof event !== "object" ||
|
|
118
|
+
event === null ||
|
|
119
|
+
!("Action" in event) ||
|
|
120
|
+
typeof event.Action !== "string")
|
|
121
|
+
return undefined;
|
|
122
|
+
if (!["start", "run", "pass", "fail", "skip"].includes(event.Action))
|
|
123
|
+
continue;
|
|
124
|
+
if (!("Package" in event) || typeof event.Package !== "string")
|
|
125
|
+
return undefined;
|
|
126
|
+
if (event.Action === "start") {
|
|
127
|
+
if (startedPackages.has(event.Package))
|
|
128
|
+
return undefined;
|
|
129
|
+
startedPackages.add(event.Package);
|
|
130
|
+
continue;
|
|
131
|
+
}
|
|
132
|
+
if (event.Action === "run") {
|
|
133
|
+
if (!("Test" in event) || typeof event.Test !== "string")
|
|
134
|
+
return undefined;
|
|
135
|
+
const key = JSON.stringify([event.Package, event.Test]);
|
|
136
|
+
if (startedTests.has(key))
|
|
137
|
+
return undefined;
|
|
138
|
+
startedTests.add(key);
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
if (!("Test" in event)) {
|
|
142
|
+
if (packages.has(event.Package) || !startedPackages.has(event.Package))
|
|
143
|
+
return undefined;
|
|
144
|
+
packages.add(event.Package);
|
|
145
|
+
if (event.Action === "fail" && !allowPackageFailures)
|
|
146
|
+
return undefined;
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
if (typeof event.Test !== "string")
|
|
150
|
+
return undefined;
|
|
151
|
+
const key = JSON.stringify([event.Package, event.Test]);
|
|
152
|
+
if (completed.has(key) || !startedTests.has(key))
|
|
153
|
+
return undefined;
|
|
154
|
+
completed.add(key);
|
|
155
|
+
result.total++;
|
|
156
|
+
if (event.Action === "pass")
|
|
157
|
+
result.passed++;
|
|
158
|
+
else if (event.Action === "fail")
|
|
159
|
+
result.failed++;
|
|
160
|
+
else
|
|
161
|
+
result.skipped++;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
catch {
|
|
165
|
+
return undefined;
|
|
166
|
+
}
|
|
167
|
+
return packages.size &&
|
|
168
|
+
packages.size === startedPackages.size &&
|
|
169
|
+
completed.size === startedTests.size
|
|
170
|
+
? result
|
|
171
|
+
: undefined;
|
|
172
|
+
}
|
|
173
|
+
export function evaluate(check, processes, root) {
|
|
174
|
+
const result = {
|
|
175
|
+
...(check.external ? { external: check.external } : {}),
|
|
176
|
+
id: check.id,
|
|
177
|
+
adapter: check.adapter,
|
|
178
|
+
project: check.project,
|
|
179
|
+
scope: check.scope,
|
|
180
|
+
status: "passed",
|
|
181
|
+
reason: "The planned check completed successfully.",
|
|
182
|
+
processes,
|
|
183
|
+
};
|
|
184
|
+
const set = (status, reason) => ({
|
|
185
|
+
...result,
|
|
186
|
+
status,
|
|
187
|
+
reason,
|
|
188
|
+
});
|
|
189
|
+
if (check.unavailableReason)
|
|
190
|
+
return set("unavailable", check.unavailableReason);
|
|
191
|
+
if (processes.length !== check.commands.length || processes.length === 0)
|
|
192
|
+
return set("inconclusive", "Not all planned commands ran.");
|
|
193
|
+
if (processes.some((p) => p.cancelled))
|
|
194
|
+
return set("inconclusive", "Execution was cancelled.");
|
|
195
|
+
if (processes.some((p) => p.timedOut))
|
|
196
|
+
return set("inconclusive", "Execution exceeded its time limit.");
|
|
197
|
+
if (processes.some((p) => p.truncated))
|
|
198
|
+
return set("inconclusive", "Output exceeded its limit; evidence is incomplete.");
|
|
199
|
+
if (processes.some((p) => p.errorCode === "ENOENT" || p.errorCode === "UNSUPPORTED_PLATFORM"))
|
|
200
|
+
return set("unavailable", "A required executable or supported execution platform is unavailable.");
|
|
201
|
+
if (processes.some((p) => p.errorCode || p.signal || p.exitCode === null))
|
|
202
|
+
return set("error", "The process could not complete normally.");
|
|
203
|
+
if (check.parser === "external-json")
|
|
204
|
+
return { ...result, ...externalEvidence(check, processes) };
|
|
205
|
+
if (check.parser === "typescript-build-json")
|
|
206
|
+
return { ...result, ...typescriptBuildEvidence(check, processes, root) };
|
|
207
|
+
if (check.parser === "golangci-json")
|
|
208
|
+
return { ...result, ...golangciEvidence(check, processes, root) };
|
|
209
|
+
if (check.parser === "staticcheck-json")
|
|
210
|
+
return { ...result, ...staticcheckEvidence(check, processes, root) };
|
|
211
|
+
if (check.parser === "go-scope-test" ||
|
|
212
|
+
check.parser === "go-scope-analysis") {
|
|
213
|
+
const native = evaluate({
|
|
214
|
+
...check,
|
|
215
|
+
parser: check.kind === "test" ? "go-json" : "exit",
|
|
216
|
+
commands: check.commands.slice(1),
|
|
217
|
+
}, processes.slice(1), root);
|
|
218
|
+
if (native.status !== "passed")
|
|
219
|
+
return {
|
|
220
|
+
...result,
|
|
221
|
+
status: native.status,
|
|
222
|
+
reason: native.reason,
|
|
223
|
+
...(native.tests ? { tests: native.tests } : {}),
|
|
224
|
+
};
|
|
225
|
+
if (!goScopeComplete(check, processes[0], root, check.kind === "test" ? processes[1]?.stdout : undefined))
|
|
226
|
+
return set("inconclusive", "Native Go selection omitted inventoried source, a package has no passing test, or scope could not be established.");
|
|
227
|
+
return { ...result, ...(native.tests ? { tests: native.tests } : {}) };
|
|
228
|
+
}
|
|
229
|
+
if (check.parser === "eslint-json")
|
|
230
|
+
return { ...result, ...eslintEvidence(check, processes, root) };
|
|
231
|
+
if (check.parser === "pint-json")
|
|
232
|
+
return { ...result, ...pintEvidence(check, processes, root) };
|
|
233
|
+
if (check.parser === "phpunit-junit")
|
|
234
|
+
return { ...result, ...phpunitEvidence(check, processes, root) };
|
|
235
|
+
if (check.parser === "phpstan-json")
|
|
236
|
+
return { ...result, ...phpstanEvidence(check, processes, root) };
|
|
237
|
+
if (check.parser === "mypy-json")
|
|
238
|
+
return { ...result, ...mypyEvidence(check, processes, root) };
|
|
239
|
+
if (check.parser === "ruff-json")
|
|
240
|
+
return { ...result, ...ruffEvidence(check, processes, root) };
|
|
241
|
+
if (check.parser === "pytest-json")
|
|
242
|
+
return { ...result, ...pytestEvidence(check, processes, root) };
|
|
243
|
+
if (check.parser === "nuxt-json")
|
|
244
|
+
return { ...result, ...nuxtEvidence(check, processes) };
|
|
245
|
+
if (check.parser === "vue-router-json")
|
|
246
|
+
return { ...result, ...vueRouterEvidence(check, processes) };
|
|
247
|
+
if (check.parser === "fastapi-json")
|
|
248
|
+
return { ...result, ...fastapiEvidence(check, processes) };
|
|
249
|
+
if (check.parser === "clang-json")
|
|
250
|
+
return { ...result, ...clangEvidence(check, processes, root) };
|
|
251
|
+
if (check.parser === "java-json")
|
|
252
|
+
return { ...result, ...javaEvidence(check, processes, root) };
|
|
253
|
+
if (check.parser === "actionlint-json")
|
|
254
|
+
return { ...result, ...actionlintEvidence(check, processes) };
|
|
255
|
+
if (check.parser === "dotnet-json")
|
|
256
|
+
return { ...result, ...dotnetEvidence(check, processes, root) };
|
|
257
|
+
if (check.parser === "rust-json")
|
|
258
|
+
return { ...result, ...rustEvidence(check, processes, root) };
|
|
259
|
+
if (check.parser === "laravel-json")
|
|
260
|
+
return { ...result, ...laravelEvidence(check, processes) };
|
|
261
|
+
if (check.parser === "django-json")
|
|
262
|
+
return { ...result, ...djangoEvidence(check, processes) };
|
|
263
|
+
if (check.parser === "playwright-json")
|
|
264
|
+
return { ...result, ...playwrightEvidence(check, processes, root) };
|
|
265
|
+
if (check.parser === "jest-json")
|
|
266
|
+
return { ...result, ...jestEvidence(check, processes, root) };
|
|
267
|
+
if (check.parser === "vitest-json")
|
|
268
|
+
return { ...result, ...vitestEvidence(check, processes, root) };
|
|
269
|
+
if (check.kind === "test") {
|
|
270
|
+
const stdout = processes.map((p) => p.stdout).join("\n");
|
|
271
|
+
const stderr = processes.map((p) => p.stderr).join("\n");
|
|
272
|
+
const tests = check.parser === "node-events"
|
|
273
|
+
? nodeTests(stdout, check.scope.length)
|
|
274
|
+
: check.parser === "unittest"
|
|
275
|
+
? pythonTests(stderr)
|
|
276
|
+
: goTests(stdout, processes.some((process) => process.exitCode !== 0));
|
|
277
|
+
if (tests)
|
|
278
|
+
result.tests = tests;
|
|
279
|
+
if (processes.some((process) => process.exitCode !== 0))
|
|
280
|
+
return set("failed", tests?.failed
|
|
281
|
+
? "Test evidence contains failures."
|
|
282
|
+
: "The tool returned a nonzero exit code; inspect detailed evidence for code or environment causes.");
|
|
283
|
+
if (!tests)
|
|
284
|
+
return set("inconclusive", "The test evidence could not be parsed unambiguously.");
|
|
285
|
+
if (tests.failed)
|
|
286
|
+
return set("failed", "Test evidence contains failures.");
|
|
287
|
+
if (tests.passed === 0)
|
|
288
|
+
return set("inconclusive", "No passing, non-skipped tests were observed.");
|
|
289
|
+
}
|
|
290
|
+
if (processes.some((p) => p.exitCode !== 0))
|
|
291
|
+
return set("failed", "The tool returned a nonzero exit code; inspect detailed evidence for code or environment causes.");
|
|
292
|
+
if (check.parser === "ruby-syntax" &&
|
|
293
|
+
processes.some((process) => process.stdout.trim() !== "Syntax OK" || process.stderr.trim()))
|
|
294
|
+
return set("inconclusive", "Ruby did not provide an unambiguous syntax-success result for every planned file.");
|
|
295
|
+
if (check.parser === "silent-syntax" &&
|
|
296
|
+
processes.some((process) => process.stdout.trim() || process.stderr.trim()))
|
|
297
|
+
return set("inconclusive", "The compiler emitted output inconsistent with a clean syntax-only result.");
|
|
298
|
+
if (check.parser === "empty" &&
|
|
299
|
+
processes.some((p) => p.stdout.trim() || p.stderr.trim()))
|
|
300
|
+
return set("failed", "The formatter reported files or diagnostics.");
|
|
301
|
+
if (check.parser === "tsc-files") {
|
|
302
|
+
const files = processes.flatMap((p) => p.stdout.split(/\r?\n/).filter(Boolean));
|
|
303
|
+
if (!root ||
|
|
304
|
+
!check.scope.length ||
|
|
305
|
+
processes.some((p) => p.stderr.trim()) ||
|
|
306
|
+
files.some((file) => !path.isAbsolute(file)))
|
|
307
|
+
return set("inconclusive", "The compiler file list could not be interpreted unambiguously.");
|
|
308
|
+
const included = new Set(files.map((file) => path.normalize(file)));
|
|
309
|
+
if (check.scope.some((file) => !included.has(path.resolve(root, check.project, file))))
|
|
310
|
+
return set("inconclusive", "The compiler did not include every inventoried TypeScript file; inspect tsconfig scope.");
|
|
311
|
+
}
|
|
312
|
+
return result;
|
|
313
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { Check, Inventory, Project } from "./types.js";
|
|
3
|
+
export declare const externalReferenceSchema: z.ZodObject<{
|
|
4
|
+
path: z.ZodString;
|
|
5
|
+
sha256: z.ZodString;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
export declare const externalReferencesSchema: z.ZodArray<z.ZodObject<{
|
|
8
|
+
path: z.ZodString;
|
|
9
|
+
sha256: z.ZodString;
|
|
10
|
+
}, z.core.$strict>>;
|
|
11
|
+
export declare const externalIdentitySchema: z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
version: z.ZodString;
|
|
14
|
+
sha256: z.ZodString;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
export declare const externalManifestSchema: z.ZodObject<{
|
|
17
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
version: z.ZodString;
|
|
20
|
+
description: z.ZodString;
|
|
21
|
+
runtime: z.ZodEnum<{
|
|
22
|
+
node: "node";
|
|
23
|
+
python3: "python3";
|
|
24
|
+
php: "php";
|
|
25
|
+
native: "native";
|
|
26
|
+
}>;
|
|
27
|
+
entry: z.ZodString;
|
|
28
|
+
files: z.ZodArray<z.ZodObject<{
|
|
29
|
+
path: z.ZodString;
|
|
30
|
+
sha256: z.ZodString;
|
|
31
|
+
}, z.core.$strict>>;
|
|
32
|
+
markers: z.ZodArray<z.ZodString>;
|
|
33
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
34
|
+
id: z.ZodString;
|
|
35
|
+
kind: z.ZodEnum<{
|
|
36
|
+
format: "format";
|
|
37
|
+
analysis: "analysis";
|
|
38
|
+
syntax: "syntax";
|
|
39
|
+
test: "test";
|
|
40
|
+
}>;
|
|
41
|
+
description: z.ZodString;
|
|
42
|
+
failOn: z.ZodEnum<{
|
|
43
|
+
error: "error";
|
|
44
|
+
warning: "warning";
|
|
45
|
+
}>;
|
|
46
|
+
scope: z.ZodObject<{
|
|
47
|
+
extensions: z.ZodArray<z.ZodString>;
|
|
48
|
+
names: z.ZodArray<z.ZodString>;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
}, z.core.$strict>>;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
export type ExternalReference = z.infer<typeof externalReferenceSchema>;
|
|
53
|
+
export type ExternalIdentity = z.infer<typeof externalIdentitySchema>;
|
|
54
|
+
export interface ExternalAdapter {
|
|
55
|
+
reference: ExternalReference;
|
|
56
|
+
identity: ExternalIdentity;
|
|
57
|
+
manifest: z.infer<typeof externalManifestSchema>;
|
|
58
|
+
contents: Map<string, Buffer>;
|
|
59
|
+
}
|
|
60
|
+
export declare function loadExternalAdapter(input: ExternalReference, retainBytes?: boolean): Promise<ExternalAdapter>;
|
|
61
|
+
export declare function loadExternalAdapters(inputs?: ExternalReference[]): Promise<ExternalAdapter[]>;
|
|
62
|
+
export declare function externalPolicyFingerprint(policy: string, adapters: ExternalAdapter[]): string;
|
|
63
|
+
export declare function externalScope(project: Project, check: ExternalAdapter["manifest"]["checks"][number]): string[];
|
|
64
|
+
export declare const externalInvocationSchema: z.ZodObject<{
|
|
65
|
+
reference: z.ZodObject<{
|
|
66
|
+
path: z.ZodString;
|
|
67
|
+
sha256: z.ZodString;
|
|
68
|
+
}, z.core.$strict>;
|
|
69
|
+
identity: z.ZodObject<{
|
|
70
|
+
id: z.ZodString;
|
|
71
|
+
version: z.ZodString;
|
|
72
|
+
sha256: z.ZodString;
|
|
73
|
+
}, z.core.$strict>;
|
|
74
|
+
project: z.ZodString;
|
|
75
|
+
runtime: z.ZodEnum<{
|
|
76
|
+
node: "node";
|
|
77
|
+
python3: "python3";
|
|
78
|
+
php: "php";
|
|
79
|
+
native: "native";
|
|
80
|
+
}>;
|
|
81
|
+
checkId: z.ZodString;
|
|
82
|
+
kind: z.ZodEnum<{
|
|
83
|
+
format: "format";
|
|
84
|
+
analysis: "analysis";
|
|
85
|
+
syntax: "syntax";
|
|
86
|
+
test: "test";
|
|
87
|
+
}>;
|
|
88
|
+
failOn: z.ZodEnum<{
|
|
89
|
+
error: "error";
|
|
90
|
+
warning: "warning";
|
|
91
|
+
}>;
|
|
92
|
+
scope: z.ZodArray<z.ZodString>;
|
|
93
|
+
sourceFingerprint: z.ZodString;
|
|
94
|
+
}, z.core.$strict>;
|
|
95
|
+
export declare const externalRequestSchema: z.ZodObject<{
|
|
96
|
+
runtime: z.ZodEnum<{
|
|
97
|
+
node: "node";
|
|
98
|
+
python3: "python3";
|
|
99
|
+
php: "php";
|
|
100
|
+
native: "native";
|
|
101
|
+
}>;
|
|
102
|
+
kind: z.ZodEnum<{
|
|
103
|
+
format: "format";
|
|
104
|
+
analysis: "analysis";
|
|
105
|
+
syntax: "syntax";
|
|
106
|
+
test: "test";
|
|
107
|
+
}>;
|
|
108
|
+
failOn: z.ZodEnum<{
|
|
109
|
+
error: "error";
|
|
110
|
+
warning: "warning";
|
|
111
|
+
}>;
|
|
112
|
+
scope: z.ZodArray<z.ZodString>;
|
|
113
|
+
identity: z.ZodObject<{
|
|
114
|
+
id: z.ZodString;
|
|
115
|
+
version: z.ZodString;
|
|
116
|
+
sha256: z.ZodString;
|
|
117
|
+
}, z.core.$strict>;
|
|
118
|
+
project: z.ZodString;
|
|
119
|
+
checkId: z.ZodString;
|
|
120
|
+
sourceFingerprint: z.ZodString;
|
|
121
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
122
|
+
root: z.ZodString;
|
|
123
|
+
}, z.core.$strict>;
|
|
124
|
+
export declare function externalChecks(source: Inventory, project: Project, adapter: ExternalAdapter): Check[];
|
|
125
|
+
export declare const externalResultSchema: z.ZodObject<{
|
|
126
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
127
|
+
identity: z.ZodObject<{
|
|
128
|
+
id: z.ZodString;
|
|
129
|
+
version: z.ZodString;
|
|
130
|
+
sha256: z.ZodString;
|
|
131
|
+
}, z.core.$strict>;
|
|
132
|
+
checkId: z.ZodString;
|
|
133
|
+
sourceFingerprint: z.ZodString;
|
|
134
|
+
files: z.ZodArray<z.ZodObject<{
|
|
135
|
+
path: z.ZodString;
|
|
136
|
+
status: z.ZodEnum<{
|
|
137
|
+
skipped: "skipped";
|
|
138
|
+
checked: "checked";
|
|
139
|
+
unavailable: "unavailable";
|
|
140
|
+
}>;
|
|
141
|
+
tests: z.ZodOptional<z.ZodObject<{
|
|
142
|
+
total: z.ZodNumber;
|
|
143
|
+
passed: z.ZodNumber;
|
|
144
|
+
failed: z.ZodNumber;
|
|
145
|
+
skipped: z.ZodNumber;
|
|
146
|
+
}, z.core.$strict>>;
|
|
147
|
+
}, z.core.$strict>>;
|
|
148
|
+
findingsComplete: z.ZodBoolean;
|
|
149
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
150
|
+
ruleId: z.ZodString;
|
|
151
|
+
level: z.ZodEnum<{
|
|
152
|
+
error: "error";
|
|
153
|
+
warning: "warning";
|
|
154
|
+
note: "note";
|
|
155
|
+
}>;
|
|
156
|
+
message: z.ZodString;
|
|
157
|
+
file: z.ZodOptional<z.ZodString>;
|
|
158
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
159
|
+
}, z.core.$strict>>;
|
|
160
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
161
|
+
name: z.ZodString;
|
|
162
|
+
version: z.ZodString;
|
|
163
|
+
}, z.core.$strict>>;
|
|
164
|
+
}, z.core.$strict>;
|