@voltagent/core 1.1.6 → 1.1.7
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 +4 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -3649,14 +3649,10 @@ var VoltAgentObservability = class {
|
|
|
3649
3649
|
try {
|
|
3650
3650
|
bridgeInitializer(this.loggerProvider);
|
|
3651
3651
|
} catch (error) {
|
|
3652
|
-
console.error("[VoltAgentObservability] \u274C Failed to initialize Pino bridge:", error);
|
|
3653
3652
|
this.logger.error("[VoltAgentObservability] Failed to initialize Pino bridge", { error });
|
|
3654
3653
|
}
|
|
3655
3654
|
} else {
|
|
3656
|
-
|
|
3657
|
-
"[VoltAgentObservability] \u26A0\uFE0F Pino OpenTelemetry bridge not available - @voltagent/logger may not be installed"
|
|
3658
|
-
);
|
|
3659
|
-
this.logger.warn("[VoltAgentObservability] Pino OpenTelemetry bridge not available");
|
|
3655
|
+
this.logger.trace("[VoltAgentObservability] Pino OpenTelemetry bridge not available");
|
|
3660
3656
|
}
|
|
3661
3657
|
}
|
|
3662
3658
|
/**
|
|
@@ -12264,7 +12260,9 @@ var import_stdio = require("@modelcontextprotocol/sdk/client/stdio.js");
|
|
|
12264
12260
|
var import_streamableHttp = require("@modelcontextprotocol/sdk/client/streamableHttp.js");
|
|
12265
12261
|
var import_protocol = require("@modelcontextprotocol/sdk/shared/protocol.js");
|
|
12266
12262
|
var import_types6 = require("@modelcontextprotocol/sdk/types.js");
|
|
12263
|
+
var import_zod7 = require("zod");
|
|
12267
12264
|
var import_zod_from_json_schema = require("zod-from-json-schema");
|
|
12265
|
+
var import_zod_from_json_schema_v3 = require("zod-from-json-schema-v3");
|
|
12268
12266
|
var MCPClient = class extends import_node_events5.EventEmitter {
|
|
12269
12267
|
static {
|
|
12270
12268
|
__name(this, "MCPClient");
|
|
@@ -12503,7 +12501,7 @@ var MCPClient = class extends import_node_events5.EventEmitter {
|
|
|
12503
12501
|
const executableTools = {};
|
|
12504
12502
|
for (const toolDef of Object.values(definitions)) {
|
|
12505
12503
|
try {
|
|
12506
|
-
const zodSchema = (
|
|
12504
|
+
const zodSchema = ("toJSONSchema" in import_zod7.z ? import_zod_from_json_schema.convertJsonSchemaToZod : import_zod_from_json_schema_v3.convertJsonSchemaToZod)(
|
|
12507
12505
|
toolDef.inputSchema
|
|
12508
12506
|
);
|
|
12509
12507
|
const namespacedToolName = `${this.clientInfo.name}_${toolDef.name}`;
|