Download packages/plugin/src/v2/effect/command.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 392 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/plugin/src/v2/effect/command.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/plugin/src/v2/effect/command.ts
-
curl -L -o command.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/plugin/src/v2/effect/command.ts
392 Bytes
| import type { CommandV2Info } from "@opencode-ai/sdk/v2/types" | |
| import type { Hooks } from "./registration.js" | |
| export interface CommandDraft { | |
| list(): readonly CommandV2Info[] | |
| get(name: string): CommandV2Info | undefined | |
| update(name: string, update: (command: CommandV2Info) => void): void | |
| remove(name: string): void | |
| } | |
| export type CommandHooks = Hooks<{ | |
| transform: CommandDraft | |
| }> | |