/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/core/test/plugin/fixtures/config-effect-plugin.ts
15 строк
401 B
Dax
feat(plugin): add namespaced hook API (#33416)
23 июн 2026, 02:06
Не верифицирован
23 июн 2026, 02:06
909a1a6
Код
Авторство
О чём код?
import { define } from "@opencode-ai/plugin/v2/effect" import { Effect } from "effect" export default define({ id: "config-effect-plugin", effect: (ctx) => ctx.agent .transform((agents) => { agents.update("effect-configured", (agent) => { agent.description = ctx.options.description agent.mode = "subagent" }) }) .pipe(Effect.asVoid), })