@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.
- package/dist/assistant/index.js +1 -1
- package/dist/{chunk-IWEGCOQR.js → chunk-DDYWECBU.js} +79 -75
- package/dist/chunk-DDYWECBU.js.map +1 -0
- package/dist/theme/tokens.css +8 -0
- package/dist/web-react/chat-message-body.d.ts +2 -1
- package/dist/web-react/index.js +1 -1
- package/dist/web-react/reasoning-row.d.ts +4 -4
- package/package.json +1 -1
- package/dist/chunk-IWEGCOQR.js.map +0 -1
package/dist/theme/tokens.css
CHANGED
|
@@ -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;
|
package/dist/web-react/index.js
CHANGED
|
@@ -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
|
|
5
|
-
*
|
|
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
|
|
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
|
-
/**
|
|
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