fix(contracts): advertise NUL with a portable hex escape

Use the equivalent hex NUL spelling in named public contracts while preserving current path and reserved-name validation. Verify converted JSON Schema and real stdio catalog consumers.

Closes #1329

Co-authored-by: Yi-111-a <97448247+Yi-111-a@users.noreply.github.com>
This commit is contained in:
yi111
2026-10-10 01:54:42 +08:00
committed by GitHub
co-authored by Yi-111-a
parent 5f16124a31
commit 3f59a84bd1
7 changed files with 27 additions and 18 deletions
@@ -81,7 +81,7 @@ export const electronActiveObservationInputSchema = z.strictObject({
.array(
z
.string()
.regex(/^[^\u0000]*$/u, "Electron arguments must not contain NUL"),
.regex(/^[^\x00]*$/u, "Electron arguments must not contain NUL"),
)
.default([]),
actions: z.array(actionSchema).default([]),