@bike4mind/cli 0.2.1-feat-cli-file-reference.17024 → 0.2.1-feat-cli-project-scoped-config.16996
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/{chunk-5N4PG5EH.js → chunk-F3ETXO5N.js} +1 -1
- package/dist/{chunk-CJRAEEKV.js → chunk-LZMRYJ3B.js} +1 -1
- package/dist/{chunk-GZTILMGE.js → chunk-QXGU6KYI.js} +1 -1
- package/dist/{chunk-NZADYDFG.js → chunk-U3GPYBTD.js} +7 -12
- package/dist/{create-ZTK4723N.js → create-YUYXTEIS.js} +2 -2
- package/dist/index.js +1180 -1091
- package/dist/{mementoService-5XQYECNM.js → mementoService-2BDIT6PH.js} +2 -2
- package/dist/{src-DOO3QAO2.js → src-VLP2EHKE.js} +1 -1
- package/dist/{subtractCredits-Q2PDJLQH.js → subtractCredits-NNYIS5XZ.js} +2 -2
- package/package.json +7 -13
|
@@ -610,10 +610,6 @@ var AnthropicBackend = class {
|
|
|
610
610
|
}
|
|
611
611
|
if (collectedContent[event.index] && collectedContent[event.index].type === "tool_use") {
|
|
612
612
|
}
|
|
613
|
-
} else if ("delta" in event && event.delta.type === "signature_delta") {
|
|
614
|
-
if (collectedContent[event.index] && collectedContent[event.index].type === "thinking") {
|
|
615
|
-
collectedContent[event.index].signature = event.delta.signature;
|
|
616
|
-
}
|
|
617
613
|
}
|
|
618
614
|
} else if (event.type === "content_block_stop") {
|
|
619
615
|
if (isInThinkingBlock) {
|
|
@@ -796,11 +792,14 @@ var AnthropicBackend = class {
|
|
|
796
792
|
}
|
|
797
793
|
pushToolMessages(messages, tool, result, previousMessage) {
|
|
798
794
|
if (this.isThinkingEnabled && this.lastAssistantContent.length > 0) {
|
|
795
|
+
const contentWithoutThinking = this.lastAssistantContent.filter((block) => {
|
|
796
|
+
return block.type !== "thinking";
|
|
797
|
+
});
|
|
799
798
|
messages.push({
|
|
800
799
|
role: "assistant",
|
|
801
|
-
content:
|
|
800
|
+
content: contentWithoutThinking
|
|
802
801
|
});
|
|
803
|
-
this.logger.debug(`[AnthropicBackend]
|
|
802
|
+
this.logger.debug(`[AnthropicBackend] Filtered thinking blocks from assistant content. Original: ${this.lastAssistantContent.length} blocks, Filtered: ${contentWithoutThinking.length} blocks`);
|
|
804
803
|
} else {
|
|
805
804
|
messages.push({
|
|
806
805
|
role: "assistant",
|
|
@@ -1119,12 +1118,8 @@ var BaseBedrockBackend = class {
|
|
|
1119
1118
|
await callback(streamedText, { inputTokens, outputTokens, toolsUsed });
|
|
1120
1119
|
}
|
|
1121
1120
|
} catch (error) {
|
|
1121
|
+
console.error(`[BaseBedrockBackend] Error invoking model ${model}:`, error);
|
|
1122
1122
|
if (error instanceof Error) {
|
|
1123
|
-
if (error.message.includes("aborted")) {
|
|
1124
|
-
console.log("[BaseBedrockBackend] Request aborted, skipping error logging");
|
|
1125
|
-
throw error;
|
|
1126
|
-
}
|
|
1127
|
-
console.error(`[BaseBedrockBackend] Error invoking model ${model}:`, error);
|
|
1128
1123
|
console.error(`[BaseBedrockBackend] Error details:`, {
|
|
1129
1124
|
name: error.name,
|
|
1130
1125
|
message: error.message,
|
|
@@ -9957,7 +9952,7 @@ function shouldTriggerFallback(error) {
|
|
|
9957
9952
|
return true;
|
|
9958
9953
|
}
|
|
9959
9954
|
}
|
|
9960
|
-
if ("code" in error && error.code === "ECONNRESET"
|
|
9955
|
+
if ("code" in error && error.code === "ECONNRESET") {
|
|
9961
9956
|
return true;
|
|
9962
9957
|
}
|
|
9963
9958
|
if (error.name === "TypeError" && message.includes("terminated")) {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createFabFile,
|
|
4
4
|
createFabFileSchema
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-F3ETXO5N.js";
|
|
6
|
+
import "./chunk-U3GPYBTD.js";
|
|
7
7
|
import "./chunk-AMDXHL6S.js";
|
|
8
8
|
import "./chunk-WR6YZRQV.js";
|
|
9
9
|
import "./chunk-PDX44BCA.js";
|