This commit is contained in:
Dax Raad
2025-06-11 12:58:06 -04:00
parent 6cf8784ecf
commit 636133e6cb
10 changed files with 29 additions and 14 deletions

View File

@@ -5,6 +5,7 @@ import { Tool } from "./tool"
import { LSP } from "../lsp"
import { FileTimes } from "./util/file-times"
import DESCRIPTION from "./read.txt"
import { App } from "../app/app"
const MAX_READ_SIZE = 250 * 1024
const DEFAULT_READ_LIMIT = 2000
@@ -95,6 +96,7 @@ export const ReadTool = Tool.define({
output,
metadata: {
preview,
title: path.relative(App.info().path.root, filePath),
},
}
},