@blade-hq/agent-react 2610.0.0-beta.87 → 2610.0.0-beta.89
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 +2 -2
- package/public-api.md +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blade-hq/agent-react",
|
|
3
|
-
"version": "2610.0.0-beta.
|
|
3
|
+
"version": "2610.0.0-beta.89",
|
|
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.
|
|
34
|
+
"@blade-hq/agent-client": "2610.0.0-beta.89"
|
|
35
35
|
},
|
|
36
36
|
"bundledDependencies": [],
|
|
37
37
|
"peerDependencies": {
|
package/public-api.md
CHANGED
|
@@ -382,6 +382,7 @@ models: ModelsResource
|
|
|
382
382
|
onSocketReplaced: (listener: () => void) => () => void
|
|
383
383
|
options: BladeClientOptions
|
|
384
384
|
plugins: PluginsResource
|
|
385
|
+
requestCommand: (event: string, payload: Record<string, unknown>, timeoutMs: number) => Promise<Record<string, unknown>>
|
|
385
386
|
responseFromInit: (path: string, init?: RequestInit) => Promise<Response>
|
|
386
387
|
sessions: SessionsResource
|
|
387
388
|
setBaseUrl: (baseUrl: string) => void
|
|
@@ -397,6 +398,7 @@ token: string | null
|
|
|
397
398
|
|
|
398
399
|
```ts
|
|
399
400
|
baseUrl: string
|
|
401
|
+
commandTransport: ((event: string, payload: Record<string, unknown>, send: () => Promise<Record<string, unknown>>) => Promise<Record<string, unknown>>) | undefined
|
|
400
402
|
fetchImpl: { (input: RequestInfo | URL, init?: RequestInit): Promise<Response>; (input: string | URL | Request, init?: RequestInit): Promise<Response>; } | undefined
|
|
401
403
|
onRefreshSuccess: (() => void | Promise<void>) | undefined
|
|
402
404
|
socketToken: string | (() => string | null | undefined) | undefined
|
|
@@ -908,6 +910,7 @@ createSocket: (options: CreateSocketOptions) => TypedSocket
|
|
|
908
910
|
baseUrl: string
|
|
909
911
|
path: string | undefined
|
|
910
912
|
token: string | (() => string | null | undefined) | undefined
|
|
913
|
+
transports: ("polling" | "websocket")[] | undefined
|
|
911
914
|
```
|
|
912
915
|
|
|
913
916
|
## `CurrentPlanPanel` (function)
|