mirror of
https://github.com/morluto/rea.git
synced 2026-10-29 02:45:58 +00:00
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:
1 parent
bd5d189a8f
commit
7590b50801
182 files changed
+9562
-1329
No files matched your search
@@ -17,8 +17,8 @@ const leafSchema = z.object({
|
||||
sourcesContent: z.array(z.string().nullable()).nullable().optional(),
|
||||
names: z.array(z.string()).default([]),
|
||||
mappings: sourceMapMappingsSchema.regex(/^[A-Za-z0-9+/,;]*$/u),
|
||||
ignoreList: z.array(z.number().int().min(0)).optional(),
|
||||
x_google_ignoreList: z.array(z.number().int().min(0)).optional(),
|
||||
ignoreList: z.array(z.int().min(0)).optional(),
|
||||
x_google_ignoreList: z.array(z.int().min(0)).optional(),
|
||||
});
|
||||
const mapHeaderSchema = z.object({
|
||||
version: z.literal(3),
|
||||
@@ -27,8 +27,8 @@ const mapHeaderSchema = z.object({
|
||||
});
|
||||
const sectionSchema = z.object({
|
||||
offset: z.object({
|
||||
line: z.number().int().min(0).max(Number.MAX_SAFE_INTEGER),
|
||||
column: z.number().int().min(0).max(Number.MAX_SAFE_INTEGER),
|
||||
line: z.int().min(0).max(Number.MAX_SAFE_INTEGER),
|
||||
column: z.int().min(0).max(Number.MAX_SAFE_INTEGER),
|
||||
}),
|
||||
map: z.unknown().optional(),
|
||||
url: z.unknown().optional(),
|
||||
|
||||
Reference in new issue
Block a user