@blockrun/clawrouter 0.12.90 → 0.12.92
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 +13 -9
- package/dist/cli.js.map +1 -1
- package/dist/index.js +13 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/e2e-multiturn.mjs +156 -0
- package/skills/imagegen/SKILL.md +9 -7
- package/skills/predexon/SKILL.md +45 -38
package/dist/cli.js
CHANGED
|
@@ -51252,7 +51252,10 @@ var PROVIDER_ERROR_PATTERNS = [
|
|
|
51252
51252
|
/payload too large/i,
|
|
51253
51253
|
/payment.*verification.*failed/i,
|
|
51254
51254
|
/model.*not.*allowed/i,
|
|
51255
|
-
/unknown.*model/i
|
|
51255
|
+
/unknown.*model/i,
|
|
51256
|
+
/reasoning_content.*missing/i,
|
|
51257
|
+
// Thinking model multi-turn: missing reasoning_content → fallback
|
|
51258
|
+
/thinking.*reasoning_content/i
|
|
51256
51259
|
];
|
|
51257
51260
|
var DEGRADED_RESPONSE_PATTERNS = [
|
|
51258
51261
|
/the ai service is temporarily overloaded/i,
|
|
@@ -51472,13 +51475,8 @@ function normalizeMessagesForThinking(messages) {
|
|
|
51472
51475
|
if (msg.role !== "assistant" || msg.reasoning_content !== void 0) {
|
|
51473
51476
|
return msg;
|
|
51474
51477
|
}
|
|
51475
|
-
|
|
51476
|
-
|
|
51477
|
-
if (hasOpenAIToolCalls || hasAnthropicToolUse) {
|
|
51478
|
-
hasChanges = true;
|
|
51479
|
-
return { ...msg, reasoning_content: "" };
|
|
51480
|
-
}
|
|
51481
|
-
return msg;
|
|
51478
|
+
hasChanges = true;
|
|
51479
|
+
return { ...msg, reasoning_content: "" };
|
|
51482
51480
|
});
|
|
51483
51481
|
return hasChanges ? normalized : messages;
|
|
51484
51482
|
}
|
|
@@ -53709,7 +53707,13 @@ data: [DONE]
|
|
|
53709
53707
|
let errPayload;
|
|
53710
53708
|
try {
|
|
53711
53709
|
const parsed = JSON.parse(transformedErr);
|
|
53712
|
-
|
|
53710
|
+
if (parsed && typeof parsed === "object" && "error" in parsed) {
|
|
53711
|
+
errPayload = JSON.stringify(parsed);
|
|
53712
|
+
} else {
|
|
53713
|
+
errPayload = JSON.stringify({
|
|
53714
|
+
error: { message: rawErrBody, type: "provider_error", status: errStatus }
|
|
53715
|
+
});
|
|
53716
|
+
}
|
|
53713
53717
|
} catch {
|
|
53714
53718
|
errPayload = JSON.stringify({
|
|
53715
53719
|
error: { message: rawErrBody, type: "provider_error", status: errStatus }
|