@gonzih/cc-tg 0.9.6 → 0.9.8
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/dist/bot.js +1 -0
- package/dist/index.js +6 -0
- package/package.json +1 -1
package/dist/bot.js
CHANGED
|
@@ -430,6 +430,7 @@ export class CcTgBot {
|
|
|
430
430
|
const session = this.getOrCreateSession(chatId, threadId, threadName);
|
|
431
431
|
try {
|
|
432
432
|
const prompt = buildPromptWithReplyContext(transcript, msg);
|
|
433
|
+
this.writeChatMessage("user", "telegram", transcript, chatId);
|
|
433
434
|
session.currentPrompt = prompt;
|
|
434
435
|
session.claude.sendPrompt(prompt);
|
|
435
436
|
this.startTyping(chatId, session);
|
package/dist/index.js
CHANGED
|
@@ -122,6 +122,12 @@ sharedRedis.on("error", (err) => {
|
|
|
122
122
|
// Non-fatal — Redis features (chat bridge, ops) degrade gracefully
|
|
123
123
|
console.warn("[redis] connection error:", err.message);
|
|
124
124
|
});
|
|
125
|
+
sharedRedis.once("ready", () => {
|
|
126
|
+
sharedRedis.set("cca:meta:cc-tg:version", pkg.version).catch((err) => {
|
|
127
|
+
console.warn("[redis] failed to write version:", err.message);
|
|
128
|
+
});
|
|
129
|
+
console.log(`[cc-tg] version:reported ${pkg.version}`);
|
|
130
|
+
});
|
|
125
131
|
const bot = new CcTgBot({
|
|
126
132
|
telegramToken,
|
|
127
133
|
claudeToken,
|