@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/{chunk-OV23WVWR.js → chunk-SNMDYU6W.js} +8 -6
- package/dist/chunk-SNMDYU6W.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/session/definition.d.ts +3 -0
- package/dist/tool-provider.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.md +2 -0
- package/dist/chunk-OV23WVWR.js.map +0 -1
|
@@ -196,7 +196,7 @@ var ToolProvider = class {
|
|
|
196
196
|
let response = { jsonrpc: "2.0", id: message.id };
|
|
197
197
|
try {
|
|
198
198
|
if (message.method === "tools/list") {
|
|
199
|
-
response.result = { tools: this.options.tools.map(({ name, description, inputSchema }) => ({ name, description, inputSchema })) };
|
|
199
|
+
response.result = { tools: this.options.tools.map(({ name, description, inputSchema, outputSchema }) => ({ name, description, inputSchema, ...outputSchema ? { outputSchema } : {} })) };
|
|
200
200
|
} else if (message.method === "tools/call") {
|
|
201
201
|
const params = message.params;
|
|
202
202
|
const tool = this.options.tools.find((t) => t.name === params?.name);
|
|
@@ -224,7 +224,7 @@ var ToolProvider = class {
|
|
|
224
224
|
|
|
225
225
|
// src/version.ts
|
|
226
226
|
var SDK_NAME = "agent-client";
|
|
227
|
-
var SDK_VERSION = true ? "2612.0.0-beta.
|
|
227
|
+
var SDK_VERSION = true ? "2612.0.0-beta.40" : "1.1.1";
|
|
228
228
|
|
|
229
229
|
// src/auth-login.ts
|
|
230
230
|
function isAuthCallbackMessage(value) {
|
|
@@ -1057,7 +1057,7 @@ function normalizeChildPause(pausePayload) {
|
|
|
1057
1057
|
}
|
|
1058
1058
|
function attachToolEvidence(call, evidence) {
|
|
1059
1059
|
if (!call) return;
|
|
1060
|
-
call.evidence = call.status === "done" && Array.isArray(evidence) ? evidence : void 0;
|
|
1060
|
+
call.evidence = (call.status === "done" || call.status === "error") && Array.isArray(evidence) ? evidence : void 0;
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
1063
|
// src/schemas/message.ts
|
|
@@ -2807,7 +2807,8 @@ function workflowEntriesFromSteps(steps) {
|
|
|
2807
2807
|
const logKey = ordered && typeof step.log_seq === "number" ? step.log_seq : base + 0.5;
|
|
2808
2808
|
const output = step.output ?? "";
|
|
2809
2809
|
if (step.status === "done" && stepKind === "step") {
|
|
2810
|
-
const
|
|
2810
|
+
const chars = Array.from(output);
|
|
2811
|
+
const shown = chars.length <= 300 ? output : `${chars.slice(0, 300).join("")}\u2026(\u5171${chars.length}\u5B57)`;
|
|
2811
2812
|
items.push({ key: logKey, entry: { kind: "log", text: ` \u2514 \u8F93\u51FA: ${shown || "(\u7A7A)"}`, stepId: step.step_id } });
|
|
2812
2813
|
}
|
|
2813
2814
|
if (step.status === "error" && output) {
|
|
@@ -3614,7 +3615,8 @@ var SessionsResource = class {
|
|
|
3614
3615
|
memory_enabled: config?.memoryEnabled,
|
|
3615
3616
|
compaction_ratio: config?.compactionRatio,
|
|
3616
3617
|
env: config?.env,
|
|
3617
|
-
disable_tools: config?.disableTools
|
|
3618
|
+
disable_tools: config?.disableTools,
|
|
3619
|
+
mcp_sources: config?.mcpSources
|
|
3618
3620
|
});
|
|
3619
3621
|
session_id = created.session_id;
|
|
3620
3622
|
} catch (error) {
|
|
@@ -9115,4 +9117,4 @@ export {
|
|
|
9115
9117
|
BladeClient,
|
|
9116
9118
|
BladeApplicationClient
|
|
9117
9119
|
};
|
|
9118
|
-
//# sourceMappingURL=chunk-
|
|
9120
|
+
//# sourceMappingURL=chunk-SNMDYU6W.js.map
|