mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-22 18:25:32 -04:00
16 lines
551 B
TypeScript
16 lines
551 B
TypeScript
export * as Vcs from "./vcs.js"
|
|
|
|
import { Schema } from "effect"
|
|
import { NonNegativeInt } from "./schema.js"
|
|
|
|
export const Mode = Schema.Literals(["working", "branch"]).annotate({ identifier: "Vcs.Mode" })
|
|
export type Mode = typeof Mode.Type
|
|
|
|
export const FileStatus = Schema.Struct({
|
|
file: Schema.String,
|
|
additions: NonNegativeInt,
|
|
deletions: NonNegativeInt,
|
|
status: Schema.Literals(["added", "deleted", "modified"]),
|
|
}).annotate({ identifier: "Vcs.FileStatus" })
|
|
export interface FileStatus extends Schema.Schema.Type<typeof FileStatus> {}
|