mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-22 18:25:32 -04:00
14 lines
337 B
TypeScript
14 lines
337 B
TypeScript
import { define } from "@opencode-ai/plugin/v2/promise"
|
|
|
|
export default define({
|
|
id: "config-promise-plugin",
|
|
setup: async (ctx) => {
|
|
await ctx.agent.transform((agents) => {
|
|
agents.update("configured", (agent) => {
|
|
agent.description = ctx.options.description
|
|
agent.mode = "subagent"
|
|
})
|
|
})
|
|
},
|
|
})
|