@blade-hq/agent-react 1.1.3 → 1.1.5
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/dist/embed/entry.d.ts +1 -0
- package/package.json +2 -2
- package/public-api.md +4 -2
package/dist/embed/entry.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ declare const BladeAgent: {
|
|
|
66
66
|
disable_tools?: string[] | undefined;
|
|
67
67
|
runtime_type?: string | null | undefined;
|
|
68
68
|
daemon_id?: string | null | undefined;
|
|
69
|
+
workspace_path?: string | null | undefined;
|
|
69
70
|
match?: unknown;
|
|
70
71
|
}, {}>;
|
|
71
72
|
SessionStatus: import("arktype/internal/variants/string.ts").StringType<"completed" | "created" | "failed" | "interrupted" | "running" | "waiting_for_input", {}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blade-hq/agent-react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
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.1.
|
|
31
|
+
"@blade-hq/agent-client": "1.1.5"
|
|
32
32
|
},
|
|
33
33
|
"bundledDependencies": [],
|
|
34
34
|
"peerDependencies": {
|
package/public-api.md
CHANGED
|
@@ -649,7 +649,7 @@ label: string
|
|
|
649
649
|
## `PatchEnvelope` (interface)
|
|
650
650
|
|
|
651
651
|
```ts
|
|
652
|
-
data: { turn?: TurnProjection; workspace_changed?: { tool_call_id?: string; tool_name?: string; }; }
|
|
652
|
+
data: { turn?: TurnProjection; workspace_changed?: { tool_call_id?: string; tool_name?: string; workspace_path?: string; }; }
|
|
653
653
|
loop_id: string
|
|
654
654
|
patch_type: string
|
|
655
655
|
sequence: number
|
|
@@ -824,6 +824,7 @@ status: "completed" | "failed" | "interrupted" | "running" | "created" | "waitin
|
|
|
824
824
|
template_id: TemplateId | null | undefined
|
|
825
825
|
updated_at: string
|
|
826
826
|
viewer_role: "owner" | "viewer" | undefined
|
|
827
|
+
workspace_path: string | null | undefined
|
|
827
828
|
```
|
|
828
829
|
|
|
829
830
|
## `SessionHistory` (interface)
|
|
@@ -882,6 +883,7 @@ SessionInfo = type({
|
|
|
882
883
|
"disable_tools?": "string[]",
|
|
883
884
|
"runtime_type?": "string | null",
|
|
884
885
|
"daemon_id?": "string | null",
|
|
886
|
+
"workspace_path?": "string | null",
|
|
885
887
|
"match?": "unknown",
|
|
886
888
|
})
|
|
887
889
|
```
|
|
@@ -935,7 +937,7 @@ createSessionWithRequest: (request: CreateSessionRequest) => Promise<{ session_i
|
|
|
935
937
|
createShare: (sessionId: string) => Promise<ShareLinkResult>
|
|
936
938
|
createWithProfile: (params: { intent: string; profile: SessionProfile; }) => Promise<{ session_id: string; }>
|
|
937
939
|
deleteFile: (sessionId: string, filePath: string) => Promise<void>
|
|
938
|
-
deleteSession: (sessionId: string) => Promise<{ deleted: boolean; }>
|
|
940
|
+
deleteSession: (sessionId: string, options?: { deleteWorkspace?: boolean; }) => Promise<{ deleted: boolean; workspace_deleted?: boolean; }>
|
|
939
941
|
downloadFile: (sessionId: string, filePath: string, downloadName?: string) => Promise<void>
|
|
940
942
|
exportSession: (sessionId: string) => Promise<void>
|
|
941
943
|
getBackgroundTask: (sessionId: string, taskId: string, tail?: number, init?: RequestInit) => Promise<BackgroundTask>
|