gm-cc 2.0.86 → 2.0.87
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +2 -3
- package/cli.js +7 -0
- package/package.json +1 -1
|
@@ -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.
|
|
7
|
+
"version": "2.0.87",
|
|
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.
|
|
3
|
+
"version": "2.0.87",
|
|
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
|
@@ -168,6 +168,10 @@ function installGlobally() {
|
|
|
168
168
|
const stalePluginJson = path.join(destDir, 'plugin.json');
|
|
169
169
|
if (fs.existsSync(stalePluginJson)) fs.unlinkSync(stalePluginJson);
|
|
170
170
|
|
|
171
|
+
// Copy marketplace.json to root so extraKnownMarketplaces directory lookup finds it
|
|
172
|
+
const mktSrc = path.join(destDir, '.claude-plugin', 'marketplace.json');
|
|
173
|
+
if (fs.existsSync(mktSrc)) fs.copyFileSync(mktSrc, path.join(destDir, 'marketplace.json'));
|
|
174
|
+
|
|
171
175
|
// Register in settings.json (enabledPlugins only, no hook injection)
|
|
172
176
|
const settingsPath = path.join(claudeDir, 'settings.json');
|
|
173
177
|
let settings = {};
|
|
@@ -210,6 +214,9 @@ function installGlobally() {
|
|
|
210
214
|
// Remove stale root-level plugin.json from cache (moved to .claude-plugin/plugin.json)
|
|
211
215
|
const staleCachePluginJson = path.join(cacheDir, 'plugin.json');
|
|
212
216
|
if (fs.existsSync(staleCachePluginJson)) fs.unlinkSync(staleCachePluginJson);
|
|
217
|
+
// Copy marketplace.json to cache root too
|
|
218
|
+
const mktCacheSrc = path.join(cacheDir, '.claude-plugin', 'marketplace.json');
|
|
219
|
+
if (fs.existsSync(mktCacheSrc)) fs.copyFileSync(mktCacheSrc, path.join(cacheDir, 'marketplace.json'));
|
|
213
220
|
installedPlugins.plugins['gm@gm-cc'] = [{
|
|
214
221
|
scope: 'user',
|
|
215
222
|
installPath: cacheDir,
|