@blade-hq/agent-client 2612.0.0-beta.10 → 2612.0.0-beta.11

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 CHANGED
@@ -161,8 +161,16 @@ const first = index.items[0] // SessionTurnIndexItem
161
161
  ```
162
162
 
163
163
  创建会话时可以绑定 Streamable HTTP MCP 来源;BA 会在创建成功前读取并保存工具列表,
164
- 来源此时必须可访问且接受创建请求中的 Bearer 凭据。之后工具列表在该会话中固定,
165
- 来源默认按 lazy 模式提供,只有列在 `eager_tools` 的工具直接进入模型函数列表。
164
+ 来源此时必须可访问且接受创建请求中的 Bearer 凭据。之后沿用已发现的工具目录,
165
+ 刷新来源时更新目录。默认 `exposure: "lazy"` 通过 `plugin_list`、`plugin_inspect`、
166
+ `plugin_run` 发现和调用工具;`exposure: "eager"` 会将 `include_tools` 允许的工具和完整
167
+ 参数 schema 直接加入执行模式的模型工具列表,无需先 inspect。`eager_tools` 可在 lazy
168
+ 来源中选出直接暴露的工具,也可指定 eager 来源中的优先工具。主运行和子智能体使用相同
169
+ 策略,计划模式不加载。直接工具的名称为 `mcp_<来源>__<工具>_<hash>`,调用仍经 Go MCP
170
+ dispatcher。会话 MCP 的可用工具名称按来源注入 `plugin_catalog`,lazy 工具完整 schema
171
+ 仍由 `plugin_inspect` 按需读取。每个运行最多直接加载 32 个工具、64 KiB 完整工具定义;
172
+ 超预算的工具仍可通过
173
+ `plugin_inspect/plugin_run` 使用。
166
174
  Bearer 凭据只在创建或轮换时提交,查询不会返回它:
167
175
 
168
176
  ```ts
@@ -1,6 +1,6 @@
1
1
  // src/version.ts
2
2
  var SDK_NAME = "agent-client";
3
- var SDK_VERSION = true ? "2612.0.0-beta.10" : "1.1.1";
3
+ var SDK_VERSION = true ? "2612.0.0-beta.11" : "1.1.1";
4
4
 
5
5
  // src/auth-login.ts
6
6
  function isAuthCallbackMessage(value) {
@@ -8267,4 +8267,4 @@ export {
8267
8267
  createSocket,
8268
8268
  BladeClient
8269
8269
  };
8270
- //# sourceMappingURL=chunk-GPA2SOZK.js.map
8270
+ //# sourceMappingURL=chunk-SCG5SRXE.js.map
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  normalizeTopicAssetRefs,
20
20
  transformSlashCommand,
21
21
  userFacingErrorText
22
- } from "./chunk-GPA2SOZK.js";
22
+ } from "./chunk-SCG5SRXE.js";
23
23
  export {
24
24
  AgentSession,
25
25
  AgentSessionError,
package/dist/internal.js CHANGED
@@ -82,7 +82,7 @@ import {
82
82
  withTurns,
83
83
  workflowEntriesFromOutput,
84
84
  workflowNameFromArguments
85
- } from "./chunk-GPA2SOZK.js";
85
+ } from "./chunk-SCG5SRXE.js";
86
86
 
87
87
  // src/polling-backoff.ts
88
88
  var MAX_BACKOFF_MS = 6e4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blade-hq/agent-client",
3
- "version": "2612.0.0-beta.10",
3
+ "version": "2612.0.0-beta.11",
4
4
  "description": "Blade Agent 框架无关客户端:会话实时状态机、REST 通道、弹窗登录、页面协作。浏览器与 Node.js 通用。",
5
5
  "repository": {
6
6
  "type": "git",