@blade-hq/agent-react 2612.0.0-beta.57 → 2612.0.0-beta.59
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/ImageLightbox.d.ts +1 -1
- package/dist/{chunk-ILB77TUM.js → chunk-2E6DQCXM.js} +3 -3
- package/dist/chunk-HBMFIJG2.js +13622 -0
- package/dist/chunk-HBMFIJG2.js.map +1 -0
- package/dist/{chunk-FLNFZVZF.js → chunk-MAFNMG2O.js} +2 -2
- package/dist/{chunk-WA2DQEKV.js → chunk-UC7SY3G5.js} +1968 -15552
- package/dist/chunk-UC7SY3G5.js.map +1 -0
- package/dist/{chunk-PMNUGFTJ.js → chunk-VSIUEXGV.js} +222 -219
- package/dist/chunk-VSIUEXGV.js.map +1 -0
- package/dist/{chunk-2U5HZ3PG.js → chunk-XV6AO37F.js} +2 -2
- package/dist/index.js +5 -4
- package/dist/internal.js +10 -8
- package/dist/internal.js.map +1 -1
- package/dist/questions.js +2 -2
- package/dist/rich-input.js +3 -3
- package/dist/tool-details.d.ts +8 -0
- package/dist/tool-details.js +24 -0
- package/dist/tool-details.js.map +1 -0
- package/package.json +6 -2
- package/dist/chunk-PMNUGFTJ.js.map +0 -1
- package/dist/chunk-WA2DQEKV.js.map +0 -1
- /package/dist/{chunk-ILB77TUM.js.map → chunk-2E6DQCXM.js.map} +0 -0
- /package/dist/{chunk-FLNFZVZF.js.map → chunk-MAFNMG2O.js.map} +0 -0
- /package/dist/{chunk-2U5HZ3PG.js.map → chunk-XV6AO37F.js.map} +0 -0
package/README.md
CHANGED
|
@@ -460,6 +460,10 @@ blade-chat::part(input-toolbar) { gap: 12px; }
|
|
|
460
460
|
|
|
461
461
|
不需要本包——用后端托管的单文件产物 `<script src=".../sdk/blade-agent.js">` + `<blade-chat>` 自定义元素,行为与 `ChatView` 一致。Vue 项目用 `@blade-hq/agent-vue` 的 `<BladeChat>` 组件;区块定制用挂载式渲染器(`<blade-chat>` 元素的 `renderers` 属性),详见 agent-client README「`<blade-chat>` 的挂载式渲染器」。
|
|
462
462
|
|
|
463
|
+
## 独立工具详情
|
|
464
|
+
|
|
465
|
+
自行维护消息时间线的应用可按需使用公开入口 `@blade-hq/agent-react/tool-details`,无需依赖 `/internal` 或挂载完整聊天视图。入口导出 `getRenderer(name)`、`formatToolName`、`getToolDisplayLabel`、`parsePlanUpdate`、`ToolUiCardView`、`isToolUiCard`,以及 `ToolRendererProps`、`ToolUiCard` 类型。`getRenderer` 对内置工具返回共享组件,未注册的名称返回 `null`,宿主可组合自己的通用展示。工具组件接收公开的 `ToolCallInfo`,主题及 Tailwind 编译方式与聊天视图相同;涉及会话资源的工具卡片仍需 `BladeProvider` 与对应会话权限。
|
|
466
|
+
|
|
463
467
|
## 第一方内部入口
|
|
464
468
|
|
|
465
469
|
- `@blade-hq/agent-react/internal`:内置 Web 与浏览器插件用的聊天内部块、判定逻辑和连接器组件。
|
|
@@ -7,5 +7,5 @@ interface ImageLightboxProps {
|
|
|
7
7
|
}[];
|
|
8
8
|
initialIndex?: number;
|
|
9
9
|
}
|
|
10
|
-
export declare function ImageLightbox({ open, onOpenChange, images, initialIndex }: ImageLightboxProps): import("react").
|
|
10
|
+
export declare function ImageLightbox({ open, onOpenChange, images, initialIndex }: ImageLightboxProps): import("react/jsx-runtime").JSX.Element | null;
|
|
11
11
|
export {};
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
catalogToConnectorItems,
|
|
6
6
|
filterConnectorItems,
|
|
7
7
|
useSessionPluginActivation
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MAFNMG2O.js";
|
|
9
9
|
import {
|
|
10
10
|
DeviceConnection
|
|
11
11
|
} from "./chunk-ARX4JV5T.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
Search,
|
|
20
20
|
Trash2,
|
|
21
21
|
Unplug
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VSIUEXGV.js";
|
|
23
23
|
|
|
24
24
|
// src/components/connector-panel-types.ts
|
|
25
25
|
function selectionFromItem(item) {
|
|
@@ -599,4 +599,4 @@ export {
|
|
|
599
599
|
ConnectorPanel,
|
|
600
600
|
PluginTriggerStack
|
|
601
601
|
};
|
|
602
|
-
//# sourceMappingURL=chunk-
|
|
602
|
+
//# sourceMappingURL=chunk-2E6DQCXM.js.map
|