polygram 0.4.8 → 0.4.9
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 +4 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://anthropic.com/claude-code/plugin.schema.json",
|
|
3
3
|
"name": "polygram",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.9",
|
|
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.4.
|
|
3
|
+
"version": "0.4.9",
|
|
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
|
@@ -1021,11 +1021,9 @@ async function handleMessage(sessionKey, chatId, msg, bot) {
|
|
|
1021
1021
|
old_value: oldModel, new_value: newModel,
|
|
1022
1022
|
user: cmdUser, user_id: cmdUserId, source: 'command',
|
|
1023
1023
|
}), 'log model change');
|
|
1024
|
-
const {
|
|
1024
|
+
const { anyActive } = requestRespawnForChat('model-change');
|
|
1025
1025
|
const ver = MODEL_VERSIONS[newModel] || newModel;
|
|
1026
|
-
const suffix = anyActive
|
|
1027
|
-
? ` (applies after ${queued} in-flight turn${queued === 1 ? '' : 's'} complete${queued === 1 ? 's' : ''})`
|
|
1028
|
-
: '';
|
|
1026
|
+
const suffix = anyActive ? ` — I'll switch when I finish` : '';
|
|
1029
1027
|
await sendReply(`Model → ${newModel} (${ver})${suffix}`);
|
|
1030
1028
|
} else {
|
|
1031
1029
|
await sendReply(`Unknown model. Use: opus, sonnet, haiku`);
|
|
@@ -1043,10 +1041,8 @@ async function handleMessage(sessionKey, chatId, msg, bot) {
|
|
|
1043
1041
|
old_value: oldEffort, new_value: newEffort,
|
|
1044
1042
|
user: cmdUser, user_id: cmdUserId, source: 'command',
|
|
1045
1043
|
}), 'log effort change');
|
|
1046
|
-
const {
|
|
1047
|
-
const suffix = anyActive
|
|
1048
|
-
? ` (applies after ${queued} in-flight turn${queued === 1 ? '' : 's'} complete${queued === 1 ? 's' : ''})`
|
|
1049
|
-
: '';
|
|
1044
|
+
const { anyActive } = requestRespawnForChat('effort-change');
|
|
1045
|
+
const suffix = anyActive ? ` — I'll switch when I finish` : '';
|
|
1050
1046
|
await sendReply(`Effort → ${newEffort}${suffix}`);
|
|
1051
1047
|
} else {
|
|
1052
1048
|
await sendReply(`Unknown effort. Use: low, medium, high, xhigh, max`);
|