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