pub struct PreFlightArgs<'a> {
pub binary_path: &'a Path,
pub argv: &'a [OsString],
pub workspace_root: &'a Path,
pub mcp_config_inline_json: Option<&'a str>,
pub expected_output_bytes: usize,
pub spawner_name: &'static str,
}Expand description
Arguments for the pre-flight validation gate.
Each caller populates exactly what the gate needs to validate without
relying on global env vars. The gate never mutates the argv in place —
it only reads and reports. Callers act on PreFlightError to substitute
alternatives (e.g. swap inline --mcp-config '{}' for a tempfile path).
Fields§
§binary_path: &'a PathResolved path to the binary that will be spawned.
argv: &'a [OsString]argv after build_argv finished. Includes binary path as argv[0].
workspace_root: &'a PathCWD-style anchor for walk-up detection of .mcp.json.
mcp_config_inline_json: Option<&'a str>If the spawner constructs --mcp-config '{...}' literally, the
gate returns McpConfigInlineJsonRejected with a suggested
tempfile path the caller can substitute.
expected_output_bytes: usizeCaller’s estimate of the maximum output payload size in bytes.
Triggers OutputBufferTooSmall when above the documented parser cap.
spawner_name: &'static strStable label emitted in telemetry. One of "claude_runner",
"codex_spawn", "ingest_claude", "ingest_codex",
"llm_embedding".
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PreFlightArgs<'a>
impl<'a> RefUnwindSafe for PreFlightArgs<'a>
impl<'a> Send for PreFlightArgs<'a>
impl<'a> Sync for PreFlightArgs<'a>
impl<'a> Unpin for PreFlightArgs<'a>
impl<'a> UnsafeUnpin for PreFlightArgs<'a>
impl<'a> UnwindSafe for PreFlightArgs<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more