gm-cc 2.0.456 → 2.0.458

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.456",
7
+ "version": "2.0.458",
8
8
  "metadata": {
9
9
  "description": "State machine agent with hooks, skills, and automated git enforcement"
10
10
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-cc",
3
- "version": "2.0.456",
3
+ "version": "2.0.458",
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.456",
3
+ "version": "2.0.458",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": {
6
6
  "name": "AnEntrypoint",
@@ -5,7 +5,7 @@ const path = require('path');
5
5
  const https = require('https');
6
6
  const { execFileSync } = require('child_process');
7
7
 
8
- const pluginRoot = process.env.CLAUDE_PLUGIN_ROOT || process.env.CODEX_PLUGIN_ROOT;
8
+ const pluginRoot = process.env.CLAUDE_PLUGIN_ROOT || process.env.CODEX_PLUGIN_ROOT || process.env.KILO_PLUGIN_ROOT || process.env.OC_PLUGIN_ROOT || process.env.extensionPath;
9
9
  if (!pluginRoot) process.exit(0);
10
10
 
11
11
  const IS_WIN = process.platform === 'win32';
@@ -102,19 +102,17 @@ function install() {
102
102
  safeCopyDirectory(path.join(sourceDir, 'skills'), path.join(kiloDir, 'skills'));
103
103
  safeCopyFile(path.join(sourceDir, 'kilocode.json'), path.join(kiloDir, 'kilocode.json'));
104
104
  safeCopyFile(path.join(sourceDir, '.mcp.json'), path.join(kiloDir, '.mcp.json'));
105
- safeCopyFile(path.join(sourceDir, 'gm.mjs'), path.join(kiloDir, 'gm.mjs'));
106
- safeCopyFile(path.join(sourceDir, 'index.mjs'), path.join(kiloDir, 'index.mjs'));
105
+ safeCopyFile(path.join(sourceDir, 'gm-kilo.mjs'), path.join(kiloDir, 'plugins', 'gm-kilo.mjs'));
106
+ safeCopyFile(path.join(sourceDir, 'gm.json'), path.join(kiloDir, 'gm.json'));
107
107
  safeCopyFile(path.join(sourceDir, 'README.md'), path.join(kiloDir, 'README.md'));
108
108
  safeCopyFile(path.join(sourceDir, 'LICENSE'), path.join(kiloDir, 'LICENSE'));
109
109
  safeCopyFile(path.join(sourceDir, 'CONTRIBUTING.md'), path.join(kiloDir, 'CONTRIBUTING.md'));
110
110
  safeCopyFile(path.join(sourceDir, '.gitignore'), path.join(kiloDir, '.gitignore'));
111
111
  safeCopyFile(path.join(sourceDir, '.editorconfig'), path.join(kiloDir, '.editorconfig'));
112
112
 
113
- const pluginDir = path.join(kiloDir, 'plugin');
114
- if (!fs.existsSync(pluginDir)) fs.mkdirSync(pluginDir, { recursive: true });
115
- const gmMjsSrc = path.join(sourceDir, 'gm.mjs');
116
- if (fs.existsSync(gmMjsSrc)) safeCopyFile(gmMjsSrc, path.join(pluginDir, 'gm.mjs'));
117
- fs.writeFileSync(path.join(pluginDir, 'index.js'), "export { default } from './gm.mjs';\n", 'utf-8');
113
+ safeCopyDirectory(path.join(sourceDir, 'skills'), path.join(kiloDir, 'skills'));
114
+ safeCopyDirectory(path.join(sourceDir, 'lang'), path.join(kiloDir, 'lang'));
115
+ safeCopyDirectory(path.join(sourceDir, 'bin'), path.join(kiloDir, 'bin'));
118
116
 
119
117
  updateGitignore(projectRoot);
120
118
 
@@ -104,18 +104,17 @@ function install() {
104
104
  safeCopyDirectory(path.join(sourceDir, 'skills'), path.join(ocDir, 'skills'));
105
105
  safeCopyFile(path.join(sourceDir, 'opencode.json'), path.join(ocDir, 'opencode.json'));
106
106
  safeCopyFile(path.join(sourceDir, '.mcp.json'), path.join(ocDir, '.mcp.json'));
107
- safeCopyFile(path.join(sourceDir, 'gm.mjs'), path.join(ocDir, 'gm.mjs'));
108
- safeCopyFile(path.join(sourceDir, 'index.mjs'), path.join(ocDir, 'index.mjs'));
107
+ safeCopyFile(path.join(sourceDir, 'gm-oc.mjs'), path.join(ocDir, 'plugins', 'gm-oc.mjs'));
108
+ safeCopyFile(path.join(sourceDir, 'gm.json'), path.join(ocDir, 'gm.json'));
109
109
  safeCopyFile(path.join(sourceDir, 'README.md'), path.join(ocDir, 'README.md'));
110
110
  safeCopyFile(path.join(sourceDir, 'LICENSE'), path.join(ocDir, 'LICENSE'));
111
111
  safeCopyFile(path.join(sourceDir, 'CONTRIBUTING.md'), path.join(ocDir, 'CONTRIBUTING.md'));
112
112
  safeCopyFile(path.join(sourceDir, '.gitignore'), path.join(ocDir, '.gitignore'));
113
113
  safeCopyFile(path.join(sourceDir, '.editorconfig'), path.join(ocDir, '.editorconfig'));
114
114
 
115
- const pluginsDir = path.join(ocDir, 'plugins');
116
- if (!fs.existsSync(pluginsDir)) fs.mkdirSync(pluginsDir, { recursive: true });
117
- const gmMjsSrc = path.join(sourceDir, 'gm.mjs');
118
- if (fs.existsSync(gmMjsSrc)) safeCopyFile(gmMjsSrc, path.join(pluginsDir, 'gm-oc.mjs'));
115
+ safeCopyDirectory(path.join(sourceDir, 'skills'), path.join(ocDir, 'skills'));
116
+ safeCopyDirectory(path.join(sourceDir, 'lang'), path.join(ocDir, 'lang'));
117
+ safeCopyDirectory(path.join(sourceDir, 'bin'), path.join(ocDir, 'bin'));
119
118
 
120
119
  updateGitignore(projectRoot);
121
120