@blade-hq/agent-react 1.1.12-beta.3 → 1.2.0-beta.1
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 +28 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blade-hq/agent-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0-beta.1",
|
|
4
4
|
"description": "Blade Agent React 绑定:BladeProvider、useAgentSession、开箱即用的 ChatView 聊天界面。",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@blade-hq/agent-client": "1.
|
|
31
|
+
"@blade-hq/agent-client": "1.2.0-beta.1"
|
|
32
32
|
},
|
|
33
33
|
"bundledDependencies": [],
|
|
34
34
|
"peerDependencies": {
|
package/public-api.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> 本文件由 `scripts/public-api-report.mjs` 生成,请勿手改。
|
|
4
4
|
> 公共面变更时重新生成本报告,并同步更新 README 对应章节——CI 会校验两者。
|
|
5
5
|
|
|
6
|
-
共
|
|
6
|
+
共 128 个公开声明。
|
|
7
7
|
|
|
8
8
|
## `ActiveCompactionState` (interface)
|
|
9
9
|
|
|
@@ -37,6 +37,7 @@ toolCallId: string
|
|
|
37
37
|
```ts
|
|
38
38
|
append: (text: string) => void
|
|
39
39
|
attach: (label: string, data: unknown) => void
|
|
40
|
+
attachApp: (options: AttachAppOptions) => Promise<AppCliAttachment | null>
|
|
40
41
|
compact: () => Promise<Record<string, unknown>>
|
|
41
42
|
countFiles: (dirPath?: string) => Promise<number>
|
|
42
43
|
dispose: () => void
|
|
@@ -84,6 +85,23 @@ toolResult: { toolCall: ToolCallInfo; turn: TurnProjection; }
|
|
|
84
85
|
workspaceChanged: { filePath?: string; }
|
|
85
86
|
```
|
|
86
87
|
|
|
88
|
+
## `AppCliAttachment` (interface)
|
|
89
|
+
|
|
90
|
+
```ts
|
|
91
|
+
command: string
|
|
92
|
+
digest: string
|
|
93
|
+
runtime: "python" | "executable"
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## `AppCliDefinition` (interface)
|
|
97
|
+
|
|
98
|
+
```ts
|
|
99
|
+
command: string
|
|
100
|
+
filename: string | undefined
|
|
101
|
+
runtime: "python" | "executable"
|
|
102
|
+
source: string | Blob | URL
|
|
103
|
+
```
|
|
104
|
+
|
|
87
105
|
## `ArchivedFileInfo` (interface)
|
|
88
106
|
|
|
89
107
|
```ts
|
|
@@ -119,6 +137,13 @@ export type AsrAudioPayload =
|
|
|
119
137
|
| { pcm: ArrayBuffer | Uint8Array; request_id?: string }
|
|
120
138
|
```
|
|
121
139
|
|
|
140
|
+
## `AttachAppOptions` (interface)
|
|
141
|
+
|
|
142
|
+
```ts
|
|
143
|
+
cli: AppCliDefinition | undefined
|
|
144
|
+
getContext: () => Record<string, unknown> | Promise<Record<string, unknown>>
|
|
145
|
+
```
|
|
146
|
+
|
|
122
147
|
## `AuthResource` (class)
|
|
123
148
|
|
|
124
149
|
```ts
|
|
@@ -927,6 +952,7 @@ export type SessionSetupStage = "solution" | "session" | "skill" | "connection"
|
|
|
927
952
|
## `SessionsResource` (class)
|
|
928
953
|
|
|
929
954
|
```ts
|
|
955
|
+
attachAppCli: (sessionId: string, definition: AppCliDefinition) => Promise<AppCliAttachment>
|
|
930
956
|
checkoutSession: (sessionId: string, checkpointId: string, position: "before" | "turn_end", mode?: "both" | "conversation" | "code", linear?: boolean) => Promise<{ id: string; content: string; position: string; mode?: string; files_restored?: boolean; linear?: boolean; }>
|
|
931
957
|
connect: (sessionId: string) => Promise<AgentSession>
|
|
932
958
|
copyFile: (sessionId: string, filePath: string) => Promise<{ path: string; }>
|
|
@@ -957,7 +983,7 @@ listSessionsPaginated: (params: { limit: number; offset: number; template_id_pre
|
|
|
957
983
|
listSessionsWithSkillData: () => Promise<SkillDevSession[]>
|
|
958
984
|
pinSession: (sessionId: string, pinned: boolean) => Promise<SessionInfo>
|
|
959
985
|
previewImport: (file: File) => Promise<ImportPreview>
|
|
960
|
-
probeSessionUrl: (sessionId: string, url: string) => Promise<{ reachable: boolean; }>
|
|
986
|
+
probeSessionUrl: (sessionId: string, url: string) => Promise<{ reachable: boolean; requires_proxy: boolean; }>
|
|
961
987
|
renameFile: (sessionId: string, filePath: string, newName: string) => Promise<{ path: string; }>
|
|
962
988
|
revokeShare: (sessionId: string, token: string) => Promise<{ revoked: boolean; }>
|
|
963
989
|
rewindSession: (sessionId: string, checkpointId: string) => Promise<{ id: string; content: string; }>
|