const virtual_chroot = '/home/seb/src/aiTools/tmp'; export default { type: "function", name: "ripgrep", strict: true, description: "ripgrep (rg) search ( rg pattern -g filePattern | head -200) , always limited to 200 lines", parameters: { type: "object", required: ["pattern","filePattern","n_flag","i_flag"], additionalProperties: false, properties: { pattern: {type: "string", description: 'The pattern to search for.'}, filePattern: { type: "string", description: "'*.js' for only js files, '!*.log' for all files except log files , '' for all files"}, n_flag: { type: "boolean",description: "show line numbers."}, i_flag: { type: "boolean",description: "case insensitive search."} },},}; export async function run(args) { return `ripgrep error (not implemented)` }