cc-claw 0.14.2 → 0.14.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 +12 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -72,7 +72,7 @@ var VERSION;
72
72
  var init_version = __esm({
73
73
  "src/version.ts"() {
74
74
  "use strict";
75
- VERSION = true ? "0.14.2" : (() => {
75
+ VERSION = true ? "0.14.4" : (() => {
76
76
  try {
77
77
  return JSON.parse(readFileSync(join2(process.cwd(), "package.json"), "utf-8")).version ?? "unknown";
78
78
  } catch {
@@ -10000,7 +10000,7 @@ function spawnQuery(adapter, config2, model2, cancelState, thinkingLevel, timeou
10000
10000
  proc.stderr?.on("data", (chunk) => stderrChunks.push(chunk));
10001
10001
  const rl2 = createInterface4({ input: proc.stdout });
10002
10002
  let firstLine = true;
10003
- const frTimeoutMs = opts?.firstResponseTimeoutMs ?? FIRST_RESPONSE_TIMEOUT_MS;
10003
+ const frTimeoutMs = adapter.id === "gemini" ? opts?.firstResponseTimeoutMs ?? FIRST_RESPONSE_TIMEOUT_MS : 0;
10004
10004
  let firstResponseTimer;
10005
10005
  let gotModelContent = false;
10006
10006
  if (frTimeoutMs > 0) {
@@ -10347,7 +10347,16 @@ async function askAgentImpl(chatId, userMessage, opts) {
10347
10347
  })() : baseConfig;
10348
10348
  const cancelState = { cancelled: false, userMessage };
10349
10349
  activeChats.set(chatId, cancelState);
10350
- const spawnOpts = { onStream, onToolAction, onSubagentActivity };
10350
+ const spawnOpts = {
10351
+ onStream,
10352
+ onToolAction,
10353
+ onSubagentActivity,
10354
+ // First-response timeout: only arm for fresh Gemini sessions (cold-start).
10355
+ // If Gemini has already responded at least once (existingSessionId is set),
10356
+ // the session is established — mid-conversation silence is a legitimate long task,
10357
+ // not an OAuth capacity hang. Pass 0 to disable the timer for mid-conversation.
10358
+ firstResponseTimeoutMs: existingSessionId ? 0 : void 0
10359
+ };
10351
10360
  const resolvedModel = model2 ?? adapter.defaultModel;
10352
10361
  let result = { resultText: "", sessionId: void 0, input: 0, output: 0, cacheRead: 0, sawToolEvents: false, sawResultEvent: false };
10353
10362
  const rotationMode = adapter.id === "gemini" ? getGeminiRotationMode() : "off";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-claw",
3
- "version": "0.14.2",
3
+ "version": "0.14.4",
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",