cc-claw 0.5.2 → 0.5.3

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 +5 -6
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -49,7 +49,7 @@ var VERSION;
49
49
  var init_version = __esm({
50
50
  "src/version.ts"() {
51
51
  "use strict";
52
- VERSION = true ? "0.5.2" : (() => {
52
+ VERSION = true ? "0.5.3" : (() => {
53
53
  try {
54
54
  return JSON.parse(readFileSync(join2(process.cwd(), "package.json"), "utf-8")).version ?? "unknown";
55
55
  } catch {
@@ -11514,6 +11514,7 @@ async function handleText(msg, channel) {
11514
11514
  const tMode = getMode(chatId);
11515
11515
  const tVerbose = getVerboseLevel(chatId);
11516
11516
  const tToolCb = tVerbose !== "off" ? makeToolActionCallback(chatId, channel, tVerbose) : void 0;
11517
+ const sigT0 = Date.now();
11517
11518
  const response = await askAgent(chatId, cleanText || text, {
11518
11519
  cwd: getCwd(chatId),
11519
11520
  model: model2,
@@ -11526,6 +11527,7 @@ async function handleText(msg, channel) {
11526
11527
  });
11527
11528
  }
11528
11529
  });
11530
+ const elapsedSec = ((Date.now() - sigT0) / 1e3).toFixed(1);
11529
11531
  if (response.usage) addUsage(chatId, response.usage.input, response.usage.output, response.usage.cacheRead, model2);
11530
11532
  let responseText = response.text;
11531
11533
  const sigEnabled = getModelSignature(chatId);
@@ -11536,7 +11538,7 @@ async function handleText(msg, channel) {
11536
11538
  const shortModel = formatModelShort(modelId);
11537
11539
  responseText += `
11538
11540
 
11539
- \u{1F9E0} [${shortModel} | ${capitalize(thinking2)}]`;
11541
+ \u{1F9E0} [${shortModel} | ${capitalize(thinking2)}] \u23F1\uFE0F ${elapsedSec}s`;
11540
11542
  }
11541
11543
  if (responseText.includes("[NEED_PERMISSION]") && tMode !== "yolo") {
11542
11544
  const cleanText2 = responseText.replace(/\[NEED_PERMISSION\]/g, "").trim();
@@ -13525,10 +13527,7 @@ function generatePlist() {
13525
13527
  <true/>
13526
13528
 
13527
13529
  <key>KeepAlive</key>
13528
- <dict>
13529
- <key>SuccessfulExit</key>
13530
- <false/>
13531
- </dict>
13530
+ <true/>
13532
13531
 
13533
13532
  <key>StandardOutPath</key>
13534
13533
  <string>${LOG_PATH}</string>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-claw",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
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",