gm-cc 2.0.66 → 2.0.68

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.66",
7
+ "version": "2.0.68",
8
8
  "metadata": {
9
9
  "description": "State machine agent with hooks, skills, and automated git enforcement"
10
10
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.66",
3
+ "version": "2.0.68",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": {
6
6
  "name": "AnEntrypoint",
package/cli.js CHANGED
@@ -19,9 +19,9 @@ try {
19
19
  const filesToCopy = [
20
20
  'agents',
21
21
  'hooks',
22
+ 'skills',
22
23
  '.mcp.json',
23
24
  '.claude-plugin',
24
- 'plugin.json',
25
25
  'README.md',
26
26
  'CLAUDE.md'
27
27
  ];
@@ -38,6 +38,10 @@ try {
38
38
 
39
39
  filesToCopy.forEach(name => copyRecursive(path.join(srcDir, name), path.join(destDir, name)));
40
40
 
41
+ // Remove stale root-level plugin.json (moved to .claude-plugin/plugin.json)
42
+ const stalePluginJson = path.join(destDir, 'plugin.json');
43
+ if (fs.existsSync(stalePluginJson)) fs.unlinkSync(stalePluginJson);
44
+
41
45
  // Register in settings.json (enabledPlugins only, no hook injection)
42
46
  const settingsPath = path.join(claudeDir, 'settings.json');
43
47
  let settings = {};
@@ -67,7 +71,7 @@ try {
67
71
  const existing = Array.isArray(installedPlugins.plugins['gm@gm-cc']) ? installedPlugins.plugins['gm@gm-cc'][0] : null;
68
72
  // Also write cache dir so Claude Code finds it without network fetch
69
73
  const cacheDir = path.join(pluginsDir, 'cache', 'gm-cc', 'gm', pluginVersion);
70
- const filesToCache = ['agents', 'hooks', '.mcp.json', '.claude-plugin', 'plugin.json', 'README.md', 'CLAUDE.md'];
74
+ const filesToCache = ['agents', 'hooks', 'skills', '.mcp.json', '.claude-plugin', 'README.md', 'CLAUDE.md'];
71
75
  function copyRecursiveCache(src, dst) {
72
76
  if (!fs.existsSync(src)) return;
73
77
  if (fs.statSync(src).isDirectory()) {
@@ -77,6 +81,9 @@ try {
77
81
  }
78
82
  fs.mkdirSync(cacheDir, { recursive: true });
79
83
  filesToCache.forEach(name => copyRecursiveCache(path.join(destDir, name), path.join(cacheDir, name)));
84
+ // Remove stale root-level plugin.json from cache (moved to .claude-plugin/plugin.json)
85
+ const staleCachePluginJson = path.join(cacheDir, 'plugin.json');
86
+ if (fs.existsSync(staleCachePluginJson)) fs.unlinkSync(staleCachePluginJson);
80
87
  installedPlugins.plugins['gm@gm-cc'] = [{
81
88
  scope: 'user',
82
89
  installPath: cacheDir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-cc",
3
- "version": "2.0.66",
3
+ "version": "2.0.68",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
@@ -30,7 +30,6 @@
30
30
  ".github/",
31
31
  ".mcp.json",
32
32
  ".claude-plugin/",
33
- "plugin.json",
34
33
  "cli.js",
35
34
  "install.js",
36
35
  "README.md",