marvelous-ui-library 1.0.3 → 1.0.4

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.
Files changed (2) hide show
  1. package/lib/agents.mjs +4 -1
  2. package/package.json +1 -1
package/lib/agents.mjs CHANGED
@@ -68,7 +68,10 @@ function register(place, client, prior, runner) {
68
68
  function unregister(place, client, runner) {
69
69
  if (client === "codex") {
70
70
  runAgent("codex", ["plugin", "remove", "marvelous-ui@marvelous-ui"], runner);
71
- runAgent("codex", ["plugin", "marketplace", "remove", "marvelous-ui"], runner);
71
+ try { runAgent("codex", ["plugin", "marketplace", "remove", "marvelous-ui"], runner); }
72
+ catch (error) {
73
+ if (!/marketplace `?marvelous-ui`? is not configured or installed/i.test(error.message)) throw error;
74
+ }
72
75
  } else if (client === "claude") {
73
76
  runAgent("claude", ["plugin", "uninstall", "marvelous-ui@marvelous-ui", "--scope", "user"], runner);
74
77
  runAgent("claude", ["plugin", "marketplace", "remove", "marvelous-ui"], runner);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marvelous-ui-library",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Install and update the Marvelous UI component Pack for coding agents",
5
5
  "type": "module",
6
6
  "license": "MIT",