polygram 0.10.0-rc.1 → 0.10.0-rc.2
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.10.0-rc.
|
|
4
|
+
"version": "0.10.0-rc.2",
|
|
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",
|
|
@@ -39,6 +39,7 @@ const { Process, UnsupportedOperationError } = require('./process');
|
|
|
39
39
|
const { LogTail } = require('../tmux/log-tail');
|
|
40
40
|
const { sessionLogPath, pipeToParser } = require('../tmux/session-log-parser');
|
|
41
41
|
const { computeCostUsd } = require('../model-costs');
|
|
42
|
+
const { getTopicConfig } = require('../session-key');
|
|
42
43
|
|
|
43
44
|
// Context window per model. All Claude 4.x models are 200k. If
|
|
44
45
|
// Anthropic ships a model with a different window, promote this to
|
|
@@ -180,10 +181,19 @@ class TmuxProcess extends Process {
|
|
|
180
181
|
|
|
181
182
|
this._spawning = (async () => {
|
|
182
183
|
const chatConfig = ctx.chatConfig || {};
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
// Topic-level config overrides chat-level (mirrors SDK's
|
|
185
|
+
// buildSdkOptions). Without this, a chat with per-topic
|
|
186
|
+
// `agent`/`cwd`/`model`/`effort` overrides would silently spawn
|
|
187
|
+
// claude with chat-level defaults — production bug surfaced in
|
|
188
|
+
// 0.10.0-rc.1: Music topic's music-curation agent + rekordbox
|
|
189
|
+
// cwd were ignored; TUI spawned with the chat-level shumabit
|
|
190
|
+
// agent and didn't signal ready in 30s.
|
|
191
|
+
const topicConfig = getTopicConfig(chatConfig, ctx.threadId);
|
|
192
|
+
const model = ctx.model || topicConfig.model || chatConfig.model;
|
|
193
|
+
const effort = ctx.effort || topicConfig.effort || chatConfig.effort;
|
|
194
|
+
const cwd = ctx.cwd || topicConfig.cwd || chatConfig.cwd;
|
|
195
|
+
const agent = topicConfig.agent || chatConfig.agent;
|
|
196
|
+
const permissionMode = topicConfig.permissionMode || chatConfig.permissionMode || 'acceptEdits';
|
|
187
197
|
|
|
188
198
|
// Pre-allocate the sessionId via --session-id flag (v9 finding).
|
|
189
199
|
// claude accepts a valid UUID and uses it as THE session ID for the
|
|
@@ -205,7 +215,7 @@ class TmuxProcess extends Process {
|
|
|
205
215
|
args.push('--dangerously-skip-permissions');
|
|
206
216
|
}
|
|
207
217
|
args.push('--debug-file', this.debugLogPath);
|
|
208
|
-
if (
|
|
218
|
+
if (agent) args.push('--agent', agent);
|
|
209
219
|
|
|
210
220
|
// R2-F8: spawn errors must fail loud, not silent-catch.
|
|
211
221
|
await this.runner.spawn({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polygram",
|
|
3
|
-
"version": "0.10.0-rc.
|
|
3
|
+
"version": "0.10.0-rc.2",
|
|
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": {
|