Fix company skill rebase integration

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-07-09 20:50:34 +00:00
1 parent 4c4a0f3067
commit 565a2bf59e
2 files changed
+2 -2

No files matched your search

@@ -1259,7 +1259,7 @@ describe("company skill mutation permissions", () => {
expect(res.status, JSON.stringify(res.body)).toBe(201);
expect(mockReflectionCoachMutationGate.assertConsented).toHaveBeenCalledWith({
companyId: "company-1",
actorAgentId: "agent-1",
actorAgentId: "55555555-5555-4555-8555-555555555555",
actorRunId: "run-1",
targetKeys: ["skill-import:https://github.com/vercel-labs/agent-browser"],
});
+1 -1
View File
@@ -120,7 +120,7 @@ export function companySkillRoutes(db: Db) {
return targetKeys;
}
async function assertCanMutateCompanySkills(req: Request, companyId: string, targetKeys: string[]) {
async function assertCanMutateCompanySkills(req: Request, companyId: string, targetKeys: string[] = []) {
assertCompanyAccess(req, companyId);
const decision = await access.decide({
actor: req.actor,