Browse Source

fix(plugin): add missing telegram-bot.ts to registry (#55)

Fixes #39 - Plugin crash on startup when using advanced profile.

The telegram-notify.ts plugin imports SimpleTelegramBot from
./lib/telegram-bot, but the lib/telegram-bot.ts file was not
included in the registry.json component list. This caused the
installer to skip downloading the required dependency, resulting
in a module resolution failure that crashed the application on
startup with garbled ANSI escape sequences.

Changes:
- Add telegram-bot as a new plugin component in registry.json
- Add plugin:telegram-bot as a dependency of telegram-notify
- Include plugin:telegram-bot in business, full, and advanced profiles

Co-authored-by: FrancoStino <32127923+FrancoStino@users.noreply.github.com>
Co-authored-by: AVert <AVert@users.noreply.github.com>
Justin Carlson 4 months ago
parent
commit
969b44452e
1 changed files with 19 additions and 1 deletions
  1. 19 1
      registry.json

+ 19 - 1
registry.json

@@ -463,6 +463,20 @@
     ],
     "plugins": [
       {
+        "id": "telegram-bot",
+        "name": "Telegram Bot Library",
+        "type": "plugin",
+        "path": ".opencode/plugin/lib/telegram-bot.ts",
+        "description": "Simple Telegram Bot wrapper for sending notifications",
+        "tags": [
+          "telegram",
+          "bot",
+          "library"
+        ],
+        "dependencies": [],
+        "category": "specialized"
+      },
+      {
         "id": "telegram-notify",
         "name": "Telegram Notifications",
         "type": "plugin",
@@ -474,7 +488,8 @@
           "integration"
         ],
         "dependencies": [
-          "tool:env"
+          "tool:env",
+          "plugin:telegram-bot"
         ],
         "category": "specialized"
       },
@@ -790,6 +805,7 @@
         "tool:env",
         "tool:gemini",
         "plugin:notify",
+        "plugin:telegram-bot",
         "plugin:telegram-notify",
         "context:essential-patterns",
         "context:project-context",
@@ -822,6 +838,7 @@
         "tool:env",
         "tool:gemini",
         "plugin:notify",
+        "plugin:telegram-bot",
         "plugin:telegram-notify",
         "context:essential-patterns",
         "context:project-context",
@@ -871,6 +888,7 @@
         "tool:env",
         "tool:gemini",
         "plugin:notify",
+        "plugin:telegram-bot",
         "plugin:telegram-notify",
         "context:essential-patterns",
         "context:project-context",