summaryrefslogtreecommitdiffhomepage
path: root/js/src/tool
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tool')
-rw-r--r--js/src/tool/edit.ts3
-rw-r--r--js/src/tool/glob.ts2
-rw-r--r--js/src/tool/grep.ts2
-rw-r--r--js/src/tool/ls.ts2
-rw-r--r--js/src/tool/lsp-diagnostics.ts2
-rw-r--r--js/src/tool/lsp-hover.ts2
-rw-r--r--js/src/tool/util/file-times.ts2
7 files changed, 6 insertions, 9 deletions
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", () => ({