mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 11:34:44 -07:00
feat(browser): add sensitive action controls and read-only noise reduction (#22867)
This commit is contained in:
@@ -160,6 +160,11 @@ describe('PolicyEngine', () => {
|
||||
|
||||
engine = new PolicyEngine({ rules });
|
||||
|
||||
// Match with unqualified name + serverName
|
||||
expect((await engine.check({ name: 'tool' }, 'my-server')).decision).toBe(
|
||||
PolicyDecision.ALLOW,
|
||||
);
|
||||
|
||||
// Match with qualified name (standard)
|
||||
expect(
|
||||
(await engine.check({ name: 'mcp_my-server_tool' }, 'my-server'))
|
||||
|
||||
Reference in New Issue
Block a user