refactor(tools): remove arbitrary workflow ceilings

This commit is contained in:
morluto committed 2026-09-29 17:36:26 +08:00
1 parent 6c68ff565f
commit 5f73cb061b
28 files changed
+184 -195

No files matched your search

+1 -10
View File
@@ -1,7 +1,6 @@
import { z } from "zod";
import { applicationGraphEvidenceSchema } from "./javascriptApplicationEvidenceSchemas.js";
import { isJsonWithinDepth } from "./jsonLimits.js";
import { jsonValueSchema } from "./jsonValue.js";
const digestSchema = z.string().regex(/^[a-f0-9]{64}$/u);
@@ -190,15 +189,7 @@ const sourceRangeSchema = z
});
});
const semanticPropertiesSchema = z
.record(z.string().min(1), jsonValueSchema)
.superRefine((properties, context) => {
if (!isJsonWithinDepth(properties, 6))
context.addIssue({
code: "custom",
message: "Semantic properties exceed the supported depth",
});
});
const semanticPropertiesSchema = z.record(z.string().min(1), jsonValueSchema);
const semanticNodeIdentitySchema = z.strictObject({
artifact_sha256: digestSchema,