Skip to content
Merged
Changes from all commits
Commits
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
7 changes: 6 additions & 1 deletion crates/dim-app-server/tests/mcp_session_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ use axum::{
response::{IntoResponse, Response, Sse, sse::Event},
routing::post,
};
use dim_agent_capabilities::host_platform::{HostPlatform, ShellStatus};
use dim_agent_capabilities::host_platform::HostPlatform;
#[cfg(unix)]
use dim_agent_capabilities::host_platform::ShellStatus;
#[cfg(unix)]
use dim_agent_capabilities::toolchain::{InstalledToolchain, ToolchainSourceHost};
use dim_agent_capabilities::{
adapters::{DefaultPrepareModelPlugin, MockTools},
Expand Down Expand Up @@ -568,6 +571,7 @@ impl Env {
/// A Session whose stdio entry names a program only the installed
/// runtime provides: the child `PATH` gets `bin` appended, so the bare
/// command resolves there.
#[cfg(unix)]
async fn with_stdio_toolchain(bin: PathBuf, root: PathBuf) -> Self {
let fixture =
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/fixtures/mcp-minimal.cjs");
Expand Down Expand Up @@ -3904,6 +3908,7 @@ async fn a_tool_call_deadline_is_shared_by_its_404_retry() {
/// directory starts there and lists its tools: the child `PATH` appends the
/// toolchain directories after the daemon's own, and on Unix the program
/// lookup reads the child `PATH`.
#[cfg(unix)]
#[tokio::test]
async fn a_stdio_entry_starts_a_command_the_toolchain_source_provides() {
use std::os::unix::fs::PermissionsExt;
Expand Down