perf(schema): reduce retained integer validator allocations (#4360)

Construct integer formats directly while preserving bounds, refinements, metadata and current shared schema owners. Keep Incur-dependent CLI numeric coercion declarations unchanged.

Verify canonical advertisements, 126 numeric boundary cases, 974 actual CLI parser cases, broad source tests and real public-artifact SDK workflows. Record 72 normal tasks and 12 separate owned-inspector heap diagnostics with whole-family resource bounds; distinguish SDK spans and asymmetric audit overhead. Generate numerical report sections from receipts and reject stale tables through documentation conformance checks.

Closes #6236. Current-head CI and Greptile pass; actionable review findings are addressed. Codex review was unavailable due repository usage limits.
This commit is contained in:
郭立 Guo Li
2026-10-22 13:11:08 +08:00
committed by GitHub
parent bd5d189a8f
commit 7590b50801
182 changed files with 9562 additions and 1329 deletions
+5 -5
View File
@@ -35,12 +35,12 @@ export const javascriptRecoveryInputSchema = z.strictObject({
const fileSchema = z.strictObject({
path: z.string().min(1),
sha256: digestSchema,
bytes: z.number().int().nonnegative(),
bytes: z.int().nonnegative(),
});
const rangeSchema = z.strictObject({
start: z.number().int().nonnegative(),
end: z.number().int().nonnegative(),
start: z.int().nonnegative(),
end: z.int().nonnegative(),
});
const sourceSchema = fileSchema.extend({
@@ -70,8 +70,8 @@ export const javascriptRecoveryResultSchema = z.strictObject({
reported_safety: z.string(),
reported_strategy: z.string(),
reported_format: z.string(),
total: z.number().int().nonnegative(),
failed: z.number().int().nonnegative(),
total: z.int().nonnegative(),
failed: z.int().nonnegative(),
modules: z.array(
z.strictObject({
reported_filename: z.string().min(1),