@tangle-network/ui 11.10.0 → 11.11.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 +14 -0
- package/README.md +4 -1
- package/dist/active-sessions-store-Gt1R0rFG.js +262 -0
- package/dist/{active-sessions-store-CeOmXgv5.d.ts → active-sessions-store-nl70ZnMC.d.ts} +40 -41
- package/dist/artifact-pane-BL_DFWNl.d.ts +32 -0
- package/dist/artifact-pane-DMXT9a8U.js +70 -0
- package/dist/auth-DOETfnd9.js +154 -0
- package/dist/auth.d.ts +2 -74
- package/dist/auth.js +2 -16
- package/dist/branding-26d5ARIr.d.ts +14 -0
- package/dist/button-C87nEe2R.js +78 -0
- package/dist/button-yoIv77e2.d.ts +16 -0
- package/dist/chat-D4jAfEmj.js +667 -0
- package/dist/chat.d.ts +2 -201
- package/dist/chat.js +2 -31
- package/dist/code-block-B36KVUSN.js +165 -0
- package/dist/code-block-B9miUPht.d.ts +23 -0
- package/dist/diff-preview-BcK3nRXb.js +533 -0
- package/dist/document-editor-pane-BcoABlhn.d.ts +131 -0
- package/dist/document-editor-pane-BxlPjaTP.js +1287 -0
- package/dist/dropdown-menu-BpcLa5vF.js +101 -0
- package/dist/editor.d.ts +76 -78
- package/dist/editor.js +2 -34
- package/dist/file-format-BgXbr-Ib.js +160 -0
- package/dist/files-Bug33qCl.js +743 -0
- package/dist/files.d.ts +2 -243
- package/dist/files.js +3 -41
- package/dist/focus-BcE_SHqz.js +57 -0
- package/dist/format-DfcLWqMa.js +54 -0
- package/dist/hooks.d.ts +30 -37
- package/dist/hooks.js +111 -46
- package/dist/index-2UntyjBb.d.ts +52 -0
- package/dist/index-BgUHilZm.d.ts +108 -0
- package/dist/index-COgqsFAQ.d.ts +42 -0
- package/dist/index-CPDET_s1.d.ts +549 -0
- package/dist/index-CUhfHT_V.d.ts +204 -0
- package/dist/index-Cg6gYAqh.d.ts +73 -0
- package/dist/index-Cq-EJzqW.d.ts +16 -0
- package/dist/index-DhYmSaLF.d.ts +245 -0
- package/dist/index-DjKxO357.d.ts +128 -0
- package/dist/index.d.ts +26 -43
- package/dist/index.js +35 -472
- package/dist/markdown-BGqicV82.js +45 -0
- package/dist/markdown.d.ts +3 -18
- package/dist/markdown.js +3 -15
- package/dist/message-vhUI0c5G.d.ts +16 -0
- package/dist/nav.d.ts +6 -8
- package/dist/nav.js +29 -11
- package/dist/openui-artifact-renderer-D3E5bIAI.d.ts +114 -0
- package/dist/openui-artifact-renderer-DrU1AdVk.js +266 -0
- package/dist/openui.d.ts +2 -115
- package/dist/openui.js +2 -13
- package/dist/parts-5mhy9yJ3.d.ts +37 -0
- package/dist/primitives-Cb8GGVKr.js +1239 -0
- package/dist/primitives.d.ts +5 -525
- package/dist/primitives.js +9 -212
- package/dist/redaction-CGGB2ENG.js +74 -0
- package/dist/redaction.d.ts +2 -42
- package/dist/redaction.js +2 -7
- package/dist/run-OyWmIDqu.d.ts +41 -0
- package/dist/run-ZsIKPA6J.js +17 -0
- package/dist/run-group-BACLbCFl.js +410 -0
- package/dist/run.d.ts +3 -126
- package/dist/run.js +5 -40
- package/dist/sdk-hooks.d.ts +2 -285
- package/dist/sdk-hooks.js +3 -36
- package/dist/stores.d.ts +13 -14
- package/dist/stores.js +34 -76
- package/dist/table-Bss73DhB.js +146 -0
- package/dist/tabs-BVHR6NkO.js +40 -0
- package/dist/text-shimmer-BUUo6I-g.js +64 -0
- package/dist/tool-call-feed-BeB1_4pX.d.ts +47 -0
- package/dist/tool-call-feed-Djt2q11V.js +109 -0
- package/dist/tool-call-step-DNebqhmX.js +434 -0
- package/dist/tool-display-BAuAVa43.js +158 -0
- package/dist/{tool-display-z4JcDmMQ.d.ts → tool-display-DgmL5rIU.d.ts} +16 -16
- package/dist/tool-previews.d.ts +2 -48
- package/dist/tool-previews.js +2 -23
- package/dist/types.d.ts +6 -19
- package/dist/types.js +0 -1
- package/dist/use-auto-scroll-C5Pjeqon.js +153 -0
- package/dist/use-sse-stream-BVgO1QBN.js +884 -0
- package/dist/use-sse-stream-Dm6R5YWz.d.ts +282 -0
- package/dist/utils-Bl_CZ0Qp.js +37 -0
- package/dist/{chunk-RQHJBTEU.js → utils-C_uf36nf.js} +4 -6
- package/dist/utils.d.ts +2 -104
- package/dist/utils.js +6 -44
- package/package.json +39 -41
- package/src/lib/focus.ts +2 -1
- package/dist/artifact-pane-DpuWcAiF.d.ts +0 -33
- package/dist/button-CMQuQEW_.d.ts +0 -17
- package/dist/chunk-34A66VBG.js +0 -214
- package/dist/chunk-3OI2QKFD.js +0 -0
- package/dist/chunk-3XXBZL53.js +0 -174
- package/dist/chunk-42PAH5D2.js +0 -112
- package/dist/chunk-4CLN43XT.js +0 -45
- package/dist/chunk-55WHV7SS.js +0 -1604
- package/dist/chunk-565EATZZ.js +0 -156
- package/dist/chunk-5Z5ZYMOJ.js +0 -0
- package/dist/chunk-6BGQA4BQ.js +0 -0
- package/dist/chunk-BEBXZPHW.js +0 -299
- package/dist/chunk-C5WF4WMV.js +0 -734
- package/dist/chunk-HFL6R6IF.js +0 -37
- package/dist/chunk-HGML45QH.js +0 -104
- package/dist/chunk-HMAPIH7L.js +0 -595
- package/dist/chunk-K5XFRUS4.js +0 -1401
- package/dist/chunk-KFQGHD73.js +0 -198
- package/dist/chunk-L57WRIND.js +0 -59
- package/dist/chunk-LTEKI7YJ.js +0 -59
- package/dist/chunk-M3QZK62R.js +0 -233
- package/dist/chunk-ND3ZFXQK.js +0 -179
- package/dist/chunk-OEX7NZE3.js +0 -321
- package/dist/chunk-OL5GYLHV.js +0 -60
- package/dist/chunk-QGFYBNSO.js +0 -133
- package/dist/chunk-R7B3UWPF.js +0 -550
- package/dist/chunk-R7SUY4E3.js +0 -65
- package/dist/chunk-REJESC5U.js +0 -117
- package/dist/chunk-RQGKSCEZ.js +0 -0
- package/dist/chunk-SNLR2AEA.js +0 -40
- package/dist/chunk-WKWBTL2V.js +0 -15
- package/dist/chunk-X7CU776B.js +0 -1048
- package/dist/chunk-XU3HB5QL.js +0 -127
- package/dist/chunk-YTO5V6QS.js +0 -19
- package/dist/chunk-YU4E5J2N.js +0 -437
- package/dist/chunk-YZ6AK25N.js +0 -886
- package/dist/code-block-0kSpWMnf.d.ts +0 -25
- package/dist/document-editor-pane-IAEQn_Dl.d.ts +0 -128
- package/dist/document-editor-pane-QHDOBA43.js +0 -13
- package/dist/message-BHWbxBtT.d.ts +0 -15
- package/dist/parts-dj7AcUg0.d.ts +0 -36
- package/dist/run-PfLmDAox.d.ts +0 -41
- package/dist/tool-call-feed-D9iofJgW.d.ts +0 -46
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
interface CodeBlockProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
code: string;
|
|
7
|
-
language?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Header text. Defaults to `language`. Set this when the display name differs
|
|
10
|
-
* from the highlight.js language id — e.g. a file extension ("BASHRC") whose
|
|
11
|
-
* content highlights as a known language, or none.
|
|
12
|
-
*/
|
|
13
|
-
label?: string;
|
|
14
|
-
showLineNumbers?: boolean;
|
|
15
|
-
/** Force light theme; defaults to dark */
|
|
16
|
-
light?: boolean;
|
|
17
|
-
children?: ReactNode;
|
|
18
|
-
}
|
|
19
|
-
declare const CodeBlock: React.MemoExoticComponent<({ code, language, label, showLineNumbers, light: lightProp, className, children, ...props }: CodeBlockProps) => react_jsx_runtime.JSX.Element>;
|
|
20
|
-
/** Copy-to-clipboard button for use inside CodeBlock. */
|
|
21
|
-
declare const CopyButton: React.MemoExoticComponent<({ text }: {
|
|
22
|
-
text: string;
|
|
23
|
-
}) => react_jsx_runtime.JSX.Element>;
|
|
24
|
-
|
|
25
|
-
export { CodeBlock as C, type CodeBlockProps as a, CopyButton as b };
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { a as ArtifactPaneProps } from './artifact-pane-DpuWcAiF.js';
|
|
4
|
-
import { HocuspocusProvider } from '@hocuspocus/provider';
|
|
5
|
-
import * as Yjs from 'yjs';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Connection state for the Hocuspocus provider.
|
|
9
|
-
*/
|
|
10
|
-
type ConnectionState = "disconnected" | "connecting" | "connected" | "synced";
|
|
11
|
-
/**
|
|
12
|
-
* Collaborator information from awareness.
|
|
13
|
-
*/
|
|
14
|
-
interface Collaborator {
|
|
15
|
-
clientId: number;
|
|
16
|
-
user: {
|
|
17
|
-
name: string;
|
|
18
|
-
color: string;
|
|
19
|
-
userId?: string;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Editor context value exposed to children.
|
|
24
|
-
*/
|
|
25
|
-
interface EditorContextValue {
|
|
26
|
-
/** The Y.Doc instance for collaboration */
|
|
27
|
-
doc: Yjs.Doc;
|
|
28
|
-
/** The Hocuspocus provider instance */
|
|
29
|
-
provider: HocuspocusProvider | null;
|
|
30
|
-
/** Current connection state */
|
|
31
|
-
connectionState: ConnectionState;
|
|
32
|
-
/** List of active collaborators */
|
|
33
|
-
collaborators: Collaborator[];
|
|
34
|
-
/** Whether the document is synced with the server */
|
|
35
|
-
isSynced: boolean;
|
|
36
|
-
/** Connect to the collaboration server */
|
|
37
|
-
connect: () => void;
|
|
38
|
-
/** Disconnect from the collaboration server */
|
|
39
|
-
disconnect: () => void;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* User information for presence/awareness.
|
|
43
|
-
*/
|
|
44
|
-
interface EditorUser {
|
|
45
|
-
name: string;
|
|
46
|
-
color?: string;
|
|
47
|
-
userId?: string;
|
|
48
|
-
}
|
|
49
|
-
interface EditorTokenRefreshResult {
|
|
50
|
-
token: string;
|
|
51
|
-
expiresAt?: number;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Props for EditorProvider.
|
|
55
|
-
*/
|
|
56
|
-
interface EditorProviderProps {
|
|
57
|
-
/** WebSocket URL for the Hocuspocus server */
|
|
58
|
-
websocketUrl: string;
|
|
59
|
-
/** Document name (e.g., "doc:my-document") */
|
|
60
|
-
documentName: string;
|
|
61
|
-
/** JWT token for authentication */
|
|
62
|
-
token: string;
|
|
63
|
-
/** Unix timestamp (seconds) when the current token expires */
|
|
64
|
-
tokenExpiresAt?: number;
|
|
65
|
-
/** Current user information for awareness */
|
|
66
|
-
user: EditorUser;
|
|
67
|
-
/** Auto-connect on mount (default: true) */
|
|
68
|
-
autoConnect?: boolean;
|
|
69
|
-
/** Reconnect on disconnect (default: true) */
|
|
70
|
-
autoReconnect?: boolean;
|
|
71
|
-
/** Max reconnect attempts (default: 5) */
|
|
72
|
-
maxReconnectAttempts?: number;
|
|
73
|
-
/** Callback when connection state changes */
|
|
74
|
-
onConnectionChange?: (state: ConnectionState) => void;
|
|
75
|
-
/** Callback when sync completes */
|
|
76
|
-
onSync?: () => void;
|
|
77
|
-
/** Callback on authentication error */
|
|
78
|
-
onAuthError?: (error: Error) => void;
|
|
79
|
-
/** Optional token refresh callback used before reconnect/auth retry */
|
|
80
|
-
onRefreshToken?: () => Promise<EditorTokenRefreshResult | string>;
|
|
81
|
-
/** Children components */
|
|
82
|
-
children: ReactNode;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* EditorProvider wraps children with Hocuspocus collaboration context.
|
|
86
|
-
* Manages WebSocket connection, Y.Doc, and awareness state. Loads `yjs` and
|
|
87
|
-
* `@hocuspocus/provider` — and no tiptap package — before it renders children,
|
|
88
|
-
* because every child hook reads a context that only the loaded provider can
|
|
89
|
-
* supply. A consumer that drives its own editor from that context therefore
|
|
90
|
-
* needs those two peers alone.
|
|
91
|
-
*/
|
|
92
|
-
declare function EditorProvider(props: EditorProviderProps): react_jsx_runtime.JSX.Element;
|
|
93
|
-
/**
|
|
94
|
-
* Hook to access the editor context.
|
|
95
|
-
* Must be used within an EditorProvider.
|
|
96
|
-
*/
|
|
97
|
-
declare function useEditorContext(): EditorContextValue;
|
|
98
|
-
|
|
99
|
-
type DocumentEditorMode = "preview" | "edit";
|
|
100
|
-
type DocumentEditorBackend = "local" | "collaborative";
|
|
101
|
-
interface DocumentEditorPaneCollaborationConfig extends Omit<EditorProviderProps, "children"> {
|
|
102
|
-
}
|
|
103
|
-
interface DocumentEditorPaneProps extends Omit<ArtifactPaneProps, "children" | "tabs" | "toolbar" | "emptyState"> {
|
|
104
|
-
tabs?: ArtifactPaneProps["tabs"];
|
|
105
|
-
toolbar?: ReactNode;
|
|
106
|
-
markdown?: string;
|
|
107
|
-
mode?: DocumentEditorMode;
|
|
108
|
-
defaultMode?: DocumentEditorMode;
|
|
109
|
-
onModeChange?: (mode: DocumentEditorMode) => void;
|
|
110
|
-
backend?: DocumentEditorBackend;
|
|
111
|
-
placeholder?: string;
|
|
112
|
-
autoFocus?: boolean;
|
|
113
|
-
readOnly?: boolean;
|
|
114
|
-
onChange?: (markdown: string) => void;
|
|
115
|
-
onSave?: (markdown: string) => Promise<void> | void;
|
|
116
|
-
saving?: boolean;
|
|
117
|
-
saveLabel?: string;
|
|
118
|
-
previewClassName?: string;
|
|
119
|
-
editorClassName?: string;
|
|
120
|
-
collaboration?: DocumentEditorPaneCollaborationConfig;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* DocumentEditorPane — reusable markdown document surface with preview/edit
|
|
124
|
-
* modes and optional collaborative editing backed by Yjs/Hocuspocus.
|
|
125
|
-
*/
|
|
126
|
-
declare function DocumentEditorPane({ eyebrow, title, subtitle, meta, headerActions, footer, className, contentClassName, headerClassName, hideTitleBlock, tabs, toolbar, markdown, mode, defaultMode, onModeChange, backend, placeholder, autoFocus, readOnly, onChange, onSave, saving, saveLabel, previewClassName, editorClassName, collaboration, }: DocumentEditorPaneProps): react_jsx_runtime.JSX.Element;
|
|
127
|
-
|
|
128
|
-
export { type Collaborator as C, type DocumentEditorBackend as D, type EditorContextValue as E, type ConnectionState as a, type DocumentEditorMode as b, DocumentEditorPane as c, type DocumentEditorPaneCollaborationConfig as d, type DocumentEditorPaneProps as e, EditorProvider as f, type EditorProviderProps as g, type EditorTokenRefreshResult as h, type EditorUser as i, useEditorContext as u };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
DocumentEditorPane
|
|
4
|
-
} from "./chunk-K5XFRUS4.js";
|
|
5
|
-
import "./chunk-R7SUY4E3.js";
|
|
6
|
-
import "./chunk-LTEKI7YJ.js";
|
|
7
|
-
import "./chunk-OL5GYLHV.js";
|
|
8
|
-
import "./chunk-3XXBZL53.js";
|
|
9
|
-
import "./chunk-WKWBTL2V.js";
|
|
10
|
-
import "./chunk-RQHJBTEU.js";
|
|
11
|
-
export {
|
|
12
|
-
DocumentEditorPane
|
|
13
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/** A single message in a chat session. */
|
|
2
|
-
interface SessionMessage {
|
|
3
|
-
id: string;
|
|
4
|
-
role: 'user' | 'assistant' | 'system';
|
|
5
|
-
sessionID?: string;
|
|
6
|
-
time?: {
|
|
7
|
-
created?: number;
|
|
8
|
-
updated?: number;
|
|
9
|
-
completed?: number;
|
|
10
|
-
};
|
|
11
|
-
/** Monotonically increasing insertion index for stable ordering. */
|
|
12
|
-
_insertionIndex?: number;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type { SessionMessage as S };
|
package/dist/parts-dj7AcUg0.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
interface TextPart {
|
|
2
|
-
type: 'text';
|
|
3
|
-
text: string;
|
|
4
|
-
/** If true this text was synthesised client-side (e.g. echo of user input). */
|
|
5
|
-
synthetic?: boolean;
|
|
6
|
-
}
|
|
7
|
-
type ToolStatus = 'pending' | 'running' | 'completed' | 'error';
|
|
8
|
-
interface ToolTime {
|
|
9
|
-
start?: number;
|
|
10
|
-
end?: number;
|
|
11
|
-
}
|
|
12
|
-
interface ToolState {
|
|
13
|
-
status: ToolStatus;
|
|
14
|
-
input?: unknown;
|
|
15
|
-
output?: unknown;
|
|
16
|
-
error?: string;
|
|
17
|
-
metadata?: Record<string, unknown>;
|
|
18
|
-
time?: ToolTime;
|
|
19
|
-
}
|
|
20
|
-
interface ToolPart {
|
|
21
|
-
type: 'tool';
|
|
22
|
-
/** Unique ID for this tool invocation. */
|
|
23
|
-
id: string;
|
|
24
|
-
/** Tool name (e.g. "bash", "read", "write", "grep", "glob"). */
|
|
25
|
-
tool: string;
|
|
26
|
-
state: ToolState;
|
|
27
|
-
callID?: string;
|
|
28
|
-
}
|
|
29
|
-
interface ReasoningPart {
|
|
30
|
-
type: 'reasoning';
|
|
31
|
-
text: string;
|
|
32
|
-
time?: ToolTime;
|
|
33
|
-
}
|
|
34
|
-
type SessionPart = TextPart | ToolPart | ReasoningPart;
|
|
35
|
-
|
|
36
|
-
export type { ReasoningPart as R, SessionPart as S, TextPart as T, ToolPart as a, ToolState as b, ToolStatus as c, ToolTime as d };
|
package/dist/run-PfLmDAox.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { S as SessionMessage } from './message-BHWbxBtT.js';
|
|
2
|
-
|
|
3
|
-
/** Broad category of a tool invocation, used for display grouping. */
|
|
4
|
-
type ToolCategory = "command" | "write" | "read" | "search" | "edit" | "task" | "web" | "todo" | "other";
|
|
5
|
-
interface RunStats {
|
|
6
|
-
toolCount: number;
|
|
7
|
-
messageCount: number;
|
|
8
|
-
thinkingDurationMs: number;
|
|
9
|
-
textPartCount: number;
|
|
10
|
-
toolCategories: Set<ToolCategory>;
|
|
11
|
-
}
|
|
12
|
-
interface FinalTextPart {
|
|
13
|
-
messageId: string;
|
|
14
|
-
partIndex: number;
|
|
15
|
-
text: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* A Run is a consecutive group of assistant messages that form one
|
|
19
|
-
* logical "turn" of the agent. Runs are collapsible in the UI and
|
|
20
|
-
* show a summary header when collapsed.
|
|
21
|
-
*/
|
|
22
|
-
interface Run {
|
|
23
|
-
id: string;
|
|
24
|
-
messages: SessionMessage[];
|
|
25
|
-
isComplete: boolean;
|
|
26
|
-
isStreaming: boolean;
|
|
27
|
-
stats: RunStats;
|
|
28
|
-
summaryText: string | null;
|
|
29
|
-
finalTextPart: FinalTextPart | null;
|
|
30
|
-
}
|
|
31
|
-
interface MessageRun {
|
|
32
|
-
type: "run";
|
|
33
|
-
run: Run;
|
|
34
|
-
}
|
|
35
|
-
interface MessageUser {
|
|
36
|
-
type: "user";
|
|
37
|
-
message: SessionMessage;
|
|
38
|
-
}
|
|
39
|
-
type GroupedMessage = MessageRun | MessageUser;
|
|
40
|
-
|
|
41
|
-
export type { FinalTextPart as F, GroupedMessage as G, MessageRun as M, Run as R, ToolCategory as T, MessageUser as a, RunStats as b };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
type ToolCallType = "bash" | "read" | "write" | "edit" | "glob" | "grep" | "list" | "download" | "inspect" | "audit" | "unknown";
|
|
4
|
-
type ToolCallStatus = "running" | "success" | "error";
|
|
5
|
-
|
|
6
|
-
interface ToolCallData {
|
|
7
|
-
id: string;
|
|
8
|
-
type: ToolCallType;
|
|
9
|
-
label: string;
|
|
10
|
-
status: ToolCallStatus;
|
|
11
|
-
detail?: string;
|
|
12
|
-
output?: string;
|
|
13
|
-
duration?: number;
|
|
14
|
-
}
|
|
15
|
-
type FeedSegment = {
|
|
16
|
-
kind: "text";
|
|
17
|
-
content: string;
|
|
18
|
-
} | {
|
|
19
|
-
kind: "tool_call";
|
|
20
|
-
call: ToolCallData;
|
|
21
|
-
} | {
|
|
22
|
-
kind: "tool_group";
|
|
23
|
-
title?: string;
|
|
24
|
-
calls: ToolCallData[];
|
|
25
|
-
};
|
|
26
|
-
interface ToolCallFeedProps {
|
|
27
|
-
segments: FeedSegment[];
|
|
28
|
-
className?: string;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Renders a feed of interleaved text and tool calls.
|
|
32
|
-
*/
|
|
33
|
-
declare function ToolCallFeed({ segments, className }: ToolCallFeedProps): react_jsx_runtime.JSX.Element | null;
|
|
34
|
-
/**
|
|
35
|
-
* Parse raw SSE tool events into FeedSegments.
|
|
36
|
-
*
|
|
37
|
-
* This is the bridge between the orchestrator's SSE stream format
|
|
38
|
-
* and the ToolCallFeed component. Consumers call this in their
|
|
39
|
-
* useToolCallStream hook.
|
|
40
|
-
*/
|
|
41
|
-
declare function parseToolEvent(event: {
|
|
42
|
-
type: string;
|
|
43
|
-
data: Record<string, unknown>;
|
|
44
|
-
}): ToolCallData | null;
|
|
45
|
-
|
|
46
|
-
export { type FeedSegment as F, type ToolCallData as T, ToolCallFeed as a, type ToolCallFeedProps as b, type ToolCallStatus as c, type ToolCallType as d, parseToolEvent as p };
|