@agentconnect.md/computer 2.12.0-rc.1 → 2.12.0-rc.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.
@@ -28823,7 +28823,7 @@ var require_multicast_dns = __commonJS({
28823
28823
  var net2 = networks[names[i]];
28824
28824
  for (var j = 0; j < net2.length; j++) {
28825
28825
  var iface = net2[j];
28826
- if (isIPv45(iface.family) && !iface.internal) {
28826
+ if (isIPv46(iface.family) && !iface.internal) {
28827
28827
  if (os2.platform() === "darwin" && names[i] === "en0") return iface.address;
28828
28828
  return "0.0.0.0";
28829
28829
  }
@@ -28839,7 +28839,7 @@ var require_multicast_dns = __commonJS({
28839
28839
  var net2 = networks[names[i]];
28840
28840
  for (var j = 0; j < net2.length; j++) {
28841
28841
  var iface = net2[j];
28842
- if (isIPv45(iface.family)) {
28842
+ if (isIPv46(iface.family)) {
28843
28843
  res.push(iface.address);
28844
28844
  break;
28845
28845
  }
@@ -28847,7 +28847,7 @@ var require_multicast_dns = __commonJS({
28847
28847
  }
28848
28848
  return res;
28849
28849
  }
28850
- function isIPv45(family) {
28850
+ function isIPv46(family) {
28851
28851
  return family === 4 || family === "IPv4";
28852
28852
  }
28853
28853
  }
@@ -60753,7 +60753,7 @@ var require_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
60753
60753
  }));
60754
60754
  var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
60755
60755
  const isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
60756
- const isIPv45 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
60756
+ const isIPv46 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
60757
60757
  const isPort = RegExp.prototype.test.bind(/^\d*$/u);
60758
60758
  const isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
60759
60759
  const isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
@@ -60840,7 +60840,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
60840
60840
  const part = parts[i];
60841
60841
  if (part === "") return void 0;
60842
60842
  if (part.indexOf(".") !== -1) {
60843
- if (i !== parts.length - 1 || compression !== -1 && right.length === 0 || !isIPv45(part)) return void 0;
60843
+ if (i !== parts.length - 1 || compression !== -1 && right.length === 0 || !isIPv46(part)) return void 0;
60844
60844
  hextetCount += 2;
60845
60845
  continue;
60846
60846
  }
@@ -61165,7 +61165,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
61165
61165
  }
61166
61166
  if (component.host !== void 0) {
61167
61167
  let host = component.host;
61168
- if (!isIPv45(host)) {
61168
+ if (!isIPv46(host)) {
61169
61169
  let ipV6res = normalizeIPv6(host);
61170
61170
  if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
61171
61171
  host = normalizePercentEncoding(host, true);
@@ -61197,7 +61197,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
61197
61197
  encodeFragment,
61198
61198
  escapePreservingEscapes,
61199
61199
  removeDotSegments,
61200
- isIPv4: isIPv45,
61200
+ isIPv4: isIPv46,
61201
61201
  isUUID,
61202
61202
  normalizeIPv6,
61203
61203
  stringArrayToHexStripped
@@ -61352,7 +61352,7 @@ var require_schemes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
61352
61352
  };
61353
61353
  }));
61354
61354
  var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
61355
- const { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4: isIPv45, nonSimpleDomain } = require_utils();
61355
+ const { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4: isIPv46, nonSimpleDomain } = require_utils();
61356
61356
  const { SCHEMES, getSchemeHandler } = require_schemes();
61357
61357
  const VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
61358
61358
  const MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
@@ -61374,7 +61374,7 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
61374
61374
  const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
61375
61375
  const resolvedSchemeHandler = getSchemeHandler(options && options.scheme || resolved.scheme);
61376
61376
  const resolvedHost = resolved.host;
61377
- const resolvedHostIsIP = resolvedHost !== void 0 && resolvedHost !== "" && (isIPv45(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
61377
+ const resolvedHostIsIP = resolvedHost !== void 0 && resolvedHost !== "" && (isIPv46(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
61378
61378
  canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
61379
61379
  const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !new RegExp("\\P{ASCII}", "u").test(resolvedHost);
61380
61380
  if (resolved.error && !encodedASCIIHost) throw new Error(resolved.error);
@@ -61574,7 +61574,7 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
61574
61574
  parsed.error = parsed.error || parseError;
61575
61575
  malformedAuthorityOrPort = true;
61576
61576
  }
61577
- if (parsed.host) if (isIPv45(parsed.host) === false) {
61577
+ if (parsed.host) if (isIPv46(parsed.host) === false) {
61578
61578
  const bracketedIPLiteral = isIPLiteral(parsed.host);
61579
61579
  const hasIPLiteralBracket = parsed.host.indexOf("[") !== -1 || parsed.host.indexOf("]") !== -1;
61580
61580
  const ipv6result = normalizeIPv6(parsed.host);
@@ -76350,7 +76350,7 @@ var require_data2 = /* @__PURE__ */ __commonJSMin2(((exports, module) => {
76350
76350
  }));
76351
76351
  var require_utils2 = /* @__PURE__ */ __commonJSMin2(((exports, module) => {
76352
76352
  const isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
76353
- const isIPv45 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
76353
+ const isIPv46 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
76354
76354
  const isPort = RegExp.prototype.test.bind(/^\d*$/u);
76355
76355
  const isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
76356
76356
  const isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
@@ -76437,7 +76437,7 @@ var require_utils2 = /* @__PURE__ */ __commonJSMin2(((exports, module) => {
76437
76437
  const part = parts[i];
76438
76438
  if (part === "") return void 0;
76439
76439
  if (part.indexOf(".") !== -1) {
76440
- if (i !== parts.length - 1 || compression !== -1 && right.length === 0 || !isIPv45(part)) return void 0;
76440
+ if (i !== parts.length - 1 || compression !== -1 && right.length === 0 || !isIPv46(part)) return void 0;
76441
76441
  hextetCount += 2;
76442
76442
  continue;
76443
76443
  }
@@ -76762,7 +76762,7 @@ var require_utils2 = /* @__PURE__ */ __commonJSMin2(((exports, module) => {
76762
76762
  }
76763
76763
  if (component.host !== void 0) {
76764
76764
  let host = component.host;
76765
- if (!isIPv45(host)) {
76765
+ if (!isIPv46(host)) {
76766
76766
  let ipV6res = normalizeIPv6(host);
76767
76767
  if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
76768
76768
  host = normalizePercentEncoding(host, true);
@@ -76794,7 +76794,7 @@ var require_utils2 = /* @__PURE__ */ __commonJSMin2(((exports, module) => {
76794
76794
  encodeFragment,
76795
76795
  escapePreservingEscapes,
76796
76796
  removeDotSegments,
76797
- isIPv4: isIPv45,
76797
+ isIPv4: isIPv46,
76798
76798
  isUUID,
76799
76799
  normalizeIPv6,
76800
76800
  stringArrayToHexStripped
@@ -76949,7 +76949,7 @@ var require_schemes2 = /* @__PURE__ */ __commonJSMin2(((exports, module) => {
76949
76949
  };
76950
76950
  }));
76951
76951
  var require_fast_uri2 = /* @__PURE__ */ __commonJSMin2(((exports, module) => {
76952
- const { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4: isIPv45, nonSimpleDomain } = require_utils2();
76952
+ const { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4: isIPv46, nonSimpleDomain } = require_utils2();
76953
76953
  const { SCHEMES, getSchemeHandler } = require_schemes2();
76954
76954
  const VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
76955
76955
  const MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
@@ -76971,7 +76971,7 @@ var require_fast_uri2 = /* @__PURE__ */ __commonJSMin2(((exports, module) => {
76971
76971
  const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
76972
76972
  const resolvedSchemeHandler = getSchemeHandler(options && options.scheme || resolved.scheme);
76973
76973
  const resolvedHost = resolved.host;
76974
- const resolvedHostIsIP = resolvedHost !== void 0 && resolvedHost !== "" && (isIPv45(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
76974
+ const resolvedHostIsIP = resolvedHost !== void 0 && resolvedHost !== "" && (isIPv46(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
76975
76975
  canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
76976
76976
  const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !new RegExp("\\P{ASCII}", "u").test(resolvedHost);
76977
76977
  if (resolved.error && !encodedASCIIHost) throw new Error(resolved.error);
@@ -77171,7 +77171,7 @@ var require_fast_uri2 = /* @__PURE__ */ __commonJSMin2(((exports, module) => {
77171
77171
  parsed.error = parsed.error || parseError;
77172
77172
  malformedAuthorityOrPort = true;
77173
77173
  }
77174
- if (parsed.host) if (isIPv45(parsed.host) === false) {
77174
+ if (parsed.host) if (isIPv46(parsed.host) === false) {
77175
77175
  const bracketedIPLiteral = isIPLiteral(parsed.host);
77176
77176
  const hasIPLiteralBracket = parsed.host.indexOf("[") !== -1 || parsed.host.indexOf("]") !== -1;
77177
77177
  const ipv6result = normalizeIPv6(parsed.host);
@@ -88758,7 +88758,7 @@ var serviceEntry = () => managedEntry() ?? resolve2(process.argv[1]);
88758
88758
 
88759
88759
  // src/version.ts
88760
88760
  init_define_AGENTCONNECT_COMPUTER_WINDOWS_SOURCES();
88761
- var COMPUTER_DAEMON_VERSION = true ? "2.12.0-rc.1" : JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8")).version;
88761
+ var COMPUTER_DAEMON_VERSION = true ? "2.12.0-rc.9" : JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8")).version;
88762
88762
 
88763
88763
  // src/http-server.ts
88764
88764
  var CONTROL_HEADER = "x-agentconnect-computer";
@@ -89219,6 +89219,7 @@ function encodeArgs(settings, filters, rtpPort) {
89219
89219
  // src/stream/rtc.ts
89220
89220
  init_define_AGENTCONNECT_COMPUTER_WINDOWS_SOURCES();
89221
89221
  import { randomUUID as randomUUID12 } from "node:crypto";
89222
+ import { isIPv4 as isIPv45 } from "node:net";
89222
89223
 
89223
89224
  // ../../node_modules/.pnpm/werift@0.25.2_supports-color@7.2.0/node_modules/werift/lib/index.mjs
89224
89225
  init_define_AGENTCONNECT_COMPUTER_WINDOWS_SOURCES();
@@ -111605,12 +111606,14 @@ var RtcSessions = class {
111605
111606
  };
111606
111607
  }
111607
111608
  const address = advertiseAddress ?? offer.hostAddress?.replace(/^::ffff:/, "");
111609
+ const bound = !advertiseAddress && address && isIPv45(address) ? { iceInterfaceAddresses: { udp4: address } } : {};
111608
111610
  return {
111609
111611
  ...base,
111610
111612
  // ICE-lite host candidates only: no STUN round trip (werift would otherwise default to Google's), one transport.
111611
111613
  iceLite: true,
111612
111614
  iceServers: [],
111613
111615
  ...address ? { iceAdditionalHostAddresses: [address] } : {},
111616
+ ...bound,
111614
111617
  ...portRange ? { icePortRange: portRange } : {}
111615
111618
  };
111616
111619
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentconnect.md/computer",
3
- "version": "2.12.0-rc.1",
3
+ "version": "2.12.0-rc.9",
4
4
  "description": "AgentConnect computer daemon: drives a desktop through Cua Driver and serves the computer_* tools over MCP; installed and upgraded by agentconnect computer",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {