Update chroot path in multiple tools to use '/workspaces/aiTools' for consistent file handling across the codebase.
This commit is contained in:
@@ -120,7 +120,7 @@ export async function run(args) {
|
||||
const inputPath = args?.path || "";
|
||||
const depth = Number.isInteger(args?.depth) ? args.depth : 1;
|
||||
const includeHidden = args?.includeHidden ?? false;
|
||||
const chrootPath = '/home/seb/src/aiTools/tmp';
|
||||
const chrootPath = '/workspaces/aiTools';
|
||||
|
||||
if (!chrootPath) {
|
||||
return { err: "Chroot path is required" };
|
||||
|
||||
@@ -808,7 +808,7 @@ export async function run(args) {
|
||||
open_file,
|
||||
write_file,
|
||||
remove_file,
|
||||
'/home/seb/src/aiTools/tmp'
|
||||
'/workspaces/aiTools'
|
||||
);
|
||||
return result;
|
||||
} catch (error) {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { createInterface } from "node:readline";
|
||||
|
||||
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`.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { spawnSync } from "node:child_process";
|
||||
|
||||
const virtual_chroot = '/home/seb/src/aiTools/tmp';
|
||||
const virtual_chroot = '/workspaces/aiTools';
|
||||
|
||||
export default {
|
||||
type: "function", name: "ripgrep", strict: true,
|
||||
|
||||
Reference in New Issue
Block a user