Download packages/schema/src/file-diff.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 453 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/schema/src/file-diff.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/schema/src/file-diff.ts
-
curl -L -o file-diff.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/schema/src/file-diff.ts
453 Bytes
| export * as FileDiff from "./file-diff" | |
| import { Schema } from "effect" | |
| import { optional } from "./schema" | |
| 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> {} | |