claude-autopm 3.2.2 → 3.2.3

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/install/install.js +16 -0
  2. package/package.json +1 -1
@@ -946,6 +946,22 @@ See: https://github.com/rafeekpro/ClaudeAutoPM
946
946
  const installedPlugins = [];
947
947
  const failedPlugins = [];
948
948
 
949
+ // Clean rules directory before installing plugins
950
+ // This removes old/archived rules that are no longer in plugin.json
951
+ const rulesDir = path.join(this.targetDir, '.claude', 'rules');
952
+ if (fs.existsSync(rulesDir)) {
953
+ const oldRules = fs.readdirSync(rulesDir);
954
+ if (oldRules.length > 0) {
955
+ this.printStep('Cleaning rules directory for fresh install...');
956
+ for (const file of oldRules) {
957
+ const filePath = path.join(rulesDir, file);
958
+ if (fs.statSync(filePath).isFile()) {
959
+ fs.unlinkSync(filePath);
960
+ }
961
+ }
962
+ }
963
+ }
964
+
949
965
  // Install each plugin directly
950
966
  for (const pluginName of pluginsToInstall) {
951
967
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-autopm",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "description": "Autonomous Project Management Framework for Claude Code - Advanced AI-powered development automation",
5
5
  "main": "bin/autopm.js",
6
6
  "workspaces": [