@gendive/chatllm 0.17.40 → 0.17.41

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.
@@ -2669,6 +2669,7 @@ ${finalContent}`;
2669
2669
  const shouldSkipSkillParsing = skipNextSkillParsingRef.current;
2670
2670
  skipNextSkillParsingRef.current = false;
2671
2671
  let accumulatedContent = "";
2672
+ let checklistStepImageUrl = null;
2672
2673
  let messagesToSend = [...existingMessages, userMessage];
2673
2674
  const recompressionThreshold = DEFAULT_RECOMPRESSION_THRESHOLD;
2674
2675
  const tokenLimit = DEFAULT_TOKEN_LIMIT;
@@ -2979,7 +2980,12 @@ ${attachmentContext}
2979
2980
  }, attachExtra);
2980
2981
  pendingAttachmentDataRef.current = null;
2981
2982
  if (skillResult?.content) {
2982
- accumulatedContent = skillResult.content;
2983
+ if (skillResult.metadata?.type === "image") {
2984
+ accumulatedContent = skillResult.metadata?.outputText || "\uC774\uBBF8\uC9C0 \uC0DD\uC131 \uC644\uB8CC";
2985
+ checklistStepImageUrl = skillResult.content;
2986
+ } else {
2987
+ accumulatedContent = skillResult.content;
2988
+ }
2983
2989
  }
2984
2990
  } catch (e) {
2985
2991
  console.warn("[useChatUI] \uCCB4\uD06C\uB9AC\uC2A4\uD2B8 \uB0B4 \uC2A4\uD0AC \uC2E4\uD589 \uC2E4\uD328:", e);
@@ -3254,7 +3260,9 @@ ${result.content}
3254
3260
  const updatedItems = m.checklistBlock.items.map((it, idx) => ({
3255
3261
  ...it,
3256
3262
  status: idx <= stepIndex ? "done" : it.status,
3257
- result: idx === stepIndex ? accumulatedContent : it.result
3263
+ result: idx === stepIndex ? accumulatedContent : it.result,
3264
+ /** @Todo vibecode - 이미지 스킬 결과 URL 저장 */
3265
+ ...idx === stepIndex && checklistStepImageUrl ? { imageUrl: checklistStepImageUrl } : {}
3258
3266
  }));
3259
3267
  return {
3260
3268
  ...m,
@@ -9056,7 +9064,7 @@ var ChecklistCard = ({
9056
9064
  ]
9057
9065
  }
9058
9066
  ),
9059
- canExpand && isExpanded && /* @__PURE__ */ jsx15(
9067
+ canExpand && isExpanded && /* @__PURE__ */ jsxs14(
9060
9068
  "div",
9061
9069
  {
9062
9070
  style: {
@@ -9072,7 +9080,21 @@ var ChecklistCard = ({
9072
9080
  whiteSpace: "pre-wrap",
9073
9081
  wordBreak: "break-word"
9074
9082
  },
9075
- children: item.result
9083
+ children: [
9084
+ item.imageUrl && /* @__PURE__ */ jsx15(
9085
+ "img",
9086
+ {
9087
+ src: item.imageUrl,
9088
+ alt: item.result || "\uC0DD\uC131\uB41C \uC774\uBBF8\uC9C0",
9089
+ style: {
9090
+ maxWidth: "100%",
9091
+ borderRadius: "8px",
9092
+ marginBottom: item.result ? "8px" : 0
9093
+ }
9094
+ }
9095
+ ),
9096
+ item.result
9097
+ ]
9076
9098
  }
9077
9099
  )
9078
9100
  ] }, item.id);