lensmcp 1.16.21 → 1.16.23

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.
@@ -20166,6 +20166,11 @@ function buildFlowDetail(rawEvents) {
20166
20166
  var { session } = createLensSession();
20167
20167
  var PORT = Number(process.env["LENSMCP_DASHBOARD_PORT"] ?? 4321);
20168
20168
  var DASH_BASE = (process.env["LENSMCP_DASHBOARD_BASE"] ?? "").replace(/\/+$/, "");
20169
+ var POD_WS_KEY = process.env["LENSMCP_WS_KEY"] ?? "";
20170
+ function podSockDir(service) {
20171
+ const tmp = process.env["TMPDIR"] ?? "/tmp";
20172
+ return POD_WS_KEY ? `${tmp}/${POD_WS_KEY}/${service}-devserver` : `${tmp}/${service}-devserver`;
20173
+ }
20169
20174
  async function snapshot2() {
20170
20175
  const uris = session.resources.list().sort();
20171
20176
  const resources = {};
@@ -20387,7 +20392,7 @@ function discoverDecls() {
20387
20392
  let podNames = [];
20388
20393
  if (service) {
20389
20394
  try {
20390
- podNames = readdirSync(`${process.env["TMPDIR"] ?? "/tmp"}/${service}-devserver`).filter((f) => f.endsWith(".sock")).map((f) => f.replace(".sock", "")).sort();
20395
+ podNames = readdirSync(podSockDir(service)).filter((f) => f.endsWith(".sock")).map((f) => f.replace(".sock", "")).sort();
20391
20396
  } catch {
20392
20397
  podNames = [];
20393
20398
  }
@@ -20449,7 +20454,7 @@ function clusterView() {
20449
20454
  if (!d.service)
20450
20455
  continue;
20451
20456
  try {
20452
- d.podNames = readdirSync(`${process.env["TMPDIR"] ?? "/tmp"}/${d.service}-devserver`).filter((f) => f.endsWith(".sock")).map((f) => f.replace(".sock", "")).sort();
20457
+ d.podNames = readdirSync(podSockDir(d.service)).filter((f) => f.endsWith(".sock")).map((f) => f.replace(".sock", "")).sort();
20453
20458
  } catch {
20454
20459
  d.podNames = [];
20455
20460
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lensmcp",
3
- "version": "1.16.21",
3
+ "version": "1.16.23",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -2,7 +2,7 @@
2
2
  "name": "lensmcp",
3
3
  "displayName": "LensMCP",
4
4
  "description": "The observability lens for coding agents. One command brings up the dev cluster gateway (every project.json `cluster` decl → its host on :443), the per-project lens dashboard at https://lensmcp.local/<project>/, and the MCP server your agent connects to — scoped automatically to whatever project you opened Claude Code in.",
5
- "version": "1.16.21",
5
+ "version": "1.16.23",
6
6
  "author": {
7
7
  "name": "David Antoon",
8
8
  "email": "davidmantoon@gmail.com"