open-agents-ai 0.187.148 → 0.187.149

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 +17 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -256456,10 +256456,14 @@ var init_gps_location = __esm({
256456
256456
  init_system_auth();
256457
256457
  GPS_USB_IDS = [
256458
256458
  // ── GlobalSat / BU-series (SiRF Star IV, Prolific UART bridge) ──────────
256459
- { vid: "067b", pid: "2303", name: "BU-353N / BU-353S4 (Prolific PL2303)", baud: 4800, notes: "Most popular USB GPS puck" },
256460
- { vid: "067b", pid: "23a3", name: "BU-353S4 (Prolific PL2303GT)", baud: 4800 },
256461
- { vid: "067b", pid: "2304", name: "GlobalSat (Prolific PL2303HXD)", baud: 4800 },
256462
- { vid: "067b", pid: "aaa0", name: "GlobalSat (Prolific PL2303HX Rev A)", baud: 4800 },
256459
+ // BU-353N, BU-353S4, BU-363, BU-503, BU-355 all use Prolific UART chips
256460
+ // The BU-363 specifically is a common USB GPS puck with SiRF Star IV
256461
+ { vid: "067b", pid: "2303", name: "GlobalSat BU-353/363 (Prolific PL2303)", baud: 4800, notes: "Most popular USB GPS puck family" },
256462
+ { vid: "067b", pid: "23a3", name: "GlobalSat BU-353S4/363 (Prolific PL2303GT)", baud: 4800 },
256463
+ { vid: "067b", pid: "2304", name: "GlobalSat BU-series (Prolific PL2303HXD)", baud: 4800 },
256464
+ { vid: "067b", pid: "aaa0", name: "GlobalSat BU-series (Prolific PL2303HX Rev A)", baud: 4800 },
256465
+ { vid: "067b", pid: "aaa2", name: "GlobalSat BU-series (Prolific PL2303 var)", baud: 4800 },
256466
+ { vid: "067b", pid: "2300", name: "Prolific PL2300 (GPS serial)", baud: 4800 },
256463
256467
  // ── U-blox GNSS family (direct USB — ACM devices) ──────────────────────
256464
256468
  { vid: "1546", pid: "01a5", name: "U-blox 5 (LEA-5T)", baud: 9600 },
256465
256469
  { vid: "1546", pid: "01a6", name: "U-blox 6 (NEO-6M)", baud: 9600, notes: "Very common maker GPS" },
@@ -256899,16 +256903,24 @@ ${content.slice(0, 500)}`,
256899
256903
  "/dev/ttyACM1",
256900
256904
  "/dev/ttyACM2"
256901
256905
  ];
256906
+ const GPS_VENDOR_IDS = /* @__PURE__ */ new Set(["1546", "091e", "1163", "0df7", "16d0", "2c7c", "152a"]);
256907
+ const UART_BRIDGE_VIDS = /* @__PURE__ */ new Set(["067b", "10c4", "0403", "1a86"]);
256902
256908
  for (const dev of candidates) {
256903
256909
  if (!existsSync34(dev))
256904
256910
  continue;
256905
256911
  try {
256906
256912
  const udev = execSync36(`udevadm info --query=all --name=${dev} 2>/dev/null`, { encoding: "utf8", timeout: 3e3 });
256913
+ const vidMatch = udev.match(/ID_VENDOR_ID=([0-9a-f]+)/i);
256914
+ const vid = vidMatch?.[1]?.toLowerCase() || "";
256915
+ if (vid && GPS_VENDOR_IDS.has(vid))
256916
+ return dev;
256907
256917
  for (const gps of GPS_USB_IDS) {
256908
256918
  if (udev.toLowerCase().includes(gps.vid) && udev.toLowerCase().includes(gps.pid))
256909
256919
  return dev;
256910
256920
  }
256911
- if (/gps|gnss|sirf|ublox|u-blox|globalsat|garmin|trimble|quectel|septentrio/i.test(udev))
256921
+ if (vid && UART_BRIDGE_VIDS.has(vid) && dev.includes("ttyUSB"))
256922
+ return dev;
256923
+ if (/gps|gnss|sirf|ublox|u-blox|globalsat|garmin|trimble|quectel|septentrio|bu-353|bu-636|navsat/i.test(udev))
256912
256924
  return dev;
256913
256925
  } catch {
256914
256926
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.148",
3
+ "version": "0.187.149",
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",