prefactor: add rootCommands as array so it can be used for policy parsing (#16640)

This commit is contained in:
Abhi
2026-01-14 13:50:28 -05:00
committed by GitHub
parent 764016bca7
commit a3234fb534
7 changed files with 7 additions and 0 deletions
@@ -208,6 +208,7 @@ describe('<HistoryItemDisplay />', () => {
title: 'Run Shell Command',
command: 'echo "\u001b[31mhello\u001b[0m"',
rootCommand: 'echo',
rootCommands: ['echo'],
onConfirm: async () => {},
},
},
@@ -83,6 +83,7 @@ describe('ToolConfirmationMessage', () => {
title: 'Confirm Execution',
command: 'echo "hello"',
rootCommand: 'echo',
rootCommands: ['echo'],
onConfirm: vi.fn(),
};
@@ -63,6 +63,7 @@ describe('textUtils', () => {
type: 'exec',
command: '\u001b[31mmls -l\u001b[0m',
rootCommand: '\u001b[32msudo apt-get update\u001b[0m',
rootCommands: ['sudo'],
onConfirm: async () => {},
};