polygram 0.25.0 → 0.25.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.25.
|
|
4
|
+
"version": "0.25.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",
|
|
@@ -108,7 +108,7 @@ const richSection = (inlineMedia) => [
|
|
|
108
108
|
'- [ ] Size-guide page (#16)',
|
|
109
109
|
'```',
|
|
110
110
|
'',
|
|
111
|
-
'**Task lists for progress:** `- [ ] pending step` / `- [x] done step` renders as a real checkbox list — the natural way to show multi-step progress, a batch of items awaiting confirmation, or anything else with a per-item done/pending state.',
|
|
111
|
+
'**Task lists for progress:** `- [ ] pending step` / `- [x] done step` renders as a real checkbox list — the natural way to show multi-step progress, a batch of items awaiting confirmation, or anything else with a per-item done/pending state. Checkboxes carry meaning only when their states VARY or evolve: use them when some items are already `[x]` done, or when you will send an updated list with items checked off as you complete them. A list that would be all-`[ ]` forever is just a list — use plain bullets.',
|
|
112
112
|
'',
|
|
113
113
|
'**Collapsible detail:** wrap verbose logs/diffs/output you want available but not front-and-center in `<details><summary>Label</summary>...</details>`.',
|
|
114
114
|
'',
|
package/lib/telegram/rich.js
CHANGED
|
@@ -474,6 +474,12 @@ function blockFromToken(token) {
|
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
|
|
477
|
+
// A task item's `[ ]`/`[x]` marker survives inside the item's child
|
|
478
|
+
// tokens — marked strips it only from the container token's own .text,
|
|
479
|
+
// so flattening through the children re-surfaces it next to the real
|
|
480
|
+
// checkbox the has_checkbox flag renders. Strip it from the leader.
|
|
481
|
+
const TASK_MARKER_RE = /^\s*\[[ xX]\]\s*/;
|
|
482
|
+
|
|
477
483
|
function listItemFromToken(item, listToken, index) {
|
|
478
484
|
const { inline, blockTokens } = splitListItemTokens(item.tokens);
|
|
479
485
|
const nestedBlocks = blocksFromTokens(blockTokens);
|
|
@@ -482,7 +488,8 @@ function listItemFromToken(item, listToken, index) {
|
|
|
482
488
|
blocks.push(...blocksFromInlineTokens(inline));
|
|
483
489
|
if (!blocks.length && !nestedBlocks.length) blocks.push({ type: 'paragraph', text: '' });
|
|
484
490
|
} else {
|
|
485
|
-
|
|
491
|
+
let leaderText = plainTextOf(inline);
|
|
492
|
+
if (item.task) leaderText = leaderText.replace(TASK_MARKER_RE, '');
|
|
486
493
|
if (leaderText.trim() || !nestedBlocks.length) blocks.push({ type: 'paragraph', text: leaderText });
|
|
487
494
|
}
|
|
488
495
|
blocks.push(...nestedBlocks);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polygram",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.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": {
|