@invergent/agent-chat-react 2.2.9 → 2.3.0

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.cjs CHANGED
@@ -8577,7 +8577,7 @@ function SimpleFinalAnswer({
8577
8577
  }) {
8578
8578
  const content = useSmoothStream(text, isStreaming);
8579
8579
  const revealComplete = content.length >= text.length;
8580
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-3", children: [
8580
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
8581
8581
  /* @__PURE__ */ jsxRuntime.jsx(MessageResponse, { children: content }),
8582
8582
  tail?.status === "complete" && revealComplete && /* @__PURE__ */ jsxRuntime.jsx(TurnFeedback, { msg: tail })
8583
8583
  ] });
@@ -8865,7 +8865,7 @@ function IterationGroup({
8865
8865
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-1 py-0.5", children: /* @__PURE__ */ jsxRuntime.jsx(AskUserQuestionToolBlock, { tc: askCall }) });
8866
8866
  }
8867
8867
  const label2 = liveIterationLabel(message);
8868
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-1 py-0.5 text-sm", children: /* @__PURE__ */ jsxRuntime.jsx(Shimmer, { duration: 3, spread: 3, className: "text-sm", children: label2 }) });
8868
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "py-0.5 text-sm", children: /* @__PURE__ */ jsxRuntime.jsx(Shimmer, { duration: 3, spread: 3, className: "text-sm", children: label2 }) });
8869
8869
  }
8870
8870
  const label = summary ?? deriveIterationLabel(message);
8871
8871
  if (!label) {
@@ -8991,34 +8991,31 @@ function SimpleAssistantGroup({
8991
8991
  };
8992
8992
  })();
8993
8993
  return /* @__PURE__ */ jsxRuntime.jsx(Message, { from: "assistant", children: /* @__PURE__ */ jsxRuntime.jsxs(MessageContent, { children: [
8994
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
8995
- messages.map((message) => {
8996
- if (message.role === "system") {
8997
- if (message.systemKind === "skill_invoked") return null;
8998
- return /* @__PURE__ */ jsxRuntime.jsx(
8999
- OrphanSystemMarker,
9000
- {
9001
- message,
9002
- sessionId,
9003
- onRetry: void 0
9004
- },
9005
- message.id
9006
- );
9007
- }
9008
- if (message === tail && tailIsTextOnly) return null;
8994
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-2", children: messages.map((message) => {
8995
+ if (message.role === "system") {
8996
+ if (message.systemKind === "skill_invoked") return null;
9009
8997
  return /* @__PURE__ */ jsxRuntime.jsx(
9010
- IterationGroup,
8998
+ OrphanSystemMarker,
9011
8999
  {
9012
9000
  message,
9013
9001
  sessionId,
9014
- artifactFallbacks,
9015
- onFileSelect
9002
+ onRetry: void 0
9016
9003
  },
9017
9004
  message.id
9018
9005
  );
9019
- }),
9020
- showThinkingShim && /* @__PURE__ */ jsxRuntime.jsx(Shimmer, { duration: 3, spread: 3, className: "text-sm", children: "Working on it..." })
9021
- ] }),
9006
+ }
9007
+ if (message === tail && tailIsTextOnly) return null;
9008
+ return /* @__PURE__ */ jsxRuntime.jsx(
9009
+ IterationGroup,
9010
+ {
9011
+ message,
9012
+ sessionId,
9013
+ artifactFallbacks,
9014
+ onFileSelect
9015
+ },
9016
+ message.id
9017
+ );
9018
+ }) }),
9022
9019
  finalText && /* @__PURE__ */ jsxRuntime.jsx(
9023
9020
  SimpleFinalAnswer,
9024
9021
  {
@@ -9027,6 +9024,7 @@ function SimpleAssistantGroup({
9027
9024
  tail
9028
9025
  }
9029
9026
  ),
9027
+ showThinkingShim && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsxRuntime.jsx(Shimmer, { duration: 3, spread: 3, className: "text-sm", children: "Working on it..." }) }),
9030
9028
  effectiveTurnSummary ? /* @__PURE__ */ jsxRuntime.jsx(
9031
9029
  TurnSummaryCard,
9032
9030
  {