claudemesh-cli 1.34.11 → 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.
@@ -81,7 +81,7 @@ __export(exports_urls, {
81
81
  VERSION: () => VERSION,
82
82
  URLS: () => URLS
83
83
  });
84
- var URLS, VERSION = "1.34.11", env;
84
+ var URLS, VERSION = "1.34.13", env;
85
85
  var init_urls = __esm(() => {
86
86
  URLS = {
87
87
  BROKER: process.env.CLAUDEMESH_BROKER_URL ?? "wss://ic.claudemesh.com/ws",
@@ -2754,17 +2754,20 @@ function daemonMarkSeen(ids, sessionToken) {
2754
2754
  req.end();
2755
2755
  });
2756
2756
  }
2757
- function subscribeEvents(onEvent) {
2757
+ function subscribeEvents(onEvent, opts = {}) {
2758
2758
  let active = true;
2759
2759
  let req = null;
2760
2760
  const connect = () => {
2761
2761
  if (!active)
2762
2762
  return;
2763
+ const headers = { Accept: "text/event-stream" };
2764
+ if (opts.sessionToken)
2765
+ headers.Authorization = `ClaudeMesh-Session ${opts.sessionToken}`;
2763
2766
  req = httpRequest({
2764
2767
  socketPath: DAEMON_PATHS.SOCK_FILE,
2765
2768
  path: "/v1/events",
2766
2769
  method: "GET",
2767
- headers: { Accept: "text/event-stream" }
2770
+ headers
2768
2771
  });
2769
2772
  let buffer = "";
2770
2773
  req.on("response", (res) => {
@@ -3051,7 +3054,7 @@ ${mf.allowed_tools.map((t) => ` - ${t}`).join(`
3051
3054
  });
3052
3055
  } catch {}
3053
3056
  }
3054
- });
3057
+ }, { sessionToken: sessionTokenForSeen });
3055
3058
  const WELCOME_GRACE_MS = 3000;
3056
3059
  let welcomeSent = false;
3057
3060
  server.oninitialized = () => {
@@ -3307,4 +3310,4 @@ startMcpServer().catch((err) => {
3307
3310
  process.exit(1);
3308
3311
  });
3309
3312
 
3310
- //# debugId=24CE56B638CEDC4B64756E2164756E21
3313
+ //# debugId=6C369F7C2A50542164756E2164756E21