@lumerahq/ui 0.19.6 → 0.20.0-dev.1
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/CHANGELOG.md +44 -0
- package/README.md +31 -16
- package/dist/{RecordSheet-YYdAQo89.js → RecordSheet-Cq027sFr.js} +1358 -750
- package/dist/components/agent-chat/ActivityStrip.d.ts +6 -1
- package/dist/components/agent-chat/ActivityStrip.d.ts.map +1 -1
- package/dist/components/agent-chat/AgentChat.d.ts +1 -1
- package/dist/components/agent-chat/AgentChat.d.ts.map +1 -1
- package/dist/components/agent-chat/AgentChatComposer.d.ts +8 -0
- package/dist/components/agent-chat/AgentChatComposer.d.ts.map +1 -0
- package/dist/components/agent-chat/AgentChatEmptyState.d.ts +9 -0
- package/dist/components/agent-chat/AgentChatEmptyState.d.ts.map +1 -0
- package/dist/components/agent-chat/AgentChatHeader.d.ts +4 -0
- package/dist/components/agent-chat/AgentChatHeader.d.ts.map +1 -0
- package/dist/components/agent-chat/AgentChatToast.d.ts +5 -0
- package/dist/components/agent-chat/AgentChatToast.d.ts.map +1 -0
- package/dist/components/agent-chat/AgentChatTranscript.d.ts +24 -0
- package/dist/components/agent-chat/AgentChatTranscript.d.ts.map +1 -0
- package/dist/components/agent-chat/AssistantTurn.d.ts +40 -0
- package/dist/components/agent-chat/AssistantTurn.d.ts.map +1 -0
- package/dist/components/agent-chat/DefaultContentBlock.d.ts +4 -0
- package/dist/components/agent-chat/DefaultContentBlock.d.ts.map +1 -0
- package/dist/components/agent-chat/Markdown.d.ts +2 -2
- package/dist/components/agent-chat/ReasoningLine.d.ts +10 -0
- package/dist/components/agent-chat/ReasoningLine.d.ts.map +1 -0
- package/dist/components/agent-chat/SystemMarker.d.ts +7 -0
- package/dist/components/agent-chat/SystemMarker.d.ts.map +1 -0
- package/dist/components/agent-chat/ToolStepsCard.d.ts +17 -0
- package/dist/components/agent-chat/ToolStepsCard.d.ts.map +1 -0
- package/dist/components/agent-chat/TurnStatus.d.ts +11 -0
- package/dist/components/agent-chat/TurnStatus.d.ts.map +1 -0
- package/dist/components/agent-chat/UserMessage.d.ts +4 -0
- package/dist/components/agent-chat/UserMessage.d.ts.map +1 -0
- package/dist/components/agent-chat/activity-utils.d.ts +35 -8
- package/dist/components/agent-chat/activity-utils.d.ts.map +1 -1
- package/dist/components/agent-chat/hooks/use-autosize-textarea.d.ts +4 -0
- package/dist/components/agent-chat/hooks/use-autosize-textarea.d.ts.map +1 -0
- package/dist/components/agent-chat/hooks/use-stick-to-bottom.d.ts +7 -0
- package/dist/components/agent-chat/hooks/use-stick-to-bottom.d.ts.map +1 -0
- package/dist/components/agent-chat/hooks/use-transient-toast.d.ts +7 -0
- package/dist/components/agent-chat/hooks/use-transient-toast.d.ts.map +1 -0
- package/dist/components/agent-chat/index.d.ts +2 -1
- package/dist/components/agent-chat/index.d.ts.map +1 -1
- package/dist/components/agent-chat/lumera-agent-transport.d.ts.map +1 -1
- package/dist/components/agent-chat/tool-renderers/ToolCallCard.d.ts +4 -1
- package/dist/components/agent-chat/tool-renderers/ToolCallCard.d.ts.map +1 -1
- package/dist/components/agent-chat/types.d.ts +98 -19
- package/dist/components/agent-chat/types.d.ts.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +22 -21
- package/dist/{highlighted-body-OFNGDK62-CC4-u9BC.js → highlighted-body-OFNGDK62-ByL2oaVl.js} +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-agent-chat.d.ts +6 -3
- package/dist/hooks/use-agent-chat.d.ts.map +1 -1
- package/dist/index.js +25 -24
- package/dist/mermaid-GHXKKRXX-BkfFnaMM.js +4 -0
- package/dist/ui.css +517 -59
- package/dist/{use-automation-run-BcXShLYo.js → use-automation-run-BaW82zqJ.js} +9 -4
- package/package.json +3 -2
- package/dist/mermaid-GHXKKRXX-BYF0ZrAE.js +0 -4
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import { AgentChatContentBlock } from './types';
|
|
2
|
+
/** @deprecated Since 0.20; see {@link ActivityStrip}. */
|
|
2
3
|
export interface ActivityStripItem {
|
|
3
4
|
/** A thinking, tool_call, or tool_call_args_progress block. */
|
|
4
5
|
block: AgentChatContentBlock;
|
|
5
6
|
/** Stable render key for the step. */
|
|
6
7
|
key: string;
|
|
7
8
|
}
|
|
9
|
+
/** @deprecated Since 0.20; see {@link ActivityStrip}. */
|
|
8
10
|
export interface ActivityStripProps {
|
|
9
11
|
items: ActivityStripItem[];
|
|
10
12
|
/** The strip belongs to the live tail of a streaming turn. */
|
|
11
13
|
isStreaming?: boolean;
|
|
12
14
|
className?: string;
|
|
13
15
|
}
|
|
16
|
+
/** @deprecated Since 0.20; AgentChat renders reasoning and tool steps itself. */
|
|
14
17
|
export declare function ActivityStrip({ items, isStreaming, className }: ActivityStripProps): import("react/jsx-runtime").JSX.Element;
|
|
15
18
|
/**
|
|
19
|
+
* @deprecated Since 0.20; see {@link ActivityStrip}.
|
|
20
|
+
*
|
|
16
21
|
* Collapsible reasoning block; auto-open and animated while streaming.
|
|
17
22
|
* Collapsed it is a single quiet text line — the dashed inset appears only
|
|
18
23
|
* when opened, so reasoning never reads as furniture in the transcript.
|
|
@@ -21,7 +26,7 @@ export declare function ThinkingBlock({ content, isStreaming }: {
|
|
|
21
26
|
content: string;
|
|
22
27
|
isStreaming?: boolean;
|
|
23
28
|
}): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
/** Transient "Preparing tool…" marker shown while streamed args assemble. */
|
|
29
|
+
/** @deprecated Since 0.20; see {@link ActivityStrip}. Transient "Preparing tool…" marker shown while streamed args assemble. */
|
|
25
30
|
export declare function ToolArgsProgress({ payload }: {
|
|
26
31
|
payload: unknown;
|
|
27
32
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActivityStrip.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/ActivityStrip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActivityStrip.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/ActivityStrip.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,qBAAqB,EAAqB,MAAM,SAAS,CAAC;AAExE,yDAAyD;AACzD,MAAM,WAAW,iBAAiB;IAChC,+DAA+D;IAC/D,KAAK,EAAE,qBAAqB,CAAC;IAC7B,sCAAsC;IACtC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,yDAAyD;AACzD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,8DAA8D;IAC9D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iFAAiF;AACjF,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,kBAAkB,2CA+ElF;AAeD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,2CAoBjG;AAED,gIAAgI;AAChI,wBAAgB,gBAAgB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,2CAQjE"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AgentChatMetadata, AgentChatProps } from './types';
|
|
2
|
-
export declare function AgentChat<TMeta extends AgentChatMetadata = AgentChatMetadata, TToolInput = unknown, TActionData = unknown>({ agentId, sessionId, agent, name, description, transport, initialMessages, initialPage, historyLimit, maxBufferedMessages, maxQueuedMessages, disabled, readOnly, watchdog, watchdogTimeoutMs, watchdogPollMs, discoveryPoll, className, labels: labelOverrides, features, renderers, onMessagesChange, onTurnComplete, onError, children, }: AgentChatProps<TMeta, TToolInput, TActionData>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function AgentChat<TMeta extends AgentChatMetadata = AgentChatMetadata, TToolInput = unknown, TActionData = unknown>({ agentId, sessionId, agent, name, description, transport, initialMessages, initialPage, historyLimit, maxBufferedMessages, maxQueuedMessages, disabled, readOnly, watchdog, watchdogTimeoutMs, watchdogPollMs, discoveryPoll, suggestions, composerChips, onNewChat, headerLeft, headerRight, webSearchDefault, accent, accentForeground, className, labels: labelOverrides, features, renderers, onMessagesChange, onTurnComplete, onError, children, }: AgentChatProps<TMeta, TToolInput, TActionData>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=AgentChat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentChat.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/AgentChat.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AgentChat.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/AgentChat.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAGV,iBAAiB,EACjB,cAAc,EAEf,MAAM,SAAS,CAAC;AAsBjB,wBAAgB,SAAS,CACvB,KAAK,SAAS,iBAAiB,GAAG,iBAAiB,EACnD,UAAU,GAAG,OAAO,EACpB,WAAW,GAAG,OAAO,EACrB,EACA,OAAO,EACP,SAAS,EACT,KAAK,EACL,IAAI,EACJ,WAAW,EACX,SAAS,EACT,eAAe,EACf,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,WAAW,EACX,aAAa,EACb,SAAS,EACT,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,MAAM,EACN,gBAAgB,EAChB,SAAS,EACT,MAAM,EAAE,cAAc,EACtB,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,OAAO,EACP,QAAQ,GACT,EAAE,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,WAAW,CAAC,2CA2LhD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AgentChatComposerRendererProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Default composer: one bordered box with pending-file chips, the textarea,
|
|
4
|
+
* and a toolbar (attach, Web chip, hint, send/stop). The border stays the same
|
|
5
|
+
* in every state; an in-flight turn adds a travelling accent trace along it.
|
|
6
|
+
*/
|
|
7
|
+
export declare function AgentChatComposer({ state, actions }: AgentChatComposerRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=AgentChatComposer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentChatComposer.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/AgentChatComposer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,8BAA8B,EAAwB,MAAM,SAAS,CAAC;AAIpF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,8BAA8B,2CA4GnF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface AgentChatEmptyStateProps {
|
|
2
|
+
name: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
suggestions?: string[];
|
|
5
|
+
onPick?: (prompt: string) => void;
|
|
6
|
+
}
|
|
7
|
+
/** First-run view: accent glow, agent identity, and suggested prompts. */
|
|
8
|
+
export declare function AgentChatEmptyState({ name, description, suggestions, onPick }: AgentChatEmptyStateProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=AgentChatEmptyState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentChatEmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/AgentChatEmptyState.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,0EAA0E;AAC1E,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,wBAAwB,2CAyCvG"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AgentChatHeaderRendererProps } from './types';
|
|
2
|
+
/** Default header: avatar with activity dot, name, subtitle, and session actions. */
|
|
3
|
+
export declare function AgentChatHeader({ name, description, avatarUrl, isWorking, onNewChat, isCompacting, labels, headerLeft, headerRight, }: AgentChatHeaderRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=AgentChatHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentChatHeader.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/AgentChatHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAE5D,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,WAAW,EACX,SAAS,EACT,SAAS,EACT,SAAS,EACT,YAAY,EACZ,MAAM,EACN,UAAU,EACV,WAAW,GACZ,EAAE,4BAA4B,2CAuC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentChatToast.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/AgentChatToast.tsx"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,kDAU/D"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AgentChatLabels, AgentChatRenderers, AgentChatTurn } from './types';
|
|
3
|
+
export interface AgentChatTranscriptProps {
|
|
4
|
+
turns: AgentChatTurn[];
|
|
5
|
+
isStreaming: boolean;
|
|
6
|
+
/** The runtime is compacting context inside the newest turn. */
|
|
7
|
+
isCompacting?: boolean;
|
|
8
|
+
isLoadingHistory: boolean;
|
|
9
|
+
canLoadEarlier: boolean;
|
|
10
|
+
isLoadingEarlier: boolean;
|
|
11
|
+
onLoadEarlier: () => void;
|
|
12
|
+
error: unknown;
|
|
13
|
+
onRetryHistory: () => void;
|
|
14
|
+
onRetryTurn?: (requestId: string) => void;
|
|
15
|
+
toolDetails?: boolean;
|
|
16
|
+
labels: Required<AgentChatLabels>;
|
|
17
|
+
renderers?: AgentChatRenderers;
|
|
18
|
+
/** Rendered when there are no turns yet (and history is not loading). */
|
|
19
|
+
emptyState: ReactNode;
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
/** Scrolling message list: turns in order, pinned to the newest while it streams. */
|
|
23
|
+
export declare function AgentChatTranscript({ turns, isStreaming, isCompacting, isLoadingHistory, canLoadEarlier, isLoadingEarlier, onLoadEarlier, error, onRetryHistory, onRetryTurn, toolDetails, labels, renderers, emptyState, children, }: AgentChatTranscriptProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=AgentChatTranscript.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentChatTranscript.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/AgentChatTranscript.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAInE,OAAO,KAAK,EAEV,eAAe,EAEf,kBAAkB,EAClB,aAAa,EACd,MAAM,SAAS,CAAC;AAGjB,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,gEAAgE;IAChE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,KAAK,EAAE,OAAO,CAAC;IACf,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAClC,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,yEAAyE;IACzE,UAAU,EAAE,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,qFAAqF;AACrF,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,KAAK,EACL,cAAc,EACd,WAAW,EACX,WAAW,EACX,MAAM,EACN,SAAS,EACT,UAAU,EACV,QAAQ,GACT,EAAE,wBAAwB,2CA2D1B"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { AgentChatBlockRendererProps, AgentChatContentBlock, AgentChatLabels, AgentChatMessage, AgentChatTurn } from './types';
|
|
3
|
+
export interface AssistantTurnProps {
|
|
4
|
+
turn: AgentChatTurn;
|
|
5
|
+
isStreaming: boolean;
|
|
6
|
+
/** `false` hides reasoning and tool steps, leaving only content. */
|
|
7
|
+
toolDetails?: boolean;
|
|
8
|
+
ContentBlock?: ComponentType<AgentChatBlockRendererProps>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Everything the agent produced for one request, in order: runs of activity
|
|
12
|
+
* collapse into a reasoning line plus a tool card, content renders as is.
|
|
13
|
+
* The turn's outcome is {@link TurnOutcome}, rendered by the transcript so
|
|
14
|
+
* custom message renderers get it too.
|
|
15
|
+
*/
|
|
16
|
+
export declare function AssistantTurn({ turn, isStreaming, toolDetails, ContentBlock }: AssistantTurnProps): import("react/jsx-runtime").JSX.Element | null;
|
|
17
|
+
export type TurnOutcomeKind = 'compacting' | 'working' | 'failed';
|
|
18
|
+
/**
|
|
19
|
+
* What closes the assistant column, if anything: a compacting or working line
|
|
20
|
+
* while the turn is active and nothing is on screen yet, or the error block
|
|
21
|
+
* once it failed or was interrupted. Stopped turns show under the user bubble.
|
|
22
|
+
*/
|
|
23
|
+
export declare function turnOutcome(status: AgentChatTurn['status'], hasOutput: boolean, isCompacting: boolean): TurnOutcomeKind | null;
|
|
24
|
+
/** Whether the agent has put anything visible on screen for this turn. */
|
|
25
|
+
export declare function turnHasOutput(turn: AgentChatTurn, toolDetails?: boolean, perMessage?: boolean): boolean;
|
|
26
|
+
export declare function TurnOutcome({ kind, turn, labels, onRetry, }: {
|
|
27
|
+
kind: TurnOutcomeKind;
|
|
28
|
+
turn: AgentChatTurn;
|
|
29
|
+
labels: Required<AgentChatLabels>;
|
|
30
|
+
onRetry?: (requestId: string) => void;
|
|
31
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare function normalizedBlocks(message: Pick<AgentChatMessage, 'blocks' | 'content'>): AgentChatContentBlock[];
|
|
33
|
+
export declare function blockKey(block: AgentChatContentBlock, index: number): string;
|
|
34
|
+
/** Per-message assistant rendering for hosts that override `AssistantMessage`/`ContentBlock`. */
|
|
35
|
+
export declare function AssistantMessage({ message, isStreaming, ContentBlock, }: {
|
|
36
|
+
message: AgentChatMessage;
|
|
37
|
+
isStreaming?: boolean;
|
|
38
|
+
ContentBlock?: ComponentType<AgentChatBlockRendererProps>;
|
|
39
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
//# sourceMappingURL=AssistantTurn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssistantTurn.d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AAgB,EAAE,QAAQ,GAAG,SAAS,CAAC,GAAG,qBAAqB,EAAE,CAG/G;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAM5E;AAED,iGAAiG;AACjG,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,WAAW,EACX,YAAY,GACb,EAAE;IACD,OAAO,EAAE,gBAAgB,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,aAAa,CAAC,2BAA2B,CAAC,CAAC;CAC3D,2CAeA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AgentChatBlockRendererProps } from './types';
|
|
2
|
+
/** Default rendering for one content block. Activity blocks fall back to their single-step look. */
|
|
3
|
+
export declare function DefaultContentBlock({ block, isStreaming }: AgentChatBlockRendererProps): import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
//# sourceMappingURL=DefaultContentBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultContentBlock.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/DefaultContentBlock.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAmB,2BAA2B,EAA4B,MAAM,SAAS,CAAC;AAEtG,oGAAoG;AACpG,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,2BAA2B,kDA4BtF"}
|
|
@@ -4,8 +4,8 @@ export interface AgentChatMarkdownProps {
|
|
|
4
4
|
isStreaming?: boolean;
|
|
5
5
|
/**
|
|
6
6
|
* 'prose' (default) renders document-scale typography via Tailwind prose;
|
|
7
|
-
* 'chat' renders the
|
|
8
|
-
*
|
|
7
|
+
* 'chat' renders the conversation scale the default transcript uses
|
|
8
|
+
* (see {@link chatMarkdownComponents}).
|
|
9
9
|
*/
|
|
10
10
|
variant?: 'prose' | 'chat';
|
|
11
11
|
className?: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AgentChatThinkingBlock } from './types';
|
|
2
|
+
export interface ReasoningLineProps {
|
|
3
|
+
blocks: AgentChatThinkingBlock[];
|
|
4
|
+
isStreaming?: boolean;
|
|
5
|
+
/** Optional label override; by default the label follows the reasoning state. */
|
|
6
|
+
label?: string;
|
|
7
|
+
}
|
|
8
|
+
/** One quiet line per run of reasoning; opens to the full thought text. */
|
|
9
|
+
export declare function ReasoningLine({ blocks, isStreaming, label }: ReasoningLineProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=ReasoningLine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReasoningLine.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/ReasoningLine.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,sBAAsB,EAAE,CAAC;IACjC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,2EAA2E;AAC3E,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,WAAmB,EAAE,KAAK,EAAE,EAAE,kBAAkB,2CAoCvF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AgentChatMessageRendererProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Hairline row for system events. Compaction gets the designed
|
|
4
|
+
* "Compacted · …" marker plus a collapsible recap; other rows show their text.
|
|
5
|
+
*/
|
|
6
|
+
export declare function SystemMarker({ message }: AgentChatMessageRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=SystemMarker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SystemMarker.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/SystemMarker.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAI7D;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,EAAE,6BAA6B,2CAyBtE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AgentChatToolCall } from './types';
|
|
2
|
+
export interface ToolStepsCardProps {
|
|
3
|
+
toolCalls: AgentChatToolCall[];
|
|
4
|
+
/** Name of a tool whose arguments are still streaming in, shown as a pending step. */
|
|
5
|
+
preparingTool?: string | null;
|
|
6
|
+
/** The card belongs to the live tail of a streaming turn. */
|
|
7
|
+
isStreaming?: boolean;
|
|
8
|
+
/** The turn is over (completed, failed, interrupted, or stopped): a step still marked running reads as done, no spinner. */
|
|
9
|
+
settled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* One card per run of tool steps: a status header ("Working…" then the last
|
|
13
|
+
* step's label), the step count, and rows that expand into each step's detail.
|
|
14
|
+
* Open while running, collapsed once done, unless the user toggled it.
|
|
15
|
+
*/
|
|
16
|
+
export declare function ToolStepsCard({ toolCalls, preparingTool, isStreaming, settled }: ToolStepsCardProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=ToolStepsCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolStepsCard.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/ToolStepsCard.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,sFAAsF;IACtF,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,6DAA6D;IAC7D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4HAA4H;IAC5H,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,WAAmB,EAAE,OAAe,EAAE,EAAE,kBAAkB,2CAyDnH"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Failed turn: accent-tinted block with the error and an in-place Retry. */
|
|
2
|
+
export declare function ErrorBlock({ message, retryLabel, onRetry, }: {
|
|
3
|
+
message: string;
|
|
4
|
+
retryLabel: string;
|
|
5
|
+
onRetry?: () => void;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
/** Active turn before anything streamed in. */
|
|
8
|
+
export declare function WorkingLine({ label }: {
|
|
9
|
+
label: string;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=TurnStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TurnStatus.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/TurnStatus.tsx"],"names":[],"mappings":"AAEA,6EAA6E;AAC7E,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,UAAU,EACV,OAAO,GACR,EAAE;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,2CAQA;AAED,+CAA+C;AAC/C,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,2CAOvD"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AgentChatMessageRendererProps } from './types';
|
|
2
|
+
/** Right-aligned accent bubble with attached files above it and the turn's durable status (Queued, Stopped) below, as in Studio. */
|
|
3
|
+
export declare function UserMessage({ message, labels }: AgentChatMessageRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=UserMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserMessage.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/UserMessage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAE5E,oIAAoI;AACpI,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,6BAA6B,2CAkB7E"}
|
|
@@ -1,24 +1,51 @@
|
|
|
1
|
-
import { AgentChatContentBlock, AgentChatToolCall } from './types.js';
|
|
1
|
+
import { AgentChatContentBlock, AgentChatThinkingBlock, AgentChatToolCall } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Blocks that represent agent work-in-progress rather than content for the
|
|
4
4
|
* reader: reasoning, tool calls, and the streaming "preparing tool" marker.
|
|
5
5
|
*/
|
|
6
6
|
export declare function isActivityBlock(block: AgentChatContentBlock): boolean;
|
|
7
|
+
/** One tool step as the card renders it: a label and an optional mono detail. */
|
|
8
|
+
export interface ToolStepLabel {
|
|
9
|
+
label: string;
|
|
10
|
+
detail?: string;
|
|
11
|
+
}
|
|
7
12
|
/**
|
|
8
|
-
*
|
|
9
|
-
* "
|
|
13
|
+
* Split a renderer summary into the row's label and right-aligned detail:
|
|
14
|
+
* "📊 Queried Customers · 3 rows" → { label: "Queried Customers", detail: "3 rows" }.
|
|
15
|
+
* Only the last " · " separates the detail so labels may contain the glyph.
|
|
10
16
|
*/
|
|
11
|
-
export declare function
|
|
12
|
-
/** Clip a label for the one-line
|
|
17
|
+
export declare function splitStepLabel(summary: string): ToolStepLabel;
|
|
18
|
+
/** Clip a label for the one-line card header without breaking mid-word badly. */
|
|
13
19
|
export declare function clipLabel(label: string, max?: number): string;
|
|
14
20
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
21
|
+
* The card header once every step settled: the last step's label, since the
|
|
22
|
+
* final action ("Created record in Tickets") is what the turn accomplished.
|
|
17
23
|
*/
|
|
18
|
-
export declare function
|
|
24
|
+
export declare function toolCardTitle(labels: ToolStepLabel[]): string;
|
|
25
|
+
/** "3 steps" / "1 step". */
|
|
26
|
+
export declare function stepCountLabel(count: number): string;
|
|
19
27
|
/**
|
|
20
28
|
* Wall-clock duration of a run of tool calls, in whole seconds, when every
|
|
21
29
|
* call carries timestamps and the run is finished. Null when unknowable.
|
|
22
30
|
*/
|
|
23
31
|
export declare function activityDurationSeconds(toolCalls: AgentChatToolCall[]): number | null;
|
|
32
|
+
/**
|
|
33
|
+
* Seconds spent reasoning across a run of thinking blocks, from the live
|
|
34
|
+
* stream's stamps. Null for history rows, which carry no timing.
|
|
35
|
+
*/
|
|
36
|
+
export declare function thinkingDurationSeconds(blocks: AgentChatThinkingBlock[]): number | null;
|
|
37
|
+
/** "Thinking…" while live, "Thought for 3s" when timed, "Reasoning" otherwise. */
|
|
38
|
+
export declare function reasoningLabel(seconds: number | null, isStreaming: boolean): string;
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated Since 0.20; only the deprecated ActivityStrip uses it. Run-length
|
|
41
|
+
* encode consecutive duplicate labels: ["Read a.md", "Read a.md", "Queried"]
|
|
42
|
+
* → ["Read a.md ×2", "Queried"].
|
|
43
|
+
*/
|
|
44
|
+
export declare function encodeActivityLabels(labels: string[]): string[];
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Since 0.20; only the deprecated ActivityStrip uses it. Compose
|
|
47
|
+
* the collapsed summary line from per-step labels: dedupe with ×N, show the
|
|
48
|
+
* first `shown` entries, count the rest.
|
|
49
|
+
*/
|
|
50
|
+
export declare function summarizeActivityLabels(labels: string[], shown?: number): string;
|
|
24
51
|
//# sourceMappingURL=activity-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-utils.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/activity-utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"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|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
/** Grow a textarea with its content, scrolling once it passes `maxHeight`. */
|
|
3
|
+
export declare function useAutosizeTextarea(ref: RefObject<HTMLTextAreaElement | null>, value: string, maxHeight: number): void;
|
|
4
|
+
//# sourceMappingURL=use-autosize-textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-autosize-textarea.d.ts","sourceRoot":"","sources":["../../../../src/components/agent-chat/hooks/use-autosize-textarea.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,OAAO,CAAC;AAExD,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,QAS/G"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Keep a scroll viewport pinned to its end while `signal` changes, unless the
|
|
4
|
+
* user scrolled up to read. Attach the returned handler to `onScroll`.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useStickToBottom(ref: RefObject<HTMLElement | null>, signal: unknown): () => void;
|
|
7
|
+
//# sourceMappingURL=use-stick-to-bottom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-stick-to-bottom.d.ts","sourceRoot":"","sources":["../../../../src/components/agent-chat/hooks/use-stick-to-bottom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAkC,MAAM,OAAO,CAAC;AAIvE;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,CAqBhG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const TOAST_MS = 1800;
|
|
2
|
+
/** One auto-dismissing toast at a time; showing a new one restarts the timer. */
|
|
3
|
+
export declare function useTransientToast(durationMs?: number): {
|
|
4
|
+
toast: string | null;
|
|
5
|
+
show: (text: string) => void;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=use-transient-toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-transient-toast.d.ts","sourceRoot":"","sources":["../../../../src/components/agent-chat/hooks/use-transient-toast.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,OAAQ,CAAC;AAE9B,iFAAiF;AACjF,wBAAgB,iBAAiB,CAAC,UAAU,SAAW,GAAG;IAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,CAwB/G"}
|
|
@@ -3,6 +3,7 @@ export { AgentChat } from './AgentChat';
|
|
|
3
3
|
export { ArtifactCard } from './ArtifactCard';
|
|
4
4
|
export { activityDurationSeconds, clipLabel, encodeActivityLabels, isActivityBlock, summarizeActivityLabels, } from './activity-utils';
|
|
5
5
|
export { chatMarkdownComponents } from './chat-markdown';
|
|
6
|
+
export { DefaultContentBlock } from './DefaultContentBlock';
|
|
6
7
|
export type { LumeraAgentChatTransportOptions } from './lumera-agent-transport';
|
|
7
8
|
export { createLumeraAgentChatTransport } from './lumera-agent-transport';
|
|
8
9
|
export { AgentChatMarkdown, type AgentChatMarkdownProps } from './Markdown';
|
|
@@ -10,5 +11,5 @@ export { isSessionActive, parseSessionActivity, type SessionActivity, } from './
|
|
|
10
11
|
export { defaultToolRenderers, findRenderer, getCollectionMap, humanizeCollectionName, isExploratoryToolCallError, warmCollectionCache, } from './tool-renderers';
|
|
11
12
|
export { ToolCallCard, type ToolCallCardProps, ToolRenderersProvider, useToolRenderers, } from './tool-renderers/ToolCallCard';
|
|
12
13
|
export type { CollectionMap as AgentChatCollectionMap, ToolCallLike as AgentChatToolCallLike, ToolRenderer as AgentChatToolRenderer, } from './tool-renderers/types';
|
|
13
|
-
export type { AgentChatAbortRequest, AgentChatAction, AgentChatActionBlock, AgentChatActiveStatus, AgentChatAgentProfile, AgentChatAgentRequest, AgentChatAppearance, AgentChatBlockRendererProps, AgentChatCompactionBlock, AgentChatComposerActions, AgentChatComposerRendererProps, AgentChatComposerState, AgentChatContentBlock, AgentChatCustomBlock, AgentChatFeatureFlags, AgentChatFile, AgentChatFileBlock, AgentChatHeaderRendererProps, AgentChatHistoryPage, AgentChatHistoryRequest, AgentChatHistoryResult, AgentChatID, AgentChatInfoBlock, AgentChatLabels, AgentChatLoadEarlierRequest, AgentChatMessage, AgentChatMessageRendererProps, AgentChatMessageRole, AgentChatMetadata, AgentChatOperationStatus, AgentChatPendingFile, AgentChatPhase, AgentChatProps, AgentChatRenameSessionRequest, AgentChatRenderers, AgentChatResizableWidthOptions, AgentChatRetryRequest, AgentChatSession, AgentChatSessionListRequest, AgentChatSessionListResult, AgentChatStreamEvent, AgentChatStreamHandlers, AgentChatSubmitInput, AgentChatSubmitResult, AgentChatSubscription, AgentChatTerminalStatus, AgentChatTextBlock, AgentChatThinkingBlock, AgentChatTokenUsage, AgentChatToolCall, AgentChatToolCallBlock, AgentChatTransport, AgentChatTurn, AgentChatTurnStatus, } from './types';
|
|
14
|
+
export type { AgentChatAbortRequest, AgentChatAction, AgentChatActionBlock, AgentChatActiveStatus, AgentChatAgentProfile, AgentChatAgentRequest, AgentChatAppearance, AgentChatBlockRendererProps, AgentChatCompactionBlock, AgentChatComposerActions, AgentChatComposerChip, AgentChatComposerRendererProps, AgentChatComposerState, AgentChatContentBlock, AgentChatCustomBlock, AgentChatFeatureFlags, AgentChatFile, AgentChatFileBlock, AgentChatHeaderRendererProps, AgentChatHistoryPage, AgentChatHistoryRequest, AgentChatHistoryResult, AgentChatID, AgentChatInfoBlock, AgentChatLabels, AgentChatLoadEarlierRequest, AgentChatMessage, AgentChatMessageRendererProps, AgentChatMessageRole, AgentChatMetadata, AgentChatOperationStatus, AgentChatPendingFile, AgentChatPhase, AgentChatProps, AgentChatRenameSessionRequest, AgentChatRenderers, AgentChatResizableWidthOptions, AgentChatRetryRequest, AgentChatSession, AgentChatSessionListRequest, AgentChatSessionListResult, AgentChatStreamEvent, AgentChatStreamHandlers, AgentChatSubmitInput, AgentChatSubmitResult, AgentChatSubscription, AgentChatTerminalStatus, AgentChatTextBlock, AgentChatThinkingBlock, AgentChatTokenUsage, AgentChatToolCall, AgentChatToolCallBlock, AgentChatTransport, AgentChatTurn, AgentChatTurnStatus, } from './types';
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,oBAAoB,EACpB,eAAe,EACf,uBAAuB,GACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,KAAK,eAAe,GACrB,MAAM,oBAA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ourceRoot":"","sources":["../../../src/components/agent-chat/lumera-agent-transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAA0D,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG9G,OAAO,KAAK,EASV,iBAAiB,EAOjB,oBAAoB,EAIpB,kBAAkB,EAEnB,MAAM,YAAY,CAAC;AAQpB,MAAM,WAAW,+BAA+B;IAC9C,+DAA+D;IAC/D,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpG,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;IAC9D,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,0BAA0B,KAAK,YAAY,CAAC;CACzF;AAED,KAAK,0BAA0B,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"lumera-agent-transport.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/lumera-agent-transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAA0D,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG9G,OAAO,KAAK,EASV,iBAAiB,EAOjB,oBAAoB,EAIpB,kBAAkB,EAEnB,MAAM,YAAY,CAAC;AAQpB,MAAM,WAAW,+BAA+B;IAC9C,+DAA+D;IAC/D,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpG,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;IAC9D,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,0BAA0B,KAAK,YAAY,CAAC;CACzF;AAED,KAAK,0BAA0B,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAsGxE,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,+BAA+B,GACvC,kBAAkB,CAAC,iBAAiB,EAAE,OAAO,EAAE,OAAO,CAAC,CAgMzD"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { ToolStepLabel } from '../activity-utils';
|
|
2
3
|
import { AgentChatToolCall } from '../types';
|
|
3
4
|
import { ToolRenderer } from './types';
|
|
4
5
|
/** Provides consumer-supplied tool renderers to nested ToolCallCards. */
|
|
@@ -12,6 +13,8 @@ export interface ToolCallCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
12
13
|
toolCall: AgentChatToolCall;
|
|
13
14
|
/** Explicit overrides; defaults to the nearest ToolRenderersProvider value. */
|
|
14
15
|
renderers?: ToolRenderer[];
|
|
16
|
+
/** Pre-computed label; the card derives one from the renderer when omitted. */
|
|
17
|
+
label?: ToolStepLabel;
|
|
15
18
|
}
|
|
16
|
-
export declare function ToolCallCard({ toolCall, renderers, className, ...props }: ToolCallCardProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function ToolCallCard({ toolCall, renderers, label, className, ...props }: ToolCallCardProps): import("react/jsx-runtime").JSX.Element;
|
|
17
20
|
//# sourceMappingURL=ToolCallCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolCallCard.d.ts","sourceRoot":"","sources":["../../../../src/components/agent-chat/tool-renderers/ToolCallCard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ToolCallCard.d.ts","sourceRoot":"","sources":["../../../../src/components/agent-chat/tool-renderers/ToolCallCard.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAiB,KAAK,cAAc,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAC;AAErH,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAO5C,yEAAyE;AACzE,wBAAgB,qBAAqB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAEjH;AAED,8EAA8E;AAC9E,wBAAgB,gBAAgB,IAAI,YAAY,EAAE,GAAG,SAAS,CAE7D;AAED,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACvE,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,+EAA+E;IAC/E,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,+EAA+E;IAC/E,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CA0FlG"}
|