@blade-hq/agent-react 1.2.1-alpha.1 → 1.2.1-alpha.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/dist/embed/entry.d.ts +1 -0
- package/package.json +2 -2
- package/public-api.md +22 -3
package/dist/embed/entry.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ declare const BladeAgent: {
|
|
|
53
53
|
model?: string | null | undefined;
|
|
54
54
|
enable_thinking?: boolean | null | undefined;
|
|
55
55
|
solution_id?: string | null | undefined;
|
|
56
|
+
solution_ref?: unknown;
|
|
56
57
|
biz_role_id?: string | null | undefined;
|
|
57
58
|
solution?: unknown;
|
|
58
59
|
plan_summary?: string | null | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blade-hq/agent-react",
|
|
3
|
-
"version": "1.2.1-alpha.
|
|
3
|
+
"version": "1.2.1-alpha.4",
|
|
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.2.1-alpha.
|
|
31
|
+
"@blade-hq/agent-client": "1.2.1-alpha.4"
|
|
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
|
+
共 130 个公开声明。
|
|
7
7
|
|
|
8
8
|
## `ActiveCompactionState` (interface)
|
|
9
9
|
|
|
@@ -405,6 +405,8 @@ primary_skill_id: string | null | undefined
|
|
|
405
405
|
runtime_type: "sandbox" | "daemon" | null | undefined
|
|
406
406
|
session_solution_asset_id: string | null | undefined
|
|
407
407
|
solution_id: string | undefined
|
|
408
|
+
solution_ref: PublishedSolutionRef | undefined
|
|
409
|
+
solution_snapshot_session_id: string | undefined
|
|
408
410
|
template_id: TemplateId | undefined
|
|
409
411
|
```
|
|
410
412
|
|
|
@@ -510,6 +512,13 @@ image_url: { url: string; }
|
|
|
510
512
|
type: "image_url"
|
|
511
513
|
```
|
|
512
514
|
|
|
515
|
+
## `ImportSessionOptions` (interface)
|
|
516
|
+
|
|
517
|
+
```ts
|
|
518
|
+
solution_ref: PublishedSolutionRef | undefined
|
|
519
|
+
solution_snapshot_session_id: string | undefined
|
|
520
|
+
```
|
|
521
|
+
|
|
513
522
|
## `InboundAction` (type)
|
|
514
523
|
|
|
515
524
|
```ts
|
|
@@ -727,6 +736,14 @@ password_enabled: boolean
|
|
|
727
736
|
providers: { name: string; authorize_url: string; }[]
|
|
728
737
|
```
|
|
729
738
|
|
|
739
|
+
## `PublishedSolutionRef` (type)
|
|
740
|
+
|
|
741
|
+
```ts
|
|
742
|
+
export type PublishedSolutionRef =
|
|
743
|
+
| { source: "builtin"; name: string }
|
|
744
|
+
| { source: "hub"; org: string; name: string }
|
|
745
|
+
```
|
|
746
|
+
|
|
730
747
|
## `RawEvent` (interface)
|
|
731
748
|
|
|
732
749
|
```ts
|
|
@@ -845,6 +862,7 @@ runtime_type: string | null | undefined
|
|
|
845
862
|
shared: boolean | undefined
|
|
846
863
|
solution: Solution | null | undefined
|
|
847
864
|
solution_id: string | null | undefined
|
|
865
|
+
solution_ref: PublishedSolutionRef | null | undefined
|
|
848
866
|
status: "completed" | "failed" | "interrupted" | "running" | "created" | "waiting_for_input"
|
|
849
867
|
template_id: TemplateId | null | undefined
|
|
850
868
|
updated_at: string
|
|
@@ -893,6 +911,7 @@ SessionInfo = type({
|
|
|
893
911
|
"model?": "string | null",
|
|
894
912
|
"enable_thinking?": "boolean | null",
|
|
895
913
|
"solution_id?": "string | null",
|
|
914
|
+
"solution_ref?": "unknown",
|
|
896
915
|
"biz_role_id?": "string | null",
|
|
897
916
|
"solution?": "unknown",
|
|
898
917
|
"plan_summary?": "string | null",
|
|
@@ -975,11 +994,11 @@ getSessionHistory: (sessionId: string, init?: RequestInit) => Promise<SessionHis
|
|
|
975
994
|
getSessionTasks: (sessionId: string) => Promise<Task[]>
|
|
976
995
|
getSessionTurns: (sessionId: string) => Promise<TurnProjection[]>
|
|
977
996
|
getSharedSession: (token: string) => Promise<TurnProjection[]>
|
|
978
|
-
importSession: (file: File, name?: string,
|
|
997
|
+
importSession: (file: File, name?: string, solutionOverride?: string | null | ImportSessionOptions) => Promise<{ session_id: string; }>
|
|
979
998
|
listBackgroundTasks: (sessionId: string, init?: RequestInit) => Promise<BackgroundTask[]>
|
|
980
999
|
listDir: (sessionId: string, dirPath: string) => Promise<FileEntry[]>
|
|
981
1000
|
listSessions: (template_id_prefix?: string, solution_id?: string) => Promise<SessionInfo[]>
|
|
982
|
-
listSessionsPaginated: (params: { limit: number; offset: number; template_id_prefix?: string; solution_id?: string; q?: string; }) => Promise<PaginatedSessionsResult>
|
|
1001
|
+
listSessionsPaginated: (params: { limit: number; offset: number; template_id_prefix?: string; solution_id?: string; solution_registry_id?: string; q?: string; }) => Promise<PaginatedSessionsResult>
|
|
983
1002
|
listSessionsWithSkillData: () => Promise<SkillDevSession[]>
|
|
984
1003
|
pinSession: (sessionId: string, pinned: boolean) => Promise<SessionInfo>
|
|
985
1004
|
previewImport: (file: File) => Promise<ImportPreview>
|