Skip to main content

Module path_resolve

Module path_resolve 

Source
Expand description

Shared path-resolution for tool handlers.

Previously two near-identical resolve_path_sync implementations lived in tools/registered/mod.rs (SessionState-based) and server/tool_trait.rs (ToolContext-based), plus several copies of the project-marker test. This module is the single source of truth: resolve_tool_path for jailed path resolution and a re-export of has_project_marker for marker detection.

Re-exports§

pub use crate::core::pathutil::has_project_marker;

Functions§

resolve_tool_path
Resolve a (possibly relative) tool path to a normalized, jail-checked, secret-screened absolute path.