2026-07-17 12:45:06 +00:00
|
|
|
import {
|
|
|
|
|
Agent,
|
|
|
|
|
Command,
|
|
|
|
|
Connection,
|
|
|
|
|
Credential,
|
|
|
|
|
Integration,
|
|
|
|
|
Model,
|
|
|
|
|
Plugin,
|
|
|
|
|
Provider,
|
|
|
|
|
Reference,
|
|
|
|
|
Skill,
|
2026-07-27 00:08:55 +00:00
|
|
|
} from "@opencode-ai/plugin/effect"
|
|
|
|
|
import { Tool } from "@opencode-ai/schema/tool"
|
2026-07-17 12:45:06 +00:00
|
|
|
|
|
|
|
|
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,
|
2026-07-27 00:08:55 +00:00
|
|
|
Tool: { Error: Tool.Error },
|
2026-07-17 12:45:06 +00:00
|
|
|
}
|