@osfactory/har 1.14.2 → 1.14.3

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 +5 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -39011,7 +39011,7 @@ function defaultAppPort(base, agentId, step) {
39011
39011
  function slotPortLaneEnd(defaultPort, step) {
39012
39012
  return defaultPort + step - 1;
39013
39013
  }
39014
- function isPortInUse(port, host = "127.0.0.1") {
39014
+ function probeTcpPort(port, host) {
39015
39015
  try {
39016
39016
  (0, import_child_process6.execSync)(`bash -c 'exec 3<>/dev/tcp/${host}/${port}'`, { stdio: "ignore" });
39017
39017
  return true;
@@ -39019,6 +39019,10 @@ function isPortInUse(port, host = "127.0.0.1") {
39019
39019
  return false;
39020
39020
  }
39021
39021
  }
39022
+ function isPortInUse(port, host) {
39023
+ if (host !== void 0) return probeTcpPort(port, host);
39024
+ return probeTcpPort(port, "127.0.0.1") || probeTcpPort(port, "::1");
39025
+ }
39022
39026
  function pickFreePort(start, end) {
39023
39027
  for (let port = start; port <= end; port++) {
39024
39028
  if (!isPortInUse(port)) return port;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osfactory/har",
3
- "version": "1.14.2",
3
+ "version": "1.14.3",
4
4
  "description": "HAR: open agent harness CLI and MCP server for coding agents, isolated worktrees, and software-factory workflows",
5
5
  "keywords": [
6
6
  "har",