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 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" };
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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`.
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user