mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-14 03:56:55 +03:00
14 lines
405 B
TypeScript
14 lines
405 B
TypeScript
import { 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)
|
|
}),
|
|
})
|