@blade-hq/agent-react 2612.0.0-beta.76 → 2612.0.0-beta.78

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 (62) hide show
  1. package/README.md +15 -1
  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/chat/TurnNavRail.d.ts +1 -4
  6. package/dist/chat/index.d.ts +2 -1
  7. package/dist/chat/turn-locate-channel.d.ts +53 -0
  8. package/dist/{chunk-XP6T6SHZ.js → chunk-66JXSDLB.js} +1186 -1038
  9. package/dist/chunk-66JXSDLB.js.map +1 -0
  10. package/dist/{chunk-XJ6ZA6LN.js → chunk-C3LBNHVM.js} +12 -10
  11. package/dist/{chunk-XJ6ZA6LN.js.map → chunk-C3LBNHVM.js.map} +1 -1
  12. package/dist/chunk-F4MWGSKX.js +1308 -0
  13. package/dist/chunk-F4MWGSKX.js.map +1 -0
  14. package/dist/{chunk-7MCGQH34.js → chunk-FBGCDXRK.js} +116 -114
  15. package/dist/chunk-FBGCDXRK.js.map +1 -0
  16. package/dist/{chunk-HCW7SI5Q.js → chunk-FDB3J5QF.js} +8 -6
  17. package/dist/{chunk-HCW7SI5Q.js.map → chunk-FDB3J5QF.js.map} +1 -1
  18. package/dist/{chunk-J72ZLILV.js → chunk-FH5HA3GW.js} +554 -455
  19. package/dist/chunk-FH5HA3GW.js.map +1 -0
  20. package/dist/chunk-KHJEIHMJ.js +973 -0
  21. package/dist/chunk-KHJEIHMJ.js.map +1 -0
  22. package/dist/{chunk-QIR73CES.js → chunk-MWILWSPG.js} +7396 -5684
  23. package/dist/chunk-MWILWSPG.js.map +1 -0
  24. package/dist/{chunk-WRIMPZPN.js → chunk-NRYLAO3X.js} +102 -155
  25. package/dist/chunk-NRYLAO3X.js.map +1 -0
  26. package/dist/{chunk-2DPLLZOU.js → chunk-SK43YNRX.js} +151 -1442
  27. package/dist/chunk-SK43YNRX.js.map +1 -0
  28. package/dist/components/AccountConnectorRules.d.ts +7 -0
  29. package/dist/components/BrowserConnectionDialog.d.ts +3 -2
  30. package/dist/components/ConfigConnection.d.ts +16 -0
  31. package/dist/components/ConnectorDetail.d.ts +46 -0
  32. package/dist/components/ConnectorRulesPanel.d.ts +10 -0
  33. package/dist/components/ConnectorRuntimeDiagnostics.d.ts +2 -2
  34. package/dist/components/DeviceConnection.d.ts +3 -1
  35. package/dist/components/FeishuPermissionStatus.d.ts +3 -1
  36. package/dist/components/ManagedConnection.d.ts +5 -2
  37. package/dist/components/PackEventNotice.d.ts +3 -0
  38. package/dist/components/SessionPluginConfigForm.d.ts +2 -1
  39. package/dist/connectors.d.ts +4 -0
  40. package/dist/connectors.js +10 -2
  41. package/dist/embed/entry.d.ts +4 -0
  42. package/dist/hooks/use-turn-navigation.d.ts +19 -0
  43. package/dist/index.d.ts +4 -0
  44. package/dist/index.js +16 -7
  45. package/dist/internal.d.ts +1 -1
  46. package/dist/internal.js +18 -9
  47. package/dist/internal.js.map +1 -1
  48. package/dist/questions.js +8 -6
  49. package/dist/questions.js.map +1 -1
  50. package/dist/rich-input.js +32 -13
  51. package/dist/rich-input.js.map +1 -1
  52. package/dist/style.full.css +1 -1
  53. package/dist/tool-details.js +5 -4
  54. package/dist/tool-details.js.map +1 -1
  55. package/package.json +2 -2
  56. package/public-api.md +46 -2
  57. package/dist/chunk-2DPLLZOU.js.map +0 -1
  58. package/dist/chunk-7MCGQH34.js.map +0 -1
  59. package/dist/chunk-J72ZLILV.js.map +0 -1
  60. package/dist/chunk-QIR73CES.js.map +0 -1
  61. package/dist/chunk-WRIMPZPN.js.map +0 -1
  62. package/dist/chunk-XP6T6SHZ.js.map +0 -1
@@ -1,14 +1,15 @@
1
1
  import {
2
2
  ToolUiCardView,
3
3
  getRenderer
4
- } from "./chunk-HCW7SI5Q.js";
5
- import "./chunk-XJ6ZA6LN.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-WRIMPZPN.js";
11
- import "./chunk-QIR73CES.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.76",
3
+ "version": "2612.0.0-beta.78",
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.76",
55
+ "@blade-hq/agent-client": "2612.0.0-beta.78",
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
- 共 42 个公开声明。
6
+ 共 47 个公开声明。
7
7
 
8
8
  ## `AskUserQuestionData` (interface)
9
9
 
@@ -138,16 +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
+
185
+ ## `ConnectorRulesPanel` (function)
186
+
187
+ ```ts
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
189
+ ```
190
+
147
191
  ## `DeviceConnection` (function)
148
192
 
149
193
  ```ts
150
- 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
151
195
  ```
152
196
 
153
197
  ## `FollowupInteractionEvent` (type)