@eko-ai/eko-nodejs 2.1.7 → 2.1.8-alpha.1

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
@@ -13,7 +13,7 @@
13
13
 
14
14
  [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![Build Status](https://img.shields.io/badge/build-passing-brightgreen.svg)](https://example.com/build-status) [![Version](https://img.shields.io/github/package-json/v/FellouAI/eko?color=yellow)](https://eko.fellou.ai/docs/release/versions/)
15
15
 
16
- Eko (pronounced like echo) is a production-ready JavaScript framework that enables developers to create reliable agents, **from simple commands to complex workflows**. It provides a unified interface for running agents in both **computer and browser environments**.
16
+ Eko (pronounced like 'echo') is a production-ready JavaScript framework that enables developers to create reliable agents, **from simple commands to complex workflows**. It provides a unified interface for running agents in both **computer and browser environments**.
17
17
 
18
18
  ## Framework Comparison
19
19
 
@@ -118,3 +118,4 @@ Eko can be used in multiple environments:
118
118
  ## License
119
119
 
120
120
  Eko is released under the MIT License. See the [LICENSE](LICENSE) file for details.
121
+
package/dist/index.cjs.js CHANGED
@@ -150,7 +150,7 @@ class BrowserAgent extends eko.BaseBrowserLabelsAgent {
150
150
  }
151
151
  async execute_script(agentContext, func, args) {
152
152
  let page = await this.currentPage();
153
- return await page.evaluate(func, args);
153
+ return await page.evaluate(func, ...args);
154
154
  }
155
155
  async open_url(agentContext, url) {
156
156
  let browser_context = await this.getBrowserContext();