@tangle-network/agent-app 1.0.1 → 1.0.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.
@@ -2607,3 +2607,11 @@
2607
2607
  color: var(--editor-selection-foreground);
2608
2608
  }
2609
2609
  .agent-app-message-copy > * { font-size: inherit; }
2610
+
2611
+ /* Each admitted responder keeps its header in place while a sibling streams. */
2612
+ .agent-speaker-answer {
2613
+ height: min(16rem, 28dvh);
2614
+ overflow-y: auto;
2615
+ overscroll-behavior: contain;
2616
+ scrollbar-gutter: stable;
2617
+ }
@@ -11,10 +11,11 @@ export declare function StreamingCaret(): import("react").JSX.Element;
11
11
  * `toolCalls` not represented in `segments` (a partially-migrated producer that
12
12
  * set both) still render, so a tool row is never silently dropped. A settled
13
13
  * run of many tool calls collapses into one disclosure — see below. */
14
- export declare function SegmentedBody({ segments, msg, streaming, renderBody, approval, onToolCallClick, toolRenderers, messageClassName, }: {
14
+ export declare function SegmentedBody({ segments, msg, streaming, showCaret, renderBody, approval, onToolCallClick, toolRenderers, messageClassName, }: {
15
15
  segments: ChatMessageSegment[];
16
16
  msg: ChatUiMessage;
17
17
  streaming: boolean;
18
+ showCaret?: boolean;
18
19
  renderBody: (content: string) => ReactNode;
19
20
  approval?: ProposalApprovalHandlers;
20
21
  onToolCallClick?: (call: ChatToolCallInfo, message: ChatUiMessage) => void;
@@ -151,7 +151,7 @@ import {
151
151
  withoutRecordGridCreated,
152
152
  withoutRecordGridRemoved,
153
153
  withoutRecordGridUpdate
154
- } from "../chunk-IWEGCOQR.js";
154
+ } from "../chunk-DDYWECBU.js";
155
155
  import {
156
156
  useInfiniteScroll
157
157
  } from "../chunk-UHSUY6H6.js";
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * The reasoning row every agent app shows above an answer. While the model
3
3
  * reasons, its reasoning streams in live under "Thinking · 12s"; when the
4
- * answer starts the row collapses to "Thought for 12 seconds", and a click
5
- * opens it again. It renders nothing when the turn has no reasoning.
4
+ * answer starts its label becomes "Thought for 12 seconds". The disclosure
5
+ * stays where the reader left it until they toggle it. It renders nothing when the turn has no reasoning.
6
6
  *
7
7
  * The props are a `ChatReasoningState` (`./chat-stream`): spread the state the
8
8
  * stream keeps (`onReasoningState`), or a saved message's
@@ -24,11 +24,11 @@ export interface ReasoningRowProps {
24
24
  endedAt?: number;
25
25
  /** The model is still reasoning. Defaults to true while `startedAt` is set and `endedAt` is not. */
26
26
  thinking?: boolean;
27
- /** Open a settled row. Default false: once thinking ends the row is collapsed until the reader opens it. */
27
+ /** Open a saved row. Live reasoning stays open until the reader closes it. */
28
28
  defaultOpen?: boolean;
29
29
  /** Render the reasoning text. Default: the shared markdown renderer. */
30
30
  renderText?: (text: string) => ReactNode;
31
31
  className?: string;
32
32
  }
33
- /** The model's reasoning for one message: live while it thinks, collapsed once it answers. */
33
+ /** Live reasoning retains its geometry; saved reasoning starts collapsed. */
34
34
  export declare function ReasoningRow({ text, startedAt, endedAt, thinking: thinkingProp, defaultOpen, renderText, className, }: ReasoningRowProps): import("react").JSX.Element | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "packageManager": "pnpm@11.28.8",
5
5
  "description": "Build agent applications with typed chat, tools, sandboxes, integrations, billing, and evaluation.",
6
6
  "keywords": [