mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 13:30:52 +00:00
chore: fix typescript issues
This commit is contained in:
parent
40b1dd7ef2
commit
f7e8dd2ff8
3 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@ import { Message } from "../session/message"
|
|||
import { Provider } from "../provider/provider"
|
||||
import { App } from "../app/app"
|
||||
import { Global } from "../global"
|
||||
import { filter, mapValues } from "remeda"
|
||||
import { mapValues } from "remeda"
|
||||
import { NamedError } from "../util/error"
|
||||
import { ModelsDev } from "../provider/models"
|
||||
import { Ripgrep } from "../external/ripgrep"
|
||||
|
|
|
@ -25,7 +25,7 @@ export namespace SystemPrompt {
|
|||
export async function environment() {
|
||||
const app = App.info()
|
||||
|
||||
const tree = async () => {
|
||||
;async () => {
|
||||
const files = await Ripgrep.files({
|
||||
cwd: app.path.cwd,
|
||||
})
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { z, type ZodSchema } from "zod"
|
||||
import { Log } from "./log"
|
||||
// import { Log } from "./log"
|
||||
|
||||
const log = Log.create()
|
||||
// const log = Log.create()
|
||||
|
||||
export abstract class NamedError extends Error {
|
||||
abstract schema(): ZodSchema
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue