mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-04 01:03:35 +00:00
13 lines
459 B
TypeScript
13 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> {}
|