mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-19 14:53:30 +00:00
15 lines
408 B
TypeScript
15 lines
408 B
TypeScript
import { Plugin } from "@opencode-ai/plugin/v2/effect"
|
|
import { Effect } from "effect"
|
|
|
|
export default Plugin.define({
|
|
id: "config-effect-plugin",
|
|
effect: (ctx) =>
|
|
ctx.agent
|
|
.transform((agents) => {
|
|
agents.update("effect-configured", (agent) => {
|
|
agent.description = ctx.options.description
|
|
agent.mode = "subagent"
|
|
})
|
|
})
|
|
.pipe(Effect.asVoid),
|
|
})
|