cc-claw 0.22.4 → 0.22.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.
- package/dist/cli.js +19 -17
- 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.22.
|
|
36
|
+
VERSION = true ? "0.22.5" : (() => {
|
|
37
37
|
try {
|
|
38
38
|
return JSON.parse(readFileSync(join(process.cwd(), "package.json"), "utf-8")).version ?? "unknown";
|
|
39
39
|
} catch {
|
|
@@ -8448,22 +8448,6 @@ async function summarizeWithFallbackChain(chatId, targetBackendId, excludeBacken
|
|
|
8448
8448
|
} catch {
|
|
8449
8449
|
}
|
|
8450
8450
|
}
|
|
8451
|
-
try {
|
|
8452
|
-
const config2 = getSummarizer(chatId);
|
|
8453
|
-
if (config2.backend !== "off") {
|
|
8454
|
-
const adapter = config2.backend ? getAdapter(config2.backend) : getAdapterForChat(chatId);
|
|
8455
|
-
const model2 = config2.model ?? adapter.summarizerModel;
|
|
8456
|
-
const key = `${adapter.id}:${model2}`;
|
|
8457
|
-
tried.add(key);
|
|
8458
|
-
const result = await attemptSummarize(chatId, adapter, model2, entries);
|
|
8459
|
-
if (result.success) {
|
|
8460
|
-
await extractAndLogSignals(result.rawText, chatId, adapter.id, model2);
|
|
8461
|
-
if (clearLogAfter) clearLog(chatId);
|
|
8462
|
-
return true;
|
|
8463
|
-
}
|
|
8464
|
-
}
|
|
8465
|
-
} catch {
|
|
8466
|
-
}
|
|
8467
8451
|
if (targetBackendId) {
|
|
8468
8452
|
try {
|
|
8469
8453
|
const targetAdapter = getAdapter(targetBackendId);
|
|
@@ -8481,6 +8465,24 @@ async function summarizeWithFallbackChain(chatId, targetBackendId, excludeBacken
|
|
|
8481
8465
|
} catch {
|
|
8482
8466
|
}
|
|
8483
8467
|
}
|
|
8468
|
+
try {
|
|
8469
|
+
const config2 = getSummarizer(chatId);
|
|
8470
|
+
if (config2.backend !== "off") {
|
|
8471
|
+
const adapter = config2.backend ? getAdapter(config2.backend) : getAdapterForChat(chatId);
|
|
8472
|
+
const model2 = config2.model ?? adapter.summarizerModel;
|
|
8473
|
+
const key = `${adapter.id}:${model2}`;
|
|
8474
|
+
if (!tried.has(key)) {
|
|
8475
|
+
tried.add(key);
|
|
8476
|
+
const result = await attemptSummarize(chatId, adapter, model2, entries);
|
|
8477
|
+
if (result.success) {
|
|
8478
|
+
await extractAndLogSignals(result.rawText, chatId, adapter.id, model2);
|
|
8479
|
+
if (clearLogAfter) clearLog(chatId);
|
|
8480
|
+
return true;
|
|
8481
|
+
}
|
|
8482
|
+
}
|
|
8483
|
+
}
|
|
8484
|
+
} catch {
|
|
8485
|
+
}
|
|
8484
8486
|
let fallbackCount = 0;
|
|
8485
8487
|
const MAX_FALLBACK_ATTEMPTS = 3;
|
|
8486
8488
|
for (const adapter of getAllAdapters()) {
|
package/package.json
CHANGED