gm-cc 2.0.113 → 2.0.115

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.
@@ -1,10 +1,10 @@
1
1
  {
2
- "name": "gm",
2
+ "name": "gm-cc",
3
3
  "owner": {
4
4
  "name": "AnEntrypoint"
5
5
  },
6
6
  "description": "State machine agent with hooks, skills, and automated git enforcement",
7
- "version": "2.0.113",
7
+ "version": "2.0.115",
8
8
  "metadata": {
9
9
  "description": "State machine agent with hooks, skills, and automated git enforcement"
10
10
  },
package/cli.js CHANGED
@@ -28,59 +28,11 @@ try {
28
28
 
29
29
  filesToCopy.forEach(([src, dst]) => copyRecursive(path.join(srcDir, src), path.join(destDir, dst)));
30
30
 
31
- const pkg = JSON.parse(fs.readFileSync(path.join(srcDir, 'package.json'), 'utf-8'));
32
- const version = pkg.version;
31
+ const { execSync: exec } = require('child_process');
32
+ const run = (cmd) => { try { return exec(cmd, { stdio: 'inherit', env: { ...process.env, CLAUDECODE: '' } }); } catch (e) { console.warn('Warning:', e.message); } };
33
33
 
34
- const cacheDir = path.join(destDir, 'plugins', 'cache', 'gm-cc', 'gm', version);
35
- fs.mkdirSync(cacheDir, { recursive: true });
36
- fs.mkdirSync(path.join(cacheDir, '.claude-plugin'), { recursive: true });
37
-
38
- copyRecursive(path.join(srcDir, 'agents'), path.join(cacheDir, 'agents'));
39
- copyRecursive(path.join(srcDir, 'hooks'), path.join(cacheDir, 'hooks'));
40
- if (fs.existsSync(path.join(srcDir, 'skills'))) {
41
- copyRecursive(path.join(srcDir, 'skills'), path.join(cacheDir, 'skills'));
42
- }
43
- if (fs.existsSync(path.join(srcDir, '.mcp.json'))) {
44
- fs.copyFileSync(path.join(srcDir, '.mcp.json'), path.join(cacheDir, '.mcp.json'));
45
- }
46
- if (fs.existsSync(path.join(srcDir, 'CLAUDE.md'))) {
47
- fs.copyFileSync(path.join(srcDir, 'CLAUDE.md'), path.join(cacheDir, 'CLAUDE.md'));
48
- }
49
- if (fs.existsSync(path.join(srcDir, 'README.md'))) {
50
- fs.copyFileSync(path.join(srcDir, 'README.md'), path.join(cacheDir, 'README.md'));
51
- }
52
-
53
- const marketplaceSrc = path.join(srcDir, '.claude-plugin', 'marketplace.json');
54
- if (fs.existsSync(marketplaceSrc)) {
55
- fs.copyFileSync(marketplaceSrc, path.join(cacheDir, '.claude-plugin', 'marketplace.json'));
56
- fs.copyFileSync(marketplaceSrc, path.join(cacheDir, 'marketplace.json'));
57
- }
58
-
59
- const pluginJson = {
60
- name: 'gm',
61
- version,
62
- description: 'State machine agent with hooks, skills, and automated git enforcement',
63
- author: { name: 'AnEntrypoint', url: 'https://github.com/AnEntrypoint' },
64
- homepage: 'https://github.com/AnEntrypoint/gm',
65
- hooks: './hooks/hooks.json'
66
- };
67
- fs.writeFileSync(path.join(cacheDir, '.claude-plugin', 'plugin.json'), JSON.stringify(pluginJson, null, 2) + '\n');
68
- fs.writeFileSync(path.join(cacheDir, 'plugin.json'), JSON.stringify(pluginJson, null, 2) + '\n');
69
-
70
- const installedPath = path.join(destDir, 'plugins', 'installed_plugins.json');
71
- let installed = {};
72
- try { installed = JSON.parse(fs.readFileSync(installedPath, 'utf-8')); } catch (e) {}
73
- installed['gm@gm-cc'] = [{ scope: 'user', installPath: cacheDir, version }];
74
- fs.writeFileSync(installedPath, JSON.stringify(installed, null, 2) + '\n');
75
-
76
- const settingsPath = path.join(destDir, 'settings.json');
77
- let settings = {};
78
- try { settings = JSON.parse(fs.readFileSync(settingsPath, 'utf-8')); } catch (e) {}
79
- settings.enabledPlugins = settings.enabledPlugins || {};
80
- settings.enabledPlugins['gm@gm-cc'] = true;
81
- settings.extraKnownMarketplaces = settings.extraKnownMarketplaces || {};
82
- settings.extraKnownMarketplaces['gm-cc'] = { source: { source: 'github', repo: 'AnEntrypoint/gm-cc' } };
83
- fs.writeFileSync(settingsPath, JSON.stringify(settings, null, 2) + '\n');
34
+ run('claude plugin marketplace add AnEntrypoint/gm-cc');
35
+ run('claude plugin install gm@gm-cc --scope user');
84
36
 
85
37
 
86
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-cc",
3
- "version": "2.0.113",
3
+ "version": "2.0.115",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.113",
3
+ "version": "2.0.115",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": {
6
6
  "name": "AnEntrypoint",