gm-cc 2.0.86 → 2.0.88

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.
@@ -4,7 +4,7 @@
4
4
  "name": "AnEntrypoint"
5
5
  },
6
6
  "description": "State machine agent with hooks, skills, and automated git enforcement",
7
- "version": "2.0.86",
7
+ "version": "2.0.88",
8
8
  "metadata": {
9
9
  "description": "State machine agent with hooks, skills, and automated git enforcement"
10
10
  },
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.86",
3
+ "version": "2.0.88",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": {
6
6
  "name": "AnEntrypoint",
7
7
  "url": "https://github.com/AnEntrypoint"
8
8
  },
9
- "homepage": "https://github.com/AnEntrypoint/gm",
10
- "hooks": "./hooks/hooks.json"
9
+ "homepage": "https://github.com/AnEntrypoint/gm"
11
10
  }
package/cli.js CHANGED
@@ -164,9 +164,11 @@ function installGlobally() {
164
164
 
165
165
  filesToCopy.forEach(name => copyRecursive(path.join(srcDir, name), path.join(destDir, name)));
166
166
 
167
- // Remove stale root-level plugin.json (moved to .claude-plugin/plugin.json)
168
- const stalePluginJson = path.join(destDir, 'plugin.json');
169
- if (fs.existsSync(stalePluginJson)) fs.unlinkSync(stalePluginJson);
167
+ // Copy plugin.json and marketplace.json to root so marketplace source lookup finds them
168
+ const pluginJsonSrc = path.join(destDir, '.claude-plugin', 'plugin.json');
169
+ if (fs.existsSync(pluginJsonSrc)) fs.copyFileSync(pluginJsonSrc, path.join(destDir, 'plugin.json'));
170
+ const mktSrc = path.join(destDir, '.claude-plugin', 'marketplace.json');
171
+ if (fs.existsSync(mktSrc)) fs.copyFileSync(mktSrc, path.join(destDir, 'marketplace.json'));
170
172
 
171
173
  // Register in settings.json (enabledPlugins only, no hook injection)
172
174
  const settingsPath = path.join(claudeDir, 'settings.json');
@@ -207,9 +209,11 @@ function installGlobally() {
207
209
  }
208
210
  fs.mkdirSync(cacheDir, { recursive: true });
209
211
  filesToCache.forEach(name => copyRecursiveCache(path.join(destDir, name), path.join(cacheDir, name)));
210
- // Remove stale root-level plugin.json from cache (moved to .claude-plugin/plugin.json)
211
- const staleCachePluginJson = path.join(cacheDir, 'plugin.json');
212
- if (fs.existsSync(staleCachePluginJson)) fs.unlinkSync(staleCachePluginJson);
212
+ // Copy plugin.json and marketplace.json to cache root too
213
+ const cachePluginJsonSrc = path.join(cacheDir, '.claude-plugin', 'plugin.json');
214
+ if (fs.existsSync(cachePluginJsonSrc)) fs.copyFileSync(cachePluginJsonSrc, path.join(cacheDir, 'plugin.json'));
215
+ const mktCacheSrc = path.join(cacheDir, '.claude-plugin', 'marketplace.json');
216
+ if (fs.existsSync(mktCacheSrc)) fs.copyFileSync(mktCacheSrc, path.join(cacheDir, 'marketplace.json'));
213
217
  installedPlugins.plugins['gm@gm-cc'] = [{
214
218
  scope: 'user',
215
219
  installPath: cacheDir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-cc",
3
- "version": "2.0.86",
3
+ "version": "2.0.88",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",