claudemesh-cli 1.0.2 → 1.1.0

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.
@@ -3558,7 +3558,7 @@ __export(exports_urls, {
3558
3558
  VERSION: () => VERSION,
3559
3559
  URLS: () => URLS
3560
3560
  });
3561
- var URLS, VERSION = "1.0.2", env;
3561
+ var URLS, VERSION = "1.1.0", env;
3562
3562
  var init_urls = __esm(() => {
3563
3563
  URLS = {
3564
3564
  BROKER: process.env.CLAUDEMESH_BROKER_URL ?? "wss://ic.claudemesh.com/ws",
@@ -4604,12 +4604,34 @@ function formatPush(p, meshSlug) {
4604
4604
  return `[${meshSlug}]${tag} from ${p.senderPubkey.slice(0, 12)}… (${p.priority}, ${p.createdAt}):
4605
4605
  ${body}`;
4606
4606
  }
4607
+ function maybeWarnDeprecated(toolName) {
4608
+ const hint = DEPRECATED_TOOL_HINTS[toolName];
4609
+ if (!hint)
4610
+ return;
4611
+ if (warnedTools.has(toolName))
4612
+ return;
4613
+ warnedTools.add(toolName);
4614
+ process.stderr.write(`[claudemesh] mcp tool "${toolName}" is soft-deprecated in 1.1.0 ` + `and will be removed in 2.0.0. Use \`${hint}\` instead.
4615
+ `);
4616
+ }
4607
4617
  async function startMcpServer() {
4608
4618
  const serviceIdx = process.argv.indexOf("--service");
4609
4619
  if (serviceIdx !== -1 && process.argv[serviceIdx + 1]) {
4610
4620
  return startServiceProxy(process.argv[serviceIdx + 1]);
4611
4621
  }
4622
+ const meshIdx = process.argv.indexOf("--mesh");
4623
+ const onlyMesh = meshIdx !== -1 ? process.argv[meshIdx + 1] : null;
4612
4624
  const config = readConfig();
4625
+ if (onlyMesh) {
4626
+ const available = config.meshes.map((m) => m.slug);
4627
+ const filtered = config.meshes.filter((m) => m.slug === onlyMesh);
4628
+ if (filtered.length === 0) {
4629
+ process.stderr.write(`[claudemesh] --mesh "${onlyMesh}" not found in config. ` + `Joined meshes: ${available.join(", ") || "(none)"}
4630
+ `);
4631
+ process.exit(1);
4632
+ }
4633
+ config.meshes = filtered;
4634
+ }
4613
4635
  const myName = config.displayName ?? "unnamed";
4614
4636
  const myRole = config.role ?? process.env.CLAUDEMESH_ROLE ?? null;
4615
4637
  const myGroups = (config.groups ?? []).map((g) => `@${g.name}${g.role ? ":" + g.role : ""}`).join(", ") || "none";
@@ -4887,6 +4909,7 @@ ${manifest.allowed_tools.map((t) => ` - ${t}`).join(`
4887
4909
  if (config.meshes.length === 0) {
4888
4910
  return text("No meshes joined. Run `claudemesh join https://claudemesh.com/join/<token>` first.", true);
4889
4911
  }
4912
+ maybeWarnDeprecated(name);
4890
4913
  switch (name) {
4891
4914
  case "send_message": {
4892
4915
  const { to, message, priority } = args ?? {};
@@ -6650,12 +6673,40 @@ async function startServiceProxy(serviceName) {
6650
6673
  process.on("SIGTERM", shutdown);
6651
6674
  process.on("SIGINT", shutdown);
6652
6675
  }
6653
- var peerNameCache, peerNameCacheAge = 0, CACHE_TTL_MS = 30000;
6676
+ var peerNameCache, peerNameCacheAge = 0, CACHE_TTL_MS = 30000, DEPRECATED_TOOL_HINTS, warnedTools;
6654
6677
  var init_server = __esm(() => {
6655
6678
  init_definitions();
6656
6679
  init_facade();
6657
6680
  init_facade3();
6658
6681
  peerNameCache = new Map;
6682
+ DEPRECATED_TOOL_HINTS = {
6683
+ send_message: "claudemesh send <to> <msg> [--mesh X] [--priority Y]",
6684
+ list_peers: "claudemesh peers --json",
6685
+ check_messages: "claudemesh inbox --json",
6686
+ message_status: "claudemesh msg-status <id>",
6687
+ set_profile: "claudemesh profile --avatar X --bio Y",
6688
+ set_status: "claudemesh status set <state>",
6689
+ set_summary: "claudemesh summary <text>",
6690
+ set_visible: "claudemesh visible <true|false>",
6691
+ join_group: "claudemesh group join @<name> [--role X]",
6692
+ leave_group: "claudemesh group leave @<name>",
6693
+ get_state: "claudemesh state get <key> --json",
6694
+ set_state: "claudemesh state set <key> <value>",
6695
+ list_state: "claudemesh state list --json",
6696
+ remember: "claudemesh remember <text>",
6697
+ recall: "claudemesh recall <query> --json",
6698
+ forget: "claudemesh forget <id>",
6699
+ schedule_reminder: "claudemesh remind <msg> --in/--at/--cron",
6700
+ list_scheduled: "claudemesh remind list --json",
6701
+ cancel_scheduled: "claudemesh remind cancel <id>",
6702
+ mesh_info: "claudemesh info --json",
6703
+ mesh_stats: "claudemesh stats --json",
6704
+ mesh_clock: "claudemesh clock --json",
6705
+ ping_mesh: "claudemesh ping",
6706
+ claim_task: "claudemesh task claim <id>",
6707
+ complete_task: "claudemesh task complete <id>"
6708
+ };
6709
+ warnedTools = new Set;
6659
6710
  });
6660
6711
 
6661
6712
  // src/entrypoints/mcp.ts
@@ -6666,4 +6717,4 @@ startMcpServer().catch((err) => {
6666
6717
  process.exit(1);
6667
6718
  });
6668
6719
 
6669
- //# debugId=A81341937F86261564756E2164756E21
6720
+ //# debugId=E023B34F6601185064756E2164756E21