open-agents-ai 0.103.95 → 0.103.96

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9345,6 +9345,19 @@ import { execSync as execSync16, spawn as spawn7 } from "node:child_process";
9345
9345
  import { existsSync as existsSync19, readFileSync as readFileSync14 } from "node:fs";
9346
9346
  import { join as join22, dirname as dirname9 } from "node:path";
9347
9347
  import { fileURLToPath as fileURLToPath5 } from "node:url";
9348
+ function findScrapeScript() {
9349
+ const candidates = [
9350
+ // Published npm package: dist/scripts/web_scrape.py
9351
+ join22(__dirname3, "scripts", "web_scrape.py"),
9352
+ // Published npm package (from node_modules): node_modules/open-agents-ai/dist/scripts/
9353
+ join22(__dirname3, "..", "node_modules", "open-agents-ai", "dist", "scripts", "web_scrape.py"),
9354
+ // Dev monorepo: packages/execution/src/tools/../../scripts/
9355
+ join22(__dirname3, "..", "..", "scripts", "web_scrape.py"),
9356
+ // Dev monorepo alt: packages/execution/scripts/
9357
+ join22(__dirname3, "..", "scripts", "web_scrape.py")
9358
+ ];
9359
+ return candidates.find((p) => existsSync19(p)) || candidates[0];
9360
+ }
9348
9361
  async function probeService() {
9349
9362
  try {
9350
9363
  const controller = new AbortController();
@@ -9430,13 +9443,13 @@ async function apiCall(endpoint, method = "POST", body) {
9430
9443
  const res = await fetch(url, options);
9431
9444
  return await res.json();
9432
9445
  }
9433
- var __dirname3, SCRAPE_SCRIPT, DEFAULT_PORT, BASE_URL, serviceProcess, activeSessionId, BrowserActionTool;
9446
+ var __dirname3, DEFAULT_PORT, SCRAPE_SCRIPT, BASE_URL, serviceProcess, activeSessionId, BrowserActionTool;
9434
9447
  var init_browser_action = __esm({
9435
9448
  "packages/execution/dist/tools/browser-action.js"() {
9436
9449
  "use strict";
9437
9450
  __dirname3 = dirname9(fileURLToPath5(import.meta.url));
9438
- SCRAPE_SCRIPT = join22(__dirname3, "..", "..", "scripts", "web_scrape.py");
9439
9451
  DEFAULT_PORT = 8130;
9452
+ SCRAPE_SCRIPT = findScrapeScript();
9440
9453
  BASE_URL = `http://localhost:${DEFAULT_PORT}`;
9441
9454
  serviceProcess = null;
9442
9455
  activeSessionId = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.103.95",
3
+ "version": "0.103.96",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",