claudemesh-cli 1.0.2 → 1.0.3
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.
package/dist/entrypoints/cli.js
CHANGED
|
@@ -88,7 +88,7 @@ __export(exports_urls, {
|
|
|
88
88
|
VERSION: () => VERSION,
|
|
89
89
|
URLS: () => URLS
|
|
90
90
|
});
|
|
91
|
-
var URLS, VERSION = "1.0.
|
|
91
|
+
var URLS, VERSION = "1.0.3", env;
|
|
92
92
|
var init_urls = __esm(() => {
|
|
93
93
|
URLS = {
|
|
94
94
|
BROKER: process.env.CLAUDEMESH_BROKER_URL ?? "wss://ic.claudemesh.com/ws",
|
|
@@ -10168,7 +10168,19 @@ async function startMcpServer() {
|
|
|
10168
10168
|
if (serviceIdx !== -1 && process.argv[serviceIdx + 1]) {
|
|
10169
10169
|
return startServiceProxy(process.argv[serviceIdx + 1]);
|
|
10170
10170
|
}
|
|
10171
|
+
const meshIdx = process.argv.indexOf("--mesh");
|
|
10172
|
+
const onlyMesh = meshIdx !== -1 ? process.argv[meshIdx + 1] : null;
|
|
10171
10173
|
const config = readConfig();
|
|
10174
|
+
if (onlyMesh) {
|
|
10175
|
+
const available = config.meshes.map((m) => m.slug);
|
|
10176
|
+
const filtered = config.meshes.filter((m) => m.slug === onlyMesh);
|
|
10177
|
+
if (filtered.length === 0) {
|
|
10178
|
+
process.stderr.write(`[claudemesh] --mesh "${onlyMesh}" not found in config. ` + `Joined meshes: ${available.join(", ") || "(none)"}
|
|
10179
|
+
`);
|
|
10180
|
+
process.exit(1);
|
|
10181
|
+
}
|
|
10182
|
+
config.meshes = filtered;
|
|
10183
|
+
}
|
|
10172
10184
|
const myName = config.displayName ?? "unnamed";
|
|
10173
10185
|
const myRole = config.role ?? process.env.CLAUDEMESH_ROLE ?? null;
|
|
10174
10186
|
const myGroups = (config.groups ?? []).map((g) => `@${g.name}${g.role ? ":" + g.role : ""}`).join(", ") || "none";
|
|
@@ -12854,4 +12866,4 @@ main().catch((err) => {
|
|
|
12854
12866
|
process.exit(EXIT.INTERNAL_ERROR);
|
|
12855
12867
|
});
|
|
12856
12868
|
|
|
12857
|
-
//# debugId=
|
|
12869
|
+
//# debugId=AC9613431467FF4964756E2164756E21
|