claudemesh-cli 1.31.1 → 1.31.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.
@@ -43,57 +43,33 @@ var __export = (target, all) => {
43
43
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
44
44
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
45
45
 
46
- // src/constants/paths.ts
46
+ // src/daemon/paths.ts
47
47
  import { homedir } from "node:os";
48
48
  import { join } from "node:path";
49
- var home, PATHS;
49
+ var DAEMON_DIR_ROOT, DAEMON_PATHS, DAEMON_TCP_HOST = "127.0.0.1", DAEMON_TCP_DEFAULT_PORT = 47823;
50
50
  var init_paths = __esm(() => {
51
- home = homedir();
52
- PATHS = {
53
- CONFIG_DIR: process.env.CLAUDEMESH_CONFIG_DIR || join(home, ".claudemesh"),
54
- get CONFIG_FILE() {
55
- return join(this.CONFIG_DIR, "config.json");
56
- },
57
- get AUTH_FILE() {
58
- return join(this.CONFIG_DIR, "auth.json");
59
- },
60
- get KEYS_DIR() {
61
- return join(this.CONFIG_DIR, "keys");
62
- },
63
- get LAST_USED_FILE() {
64
- return join(this.CONFIG_DIR, "last-used.json");
65
- },
66
- CLAUDE_JSON: join(home, ".claude.json"),
67
- CLAUDE_SETTINGS: join(home, ".claude", "settings.json")
68
- };
69
- });
70
-
71
- // src/daemon/paths.ts
72
- import { join as join2 } from "node:path";
73
- var DAEMON_PATHS, DAEMON_TCP_HOST = "127.0.0.1", DAEMON_TCP_DEFAULT_PORT = 47823;
74
- var init_paths2 = __esm(() => {
75
- init_paths();
51
+ DAEMON_DIR_ROOT = process.env.CLAUDEMESH_DAEMON_DIR || join(homedir(), ".claudemesh", "daemon");
76
52
  DAEMON_PATHS = {
77
53
  get DAEMON_DIR() {
78
- return join2(PATHS.CONFIG_DIR, "daemon");
54
+ return DAEMON_DIR_ROOT;
79
55
  },
80
56
  get PID_FILE() {
81
- return join2(this.DAEMON_DIR, "daemon.pid");
57
+ return join(this.DAEMON_DIR, "daemon.pid");
82
58
  },
83
59
  get SOCK_FILE() {
84
- return join2(this.DAEMON_DIR, "daemon.sock");
60
+ return join(this.DAEMON_DIR, "daemon.sock");
85
61
  },
86
62
  get TOKEN_FILE() {
87
- return join2(this.DAEMON_DIR, "local-token");
63
+ return join(this.DAEMON_DIR, "local-token");
88
64
  },
89
65
  get OUTBOX_DB() {
90
- return join2(this.DAEMON_DIR, "outbox.db");
66
+ return join(this.DAEMON_DIR, "outbox.db");
91
67
  },
92
68
  get INBOX_DB() {
93
- return join2(this.DAEMON_DIR, "inbox.db");
69
+ return join(this.DAEMON_DIR, "inbox.db");
94
70
  },
95
71
  get LOG_FILE() {
96
- return join2(this.DAEMON_DIR, "daemon.log");
72
+ return join(this.DAEMON_DIR, "daemon.log");
97
73
  }
98
74
  };
99
75
  });
@@ -120,6 +96,31 @@ var init_urls = __esm(() => {
120
96
  };
121
97
  });
122
98
 
99
+ // src/constants/paths.ts
100
+ import { homedir as homedir2 } from "node:os";
101
+ import { join as join2 } from "node:path";
102
+ var home, PATHS;
103
+ var init_paths2 = __esm(() => {
104
+ home = homedir2();
105
+ PATHS = {
106
+ CONFIG_DIR: process.env.CLAUDEMESH_CONFIG_DIR || join2(home, ".claudemesh"),
107
+ get CONFIG_FILE() {
108
+ return join2(this.CONFIG_DIR, "config.json");
109
+ },
110
+ get AUTH_FILE() {
111
+ return join2(this.CONFIG_DIR, "auth.json");
112
+ },
113
+ get KEYS_DIR() {
114
+ return join2(this.CONFIG_DIR, "keys");
115
+ },
116
+ get LAST_USED_FILE() {
117
+ return join2(this.CONFIG_DIR, "last-used.json");
118
+ },
119
+ CLAUDE_JSON: join2(home, ".claude.json"),
120
+ CLAUDE_SETTINGS: join2(home, ".claude", "settings.json")
121
+ };
122
+ });
123
+
123
124
  // src/services/config/schemas.ts
124
125
  function emptyConfig() {
125
126
  return { version: 1, meshes: [] };
@@ -153,7 +154,7 @@ function getMeshConfig(slug) {
153
154
  return config.meshes.find((m) => m.slug === slug);
154
155
  }
155
156
  var init_read = __esm(() => {
156
- init_paths();
157
+ init_paths2();
157
158
  });
158
159
 
159
160
  // src/services/config/write.ts
@@ -209,7 +210,7 @@ function removeMeshConfig(slug) {
209
210
  }
210
211
  var isWindows;
211
212
  var init_write = __esm(() => {
212
- init_paths();
213
+ init_paths2();
213
214
  init_read();
214
215
  isWindows = platform() === "win32";
215
216
  });
@@ -232,7 +233,7 @@ function getConfigPath() {
232
233
  var init_facade = __esm(() => {
233
234
  init_read();
234
235
  init_write();
235
- init_paths();
236
+ init_paths2();
236
237
  });
237
238
 
238
239
  // src/services/crypto/keypair.ts
@@ -416,9 +417,9 @@ function detectClaudeSessionId() {
416
417
  try {
417
418
  const { readdirSync, statSync, readFileSync: readFileSync2 } = __require("node:fs");
418
419
  const { join: join3 } = __require("node:path");
419
- const { homedir: homedir2 } = __require("node:os");
420
+ const { homedir: homedir3 } = __require("node:os");
420
421
  const cwd = process.cwd();
421
- const projectsDir = join3(homedir2(), ".claude", "projects");
422
+ const projectsDir = join3(homedir3(), ".claude", "projects");
422
423
  const cwdHash = cwd.replace(/\//g, "-");
423
424
  const entries = readdirSync(projectsDir);
424
425
  const projectDir = entries.find((e) => e === cwdHash || e.startsWith(cwdHash));
@@ -3050,7 +3051,7 @@ async function startServiceProxy(serviceName) {
3050
3051
  }
3051
3052
  var DAEMON_BOOT_RETRIES = 4, DAEMON_BOOT_RETRY_MS = 500;
3052
3053
  var init_server = __esm(() => {
3053
- init_paths2();
3054
+ init_paths();
3054
3055
  init_urls();
3055
3056
  init_facade();
3056
3057
  init_facade3();
@@ -3064,4 +3065,4 @@ startMcpServer().catch((err) => {
3064
3065
  process.exit(1);
3065
3066
  });
3066
3067
 
3067
- //# debugId=871A01F81635000064756E2164756E21
3068
+ //# debugId=FBBBC3014D751FAC64756E2164756E21