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:
matt 2026-02-12 00:27:46 +09:00
parent 921420b946
commit 8a671bc53f
2 changed files with 2 additions and 3 deletions

View file

@ -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',

View file

@ -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)' }];
}
}