cc-claw 0.20.11 → 0.20.12

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 -6
  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.20.11" : (() => {
36
+ VERSION = true ? "0.20.12" : (() => {
37
37
  try {
38
38
  return JSON.parse(readFileSync(join(process.cwd(), "package.json"), "utf-8")).version ?? "unknown";
39
39
  } catch {
@@ -13317,9 +13317,10 @@ function spawnQuery(adapter, config2, model2, cancelState, thinkingLevel, timeou
13317
13317
  const env = opts?.envOverride ? thinkingConfig?.envOverrides ? { ...opts.envOverride, ...thinkingConfig.envOverrides } : opts.envOverride : adapter.getEnv(thinkingConfig?.envOverrides);
13318
13318
  const finalArgs = thinkingConfig?.extraArgs ? [...config2.args, ...thinkingConfig.extraArgs] : config2.args;
13319
13319
  log(`[agent:spawn] backend=${adapter.id} exe=${config2.executable} model=${model2} timeout=${effectiveTimeout / 1e3}s cwd=${config2.cwd ?? "(inherited)"}`);
13320
+ const stdinMode = adapter.id === "codex" ? "pipe" : "ignore";
13320
13321
  const proc = spawn6(config2.executable, finalArgs, {
13321
13322
  env,
13322
- stdio: ["ignore", "pipe", "pipe"],
13323
+ stdio: [stdinMode, "pipe", "pipe"],
13323
13324
  detached: true,
13324
13325
  ...config2.cwd ? { cwd: config2.cwd } : {}
13325
13326
  });
@@ -14696,6 +14697,7 @@ var init_telegram_throttle = __esm({
14696
14697
  try {
14697
14698
  const result = await this.execWithRetry(item.label, item.fn);
14698
14699
  this.recordSend(item.chatId);
14700
+ this.pauseStartedAt = 0;
14699
14701
  item.resolve(result);
14700
14702
  } catch (err) {
14701
14703
  if (is429(err)) {
@@ -14742,7 +14744,6 @@ var init_telegram_throttle = __esm({
14742
14744
  this.chatsPendingNotification.clear();
14743
14745
  if (!this.resumeNotifier) return;
14744
14746
  const pausedSec = this.pauseStartedAt > 0 ? Math.round((Date.now() - this.pauseStartedAt) / 1e3) : 0;
14745
- this.pauseStartedAt = 0;
14746
14747
  for (const chatId of chats2) {
14747
14748
  const queuedForChat = this.queue.filter((q) => q.chatId === chatId).length;
14748
14749
  if (queuedForChat === 0) continue;
@@ -14753,14 +14754,13 @@ var init_telegram_throttle = __esm({
14753
14754
  if (is429(err)) {
14754
14755
  const retrySec = err.parameters?.retry_after ?? 10;
14755
14756
  this.pausedUntil = Date.now() + retrySec * 1e3;
14756
- if (this.pauseStartedAt === 0) this.pauseStartedAt = Date.now();
14757
- for (const c of chats2) this.chatsPendingNotification.add(c);
14758
- warn(`[throttle] Resume notification hit 429, re-pausing for ${retrySec}s`);
14757
+ warn(`[throttle] Resume notification hit 429, re-pausing for ${retrySec}s (skipping further notifications)`);
14759
14758
  return;
14760
14759
  }
14761
14760
  warn(`[throttle] Resume notification failed for chat ${chatId}: ${err}`);
14762
14761
  }
14763
14762
  }
14763
+ this.pauseStartedAt = 0;
14764
14764
  }
14765
14765
  // ── Helpers ─────────────────────────────────────────────────────────
14766
14766
  recordSend(chatId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-claw",
3
- "version": "0.20.11",
3
+ "version": "0.20.12",
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",