gm-cc 2.0.100 → 2.0.102

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.100",
7
+ "version": "2.0.102",
8
8
  "metadata": {
9
9
  "description": "State machine agent with hooks, skills, and automated git enforcement"
10
10
  },
@@ -1,13 +1,10 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.100",
3
+ "version": "2.0.102",
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
- "agents": [
11
- "agents/gm.md"
12
- ]
9
+ "homepage": "https://github.com/AnEntrypoint/gm"
13
10
  }
package/cli.js CHANGED
@@ -224,6 +224,18 @@ function installGlobally() {
224
224
  fs.writeFileSync(installedPluginsPath, JSON.stringify(installedPlugins, null, 2), 'utf-8');
225
225
  console.log('✓ Plugin registered in installed_plugins.json');
226
226
 
227
+ // Clean up stale cache entries to avoid validation errors from old formats
228
+ try {
229
+ const gmCacheDir = path.join(pluginsDir, 'cache', 'gm-cc', 'gm');
230
+ if (fs.existsSync(gmCacheDir)) {
231
+ const entries = fs.readdirSync(gmCacheDir);
232
+ for (const entry of entries) {
233
+ if (entry === pluginVersion || entry === 'unknown') continue;
234
+ try { fs.rmSync(path.join(gmCacheDir, entry), { recursive: true, force: true }); } catch (e) {}
235
+ }
236
+ }
237
+ } catch (e) {}
238
+
227
239
  console.log(`✓ gm-cc ${isUpgrade ? 'upgraded' : 'installed'} to ${destDir}`);
228
240
  console.log('Restart Claude Code to activate the gm plugin.');
229
241
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-cc",
3
- "version": "2.0.100",
3
+ "version": "2.0.102",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",