mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-23 10:45:33 -04:00
14 lines
459 B
TypeScript
14 lines
459 B
TypeScript
export * as FileDiff from "./file-diff.js"
|
|
|
|
import { Schema } from "effect"
|
|
import { optional } from "./schema.js"
|
|
|
|
export const Info = Schema.Struct({
|
|
file: optional(Schema.String),
|
|
patch: optional(Schema.String),
|
|
additions: Schema.Finite,
|
|
deletions: Schema.Finite,
|
|
status: optional(Schema.Literals(["added", "deleted", "modified"])),
|
|
}).annotate({ identifier: "SnapshotFileDiff" })
|
|
export interface Info extends Schema.Schema.Type<typeof Info> {}
|