summaryrefslogtreecommitdiffhomepage
path: root/js/src/tool
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-05-26 21:44:55 -0400
committerDax Raad <[email protected]>2025-05-26 21:44:55 -0400
commitb840a4075956f00d0c46c82b19da24d984dddd07 (patch)
tree2fa94553d382baebf2d193e2b6d6e03f365f5326 /js/src/tool
parenta1d40f8f28a7fcb6ff3362a21a177418d76fbe95 (diff)
downloadopencode-b840a4075956f00d0c46c82b19da24d984dddd07.tar.gz
opencode-b840a4075956f00d0c46c82b19da24d984dddd07.zip
sync
Diffstat (limited to 'js/src/tool')
-rw-r--r--js/src/tool/diagnostics.ts2
-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/patch.ts4
-rw-r--r--js/src/tool/view.ts4
6 files changed, 11 insertions, 11 deletions
diff --git a/js/src/tool/diagnostics.ts b/js/src/tool/diagnostics.ts
index a01f39c7c..3d5565621 100644
--- a/js/src/tool/diagnostics.ts
+++ b/js/src/tool/diagnostics.ts
@@ -1,6 +1,6 @@
import { z } from "zod";
import { Tool } from "./tool";
-import path from "path";
+import path from "node:path";
import { LSP } from "../lsp";
import { App } from "../app";
diff --git a/js/src/tool/edit.ts b/js/src/tool/edit.ts
index 42cd02bb4..270c80e45 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 "path";
+import * as path from "node: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 ff5dbdc64..9c3754ce9 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 "child_process";
-import { promises as fs } from "fs";
-import path from "path";
+import { spawn } from "node:child_process";
+import { promises as fs } from "node:fs";
+import path from "node: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 20b8a92d0..286ac30a2 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 "path";
-import * as fs from "fs";
+import * as path from "node:path";
+import * as fs from "node: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/patch.ts b/js/src/tool/patch.ts
index 9a02757d7..d1969e8a1 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 "path";
-import * as fs from "fs/promises";
+import * as path from "node:path";
+import * as fs from "node: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 138f9ad3a..987e4e276 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 "fs";
-import * as path from "path";
+import * as fs from "node:fs";
+import * as path from "node:path";
import { Tool } from "./tool";
import { LSP } from "../lsp";
import { FileTimes } from "./util/file-times";