cc-claw 0.4.6 → 0.4.8
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 +7 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -48,7 +48,7 @@ var VERSION;
|
|
|
48
48
|
var init_version = __esm({
|
|
49
49
|
"src/version.ts"() {
|
|
50
50
|
"use strict";
|
|
51
|
-
VERSION = true ? "0.4.
|
|
51
|
+
VERSION = true ? "0.4.8" : (() => {
|
|
52
52
|
try {
|
|
53
53
|
return JSON.parse(readFileSync(join2(process.cwd(), "package.json"), "utf-8")).version ?? "unknown";
|
|
54
54
|
} catch {
|
|
@@ -6526,6 +6526,7 @@ var init_delivery = __esm({
|
|
|
6526
6526
|
// src/scheduler/retry.ts
|
|
6527
6527
|
function classifyError(err) {
|
|
6528
6528
|
const msg = err instanceof Error ? err.message : String(err);
|
|
6529
|
+
if (/spawn timeout/i.test(msg)) return "permanent";
|
|
6529
6530
|
for (const pattern of EXHAUSTED_PATTERNS) {
|
|
6530
6531
|
if (pattern.test(msg)) return "exhausted";
|
|
6531
6532
|
}
|
|
@@ -7629,6 +7630,8 @@ var init_telegram2 = __esm({
|
|
|
7629
7630
|
return;
|
|
7630
7631
|
}
|
|
7631
7632
|
const data = ctx.callbackQuery.data;
|
|
7633
|
+
await ctx.answerCallbackQuery().catch(() => {
|
|
7634
|
+
});
|
|
7632
7635
|
try {
|
|
7633
7636
|
for (const handler2 of this.callbackHandlers) {
|
|
7634
7637
|
await handler2(chatId, data, this);
|
|
@@ -7636,8 +7639,6 @@ var init_telegram2 = __esm({
|
|
|
7636
7639
|
} catch (err) {
|
|
7637
7640
|
error("[telegram] Callback handler error:", err);
|
|
7638
7641
|
}
|
|
7639
|
-
await ctx.answerCallbackQuery().catch(() => {
|
|
7640
|
-
});
|
|
7641
7642
|
});
|
|
7642
7643
|
this.bot.catch((err) => {
|
|
7643
7644
|
error("[telegram] Unhandled error:", err);
|
|
@@ -11479,6 +11480,9 @@ Your conversation history is preserved. ${targetAdapter.displayName} will receiv
|
|
|
11479
11480
|
async function doBackendSwitch(chatId, backendId, channel) {
|
|
11480
11481
|
const targetAdapter = getAdapter(backendId);
|
|
11481
11482
|
const pairCount = getMessagePairCount(chatId);
|
|
11483
|
+
if (pairCount >= 2) {
|
|
11484
|
+
await channel.sendText(chatId, `\u23F3 Saving context...`, "plain");
|
|
11485
|
+
}
|
|
11482
11486
|
const summarized = await summarizeWithFallbackChain(chatId, backendId);
|
|
11483
11487
|
const bridge = buildContextBridge(chatId);
|
|
11484
11488
|
if (bridge) {
|
package/package.json
CHANGED