File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -198,16 +198,16 @@ export interface Runtime {
198198 /**
199199 * Normalize a path for comparison purposes within this runtime's context.
200200 * Handles runtime-specific path semantics (local vs remote).
201- *
201+ *
202202 * @param targetPath Path to normalize (may be relative or absolute)
203203 * @param basePath Base path to resolve relative paths against
204204 * @returns Normalized path suitable for string comparison
205- *
205+ *
206206 * @example
207207 * // LocalRuntime
208208 * runtime.normalizePath(".", "/home/user") // => "/home/user"
209209 * runtime.normalizePath("../other", "/home/user/project") // => "/home/user/other"
210- *
210+ *
211211 * // SSHRuntime
212212 * runtime.normalizePath(".", "/home/user") // => "/home/user"
213213 * runtime.normalizePath("~/project", "~") // => "~/project"
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export const createBashTool: ToolFactory = (config: ToolConfiguration) => {
8282 const match = cdPattern . exec ( script ) ;
8383 if ( match ) {
8484 const targetPath = match [ 1 ] . trim ( ) ;
85-
85+
8686 // Use runtime's normalizePath method to handle path comparison correctly
8787 const normalizedTarget = config . runtime . normalizePath ( targetPath , config . cwd ) ;
8888 const normalizedCwd = config . runtime . normalizePath ( "." , config . cwd ) ;
You can’t perform that action at this time.
0 commit comments