/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/plugin/src/v2/effect/plugin.ts
16 строк
465 B
Dax
feat(core): add opencode integration (#33555)
24 июн 2026, 02:45
Не верифицирован
24 июн 2026, 02:45
cf80b5c
Код
Авторство
О чём код?
import type { Effect, Scope } from "effect" import type { PluginContext } from "./context.js" export interface Plugin<R = Scope.Scope> { readonly id: string readonly effect: (context: PluginContext) => Effect.Effect<void, never, R> } export function define<R = Scope.Scope>(plugin: Plugin<R>) { return plugin } export interface PluginDomain { readonly add: (plugin: Plugin) => Effect.Effect<void> readonly remove: (id: string) => Effect.Effect<void> }