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 placement: Option<SessionPlacement>,
pub acp: AcpSection,
pub session: SessionPolicy,
}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.
placement: Option<SessionPlacement>The placement this run was told to use: onlyne-client run passes the
workspace config.toml’s placement key, and an embedding passes
whatever it resolved — the scenario suite passes the in-process
fake runtime. None probes orca, then zellij, and falls back to
headless. ONLYNE_BACKEND in the process environment takes precedence
when it names a placement.
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.
session: SessionPolicyThe workspace config’s [client.session] table: which deliveries one
session of this role serves, and how long an idle one may wait before
this client releases its process (plan §10).
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.
Sourcepub fn with_placement(self, placement: Option<SessionPlacement>) -> Self
pub fn with_placement(self, placement: Option<SessionPlacement>) -> Self
Adopt the placement this run was told to use, if it was told one.
Sourcepub fn with_acp(self, acp: AcpSection) -> Self
pub fn with_acp(self, acp: AcpSection) -> Self
Adopt the [acp] table the workspace config carries.
Sourcepub fn with_session(self, session: SessionPolicy) -> Self
pub fn with_session(self, session: SessionPolicy) -> Self
Adopt the [client.session] table the workspace config carries.