@moewolf/moe-icons-cli 0.0.30 → 0.0.32

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "catalogVersion": "0.0.30",
4
- "sourceVersion": "0.0.30",
5
- "sourceCommit": "5622064c47b346ff8d006b4bfe3ccdade6fb92b7",
3
+ "catalogVersion": "0.0.31",
4
+ "sourceVersion": "0.0.31",
5
+ "sourceCommit": "9a50339bd4de52d786d9520a3d62c873a143e69a",
6
6
  "generatorCommit": "1ab9cb3d3d4c3321d63d9290b34c02a312f028cc",
7
7
  "manifestSchemaVersion": 2,
8
8
  "styleGroups": [
package/dist/cli.js CHANGED
@@ -11,7 +11,7 @@ import { join } from "node:path";
11
11
  import { runGenerateUseCase } from "./core/generate.js";
12
12
  import { recoverManagedReconcile, safeManagedPath } from "./project/install.js";
13
13
  import { withProjectLockSync } from "./project/project-lock.js";
14
- import { runInstallUseCase } from "./core/install.js";
14
+ import { classifyInstallError, runInstallUseCase } from "./core/install.js";
15
15
  import { runWizardUseCase, loginRecoveryChoices } from "./core/wizard.js";
16
16
  import { createCommandUi } from "./ui/create-ui.js";
17
17
  import { CLI_VERSION, MOEICONS_BANNER, renderNoticeBox, renderProjectNotice, renderWordmarkText, } from "./ui/banner.js";
@@ -946,6 +946,16 @@ async function runInstall(group, runtime, json, noTailwind, sourceVersion, expec
946
946
  }
947
947
  catch (error) {
948
948
  progress.stop("Icon library download stopped");
949
+ if (error instanceof CliError)
950
+ throw error;
951
+ const message = error instanceof Error ? error.message : String(error);
952
+ const reason = classifyInstallError(message);
953
+ if (reason === "forbidden")
954
+ throw new CliError("FORBIDDEN", message);
955
+ if (reason === "not-found")
956
+ throw new CliError("NOT_FOUND", message);
957
+ if (reason === "network")
958
+ throw new CliError("NETWORK_ERROR", message);
949
959
  throw error;
950
960
  }
951
961
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moewolf/moe-icons-cli",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "description": "Moeicons CLI: install React, Vue, Vanilla, or Assets icon targets, manage releases and login, and expose an MCP server.",
5
5
  "type": "module",
6
6
  "main": "./dist/cli.js",
@@ -74,5 +74,5 @@
74
74
  "fflate": "^0.8.2",
75
75
  "jsonc-parser": "^3.3.1"
76
76
  },
77
- "payloadHash": "0b32dcc2db11383714d53dfe58d99da1891889e0b5f181016693aadb61d7f03e"
77
+ "payloadHash": "87df34b0b9ade2cecc1e95302ddb9314aa9fc095fd28e5bf940e18f608337f41"
78
78
  }