polygram 0.8.0-rc.22 β 0.8.0-rc.23
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/.claude-plugin/plugin.json +1 -1
- package/package.json +1 -1
- package/polygram.js +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://anthropic.com/claude-code/plugin.schema.json",
|
|
3
3
|
"name": "polygram",
|
|
4
|
-
"version": "0.8.0-rc.
|
|
4
|
+
"version": "0.8.0-rc.23",
|
|
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 and a history skill.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"telegram",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polygram",
|
|
3
|
-
"version": "0.8.0-rc.
|
|
3
|
+
"version": "0.8.0-rc.23",
|
|
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": {
|
package/polygram.js
CHANGED
|
@@ -2022,10 +2022,10 @@ async function handleMessage(sessionKey, chatId, msg, bot) {
|
|
|
2022
2022
|
chat_id: chatId, text_len: text.length,
|
|
2023
2023
|
user: cmdUser, user_id: cmdUserId,
|
|
2024
2024
|
});
|
|
2025
|
-
const
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2025
|
+
const hasHint = text.length > '/compact'.length + 1;
|
|
2026
|
+
await sendReply(hasHint
|
|
2027
|
+
? 'ποΈ Compacting with your hintβ¦'
|
|
2028
|
+
: 'ποΈ Compactingβ¦');
|
|
2029
2029
|
} catch (err) {
|
|
2030
2030
|
console.error(`[${label}] /compact push: ${err.message}`);
|
|
2031
2031
|
await sendReply(`ποΈ Couldn't trigger compact: ${err.message}`);
|
|
@@ -2658,7 +2658,7 @@ async function handleMessage(sessionKey, chatId, msg, bot) {
|
|
|
2658
2658
|
`π Context window ${pct.toFixed(0)}% full. Three options:`,
|
|
2659
2659
|
'',
|
|
2660
2660
|
'β’ `/new` β start fresh; this conversation ends.',
|
|
2661
|
-
'β’ `/compact
|
|
2661
|
+
'β’ `/compact` β summarise older messages. Add a hint after the command (e.g. `/compact keep the Q3 commission decisions`) and that becomes the compactor\'s guidance.',
|
|
2662
2662
|
'β’ Keep chatting β I\'ll auto-compact when needed; key context is preserved automatically.',
|
|
2663
2663
|
].join('\n');
|
|
2664
2664
|
return tg(bot, 'sendMessage', {
|