agileflow 2.32.2 → 2.32.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agileflow",
3
- "version": "2.32.2",
3
+ "version": "2.32.4",
4
4
  "description": "AI-driven agile development system for Claude Code, Cursor, Windsurf, and more",
5
5
  "keywords": [
6
6
  "agile",
@@ -67,8 +67,10 @@ class BaseIdeSetup {
67
67
  */
68
68
  injectDynamicContent(content, agileflowDir) {
69
69
  const { injectContent } = require('../../lib/content-injector');
70
- const agentsDir = path.join(agileflowDir, 'src', 'core', 'agents');
71
- const commandsDir = path.join(agileflowDir, 'src', 'core', 'commands');
70
+ // agileflowDir is the user's .agileflow installation directory
71
+ // which has agents/ and commands/ at the root level (not src/core/)
72
+ const agentsDir = path.join(agileflowDir, 'agents');
73
+ const commandsDir = path.join(agileflowDir, 'commands');
72
74
 
73
75
  return injectContent(content, agentsDir, commandsDir);
74
76
  }
@@ -29,6 +29,11 @@ function generateAgentList(agentsDir) {
29
29
  try {
30
30
  const frontmatter = yaml.load(match[1]);
31
31
 
32
+ // Skip if frontmatter is null or not an object
33
+ if (!frontmatter || typeof frontmatter !== 'object') {
34
+ continue;
35
+ }
36
+
32
37
  // Handle tools field - can be array or string
33
38
  let tools = frontmatter.tools || [];
34
39
  if (typeof tools === 'string') {
@@ -42,7 +47,8 @@ function generateAgentList(agentsDir) {
42
47
  model: frontmatter.model || 'haiku'
43
48
  });
44
49
  } catch (err) {
45
- console.warn(`Warning: Could not parse frontmatter in ${file}`);
50
+ // Silently skip files with parsing errors
51
+ continue;
46
52
  }
47
53
  }
48
54
 
@@ -83,13 +89,21 @@ function generateCommandList(commandsDir) {
83
89
  try {
84
90
  const frontmatter = yaml.load(match[1]);
85
91
  const cmdName = path.basename(file, '.md');
92
+
93
+ // Skip if frontmatter is null or not an object
94
+ if (!frontmatter || typeof frontmatter !== 'object') {
95
+ continue;
96
+ }
97
+
86
98
  commands.push({
87
99
  name: cmdName,
88
100
  description: frontmatter.description || '',
89
101
  argumentHint: frontmatter['argument-hint'] || ''
90
102
  });
91
103
  } catch (err) {
92
- console.warn(`Warning: Could not parse frontmatter in ${file}`);
104
+ // Silently skip files with parsing errors - they might be generated files
105
+ // with content that looks like frontmatter but isn't
106
+ continue;
93
107
  }
94
108
  }
95
109