@blade-hq/agent-react 2610.0.0-beta.33 → 2610.0.0-beta.34
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.
|
@@ -3,16 +3,19 @@ interface Props {
|
|
|
3
3
|
value: string;
|
|
4
4
|
onValueChange: (value: string) => void;
|
|
5
5
|
onSend: (text: string) => boolean | Promise<boolean>;
|
|
6
|
+
/** Optional direct insertion path used while another response streams. */
|
|
7
|
+
onAppend?: (text: string) => void;
|
|
6
8
|
onStop: () => void;
|
|
7
9
|
isStreaming: boolean;
|
|
8
10
|
isStopping?: boolean;
|
|
9
11
|
placeholder?: string;
|
|
10
12
|
className?: string;
|
|
13
|
+
queueKey?: string;
|
|
11
14
|
}
|
|
12
15
|
/**
|
|
13
16
|
* 轻量聊天输入框:textarea(Enter 发送 / Shift+Enter 换行)+ 发送/停止按钮。
|
|
14
17
|
* 不含第一方版本的富文本编辑、@ 补全、技能菜单、语音输入与模型选择。
|
|
15
18
|
* 内容受控,session.attach() / insertText() 通过 ChatView 注入到这里。
|
|
16
19
|
*/
|
|
17
|
-
export declare function ChatInput({ value, onValueChange, onSend, onStop, isStreaming, isStopping, placeholder, className, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function ChatInput({ value, onValueChange, onSend, onAppend, onStop, isStreaming, isStopping, placeholder, className, queueKey, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
21
|
export {};
|
|
@@ -45,6 +45,7 @@ interface ChatSurfaceProps extends ChatPresentationProps {
|
|
|
45
45
|
onInputChange: (value: string) => void;
|
|
46
46
|
onSuggestion?: (value: string) => void;
|
|
47
47
|
onSend: (text: string) => Promise<boolean>;
|
|
48
|
+
onAppend?: (text: string) => void;
|
|
48
49
|
onStop: () => void;
|
|
49
50
|
sessionStatus?: string;
|
|
50
51
|
askAnswers?: Record<string, AskUserAnswerData>;
|
|
@@ -68,5 +69,5 @@ interface ChatSurfaceProps extends ChatPresentationProps {
|
|
|
68
69
|
* 这里的 DOM 结构受 tests/chat-view-compat.test.tsx 的快照保护——接入方拿
|
|
69
70
|
* .blade-chat-* 类名写了自己的样式,结构一动他们的页面就歪。
|
|
70
71
|
*/
|
|
71
|
-
export declare function ChatSurface({ theme, classNames, renderers, slots, placeholder, connection, errorMessage, messages, postChatFollowup, isStreaming, isStopping, inputText, onInputChange, onSuggestion, onSend, onStop, sessionStatus, askAnswers, onAnswer, sessionId, isViewer, resultFeedbackByEntry, onResultFeedbackSaved, onFollowupInteraction, beforeInput, showPlanUpdates, planRevealRevision, banner, }: ChatSurfaceProps): import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
export declare function ChatSurface({ theme, classNames, renderers, slots, placeholder, connection, errorMessage, messages, postChatFollowup, isStreaming, isStopping, inputText, onInputChange, onSuggestion, onSend, onAppend, onStop, sessionStatus, askAnswers, onAnswer, sessionId, isViewer, resultFeedbackByEntry, onResultFeedbackSaved, onFollowupInteraction, beforeInput, showPlanUpdates, planRevealRevision, banner, }: ChatSurfaceProps): import("react/jsx-runtime").JSX.Element;
|
|
72
73
|
export {};
|
|
@@ -10,6 +10,8 @@ export declare function getSkillNameFromFilePath(filePath: string | null | undef
|
|
|
10
10
|
/** 归一化工具名:去掉命名空间前缀并映射到别名表(如 "fork:Agent" → "Agent")。 */
|
|
11
11
|
export declare function formatToolName(name: string): string;
|
|
12
12
|
export declare function extractToolFilePath(toolCall: ToolCallInfo): string | null;
|
|
13
|
+
/** 从文件类工具参数中提取全部可定位的文件路径(按出现顺序去重)。 */
|
|
14
|
+
export declare function extractToolFilePaths(toolCall: ToolCallInfo): string[];
|
|
13
15
|
/**
|
|
14
16
|
* 返回工具调用的中文展示标签:优先取参数里的 description,
|
|
15
17
|
* 其次取后端下发的 display_name / 系统工具中文名。
|