@blade-hq/agent-client 2612.0.0-beta.39 → 2612.0.0-beta.40

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.js CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  normalizeTopicAssetRefs,
25
25
  transformSlashCommand,
26
26
  userFacingErrorText
27
- } from "./chunk-OV23WVWR.js";
27
+ } from "./chunk-SNMDYU6W.js";
28
28
  export {
29
29
  AgentSession,
30
30
  AgentSessionError,
package/dist/internal.js CHANGED
@@ -89,7 +89,7 @@ import {
89
89
  withTurns,
90
90
  workflowEntriesFromOutput,
91
91
  workflowNameFromArguments
92
- } from "./chunk-OV23WVWR.js";
92
+ } from "./chunk-SNMDYU6W.js";
93
93
 
94
94
  // src/polling-backoff.ts
95
95
  var MAX_BACKOFF_MS = 6e4;
@@ -1,3 +1,4 @@
1
+ import type { McpSourceConfig } from "../resources/sessions";
1
2
  export type TextFile = {
2
3
  path: string;
3
4
  content: string;
@@ -23,6 +24,8 @@ export interface SkillDefinition {
23
24
  files: SkillFile[];
24
25
  }
25
26
  export interface SessionConfig {
27
+ /** Application tools bound at session creation, before any execution. */
28
+ mcpSources?: McpSourceConfig[];
26
29
  /** Server 模型目录中的 model ID。 */
27
30
  model?: string;
28
31
  enableThinking?: boolean;
@@ -3,6 +3,7 @@ export interface ProviderTool {
3
3
  name: string;
4
4
  description?: string;
5
5
  inputSchema: Record<string, unknown>;
6
+ outputSchema?: Record<string, unknown>;
6
7
  handler: (arguments_: Record<string, unknown>, context: {
7
8
  sessionId: string;
8
9
  signal: AbortSignal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blade-hq/agent-client",
3
- "version": "2612.0.0-beta.39",
3
+ "version": "2612.0.0-beta.40",
4
4
  "description": "Blade Agent 框架无关客户端:会话实时状态机、REST 通道、弹窗登录、页面协作。浏览器与 Node.js 通用。",
5
5
  "repository": {
6
6
  "type": "git",
package/public-api.md CHANGED
@@ -758,6 +758,7 @@ description: string | undefined
758
758
  handler: (arguments_: Record<string, unknown>, context: { sessionId: string; signal: AbortSignal; }) => Promise<ProviderToolResult>
759
759
  inputSchema: Record<string, unknown>
760
760
  name: string
761
+ outputSchema: Record<string, unknown> | undefined
761
762
  ```
762
763
 
763
764
  ## `ProviderToolResult` (interface)
@@ -931,6 +932,7 @@ compactionRatio: number | undefined
931
932
  disableTools: string[] | undefined
932
933
  enableThinking: boolean | undefined
933
934
  env: Record<string, string> | undefined
935
+ mcpSources: McpSourceConfig[] | undefined
934
936
  memoryEnabled: boolean | undefined
935
937
  model: string | undefined
936
938
  ```