mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-09 01:02:56 +00:00
fix: derive plugin media trust from metadata (#86410)
This commit is contained in:
committed by
GitHub
parent
75c72360ad
commit
e761eb8f3e
@@ -1364,8 +1364,11 @@ describe("resolvePluginTools optional tools", () => {
|
||||
expectResolvedToolNames(first, ["other_tool", "optional_tool"]);
|
||||
expectResolvedToolNames(second, ["other_tool", "optional_tool"]);
|
||||
expect(getPluginToolMeta(first[0])?.optional).toBe(false);
|
||||
expect(getPluginToolMeta(first[0])?.trustedLocalMedia).toBe(true);
|
||||
expect(getPluginToolMeta(first[1])?.optional).toBe(true);
|
||||
expect(getPluginToolMeta(first[1])?.trustedLocalMedia).toBe(true);
|
||||
expect(getPluginToolMeta(second[1])?.optional).toBe(true);
|
||||
expect(getPluginToolMeta(second[1])?.trustedLocalMedia).toBe(true);
|
||||
expect(factory).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user