pub struct ScriptNode {
pub name: String,
pub run: String,
pub env: HashMap<String, String>,
pub timeout: Option<u64>,
pub retries: u32,
pub on_fail: Option<OnFail>,
pub as_identity: Option<String>,
}Expand description
A script step node — runs a shell script directly (no agent/LLM).
Fields§
§name: StringStep name used as the step key in step_results and resume skip sets.
run: StringPath to the script to run (supports {{variable}} substitution).
Resolved in order: worktree dir → repo dir → ~/.claude/skills/.
env: HashMap<String, String>Environment variable overrides (values support {{variable}} substitution).
timeout: Option<u64>Optional timeout in seconds. If the script does not complete within this
duration it is killed and the step is marked TimedOut.
retries: u32Number of retry attempts after the first failure (0 = no retries).
on_fail: Option<OnFail>Action to take if all attempts fail.
as_identity: Option<String>Named GitHub App bot identity to use for this script (matches [github.apps.<name>]).
When set, the resolved installation token is injected as GH_TOKEN so the script
uses that bot identity for all gh CLI calls.
Trait Implementations§
Source§impl Clone for ScriptNode
impl Clone for ScriptNode
Source§fn clone(&self) -> ScriptNode
fn clone(&self) -> ScriptNode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more