@kenkaiiii/gg-boss 4.6.1 → 4.6.3

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.
@@ -63507,6 +63507,29 @@ function isRawThinking(part) {
63507
63507
  const t = part.data.type;
63508
63508
  return t === "thinking" || t === "redacted_thinking";
63509
63509
  }
63510
+ var ANTHROPIC_INPUT_BLOCK_TYPES = /* @__PURE__ */ new Set([
63511
+ "bash_code_execution_tool_result",
63512
+ "code_execution_tool_result",
63513
+ "connector_text",
63514
+ "container_upload",
63515
+ "document",
63516
+ "image",
63517
+ "mid_conv_system",
63518
+ "redacted_thinking",
63519
+ "search_result",
63520
+ "server_tool_use",
63521
+ "text",
63522
+ "text_editor_code_execution_tool_result",
63523
+ "thinking",
63524
+ "tool_result",
63525
+ "tool_search_tool_result",
63526
+ "tool_use",
63527
+ "web_fetch_tool_result",
63528
+ "web_search_tool_result"
63529
+ ]);
63530
+ function isAnthropicCompatibleRaw(part) {
63531
+ return ANTHROPIC_INPUT_BLOCK_TYPES.has(part.data.type);
63532
+ }
63510
63533
  function isPositionSensitiveThinking(part) {
63511
63534
  if (part.type === "thinking") return hasValidThinkingSignature(part);
63512
63535
  return isRawThinking(part);
@@ -63533,7 +63556,8 @@ function toAnthropicAssistantPart(part, idMap) {
63533
63556
  };
63534
63557
  if (part.type === "server_tool_result")
63535
63558
  return part.data;
63536
- if (part.type === "raw") return part.data;
63559
+ if (part.type === "raw")
63560
+ return isAnthropicCompatibleRaw(part) ? part.data : null;
63537
63561
  return null;
63538
63562
  }
63539
63563
  function toAnthropicAssistantContent(content, preserveThinking, idMap) {
@@ -114479,4 +114503,4 @@ react/cjs/react-jsx-runtime.development.js:
114479
114503
  * LICENSE file in the root directory of this source tree.
114480
114504
  *)
114481
114505
  */
114482
- //# sourceMappingURL=chunk-NFL55QLO.js.map
114506
+ //# sourceMappingURL=chunk-EVFGJFHT.js.map