cc-claw 0.14.3 → 0.14.5

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 +11 -2
  2. package/package.json +2 -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.3" : (() => {
75
+ VERSION = true ? "0.14.5" : (() => {
76
76
  try {
77
77
  return JSON.parse(readFileSync(join2(process.cwd(), "package.json"), "utf-8")).version ?? "unknown";
78
78
  } catch {
@@ -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.3",
3
+ "version": "0.14.5",
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",
@@ -44,6 +44,7 @@
44
44
  "croner": "^9.0.0",
45
45
  "dotenv": "^16.4.7",
46
46
  "grammy": "^1.35.0",
47
+ "marked": "^9.1.6",
47
48
  "picocolors": "^1.1.1",
48
49
  "zod": "^4.3.6"
49
50
  },