@invergent/agent-chat-react 1.5.3 → 1.5.4
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/artifact-chart-X53FKRDZ.js +153 -0
- package/dist/artifact-chart-X53FKRDZ.js.map +1 -0
- package/dist/chunk-QSC4UIVT.js +11 -0
- package/dist/chunk-QSC4UIVT.js.map +1 -0
- package/dist/index.cjs +463 -172
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.js +210 -115
- package/dist/index.js.map +1 -1
- package/package.json +3 -6
- package/dist/artifact-chart-7J6GOR4M.js +0 -88
- package/dist/artifact-chart-7J6GOR4M.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -106,6 +106,7 @@ interface AgentChatRuntimeEvent {
|
|
|
106
106
|
interface AgentChatState {
|
|
107
107
|
messages: AgentChatMessage[];
|
|
108
108
|
isRunning: boolean;
|
|
109
|
+
isLoadingHistory: boolean;
|
|
109
110
|
tokenUsage: AgentChatTokenUsage;
|
|
110
111
|
retryIndicator: AgentChatRetryIndicator | null;
|
|
111
112
|
lastEventId: number;
|
|
@@ -132,7 +133,7 @@ interface AgentChatTableArtifactSpec {
|
|
|
132
133
|
caption?: string | null;
|
|
133
134
|
}
|
|
134
135
|
interface AgentChatChartArtifactSpec {
|
|
135
|
-
|
|
136
|
+
chart_js: Record<string, unknown>;
|
|
136
137
|
caption?: string | null;
|
|
137
138
|
}
|
|
138
139
|
interface AgentChatHtmlArtifactSpec {
|
|
@@ -311,6 +312,7 @@ interface AgentChatAdapter {
|
|
|
311
312
|
interface AgentChatRuntimeApi {
|
|
312
313
|
messages: AgentChatMessage[];
|
|
313
314
|
isRunning: boolean;
|
|
315
|
+
isLoadingHistory: boolean;
|
|
314
316
|
tokenUsage: AgentChatTokenUsage;
|
|
315
317
|
retryIndicator: AgentChatRetryIndicator | null;
|
|
316
318
|
send(content: string): Promise<void>;
|
|
@@ -381,9 +383,17 @@ interface SessionTreePanelProps {
|
|
|
381
383
|
sessionListLimit?: number;
|
|
382
384
|
/** Treat the root as hidden, so its children appear as top-level rows. */
|
|
383
385
|
hideRoot?: boolean;
|
|
386
|
+
/** Suppress the header row (icon + title + running count badge). */
|
|
387
|
+
hideHeader?: boolean;
|
|
388
|
+
/**
|
|
389
|
+
* Fetch the tenant's full session list via ``adapter.listSessions`` and
|
|
390
|
+
* merge it with the per-session tree. Off by default; the panel renders
|
|
391
|
+
* only the tree of ``sessionId`` unless this is set.
|
|
392
|
+
*/
|
|
393
|
+
loadList?: boolean;
|
|
384
394
|
onSessionSelect?: (sessionId: string) => void;
|
|
385
395
|
onSessionDelete?: (sessionId: string) => void;
|
|
386
396
|
}
|
|
387
|
-
declare function SessionTreePanel({ adapter, sessionId, activeSessionId, agentId, title, sessionListLimit, hideRoot, onSessionSelect, onSessionDelete, }: SessionTreePanelProps): react_jsx_runtime.JSX.Element | null;
|
|
397
|
+
declare function SessionTreePanel({ adapter, sessionId, activeSessionId, agentId, title, sessionListLimit, hideRoot, hideHeader, loadList, onSessionSelect, onSessionDelete, }: SessionTreePanelProps): react_jsx_runtime.JSX.Element | null;
|
|
388
398
|
|
|
389
399
|
export { AgentChat, type AgentChatAdapter, type AgentChatAdapterContextValue, AgentChatAdapterProvider, type AgentChatArtifactKind, type AgentChatArtifactMeta, type AgentChatArtifactPayload, type AgentChatChartArtifactSpec, type AgentChatClarifyAnswer, type AgentChatClarifyArgs, type AgentChatClarifyChoice, type AgentChatClarifyQuestion, type AgentChatErrorCategory, type AgentChatErrorInfo, type AgentChatEventStream, type AgentChatEventType, type AgentChatExpertFeedbackRating, type AgentChatHtmlArtifactSpec, type AgentChatMarkdownArtifactSpec, type AgentChatMessage, type AgentChatMessageStatus, type AgentChatProps, type AgentChatRole, type AgentChatRuntimeApi, type AgentChatRuntimeEvent, type AgentChatSession, type AgentChatSessionList, type AgentChatSessionTree, type AgentChatSessionTreeNode, type AgentChatSlashCommand, type AgentChatSseMessageEvent, type AgentChatState, type AgentChatSvgArtifactSpec, type AgentChatSystemKind, type AgentChatTableArtifactSpec, type AgentChatTokenUsage, type AgentChatToolCallInfo, type AgentChatWorkspaceEntry, type AgentChatWorkspaceFile, type AgentChatWorkspaceTree, type AgentChatWorkspaceUpload, type ArtifactKind, type ArtifactPayload, type ChartArtifactSpec, type ChatMessage, type ClarifyAnswer, type ClarifyArgs, type ClarifyChoice, type ClarifyQuestion, type ErrorInfo, type HtmlArtifactSpec, type MarkdownArtifactSpec, MessageResponse, type MessageResponseProps, type RetryIndicator, type SessionTree, type SessionTreeNode, SessionTreePanel, type SessionTreePanelProps, type SvgArtifactSpec, type TableArtifactSpec, type TokenUsage, type ToolCallInfo, type WorkspaceEntry, type WorkspaceFile, type WorkspaceTree, type WorkspaceUpload, useAgentChatAdapterContext, useAgentChatRuntime };
|
package/dist/index.d.ts
CHANGED
|
@@ -106,6 +106,7 @@ interface AgentChatRuntimeEvent {
|
|
|
106
106
|
interface AgentChatState {
|
|
107
107
|
messages: AgentChatMessage[];
|
|
108
108
|
isRunning: boolean;
|
|
109
|
+
isLoadingHistory: boolean;
|
|
109
110
|
tokenUsage: AgentChatTokenUsage;
|
|
110
111
|
retryIndicator: AgentChatRetryIndicator | null;
|
|
111
112
|
lastEventId: number;
|
|
@@ -132,7 +133,7 @@ interface AgentChatTableArtifactSpec {
|
|
|
132
133
|
caption?: string | null;
|
|
133
134
|
}
|
|
134
135
|
interface AgentChatChartArtifactSpec {
|
|
135
|
-
|
|
136
|
+
chart_js: Record<string, unknown>;
|
|
136
137
|
caption?: string | null;
|
|
137
138
|
}
|
|
138
139
|
interface AgentChatHtmlArtifactSpec {
|
|
@@ -311,6 +312,7 @@ interface AgentChatAdapter {
|
|
|
311
312
|
interface AgentChatRuntimeApi {
|
|
312
313
|
messages: AgentChatMessage[];
|
|
313
314
|
isRunning: boolean;
|
|
315
|
+
isLoadingHistory: boolean;
|
|
314
316
|
tokenUsage: AgentChatTokenUsage;
|
|
315
317
|
retryIndicator: AgentChatRetryIndicator | null;
|
|
316
318
|
send(content: string): Promise<void>;
|
|
@@ -381,9 +383,17 @@ interface SessionTreePanelProps {
|
|
|
381
383
|
sessionListLimit?: number;
|
|
382
384
|
/** Treat the root as hidden, so its children appear as top-level rows. */
|
|
383
385
|
hideRoot?: boolean;
|
|
386
|
+
/** Suppress the header row (icon + title + running count badge). */
|
|
387
|
+
hideHeader?: boolean;
|
|
388
|
+
/**
|
|
389
|
+
* Fetch the tenant's full session list via ``adapter.listSessions`` and
|
|
390
|
+
* merge it with the per-session tree. Off by default; the panel renders
|
|
391
|
+
* only the tree of ``sessionId`` unless this is set.
|
|
392
|
+
*/
|
|
393
|
+
loadList?: boolean;
|
|
384
394
|
onSessionSelect?: (sessionId: string) => void;
|
|
385
395
|
onSessionDelete?: (sessionId: string) => void;
|
|
386
396
|
}
|
|
387
|
-
declare function SessionTreePanel({ adapter, sessionId, activeSessionId, agentId, title, sessionListLimit, hideRoot, onSessionSelect, onSessionDelete, }: SessionTreePanelProps): react_jsx_runtime.JSX.Element | null;
|
|
397
|
+
declare function SessionTreePanel({ adapter, sessionId, activeSessionId, agentId, title, sessionListLimit, hideRoot, hideHeader, loadList, onSessionSelect, onSessionDelete, }: SessionTreePanelProps): react_jsx_runtime.JSX.Element | null;
|
|
388
398
|
|
|
389
399
|
export { AgentChat, type AgentChatAdapter, type AgentChatAdapterContextValue, AgentChatAdapterProvider, type AgentChatArtifactKind, type AgentChatArtifactMeta, type AgentChatArtifactPayload, type AgentChatChartArtifactSpec, type AgentChatClarifyAnswer, type AgentChatClarifyArgs, type AgentChatClarifyChoice, type AgentChatClarifyQuestion, type AgentChatErrorCategory, type AgentChatErrorInfo, type AgentChatEventStream, type AgentChatEventType, type AgentChatExpertFeedbackRating, type AgentChatHtmlArtifactSpec, type AgentChatMarkdownArtifactSpec, type AgentChatMessage, type AgentChatMessageStatus, type AgentChatProps, type AgentChatRole, type AgentChatRuntimeApi, type AgentChatRuntimeEvent, type AgentChatSession, type AgentChatSessionList, type AgentChatSessionTree, type AgentChatSessionTreeNode, type AgentChatSlashCommand, type AgentChatSseMessageEvent, type AgentChatState, type AgentChatSvgArtifactSpec, type AgentChatSystemKind, type AgentChatTableArtifactSpec, type AgentChatTokenUsage, type AgentChatToolCallInfo, type AgentChatWorkspaceEntry, type AgentChatWorkspaceFile, type AgentChatWorkspaceTree, type AgentChatWorkspaceUpload, type ArtifactKind, type ArtifactPayload, type ChartArtifactSpec, type ChatMessage, type ClarifyAnswer, type ClarifyArgs, type ClarifyChoice, type ClarifyQuestion, type ErrorInfo, type HtmlArtifactSpec, type MarkdownArtifactSpec, MessageResponse, type MessageResponseProps, type RetryIndicator, type SessionTree, type SessionTreeNode, SessionTreePanel, type SessionTreePanelProps, type SvgArtifactSpec, type TableArtifactSpec, type TokenUsage, type ToolCallInfo, type WorkspaceEntry, type WorkspaceFile, type WorkspaceTree, type WorkspaceUpload, useAgentChatAdapterContext, useAgentChatRuntime };
|