MCPcopy Index your code
hub / github.com/anomalyco/opencode / managed

Function managed

packages/core/test/plugin.test.ts:46–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 let description = "first"
45
46 const managed = () =>
47 define({
48 id: "managed",
49 effect: (ctx) =>
50 ctx.agent
51 .transform((agents) =>
52 agents.update("configured", (agent) => {
53 agent.description = description
54 }),
55 )
56 .pipe(Effect.asVoid),
57 })
58
59 yield* plugins.add(PluginV2.ID.make("managed"), managed().effect)
60

Callers 1

plugin.test.tsFile · 0.85

Calls 3

defineFunction · 0.90
updateMethod · 0.65
transformMethod · 0.45

Tested by

no test coverage detected