mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-27 21:44:25 -07:00
Revert "Make --allowed-tools work in non-interactive mode" (#10006)
This commit is contained in:
@@ -36,15 +36,6 @@ describe('doesToolInvocationMatch', () => {
|
||||
expect(result).toBe(true);
|
||||
});
|
||||
|
||||
it('should match a command with an alias', () => {
|
||||
const invocation = {
|
||||
params: { command: 'wc -l' },
|
||||
} as AnyToolInvocation;
|
||||
const patterns = ['ShellTool(wc)'];
|
||||
const result = doesToolInvocationMatch('ShellTool', invocation, patterns);
|
||||
expect(result).toBe(true);
|
||||
});
|
||||
|
||||
it('should match a command that is a prefix', () => {
|
||||
const invocation = {
|
||||
params: { command: 'git status -v' },
|
||||
|
||||
Reference in New Issue
Block a user