polygram 0.36.0 → 0.36.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.36.
|
|
4
|
+
"version": "0.36.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
|
@@ -52,6 +52,12 @@ function resolveRichTextEnabled(config, chatId, threadId = null) {
|
|
|
52
52
|
// crafted string. See tests/rich.test.js for the ReDoS regression guard.
|
|
53
53
|
|
|
54
54
|
const TASK_ITEM_RE = /^[ \t]{0,3}[-*+][ \t]+\[[ xX]\][ \t]+/m;
|
|
55
|
+
// Any markdown list is structure: plain stays for a paragraph or two of
|
|
56
|
+
// prose, and a reply organized as bullets or numbered items renders as a
|
|
57
|
+
// rich document. Line-anchored, marker + space + content — a dash inside a
|
|
58
|
+
// sentence or a lone '-' line (divider territory) does not match. Matches
|
|
59
|
+
// marked's own list tokenization, so the gate and the renderer agree.
|
|
60
|
+
const LIST_ITEM_RE = /^[ \t]{0,3}(?:[-*+]|\d{1,9}[.)])[ \t]+\S/m;
|
|
55
61
|
const TABLE_ROW_RE = /^[ \t]{0,3}\|?[ \t]*:?-{2,}:?[ \t]*\|/m;
|
|
56
62
|
const DETAILS_RE = /<details[ \t>]/i;
|
|
57
63
|
const HEADING_RE = /^#{1,6}[ \t]+\S/m;
|
|
@@ -109,6 +115,7 @@ function stripFencedCodeBlocks(markdown) {
|
|
|
109
115
|
// than rendering prose-only rich blocks (the oversized-prose problem).
|
|
110
116
|
function hasNonMediaTrigger(scoped) {
|
|
111
117
|
return TASK_ITEM_RE.test(scoped)
|
|
118
|
+
|| LIST_ITEM_RE.test(scoped)
|
|
112
119
|
|| TABLE_ROW_RE.test(scoped)
|
|
113
120
|
|| DETAILS_RE.test(scoped)
|
|
114
121
|
|| HEADING_RE.test(scoped)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polygram",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.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": {
|