@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.
- package/README.md +3 -2
- package/dist/McpAppCard-ADVDKC2C.js +171 -0
- package/dist/McpAppCard-ADVDKC2C.js.map +1 -0
- package/dist/McpAppFrame-VEOUJL5E.js +9 -0
- package/dist/PlanGraph-3D5PCSIJ.js +189 -0
- package/dist/PlanGraph-3D5PCSIJ.js.map +1 -0
- package/dist/{chunk-FTBMG7TK.js → SessionPluginConfigForm-DWVDFK6A.js} +2 -3
- package/dist/chat/AskUserQuestionBlock.d.ts +2 -1
- package/dist/chat/ChatPanel.d.ts +3 -1
- package/dist/chat/CurrentPlanPanel.d.ts +2 -1
- package/dist/chat/LightComposer.d.ts +1 -1
- package/dist/chat/LiteMessageList.d.ts +9 -0
- package/dist/chat/RelatedWork.d.ts +24 -0
- package/dist/chat/index.d.ts +1 -0
- package/dist/chat/plan/PlanGraph.d.ts +26 -0
- package/dist/chat/plan/PlanSurface.d.ts +9 -0
- package/dist/chat/plan/presentation.d.ts +18 -0
- package/dist/chat/runtime/actions.d.ts +1 -0
- package/dist/chat/runtime/environment.d.ts +5 -0
- package/dist/chat/runtime/session-source.d.ts +2 -0
- package/dist/chat.css +181 -0
- package/dist/{chunk-CJQINCIP.js → chunk-3RFYXI6V.js} +51 -71
- package/dist/chunk-3RFYXI6V.js.map +1 -0
- package/dist/chunk-5JAFIDDP.js +1386 -0
- package/dist/chunk-5JAFIDDP.js.map +1 -0
- package/dist/{chunk-RULD2XDA.js → chunk-67JW6ASD.js} +1561 -1199
- package/dist/chunk-67JW6ASD.js.map +1 -0
- package/dist/chunk-7WR2KG5O.js +50 -0
- package/dist/chunk-7WR2KG5O.js.map +1 -0
- package/dist/chunk-FR3ON5R4.js +30 -0
- package/dist/chunk-FR3ON5R4.js.map +1 -0
- package/dist/chunk-GRUDJLWG.js +8 -0
- package/dist/chunk-GRUDJLWG.js.map +1 -0
- package/dist/{chunk-EM7X2QZ2.js → chunk-GZHQQXYI.js} +19 -16
- package/dist/chunk-GZHQQXYI.js.map +1 -0
- package/dist/{chunk-RHUJ77ZZ.js → chunk-IOIKCFRO.js} +36 -1566
- package/dist/chunk-IOIKCFRO.js.map +1 -0
- package/dist/{chunk-IOKIQSWP.js → chunk-J6BSKVVK.js} +37 -19
- package/dist/chunk-J6BSKVVK.js.map +1 -0
- package/dist/{chunk-4VBPNAAT.js → chunk-MG4RF573.js} +33 -15
- package/dist/chunk-MG4RF573.js.map +1 -0
- package/dist/{chunk-KJDDAZZY.js → chunk-SVCTJ4VS.js} +145 -25
- package/dist/chunk-SVCTJ4VS.js.map +1 -0
- package/dist/{chunk-FXTAY3LE.js → chunk-WEOW475M.js} +17 -17
- package/dist/{chunk-FXTAY3LE.js.map → chunk-WEOW475M.js.map} +1 -1
- package/dist/{chunk-6Z7T6BOB.js → chunk-YBTELD7P.js} +7 -5
- package/dist/{chunk-6Z7T6BOB.js.map → chunk-YBTELD7P.js.map} +1 -1
- package/dist/components/AgentChat.d.ts +3 -0
- package/dist/components/McpAppCard.d.ts +1 -7
- package/dist/components/ReplayBar.d.ts +7 -1
- package/dist/components/lazy-mcp-app-card.d.ts +1 -0
- package/dist/components/lazy-mcp-app-frame.d.ts +1 -0
- package/dist/components/lazy-session-plugin-config-form.d.ts +1 -0
- package/dist/components/mcp-app-context.d.ts +7 -0
- package/dist/connectors.js +3 -3
- package/dist/embed/entry.d.ts +4 -0
- package/dist/embed/load-plan-graph.d.ts +2 -0
- package/dist/embed/plan-graph-chunk.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +14 -9
- package/dist/internal.d.ts +4 -4
- package/dist/internal.js +29 -17
- package/dist/internal.js.map +1 -1
- package/dist/questions.js +5 -4
- package/dist/questions.js.map +1 -1
- package/dist/rich-input/ChatInput.d.ts +3 -1
- package/dist/rich-input/ComposerControls.d.ts +21 -0
- package/dist/rich-input/index.d.ts +1 -0
- package/dist/rich-input/model/resolve-model.d.ts +8 -2
- package/dist/rich-input.js +341 -267
- package/dist/rich-input.js.map +1 -1
- package/dist/style.full.css +182 -1
- package/dist/tool-details.js +6 -5
- package/dist/tool-details.js.map +1 -1
- package/package.json +2 -2
- package/public-api.md +31 -2
- package/dist/SessionPluginConfigForm-DWLJEYBY.js +0 -9
- package/dist/chunk-4VBPNAAT.js.map +0 -1
- package/dist/chunk-CJQINCIP.js.map +0 -1
- package/dist/chunk-EM7X2QZ2.js.map +0 -1
- package/dist/chunk-IOKIQSWP.js.map +0 -1
- package/dist/chunk-KJDDAZZY.js.map +0 -1
- package/dist/chunk-RHUJ77ZZ.js.map +0 -1
- package/dist/chunk-RULD2XDA.js.map +0 -1
- /package/dist/{SessionPluginConfigForm-DWLJEYBY.js.map → McpAppFrame-VEOUJL5E.js.map} +0 -0
- /package/dist/{chunk-FTBMG7TK.js.map → SessionPluginConfigForm-DWVDFK6A.js.map} +0 -0
package/dist/tool-details.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ToolUiCardView,
|
|
3
3
|
getRenderer
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
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-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
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
|
package/dist/tool-details.js.map
CHANGED
|
@@ -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":"
|
|
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.
|
|
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.
|
|
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
|
-
共
|
|
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
|