@blade-hq/agent-react 2612.0.0-beta.19 → 2612.0.0-beta.20
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/README.md +4 -0
- package/dist/chat/ContextAttachmentPills.d.ts +4 -0
- package/dist/chat/customization.d.ts +1 -1
- package/dist/chat/runtime/actions.d.ts +1 -0
- package/dist/{chunk-GXJCVUXP.js → chunk-C4FUFBG4.js} +2 -1
- package/dist/{chunk-GXJCVUXP.js.map → chunk-C4FUFBG4.js.map} +1 -1
- package/dist/{chunk-ZAEHTW2O.js → chunk-KSVVYASW.js} +911 -845
- package/dist/chunk-KSVVYASW.js.map +1 -0
- package/dist/{chunk-LC7Q64YI.js → chunk-TY7DRU2R.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/internal.js +3 -3
- package/dist/rich-input.js +2 -2
- package/package.json +2 -2
- package/dist/chunk-ZAEHTW2O.js.map +0 -1
- /package/dist/{chunk-LC7Q64YI.js.map → chunk-TY7DRU2R.js.map} +0 -0
package/README.md
CHANGED
|
@@ -489,3 +489,7 @@ blade-chat::part(input-toolbar) { gap: 12px; }
|
|
|
489
489
|
### 选择插件条目
|
|
490
490
|
|
|
491
491
|
ChatView 和 `<blade-chat>` 的默认轻量输入支持 @ 搜索插件条目,候选显示中文插件名和图标。选中条目在输入框上方显示,可点 × 移除;发送后保留选择,刷新后恢复最近用户消息的选择。富输入使用同样的候选接口与 PluginRef 身份。自动读取失败时模型会收到明确失败说明。
|
|
492
|
+
|
|
493
|
+
### 应用资料展示
|
|
494
|
+
|
|
495
|
+
共享聊天视图展示消息级 `context_attachments`:气泡只显示正文,资料标签可展开查看纯文本详情,`data` 中的内部 JSON 与 ID 不显示。`ChatSendOptions.contextAttachments` 可沿共享发送入口传入 SDK;可靠后台发送使用 `AgentSession.prepareSend` / `sendPrepared`。文件读取使用当前 `BladeProvider` 的 `BladeClient` 和资料指定的会话权限,失效或没有来源的文件显示「文件不可用」。内置 Web、扩展和嵌入视图使用相同实现。
|
|
@@ -30,7 +30,7 @@ export type ChatViewClassNames = Partial<{
|
|
|
30
30
|
skillStatusBarInner: string;
|
|
31
31
|
}>;
|
|
32
32
|
/** 输入框提交时的附加项(模型、推理档位、知识库等由富输入给出)。 */
|
|
33
|
-
export interface ChatSendOptions extends Pick<ChatSendExtras, "thinkingOverride" | "reasoningLevel" | "refs" | "topicAssetRefs" | "queueWhenRunning"> {
|
|
33
|
+
export interface ChatSendOptions extends Pick<ChatSendExtras, "thinkingOverride" | "reasoningLevel" | "refs" | "contextAttachments" | "topicAssetRefs" | "queueWhenRunning"> {
|
|
34
34
|
/** 附件实际上传到的会话(首页新建会话时由输入框给出)。 */
|
|
35
35
|
targetSessionId?: string;
|
|
36
36
|
/** 本条消息用的模型;null 表示沿用会话已保存的模型。 */
|
|
@@ -9,6 +9,7 @@ export interface ChatSendExtras {
|
|
|
9
9
|
model?: string;
|
|
10
10
|
thinkingOverride?: boolean;
|
|
11
11
|
reasoningLevel?: string;
|
|
12
|
+
contextAttachments?: SendOptions["contextAttachments"];
|
|
12
13
|
refs?: SendOptions["refs"];
|
|
13
14
|
topicAssetRefs?: SendOptions["topicAssetRefs"];
|
|
14
15
|
whatif?: SendOptions["whatif"];
|
|
@@ -19964,6 +19964,7 @@ function sendToSession(session, message, mode, askUserAnswer, extras = {}) {
|
|
|
19964
19964
|
thinkingOverride: extras.thinkingOverride,
|
|
19965
19965
|
reasoningLevel: extras.reasoningLevel,
|
|
19966
19966
|
refs: extras.refs,
|
|
19967
|
+
contextAttachments: extras.contextAttachments,
|
|
19967
19968
|
topicAssetRefs: extras.topicAssetRefs,
|
|
19968
19969
|
whatif: extras.whatif,
|
|
19969
19970
|
replayDecision: extras.replayDecision,
|
|
@@ -26944,4 +26945,4 @@ lucide-react/dist/esm/lucide-react.js:
|
|
|
26944
26945
|
* See the LICENSE file in the root directory of this source tree.
|
|
26945
26946
|
*)
|
|
26946
26947
|
*/
|
|
26947
|
-
//# sourceMappingURL=chunk-
|
|
26948
|
+
//# sourceMappingURL=chunk-C4FUFBG4.js.map
|