@blade-hq/agent-react 2610.0.0-beta.44 → 2610.0.0-beta.45

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.
@@ -41,6 +41,7 @@ declare const BladeAgent: {
41
41
  computerState: typeof agentClient.computerState;
42
42
  sortComputers: typeof agentClient.sortComputers;
43
43
  ModelsResource: typeof agentClient.ModelsResource;
44
+ ChatProjectsResource: typeof agentClient.ChatProjectsResource;
44
45
  hasChatRunEvent: typeof agentClient.hasChatRunEvent;
45
46
  buildMessageContent: typeof agentClient.buildMessageContent;
46
47
  chatErrorForDisplay: typeof agentClient.chatErrorForDisplay;
@@ -94,6 +95,7 @@ declare const BladeAgent: {
94
95
  workspace_path?: string | null | undefined;
95
96
  ba_version?: string | null | undefined;
96
97
  sandbox_version?: string | null | undefined;
98
+ chat_project_id?: string | null | undefined;
97
99
  match?: unknown;
98
100
  }, {}>;
99
101
  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": "2610.0.0-beta.44",
3
+ "version": "2610.0.0-beta.45",
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.44"
34
+ "@blade-hq/agent-client": "2610.0.0-beta.45"
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
- 238 个公开声明。
6
+ 240 个公开声明。
7
7
 
8
8
  ## `acceptedPostChatFollowupCompletesLatestRun` (function)
9
9
 
@@ -257,6 +257,7 @@ statusText: string
257
257
  auth: AuthResource
258
258
  blob: (method: HttpMethod, path: string) => Promise<Blob>
259
259
  buildAuthedUrl: (path: string) => string
260
+ chatProjects: ChatProjectsResource
260
261
  computers: ComputersResource
261
262
  fetch: (method: HttpMethod, path: string, init?: BladeFetchInit, isRetry?: boolean) => Promise<Response>
262
263
  formData: (method: HttpMethod, path: string, form: FormData, options?: { expectOk?: boolean; onUploadProgress?: (progress: UploadProgress) => void; }) => Promise<Response>
@@ -350,6 +351,25 @@ timestamp: string | undefined
350
351
  tool_calls: ToolCallInfo[] | undefined
351
352
  ```
352
353
 
354
+ ## `ChatProject` (interface)
355
+
356
+ ```ts
357
+ created_at: string
358
+ id: string
359
+ instructions: string
360
+ name: string
361
+ session_count: number
362
+ updated_at: string
363
+ ```
364
+
365
+ ## `ChatProjectsResource` (class)
366
+
367
+ ```ts
368
+ create: (payload: { name: string; instructions?: string; }) => Promise<ChatProject>
369
+ list: () => Promise<ChatProject[]>
370
+ update: (projectId: string, payload: { name?: string; instructions?: string; }) => Promise<ChatProject>
371
+ ```
372
+
353
373
  ## `ChatView` (function)
354
374
 
355
375
  ```ts
@@ -623,6 +643,7 @@ createInitialSessionState: (sessionId: string) => SessionState
623
643
  ```ts
624
644
  agent_runtime_id: string | null | undefined
625
645
  biz_role_id: string | null | undefined
646
+ chat_project_id: string | null | undefined
626
647
  compaction_ratio: number | null | undefined
627
648
  daemon_id: string | null | undefined
628
649
  disable_tools: string[] | null | undefined
@@ -1617,6 +1638,7 @@ agent_runtime_id: string | null | undefined
1617
1638
  ba_version: string | null | undefined
1618
1639
  biz_role_id: string | null | undefined
1619
1640
  bound_skill_id: string | null | undefined
1641
+ chat_project_id: string | null | undefined
1620
1642
  created_at: string
1621
1643
  daemon_id: string | null | undefined
1622
1644
  disable_tools: (string[] & string[]) | undefined
@@ -1712,6 +1734,7 @@ SessionInfo = type({
1712
1734
  "workspace_path?": "string | null",
1713
1735
  "ba_version?": "string | null",
1714
1736
  "sandbox_version?": "string | null",
1737
+ "chat_project_id?": "string | null",
1715
1738
  "match?": "unknown",
1716
1739
  })
1717
1740
  ```
@@ -1807,7 +1830,7 @@ listBackgroundTasks: (sessionId: string, init?: RequestInit) => Promise<Backgrou
1807
1830
  listDir: (sessionId: string, dirPath: string) => Promise<FileEntry[]>
1808
1831
  listResultFeedback: (sessionId: string) => Promise<ResultFeedback[]>
1809
1832
  listSessions: (template_id_prefix?: string, solution_id?: string) => Promise<SessionInfo[]>
1810
- listSessionsPaginated: (params: { limit: number; offset: number; template_id_prefix?: string; solution_id?: string; solution_registry_id?: string; q?: string; }) => Promise<PaginatedSessionsResult>
1833
+ listSessionsPaginated: (params: { limit: number; offset: number; template_id_prefix?: string; solution_id?: string; solution_registry_id?: string; q?: string; chat_project_id?: string; }) => Promise<PaginatedSessionsResult>
1811
1834
  listSessionsWithSkillData: () => Promise<SkillDevSession[]>
1812
1835
  pinSession: (sessionId: string, pinned: boolean) => Promise<SessionInfo>
1813
1836
  previewImport: (file: File) => Promise<ImportPreview>