cc-claw 0.4.6 → 0.4.7

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.
Files changed (2) hide show
  1. package/dist/cli.js +6 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -48,7 +48,7 @@ var VERSION;
48
48
  var init_version = __esm({
49
49
  "src/version.ts"() {
50
50
  "use strict";
51
- VERSION = true ? "0.4.6" : (() => {
51
+ VERSION = true ? "0.4.7" : (() => {
52
52
  try {
53
53
  return JSON.parse(readFileSync(join2(process.cwd(), "package.json"), "utf-8")).version ?? "unknown";
54
54
  } catch {
@@ -7629,6 +7629,8 @@ var init_telegram2 = __esm({
7629
7629
  return;
7630
7630
  }
7631
7631
  const data = ctx.callbackQuery.data;
7632
+ await ctx.answerCallbackQuery().catch(() => {
7633
+ });
7632
7634
  try {
7633
7635
  for (const handler2 of this.callbackHandlers) {
7634
7636
  await handler2(chatId, data, this);
@@ -7636,8 +7638,6 @@ var init_telegram2 = __esm({
7636
7638
  } catch (err) {
7637
7639
  error("[telegram] Callback handler error:", err);
7638
7640
  }
7639
- await ctx.answerCallbackQuery().catch(() => {
7640
- });
7641
7641
  });
7642
7642
  this.bot.catch((err) => {
7643
7643
  error("[telegram] Unhandled error:", err);
@@ -11479,6 +11479,9 @@ Your conversation history is preserved. ${targetAdapter.displayName} will receiv
11479
11479
  async function doBackendSwitch(chatId, backendId, channel) {
11480
11480
  const targetAdapter = getAdapter(backendId);
11481
11481
  const pairCount = getMessagePairCount(chatId);
11482
+ if (pairCount >= 2) {
11483
+ await channel.sendText(chatId, `\u23F3 Saving context...`, "plain");
11484
+ }
11482
11485
  const summarized = await summarizeWithFallbackChain(chatId, backendId);
11483
11486
  const bridge = buildContextBridge(chatId);
11484
11487
  if (bridge) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-claw",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "CC-Claw: Personal AI assistant on Telegram — multi-backend (Claude, Gemini, Codex), sub-agent orchestration, MCP management",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",