@inetafrica/open-claudia 2.2.11 → 2.2.12
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.
- package/CHANGELOG.md +3 -0
- package/core/relay.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v2.2.12
|
|
4
|
+
- Cross-channel relay (`open-claudia send-to`, and by extension cron/wakeup-fired messages and any other caller of `relay.send`) now passes `parseMode: "Markdown"` when the resolved adapter is Telegram. Previously `relay.send` called `adapter.send(channelId, text)` with no opts, so the Telegram adapter never set `parse_mode` and every relayed message went out as plain text — `*bold*`, backticks, and `_italic_` rendered as literal characters. The main reply path already injected this via `core/runner.js:25-28`; relay was the missing twin. Non-telegram adapters are unaffected.
|
|
5
|
+
|
|
3
6
|
## v2.2.11
|
|
4
7
|
- Telegram replies now get channel-specific formatting guidance in the system prompt: short mobile-friendly sections, single-asterisk Telegram Markdown labels, no tables/headings/Markdown links, and no noisy quotes/backticks around normal business terms.
|
|
5
8
|
- Telegram final/progress messages now request Markdown parse mode, and edited messages support the same parse mode with a plain-text fallback if Telegram rejects the markup.
|
package/core/relay.js
CHANGED
|
@@ -35,7 +35,8 @@ async function send({ text, target, from = null, kind = "relay" }) {
|
|
|
35
35
|
let messageId = null;
|
|
36
36
|
let errorMsg = null;
|
|
37
37
|
try {
|
|
38
|
-
const
|
|
38
|
+
const sendOpts = adapter.type === "telegram" ? { parseMode: "Markdown" } : {};
|
|
39
|
+
const result = await adapter.send(resolved.channelId, String(text), sendOpts);
|
|
39
40
|
if (typeof result === "object" && result && "messageId" in result) { messageId = result.messageId; ok = !!messageId; }
|
|
40
41
|
else { messageId = result; ok = !!result; }
|
|
41
42
|
} catch (e) { errorMsg = e.message; }
|
package/package.json
CHANGED