ParsedCommand:
| { cmd: string; name: string; path: string; type: "read" }
| { cmd: string; path: string | null; type: "list_files" }
| {
cmd: string;
path: string | null;
query: string | null;
type: "search";
}
| { cmd: string; type: "unknown" }
Type Declaration
- { cmd: string; name: string; path: string; type: "read" }
cmd: string
name: string
path: string
type: "read"
- { cmd: string; path: string | null; type: "list_files" }
- { cmd: string; path: string | null; query: string | null; type: "search" }
- { cmd: string; type: "unknown" }
(Best effort) Path to the file being read by the command. When possible, this is an absolute path, though when relative, it should be resolved against the `cwd`` that will be used to run the command to derive the absolute path.