claude-autopm 2.8.3 → 2.8.4

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 +15 -5
  2. package/package.json +1 -1
@@ -884,12 +884,22 @@ See: https://github.com/rafeekpro/ClaudeAutoPM
884
884
 
885
885
  // Install agents
886
886
  if (metadata.agents && metadata.agents.length > 0) {
887
- const targetDir = path.join(this.targetDir, '.claude', 'agents', metadata.category);
888
- if (!fs.existsSync(targetDir)) {
889
- fs.mkdirSync(targetDir, { recursive: true });
890
- }
891
-
892
887
  for (const agent of metadata.agents) {
888
+ // Validate agent has required properties
889
+ if (!agent.file) {
890
+ this.printWarning(`Agent ${agent.name || 'unknown'} missing file property, skipping`);
891
+ continue;
892
+ }
893
+ if (!agent.category) {
894
+ this.printWarning(`Agent ${agent.name || 'unknown'} missing category property, skipping`);
895
+ continue;
896
+ }
897
+
898
+ const targetDir = path.join(this.targetDir, '.claude', 'agents', agent.category);
899
+ if (!fs.existsSync(targetDir)) {
900
+ fs.mkdirSync(targetDir, { recursive: true });
901
+ }
902
+
893
903
  const sourcePath = path.join(pluginPath, agent.file);
894
904
  const targetPath = path.join(targetDir, path.basename(agent.file));
895
905
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-autopm",
3
- "version": "2.8.3",
3
+ "version": "2.8.4",
4
4
  "description": "Autonomous Project Management Framework for Claude Code - Advanced AI-powered development automation",
5
5
  "main": "bin/autopm.js",
6
6
  "workspaces": [