Download packages/schema/src/plugin.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 344 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/schema/src/plugin.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/schema/src/plugin.ts
-
curl -L -o plugin.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/schema/src/plugin.ts
344 Bytes
| export * as Plugin from "./plugin" | |
| import { Schema } from "effect" | |
| import { define, inventory } from "./event" | |
| export const ID = Schema.String.pipe(Schema.brand("Plugin.ID")) | |
| export type ID = typeof ID.Type | |
| const Added = define({ | |
| type: "plugin.added", | |
| schema: { id: ID }, | |
| }) | |
| export const Event = { Added, Definitions: inventory(Added) } | |