This commit is contained in:
Dax Raad
2025-05-28 17:24:15 -04:00
parent 041a080a13
commit e88264075a
22 changed files with 31 additions and 34 deletions

View File

@@ -193,9 +193,7 @@ export const bash = Tool.define({
timeout: timeout,
});
return {
output: {
content: process.stdout.toString("utf-8"),
},
output: process.stdout.toString("utf-8"),
};
},
});

View File

@@ -1,5 +1,5 @@
import { z } from "zod";
import * as path from "node:path";
import * as path from "path";
import { Log } from "../util/log";
import { Tool } from "./tool";
import { FileTimes } from "./util/file-times";

View File

@@ -1,9 +1,9 @@
import { z } from "zod";
import { Tool } from "./tool";
import { App } from "../app";
import { spawn } from "node:child_process";
import { promises as fs } from "node:fs";
import path from "node:path";
import { spawn } from "child_process";
import { promises as fs } from "fs";
import path from "path";
const DESCRIPTION = `Fast content search tool that finds files containing specific text or patterns, returning matching file paths sorted by modification time (newest first).

View File

@@ -1,8 +1,8 @@
import { z } from "zod";
import { Tool } from "./tool";
import { App } from "../app";
import * as path from "node:path";
import * as fs from "node:fs";
import * as path from "path";
import * as fs from "fs";
const DESCRIPTION = `Directory listing tool that shows files and subdirectories in a tree structure, helping you explore and understand the project organization.

View File

@@ -1,6 +1,6 @@
import { z } from "zod";
import { Tool } from "./tool";
import path from "node:path";
import path from "path";
import { LSP } from "../lsp";
import { App } from "../app";

View File

@@ -1,6 +1,6 @@
import { z } from "zod";
import { Tool } from "./tool";
import path from "node:path";
import path from "path";
import { LSP } from "../lsp";
import { App } from "../app";

View File

@@ -1,6 +1,6 @@
import { z } from "zod";
import * as path from "node:path";
import * as fs from "node:fs/promises";
import * as path from "path";
import * as fs from "fs/promises";
import { Tool } from "./tool";
import { FileTimes } from "./util/file-times";

View File

@@ -1,6 +1,6 @@
import { z } from "zod";
import * as fs from "node:fs";
import * as path from "node:path";
import * as fs from "fs";
import * as path from "path";
import { Tool } from "./tool";
import { LSP } from "../lsp";
import { FileTimes } from "./util/file-times";