@tangle-network/agent-app 0.44.35 → 0.44.37

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.
@@ -3,7 +3,7 @@ import {
3
3
  ChatMessages,
4
4
  ModelPicker,
5
5
  ProviderLogo
6
- } from "../chunk-AX63276Q.js";
6
+ } from "../chunk-LNRDDXME.js";
7
7
  import "../chunk-FBVLEGEG.js";
8
8
  import "../chunk-YTMKRL3L.js";
9
9
  import "../chunk-GEYACSFW.js";
@@ -3322,12 +3322,13 @@ function SegmentText({
3322
3322
  content,
3323
3323
  streaming,
3324
3324
  showCaret,
3325
- renderBody
3325
+ renderBody,
3326
+ messageClassName
3326
3327
  }) {
3327
3328
  const text = useSmoothText(content, streaming);
3328
3329
  const body = useMemo7(() => renderBody(text), [renderBody, text]);
3329
3330
  if (!content.trim() && !showCaret) return null;
3330
- return /* @__PURE__ */ jsxs11("div", { className: "text-base leading-[1.75]", children: [
3331
+ return /* @__PURE__ */ jsxs11("div", { className: messageClassName, children: [
3331
3332
  body,
3332
3333
  showCaret && /* @__PURE__ */ jsx13(StreamingCaret, {})
3333
3334
  ] });
@@ -3343,7 +3344,8 @@ function SegmentedBody({
3343
3344
  renderBody,
3344
3345
  approval,
3345
3346
  onToolCallClick,
3346
- toolRenderers
3347
+ toolRenderers,
3348
+ messageClassName
3347
3349
  }) {
3348
3350
  const lastIndex = segments.length - 1;
3349
3351
  const segmentToolIds = new Set(
@@ -3383,7 +3385,8 @@ function SegmentedBody({
3383
3385
  content: g.content,
3384
3386
  streaming: streaming && g.index === lastIndex,
3385
3387
  showCaret: streaming && g.index === lastIndex,
3386
- renderBody
3388
+ renderBody,
3389
+ messageClassName
3387
3390
  },
3388
3391
  `text-${g.index}`
3389
3392
  ) : !streaming && g.calls.length >= COLLAPSE_TOOL_RUN_AT && !g.calls.some(isImportantTool) ? /* @__PURE__ */ jsxs11(
@@ -3418,7 +3421,8 @@ function AssistantMessageImpl({
3418
3421
  renderExtras,
3419
3422
  durableCards,
3420
3423
  resolveAttachmentUrl,
3421
- workProductCards
3424
+ workProductCards,
3425
+ messageClassName
3422
3426
  }) {
3423
3427
  const content = useSmoothText(msg.content, streaming);
3424
3428
  const reasoning = useSmoothText(msg.reasoning ?? "", streaming);
@@ -3464,10 +3468,11 @@ function AssistantMessageImpl({
3464
3468
  renderBody,
3465
3469
  approval,
3466
3470
  onToolCallClick,
3467
- toolRenderers
3471
+ toolRenderers,
3472
+ messageClassName
3468
3473
  }
3469
3474
  ) : /* @__PURE__ */ jsxs11(Fragment6, { children: [
3470
- /* @__PURE__ */ jsxs11("div", { className: "text-base leading-[1.75]", children: [
3475
+ /* @__PURE__ */ jsxs11("div", { className: messageClassName, children: [
3471
3476
  body,
3472
3477
  streaming && content && !msg.toolCalls?.length && /* @__PURE__ */ jsx13(StreamingCaret, {})
3473
3478
  ] }),
@@ -3554,6 +3559,7 @@ function StreamErrorRow({ message, onRetry }) {
3554
3559
  }
3555
3560
  function ChatMessages({
3556
3561
  messages,
3562
+ messageSize = "default",
3557
3563
  models = [],
3558
3564
  renderMarkdown,
3559
3565
  renderExtras,
@@ -3572,6 +3578,7 @@ function ChatMessages({
3572
3578
  resolveAttachmentUrl,
3573
3579
  workProductCards
3574
3580
  }) {
3581
+ const messageClassName = messageSize === "large" ? "agent-app-message-copy text-[17px] leading-[1.75]" : "agent-app-message-copy text-base leading-[1.75]";
3575
3582
  const renderBody = useMemo7(
3576
3583
  () => renderMarkdown ?? ((content) => /* @__PURE__ */ jsx13("p", { className: "whitespace-pre-wrap", children: content })),
3577
3584
  [renderMarkdown]
@@ -3589,7 +3596,13 @@ function ChatMessages({
3589
3596
  messages.map(
3590
3597
  (msg) => msg.role === "user" ? /* @__PURE__ */ jsx13("div", { className: "mx-auto w-full max-w-3xl px-6 py-3", children: /* @__PURE__ */ jsxs11("div", { className: "ml-auto w-fit max-w-[85%]", children: [
3591
3598
  /* @__PURE__ */ jsx13("p", { className: "mb-1 text-right text-[11px] font-semibold uppercase tracking-wide text-muted-foreground", children: userLabel }),
3592
- /* @__PURE__ */ jsx13("div", { className: "rounded-2xl rounded-tr-md bg-primary/10 px-4 py-2.5 text-base leading-relaxed", children: /* @__PURE__ */ jsx13("p", { className: "whitespace-pre-wrap", children: msg.content }) }),
3599
+ /* @__PURE__ */ jsx13(
3600
+ "div",
3601
+ {
3602
+ className: `rounded-2xl rounded-tr-md bg-primary/10 px-4 py-2.5 ${messageClassName}`,
3603
+ children: /* @__PURE__ */ jsx13("p", { className: "whitespace-pre-wrap", children: msg.content })
3604
+ }
3605
+ ),
3593
3606
  resolveAttachmentUrl && attachmentPartsFromMessageParts(msg.parts).length > 0 && /* @__PURE__ */ jsx13("div", { className: "mt-1.5", children: /* @__PURE__ */ jsx13(
3594
3607
  MessageAttachments,
3595
3608
  {
@@ -3612,7 +3625,8 @@ function ChatMessages({
3612
3625
  renderExtras,
3613
3626
  durableCards,
3614
3627
  resolveAttachmentUrl,
3615
- workProductCards
3628
+ workProductCards,
3629
+ messageClassName
3616
3630
  },
3617
3631
  msg.id
3618
3632
  )
@@ -3698,4 +3712,4 @@ export {
3698
3712
  useThinkingSeconds,
3699
3713
  ChatMessages
3700
3714
  };
3701
- //# sourceMappingURL=chunk-AX63276Q.js.map
3715
+ //# sourceMappingURL=chunk-LNRDDXME.js.map