Something went wrong. Try again.
opencode v2 mirror
Something went wrong. Try again.
405 B · 13 lines
TypeScript
1234567891011121314import { Plugin } from "@opencode/plugin/effect"import { Effect } from "effect"import { BrowserConnection } from "./connection.js"import { BrowserTools } from "./tools.js"
export default Plugin.define({ id: "opencode.browser", effect: (ctx) => Effect.gen(function* () { const connection = yield* BrowserConnection.make(ctx) yield* BrowserTools.register(ctx, connection) }),})