ma-agents 2.16.1 → 2.16.2
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/lib/agents.js
CHANGED
|
@@ -171,9 +171,9 @@ const agents = [
|
|
|
171
171
|
id: 'antigravity',
|
|
172
172
|
name: 'Antigravity',
|
|
173
173
|
version: '1.0.0',
|
|
174
|
-
category: '
|
|
174
|
+
category: 'ide',
|
|
175
175
|
description: 'Google Deepmind Antigravity Agent',
|
|
176
|
-
getProjectPath: () => path.join(process.cwd(), '
|
|
176
|
+
getProjectPath: () => path.join(process.cwd(), '.antigravity', 'skills'),
|
|
177
177
|
getGlobalPath: () => {
|
|
178
178
|
const platform = os.platform();
|
|
179
179
|
if (platform === 'win32') {
|
|
@@ -186,7 +186,7 @@ const agents = [
|
|
|
186
186
|
},
|
|
187
187
|
fileExtension: '.md',
|
|
188
188
|
template: 'generic',
|
|
189
|
-
instructionFiles: ['
|
|
189
|
+
instructionFiles: ['.antigravity/antigravity.md']
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
id: 'bmm-devops',
|
|
@@ -232,7 +232,7 @@ const agents = [
|
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
234
|
id: 'bmm-mil498',
|
|
235
|
-
name: '
|
|
235
|
+
name: 'MIL-STD-498 Expert',
|
|
236
236
|
version: '1.0.0',
|
|
237
237
|
category: 'bmad',
|
|
238
238
|
description: 'MIL-STD-498 Documentation Expert',
|
|
@@ -15,16 +15,19 @@ persona:
|
|
|
15
15
|
menu:
|
|
16
16
|
- trigger: bmad-mil-generate-srs
|
|
17
17
|
workflow: "bmm/workflows/mil498/bmad-mil-generate-srs.md"
|
|
18
|
-
description: "Generate SRS
|
|
18
|
+
description: "Generate SRS (Software Requirements Specification)"
|
|
19
19
|
- trigger: bmad-mil-generate-sdd
|
|
20
20
|
workflow: "bmm/workflows/mil498/bmad-mil-generate-sdd.md"
|
|
21
|
-
description: "Generate SDD
|
|
22
|
-
- trigger: bmad-mil-generate-stp
|
|
23
|
-
workflow: "bmm/workflows/mil498/bmad-mil-generate-stp.md"
|
|
24
|
-
description: "Generate STP Document"
|
|
25
|
-
- trigger: bmad-mil-generate-ocd
|
|
26
|
-
workflow: "bmm/workflows/mil498/bmad-mil-generate-ocd.md"
|
|
27
|
-
description: "Generate OCD Document"
|
|
21
|
+
description: "Generate SDD (Software Design Description)"
|
|
28
22
|
- trigger: bmad-mil-generate-sdp
|
|
29
23
|
workflow: "bmm/workflows/mil498/bmad-mil-generate-sdp.md"
|
|
30
|
-
description: "Generate SDP
|
|
24
|
+
description: "Generate SDP (Software Development Plan)"
|
|
25
|
+
- trigger: bmad-mil-generate-ocd
|
|
26
|
+
workflow: "bmm/workflows/mil498/bmad-mil-generate-ocd.md"
|
|
27
|
+
description: "Generate OCD (Operational Concept Description)"
|
|
28
|
+
- trigger: bmad-mil-generate-sss
|
|
29
|
+
workflow: "bmm/workflows/mil498/bmad-mil-generate-sss.md"
|
|
30
|
+
description: "Generate SSS (System/Subsystem Specification)"
|
|
31
|
+
- trigger: bmad-mil-generate-std
|
|
32
|
+
workflow: "bmm/workflows/mil498/bmad-mil-generate-std.md"
|
|
33
|
+
description: "Generate STD (Software Test Description)"
|
|
@@ -62,9 +62,12 @@ You must fully embody this agent's persona and follow all activation instruction
|
|
|
62
62
|
<menu>
|
|
63
63
|
<item cmd="MH">[MH] Redisplay Menu Help</item>
|
|
64
64
|
<item cmd="CH">[CH] Chat with Joseph about MIL-STD-498</item>
|
|
65
|
-
<item cmd="GS" workflow="{project-root}/_bmad/bmm/workflows/mil498/bmad-mil-generate-srs.md">[GS] Generate SRS:
|
|
66
|
-
<item cmd="GD" workflow="{project-root}/_bmad/bmm/workflows/mil498/bmad-mil-generate-sdd.md">[GD] Generate SDD:
|
|
67
|
-
<item cmd="
|
|
65
|
+
<item cmd="GS" workflow="{project-root}/_bmad/bmm/workflows/mil498/bmad-mil-generate-srs.md">[GS] Generate SRS: Software Requirements Specification</item>
|
|
66
|
+
<item cmd="GD" workflow="{project-root}/_bmad/bmm/workflows/mil498/bmad-mil-generate-sdd.md">[GD] Generate SDD: Software Design Description</item>
|
|
67
|
+
<item cmd="GP" workflow="{project-root}/_bmad/bmm/workflows/mil498/bmad-mil-generate-sdp.md">[GP] Generate SDP: Software Development Plan</item>
|
|
68
|
+
<item cmd="GO" workflow="{project-root}/_bmad/bmm/workflows/mil498/bmad-mil-generate-ocd.md">[GO] Generate OCD: Operational Concept Description</item>
|
|
69
|
+
<item cmd="SS" workflow="{project-root}/_bmad/bmm/workflows/mil498/bmad-mil-generate-sss.md">[SS] Generate SSS: System/Subsystem Specification</item>
|
|
70
|
+
<item cmd="GT" workflow="{project-root}/_bmad/bmm/workflows/mil498/bmad-mil-generate-std.md">[GT] Generate STD: Software Test Description</item>
|
|
68
71
|
<item cmd="DA">[DA] Dismiss Agent</item>
|
|
69
72
|
</menu>
|
|
70
73
|
</agent>
|
package/lib/bmad.js
CHANGED
|
@@ -134,6 +134,84 @@ async function applyCustomizations(projectRoot = process.cwd(), modules = ['bmm'
|
|
|
134
134
|
} catch (error) {
|
|
135
135
|
console.error(chalk.red(` BMAD recompile failed: ${error.message}`));
|
|
136
136
|
}
|
|
137
|
+
|
|
138
|
+
// 5. Register custom workflows in BMAD CSV registries (after recompile)
|
|
139
|
+
if (selectedAgentIds.length === 0 || selectedAgentIds.includes('bmm-mil498')) {
|
|
140
|
+
await registerMilWorkflows(projectRoot);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Append MIL-STD-498 workflow entries to the BMAD CSV registries
|
|
146
|
+
* so they appear as available slash commands.
|
|
147
|
+
*/
|
|
148
|
+
async function registerMilWorkflows(projectRoot) {
|
|
149
|
+
const milEntries = [
|
|
150
|
+
{
|
|
151
|
+
name: 'Generate SRS', code: 'GS',
|
|
152
|
+
file: '_bmad/bmm/workflows/mil498/bmad-mil-generate-srs.md',
|
|
153
|
+
command: 'bmad-mil-generate-srs',
|
|
154
|
+
description: 'Generate a MIL-STD-498 Software Requirements Specification from BMAD project artifacts'
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: 'Generate SDD', code: 'GD',
|
|
158
|
+
file: '_bmad/bmm/workflows/mil498/bmad-mil-generate-sdd.md',
|
|
159
|
+
command: 'bmad-mil-generate-sdd',
|
|
160
|
+
description: 'Generate a MIL-STD-498 Software Design Description from architecture and design docs'
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: 'Generate SDP', code: 'GP',
|
|
164
|
+
file: '_bmad/bmm/workflows/mil498/bmad-mil-generate-sdp.md',
|
|
165
|
+
command: 'bmad-mil-generate-sdp',
|
|
166
|
+
description: 'Generate a MIL-STD-498 Software Development Plan from project planning artifacts'
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: 'Generate OCD', code: 'GO',
|
|
170
|
+
file: '_bmad/bmm/workflows/mil498/bmad-mil-generate-ocd.md',
|
|
171
|
+
command: 'bmad-mil-generate-ocd',
|
|
172
|
+
description: 'Generate a MIL-STD-498 Operational Concept Description from PRD and architecture'
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: 'Generate SSS', code: 'SS',
|
|
176
|
+
file: '_bmad/bmm/workflows/mil498/bmad-mil-generate-sss.md',
|
|
177
|
+
command: 'bmad-mil-generate-sss',
|
|
178
|
+
description: 'Generate a MIL-STD-498 System/Subsystem Specification from project requirements'
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: 'Generate STD', code: 'GT',
|
|
182
|
+
file: '_bmad/bmm/workflows/mil498/bmad-mil-generate-std.md',
|
|
183
|
+
command: 'bmad-mil-generate-std',
|
|
184
|
+
description: 'Generate a MIL-STD-498 Software Test Description from epics stories and architecture'
|
|
185
|
+
}
|
|
186
|
+
];
|
|
187
|
+
|
|
188
|
+
// Append to module-help.csv
|
|
189
|
+
const moduleHelpPath = path.join(projectRoot, BMAD_DIR, 'bmm', 'module-help.csv');
|
|
190
|
+
if (fs.existsSync(moduleHelpPath)) {
|
|
191
|
+
let content = await fs.readFile(moduleHelpPath, 'utf-8');
|
|
192
|
+
for (const entry of milEntries) {
|
|
193
|
+
if (!content.includes(entry.command)) {
|
|
194
|
+
const row = `bmm,anytime,${entry.name},${entry.code},,${entry.file},${entry.command},false,mil498,Create Mode,${entry.description},planning_artifacts,document,`;
|
|
195
|
+
content = content.trimEnd() + '\n' + row + '\n';
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
await fs.writeFile(moduleHelpPath, content, 'utf-8');
|
|
199
|
+
console.log(chalk.cyan(` + Registered MIL-STD-498 workflows in module-help.csv`));
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// Append to bmad-help.csv
|
|
203
|
+
const bmadHelpPath = path.join(projectRoot, BMAD_DIR, '_config', 'bmad-help.csv');
|
|
204
|
+
if (fs.existsSync(bmadHelpPath)) {
|
|
205
|
+
let content = await fs.readFile(bmadHelpPath, 'utf-8');
|
|
206
|
+
for (const entry of milEntries) {
|
|
207
|
+
if (!content.includes(entry.command)) {
|
|
208
|
+
const row = `bmm,anytime,${entry.name},${entry.code},,${entry.file},${entry.command},false,mil498,bmad:MIL-STD-498 compliance:agent:mil498,Joseph,📜 MIL-STD-498 Expert,Create Mode,${entry.description},planning_artifacts,document`;
|
|
209
|
+
content = content.trimEnd() + '\n' + row + '\n';
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
await fs.writeFile(bmadHelpPath, content, 'utf-8');
|
|
213
|
+
console.log(chalk.cyan(` + Registered MIL-STD-498 workflows in bmad-help.csv`));
|
|
214
|
+
}
|
|
137
215
|
}
|
|
138
216
|
|
|
139
217
|
module.exports = {
|