@blade-hq/agent-react 2610.0.0-beta.46 → 2610.0.0-beta.48

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 CHANGED
@@ -387,3 +387,5 @@ blade-chat { --primary: 262 83% 58%; height: 640px; }
387
387
  为方便单包引入,本包 re-export 了 agent-client 的全部公开声明(`BladeClient`、`AgentSession`、`SessionState`、协议类型等),文档一律见 [agent-client 的 README](../agent-client/README.md)。完整签名见 [public-api.md](./public-api.md)。
388
388
 
389
389
  本包自有声明:`BladeProvider`、`BladeProviderProps`、`useBladeClient`、`useAgentSession`、`UseAgentSessionOptions`、`UseAgentSessionResult`、`useMessagePin`、`UseMessagePinOptions`、`useReplay`、`UseReplayResult`、`ReplayMismatch`、`ReplayBar`、`ReplayBarProps`、`ReplayMismatchPrompt`、`ReplayMismatchPromptProps`、`ChatView`、`ChatViewProps`、`ChatViewClassNames`、`ChatViewRenderers`、`ChatViewSlots`、`FollowupInteractionEvent`、`ToolCallRenderer`、`CurrentPlanPanel`、`PlanUpdateBlock`、`PlanUpdateData`、`PlanUpdateDisplayState`、`PlanStepStatus`、`getPlanUpdateDisplayState`、`isPlanUpdateTool`、`parsePlanUpdate`、`pickCurrentPlanStep`、`PLAN_AUTO_COLLAPSE_MS`、`MarkdownContent`、`MarkdownContentProps`、`parseWhatIfPrompt`、`ParsedWhatIfPrompt`、`WhatIfQuote`、`WhatIfUserBubble`、`WhatIfUserBubbleProps`。
390
+
391
+ `PollingBackoff` 从 agent-client 重导出,供自定义只读轮询计算退避时间;它不发送或重放请求。用法见 [agent-client 轮询说明](../agent-client/README.md#只读轮询退避)。
@@ -18,6 +18,7 @@ declare function getChat(element: Element | null): Promise<AgentSession>;
18
18
  declare const BladeAgent: {
19
19
  BladeClient: typeof agentClient.BladeClient;
20
20
  BladeApiError: typeof agentClient.BladeApiError;
21
+ PollingBackoff: typeof agentClient.PollingBackoff;
21
22
  EMPTY_PLATFORM_ENDPOINTS: agentClient.PlatformEndpoints;
22
23
  loadPlatformEndpoints: typeof agentClient.loadPlatformEndpoints;
23
24
  resolveServiceUrl: typeof agentClient.resolveServiceUrl;
@@ -113,6 +114,8 @@ declare const BladeAgent: {
113
114
  acceptedPostChatFollowupCompletesLatestRun: typeof agentClient.acceptedPostChatFollowupCompletesLatestRun;
114
115
  acknowledgeTurnEvents: typeof agentClient.acknowledgeTurnEvents;
115
116
  ClientProjectionBuilder: typeof agentClient.ClientProjectionBuilder;
117
+ AuthBusyReconnect: typeof agentClient.AuthBusyReconnect;
118
+ authBusyRetryDelayMs: typeof agentClient.authBusyRetryDelayMs;
116
119
  createSocket: typeof agentClient.createSocket;
117
120
  getChat: typeof getChat;
118
121
  BladeChatElement: typeof BladeChatElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blade-hq/agent-react",
3
- "version": "2610.0.0-beta.46",
3
+ "version": "2610.0.0-beta.48",
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.0-beta.46"
34
+ "@blade-hq/agent-client": "2610.0.0-beta.48"
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
- 241 个公开声明。
6
+ 244 个公开声明。
7
7
 
8
8
  ## `acceptedPostChatFollowupCompletesLatestRun` (function)
9
9
 
@@ -193,6 +193,20 @@ cli: AppCliDefinition | undefined
193
193
  getContext: () => Record<string, unknown> | Promise<Record<string, unknown>>
194
194
  ```
195
195
 
196
+ ## `AuthBusyReconnect` (class)
197
+
198
+ ```ts
199
+ cancel: () => void
200
+ pending: boolean
201
+ schedule: (error: unknown, reconnect: () => void) => boolean
202
+ ```
203
+
204
+ ## `authBusyRetryDelayMs` (function)
205
+
206
+ ```ts
207
+ authBusyRetryDelayMs: (error: unknown) => number | null
208
+ ```
209
+
196
210
  ## `AuthResource` (class)
197
211
 
198
212
  ```ts
@@ -367,6 +381,7 @@ updated_at: string
367
381
 
368
382
  ```ts
369
383
  create: (payload: { name: string; instructions?: string; }) => Promise<ChatProject>
384
+ delete: (projectId: string) => Promise<{ deleted: boolean; deleted_sessions: number; }>
370
385
  list: () => Promise<ChatProject[]>
371
386
  update: (projectId: string, payload: { name?: string; instructions?: string; }) => Promise<ChatProject>
372
387
  ```
@@ -1319,6 +1334,14 @@ services: Partial<Record<"agent" | "os" | "hub" | "oauth" | "llmGateway" | "gite
1319
1334
  export type PlatformServiceName = (typeof PLATFORM_SERVICE_NAMES)[number]
1320
1335
  ```
1321
1336
 
1337
+ ## `PollingBackoff` (class)
1338
+
1339
+ ```ts
1340
+ failed: (error: unknown) => void
1341
+ reset: () => void
1342
+ waitMs: () => number | false
1343
+ ```
1344
+
1322
1345
  ## `PostChatFollowup` (interface)
1323
1346
 
1324
1347
  ```ts