claudemesh-cli 1.30.1 → 1.30.2

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.30.1", env;
107
+ var URLS, VERSION = "1.30.2", env;
108
108
  var init_urls = __esm(() => {
109
109
  URLS = {
110
110
  BROKER: process.env.CLAUDEMESH_BROKER_URL ?? "wss://ic.claudemesh.com/ws",
@@ -11526,8 +11526,7 @@ function installDarwin(args) {
11526
11526
  `<string>${escapeXml(args.binaryPath)}</string>`,
11527
11527
  "<string>daemon</string>",
11528
11528
  "<string>up</string>",
11529
- "<string>--mesh</string>",
11530
- `<string>${escapeXml(args.meshSlug)}</string>`,
11529
+ ...args.meshSlug ? ["<string>--mesh</string>", `<string>${escapeXml(args.meshSlug)}</string>`] : [],
11531
11530
  ...args.displayName ? ["<string>--name</string>", `<string>${escapeXml(args.displayName)}</string>`] : []
11532
11531
  ].join(`
11533
11532
  `);
@@ -11593,8 +11592,7 @@ function installLinux(args) {
11593
11592
  const execArgs = [
11594
11593
  "daemon",
11595
11594
  "up",
11596
- "--mesh",
11597
- args.meshSlug,
11595
+ ...args.meshSlug ? ["--mesh", args.meshSlug] : [],
11598
11596
  ...args.displayName ? ["--name", args.displayName] : []
11599
11597
  ].map(shellQuote).join(" ");
11600
11598
  const content = `[Unit]
@@ -11817,11 +11815,6 @@ async function runInstallService(opts) {
11817
11815
  const platform5 = detectPlatform2();
11818
11816
  if (!platform5) {
11819
11817
  process.stderr.write(`unsupported platform: ${process.platform}
11820
- `);
11821
- return 2;
11822
- }
11823
- if (!opts.mesh) {
11824
- process.stderr.write(`pass --mesh <slug> so the service knows which mesh to attach to
11825
11818
  `);
11826
11819
  return 2;
11827
11820
  }
@@ -11839,8 +11832,8 @@ async function runInstallService(opts) {
11839
11832
  try {
11840
11833
  const r = installService2({
11841
11834
  binaryPath: binary,
11842
- meshSlug: opts.mesh,
11843
- displayName: opts.displayName
11835
+ ...opts.mesh ? { meshSlug: opts.mesh } : {},
11836
+ ...opts.displayName ? { displayName: opts.displayName } : {}
11844
11837
  });
11845
11838
  if (opts.json) {
11846
11839
  process.stdout.write(JSON.stringify({ ok: true, ...r }) + `
@@ -12326,17 +12319,15 @@ function runInstall(args = []) {
12326
12319
  }
12327
12320
  }
12328
12321
  let hasMeshes = false;
12329
- let primaryMesh;
12330
12322
  try {
12331
12323
  const meshConfig = readConfig();
12332
12324
  hasMeshes = meshConfig.meshes.length > 0;
12333
- primaryMesh = meshConfig.meshes[0]?.slug;
12334
12325
  } catch {}
12335
- if (!skipService && hasMeshes && primaryMesh) {
12326
+ if (!skipService && hasMeshes) {
12336
12327
  try {
12337
- installDaemonService(entry, primaryMesh);
12328
+ installDaemonService(entry);
12338
12329
  } catch (e) {
12339
- render.warn(`daemon service install failed: ${e instanceof Error ? e.message : String(e)}`, "Run `claudemesh daemon install-service --mesh <slug>` to retry.");
12330
+ render.warn(`daemon service install failed: ${e instanceof Error ? e.message : String(e)}`, "Run `claudemesh daemon install-service` to retry.");
12340
12331
  }
12341
12332
  } else if (skipService) {
12342
12333
  render.info(dim("· Daemon service skipped (--no-service)"));
@@ -12362,7 +12353,7 @@ function runInstall(args = []) {
12362
12353
  render.info(dim(` claudemesh install --status-line # live peer count in Claude Code`));
12363
12354
  render.info(dim(` claudemesh completions zsh # shell completions`));
12364
12355
  }
12365
- function installDaemonService(binaryEntry, meshSlug) {
12356
+ function installDaemonService(binaryEntry) {
12366
12357
  const {
12367
12358
  installService: installService2,
12368
12359
  detectPlatform: detectPlatform2
@@ -12378,15 +12369,15 @@ function installDaemonService(binaryEntry, meshSlug) {
12378
12369
  const { execSync: execSync3 } = __require("node:child_process");
12379
12370
  binary = execSync3("which claudemesh", { encoding: "utf8" }).trim();
12380
12371
  } catch {
12381
- render.warn("couldn't resolve a 'claudemesh' binary on PATH; daemon service skipped", "Install via npm/homebrew, then run `claudemesh daemon install-service --mesh " + meshSlug + "`");
12372
+ render.warn("couldn't resolve a 'claudemesh' binary on PATH; daemon service skipped", "Install via npm/homebrew, then run `claudemesh daemon install-service`");
12382
12373
  return;
12383
12374
  }
12384
12375
  }
12385
- const r = installService2({ binaryPath: binary, meshSlug });
12376
+ const r = installService2({ binaryPath: binary });
12386
12377
  render.ok(`daemon service installed (${r.platform})`);
12387
12378
  render.kv([
12388
12379
  ["unit", dim(r.unitPath)],
12389
- ["mesh", dim(meshSlug)]
12380
+ ["mesh", dim("(all joined meshes)")]
12390
12381
  ]);
12391
12382
  try {
12392
12383
  const { execSync: execSync3 } = __require("node:child_process");
@@ -19902,4 +19893,4 @@ main().catch((err) => {
19902
19893
  process.exit(EXIT.INTERNAL_ERROR);
19903
19894
  });
19904
19895
 
19905
- //# debugId=6DFC8CA65CBA4E0364756E2164756E21
19896
+ //# debugId=1914F24E0644F66A64756E2164756E21