From 80597cd3fdf149cef87db55f03a3cc0bfd723a7a Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Thu, 29 May 2025 11:58:40 -0400 Subject: type error fix --- js/src/tool/edit.ts | 3 --- js/src/tool/glob.ts | 2 +- js/src/tool/grep.ts | 2 +- js/src/tool/ls.ts | 2 +- js/src/tool/lsp-diagnostics.ts | 2 +- js/src/tool/lsp-hover.ts | 2 +- js/src/tool/util/file-times.ts | 2 +- 7 files changed, 6 insertions(+), 9 deletions(-) (limited to 'js/src/tool') diff --git a/js/src/tool/edit.ts b/js/src/tool/edit.ts index 3f784d616..41ff60855 100644 --- a/js/src/tool/edit.ts +++ b/js/src/tool/edit.ts @@ -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: diff --git a/js/src/tool/glob.ts b/js/src/tool/glob.ts index 5f1952b78..f52c3f5d0 100644 --- a/js/src/tool/glob.ts +++ b/js/src/tool/glob.ts @@ -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). diff --git a/js/src/tool/grep.ts b/js/src/tool/grep.ts index d5c2d700c..0c5848074 100644 --- a/js/src/tool/grep.ts +++ b/js/src/tool/grep.ts @@ -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"; diff --git a/js/src/tool/ls.ts b/js/src/tool/ls.ts index 62c3d113b..5954355a3 100644 --- a/js/src/tool/ls.ts +++ b/js/src/tool/ls.ts @@ -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"; diff --git a/js/src/tool/lsp-diagnostics.ts b/js/src/tool/lsp-diagnostics.ts index c1372b0e9..ecd54c1a7 100644 --- a/js/src/tool/lsp-diagnostics.ts +++ b/js/src/tool/lsp-diagnostics.ts @@ -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", diff --git a/js/src/tool/lsp-hover.ts b/js/src/tool/lsp-hover.ts index 9b6290ef5..4ffa90a75 100644 --- a/js/src/tool/lsp-hover.ts +++ b/js/src/tool/lsp-hover.ts @@ -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", diff --git a/js/src/tool/util/file-times.ts b/js/src/tool/util/file-times.ts index aab562dd4..8d36d007d 100644 --- a/js/src/tool/util/file-times.ts +++ b/js/src/tool/util/file-times.ts @@ -1,4 +1,4 @@ -import { App } from "../../app"; +import { App } from "../../app/app"; export namespace FileTimes { export const state = App.state("tool.filetimes", () => ({ -- cgit v1.2.3