Update chroot path in multiple tools to use '/workspaces/aiTools' for consistent file handling across the codebase.

This commit is contained in:
sebseb7
2025-08-12 03:50:16 +00:00
parent 182ccd34ca
commit 324aea5775
4 changed files with 4 additions and 4 deletions

View File

@@ -120,7 +120,7 @@ export async function run(args) {
const inputPath = args?.path || ""; const inputPath = args?.path || "";
const depth = Number.isInteger(args?.depth) ? args.depth : 1; const depth = Number.isInteger(args?.depth) ? args.depth : 1;
const includeHidden = args?.includeHidden ?? false; const includeHidden = args?.includeHidden ?? false;
const chrootPath = '/home/seb/src/aiTools/tmp'; const chrootPath = '/workspaces/aiTools';
if (!chrootPath) { if (!chrootPath) {
return { err: "Chroot path is required" }; return { err: "Chroot path is required" };

View File

@@ -808,7 +808,7 @@ export async function run(args) {
open_file, open_file,
write_file, write_file,
remove_file, remove_file,
'/home/seb/src/aiTools/tmp' '/workspaces/aiTools'
); );
return result; return result;
} catch (error) { } catch (error) {

View File

@@ -3,7 +3,7 @@ import { createInterface } from "node:readline";
import path from "node:path"; import path from "node:path";
const virtual_chroot = '/home/seb/src/aiTools/tmp'; const virtual_chroot = '/workspaces/aiTools';
// Ensures reads are confined to `virtual_chroot`. // Ensures reads are confined to `virtual_chroot`.

View File

@@ -1,6 +1,6 @@
import { spawnSync } from "node:child_process"; import { spawnSync } from "node:child_process";
const virtual_chroot = '/home/seb/src/aiTools/tmp'; const virtual_chroot = '/workspaces/aiTools';
export default { export default {
type: "function", name: "ripgrep", strict: true, type: "function", name: "ripgrep", strict: true,