Releases: hendkai/ai_tag_manager
Release list
AI Tag Manager v1.1.3 - Critical Permission Fix
Critical Fix
This release fixes a critical bug where the extension could not access Thunderbird's messaging APIs due to missing permissions in the manifest.
Fixed
- Missing Thunderbird permissions: Added , , , and permissions to manifest.json
- Resolves error: "TypeError: can't access property 'listTags', messenger.messages is undefined"
Impact
Without these permissions, the extension was completely non-functional. This version is required for the extension to work properly.
Installation
- Download
ai-tag-manager-v1.1.3.xpi - Open Thunderbird β Add-ons & Themes (Ctrl+Shift+A)
- Click the gear icon βοΈ β "Install Add-on From File..."
- Select the downloaded .xpi file
- Grant the requested permissions when prompted
π€ Generated with Claude Code
AI Tag Manager v1.1.2 - All Security Warnings Resolved
AI Tag Manager v1.1.2 - All Security Warnings Resolved
Final security release - Extension now fully compliant with Mozilla Add-ons Store requirements.
π Security Fixes
Complete innerHTML Security Fixes
Resolved all remaining 7 unsafe innerHTML assignments:
results/results.js (6 instances):
- Line 313:
statsArea.innerHTMLinshowRenameSuggestions()(dynamic suggestions.length) - Line 330:
controls.innerHTMLinshowRenameSuggestions()(static buttons) - Line 387:
statsArea.innerHTMLinshowCategorizeSuggestions()(dynamic categories.length) - Line 430:
actionArea.innerHTMLinshowCategorizeSuggestions()(static button) - Line 577:
statsArea.innerHTMLinhandleApply()(dynamic stats data) - Line 607:
actionArea.innerHTMLinhandleApply()(static buttons)
popup/popup.js (1 instance):
- Line 382:
statusDiv.innerHTML = ''inshowStatus()
Technical Details
- All innerHTML assignments replaced with
createElement()+textContent - Used helper functions:
createElementWithText(),clearElement(),createStatItem() - All dynamic user data now safely handled via textContent property
- Prevents potential XSS vulnerabilities
β Mozilla Add-ons Store Validation
Validation Status:
- β 0 errors
- β 0 warnings (down from 17)
- β 0 notices
Ready for official submission!
π¦ Installation
Download ai-tag-manager-v1.1.2.xpi and install in Thunderbird:
- Open Thunderbird
- Go to Add-ons & Themes (Ctrl+Shift+A)
- Click gear icon βοΈ β "Install Add-on From File..."
- Select
ai-tag-manager-v1.1.2.xpi
π Full Changelog
See CHANGELOG.md for complete version history.
π Upgrade from v1.1.1
All changes are security improvements only - no functional changes or breaking changes.
What's Changed Since v1.1.1:
- Completed innerHTML security fixes (7 additional instances)
- Extension now 100% compliant with Mozilla security requirements
Full Changelog: v1.1.1...v1.1.2
AI Tag Manager v1.1.1 - Mozilla Add-ons Store Ready
Mozilla Add-ons Store Compatibility Release
This bugfix release resolves all Mozilla Add-ons Store validation issues and makes the extension ready for official submission.
Fixed
- Manifest.json: Replaced deprecated
applicationswithbrowser_specific_settings - Permissions: Removed invalid Thunderbird-specific permissions (now using defaults)
- Security: Replaced all unsafe
innerHTMLwith securecreateElement/textContent - DOM Manipulation: Added safe helper functions for creating elements
Security Improvements
All dynamic content is now inserted using secure methods:
- β No XSS vulnerabilities from innerHTML
- β Proper element creation with createElement
- β Safe text insertion with textContent
- β Helper functions for consistent DOM manipulation
Mozilla Validation
- β 0 errors
- β ~5 warnings (static HTML only - safe)
- β Ready for Mozilla Add-ons Store submission
No Functional Changes
This release contains only code quality improvements. All features from v1.1.0 work identically.
Installation
Download ai-tag-manager-v1.1.1.xpi and install in Thunderbird:
- Open Thunderbird β Add-ons & Themes (Ctrl+Shift+A)
- Click gear icon βοΈ β Install Add-on From File
- Select the downloaded .xpi file
Full v1.1.0 Feature Set
- π₯ Deep Analysis Mode
β οΈ Token Limit Warnings- π Truncated JSON Recovery
- π― Tag Deduplication
- π Educational Content
- β Model Recommendations
- π€ 4 AI Providers (OpenAI, Anthropic, Google, Ollama)
π€ Generated with Claude Code
AI Tag Manager v1.1.0 - Production Ready
AI Tag Manager v1.1.0 - Production Ready π
This release marks the extension as production-ready with comprehensive token limit handling, user warnings, and complete documentation.
π₯ New Features
Deep Analysis Mode
- Analyze ALL tags in a single AI request for comprehensive similarity detection
- Auto-enabled for 500+ tags
- Compares all tags with each other in one pass
- Finds maximum similarities without batch limitations
Token Limit Detection & Warnings
- Automatic detection when AI hits output token limits
- Shows coverage percentage (tags analyzed vs. total)
- Displays expected vs. found groups comparison
- Provides actionable solutions:
- Switch to larger model (GPT-4o, Claude Sonnet, Gemini Pro)
- Disable Deep Analysis Mode (uses batches instead)
- Remove unused tags first to reduce count
UI Warning System
- Warning box in popup after analysis showing coverage
- Prominent warning panel in results page with detailed statistics
- Current model information and recommendations
- Educational content explaining token limits
Truncated JSON Recovery
- Automatically recovers partial results from incomplete AI responses
- Extracts all complete groups from truncated JSON
- Prevents complete failure when token limit is reached
- Shows exactly how many groups were recovered
Tag Deduplication
- Automatically removes duplicate tags from multiple groups
- Fixes AI errors where tags appear in multiple groups (118% coverage bug)
- Ensures each tag only appears once
Educational Content
- Comprehensive "Understanding AI Models & Token Limits" section in settings
- Model comparison table with quality ratings
- Recommendations by tag count (500, 1000, 2000+ tags)
- Deep Analysis Mode explanation with benefits/limitations
Model Recommendations
- Per-provider recommendations (OpenAI, Anthropic, Google)
- Clear indication of best models for different tag counts
- β Highlighted recommended models in dropdowns
- Quality ratings for each model
π§ Improvements
- AI Prompts: Optimized to use compact 3-5 word reasons (saves tokens for more groups)
- Response Format: Consistent object format with groups + warning metadata
- Model Dropdown Labels: Updated with capacity and quality information
- Documentation: Complete English translation with expanded guides
π Bug Fixes
- Fixed tags appearing in multiple groups (118% coverage bug)
- Fixed JSON parse errors from truncated AI responses
- Incomplete results now properly recovered and displayed to user
π What You Get
Version 1.1.0 includes:
- π₯ Deep Analysis Mode (ALL tags in one pass)
β οΈ Smart Token Limit Warnings (UI + Console)- π Automatic Partial Result Recovery
- π― Tag Deduplication (fixes multi-group bug)
- π Educational Content (token limits explained)
- β Model Recommendations (per tag count)
- π€ 4 AI Providers (OpenAI, Anthropic, Google, Ollama)
- β¨ Interactive Results Page
- π Progress Tracking
- π Complete English Documentation
π¦ Installation
From Release (Recommended)
- Download
ai-tag-manager-v1.1.0.xpifrom this release - Open Thunderbird
- Go to
MenuβAdd-ons and Themes(Ctrl+Shift+A) - Click the gear icon βοΈ
- Select
Install Add-on From File... - Choose the downloaded .xpi file
From Source
git clone https://github.com/hendkai/ai_tag_manager
cd ai_tag_manager
# Load in Thunderbird via about:debuggingπ Getting Started
- Configure API Key: Click AI Tag Manager icon β Settings
- Choose Provider: OpenAI, Anthropic, Google AI, or Ollama (local)
- Analyze Tags: Click "Analyze Tags" to see your tag statistics
- Find Similarities: Enable Deep Analysis Mode for best results with 500+ tags
π Model Recommendations
| Tag Count | Best Model | Output Limit | Quality |
|---|---|---|---|
| < 500 tags | Any model | - | Good |
| 500-1000 tags | GPT-4o-mini, Gemini 1.5 Flash | 16K / 8K | Good |
| 1000-2000 tags | β GPT-4o, Claude 3.5 Sonnet, Gemini 1.5 Pro | 16K / 8K | Excellent |
| 2000+ tags | β GPT-4o only | 16K | Excellent |
π Privacy & Security
- API keys stored locally only (in Thunderbird's Storage API)
- No data collection
- Only tag names sent to AI APIs (never email content!)
- Ollama option for completely local AI processing
π Full Changelog
See CHANGELOG.md for complete version history.
π€ Contributing
Contributions welcome! Please open an issue or pull request.
π License
MIT License - see LICENSE file
Developed with β€οΈ for better email management
π€ Co-Authored-By: Claude via Claude Code