mirror of
https://github.com/sst/opencode.git
synced 2025-09-08 14:10:34 +00:00
sync
This commit is contained in:
parent
a1d40f8f28
commit
b840a40759
16 changed files with 23 additions and 23 deletions
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import path from "path";
|
||||
import path from "node:path";
|
||||
|
||||
export namespace AppPath {
|
||||
export function data(input: string) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { z } from "zod";
|
||||
import { randomBytes } from "crypto";
|
||||
import { randomBytes } from "node:crypto";
|
||||
|
||||
export namespace Identifier {
|
||||
const prefixes = {
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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" });
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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).
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue