15 lines
519 B
TypeScript
15 lines
519 B
TypeScript
import { Schema } from "effect"
|
|
import { NamedError } from "@opencode-ai/core/util/error"
|
|
|
|
export const OutputLengthError = NamedError.create("MessageOutputLengthError", {})
|
|
|
|
export const AuthError = NamedError.create("ProviderAuthError", {
|
|
providerID: Schema.String,
|
|
message: Schema.String,
|
|
})
|
|
|
|
export const Shared = [AuthError.EffectSchema, NamedError.Unknown.EffectSchema, OutputLengthError.EffectSchema] as const
|
|
export const SharedSchema = Schema.Union(Shared)
|
|
|
|
export * as MessageError from "./message-error"
|