Refactor CLI and file handling tools for improved functionality. Update CLI interrogation command for better clarity and adjust logging format. Modify list_files.js to enhance path display logic and update read_file.js schema to allow null values for optional parameters, improving flexibility in file reading operations.
This commit is contained in:
@@ -159,7 +159,10 @@ export async function run(args) {
|
||||
return { err: `Path does not exist${inputPath ? `: ${inputPath}` : ""}` };
|
||||
}
|
||||
|
||||
const cwd = path.relative(chrootResolved, stat.isFile() ? path.dirname(resolvedBase) : resolvedBase) || ".";
|
||||
const cwd = toDisplayPath(
|
||||
stat.isFile() ? path.dirname(resolvedBase) : resolvedBase,
|
||||
chrootResolved
|
||||
);
|
||||
|
||||
// Handle single file case
|
||||
if (stat.isFile()) {
|
||||
|
||||
Reference in New Issue
Block a user