@blade-hq/agent-client 2612.0.0-beta.18 → 2612.0.0-beta.19

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