@tangle-network/agent-app 0.45.46 → 0.45.47

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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ChatComposer,
3
3
  ChatMessages
4
- } from "../chunk-UM6ODCLN.js";
4
+ } from "../chunk-ZX5UT4HF.js";
5
5
  import "../chunk-FBVLEGEG.js";
6
6
  import "../chunk-54FYYXAX.js";
7
7
  import "../chunk-GEYACSFW.js";
@@ -5540,7 +5540,8 @@ function StreamingCaret() {
5540
5540
  return /* @__PURE__ */ jsx13(
5541
5541
  "span",
5542
5542
  {
5543
- className: "ml-0.5 inline-block h-[1.1em] w-[3px] translate-y-[2px] animate-pulse rounded-sm bg-foreground/70",
5543
+ className: "ml-0.5 inline-block h-[1.1em] w-[3px] translate-y-[2px] animate-[agent-caret_1s_step-end_infinite] rounded-sm bg-foreground/70",
5544
+ "data-motion": "essential",
5544
5545
  "aria-hidden": true
5545
5546
  }
5546
5547
  );
@@ -5555,10 +5556,17 @@ function SegmentText({
5555
5556
  const text = useSmoothText(content, streaming);
5556
5557
  const body = useMemo7(() => renderBody(text), [renderBody, text]);
5557
5558
  if (!content.trim() && !showCaret) return null;
5558
- return /* @__PURE__ */ jsxs11("div", { className: messageClassName, children: [
5559
- body,
5560
- showCaret && /* @__PURE__ */ jsx13(StreamingCaret, {})
5561
- ] });
5559
+ return (
5560
+ // A settled run arrives from a short blur; the LIVE run does not, because
5561
+ // its text is already being revealed character by character and animating
5562
+ // the container on top of that makes the paragraph shimmer while it types.
5563
+ // The distinction is what separates "the answer materialised" from "the
5564
+ // log was appended to".
5565
+ /* @__PURE__ */ jsxs11("div", { className: `${messageClassName}${streaming ? "" : " agent-stream-in"}`, children: [
5566
+ body,
5567
+ showCaret && /* @__PURE__ */ jsx13(StreamingCaret, {})
5568
+ ] })
5569
+ );
5562
5570
  }
5563
5571
  var COLLAPSE_TOOL_RUN_AT = 3;
5564
5572
  function isImportantTool(call) {
@@ -5722,10 +5730,18 @@ function AssistantMessageImpl({
5722
5730
  formatModelCost(msg, models) && /* @__PURE__ */ jsx13("span", { children: formatModelCost(msg, models) })
5723
5731
  ] }),
5724
5732
  reasoning && /* @__PURE__ */ jsxs11("details", { className: "mb-2 rounded-lg border-l-2 border-border bg-secondary px-3 py-2", open: !hasAnswerText, children: [
5725
- /* @__PURE__ */ jsx13("summary", { className: "cursor-pointer select-none text-xs font-medium text-muted-foreground", children: !hasAnswerText ? /* @__PURE__ */ jsxs11("span", { className: "animate-pulse", children: [
5726
- "Thinking",
5727
- thinkingSeconds >= 3 ? ` \xB7 ${thinkingSeconds}s` : "\u2026"
5728
- ] }) : thinkMsRef.current != null ? `Thought for ${Math.max(1, Math.round(thinkMsRef.current / 1e3))}s` : "Thought process" }),
5733
+ /* @__PURE__ */ jsx13("summary", { className: "cursor-pointer select-none text-xs font-medium text-muted-foreground", children: !hasAnswerText ? (
5734
+ // A pulse dims the whole word on a loop, which is the same cue a
5735
+ // skeleton placeholder uses it reads as "nothing here yet". A
5736
+ // sweep travels THROUGH the glyphs, which reads as work in
5737
+ // flight, and the elapsed seconds say how much. `essential`
5738
+ // because it is the only signal separating a working agent from
5739
+ // a stuck one, and reduced-motion still collapses its duration.
5740
+ /* @__PURE__ */ jsxs11("span", { className: "agent-shimmer", "data-motion": "essential", children: [
5741
+ "Thinking",
5742
+ thinkingSeconds >= 1 ? ` \xB7 ${thinkingSeconds}s` : "\u2026"
5743
+ ] })
5744
+ ) : thinkMsRef.current != null ? `Thought for ${Math.max(1, Math.round(thinkMsRef.current / 1e3))}s` : "Thought process" }),
5729
5745
  /* @__PURE__ */ jsx13("div", { ref: reasoningScrollRef, className: "mt-2 max-h-48 overflow-y-auto whitespace-pre-wrap text-[13px] leading-relaxed text-muted-foreground", children: reasoning })
5730
5746
  ] }),
5731
5747
  segments && segments.length > 0 ? /* @__PURE__ */ jsx13(
@@ -6031,4 +6047,4 @@ export {
6031
6047
  useThinkingSeconds,
6032
6048
  ChatMessages
6033
6049
  };
6034
- //# sourceMappingURL=chunk-UM6ODCLN.js.map
6050
+ //# sourceMappingURL=chunk-ZX5UT4HF.js.map