polygram 0.12.0-rc.3 → 0.12.0-rc.4
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/lib/process/factory.js +0 -4
- package/package.json +1 -1
- package/polygram.js +1 -8
package/lib/process/factory.js
CHANGED
|
@@ -91,10 +91,6 @@ function _maybeWarnR12Migration({ rawPm, canonical, chatId, threadId, chatCfg, t
|
|
|
91
91
|
* @param {number} [opts.queryCloseTimeoutMs]
|
|
92
92
|
* @param {object} [opts.tmuxRunner] — required when ANY chat routes to 'cli'
|
|
93
93
|
* @param {string} [opts.botName] — required when ANY chat routes to 'cli'
|
|
94
|
-
* @param {object} [opts.pollScheduler] — DEPRECATED in 0.12 — was used by the
|
|
95
|
-
* removed tmux backend to share one setInterval across all chats; CliProcess's
|
|
96
|
-
* per-session pongWatchdog handles its own cadence. Param kept for caller
|
|
97
|
-
* back-compat; ignored. Will be removed in 0.13.
|
|
98
94
|
* @param {Function} [opts.toolDispatcher] — required when ANY chat routes to 'cli'.
|
|
99
95
|
* async ({sessionKey, chatId, threadId, toolName, text, files}) => {ok, error?}.
|
|
100
96
|
* Called when Claude's reply (or react/edit_message) tool fires inside a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polygram",
|
|
3
|
-
"version": "0.12.0-rc.
|
|
3
|
+
"version": "0.12.0-rc.4",
|
|
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
|
@@ -2243,19 +2243,13 @@ async function main() {
|
|
|
2243
2243
|
const binCheck = verifyPinnedClaudeBin(CLAUDE_CLI_PINNED_VERSION);
|
|
2244
2244
|
if (binCheck.ok) {
|
|
2245
2245
|
console.log(
|
|
2246
|
-
`[polygram]
|
|
2246
|
+
`[polygram] CliProcess pinned to claude CLI v${CLAUDE_CLI_PINNED_VERSION}: ${binCheck.path}`,
|
|
2247
2247
|
);
|
|
2248
2248
|
pinnedClaudeBin = binCheck.path;
|
|
2249
2249
|
} else {
|
|
2250
2250
|
console.warn(`[polygram] WARNING: ${binCheck.reason}`);
|
|
2251
2251
|
}
|
|
2252
2252
|
}
|
|
2253
|
-
// O1 optimization: shared poll-tick scheduler. N TmuxProcess
|
|
2254
|
-
// instances share ONE setInterval instead of spawning N independent
|
|
2255
|
-
// setTimeout chains. Idle when no chats are in flight (zero timers
|
|
2256
|
-
// running). Configurable via config.bot.tmuxPollIntervalMs.
|
|
2257
|
-
const tmuxPollIntervalMs = config.bot?.tmuxPollIntervalMs || 250;
|
|
2258
|
-
const pollScheduler = new PollScheduler({ intervalMs: tmuxPollIntervalMs });
|
|
2259
2253
|
// 0.11.0: channels backend wiring. Used when a chat opts in via
|
|
2260
2254
|
// `pm: 'channels'` config. Falls back to SDK gracefully if the pinned
|
|
2261
2255
|
// claude binary isn't present (see factory.js — channelsClaudeBin
|
|
@@ -2281,7 +2275,6 @@ async function main() {
|
|
|
2281
2275
|
logger: console,
|
|
2282
2276
|
tmuxRunner,
|
|
2283
2277
|
botName: BOT_NAME,
|
|
2284
|
-
pollScheduler,
|
|
2285
2278
|
// channels backend
|
|
2286
2279
|
toolDispatcher: channelsToolDispatcher,
|
|
2287
2280
|
channelsClaudeBin,
|