refactor(tools): remove artificial analysis ceilings

This commit is contained in:
morluto
2026-09-29 16:29:23 +08:00
parent 36aeec9586
commit 2f08c7c932
202 changed files with 2314 additions and 3072 deletions
+2 -4
View File
@@ -3,9 +3,7 @@ import { singleSource } from "graphology-shortest-path";
import canonicalize from "canonicalize";
import { z } from "zod";
const replayIdentifierSchema = z
.string()
.regex(/^[A-Za-z][A-Za-z0-9_-]{0,63}$/u);
const replayIdentifierSchema = z.string().regex(/^[A-Za-z][A-Za-z0-9_-]*$/u);
const replayPathSchema = z.array(
z.union([z.string(), z.number().int().nonnegative()]),
);
@@ -100,7 +98,7 @@ const replayActionSchema = z.discriminatedUnion("type", [
z.strictObject({ type: z.literal("disconnect") }),
z.strictObject({
type: z.literal("delay"),
duration_ms: z.number().int().nonnegative(),
duration_ms: z.number().int().safe().nonnegative(),
}),
]);