claudemesh-cli 1.34.12 → 1.34.13

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.
@@ -104,7 +104,7 @@ __export(exports_urls, {
104
104
  VERSION: () => VERSION,
105
105
  URLS: () => URLS
106
106
  });
107
- var URLS, VERSION = "1.34.12", env;
107
+ var URLS, VERSION = "1.34.13", env;
108
108
  var init_urls = __esm(() => {
109
109
  URLS = {
110
110
  BROKER: process.env.CLAUDEMESH_BROKER_URL ?? "wss://ic.claudemesh.com/ws",
@@ -18683,17 +18683,20 @@ function daemonMarkSeen(ids, sessionToken) {
18683
18683
  req.end();
18684
18684
  });
18685
18685
  }
18686
- function subscribeEvents(onEvent) {
18686
+ function subscribeEvents(onEvent, opts = {}) {
18687
18687
  let active = true;
18688
18688
  let req = null;
18689
18689
  const connect = () => {
18690
18690
  if (!active)
18691
18691
  return;
18692
+ const headers = { Accept: "text/event-stream" };
18693
+ if (opts.sessionToken)
18694
+ headers.Authorization = `ClaudeMesh-Session ${opts.sessionToken}`;
18692
18695
  req = httpRequest2({
18693
18696
  socketPath: DAEMON_PATHS.SOCK_FILE,
18694
18697
  path: "/v1/events",
18695
18698
  method: "GET",
18696
- headers: { Accept: "text/event-stream" }
18699
+ headers
18697
18700
  });
18698
18701
  let buffer = "";
18699
18702
  req.on("response", (res) => {
@@ -18980,7 +18983,7 @@ ${mf.allowed_tools.map((t) => ` - ${t}`).join(`
18980
18983
  });
18981
18984
  } catch {}
18982
18985
  }
18983
- });
18986
+ }, { sessionToken: sessionTokenForSeen });
18984
18987
  const WELCOME_GRACE_MS = 3000;
18985
18988
  let welcomeSent = false;
18986
18989
  server.oninitialized = () => {
@@ -21213,4 +21216,4 @@ main().catch((err) => {
21213
21216
  process.exit(EXIT.INTERNAL_ERROR);
21214
21217
  });
21215
21218
 
21216
- //# debugId=B3ABB74B4F12DA0564756E2164756E21
21219
+ //# debugId=CB6FEE3C98D7D19864756E2164756E21