Enhance output logging in CLI and ModelDialog by integrating chalk for better readability. Update output handling to include detailed reasoning and token information. Refactor message management in ModelDialog to improve response processing and add support for function call arguments. Adjust chroot paths in various tools for consistency.
This commit is contained in:
@@ -3,7 +3,7 @@ import { createInterface } from "node:readline";
|
||||
|
||||
import path from "node:path";
|
||||
|
||||
const virtual_chroot = '/workspaces/aiTools';
|
||||
const virtual_chroot = '/workspaces/aiTools/root';
|
||||
|
||||
// Ensures reads are confined to `virtual_chroot`.
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
type: "object", required: ["path","linesToSkip","linesToRead"], additionalProperties: false, properties: {
|
||||
path: { type: "string", description: "The path to the file to read.", },
|
||||
linesToSkip: { type: "integer", description: "The number of lines to skip. Use 0 to read from the beginning.", minimum: 0 },
|
||||
linesToRead: { type: "integer", description: "1-400 The number of lines to read. Use 0 or more than 400 to read 400 lines.", minimum: 0 }
|
||||
linesToRead: { type: "integer", description: "1-400 The number of lines to read.", minimum: 1, maximum: 400 }
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -29,6 +29,8 @@ export async function run(args) {
|
||||
|
||||
// Normalize linesToRead (1-400, with 0 or >400 meaning 400)
|
||||
const maxLines = (linesToRead <= 0 || linesToRead > 400) ? 400 : linesToRead;
|
||||
|
||||
// return 'FILE DOES NOT EXIST'
|
||||
|
||||
try {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user