@invergent/agent-chat-react 2.2.9 → 2.3.1

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/index.js CHANGED
@@ -8279,7 +8279,7 @@ function SimpleFinalAnswer({
8279
8279
  }) {
8280
8280
  const content = useSmoothStream(text, isStreaming);
8281
8281
  const revealComplete = content.length >= text.length;
8282
- return /* @__PURE__ */ jsxs("div", { className: "mt-3", children: [
8282
+ return /* @__PURE__ */ jsxs("div", { children: [
8283
8283
  /* @__PURE__ */ jsx(MessageResponse, { children: content }),
8284
8284
  tail?.status === "complete" && revealComplete && /* @__PURE__ */ jsx(TurnFeedback, { msg: tail })
8285
8285
  ] });
@@ -8567,7 +8567,7 @@ function IterationGroup({
8567
8567
  return /* @__PURE__ */ jsx("div", { className: "px-1 py-0.5", children: /* @__PURE__ */ jsx(AskUserQuestionToolBlock, { tc: askCall }) });
8568
8568
  }
8569
8569
  const label2 = liveIterationLabel(message);
8570
- return /* @__PURE__ */ jsx("div", { className: "px-1 py-0.5 text-sm", children: /* @__PURE__ */ jsx(Shimmer, { duration: 3, spread: 3, className: "text-sm", children: label2 }) });
8570
+ return /* @__PURE__ */ jsx("div", { className: "py-0.5 text-sm", children: /* @__PURE__ */ jsx(Shimmer, { duration: 3, spread: 3, className: "text-sm", children: label2 }) });
8571
8571
  }
8572
8572
  const label = summary ?? deriveIterationLabel(message);
8573
8573
  if (!label) {
@@ -8693,34 +8693,31 @@ function SimpleAssistantGroup({
8693
8693
  };
8694
8694
  })();
8695
8695
  return /* @__PURE__ */ jsx(Message, { from: "assistant", children: /* @__PURE__ */ jsxs(MessageContent, { children: [
8696
- /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
8697
- messages.map((message) => {
8698
- if (message.role === "system") {
8699
- if (message.systemKind === "skill_invoked") return null;
8700
- return /* @__PURE__ */ jsx(
8701
- OrphanSystemMarker,
8702
- {
8703
- message,
8704
- sessionId,
8705
- onRetry: void 0
8706
- },
8707
- message.id
8708
- );
8709
- }
8710
- if (message === tail && tailIsTextOnly) return null;
8696
+ /* @__PURE__ */ jsx("div", { className: "space-y-2", children: messages.map((message) => {
8697
+ if (message.role === "system") {
8698
+ if (message.systemKind === "skill_invoked") return null;
8711
8699
  return /* @__PURE__ */ jsx(
8712
- IterationGroup,
8700
+ OrphanSystemMarker,
8713
8701
  {
8714
8702
  message,
8715
8703
  sessionId,
8716
- artifactFallbacks,
8717
- onFileSelect
8704
+ onRetry: void 0
8718
8705
  },
8719
8706
  message.id
8720
8707
  );
8721
- }),
8722
- showThinkingShim && /* @__PURE__ */ jsx(Shimmer, { duration: 3, spread: 3, className: "text-sm", children: "Working on it..." })
8723
- ] }),
8708
+ }
8709
+ if (message === tail && tailIsTextOnly) return null;
8710
+ return /* @__PURE__ */ jsx(
8711
+ IterationGroup,
8712
+ {
8713
+ message,
8714
+ sessionId,
8715
+ artifactFallbacks,
8716
+ onFileSelect
8717
+ },
8718
+ message.id
8719
+ );
8720
+ }) }),
8724
8721
  finalText && /* @__PURE__ */ jsx(
8725
8722
  SimpleFinalAnswer,
8726
8723
  {
@@ -8729,6 +8726,7 @@ function SimpleAssistantGroup({
8729
8726
  tail
8730
8727
  }
8731
8728
  ),
8729
+ showThinkingShim && /* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(Shimmer, { duration: 3, spread: 3, className: "text-sm", children: "Working on it..." }) }),
8732
8730
  effectiveTurnSummary ? /* @__PURE__ */ jsx(
8733
8731
  TurnSummaryCard,
8734
8732
  {