Refactor NotificationTrigger settings for improved match field options
- Removed the 'toolName' and 'matchField' properties from the default trigger configuration. - Updated the default match field options to include a new option for matching against the entire JSON-serialized input.
This commit is contained in:
parent
921420b946
commit
8a671bc53f
2 changed files with 2 additions and 3 deletions
|
|
@ -33,9 +33,7 @@ export const DEFAULT_TRIGGERS: NotificationTrigger[] = [
|
|||
name: '.env File Access Alert',
|
||||
enabled: true,
|
||||
contentType: 'tool_use',
|
||||
toolName: 'Any Tool',
|
||||
mode: 'content_match',
|
||||
matchField: 'command',
|
||||
matchPattern: '/.env',
|
||||
isBuiltin: true,
|
||||
color: 'red',
|
||||
|
|
|
|||
|
|
@ -76,7 +76,8 @@ export function getAvailableMatchFields(
|
|||
{ value: 'args', label: 'Arguments' },
|
||||
];
|
||||
default:
|
||||
return [];
|
||||
// "Any Tool" - match against the entire JSON-serialized input
|
||||
return [{ value: '', label: 'Full Input (JSON)' }];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue