claudemesh-cli 1.19.1 → 1.19.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.
@@ -88,7 +88,7 @@ __export(exports_urls, {
88
88
  VERSION: () => VERSION,
89
89
  URLS: () => URLS
90
90
  });
91
- var URLS, VERSION = "1.19.1", env;
91
+ var URLS, VERSION = "1.19.2", env;
92
92
  var init_urls = __esm(() => {
93
93
  URLS = {
94
94
  BROKER: process.env.CLAUDEMESH_BROKER_URL ?? "wss://ic.claudemesh.com/ws",
@@ -5148,6 +5148,18 @@ async function rename(slug, newName) {
5148
5148
  console.log(` ${green(icons.check)} Renamed "${slug}" to "${newName}"`);
5149
5149
  return EXIT.SUCCESS;
5150
5150
  } catch (err) {
5151
+ if (err instanceof ApiError) {
5152
+ const body = err.body;
5153
+ const detail = body?.error ?? err.statusText;
5154
+ console.error(` ${icons.cross} ${detail}`);
5155
+ if (err.status === 401)
5156
+ return EXIT.AUTH_FAILED;
5157
+ if (err.status === 403)
5158
+ return EXIT.PERMISSION_DENIED;
5159
+ if (err.status === 404)
5160
+ return EXIT.NOT_FOUND;
5161
+ return EXIT.INTERNAL_ERROR;
5162
+ }
5151
5163
  console.error(` ${icons.cross} Failed: ${err instanceof Error ? err.message : err}`);
5152
5164
  return EXIT.INTERNAL_ERROR;
5153
5165
  }
@@ -5155,6 +5167,7 @@ async function rename(slug, newName) {
5155
5167
  var init_rename2 = __esm(() => {
5156
5168
  init_facade10();
5157
5169
  init_facade6();
5170
+ init_facade3();
5158
5171
  init_styles();
5159
5172
  init_exit_codes();
5160
5173
  });
@@ -16089,4 +16102,4 @@ main().catch((err) => {
16089
16102
  process.exit(EXIT.INTERNAL_ERROR);
16090
16103
  });
16091
16104
 
16092
- //# debugId=3A1675403F5C48F564756E2164756E21
16105
+ //# debugId=C19F63EF3417F71E64756E2164756E21