fix(mcp): emit portable Unicode NUL patterns (#1230)
Preserve NUL rejection while avoiding the short escape rejected by strict schema consumers. Guard the entire advertised input/output catalog and all three JavaScript regexp modes. Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
This commit is contained in:
@@ -78,7 +78,9 @@ export const electronActiveObservationInputSchema = z.strictObject({
|
||||
),
|
||||
args: z
|
||||
.array(
|
||||
z.string().regex(/^[^\0]*$/u, "Electron arguments must not contain NUL"),
|
||||
z
|
||||
.string()
|
||||
.regex(/^[^\u0000]*$/u, "Electron arguments must not contain NUL"),
|
||||
)
|
||||
.default([]),
|
||||
actions: z.array(actionSchema).default([]),
|
||||
|
||||
Reference in New Issue
Block a user