* initial * Menu * small clarity change * cleanup * Tests * Update .changeset/ninety-pots-rescue.md Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * Update src/test/TerminalCommandApprovalSettings.test.ts Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * indentation * smooth transition * cleanup * Consolidated enabledActionsList for display, fixed unchecking issue * Updated shouldAutoApproveTool to better manage sub-options for future auto approve changes * removed test * cleanup * comments and extra bool check * cleanup * change to compare ids isntead of label strings * test in progress * test in progress * no tests for now * type safety change * cleanup * rename * comments * Copy --------- Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com>
31 lines
876 B
TypeScript
31 lines
876 B
TypeScript
export interface AutoApprovalSettings {
|
|
// Whether auto-approval is enabled
|
|
enabled: boolean
|
|
// Individual action permissions
|
|
actions: {
|
|
readFiles: boolean // Read files and directories
|
|
editFiles: boolean // Edit files
|
|
executeSafeCommands: boolean // Execute safe commands
|
|
executeAllCommands: boolean // Execute all commands
|
|
useBrowser: boolean // Use browser
|
|
useMcp: boolean // Use MCP servers
|
|
}
|
|
// Global settings
|
|
maxRequests: number // Maximum number of auto-approved requests
|
|
enableNotifications: boolean // Show notifications for approval and task completion
|
|
}
|
|
|
|
export const DEFAULT_AUTO_APPROVAL_SETTINGS: AutoApprovalSettings = {
|
|
enabled: false,
|
|
actions: {
|
|
readFiles: false,
|
|
editFiles: false,
|
|
executeSafeCommands: false,
|
|
executeAllCommands: false,
|
|
useBrowser: false,
|
|
useMcp: false,
|
|
},
|
|
maxRequests: 20,
|
|
enableNotifications: false,
|
|
}
|