Something went wrong. Try again.
opencode v2 mirror
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940export * as ConfigErrorV1 from "./error.js"
import { Schema } from "effect"import { NamedError } from "../../util/error.js"
const Issue = Schema.StructWithRest( Schema.Struct({ message: Schema.String, path: Schema.Array(Schema.String), }), [Schema.Record(Schema.String, Schema.Unknown)],)
export const JsonError = NamedError.create("ConfigJsonError", { path: Schema.String, message: Schema.optional(Schema.String),})
export const InvalidError = NamedError.create("ConfigInvalidError", { path: Schema.String, issues: Schema.optional(Schema.Array(Issue)), message: Schema.optional(Schema.String),})
export const FrontmatterError = NamedError.create("ConfigFrontmatterError", { path: Schema.String, message: Schema.String,})
export const DirectoryTypoError = NamedError.create("ConfigDirectoryTypoError", { path: Schema.String, dir: Schema.String, suggestion: Schema.String,})
export const RemoteAuthError = NamedError.create("ConfigRemoteAuthError", { url: Schema.String, remote: Schema.String,})