Download packages/core/src/config/plugin.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/config/plugin.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/core/src/config/plugin.ts
-
curl -L -o plugin.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/config/plugin.ts
410 Bytes
| export * as ConfigPlugin from "./plugin" | |
| import { Schema } from "effect" | |
| export class Entry extends Schema.Class<Entry>("ConfigV2.Plugin.Entry")({ | |
| package: Schema.String, | |
| options: Schema.Record(Schema.String, Schema.Unknown).pipe(Schema.optional), | |
| }) {} | |
| export const Plugin = Schema.Union([Schema.String, Entry]) | |
| export type Plugin = typeof Plugin.Type | |
| export const Plugins = Plugin.pipe(Schema.Array) | |