@blade-hq/agent-react 2612.0.0-beta.97 → 2612.0.0-beta.99

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 (86) hide show
  1. package/README.md +3 -2
  2. package/dist/McpAppCard-ADVDKC2C.js +171 -0
  3. package/dist/McpAppCard-ADVDKC2C.js.map +1 -0
  4. package/dist/McpAppFrame-VEOUJL5E.js +9 -0
  5. package/dist/PlanGraph-3D5PCSIJ.js +189 -0
  6. package/dist/PlanGraph-3D5PCSIJ.js.map +1 -0
  7. package/dist/{chunk-FTBMG7TK.js → SessionPluginConfigForm-DWVDFK6A.js} +2 -3
  8. package/dist/chat/AskUserQuestionBlock.d.ts +2 -1
  9. package/dist/chat/ChatPanel.d.ts +3 -1
  10. package/dist/chat/CurrentPlanPanel.d.ts +2 -1
  11. package/dist/chat/LightComposer.d.ts +1 -1
  12. package/dist/chat/LiteMessageList.d.ts +9 -0
  13. package/dist/chat/RelatedWork.d.ts +24 -0
  14. package/dist/chat/index.d.ts +1 -0
  15. package/dist/chat/plan/PlanGraph.d.ts +26 -0
  16. package/dist/chat/plan/PlanSurface.d.ts +9 -0
  17. package/dist/chat/plan/presentation.d.ts +18 -0
  18. package/dist/chat/runtime/actions.d.ts +1 -0
  19. package/dist/chat/runtime/environment.d.ts +5 -0
  20. package/dist/chat/runtime/session-source.d.ts +2 -0
  21. package/dist/chat.css +181 -0
  22. package/dist/{chunk-CJQINCIP.js → chunk-3RFYXI6V.js} +51 -71
  23. package/dist/chunk-3RFYXI6V.js.map +1 -0
  24. package/dist/chunk-5JAFIDDP.js +1386 -0
  25. package/dist/chunk-5JAFIDDP.js.map +1 -0
  26. package/dist/{chunk-RULD2XDA.js → chunk-67JW6ASD.js} +1561 -1199
  27. package/dist/chunk-67JW6ASD.js.map +1 -0
  28. package/dist/chunk-7WR2KG5O.js +50 -0
  29. package/dist/chunk-7WR2KG5O.js.map +1 -0
  30. package/dist/chunk-FR3ON5R4.js +30 -0
  31. package/dist/chunk-FR3ON5R4.js.map +1 -0
  32. package/dist/chunk-GRUDJLWG.js +8 -0
  33. package/dist/chunk-GRUDJLWG.js.map +1 -0
  34. package/dist/{chunk-EM7X2QZ2.js → chunk-GZHQQXYI.js} +19 -16
  35. package/dist/chunk-GZHQQXYI.js.map +1 -0
  36. package/dist/{chunk-RHUJ77ZZ.js → chunk-IOIKCFRO.js} +36 -1566
  37. package/dist/chunk-IOIKCFRO.js.map +1 -0
  38. package/dist/{chunk-IOKIQSWP.js → chunk-J6BSKVVK.js} +37 -19
  39. package/dist/chunk-J6BSKVVK.js.map +1 -0
  40. package/dist/{chunk-4VBPNAAT.js → chunk-MG4RF573.js} +33 -15
  41. package/dist/chunk-MG4RF573.js.map +1 -0
  42. package/dist/{chunk-KJDDAZZY.js → chunk-SVCTJ4VS.js} +145 -25
  43. package/dist/chunk-SVCTJ4VS.js.map +1 -0
  44. package/dist/{chunk-FXTAY3LE.js → chunk-WEOW475M.js} +17 -17
  45. package/dist/{chunk-FXTAY3LE.js.map → chunk-WEOW475M.js.map} +1 -1
  46. package/dist/{chunk-6Z7T6BOB.js → chunk-YBTELD7P.js} +7 -5
  47. package/dist/{chunk-6Z7T6BOB.js.map → chunk-YBTELD7P.js.map} +1 -1
  48. package/dist/components/AgentChat.d.ts +3 -0
  49. package/dist/components/McpAppCard.d.ts +1 -7
  50. package/dist/components/ReplayBar.d.ts +7 -1
  51. package/dist/components/lazy-mcp-app-card.d.ts +1 -0
  52. package/dist/components/lazy-mcp-app-frame.d.ts +1 -0
  53. package/dist/components/lazy-session-plugin-config-form.d.ts +1 -0
  54. package/dist/components/mcp-app-context.d.ts +7 -0
  55. package/dist/connectors.js +3 -3
  56. package/dist/embed/entry.d.ts +4 -0
  57. package/dist/embed/load-plan-graph.d.ts +2 -0
  58. package/dist/embed/plan-graph-chunk.d.ts +1 -0
  59. package/dist/index.d.ts +2 -0
  60. package/dist/index.js +14 -9
  61. package/dist/internal.d.ts +4 -4
  62. package/dist/internal.js +29 -17
  63. package/dist/internal.js.map +1 -1
  64. package/dist/questions.js +5 -4
  65. package/dist/questions.js.map +1 -1
  66. package/dist/rich-input/ChatInput.d.ts +3 -1
  67. package/dist/rich-input/ComposerControls.d.ts +21 -0
  68. package/dist/rich-input/index.d.ts +1 -0
  69. package/dist/rich-input/model/resolve-model.d.ts +8 -2
  70. package/dist/rich-input.js +341 -267
  71. package/dist/rich-input.js.map +1 -1
  72. package/dist/style.full.css +182 -1
  73. package/dist/tool-details.js +6 -5
  74. package/dist/tool-details.js.map +1 -1
  75. package/package.json +2 -2
  76. package/public-api.md +31 -2
  77. package/dist/SessionPluginConfigForm-DWLJEYBY.js +0 -9
  78. package/dist/chunk-4VBPNAAT.js.map +0 -1
  79. package/dist/chunk-CJQINCIP.js.map +0 -1
  80. package/dist/chunk-EM7X2QZ2.js.map +0 -1
  81. package/dist/chunk-IOKIQSWP.js.map +0 -1
  82. package/dist/chunk-KJDDAZZY.js.map +0 -1
  83. package/dist/chunk-RHUJ77ZZ.js.map +0 -1
  84. package/dist/chunk-RULD2XDA.js.map +0 -1
  85. /package/dist/{SessionPluginConfigForm-DWLJEYBY.js.map → McpAppFrame-VEOUJL5E.js.map} +0 -0
  86. /package/dist/{chunk-FTBMG7TK.js.map → SessionPluginConfigForm-DWVDFK6A.js.map} +0 -0
@@ -1,15 +1,16 @@
1
1
  import {
2
2
  ToolUiCardView,
3
3
  getRenderer
4
- } from "./chunk-RHUJ77ZZ.js";
5
- import "./chunk-6Z7T6BOB.js";
4
+ } from "./chunk-5JAFIDDP.js";
5
+ import "./chunk-YBTELD7P.js";
6
6
  import {
7
7
  formatToolName,
8
8
  getToolDisplayLabel,
9
9
  parsePlanUpdate
10
- } from "./chunk-CJQINCIP.js";
11
- import "./chunk-FXTAY3LE.js";
12
- import "./chunk-IOKIQSWP.js";
10
+ } from "./chunk-3RFYXI6V.js";
11
+ import "./chunk-FR3ON5R4.js";
12
+ import "./chunk-WEOW475M.js";
13
+ import "./chunk-J6BSKVVK.js";
13
14
  import "./chunk-PR4QN5HX.js";
14
15
 
15
16
  // 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.97",
3
+ "version": "2612.0.0-beta.99",
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.97",
55
+ "@blade-hq/agent-client": "2612.0.0-beta.99",
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
- 共 48 个公开声明。
6
+ 共 51 个公开声明。
7
7
 
8
8
  ## `AskUserQuestionData` (interface)
9
9
 
@@ -112,6 +112,7 @@ onLlmReady: ((handle: LlmChatHandle) => void) | undefined
112
112
  onSessionCreated: ((sessionId: string) => void) | undefined
113
113
  onSessionReady: ((session: AgentSession) => void) | undefined
114
114
  placeholder: string | undefined
115
+ planAgentActions: ((sessionId: string) => PlanAgentActions | undefined) | undefined
115
116
  renderers: ChatViewRenderers | undefined
116
117
  sessionId: string | undefined
117
118
  sessionPluginControls: ((sessionId: string) => ReactNode) | undefined
@@ -315,6 +316,23 @@ export type MarkdownContentProps = MarkdownRendererProps & {
315
316
  }
316
317
  ```
317
318
 
319
+ ## `PlanAgentActions` (interface)
320
+
321
+ ```ts
322
+ findExecution: ((ref: PlanAgentRef) => PlanAgentExecution | undefined) | undefined
323
+ openExecution: ((execution: PlanAgentExecution) => void) | undefined
324
+ ```
325
+
326
+ ## `PlanAgentExecution` (interface)
327
+
328
+ ```ts
329
+ agent: string
330
+ child_session_id: string
331
+ execution_id: string
332
+ request_id: string | undefined
333
+ status: string
334
+ ```
335
+
318
336
  ## `PlanStepStatus` (type)
319
337
 
320
338
  ```ts
@@ -338,7 +356,7 @@ sessionId: string | undefined
338
356
  ## `ReplayBar` (function)
339
357
 
340
358
  ```ts
341
- ReplayBar: ({ isReplay, speed, onSpeedChange, onExit, canControl, className, }: ReplayBarProps) => JSX.Element | null
359
+ ReplayBar: ({ isReplay, speed, onSpeedChange, onExit, canControl, className, settings, onSettingsChange, onHint, onNext, onToolAction, }: ReplayBarProps) => JSX.Element | null
342
360
  ```
343
361
 
344
362
  ## `ReplayBarProps` (interface)
@@ -348,7 +366,12 @@ canControl: boolean | undefined
348
366
  className: string | undefined
349
367
  isReplay: boolean
350
368
  onExit: () => void
369
+ onHint: ((hint: string) => void) | undefined
370
+ onNext: ((hint: string) => void) | undefined
371
+ onSettingsChange: ((settings: ReplaySettings) => void) | undefined
351
372
  onSpeedChange: (speed: ReplaySpeed) => void
373
+ onToolAction: ((action: ReplayToolAction) => Promise<void>) | undefined
374
+ settings: ReplayState | undefined
352
375
  speed: ReplaySpeed
353
376
  ```
354
377
 
@@ -373,6 +396,12 @@ className: string | undefined
373
396
  mismatch: ReplayMismatch | null
374
397
  ```
375
398
 
399
+ ## `selectPlanPresentation` (function)
400
+
401
+ ```ts
402
+ selectPlanPresentation: (plan: PlanDocument) => "compact-bar" | "graph"
403
+ ```
404
+
376
405
  ## `ToolCallRenderer` (type)
377
406
 
378
407
  ```ts
@@ -1,9 +0,0 @@
1
- import {
2
- SessionPluginConfigForm
3
- } from "./chunk-FTBMG7TK.js";
4
- import "./chunk-IOKIQSWP.js";
5
- import "./chunk-PR4QN5HX.js";
6
- export {
7
- SessionPluginConfigForm
8
- };
9
- //# sourceMappingURL=SessionPluginConfigForm-DWLJEYBY.js.map