@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/README.md +22 -1
- package/dist/{chunk-PWJJJATA.js → chunk-6PM3EDZ7.js} +4 -2
- package/dist/chunk-6PM3EDZ7.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/resources/sessions.d.ts +11 -0
- package/package.json +1 -1
- package/public-api.md +14 -1
- package/dist/chunk-PWJJJATA.js.map +0 -1
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
package/dist/internal.js
CHANGED
|
@@ -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
package/public-api.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> 本文件由 `scripts/public-api-report.mjs` 生成,请勿手改。
|
|
4
4
|
> 公共面变更时重新生成本报告,并同步更新 README 对应章节——CI 会校验两者。
|
|
5
5
|
|
|
6
|
-
共
|
|
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
|