mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-08 18:51:24 +03:00
29 lines
471 B
TypeScript
29 lines
471 B
TypeScript
import {
|
|
Agent,
|
|
Command,
|
|
Connection,
|
|
Credential,
|
|
Integration,
|
|
Model,
|
|
Plugin,
|
|
Provider,
|
|
Reference,
|
|
Skill,
|
|
} from "@opencode/plugin/effect"
|
|
import { Tool } from "@opencode/schema/tool"
|
|
|
|
const key = Symbol.for("opencode.plugin.v2.effect")
|
|
;(globalThis as typeof globalThis & { [key]?: unknown })[key] = {
|
|
Agent,
|
|
Command,
|
|
Connection,
|
|
Credential,
|
|
Integration,
|
|
Model,
|
|
Plugin,
|
|
Provider,
|
|
Reference,
|
|
Skill,
|
|
Tool: { Error: Tool.Error },
|
|
}
|