pub struct ClientInit {
pub workspace: PathBuf,
pub role: String,
pub server: String,
pub key_path: PathBuf,
pub cert_pin: String,
pub orca_worktree: String,
pub stall_report_secs: u64,
pub reconnect_grace_secs: u64,
pub backend: String,
pub acp: AcpSection,
}Fields§
§workspace: PathBuf§role: String§server: String§key_path: PathBuf§cert_pin: String§orca_worktree: StringThe workspace config’s [orca] worktree value: host, inherit, or a
literal Orca worktree selector. Only an Orca session backend reads it.
stall_report_secs: u64Seconds a running session may sit without Applied progress before a stall fault is reported. Zero disables the report.
reconnect_grace_secs: u64Seconds a dropped plugin connection may stay away before this client retires the task-free session it left behind. Zero disables the sweep.
backend: StringWorkspace config.toml backend. Empty means auto. ONLYNE_BACKEND
in the process environment takes precedence when it is nonempty.
acp: AcpSectionThe workspace config’s [acp] table. Only the ACP session backend reads
it: the mode, model and reasoning effort handed to the agent when a
session opens, and what to answer when the agent asks for permission.
Implementations§
Source§impl ClientInit
impl ClientInit
pub fn new( workspace: impl Into<PathBuf>, role: impl Into<String>, server: impl Into<String>, key_path: impl Into<PathBuf>, cert_pin: impl Into<String>, ) -> Self
Sourcepub fn with_orca_worktree(self, worktree: impl Into<String>) -> Self
pub fn with_orca_worktree(self, worktree: impl Into<String>) -> Self
Adopt the [orca] worktree policy the workspace config carries.
pub fn with_stall_report_secs(self, secs: u64) -> Self
Sourcepub fn with_reconnect_grace_secs(self, secs: u64) -> Self
pub fn with_reconnect_grace_secs(self, secs: u64) -> Self
Adopt the [client] reconnect_grace_secs value the workspace config carries.
pub fn with_backend(self, backend: impl Into<String>) -> Self
Sourcepub fn with_acp(self, acp: AcpSection) -> Self
pub fn with_acp(self, acp: AcpSection) -> Self
Adopt the [acp] table the workspace config carries.