agileflow 2.32.3 → 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
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
|