Plugin Summary
For more information, please see: https://meta.discourse.org/t/discourse-ai/259214?u=falco
Changes made in this fork
Solution for tag group support in the LLM triage automation:
- New Tag Group Support Module (lib/discourse_ai/automation/tag_group_support.rb):
- available_tags: Fetches all tags including those in tag groups, respecting permissions
- validate_and_filter_tags: Validates and filters tags based on tag group permissions
- Updated LLM Triage Handler (lib/automation/llm_triage.rb):
- Added tag validation with tag group support
- Ensures tags are properly validated before being applied
- Uses the system user's guardian for permission checks
- Modified Scriptable Definition (discourse_automation/llm_triage.rb):
- Updated the tags field to use our new TagGroupSupport module
- Added proper tag loading with permissions through a lambda function
These changes will:
- Show all available tags in the UI, including those in tag groups
- Properly handle tag group permissions when applying tags
- Maintain security by validating tags before application