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/index.js CHANGED
@@ -49353,13 +49353,14 @@ var init_server_connection = __esm({
49353
49353
  reject(new Error(`Mesh command timed out after ${timeoutMs}ms`));
49354
49354
  }, timeoutMs);
49355
49355
  const handler = (msg) => {
49356
- if (msg.payload?.requestId !== requestId) return;
49356
+ const body = msg.payload && typeof msg.payload === "object" ? { ...msg, ...msg.payload } : msg;
49357
+ if (body.requestId !== requestId) return;
49357
49358
  this.off("daemon_mesh_result", handler);
49358
49359
  clearTimeout(timer);
49359
- if (msg.payload?.success === false) {
49360
- reject(new Error(msg.payload?.error ?? "Mesh command failed"));
49360
+ if (body.success === false) {
49361
+ reject(new Error(body.error ?? "Mesh command failed"));
49361
49362
  } else {
49362
- resolve20(msg.payload?.result);
49363
+ resolve20(body.result);
49363
49364
  }
49364
49365
  };
49365
49366
  this.on("daemon_mesh_result", handler);
@@ -59164,7 +59165,7 @@ var init_adhdev_daemon = __esm({
59164
59165
  init_version();
59165
59166
  init_src();
59166
59167
  init_runtime_defaults();
59167
- pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.6" });
59168
+ pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.7" });
59168
59169
  AdhdevDaemon = class _AdhdevDaemon {
59169
59170
  localHttpServer = null;
59170
59171
  localWss = null;