@blade-hq/agent-client 2612.0.0-beta.2 → 2612.0.0-beta.3

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/index.d.ts CHANGED
@@ -20,7 +20,7 @@ export type { RunOptions, RunResult, RunTrace } from "./types/sdk-profile";
20
20
  export type { ModelsResource, ModelCatalog, ModelOption } from "./resources/models";
21
21
  export type { ComputersResource } from "./resources/computers";
22
22
  export type { AccountComputer, SessionComputer } from "./resources/computers";
23
- export type { AppCliAttachment, AppCliDefinition, CreateSessionRequest, FileEntry, PaginatedSessionsResult, SessionsResource, SessionTurnsPage, SessionTurnsQuery, UploadFileEntry, UploadFilesOptions, } from "./resources/sessions";
23
+ export type { AppCliAttachment, AppCliDefinition, CreateSessionRequest, McpSourceConfig, FileEntry, PaginatedSessionsResult, SessionsResource, SessionTurnsPage, SessionTurnsQuery, UploadFileEntry, UploadFilesOptions, } from "./resources/sessions";
24
24
  export { DEFAULT_REPLAY_SPEED, SessionInfo, SessionStatus } from "./schemas/session";
25
25
  export type { ReplaySpeed, ReplayState, SessionDetail } from "./schemas/session";
26
26
  export type { ChatMessage, FileContentPart, ImageUrlContentPart, MemoryRefInfo, MessageContent, MessageContentPart, TextContentPart, ToolCallInfo, } from "./schemas/message";
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  groupMessagesByLoop,
18
18
  transformSlashCommand,
19
19
  userFacingErrorText
20
- } from "./chunk-PWJJJATA.js";
20
+ } from "./chunk-6PM3EDZ7.js";
21
21
  export {
22
22
  AgentSession,
23
23
  AgentSessionError,
package/dist/internal.js CHANGED
@@ -80,7 +80,7 @@ import {
80
80
  withTurns,
81
81
  workflowEntriesFromOutput,
82
82
  workflowNameFromArguments
83
- } from "./chunk-PWJJJATA.js";
83
+ } from "./chunk-6PM3EDZ7.js";
84
84
 
85
85
  // src/polling-backoff.ts
86
86
  var MAX_BACKOFF_MS = 6e4;
@@ -92,6 +92,9 @@ export interface CreateSessionRequest {
92
92
  memory_enabled?: boolean | null;
93
93
  env?: Record<string, string>;
94
94
  disable_tools?: string[] | null;
95
+ mcp_sources?: McpSourceConfig[];
96
+ /** 此会话的所有普通轮次直接执行工具,不弹审批。 */
97
+ skip_confirmations?: boolean;
95
98
  session_solution_asset_id?: string | null;
96
99
  compaction_ratio?: number | null;
97
100
  runtime_type?: "sandbox" | "daemon" | "native" | null;
@@ -100,6 +103,14 @@ export interface CreateSessionRequest {
100
103
  agent_runtime_id?: string | null;
101
104
  chat_group_id?: string | null;
102
105
  }
106
+ export interface McpSourceConfig {
107
+ id: string;
108
+ url: string;
109
+ bearer_token?: string | null;
110
+ exposure?: "lazy" | "eager";
111
+ include_tools?: string[] | null;
112
+ eager_tools?: string[];
113
+ }
103
114
  export interface CheckpointNode {
104
115
  id: string;
105
116
  parent_id: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blade-hq/agent-client",
3
- "version": "2612.0.0-beta.2",
3
+ "version": "2612.0.0-beta.3",
4
4
  "description": "Blade Agent 框架无关客户端:会话实时状态机、REST 通道、弹窗登录、页面协作。浏览器与 Node.js 通用。",
5
5
  "repository": {
6
6
  "type": "git",
package/public-api.md CHANGED
@@ -3,7 +3,7 @@
3
3
  > 本文件由 `scripts/public-api-report.mjs` 生成,请勿手改。
4
4
  > 公共面变更时重新生成本报告,并同步更新 README 对应章节——CI 会校验两者。
5
5
 
6
- 共 89 个公开声明。
6
+ 共 90 个公开声明。
7
7
 
8
8
  ## `AccountComputer` (interface)
9
9
 
@@ -302,11 +302,13 @@ disable_tools: string[] | null | undefined
302
302
  enable_thinking: boolean | null | undefined
303
303
  env: Record<string, string> | undefined
304
304
  intent: string | undefined
305
+ mcp_sources: McpSourceConfig[] | undefined
305
306
  memory_enabled: boolean | null | undefined
306
307
  model: string | null | undefined
307
308
  primary_skill_id: string | null | undefined
308
309
  runtime_type: "sandbox" | "daemon" | "native" | null | undefined
309
310
  session_solution_asset_id: string | null | undefined
311
+ skip_confirmations: boolean | undefined
310
312
  solution_id: string | undefined
311
313
  solution_ref: PublishedSolutionRef | undefined
312
314
  solution_snapshot_session_id: string | undefined
@@ -407,6 +409,17 @@ token: string
407
409
  user: { id?: string; username?: string; display_name?: string; } | undefined
408
410
  ```
409
411
 
412
+ ## `McpSourceConfig` (interface)
413
+
414
+ ```ts
415
+ bearer_token: string | null | undefined
416
+ eager_tools: string[] | undefined
417
+ exposure: "lazy" | "eager" | undefined
418
+ id: string
419
+ include_tools: string[] | null | undefined
420
+ url: string
421
+ ```
422
+
410
423
  ## `MemoryRefInfo` (interface)
411
424
 
412
425
  ```ts