gm-kilo 2.0.7 → 2.0.8

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/README.md CHANGED
@@ -2,7 +2,17 @@
2
2
 
3
3
  ## Installation
4
4
 
5
- ### Step 1: Clone the Plugin
5
+ ### One-liner (recommended)
6
+
7
+ Install directly from npm using bunx:
8
+
9
+ ```bash
10
+ bunx gm-kilo@latest
11
+ ```
12
+
13
+ This command will automatically install gm-kilo to the correct location for your platform and restart Kilo to activate.
14
+
15
+ ### Manual installation
6
16
 
7
17
  **Windows and Unix:**
8
18
  ```bash
@@ -1,11 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import fs from 'fs';
3
- import path from 'path';
4
- import os from 'os';
5
- import { fileURLToPath } from 'url';
6
- import { execSync } from 'child_process';
7
-
8
- const __dirname = path.dirname(fileURLToPath(import.meta.url));
2
+ const fs = require('fs');
3
+ const path = require('path');
4
+ const os = require('os');
5
+ const { execSync } = require('child_process');
9
6
 
10
7
  const homeDir = process.env.HOME || process.env.USERPROFILE || os.homedir();
11
8
  const destDir = process.platform === 'win32'
@@ -23,7 +20,7 @@ try {
23
20
  const filesToCopy = [
24
21
  ['agents', 'agents'],
25
22
  ['index.js', 'index.js'],
26
- ['gm.mjs', 'gm.mjs'],
23
+ ['gm.js', 'gm.js'],
27
24
  ['kilocode.json', 'kilocode.json'],
28
25
  ['.mcp.json', '.mcp.json'],
29
26
  ['README.md', 'README.md']
@@ -1,15 +1,14 @@
1
- import fs from 'fs';
2
- import path from 'path';
3
- import { fileURLToPath } from 'url';
4
- import { analyze } from 'mcp-thorns';
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+ const { analyze } = require('mcp-thorns');
5
4
 
6
5
  const SHELL_TOOLS = ['bash'];
7
6
  const SEARCH_TOOLS = ['glob', 'grep', 'list'];
8
7
 
9
8
  let thornsOutput = '';
10
9
 
11
- export const GmPlugin = async ({ project, client, $, directory, worktree }) => {
12
- const pluginDir = path.dirname(fileURLToPath(import.meta.url));
10
+ const GmPlugin = async ({ project, client, $, directory, worktree }) => {
11
+ const pluginDir = __dirname;
13
12
  let agentRules = '';
14
13
 
15
14
  const loadAgentRules = () => {
@@ -105,3 +104,5 @@ export const GmPlugin = async ({ project, client, $, directory, worktree }) => {
105
104
  }
106
105
  };
107
106
  };
107
+
108
+ module.exports = { GmPlugin };
package/index.js CHANGED
@@ -1 +1 @@
1
- export { GmPlugin } from './gm.mjs';
1
+ module.exports = { GmPlugin: require('./gm.js').GmPlugin };
@@ -1,9 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import fs from 'fs';
3
- import path from 'path';
4
- import { fileURLToPath } from 'url';
5
-
6
- const __dirname = path.dirname(fileURLToPath(import.meta.url));
2
+ const fs = require('fs');
3
+ const path = require('path');
7
4
 
8
5
  function isInsideNodeModules() {
9
6
  return __dirname.includes(path.sep + 'node_modules' + path.sep);
package/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "gm-kilo",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "Advanced Claude Code plugin with WFGY integration, MCP tools, and automated hooks",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
7
- "type": "module",
8
- "main": "gm.mjs",
7
+ "main": "gm.js",
9
8
  "bin": {
10
- "gm-kilo": "./cli.mjs",
11
- "gm-kilo-install": "./install.mjs"
9
+ "gm-kilo": "./cli.js",
10
+ "gm-kilo-install": "./install.js"
12
11
  },
13
12
  "keywords": [
14
13
  "kilo",
@@ -36,13 +35,13 @@
36
35
  },
37
36
  "files": [
38
37
  "agents/",
39
- "gm.mjs",
38
+ "gm.js",
40
39
  "index.js",
41
40
  "kilocode.json",
42
41
  ".github/",
43
42
  ".mcp.json",
44
43
  "README.md",
45
- "cli.mjs",
46
- "install.mjs"
44
+ "cli.js",
45
+ "install.js"
47
46
  ]
48
47
  }