@emqo/claudebridge 0.10.1 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -81,7 +81,10 @@ export class TelegramAdapter {
81
81
  ...(parseMode ? { parse_mode: parseMode } : {}),
82
82
  });
83
83
  }
84
- catch { }
84
+ catch (e) {
85
+ if (parseMode)
86
+ log.warn("editMsg failed", { parseMode, error: e?.message?.slice(0, 200) });
87
+ }
85
88
  }
86
89
  async handleUpdate(update) {
87
90
  if (update.callback_query) {
@@ -340,9 +343,12 @@ export class TelegramAdapter {
340
343
  const rawChunks = chunkText(fullText, maxLen);
341
344
  if (mdChunks.length <= 1) {
342
345
  try {
343
- await this.editMsg(chatId, msgId, mdChunks[0], "MarkdownV2");
346
+ await this.call("editMessageText", {
347
+ chat_id: chatId, message_id: msgId, text: mdChunks[0], parse_mode: "MarkdownV2",
348
+ });
344
349
  }
345
- catch {
350
+ catch (e) {
351
+ log.warn("MarkdownV2 fallback", { error: e?.message?.slice(0, 200) });
346
352
  await this.editMsg(chatId, msgId, fullText);
347
353
  }
348
354
  }
@@ -3,8 +3,8 @@ import { fileURLToPath } from "url";
3
3
  const __filename = fileURLToPath(import.meta.url);
4
4
  const __dirname = dirname(__filename);
5
5
  export function generateSkillDoc(ctx) {
6
- const ctlPath = resolve(__dirname, "../ctl.js");
7
- const ctl = `node ${ctlPath}`;
6
+ const ctlPath = resolve(__dirname, "../ctl.js").replace(/\\/g, "/");
7
+ const ctl = `node "${ctlPath}"`;
8
8
  if (ctx.locale === "zh") {
9
9
  return [
10
10
  `## ClaudeBridge 内置能力`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emqo/claudebridge",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
4
4
  "description": "Bridge claude CLI to chat platforms (Telegram, Discord) with scheduled auto-tasks, autonomous project management, HITL approval, conditional branching, webhook triggers, parallel execution, and observability",
5
5
  "main": "dist/index.js",
6
6
  "bin": {