Skip to content

Releases: hendkai/ai_tag_manager

AI Tag Manager v1.1.3 - Critical Permission Fix

Choose a tag to compare

@hendkai hendkai released this 26 Oct 05:58

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

  1. Download ai-tag-manager-v1.1.3.xpi
  2. Open Thunderbird β†’ Add-ons & Themes (Ctrl+Shift+A)
  3. Click the gear icon βš™οΈ β†’ "Install Add-on From File..."
  4. Select the downloaded .xpi file
  5. Grant the requested permissions when prompted

πŸ€– Generated with Claude Code

AI Tag Manager v1.1.2 - All Security Warnings Resolved

Choose a tag to compare

@hendkai hendkai released this 25 Oct 23:57

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.innerHTML in showRenameSuggestions() (dynamic suggestions.length)
  • Line 330: controls.innerHTML in showRenameSuggestions() (static buttons)
  • Line 387: statsArea.innerHTML in showCategorizeSuggestions() (dynamic categories.length)
  • Line 430: actionArea.innerHTML in showCategorizeSuggestions() (static button)
  • Line 577: statsArea.innerHTML in handleApply() (dynamic stats data)
  • Line 607: actionArea.innerHTML in handleApply() (static buttons)

popup/popup.js (1 instance):

  • Line 382: statusDiv.innerHTML = '' in showStatus()

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:

  1. Open Thunderbird
  2. Go to Add-ons & Themes (Ctrl+Shift+A)
  3. Click gear icon βš™οΈ β†’ "Install Add-on From File..."
  4. 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

Choose a tag to compare

@hendkai hendkai released this 25 Oct 23:44

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 applications with browser_specific_settings
  • Permissions: Removed invalid Thunderbird-specific permissions (now using defaults)
  • Security: Replaced all unsafe innerHTML with secure createElement/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:

  1. Open Thunderbird β†’ Add-ons & Themes (Ctrl+Shift+A)
  2. Click gear icon βš™οΈ β†’ Install Add-on From File
  3. 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

Choose a tag to compare

@hendkai hendkai released this 25 Oct 23:32

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)

  1. Download ai-tag-manager-v1.1.0.xpi from this release
  2. Open Thunderbird
  3. Go to Menu β†’ Add-ons and Themes (Ctrl+Shift+A)
  4. Click the gear icon βš™οΈ
  5. Select Install Add-on From File...
  6. 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

  1. Configure API Key: Click AI Tag Manager icon β†’ Settings
  2. Choose Provider: OpenAI, Anthropic, Google AI, or Ollama (local)
  3. Analyze Tags: Click "Analyze Tags" to see your tag statistics
  4. 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