pub struct ShellCreateRequest {Show 13 fields
pub agent_block_id: String,
pub cmd: String,
pub cwd: Option<String>,
pub title: Option<String>,
pub env: Option<HashMap<String, String>>,
pub capture_stdin: Option<bool>,
pub connection: Option<String>,
pub auth: Option<UiAutomationAuth>,
pub secrets: Option<HashMap<String, String>>,
pub stdin_secret: Option<String>,
pub secret_files: Option<HashMap<String, String>>,
pub capture: Option<Vec<CaptureRule>>,
pub reason: Option<String>,
}Expand description
POST /api/v1/shell/create
Fields§
§agent_block_id: String§cmd: String§cwd: Option<String>§title: Option<String>§env: Option<HashMap<String, String>>§capture_stdin: Option<bool>If true, pipe the child’s stdin so ShellInput() can write to it.
Default false (stdin is /dev/null) — avoids blocking programs that
read stdin to EOF (e.g. cat with no args).
connection: Option<String>Where the command runs: local (the default) or wsl://<distro>. An
SSH destination is refused until SSH terminals ship
(SPEC_REMOTE_TERMINALS_AND_DURABLE_SESSIONS_2026_10_02.md §8).
auth: Option<UiAutomationAuth>The calling agent’s signed identity (UiAutomationAuth, its own jekt
key). Required for an SSH connection: srv derives the agent’s pane
from it and refuses a request naming another pane, so no agent can
borrow another’s SSH consent.
secrets: Option<HashMap<String, String>>Vault entries to put in the command’s environment: {ENV_NAME: entry id}
(id.part for a part other than the kind’s main one). srv asks the person
first and scrubs the values from the output; the agent never holds one.
Needs auth, and a local connection.
stdin_secret: Option<String>One Vault entry whose value is written to the command’s stdin, followed by a
newline, after which stdin is closed (docker login --password-stdin). Not with
capture_stdin. Needs auth, and a local connection.
secret_files: Option<HashMap<String, String>>Vault entries written to files only the user can read, removed when the command
ends: {ENV_NAME: entry id}, with the file’s path in ENV_NAME. Needs auth,
and a local connection.
capture: Option<Vec<CaptureRule>>Values the command prints that go straight into the Vault: srv holds the
output until the command ends, stores each match, and publishes the output
with the values taken out ([vault:<id>]). If a rule matches nothing, the
output is withheld whole. Needs auth; works over any connection.
reason: Option<String>Why the command takes, or stores a value in, the Vault: one line of 8 to 300 characters, required with
secrets, stdin_secret, secret_files or capture. The person sees it in the approval (“
Trait Implementations§
Source§impl Clone for ShellCreateRequest
impl Clone for ShellCreateRequest
Source§fn clone(&self) -> ShellCreateRequest
fn clone(&self) -> ShellCreateRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more