claudemesh-cli 1.19.1 → 1.19.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.19.
|
|
91
|
+
var URLS, VERSION = "1.19.3", env;
|
|
92
92
|
var init_urls = __esm(() => {
|
|
93
93
|
URLS = {
|
|
94
94
|
BROKER: process.env.CLAUDEMESH_BROKER_URL ?? "wss://ic.claudemesh.com/ws",
|
|
@@ -5145,9 +5145,26 @@ async function rename(slug, newName) {
|
|
|
5145
5145
|
}
|
|
5146
5146
|
try {
|
|
5147
5147
|
await renameMesh2(slug, newName);
|
|
5148
|
+
const cfg = readConfig();
|
|
5149
|
+
const local = cfg.meshes.find((m) => m.slug === slug);
|
|
5150
|
+
if (local)
|
|
5151
|
+
setMeshConfig(slug, { ...local, name: newName });
|
|
5148
5152
|
console.log(` ${green(icons.check)} Renamed "${slug}" to "${newName}"`);
|
|
5153
|
+
console.log(` ${dim('(slug stays "' + slug + '" — only the display name changed)')}`);
|
|
5149
5154
|
return EXIT.SUCCESS;
|
|
5150
5155
|
} catch (err) {
|
|
5156
|
+
if (err instanceof ApiError) {
|
|
5157
|
+
const body = err.body;
|
|
5158
|
+
const detail = body?.error ?? err.statusText;
|
|
5159
|
+
console.error(` ${icons.cross} ${detail}`);
|
|
5160
|
+
if (err.status === 401)
|
|
5161
|
+
return EXIT.AUTH_FAILED;
|
|
5162
|
+
if (err.status === 403)
|
|
5163
|
+
return EXIT.PERMISSION_DENIED;
|
|
5164
|
+
if (err.status === 404)
|
|
5165
|
+
return EXIT.NOT_FOUND;
|
|
5166
|
+
return EXIT.INTERNAL_ERROR;
|
|
5167
|
+
}
|
|
5151
5168
|
console.error(` ${icons.cross} Failed: ${err instanceof Error ? err.message : err}`);
|
|
5152
5169
|
return EXIT.INTERNAL_ERROR;
|
|
5153
5170
|
}
|
|
@@ -5155,6 +5172,8 @@ async function rename(slug, newName) {
|
|
|
5155
5172
|
var init_rename2 = __esm(() => {
|
|
5156
5173
|
init_facade10();
|
|
5157
5174
|
init_facade6();
|
|
5175
|
+
init_facade3();
|
|
5176
|
+
init_facade();
|
|
5158
5177
|
init_styles();
|
|
5159
5178
|
init_exit_codes();
|
|
5160
5179
|
});
|
|
@@ -16089,4 +16108,4 @@ main().catch((err) => {
|
|
|
16089
16108
|
process.exit(EXIT.INTERNAL_ERROR);
|
|
16090
16109
|
});
|
|
16091
16110
|
|
|
16092
|
-
//# debugId=
|
|
16111
|
+
//# debugId=77BC12B35C8B56DE64756E2164756E21
|