cc-claw 0.4.0 → 0.4.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 +7 -4
  2. package/package.json +2 -5
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.0" : (() => {
51
+ VERSION = true ? "0.4.2" : (() => {
52
52
  try {
53
53
  return JSON.parse(readFileSync(join2(process.cwd(), "package.json"), "utf-8")).version ?? "unknown";
54
54
  } catch {
@@ -11096,14 +11096,17 @@ Your conversation history is preserved. ${targetAdapter.displayName} will receiv
11096
11096
  }
11097
11097
  async function doBackendSwitch(chatId, backendId, channel) {
11098
11098
  const targetAdapter = getAdapter(backendId);
11099
+ const pairCount = getMessagePairCount(chatId);
11099
11100
  const summarized = await summarizeWithFallbackChain(chatId, backendId);
11100
- if (summarized) {
11101
- await channel.sendText(chatId, `\u{1F4BE} Context saved \u2014 ${targetAdapter.displayName} summarized your session.`, "plain");
11102
- }
11103
11101
  const bridge = buildContextBridge(chatId);
11104
11102
  if (bridge) {
11105
11103
  setPendingContextBridge(chatId, bridge);
11106
11104
  }
11105
+ if (summarized) {
11106
+ await channel.sendText(chatId, "\u{1F4BE} Context saved \u2014 session summarized to memory.", "plain");
11107
+ } else if (pairCount > 0 && bridge) {
11108
+ await channel.sendText(chatId, "\u{1F4AC} Context preserved.", "plain");
11109
+ }
11107
11110
  clearSession(chatId);
11108
11111
  clearModel(chatId);
11109
11112
  clearThinkingLevel(chatId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-claw",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
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",
@@ -39,7 +39,7 @@
39
39
  "license": "MIT",
40
40
  "dependencies": {
41
41
  "@modelcontextprotocol/sdk": "^1.27.1",
42
- "better-sqlite3": "^12.6.2",
42
+ "better-sqlite3": "^12.8.0",
43
43
  "commander": "^14.0.3",
44
44
  "croner": "^9.0.0",
45
45
  "dotenv": "^16.4.7",
@@ -47,9 +47,6 @@
47
47
  "picocolors": "^1.1.1",
48
48
  "zod": "^4.3.6"
49
49
  },
50
- "optionalDependencies": {
51
- "groq-sdk": "^0.15.0"
52
- },
53
50
  "devDependencies": {
54
51
  "@types/better-sqlite3": "^7.6.13",
55
52
  "@types/bun": "^1.3.10",