@blade-hq/agent-react 2612.0.0-beta.6 → 2612.0.0-beta.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blade-hq/agent-react",
3
- "version": "2612.0.0-beta.6",
3
+ "version": "2612.0.0-beta.7",
4
4
  "description": "Blade Agent React 绑定:BladeProvider、useAgentSession、开箱即用的 ChatView 聊天界面。",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,7 +40,7 @@
40
40
  "access": "public"
41
41
  },
42
42
  "dependencies": {
43
- "@blade-hq/agent-client": "2612.0.0-beta.6",
43
+ "@blade-hq/agent-client": "2612.0.0-beta.7",
44
44
  "@radix-ui/react-collapsible": "1.1.12",
45
45
  "@tiptap/core": "3.20.4",
46
46
  "@tiptap/extension-mention": "3.20.4",
package/public-api.md CHANGED
@@ -35,7 +35,6 @@ streaming: boolean
35
35
  ## `BladeHost` (interface)
36
36
 
37
37
  ```ts
38
- listKnowledgeBases: ((context: { sessionId?: string; }) => Promise<HostCatalogItem[]>) | undefined
39
38
  listSkills: ((context: { sessionId?: string; }) => Promise<HostCatalogItem[]>) | undefined
40
39
  openPreview: ((target: { sessionId: string; url?: string; port?: number; }) => void | Promise<void>) | undefined
41
40
  openProject: ((projectId: string) => void) | undefined
@@ -1,2 +0,0 @@
1
- import type { ToolRendererProps } from "./registry";
2
- export declare function KbSearchRenderer({ toolCall }: ToolRendererProps): import("react/jsx-runtime").JSX.Element;
@@ -1,19 +0,0 @@
1
- /** kb_search 工具结果里的一条命中(与后端 `KnowledgeHit.to_payload` 对齐)。 */
2
- export interface KbSearchHit {
3
- n: number;
4
- kbName: string;
5
- title: string;
6
- path: string;
7
- page: number | null;
8
- heading: string | null;
9
- text: string;
10
- previewUrl: string | null;
11
- }
12
- export interface KbSearchResult {
13
- summary: string | null;
14
- query: string | null;
15
- hits: KbSearchHit[];
16
- }
17
- export declare function parseKbSearchResult(result: unknown): KbSearchResult | null;
18
- /** 折叠时的标题:「🔍 在《X》检索到 N 条」。结果没回来或出错时退回工具名。 */
19
- export declare function formatKbSearchLabel(result: unknown): string | null;