claudemesh-cli 1.0.0-alpha.34 → 1.0.0-alpha.35

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.
@@ -2646,10 +2646,9 @@ class BrokerClient {
2646
2646
  if (msg.type === "ack") {
2647
2647
  const pending = this.pendingSends.get(String(msg.id ?? ""));
2648
2648
  if (pending) {
2649
- pending.resolve({
2650
- ok: true,
2651
- messageId: String(msg.messageId ?? "")
2652
- });
2649
+ const queued = msg.queued !== false;
2650
+ const errStr = typeof msg.error === "string" ? msg.error : undefined;
2651
+ pending.resolve(queued ? { ok: true, messageId: String(msg.messageId ?? "") } : { ok: false, error: errStr ?? "broker rejected send" });
2653
2652
  this.pendingSends.delete(pending.id);
2654
2653
  }
2655
2654
  return;
@@ -3494,7 +3493,7 @@ __export(exports_urls, {
3494
3493
  VERSION: () => VERSION,
3495
3494
  URLS: () => URLS
3496
3495
  });
3497
- var URLS, VERSION = "1.0.0-alpha.34", env;
3496
+ var URLS, VERSION = "1.0.0-alpha.35", env;
3498
3497
  var init_urls = __esm(() => {
3499
3498
  URLS = {
3500
3499
  BROKER: process.env.CLAUDEMESH_BROKER_URL ?? "wss://ic.claudemesh.com/ws",
@@ -6533,4 +6532,4 @@ startMcpServer().catch((err) => {
6533
6532
  process.exit(1);
6534
6533
  });
6535
6534
 
6536
- //# debugId=8F33C4D68058778464756E2164756E21
6535
+ //# debugId=834272C9BF820F5E64756E2164756E21