@blade-hq/agent-react 2612.0.0-beta.77 → 2612.0.0-beta.79

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.
Files changed (56) hide show
  1. package/README.md +12 -2
  2. package/dist/SessionPluginConfigForm-7LJ5SUNY.js +9 -0
  3. package/dist/SessionPluginConfigForm-7LJ5SUNY.js.map +1 -0
  4. package/dist/chat/LiteMessageList.d.ts +4 -0
  5. package/dist/{chunk-IVGTMWRV.js → chunk-66JXSDLB.js} +284 -289
  6. package/dist/chunk-66JXSDLB.js.map +1 -0
  7. package/dist/{chunk-VBHHFIII.js → chunk-C3LBNHVM.js} +12 -10
  8. package/dist/{chunk-VBHHFIII.js.map → chunk-C3LBNHVM.js.map} +1 -1
  9. package/dist/chunk-F4MWGSKX.js +1308 -0
  10. package/dist/chunk-F4MWGSKX.js.map +1 -0
  11. package/dist/{chunk-ZIECHNZA.js → chunk-FBGCDXRK.js} +110 -115
  12. package/dist/chunk-FBGCDXRK.js.map +1 -0
  13. package/dist/{chunk-26NE55SJ.js → chunk-FDB3J5QF.js} +8 -6
  14. package/dist/{chunk-26NE55SJ.js.map → chunk-FDB3J5QF.js.map} +1 -1
  15. package/dist/{chunk-WO2VCQ5N.js → chunk-FH5HA3GW.js} +551 -455
  16. package/dist/chunk-FH5HA3GW.js.map +1 -0
  17. package/dist/chunk-KHJEIHMJ.js +973 -0
  18. package/dist/chunk-KHJEIHMJ.js.map +1 -0
  19. package/dist/{chunk-XBEN2ASY.js → chunk-MWILWSPG.js} +4262 -3186
  20. package/dist/chunk-MWILWSPG.js.map +1 -0
  21. package/dist/{chunk-EQOKPZI2.js → chunk-NRYLAO3X.js} +87 -154
  22. package/dist/chunk-NRYLAO3X.js.map +1 -0
  23. package/dist/{chunk-F2IJZX2Z.js → chunk-SK43YNRX.js} +151 -1442
  24. package/dist/chunk-SK43YNRX.js.map +1 -0
  25. package/dist/components/BrowserConnectionDialog.d.ts +3 -2
  26. package/dist/components/ConfigConnection.d.ts +16 -0
  27. package/dist/components/ConnectorDetail.d.ts +46 -0
  28. package/dist/components/ConnectorRulesPanel.d.ts +2 -1
  29. package/dist/components/ConnectorRuntimeDiagnostics.d.ts +2 -2
  30. package/dist/components/DeviceConnection.d.ts +3 -1
  31. package/dist/components/FeishuPermissionStatus.d.ts +3 -1
  32. package/dist/components/ManagedConnection.d.ts +5 -2
  33. package/dist/components/PackEventNotice.d.ts +3 -0
  34. package/dist/components/SessionPluginConfigForm.d.ts +2 -1
  35. package/dist/connectors.d.ts +3 -0
  36. package/dist/connectors.js +7 -2
  37. package/dist/embed/entry.d.ts +4 -0
  38. package/dist/index.d.ts +3 -0
  39. package/dist/index.js +13 -7
  40. package/dist/internal.js +16 -9
  41. package/dist/internal.js.map +1 -1
  42. package/dist/questions.js +8 -6
  43. package/dist/questions.js.map +1 -1
  44. package/dist/rich-input.js +21 -15
  45. package/dist/rich-input.js.map +1 -1
  46. package/dist/style.full.css +1 -1
  47. package/dist/tool-details.js +5 -4
  48. package/dist/tool-details.js.map +1 -1
  49. package/package.json +2 -2
  50. package/public-api.md +41 -3
  51. package/dist/chunk-EQOKPZI2.js.map +0 -1
  52. package/dist/chunk-F2IJZX2Z.js.map +0 -1
  53. package/dist/chunk-IVGTMWRV.js.map +0 -1
  54. package/dist/chunk-WO2VCQ5N.js.map +0 -1
  55. package/dist/chunk-XBEN2ASY.js.map +0 -1
  56. package/dist/chunk-ZIECHNZA.js.map +0 -1
@@ -1,14 +1,15 @@
1
1
  import {
2
2
  ToolUiCardView,
3
3
  getRenderer
4
- } from "./chunk-26NE55SJ.js";
5
- import "./chunk-VBHHFIII.js";
4
+ } from "./chunk-FDB3J5QF.js";
5
+ import "./chunk-C3LBNHVM.js";
6
6
  import {
7
7
  formatToolName,
8
8
  getToolDisplayLabel,
9
9
  parsePlanUpdate
10
- } from "./chunk-EQOKPZI2.js";
11
- import "./chunk-XBEN2ASY.js";
10
+ } from "./chunk-NRYLAO3X.js";
11
+ import "./chunk-MWILWSPG.js";
12
+ import "./chunk-KHJEIHMJ.js";
12
13
  import "./chunk-PR4QN5HX.js";
13
14
 
14
15
  // src/tool-details.ts
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/tool-details.ts"],"sourcesContent":["/** Standalone tool presentation for applications that own their timeline. */\nexport { getRenderer } from \"./chat/tool-renderers/registry\"\nexport type { ToolRendererProps } from \"./chat/tool-renderers/registry\"\nexport { formatToolName, getToolDisplayLabel } from \"./chat/display-utils\"\nexport { parsePlanUpdate } from \"./components/PlanUpdateBlock\"\nexport { ToolUiCardView } from \"./components/ToolUiCardView\"\nexport { isToolUiCard } from \"@blade-hq/agent-client/internal\"\nexport type { ToolUiCard } from \"@blade-hq/agent-client/internal\"\n"],"mappings":";;;;;;;;;;;;;;AAMA,SAAS,oBAAoB;","names":[]}
1
+ {"version":3,"sources":["../src/tool-details.ts"],"sourcesContent":["/** Standalone tool presentation for applications that own their timeline. */\nexport { getRenderer } from \"./chat/tool-renderers/registry\"\nexport type { ToolRendererProps } from \"./chat/tool-renderers/registry\"\nexport { formatToolName, getToolDisplayLabel } from \"./chat/display-utils\"\nexport { parsePlanUpdate } from \"./components/PlanUpdateBlock\"\nexport { ToolUiCardView } from \"./components/ToolUiCardView\"\nexport { isToolUiCard } from \"@blade-hq/agent-client/internal\"\nexport type { ToolUiCard } from \"@blade-hq/agent-client/internal\"\n"],"mappings":";;;;;;;;;;;;;;;AAMA,SAAS,oBAAoB;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blade-hq/agent-react",
3
- "version": "2612.0.0-beta.77",
3
+ "version": "2612.0.0-beta.79",
4
4
  "description": "Blade Agent React 绑定:BladeProvider、useAgentSession、开箱即用的 ChatView 聊天界面。",
5
5
  "repository": {
6
6
  "type": "git",
@@ -52,7 +52,7 @@
52
52
  "access": "public"
53
53
  },
54
54
  "dependencies": {
55
- "@blade-hq/agent-client": "2612.0.0-beta.77",
55
+ "@blade-hq/agent-client": "2612.0.0-beta.79",
56
56
  "@modelcontextprotocol/ext-apps": "2.0.0",
57
57
  "@radix-ui/react-collapsible": "1.1.12",
58
58
  "@tiptap/core": "3.20.4",
package/public-api.md CHANGED
@@ -3,7 +3,7 @@
3
3
  > 本文件由 `scripts/public-api-report.mjs` 生成,请勿手改。
4
4
  > 公共面变更时重新生成本报告,并同步更新 README 对应章节——CI 会校验两者。
5
5
 
6
- 共 43 个公开声明。
6
+ 共 47 个公开声明。
7
7
 
8
8
  ## `AskUserQuestionData` (interface)
9
9
 
@@ -138,22 +138,60 @@ footer: ReactNode
138
138
  header: ReactNode
139
139
  ```
140
140
 
141
+ ## `ConfigConnection` (function)
142
+
143
+ ```ts
144
+ ConfigConnection: ({ detail, status, account, verifiedAt, busy, connection, editDescription, onEdit, onDisconnect, onVerify, diagnostics }: { detail: ConnectorDetailOptions; status: string; account?: string; verifiedAt?: string; busy?: boolean; connection?: ReactNode; editDescription?: string; onEdit: () => unknown; onDisconnect: () => Promise<unknown>; onVerify?: () => Promise<unknown>; diagnostics?: ReactNode; }) => JSX.Element
145
+ ```
146
+
141
147
  ## `ConnectorConnection` (function)
142
148
 
143
149
  ```ts
144
150
  ConnectorConnection: ({ type, ...props }: React.ComponentProps<typeof DeviceConnection> & { type: "device" | "managed"; }) => JSX.Element
145
151
  ```
146
152
 
153
+ ## `ConnectorDetail` (function)
154
+
155
+ ```ts
156
+ ConnectorDetail: ({ title, icon, account, status, statusLabel, connected, busy, actions, notice, noticeTitle, noticeCollapsedTitle, noticeStorageKey, connection, tabs, children }: { title: string; icon?: ReactNode; account?: string; status: "connected" | "attention" | "disconnected"; statusLabel?: string; connected: boolean; busy?: boolean; actions?: ConnectorDetailAction[]; notice?: ReactNode; noticeTitle?: string; noticeCollapsedTitle?: string; noticeStorageKey?: string; connection?: ReactNode; tabs?: Array<{ id: string; label: string; content: ReactNode; }>; children?: ReactNode; }) => JSX.Element
157
+ ```
158
+
159
+ ## `ConnectorDetailAction` (interface)
160
+
161
+ ```ts
162
+ confirmation: { title: string; description: string; } | undefined
163
+ danger: boolean | undefined
164
+ description: string | undefined
165
+ disabled: boolean | undefined
166
+ id: string
167
+ label: string
168
+ page: ReactNode
169
+ run: (() => unknown) | undefined
170
+ ```
171
+
172
+ ## `ConnectorDetailOptions` (interface)
173
+
174
+ ```ts
175
+ actions: ConnectorDetailAction[] | undefined
176
+ icon: ReactNode
177
+ name: string | undefined
178
+ onOpenPush: (() => void) | undefined
179
+ preferences: ReactNode
180
+ pushFrequency: ReactNode
181
+ rules: ReactNode
182
+ title: string
183
+ ```
184
+
147
185
  ## `ConnectorRulesPanel` (function)
148
186
 
149
187
  ```ts
150
- ConnectorRulesPanel: ({ read, update, onCountChange, refresh, className }: { read: () => Promise<ConnectorRules>; update: (set: Record<string, ConnectorRuleValue>) => Promise<ConnectorRules>; onCountChange?: (count: number, operations?: number) => void; refresh?: number; className?: string; }) => JSX.Element
188
+ ConnectorRulesPanel: ({ read, update, onCountChange, refresh, className, compact }: { compact?: boolean; read: () => Promise<ConnectorRules>; update: (set: Record<string, ConnectorRuleValue>) => Promise<ConnectorRules>; onCountChange?: (count: number, operations?: number) => void; refresh?: number; className?: string; }) => JSX.Element
151
189
  ```
152
190
 
153
191
  ## `DeviceConnection` (function)
154
192
 
155
193
  ```ts
156
- DeviceConnection: ({ read, act, diagnostics, onChanged, bindDelivery, onDisable, initialPage, authorizationCapabilities, autoAuthorize }: { read: () => Promise<ConnectorAuthorization>; act: (action: ConnectorAuthorizationAction, options?: ConnectorAuthorizationOptions) => Promise<ConnectorAuthorization>; plan?: (capabilities: string[]) => Promise<ConnectorAuthorizationPlan>; diagnostics?: () => Promise<ConnectorDiagnostics>; onChanged: () => Promise<unknown>; bindDelivery?: boolean; onDisable?: () => Promise<unknown>; initialPage?: "connection" | "manage"; authorizationCapabilities?: string[]; autoAuthorize?: boolean; }) => JSX.Element
194
+ DeviceConnection: ({ read, act, diagnostics, onChanged, bindDelivery, onDisable, initialPage, authorizationCapabilities, autoAuthorize, detail }: { detail?: ConnectorDetailOptions; read: () => Promise<ConnectorAuthorization>; act: (action: ConnectorAuthorizationAction, options?: ConnectorAuthorizationOptions) => Promise<ConnectorAuthorization>; plan?: (capabilities: string[]) => Promise<ConnectorAuthorizationPlan>; diagnostics?: () => Promise<ConnectorDiagnostics>; onChanged: () => Promise<unknown>; bindDelivery?: boolean; onDisable?: () => Promise<unknown>; initialPage?: "connection" | "manage"; authorizationCapabilities?: string[]; autoAuthorize?: boolean; }) => JSX.Element
157
195
  ```
158
196
 
159
197
  ## `FollowupInteractionEvent` (type)