@gendive/chatllm 0.21.1 → 0.21.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.
@@ -4388,6 +4388,7 @@ ${refContents}
4388
4388
  setTimeout(() => {
4389
4389
  const nextItem = checklist.items[nextStep];
4390
4390
  const refUrl = resolveChecklistRefImage(nextItem, checklist.messageId, checklist.sessionId);
4391
+ if (refUrl) pendingAttachmentDataRef.current = [{ name: "ref_image", mimeType: "image/png", base64: "", size: 0, url: refUrl }];
4391
4392
  sendMessage(
4392
4393
  buildChecklistStepPrompt(nextStep, checklist.items.length, nextItem, false, refUrl),
4393
4394
  { hiddenUserMessage: true, isChecklistExecution: true, checklistStep: { index: nextStep, title: nextItem.title } }
@@ -4494,6 +4495,7 @@ ${stepSummary}
4494
4495
  setTimeout(() => {
4495
4496
  const firstItem = checklistBlock.items[0];
4496
4497
  const refUrl = resolveChecklistRefImage(firstItem, assistantMessageId, capturedSessionId);
4498
+ if (refUrl) pendingAttachmentDataRef.current = [{ name: "ref_image", mimeType: "image/png", base64: "", size: 0, url: refUrl }];
4497
4499
  sendMessage(
4498
4500
  buildChecklistStepPrompt(0, checklistBlock.items.length, firstItem, true, refUrl),
4499
4501
  { hiddenUserMessage: true, isChecklistExecution: true, checklistStep: { index: 0, title: firstItem.title } }
@@ -4655,6 +4657,7 @@ ${stepSummary}
4655
4657
  setTimeout(() => {
4656
4658
  const items = message.checklistBlock.items;
4657
4659
  const refUrl = resolveChecklistRefImage(items[0], messageId, session.id);
4660
+ if (refUrl) pendingAttachmentDataRef.current = [{ name: "ref_image", mimeType: "image/png", base64: "", size: 0, url: refUrl }];
4658
4661
  sendMessage(
4659
4662
  buildChecklistStepPrompt(0, items.length, items[0], true, refUrl),
4660
4663
  { hiddenUserMessage: true, isChecklistExecution: true, checklistStep: { index: 0, title: items[0].title } }
@@ -4733,6 +4736,7 @@ ${stepSummary}
4733
4736
  setTimeout(() => {
4734
4737
  const items = message.checklistBlock.items;
4735
4738
  const refUrl = resolveChecklistRefImage(items[stepIndex], messageId, session.id);
4739
+ if (refUrl) pendingAttachmentDataRef.current = [{ name: "ref_image", mimeType: "image/png", base64: "", size: 0, url: refUrl }];
4736
4740
  sendMessage(
4737
4741
  buildChecklistStepPrompt(stepIndex, items.length, items[stepIndex], stepIndex === 0, refUrl),
4738
4742
  { hiddenUserMessage: true, isChecklistExecution: true, checklistStep: { index: stepIndex, title: items[stepIndex].title } }
@@ -4809,6 +4813,7 @@ ${stepSummary}
4809
4813
  setTimeout(() => {
4810
4814
  const items = message.checklistBlock.items;
4811
4815
  const refUrl = resolveChecklistRefImage(items[nextPending], messageId, session.id);
4816
+ if (refUrl) pendingAttachmentDataRef.current = [{ name: "ref_image", mimeType: "image/png", base64: "", size: 0, url: refUrl }];
4812
4817
  sendMessage(
4813
4818
  buildChecklistStepPrompt(nextPending, items.length, items[nextPending], false, refUrl),
4814
4819
  { hiddenUserMessage: true, isChecklistExecution: true, checklistStep: { index: nextPending, title: items[nextPending].title } }
@@ -11414,7 +11419,7 @@ var MessageList = ({
11414
11419
  MessageBubble,
11415
11420
  {
11416
11421
  message,
11417
- isLoading: isLoading && index === messages.length - 1 && message.role === "assistant",
11422
+ isLoading: isLoading && index === messages.length - 1 && message.role === "assistant" && !(activeSkillExecution && activeSkillExecution.status === "executing"),
11418
11423
  isCopied: copiedId === message.id,
11419
11424
  isEditing: editingId === message.id,
11420
11425
  onCopy: () => onCopy(message.content, message.id),
@@ -11449,61 +11454,6 @@ var MessageList = ({
11449
11454
  );
11450
11455
  return renderMessage ? /* @__PURE__ */ jsx17(React13.Fragment, { children: renderMessage(message, bubbleElement) }, message.id) : bubbleElement;
11451
11456
  }),
11452
- activeSkillExecution && activeSkillExecution.status === "executing" && /* @__PURE__ */ jsxs16(
11453
- "div",
11454
- {
11455
- style: {
11456
- display: "flex",
11457
- alignItems: "center",
11458
- gap: "10px",
11459
- padding: "12px 20px",
11460
- margin: "8px auto",
11461
- maxWidth: "680px",
11462
- width: "100%"
11463
- },
11464
- children: [
11465
- /* @__PURE__ */ jsx17(
11466
- "div",
11467
- {
11468
- style: {
11469
- width: "20px",
11470
- height: "20px",
11471
- borderRadius: "50%",
11472
- border: "2px solid var(--chatllm-primary, #3584FA)",
11473
- borderTopColor: "transparent",
11474
- animation: "chatllm-spin 0.8s linear infinite",
11475
- flexShrink: 0
11476
- }
11477
- }
11478
- ),
11479
- /* @__PURE__ */ jsx17(
11480
- "span",
11481
- {
11482
- style: {
11483
- fontSize: "13px",
11484
- fontWeight: 500,
11485
- color: "var(--chatllm-text-muted, #94a3b8)"
11486
- },
11487
- children: activeSkillExecution.progress?.phaseLabel || `${activeSkillExecution.skillName} \uC2E4\uD589 \uC911...`
11488
- }
11489
- ),
11490
- activeSkillExecution.progress?.percentage != null && /* @__PURE__ */ jsxs16(
11491
- "span",
11492
- {
11493
- style: {
11494
- fontSize: "12px",
11495
- color: "var(--chatllm-primary, #3584FA)",
11496
- fontWeight: 600
11497
- },
11498
- children: [
11499
- activeSkillExecution.progress.percentage,
11500
- "%"
11501
- ]
11502
- }
11503
- )
11504
- ]
11505
- }
11506
- ),
11507
11457
  /* @__PURE__ */ jsx17("div", { ref: messagesEndRef })
11508
11458
  ]
11509
11459
  }