Download packages/core/src/config/reference.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 736 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/config/reference.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/core/src/config/reference.ts
-
curl -L -o reference.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/config/reference.ts
736 Bytes
| export * as ConfigReference from "./reference" | |
| import { Schema } from "effect" | |
| export class Git extends Schema.Class<Git>("ConfigV2.Reference.Git")({ | |
| repository: Schema.String, | |
| branch: Schema.String.pipe(Schema.optional), | |
| description: Schema.String.pipe(Schema.optional), | |
| hidden: Schema.Boolean.pipe(Schema.optional), | |
| }) {} | |
| export class Local extends Schema.Class<Local>("ConfigV2.Reference.Local")({ | |
| path: Schema.String, | |
| description: Schema.String.pipe(Schema.optional), | |
| hidden: Schema.Boolean.pipe(Schema.optional), | |
| }) {} | |
| export const Entry = Schema.Union([Schema.String, Git, Local]) | |
| export type Entry = typeof Entry.Type | |
| export const Info = Schema.Record(Schema.String, Entry) | |
| export type Info = typeof Info.Type | |