pub struct WrapperContext {Show 19 fields
pub worker_name: String,
pub agent_type: String,
pub ticket_id: String,
pub ticket_branch: String,
pub worktree_path: PathBuf,
pub system_prompt_file: PathBuf,
pub user_message_file: PathBuf,
pub skip_permissions: bool,
pub profile: String,
pub role_prefix: Option<String>,
pub options: HashMap<String, String>,
pub model: Option<String>,
pub log_path: PathBuf,
pub container: Option<String>,
pub extra_env: HashMap<String, String>,
pub root: PathBuf,
pub keychain: HashMap<String, String>,
pub current_state: String,
pub command: Option<String>,
}Fields§
§worker_name: StringUnique per-run identifier — e.g. “pi-0514-0628-7348”. Stable for the
lifetime of one worker process; exposed to the wrapper via
APM_AGENT_NAME for log lines and worker-registry lookups.
agent_type: StringAgent type — e.g. “pi”, “claude”. Exposed via APM_AGENT_TYPE and
used as the actor in ticket history rows when the worker calls
apm state (cleaner than the unique worker_name).
ticket_id: String§ticket_branch: String§worktree_path: PathBuf§system_prompt_file: PathBuf§user_message_file: PathBuf§skip_permissions: bool§profile: String§role_prefix: Option<String>§options: HashMap<String, String>§model: Option<String>§log_path: PathBuf§container: Option<String>§extra_env: HashMap<String, String>§root: PathBuf§keychain: HashMap<String, String>§current_state: String§command: Option<String>Override for the wrapper-specific binary (e.g. for ClaudeWrapper, the
claude binary path). Honoured by built-ins that shell out to a fixed
binary; legacy [workers].command flows in here.
Auto Trait Implementations§
impl Freeze for WrapperContext
impl RefUnwindSafe for WrapperContext
impl Send for WrapperContext
impl Sync for WrapperContext
impl Unpin for WrapperContext
impl UnsafeUnpin for WrapperContext
impl UnwindSafe for WrapperContext
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
Mutably borrows from an owned value. Read more