exec: Options carries the calling conversation

This commit is contained in:
2026-11-06 16:38:00 +00:00
parent 57a47b069e
commit 4df2c2e837
+3
View File
@@ -10,11 +10,14 @@ pub enum Command {
}
/// How to run it. `cwd` is a world path. `timeout` ends the command and all its processes.
/// `conversation` is the harness conversation that runs the command. Its processes and their
/// descendants carry it, so the host knows the caller (for example in the `wasi:http` hook).
#[derive(Clone, Debug, Default)]
pub struct Options {
pub cwd: String,
pub env: Vec<(String, String)>,
pub timeout: Option<Duration>,
pub conversation: Option<String>,
}
/// The stream that one output chunk came from.