@blade-hq/agent-react 2610.0.3 → 2610.0.4

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": "2610.0.3",
3
+ "version": "2610.0.4",
4
4
  "description": "Blade Agent React 绑定:BladeProvider、useAgentSession、开箱即用的 ChatView 聊天界面。",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,7 +31,7 @@
31
31
  "access": "public"
32
32
  },
33
33
  "dependencies": {
34
- "@blade-hq/agent-client": "2610.0.3"
34
+ "@blade-hq/agent-client": "2610.0.4"
35
35
  },
36
36
  "bundledDependencies": [],
37
37
  "peerDependencies": {
package/public-api.md CHANGED
@@ -3,7 +3,7 @@
3
3
  > 本文件由 `scripts/public-api-report.mjs` 生成,请勿手改。
4
4
  > 公共面变更时重新生成本报告,并同步更新 README 对应章节——CI 会校验两者。
5
5
 
6
- 共 380 个公开声明。
6
+ 共 383 个公开声明。
7
7
 
8
8
  ## `acceptedPostChatFollowupCompletesLatestRun` (function)
9
9
 
@@ -513,6 +513,7 @@ update: (groupId: string, payload: { name?: string; instructions?: string; }) =>
513
513
 
514
514
  ```ts
515
515
  blocks: ContentBlock[] | undefined
516
+ chat_run: RunTiming | null | undefined
516
517
  compaction: CompactionInfo | undefined
517
518
  content: MessageContent
518
519
  context: ContextProjectionData | undefined
@@ -744,7 +745,7 @@ export type ConnectionStatus = "connecting" | "connected" | "reconnecting" | "di
744
745
  ## `ConnectorPanel` (function)
745
746
 
746
747
  ```ts
747
- ConnectorPanel: ({ client, sessionId, pendingPlugins, onPendingPluginsChange, pendingDisabledReason, onPluginsChanged, onSelectedChange, renderComputerSection, renderExternalAccounts, renderFooterActions, className, }: ConnectorPanelProps) => JSX.Element
748
+ ConnectorPanel: ({ client, sessionId, pendingPlugins, onPendingPluginsChange, pendingDisabledReason, onPluginsChanged, onSelectedChange, renderComputerSection, renderExternalAccounts, renderFooterActions, visibleSections, className, }: ConnectorPanelProps) => JSX.Element
748
749
  ```
749
750
 
750
751
  ## `ConnectorPanelProps` (interface)
@@ -761,6 +762,7 @@ renderComputerSection: ((query: string) => ReactNode) | undefined
761
762
  renderExternalAccounts: ((query: string) => ReactNode) | undefined
762
763
  renderFooterActions: (() => ReactNode) | undefined
763
764
  sessionId: string | null
765
+ visibleSections: readonly ("plugins" | "computers" | "accounts")[] | undefined
764
766
  ```
765
767
 
766
768
  ## `ContentBlock` (interface)
@@ -1080,6 +1082,18 @@ export type FollowupInteractionEvent =
1080
1082
  artifactKind: "file"
1081
1083
  ```
1082
1084
 
1085
+ ## `getChatRun` (function)
1086
+
1087
+ ```ts
1088
+ getChatRun: (messages: ChatMessage[]) => RunTiming | null
1089
+ ```
1090
+
1091
+ ## `getChatRunDuration` (function)
1092
+
1093
+ ```ts
1094
+ getChatRunDuration: (messages: ChatMessage[], now: number | null) => number | null
1095
+ ```
1096
+
1083
1097
  ## `getContextDisplayState` (function)
1084
1098
 
1085
1099
  ```ts
@@ -3541,6 +3555,7 @@ archived_count: number | null | undefined
3541
3555
  archived_files: ArchivedFileInfo[] | null | undefined
3542
3556
  archived_tool_calls: ArchivedToolCallInfo[] | null | undefined
3543
3557
  blocks: ContentBlock[]
3558
+ chat_run: RunTiming | null | undefined
3544
3559
  client_render_id: string | null | undefined
3545
3560
  client_request_id: string | null | undefined
3546
3561
  compaction_id: string | null | undefined
@@ -3638,6 +3653,12 @@ state: SessionState | null
3638
3653
  useBladeClient: () => BladeClient
3639
3654
  ```
3640
3655
 
3656
+ ## `useLiveExecutionDuration` (function)
3657
+
3658
+ ```ts
3659
+ useLiveExecutionDuration: ({ turnKey, isStreaming, initialDurationMs, isInitialDurationReady, }: { turnKey: string; isStreaming: boolean; initialDurationMs: number; isInitialDurationReady: boolean; }) => number
3660
+ ```
3661
+
3641
3662
  ## `useLlmChat` (function)
3642
3663
 
3643
3664
  ```ts