polygram 0.24.0 → 0.24.1
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://anthropic.com/claude-code/plugin.schema.json",
|
|
3
3
|
"name": "polygram",
|
|
4
|
-
"version": "0.24.
|
|
4
|
+
"version": "0.24.1",
|
|
5
5
|
"description": "Telegram integration for Claude Code that preserves the OpenClaw per-chat session model. Migration target for OpenClaw users. Multi-bot, multi-chat, per-topic isolation; SQLite transcripts; inline-keyboard approvals. Bundles /polygram:status|logs|pair-code|approvals admin commands plus history (transcript queries) and polygram-send (out-of-turn IPC sends with file-upload validation) skills.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"telegram",
|
package/lib/telegram/rich.js
CHANGED
|
@@ -139,7 +139,13 @@ function plainTextOf(tokens) {
|
|
|
139
139
|
if (!Array.isArray(tokens)) return '';
|
|
140
140
|
let out = '';
|
|
141
141
|
for (const t of tokens) {
|
|
142
|
-
if (t.type === 'text'
|
|
142
|
+
if (t.type === 'text' && Array.isArray(t.tokens)) {
|
|
143
|
+
// marked wraps a list item's inline run in a block-level 'text'
|
|
144
|
+
// token whose .text is the RAW source (markers included) and whose
|
|
145
|
+
// .tokens carry the parsed inline children — recurse, or bold and
|
|
146
|
+
// code-span markers ship to the chat as literal characters.
|
|
147
|
+
out += plainTextOf(t.tokens);
|
|
148
|
+
} else if (t.type === 'text' || t.type === 'codespan' || t.type === 'escape') {
|
|
143
149
|
out += t.text ?? '';
|
|
144
150
|
} else if (t.type === 'link' || t.type === 'image') {
|
|
145
151
|
out += plainTextOf(t.tokens) || t.text || t.href || '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polygram",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.1",
|
|
4
4
|
"description": "Telegram daemon for Claude Code that preserves the OpenClaw per-chat session model. Migration path for OpenClaw users moving to Claude Code.",
|
|
5
5
|
"main": "lib/ipc/client.js",
|
|
6
6
|
"bin": {
|