cc-claw 0.5.3 → 0.5.4

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 -1
  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.3" : (() => {
52
+ VERSION = true ? "0.5.4" : (() => {
53
53
  try {
54
54
  return JSON.parse(readFileSync(join2(process.cwd(), "package.json"), "utf-8")).version ?? "unknown";
55
55
  } catch {
@@ -11493,6 +11493,9 @@ async function handleText(msg, channel) {
11493
11493
  [
11494
11494
  { label: "\u{1F4E5} Queue message", data: `interrupt:queue:${chatId}` },
11495
11495
  { label: "\u26A1 Send now", data: `interrupt:now:${chatId}` }
11496
+ ],
11497
+ [
11498
+ { label: "\u{1F5D1} Don't send", data: `interrupt:discard:${chatId}` }
11496
11499
  ]
11497
11500
  ]);
11498
11501
  return;
@@ -12086,6 +12089,9 @@ ${PERM_MODES[chosen]}`,
12086
12089
  await channel.sendText(chatId, "\u{1F4E5} Message queued \u2014 will process after current task.", "plain");
12087
12090
  handleMessage(pending.msg, pending.channel).catch(() => {
12088
12091
  });
12092
+ } else if (action === "discard") {
12093
+ pendingInterrupts.delete(targetChatId);
12094
+ await channel.sendText(chatId, "\u{1F5D1} Message discarded.", "plain");
12089
12095
  } else {
12090
12096
  await channel.sendText(chatId, "Message already processed or expired.", "plain");
12091
12097
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-claw",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
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",