Something went wrong. Try again.
opencode v2 mirror
Something went wrong. Try again.
1234567891011121314151617181920212223242526export * as FileDiff from "./file-diff.js"
import { Schema } from "effect"import { NonNegativeInt, optional } from "./schema.js"
export const Info = Schema.Struct({ file: Schema.String, patch: Schema.String, additions: NonNegativeInt, deletions: NonNegativeInt, status: Schema.Literals(["added", "deleted", "modified"]), /** Marks the entry a folder listing adds for itself when it stopped before showing or checking every entry. */ more: Schema.Literal(true).pipe(optional),}).annotate({ identifier: "FileDiff.Info" })export interface Info extends Schema.Schema.Type<typeof Info> {}
/** V1 snapshot and persisted session diff shape. */export const LegacyInfo = Schema.Struct({ file: Schema.String.pipe(optional), patch: Schema.String.pipe(optional), additions: Schema.Finite, deletions: Schema.Finite, status: Schema.Literals(["added", "deleted", "modified"]).pipe(optional),}).annotate({ identifier: "FileDiff.LegacyInfo" })export interface LegacyInfo extends Schema.Schema.Type<typeof LegacyInfo> {}