Skip to main content

wrap_tool_ci

Function wrap_tool_ci 

Source
pub fn wrap_tool_ci(
    tool: Arc<dyn Tool>,
    workspace_root: PathBuf,
) -> ToolFacade<ToolBridgeCtx<CiCtx>>
Expand description

Create a ToolFacade that wraps an existing Arc<dyn Tool> with CGP-wired auto-approval and no middleware for CI contexts.

Prefer wrap_native_tool_ci() when you still own the concrete tool instance. Use this bridge when the tool is already shared elsewhere.