mudra-skills 1.0.2 → 1.0.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.
Files changed (2) hide show
  1. package/bin/install.js +7 -13
  2. package/package.json +1 -1
package/bin/install.js CHANGED
@@ -15,10 +15,10 @@ const MARKETPLACE = 'mudra-band';
15
15
  const PLUGIN_NAME = 'mudra';
16
16
  const PLUGIN_KEY = `${PLUGIN_NAME}@${MARKETPLACE}`;
17
17
 
18
- // Install to the cache location Claude Code expects for marketplace plugins
19
- const cacheTarget = path.join(pluginsDir, 'cache', MARKETPLACE, PLUGIN_NAME, version);
20
- fs.mkdirSync(cacheTarget, { recursive: true });
21
- execSync(`cp -r "${pluginSrc}/." "${cacheTarget}"`);
18
+ // Install to top-level plugins directory (Claude Code scans here directly)
19
+ const target = path.join(pluginsDir, PLUGIN_NAME);
20
+ fs.mkdirSync(target, { recursive: true });
21
+ execSync(`cp -r "${pluginSrc}/." "${target}"`);
22
22
 
23
23
  // Register the marketplace in known_marketplaces.json if not already there
24
24
  const marketplacesFile = path.join(pluginsDir, 'known_marketplaces.json');
@@ -38,7 +38,7 @@ if (!marketplaces[MARKETPLACE]) {
38
38
  fs.writeFileSync(marketplacesFile, JSON.stringify(marketplaces, null, 2));
39
39
  }
40
40
 
41
- // Register the plugin in installed_plugins.json
41
+ // Register the plugin in installed_plugins.json with the correct marketplace key
42
42
  const installedFile = path.join(pluginsDir, 'installed_plugins.json');
43
43
  let installed = { version: 2, plugins: {} };
44
44
  if (fs.existsSync(installedFile)) {
@@ -53,7 +53,7 @@ const previousInstall = installed.plugins[PLUGIN_KEY]?.[0];
53
53
  installed.plugins[PLUGIN_KEY] = [
54
54
  {
55
55
  scope: 'user',
56
- installPath: cacheTarget,
56
+ installPath: target,
57
57
  version,
58
58
  installedAt: previousInstall?.installedAt ?? now,
59
59
  lastUpdated: now,
@@ -62,12 +62,6 @@ installed.plugins[PLUGIN_KEY] = [
62
62
 
63
63
  fs.writeFileSync(installedFile, JSON.stringify(installed, null, 2));
64
64
 
65
- // Clean up the old direct-copy install location if it exists
66
- const oldTarget = path.join(pluginsDir, 'mudra');
67
- if (fs.existsSync(oldTarget)) {
68
- fs.rmSync(oldTarget, { recursive: true, force: true });
69
- }
70
-
71
65
  console.log('');
72
66
  console.log('Mudra skills installed successfully!');
73
67
  console.log('');
@@ -78,4 +72,4 @@ console.log(' /mudra:mudra-master — auto-classify and route');
78
72
  console.log(' /mudra:mudra-preview — generate 2D app');
79
73
  console.log(' /mudra:mudra-xr — generate 3D/XR app');
80
74
  console.log('');
81
- console.log(`Plugin location: ${cacheTarget}`);
75
+ console.log(`Plugin location: ${target}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mudra-skills",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Claude Code skills for building Mudra Band apps — 2D, 3D/XR, or auto-classified",
5
5
  "type": "module",
6
6
  "bin": {