summaryrefslogtreecommitdiffhomepage
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
parenta1d40f8f28a7fcb6ff3362a21a177418d76fbe95 (diff)
downloadopencode-b840a4075956f00d0c46c82b19da24d984dddd07.tar.gz
opencode-b840a4075956f00d0c46c82b19da24d984dddd07.zip
sync
-rw-r--r--js/example/cli.ts2
-rw-r--r--js/src/app/index.ts2
-rw-r--r--js/src/app/path.ts2
-rw-r--r--js/src/id/id.ts2
-rw-r--r--js/src/index.ts4
-rw-r--r--js/src/lsp/client.ts4
-rw-r--r--js/src/lsp/index.ts2
-rw-r--r--js/src/session/session.ts2
-rw-r--r--js/src/storage/storage.ts2
-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
-rw-r--r--js/src/util/log.ts2
16 files changed, 23 insertions, 23 deletions
diff --git a/js/example/cli.ts b/js/example/cli.ts
index 9c9e07edd..476286ecb 100644
--- a/js/example/cli.ts
+++ b/js/example/cli.ts
@@ -1,5 +1,5 @@
import { App } from "../src/app";
-import path from "path";
+import path from "node:path";
import { edit } from "../src/tool";
import { FileTimes } from "../src/tool/util/file-times";
diff --git a/js/src/app/index.ts b/js/src/app/index.ts
index f0d371a34..b6713d930 100644
--- a/js/src/app/index.ts
+++ b/js/src/app/index.ts
@@ -1,4 +1,4 @@
-import fs from "fs/promises";
+import fs from "node:fs/promises";
import { AppPath } from "./path";
import { Log } from "../util/log";
import { Context } from "../util/context";
diff --git a/js/src/app/path.ts b/js/src/app/path.ts
index 972d18c41..7621cae3b 100644
--- a/js/src/app/path.ts
+++ b/js/src/app/path.ts
@@ -1,4 +1,4 @@
-import path from "path";
+import path from "node:path";
export namespace AppPath {
export function data(input: string) {
diff --git a/js/src/id/id.ts b/js/src/id/id.ts
index 62c6a12bf..5dd503788 100644
--- a/js/src/id/id.ts
+++ b/js/src/id/id.ts
@@ -1,5 +1,5 @@
import { z } from "zod";
-import { randomBytes } from "crypto";
+import { randomBytes } from "node:crypto";
export namespace Identifier {
const prefixes = {
diff --git a/js/src/index.ts b/js/src/index.ts
index 67f6393c2..b0e3ed270 100644
--- a/js/src/index.ts
+++ b/js/src/index.ts
@@ -1,7 +1,7 @@
import { App } from "./app";
import { Server } from "./server/server";
-import fs from "fs/promises";
-import path from "path";
+import fs from "node:fs/promises";
+import path from "node:path";
import { Bus } from "./bus";
import { Session } from "./session/session";
import cac from "cac";
diff --git a/js/src/lsp/client.ts b/js/src/lsp/client.ts
index ce2adebda..73a216b06 100644
--- a/js/src/lsp/client.ts
+++ b/js/src/lsp/client.ts
@@ -1,5 +1,5 @@
-import { spawn } from "child_process";
-import path from "path";
+import { spawn } from "node:child_process";
+import path from "node:path";
import {
createMessageConnection,
StreamMessageReader,
diff --git a/js/src/lsp/index.ts b/js/src/lsp/index.ts
index 358c6a549..f9d48e7bf 100644
--- a/js/src/lsp/index.ts
+++ b/js/src/lsp/index.ts
@@ -1,7 +1,7 @@
import { App } from "../app";
import { Log } from "../util/log";
import { LSPClient } from "./client";
-import path from "path";
+import path from "node:path";
export namespace LSP {
const log = Log.create({ service: "lsp" });
diff --git a/js/src/session/session.ts b/js/src/session/session.ts
index 6d873ef1c..1ab09d40d 100644
--- a/js/src/session/session.ts
+++ b/js/src/session/session.ts
@@ -1,4 +1,4 @@
-import path from "path";
+import path from "node:path";
import { App } from "../app/";
import { Identifier } from "../id/id";
import { LLM } from "../llm/llm";
diff --git a/js/src/storage/storage.ts b/js/src/storage/storage.ts
index 3b4c63cb8..390b3c087 100644
--- a/js/src/storage/storage.ts
+++ b/js/src/storage/storage.ts
@@ -1,6 +1,6 @@
import { FileStorage } from "@flystorage/file-storage";
import { LocalStorageAdapter } from "@flystorage/local-fs";
-import fs from "fs/promises";
+import fs from "node:fs/promises";
import { Log } from "../util/log";
import { App } from "../app";
import { AppPath } from "../app/path";
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";
diff --git a/js/src/util/log.ts b/js/src/util/log.ts
index 776d72839..df460cc50 100644
--- a/js/src/util/log.ts
+++ b/js/src/util/log.ts
@@ -1,6 +1,6 @@
import path from "node:path";
import { AppPath } from "../app/path";
-import fs from "fs/promises";
+import fs from "node:fs/promises";
export namespace Log {
const write = {
out: (msg: string) => {