summaryrefslogtreecommitdiffhomepage
path: root/js/src/tool
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-05-28 17:24:15 -0400
committerDax Raad <[email protected]>2025-05-28 17:24:21 -0400
commite88264075a8b67c46b57d13db8488f4f01e7f9f1 (patch)
tree74aeb70ee3625355ab5c0440451505ca10997a80 /js/src/tool
parent041a080a139a06402d9c0ce4d37622f9eb49e729 (diff)
downloadopencode-e88264075a8b67c46b57d13db8488f4f01e7f9f1.tar.gz
opencode-e88264075a8b67c46b57d13db8488f4f01e7f9f1.zip
sync
Diffstat (limited to 'js/src/tool')
-rw-r--r--js/src/tool/bash.ts4
-rw-r--r--js/src/tool/edit.ts2
-rw-r--r--js/src/tool/grep.ts6
-rw-r--r--js/src/tool/ls.ts4
-rw-r--r--js/src/tool/lsp-diagnostics.ts2
-rw-r--r--js/src/tool/lsp-hover.ts2
-rw-r--r--js/src/tool/patch.ts4
-rw-r--r--js/src/tool/view.ts4
8 files changed, 13 insertions, 15 deletions
diff --git a/js/src/tool/bash.ts b/js/src/tool/bash.ts
index 2043093ad..f6a9fa6e2 100644
--- a/js/src/tool/bash.ts
+++ b/js/src/tool/bash.ts
@@ -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"),
};
},
});
diff --git a/js/src/tool/edit.ts b/js/src/tool/edit.ts
index f041a4748..3f784d616 100644
--- a/js/src/tool/edit.ts
+++ b/js/src/tool/edit.ts
@@ -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";
diff --git a/js/src/tool/grep.ts b/js/src/tool/grep.ts
index 21f242244..d5c2d700c 100644
--- a/js/src/tool/grep.ts
+++ b/js/src/tool/grep.ts
@@ -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).
diff --git a/js/src/tool/ls.ts b/js/src/tool/ls.ts
index c481b4d8d..62c3d113b 100644
--- a/js/src/tool/ls.ts
+++ b/js/src/tool/ls.ts
@@ -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.
diff --git a/js/src/tool/lsp-diagnostics.ts b/js/src/tool/lsp-diagnostics.ts
index 41c33f822..c1372b0e9 100644
--- a/js/src/tool/lsp-diagnostics.ts
+++ b/js/src/tool/lsp-diagnostics.ts
@@ -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";
diff --git a/js/src/tool/lsp-hover.ts b/js/src/tool/lsp-hover.ts
index 9957920a2..9b6290ef5 100644
--- a/js/src/tool/lsp-hover.ts
+++ b/js/src/tool/lsp-hover.ts
@@ -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";
diff --git a/js/src/tool/patch.ts b/js/src/tool/patch.ts
index 209a2d927..137877a7b 100644
--- a/js/src/tool/patch.ts
+++ b/js/src/tool/patch.ts
@@ -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";
diff --git a/js/src/tool/view.ts b/js/src/tool/view.ts
index c3d9fa72b..b36fa94f6 100644
--- a/js/src/tool/view.ts
+++ b/js/src/tool/view.ts
@@ -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";