gm-kilo 2.0.21 → 2.0.22

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.
Files changed (2) hide show
  1. package/cli.js +7 -4
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -15,10 +15,13 @@ const isUpgrade = fs.existsSync(destDir);
15
15
  console.log(isUpgrade ? 'Upgrading gm-kilo...' : 'Installing gm-kilo...');
16
16
 
17
17
  try {
18
- // Clean managed subdirectories to remove stale files from old versions
19
- for (const dir of ['agents', 'hooks', 'skills']) {
20
- const p = path.join(destDir, dir);
21
- if (fs.existsSync(p)) fs.rmSync(p, { recursive: true, force: true });
18
+ // Clean all managed files/dirs except node_modules to remove stale files
19
+ if (fs.existsSync(destDir)) {
20
+ for (const entry of fs.readdirSync(destDir)) {
21
+ if (entry !== 'node_modules' && entry !== 'package-lock.json') {
22
+ fs.rmSync(path.join(destDir, entry), { recursive: true, force: true });
23
+ }
24
+ }
22
25
  }
23
26
  fs.mkdirSync(destDir, { recursive: true });
24
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-kilo",
3
- "version": "2.0.21",
3
+ "version": "2.0.22",
4
4
  "description": "Advanced Claude Code plugin with WFGY integration, MCP tools, and automated hooks",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",