Add npm tools

This commit is contained in:
Alex Gleason committed 2025-07-25 03:01:14 -05:00
1 parent 155415c7d2
commit c703e517ca
8 files changed
+758 -5

No files matched your search

+2 -2
View File
@@ -68,7 +68,7 @@ export class TextEditorViewTool implements Tool<TextEditorViewParams> {
}
// If it's a file, read and return its contents
let content = await this.fs.readFile(absolutePath, "utf-8");
let content = await this.fs.readFile(absolutePath, "utf8");
// Apply line filtering if start_line or end_line are provided
if (start_line !== undefined || end_line !== undefined) {
@@ -225,7 +225,7 @@ export class TextEditorViewTool implements Tool<TextEditorViewParams> {
try {
// Try to read .gitignore file
const gitignoreContent = await this.fs.readFile(".gitignore", "utf-8");
const gitignoreContent = await this.fs.readFile(".gitignore", "utf8");
ig.add(gitignoreContent);
} catch {
// If there's an error reading .gitignore, fall back to defaults