Download packages/plugin/src/v2/effect/reference.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 433 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/eb1202c08d0fcc3e89b18b16bcc802e692e97016/packages/plugin/src/v2/effect/reference.ts
- Command line
-
hf download hf://SaylorTwift/opencode@eb1202c08d0fcc3e89b18b16bcc802e692e97016/packages/plugin/src/v2/effect/reference.ts
-
curl -L -o reference.ts https://huggingface.co/SaylorTwift/opencode/resolve/eb1202c08d0fcc3e89b18b16bcc802e692e97016/packages/plugin/src/v2/effect/reference.ts
433 Bytes
| import type { ReferenceGitSource, ReferenceLocalSource } from "@opencode-ai/sdk/v2/types" | |
| import type { Hooks } from "./registration.js" | |
| export interface ReferenceDraft { | |
| add(name: string, source: ReferenceLocalSource | ReferenceGitSource): void | |
| remove(name: string): void | |
| list(): readonly (readonly [string, ReferenceLocalSource | ReferenceGitSource])[] | |
| } | |
| export type ReferenceHooks = Hooks<{ | |
| transform: ReferenceDraft | |
| }> | |