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
+1
View File
@@ -120,6 +120,7 @@ export class ShellToolInvocation extends BaseToolInvocation<
title: 'Confirm Shell Command',
command: this.params.command,
rootCommand: rootCommands.join(', '),
rootCommands,
onConfirm: async (outcome: ToolConfirmationOutcome) => {
await this.publishPolicyUpdate(outcome);
},
+1
View File
@@ -693,6 +693,7 @@ export interface ToolExecuteConfirmationDetails {
onConfirm: (outcome: ToolConfirmationOutcome) => Promise<void>;
command: string;
rootCommand: string;
rootCommands: string[];
}
export interface ToolMcpConfirmationDetails {