@eko-ai/eko 3.0.8-alpha.2 → 3.0.9

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.esm.js CHANGED
@@ -34247,7 +34247,7 @@ class SimpleSseMcpClient {
34247
34247
  return message.result;
34248
34248
  }
34249
34249
  async request(method, params, signal) {
34250
- const id = method.startsWith("notifications/") ? null : uuidv4();
34250
+ const id = method.startsWith("notifications/") ? undefined : uuidv4();
34251
34251
  try {
34252
34252
  const callback = new Promise((resolve, reject) => {
34253
34253
  if (signal) {
@@ -34471,7 +34471,7 @@ class SimpleHttpMcpClient {
34471
34471
  }
34472
34472
  async request(method, params, signal) {
34473
34473
  try {
34474
- const id = method.startsWith("notifications/") ? null : uuidv4();
34474
+ const id = method.startsWith("notifications/") ? undefined : uuidv4();
34475
34475
  const extHeaders = {};
34476
34476
  if (this.mcpSessionId && method !== "initialize") {
34477
34477
  extHeaders["Mcp-Session-Id"] = this.mcpSessionId;
@@ -35615,7 +35615,9 @@ class Agent {
35615
35615
  return results.map((s) => s.text).join("\n\n");
35616
35616
  }
35617
35617
  const toolCalls = results.filter((s) => s.type == "tool-call");
35618
- if (toolCalls.length > 1 && this.canParallelToolCalls(toolCalls)) {
35618
+ if (toolCalls.length > 1 &&
35619
+ this.canParallelToolCalls(toolCalls) &&
35620
+ toolCalls.every((s) => agentTools.find((t) => t.name == s.toolName)?.supportParallelCalls)) {
35619
35621
  const results = await Promise.all(toolCalls.map((toolCall) => this.callToolCall(agentContext, agentTools, toolCall, user_messages)));
35620
35622
  for (let i = 0; i < results.length; i++) {
35621
35623
  toolResults.push(results[i]);