@remnic/plugin-openclaw 9.69.54 → 9.69.55

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/dist/index.js CHANGED
@@ -5244,9 +5244,10 @@ import { log as log2 } from "@remnic/core/logger";
5244
5244
  // src/bridge.ts
5245
5245
  import fs3 from "fs";
5246
5246
  import path6 from "path";
5247
- import { isIPv4, isIPv6 } from "net";
5247
+ import { isIPv6 } from "net";
5248
5248
  import { Worker } from "worker_threads";
5249
5249
  import { configPathCandidates, readCompatEnv } from "@remnic/core";
5250
+ import { isLoopbackHost } from "@remnic/core/runtime/http-transport.js";
5250
5251
 
5251
5252
  // src/bridge-health-worker.ts
5252
5253
  function runHealthWorker(request, data) {
@@ -6048,17 +6049,8 @@ function isDaemonRunning() {
6048
6049
  }
6049
6050
  function isLoopbackDaemonHost(host) {
6050
6051
  const normalized = host.trim().toLowerCase().replace(/^\[/, "").replace(/\]$/, "");
6051
- if (normalized === "localhost") return true;
6052
6052
  if (loopbackForWildcardBind(normalized) !== void 0) return true;
6053
- const ipv6 = canonicalIPv6(normalized);
6054
- if (ipv6 !== void 0) {
6055
- if (ipv6 === "::1") return true;
6056
- const mappedHex = /^::ffff:([0-9a-f]{1,4}):[0-9a-f]{1,4}$/.exec(ipv6);
6057
- if (mappedHex !== null) return Number.parseInt(mappedHex[1], 16) >> 8 === 127;
6058
- const mappedDotted = /^::ffff:(\d+\.\d+\.\d+\.\d+)$/.exec(ipv6);
6059
- return mappedDotted !== null && isIPv4(mappedDotted[1]) && mappedDotted[1].split(".")[0] === "127";
6060
- }
6061
- return isIPv4(normalized) && normalized.split(".")[0] === "127";
6053
+ return isLoopbackHost(normalized);
6062
6054
  }
6063
6055
  function canonicalIPv6(value) {
6064
6056
  if (!isIPv6(value)) return void 0;