@moewolf/moe-icons-cli 0.0.29 → 0.0.31
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/catalog/catalog.json +4 -4
- package/dist/cli.js +11 -1
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"catalogVersion": "0.0.
|
|
4
|
-
"sourceVersion": "0.0.
|
|
5
|
-
"sourceCommit": "
|
|
6
|
-
"generatorCommit": "
|
|
3
|
+
"catalogVersion": "0.0.30",
|
|
4
|
+
"sourceVersion": "0.0.30",
|
|
5
|
+
"sourceCommit": "5622064c47b346ff8d006b4bfe3ccdade6fb92b7",
|
|
6
|
+
"generatorCommit": "1ab9cb3d3d4c3321d63d9290b34c02a312f028cc",
|
|
7
7
|
"manifestSchemaVersion": 2,
|
|
8
8
|
"styleGroups": [
|
|
9
9
|
{
|
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.
|
|
3
|
+
"version": "0.0.31",
|
|
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": "
|
|
77
|
+
"payloadHash": "9c5bf7b1cde48db8260a833b47d44fc69d224b5df0373976a1607da18198075f"
|
|
78
78
|
}
|