Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

v1.0.3 - HTML Email Templates

Choose a tag to compare

@FrankieeW FrankieeW released this 26 Jan 00:28
· 2 commits to main since this release

🎨 HTML Email Template Support

New Features

  • HTML Email Templates: OpenCode plugin now generates HTML-formatted messages for rich email rendering
  • Custom Message Templates: Customize email content using HTML templates in config file
  • Variable Substitution: Use template variables like ${sessionId}, ${taskName}, ${directory}, etc.
  • Better Email Formatting: Messages display with proper headers, lists, and code blocks

Improvements

  • Added applyTemplate() function for variable replacement
  • Added escapeHtml() function to prevent HTML injection
  • Support for custom templates via messageTemplates config option
  • Three detail levels: minimal, standard, detailed
  • Full backward compatibility (works with or without custom templates)

Documentation

  • Updated README.md and README_zh.md with template examples
  • Added comprehensive OPENCODE-PLUGIN-GUIDE.md

Technical Details

Modified Files:

  • opencode/task-notifier.ts - Plugin now generates HTML messages
  • opencode/task-notifier.default.jsonc - Added HTML template examples
  • README.md / README_zh.md - Documentation updates

Available Template Variables:

  • ${sessionId} - OpenCode session ID
  • ${directory} - Working directory
  • ${taskName} - TODO task content
  • ${completed} / ${remaining} / ${total} - Task counts
  • ${error} - Error message
  • ${todoList} - HTML formatted task list

Example Template

{
  "messageTemplates": {
    "todoCompleted": {
      "standard": "<h2>✅ TODO Completed</h2><p><strong>${taskName}</strong></p><ul><li>📂 Directory: <code>${directory}</code></li></ul>"
    }
  }
}

Upgrade

brew upgrade task-notifier

Or via install script:

curl -fsSL https://raw.githubusercontent.com/FrankieeW/task-notifier/main/scripts/install.sh | bash -s -- --upgrade

Full Changelog: v1.0.2...v1.0.3