pub struct NativeSessionScope {
pub version: String,
pub kind: String,
pub scope_id: String,
pub cwd: PathBuf,
pub bootstrap_root: Option<PathBuf>,
pub wren_runtime: Option<NativeWrenRuntime>,
pub binding: Option<NativeBinding>,
}Expand description
A server-derived launch scope. This is deliberately a small producer input rather than session state: GenBI creates and authorizes it, Warble verifies its shape/canonical cwd and carries its opaque binding identity into the launch artifact, and the future runtime owns comparing it to its live binding generation/revision before spawning.
Fields§
§version: String§kind: String§scope_id: String§cwd: PathBuf§bootstrap_root: Option<PathBuf>Setup alone carries this separately authorized project-creation root.
cwd remains the native materialization root and must equal --out.
wren_runtime: Option<NativeWrenRuntime>Optional to preserve the existing cross-vendor native scope contract. Native Codex materialization requires this exact server-resolved launcher and Python runtime closure; it is never derived from the browser, environment, or PATH by the dispatcher.
binding: Option<NativeBinding>Implementations§
Source§impl NativeSessionScope
impl NativeSessionScope
pub fn from_file(path: &Path) -> Result<Self, DispatchError>
Sourcepub fn codex_permission_profile(&self) -> Result<String, DispatchError>
pub fn codex_permission_profile(&self) -> Result<String, DispatchError>
Render the complete, server-selected Codex permission profile. It deliberately has no caller-selected filesystem, executable, PATH, browser, credential, or network input.
Sourcepub fn claude_setup_write_permissions(
&self,
) -> Result<[String; 2], DispatchError>
pub fn claude_setup_write_permissions( &self, ) -> Result<[String; 2], DispatchError>
Claude’s permission grammar carries the same server-selected Setup root as its only Edit/Write scope. The string is generated only after NativeSessionScope::validate has canonicalized the sealed descriptor.
Trait Implementations§
Source§impl Clone for NativeSessionScope
impl Clone for NativeSessionScope
Source§fn clone(&self) -> NativeSessionScope
fn clone(&self) -> NativeSessionScope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more