adhdev 0.9.76-rc.6 → 0.9.76-rc.7

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/cli/index.js CHANGED
@@ -80989,13 +80989,14 @@ var init_server_connection = __esm({
80989
80989
  reject(new Error(`Mesh command timed out after ${timeoutMs}ms`));
80990
80990
  }, timeoutMs);
80991
80991
  const handler = (msg) => {
80992
- if (msg.payload?.requestId !== requestId) return;
80992
+ const body = msg.payload && typeof msg.payload === "object" ? { ...msg, ...msg.payload } : msg;
80993
+ if (body.requestId !== requestId) return;
80993
80994
  this.off("daemon_mesh_result", handler);
80994
80995
  clearTimeout(timer);
80995
- if (msg.payload?.success === false) {
80996
- reject(new Error(msg.payload?.error ?? "Mesh command failed"));
80996
+ if (body.success === false) {
80997
+ reject(new Error(body.error ?? "Mesh command failed"));
80997
80998
  } else {
80998
- resolve23(msg.payload?.result);
80999
+ resolve23(body.result);
80999
81000
  }
81000
81001
  };
81001
81002
  this.on("daemon_mesh_result", handler);
@@ -90306,7 +90307,7 @@ var init_adhdev_daemon = __esm({
90306
90307
  init_version();
90307
90308
  init_src();
90308
90309
  init_runtime_defaults();
90309
- pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.6" });
90310
+ pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.7" });
90310
90311
  AdhdevDaemon = class _AdhdevDaemon {
90311
90312
  localHttpServer = null;
90312
90313
  localWss = null;