Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
ff0e508
Plan expose execHost and migrate process callers
eric8810 Nov 20, 2026
133374e
Expose execution node facts and reuse them in the environment prompt
eric8810 Nov 20, 2026
8a33ca5
Include the execution node architecture in execHost.info
eric8810 Nov 20, 2026
a532592
Dispatch confined helper requests through the execution owner
eric8810 Nov 20, 2026
5d80842
Run configured hook commands and remove released shell output through…
eric8810 Nov 20, 2026
9770c12
Format configured process completion in the select branch
eric8810 Nov 20, 2026
0b05770
Build exec and execute definitions from execution host info
eric8810 Nov 20, 2026
a3e44f4
Merge remote-tracking branch 'origin/main' into impl-1899-exec
eric8810 Nov 20, 2026
ed22053
Regenerate the execution host module graph
eric8810 Nov 20, 2026
4add2e3
Retain exec output at background handoff through execHost
eric8810 Nov 20, 2026
e499418
Verify short foreground output succeeds with an unusable log directory
eric8810 Nov 20, 2026
f50106d
Merge remote-tracking branch 'origin/main' into impl-1899-exec
eric8810 Nov 20, 2026
47feca1
Publish execHost retention methods and dependencies in the generated …
eric8810 Nov 20, 2026
cc383d0
Merge remote-tracking branch 'origin/main' into impl-1899-exec
eric8810 Nov 20, 2026
30d3b56
Merge remote-tracking branch 'origin/main' into impl-1899-exec
eric8810 Nov 20, 2026
285941f
Keep command processes on the execution host and expose start, wait, …
eric8810 Nov 20, 2026
d8089a0
Page inline and retained execution output through the same cursor rules
eric8810 Nov 20, 2026
78d8206
Serve persistent PTYs on the execution host and migrate ShellSession …
eric8810 Nov 20, 2026
b81babe
Read execution-node facts through info in workspace, prompt, skills a…
eric8810 Nov 20, 2026
9613bcc
Read retained background task output pages at the execution node
eric8810 Nov 20, 2026
a151882
Read execution node facts without probing the configured shell
eric8810 Nov 20, 2026
f0a3cf5
Bind execution node consumers to the execHost catalog name
eric8810 Nov 20, 2026
a8da721
Use the execution binding name in Rust API documentation
eric8810 Nov 20, 2026
e2a39c5
Honor the retained shell output window for cursor reads
eric8810 Nov 20, 2026
5a4b92e
Merge remote-tracking branch 'origin/main' into impl-1899-exec
eric8810 Nov 21, 2026
54e2149
Disambiguate execution task lookup and format execution changes
eric8810 Nov 21, 2026
d0c8773
Refresh execution host assembly and dependency documentation
eric8810 Nov 21, 2026
91788eb
Page retained task output from its recorded location and reuse the ex…
eric8810 Nov 21, 2026
fd7940f
Own command dispatch and shutdown in ExecHost
eric8810 Nov 21, 2026
4055323
Use the command owner deadline for dispatched starts
eric8810 Nov 21, 2026
6a6963d
Merge remote-tracking branch 'origin/main' into impl-1899-exec
eric8810 Nov 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#[cfg(target_os = "linux")]
mod linux {
use dim_agent_capabilities::host_platform::{
EXEC_SHELL_UNAVAILABLE, HostPlatform, ProcessSpec, PtySize, ShellStatus,
EXEC_SHELL_UNAVAILABLE, ExecHost, ProcessSpec, PtySize, ShellStatus,
};
use serde_json::json;
use std::{
Expand Down Expand Up @@ -144,7 +144,7 @@ mod linux {
spec
}

async fn run(platform: &HostPlatform, spec: ProcessSpec) -> Result<Output> {
async fn run(platform: &ExecHost, spec: ProcessSpec) -> Result<Output> {
let mut tree = platform.spawn(spec)?;
let (mut stdout, mut stderr) = (tree.stdout(), tree.stderr());
let (mut out, mut err) = (Vec::new(), Vec::new());
Expand Down Expand Up @@ -201,7 +201,7 @@ mod linux {
std::fs::create_dir(&readonly)?;
let helper = readonly.join("probe");
std::fs::copy(std::env::current_exe()?, &helper)?;
let platform = HostPlatform::current(ShellStatus::Unavailable {
let platform = ExecHost::current(ShellStatus::Unavailable {
code: EXEC_SHELL_UNAVAILABLE,
reason: "Explicit probe argv".into(),
})?;
Expand Down Expand Up @@ -295,7 +295,7 @@ mod linux {
let fixture = Fixture(root);
let readonly = fixture.0.join("readonly");
std::fs::create_dir(&readonly)?;
let platform = HostPlatform::current(ShellStatus::Unavailable {
let platform = ExecHost::current(ShellStatus::Unavailable {
code: EXEC_SHELL_UNAVAILABLE,
reason: "Explicit probe argv".into(),
})?;
Expand Down Expand Up @@ -426,7 +426,7 @@ mod linux {
}
let helper = readonly.join("probe");
std::fs::copy(std::env::current_exe()?, &helper)?;
let platform = HostPlatform::current(ShellStatus::Unavailable {
let platform = ExecHost::current(ShellStatus::Unavailable {
code: EXEC_SHELL_UNAVAILABLE,
reason: "Explicit probe argv".into(),
})?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#[cfg(target_os = "macos")]
mod macos {
use dim_agent_capabilities::host_platform::{
EXEC_SHELL_UNAVAILABLE, HostPlatform, ProcessSpec, PtySize, ShellStatus,
EXEC_SHELL_UNAVAILABLE, ExecHost, ProcessSpec, PtySize, ShellStatus,
};
use serde_json::json;
use std::{
Expand Down Expand Up @@ -69,7 +69,7 @@ mod macos {
spec
}

async fn run(platform: &HostPlatform, spec: ProcessSpec) -> Result<Output> {
async fn run(platform: &ExecHost, spec: ProcessSpec) -> Result<Output> {
let mut tree = platform.spawn(spec)?;
let (mut stdout, mut stderr) = (tree.stdout(), tree.stderr());
let (mut out, mut err) = (Vec::new(), Vec::new());
Expand Down Expand Up @@ -112,7 +112,7 @@ mod macos {
std::fs::write(&secret, "private-sentinel")?;
std::fs::write(workspace.join("input"), "workspace-input")?;
std::os::unix::fs::symlink(&private, workspace.join("escape"))?;
let platform = HostPlatform::current(ShellStatus::Unavailable {
let platform = ExecHost::current(ShellStatus::Unavailable {
code: EXEC_SHELL_UNAVAILABLE,
reason: "The probe passes explicit argv.".into(),
})?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#[cfg(target_os = "linux")]
mod linux {
use dim_agent_capabilities::host_platform::{
EXEC_SHELL_UNAVAILABLE, HostPlatform, ProcessSpec, PtySize, ShellStatus,
EXEC_SHELL_UNAVAILABLE, ExecHost, ProcessSpec, PtySize, ShellStatus,
};
use serde_json::json;
use std::{
Expand Down Expand Up @@ -157,7 +157,7 @@ mod linux {
spec.args = args;
Ok(spec)
}
async fn run(platform: &HostPlatform, spec: ProcessSpec) -> Result<Output> {
async fn run(platform: &ExecHost, spec: ProcessSpec) -> Result<Output> {
let mut tree = platform.spawn(spec)?;
let (mut stdout, mut stderr) = (tree.stdout(), tree.stderr());
let (mut out, mut err) = (Vec::new(), Vec::new());
Expand Down Expand Up @@ -202,7 +202,7 @@ mod linux {
std::fs::write(&secret, "private-sentinel")?;
std::fs::write(workspace.join("input"), "workspace-input")?;
std::os::unix::fs::symlink(&private, workspace.join("escape"))?;
let platform = HostPlatform::current(ShellStatus::Unavailable {
let platform = ExecHost::current(ShellStatus::Unavailable {
code: EXEC_SHELL_UNAVAILABLE,
reason: "The probe passes explicit argv.".into(),
})?;
Expand Down
13 changes: 6 additions & 7 deletions crates/dim-agent-capabilities/src/file_access.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Session file facts and on-demand worktree membership.
use crate::{
host::{HostError, HostFuture, SessionFiles},
host_platform::{HostPlatform, ProcessSpec},
host_platform::{ExecHost, ProcessSpec},
session_grants::SessionGrantsHost,
workspace_tools::files::canonical_prefix,
};
Expand Down Expand Up @@ -140,7 +140,7 @@ pub fn install(builder: &mut AgentBuilder) {

struct Facts {
config: Arc<SessionConfig>,
platform: Arc<HostPlatform>,
platform_roots: Vec<PathBuf>,
files: Arc<SessionFiles>,
grants: Arc<SessionGrantsHost>,
worktrees: Arc<Worktrees>,
Expand Down Expand Up @@ -174,7 +174,6 @@ impl ReadFileAccessFacts for Facts {
let mut facts = FileFacts {
workspace: path.starts_with(&workspace),
system: self
.platform
.platform_roots
.iter()
.any(|root| path.starts_with(root)),
Expand Down Expand Up @@ -214,7 +213,7 @@ impl ReadFileAccessFacts for Facts {

struct FileAccessFactsPlugin {
config: Key<SessionConfig>,
platform: Key<HostPlatform>,
platform: Key<ExecHost>,
files: Key<SessionFiles>,
grants: Key<SessionGrantsHost>,
identity: Key<SessionIdentity>,
Expand Down Expand Up @@ -268,7 +267,7 @@ impl DynPlugin for FileAccessFactsPlugin {
self.service.clone(),
Arc::new(FileAccessFacts(Arc::new(Facts {
config,
platform,
platform_roots: platform.facts().platform_roots.to_vec(),
files: ctx.require_at(&self.files)?,
grants: ctx.require_at(&self.grants)?,
worktrees,
Expand Down Expand Up @@ -308,7 +307,7 @@ struct State {

struct Worktrees {
ctx: Ctx,
platform: Arc<HostPlatform>,
platform: Arc<ExecHost>,
lifecycle: Arc<SessionLifecycle>,
session: String,
workspace: PathBuf,
Expand All @@ -320,7 +319,7 @@ struct Worktrees {
impl Worktrees {
fn new(
ctx: Ctx,
platform: Arc<HostPlatform>,
platform: Arc<ExecHost>,
lifecycle: Arc<SessionLifecycle>,
session: String,
workspace: PathBuf,
Expand Down
Loading