polygram 0.18.0 → 0.18.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.
- package/.claude-plugin/plugin.json +1 -1
- package/package.json +2 -2
- package/polygram.js +4 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://anthropic.com/claude-code/plugin.schema.json",
|
|
3
3
|
"name": "polygram",
|
|
4
|
-
"version": "0.18.
|
|
4
|
+
"version": "0.18.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polygram",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.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": {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@anthropic-ai/claude-agent-sdk": "0.2.123",
|
|
65
65
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
66
|
-
"@shumkov/orchestra": "^0.4.
|
|
66
|
+
"@shumkov/orchestra": "^0.4.2",
|
|
67
67
|
"better-sqlite3": "^12.9.0",
|
|
68
68
|
"grammy": "^1.42.0",
|
|
69
69
|
"markdown-it": "^14.1.1",
|
package/polygram.js
CHANGED
|
@@ -100,6 +100,7 @@ const {
|
|
|
100
100
|
toTelegramRichBlocks, resolveRichTextEnabled, isRichCapabilityError, isRichContentError,
|
|
101
101
|
} = require('./lib/telegram/rich');
|
|
102
102
|
const { createRichEditor } = require('./lib/telegram/rich-edit');
|
|
103
|
+
const { buildPolygramDisplayHint } = require('./lib/telegram/display-hint');
|
|
103
104
|
const { redactBotToken, stripUrlCredentials } = require('./lib/error/net');
|
|
104
105
|
// F#23: shared agent-reply helper. parseResponse + sanitizer + chunked
|
|
105
106
|
// delivery + inline sticker/react in one place. Wired into both the
|
|
@@ -2704,7 +2705,9 @@ async function main() {
|
|
|
2704
2705
|
pmDefault: 'sdk',
|
|
2705
2706
|
// The CLI append-system-prompt's FIRST block — origin hard-required this into every
|
|
2706
2707
|
// CliProcess. Without it, cli chats lose the Telegram table/markdown display rules.
|
|
2707
|
-
|
|
2708
|
+
// A resolver (not a static string) so each cli-backed chat gets its own richText
|
|
2709
|
+
// state — orchestra's factory calls this per spawn with the spawning chat/topic.
|
|
2710
|
+
displayHint: (chatId, threadId) => buildPolygramDisplayHint(resolveRichTextEnabled(config, chatId, threadId)),
|
|
2708
2711
|
// Backend-default outbound cap fallback (per-spawn buildSpawnContext override
|
|
2709
2712
|
// normally supersedes this; kept so any context-less spawn still gets the backend
|
|
2710
2713
|
// default rather than orchestra's neutral 100MB).
|