claudemesh-cli 0.1.13 → 0.1.14
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/index.js +13 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6514,7 +6514,7 @@ function loadConfig() {
|
|
|
6514
6514
|
if (!parsed || !Array.isArray(parsed.meshes)) {
|
|
6515
6515
|
return { version: 1, meshes: [] };
|
|
6516
6516
|
}
|
|
6517
|
-
return { version: 1, meshes: parsed.meshes };
|
|
6517
|
+
return { version: 1, meshes: parsed.meshes, displayName: parsed.displayName };
|
|
6518
6518
|
} catch (e) {
|
|
6519
6519
|
throw new Error(`Failed to load ${CONFIG_PATH}: ${e instanceof Error ? e.message : String(e)}`);
|
|
6520
6520
|
}
|
|
@@ -46441,7 +46441,7 @@ class BrokerClient {
|
|
|
46441
46441
|
memberId: this.mesh.memberId,
|
|
46442
46442
|
pubkey: this.mesh.pubkey,
|
|
46443
46443
|
sessionPubkey: this.sessionPubkey,
|
|
46444
|
-
displayName: process.env.CLAUDEMESH_DISPLAY_NAME || undefined,
|
|
46444
|
+
displayName: process.env.CLAUDEMESH_DISPLAY_NAME || this.opts.displayName || undefined,
|
|
46445
46445
|
sessionId: `${process.pid}-${Date.now()}`,
|
|
46446
46446
|
pid: process.pid,
|
|
46447
46447
|
cwd: process.cwd(),
|
|
@@ -46715,11 +46715,12 @@ function randomNonce() {
|
|
|
46715
46715
|
// src/ws/manager.ts
|
|
46716
46716
|
init_env();
|
|
46717
46717
|
var clients = new Map;
|
|
46718
|
+
var configDisplayName;
|
|
46718
46719
|
async function ensureClient(mesh) {
|
|
46719
46720
|
const existing = clients.get(mesh.meshId);
|
|
46720
46721
|
if (existing)
|
|
46721
46722
|
return existing;
|
|
46722
|
-
const client = new BrokerClient(mesh, { debug: env.CLAUDEMESH_DEBUG });
|
|
46723
|
+
const client = new BrokerClient(mesh, { debug: env.CLAUDEMESH_DEBUG, displayName: configDisplayName });
|
|
46723
46724
|
clients.set(mesh.meshId, client);
|
|
46724
46725
|
try {
|
|
46725
46726
|
await client.connect();
|
|
@@ -46727,6 +46728,7 @@ async function ensureClient(mesh) {
|
|
|
46727
46728
|
return client;
|
|
46728
46729
|
}
|
|
46729
46730
|
async function startClients(config2) {
|
|
46731
|
+
configDisplayName = config2.displayName;
|
|
46730
46732
|
await Promise.allSettled(config2.meshes.map(ensureClient));
|
|
46731
46733
|
}
|
|
46732
46734
|
function findClient(needle) {
|
|
@@ -47623,15 +47625,12 @@ async function confirmPermissions() {
|
|
|
47623
47625
|
const yellow = (s) => useColor ? `\x1B[33m${s}\x1B[39m` : s;
|
|
47624
47626
|
console.log(yellow(bold(" Autonomous mode")));
|
|
47625
47627
|
console.log("");
|
|
47626
|
-
console.log("
|
|
47627
|
-
console.log("
|
|
47628
|
-
console.log("
|
|
47629
|
-
console.log(" run automatically — the same as running claude with");
|
|
47630
|
-
console.log(" --dangerously-skip-permissions.");
|
|
47628
|
+
console.log(" Claude will send and receive peer messages without asking");
|
|
47629
|
+
console.log(" you first. Peers exchange text only — no file access,");
|
|
47630
|
+
console.log(" no tool calls, no code execution.");
|
|
47631
47631
|
console.log("");
|
|
47632
|
-
console.log(dim("
|
|
47633
|
-
console.log(dim("
|
|
47634
|
-
console.log(dim(" Skip this prompt next time with: claudemesh launch -y"));
|
|
47632
|
+
console.log(dim(" Same as: claude --dangerously-skip-permissions"));
|
|
47633
|
+
console.log(dim(" Skip this prompt: claudemesh launch -y"));
|
|
47635
47634
|
console.log("");
|
|
47636
47635
|
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
47637
47636
|
return new Promise((resolve2, reject) => {
|
|
@@ -47713,7 +47712,8 @@ async function runLaunch(extraArgs) {
|
|
|
47713
47712
|
const tmpDir = mkdtempSync(join4(tmpdir(), "claudemesh-"));
|
|
47714
47713
|
const sessionConfig = {
|
|
47715
47714
|
version: 1,
|
|
47716
|
-
meshes: [mesh]
|
|
47715
|
+
meshes: [mesh],
|
|
47716
|
+
displayName
|
|
47717
47717
|
};
|
|
47718
47718
|
writeFileSync4(join4(tmpDir, "config.json"), JSON.stringify(sessionConfig, null, 2) + `
|
|
47719
47719
|
`, "utf-8");
|
|
@@ -47786,7 +47786,7 @@ init_config();
|
|
|
47786
47786
|
// package.json
|
|
47787
47787
|
var package_default = {
|
|
47788
47788
|
name: "claudemesh-cli",
|
|
47789
|
-
version: "0.1.
|
|
47789
|
+
version: "0.1.14",
|
|
47790
47790
|
description: "Claude Code MCP client for claudemesh — peer mesh messaging between Claude sessions.",
|
|
47791
47791
|
keywords: [
|
|
47792
47792
|
"claude-code",
|