cc-claw 0.15.1 → 0.15.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.
Files changed (2) hide show
  1. package/dist/cli.js +4 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -33,7 +33,7 @@ var VERSION;
33
33
  var init_version = __esm({
34
34
  "src/version.ts"() {
35
35
  "use strict";
36
- VERSION = true ? "0.15.1" : (() => {
36
+ VERSION = true ? "0.15.2" : (() => {
37
37
  try {
38
38
  return JSON.parse(readFileSync(join(process.cwd(), "package.json"), "utf-8")).version ?? "unknown";
39
39
  } catch {
@@ -15345,7 +15345,9 @@ async function doBackendSwitch(chatId, backendId, channel) {
15345
15345
  clearSession(chatId);
15346
15346
  clearModel(chatId);
15347
15347
  clearThinkingLevel(chatId);
15348
- clearChatGeminiSlot(chatId);
15348
+ if (backendId !== "gemini") {
15349
+ clearChatGeminiSlot(chatId);
15350
+ }
15349
15351
  setBackend(chatId, backendId);
15350
15352
  logActivity(getDb(), { chatId, source: "telegram", eventType: "config_changed", summary: `Backend switched to ${targetAdapter.displayName}`, detail: { field: "backend", value: backendId } });
15351
15353
  if (typeof channel.sendKeyboard === "function") {
@@ -15895,7 +15897,6 @@ Tap to toggle:`,
15895
15897
  const exchangeCount = getMessagePairCount(chatId);
15896
15898
  const summarized = await summarizeSession(chatId);
15897
15899
  clearSession(chatId);
15898
- clearChatGeminiSlot(chatId);
15899
15900
  setSessionStartedAt(chatId);
15900
15901
  logActivity(getDb(), { chatId, source: "telegram", eventType: "config_changed", summary: "New session started", detail: { field: "session", action: "reset", summarized } });
15901
15902
  if (typeof channel.sendKeyboard === "function" && oldSessionId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-claw",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "description": "CC-Claw: Personal AI assistant on Telegram — multi-backend (Claude, Gemini, Codex, Cursor), sub-agent orchestration, MCP management",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",