@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.
@@ -7,7 +7,7 @@ import {
7
7
  getSettingsMap,
8
8
  getSettingsValue,
9
9
  secureParameters
10
- } from "./chunk-NZADYDFG.js";
10
+ } from "./chunk-U3GPYBTD.js";
11
11
  import {
12
12
  KnowledgeType,
13
13
  SupportedFabFileMimeTypes
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  BadRequestError,
4
4
  secureParameters
5
- } from "./chunk-NZADYDFG.js";
5
+ } from "./chunk-U3GPYBTD.js";
6
6
  import {
7
7
  GenericCreditDeductTransaction,
8
8
  ImageEditUsageTransaction,
@@ -6,7 +6,7 @@ import {
6
6
  getSettingsByNames,
7
7
  obfuscateApiKey,
8
8
  secureParameters
9
- } from "./chunk-NZADYDFG.js";
9
+ } from "./chunk-U3GPYBTD.js";
10
10
  import {
11
11
  ApiKeyType,
12
12
  MementoTier,
@@ -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: this.lastAssistantContent
800
+ content: contentWithoutThinking
802
801
  });
803
- this.logger.debug(`[AnthropicBackend] Including ${this.lastAssistantContent.length} content blocks (thinking + tool_use) in assistant message`);
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" && !message.includes("aborted")) {
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-5N4PG5EH.js";
6
- import "./chunk-NZADYDFG.js";
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";