type error fix

This commit is contained in:
Dax Raad
2025-05-29 11:58:40 -04:00
parent 48f81fe4d3
commit 80597cd3fd
28 changed files with 76 additions and 230 deletions

View File

@@ -1,12 +1,9 @@
import { z } from "zod";
import * as path from "path";
import { Log } from "../util/log";
import { Tool } from "./tool";
import { FileTimes } from "./util/file-times";
import { LSP } from "../lsp";
const log = Log.create({ service: "tool.edit" });
const DESCRIPTION = `Edits files by replacing text, creating new files, or deleting content. For moving or renaming files, use the Bash tool with the 'mv' command instead. For larger file edits, use the FileWrite tool to overwrite files.
Before using this tool:

View File

@@ -1,6 +1,6 @@
import { z } from "zod";
import { Tool } from "./tool";
import { App } from "../app";
import { App } from "../app/app";
const DESCRIPTION = `Fast file pattern matching tool that finds files by name and pattern, returning matching paths sorted by modification time (newest first).

View File

@@ -1,6 +1,6 @@
import { z } from "zod";
import { Tool } from "./tool";
import { App } from "../app";
import { App } from "../app/app";
import { spawn } from "child_process";
import { promises as fs } from "fs";
import path from "path";

View File

@@ -1,6 +1,6 @@
import { z } from "zod";
import { Tool } from "./tool";
import { App } from "../app";
import { App } from "../app/app";
import * as path from "path";
import * as fs from "fs";

View File

@@ -2,7 +2,7 @@ import { z } from "zod";
import { Tool } from "./tool";
import path from "path";
import { LSP } from "../lsp";
import { App } from "../app";
import { App } from "../app/app";
export const LspDiagnosticTool = Tool.define({
name: "diagnostics",

View File

@@ -2,7 +2,7 @@ import { z } from "zod";
import { Tool } from "./tool";
import path from "path";
import { LSP } from "../lsp";
import { App } from "../app";
import { App } from "../app/app";
export const LspHoverTool = Tool.define({
name: "lsp.hover",

View File

@@ -1,4 +1,4 @@
import { App } from "../../app";
import { App } from "../../app/app";
export namespace FileTimes {
export const state = App.state("tool.filetimes", () => ({