Compare commits

...

1 Commits

Author SHA1 Message Date
Kit Langton a06425e344 fix(core): restore explore shell access 2026-07-08 22:34:00 -04:00
2 changed files with 21 additions and 0 deletions
+1
View File
@@ -182,6 +182,7 @@ export const Plugin = define({
{ action: "*", resource: "*", effect: "deny" },
{ action: "grep", resource: "*", effect: "allow" },
{ action: "glob", resource: "*", effect: "allow" },
{ action: "shell", resource: "*", effect: "allow" },
{ action: "webfetch", resource: "*", effect: "allow" },
{ action: "websearch", resource: "*", effect: "allow" },
{ action: "read", resource: "*", effect: "allow" },
+20
View File
@@ -155,6 +155,26 @@ describe("AgentV2", () => {
}),
)
it.effect("preserves V1 shell access for explore", () =>
Effect.gen(function* () {
const agent = yield* AgentV2.Service
yield* AgentPlugin.Plugin.effect(
host({
agent: agentHost(agent),
}),
).pipe(
Effect.provideService(
Location.Service,
Location.Service.of(location({ directory: AbsolutePath.make("/project") })),
),
)
const explore = yield* agent.get(AgentV2.ID.make("explore"))
expect(explore).toBeDefined()
expect(PermissionV2.evaluate("shell", "git status", explore!.permissions).effect).toBe("allow")
}),
)
it.effect("denies the subagent tool for built-in subagents", () =>
Effect.gen(function* () {
const agent = yield* AgentV2.Service