/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/plugin/src/v2/effect/agent.ts
14 строк
410 B
Dax
feat(plugin): add namespaced hook API (#33416)
23 июн 2026, 02:06
Не верифицирован
23 июн 2026, 02:06
909a1a6
Код
Авторство
О чём код?
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 }>