mdan-method 2.7.2 → 2.7.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "mdan-method",
4
- "version": "2.7.2",
4
+ "version": "2.7.3",
5
5
  "description": "MDAN - AI-driven Development Platform with Specialized Agents",
6
6
  "keywords": [
7
7
  "agile",
@@ -119,11 +119,18 @@ async function getAgentsFromDir(dirPath, moduleName, relativePath = '') {
119
119
  continue;
120
120
  }
121
121
 
122
+ // Extract description from capabilities or title in the compiled agent XML
123
+ const capMatch = content.match(/capabilities="([^"]+)"/);
124
+ const titleMatch = content.match(/title="([^"]+)"/);
125
+ const roleMatch = content.match(/<role>([^<]+)<\/role>/);
126
+ const description = capMatch ? capMatch[1] : (titleMatch ? titleMatch[1] : (roleMatch ? roleMatch[1] : ''));
127
+
122
128
  agents.push({
123
129
  path: fullPath,
124
130
  name: entry.name.replace('.md', ''),
125
131
  module: moduleName,
126
132
  relativePath: newRelativePath, // Keep the .md extension for the full path
133
+ description: description,
127
134
  });
128
135
  }
129
136
  }