mirror of
https://github.com/morluto/rea.git
synced 2026-11-30 18:39:24 +00:00
* fix(cli): validate named inputs before target admission * fix(mcp): preserve valid inputs when advertised schema references widen * test(inputs): reach session behavior with admitted inputs One-shot admission now rejects incomplete requests before a session exists. Lifecycle tests supply the required fields, and unknown arguments are rejected before provider issues are retained. * fix(cli): preserve Electron fuse path spelling Anchor relative fuse paths without stripping dot segments, and let an empty path reach the operation so it still reports invalid_request. * fix(cli): reject outline-depth unless detail is summary The advertised schema already required detail summary whenever outline-depth was present. The parser still applied the full default and accepted that combination, so its output failed the same schema. Parsing now rejects it before the command runs. --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
7 lines
217 B
TypeScript
7 lines
217 B
TypeScript
import { z } from "zod";
|
|
|
|
/** One process argument; NUL cannot be represented by process launch APIs. */
|
|
export const processArgumentSchema = z
|
|
.string()
|
|
.regex(/^[^\x00]*$/u, "NUL is not an argument character");
|