feat(plugin): add namespaced hook API (#33416)

This commit is contained in:
Dax
2026-06-22 19:06:57 -04:00
committed by GitHub
parent 47546248f2
commit 9371e151f4
150 changed files with 3286 additions and 3916 deletions
+6 -2
View File
@@ -50,7 +50,7 @@ describe("AgentV2", () => {
)
description = "New description"
hidden = false
yield* agent.rebuild()
yield* agent.reload()
expect(yield* agent.get(id)).toMatchObject({ description: "New description", hidden: false })
}),
@@ -104,8 +104,12 @@ describe("AgentV2", () => {
yield* AgentPlugin.Plugin.effect(
host({
agent: agentHost(agent),
location: location({ directory: AbsolutePath.make("/project") }),
}),
).pipe(
Effect.provideService(
Location.Service,
Location.Service.of(location({ directory: AbsolutePath.make("/project") })),
),
)
const agents = yield* agent.all()