Add agent-level permissions with whitelist/blacklist support (#1862)
This commit is contained in:
parent
ccaebdcd16
commit
10735f93ca
18 changed files with 344 additions and 54 deletions
|
|
@ -8,6 +8,7 @@ const ctx = {
|
|||
sessionID: "test",
|
||||
messageID: "",
|
||||
toolCallID: "",
|
||||
agent: "build",
|
||||
abort: AbortSignal.any([]),
|
||||
metadata: () => {},
|
||||
}
|
||||
|
|
@ -33,7 +34,7 @@ describe("tool.bash", () => {
|
|||
|
||||
test("cd ../ should fail outside of project root", async () => {
|
||||
await App.provide({ cwd: projectRoot }, async () => {
|
||||
await expect(
|
||||
expect(
|
||||
bash.execute(
|
||||
{
|
||||
command: "cd ../",
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ const ctx = {
|
|||
sessionID: "test",
|
||||
messageID: "",
|
||||
toolCallID: "",
|
||||
agent: "build",
|
||||
abort: AbortSignal.any([]),
|
||||
metadata: () => {},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue