bmad-plus 0.23.0 → 0.24.0
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/CHANGELOG.md +60 -0
- package/README.md +45 -25
- package/osint-agent-package/agents/osint-investigator.md +3 -3
- package/osint-agent-package/skills/bmad-osint-investigate/osint/SKILL.md +51 -51
- package/osint-agent-package/skills/bmad-osint-investigate/osint/references/content-extraction.md +7 -7
- package/osint-agent-package/skills/bmad-osint-investigate/osint/references/platforms.md +2 -2
- package/osint-agent-package/skills/bmad-osint-investigate/osint/references/tools.md +31 -41
- package/package.json +22 -6
- package/readme-international/README.de.md +45 -25
- package/readme-international/README.es.md +46 -26
- package/readme-international/README.fr.md +45 -25
- package/src/bmad-plus/agents/agent-architect-dev/SKILL.md +13 -0
- package/src/bmad-plus/agents/agent-architect-dev/bmad-skill-manifest.yaml +1 -1
- package/src/bmad-plus/agents/agent-maker/SKILL.md +43 -14
- package/src/bmad-plus/agents/agent-orchestrator/SKILL.md +13 -0
- package/src/bmad-plus/agents/agent-orchestrator/bmad-skill-manifest.yaml +1 -1
- package/src/bmad-plus/agents/agent-quality/SKILL.md +13 -0
- package/src/bmad-plus/agents/agent-quality/bmad-skill-manifest.yaml +1 -1
- package/src/bmad-plus/agents/agent-strategist/SKILL.md +13 -0
- package/src/bmad-plus/agents/agent-strategist/bmad-skill-manifest.yaml +1 -1
- package/src/bmad-plus/data/role-triggers.yaml +108 -0
- package/src/bmad-plus/module-help.csv +1 -0
- package/src/bmad-plus/module.yaml +6 -4
- package/src/bmad-plus/packs/pack-animated/animated-website-agent.md +40 -14
- package/src/bmad-plus/packs/pack-animated/templates/animated-website-workflow.md +15 -12
- package/src/bmad-plus/packs/pack-backup/backup-agent.md +2 -1
- package/src/bmad-plus/packs/pack-backup/templates/backup-workflow.md +2 -0
- package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/analyst-agent.md +10 -0
- package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/architect-agent.md +11 -0
- package/src/bmad-plus/packs/pack-dev-studio/categories/planning/pm-agent.md +10 -0
- package/src/bmad-plus/packs/pack-memory/templates/session-handoff.md +3 -0
- package/src/bmad-plus/packs/pack-memory/zecher-agent.md +1 -1
- package/src/bmad-plus/packs/pack-seo/seo-chief.md +2 -0
- package/src/bmad-plus/packs/pack-shield/README.md +1 -1
- package/src/bmad-plus/packs/pack-shield/SKILL.md +3 -3
- package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/pci-dss-agent.md +1 -1
- package/src/bmad-plus/packs/pack-shield/shield-orchestrator.md +8 -2
- package/src/bmad-plus/skills/bmad-plus-challenge/SKILL.md +149 -0
- package/src/bmad-plus/skills/bmad-plus-intake/SKILL.md +4 -2
- package/src/bmad-plus/skills/bmad-plus-intake/ref/intake-format.md +9 -0
- package/src/bmad-plus/skills/bmad-plus-parallel/SKILL.md +1 -1
- package/src/bmad-plus/skills/bmad-plus-swarm/SKILL.md +1 -1
- package/tools/build/adapters.config.js +1 -1
- package/tools/build/generate-adapters.js +1 -1
- package/tools/build/intake-contract.js +97 -1
- package/tools/cli/commands/install.js +18 -11
- package/tools/cli/commands/intake.js +4 -0
- package/tools/cli/commands/nexus.js +2 -1
- package/tools/cli/commands/review.js +1 -1
- package/tools/cli/commands/update.js +30 -1
- package/tools/cli/i18n.js +30 -30
- package/tools/cli/lib/packs.js +49 -17
- package/tools/cli/lib/review.js +2 -1
- package/tools/cli/lib/update-dispatch.js +10 -2
- package/tools/cli/lib/update-transaction.js +1 -2
|
@@ -45,7 +45,10 @@ const QUESTION_KEYS = new Set([
|
|
|
45
45
|
'must_have',
|
|
46
46
|
'feeds',
|
|
47
47
|
'risk_if_unknown',
|
|
48
|
+
'after',
|
|
49
|
+
'suggest',
|
|
48
50
|
]);
|
|
51
|
+
const QUESTION_ID_RE = /^[a-z][a-z0-9_]*$/;
|
|
49
52
|
const ENTRY_KEYS = new Set(['status', 'value', 'risk']);
|
|
50
53
|
|
|
51
54
|
const isPlainObject = (value) =>
|
|
@@ -164,6 +167,78 @@ function validateQuestion(question, where, problems) {
|
|
|
164
167
|
problems.push(`${where}: "feeds" must list artifact anchors such as brief.md#surface`);
|
|
165
168
|
}
|
|
166
169
|
}
|
|
170
|
+
if (question.after !== undefined) {
|
|
171
|
+
if (
|
|
172
|
+
!Array.isArray(question.after) ||
|
|
173
|
+
question.after.length === 0 ||
|
|
174
|
+
!question.after.every((id) => typeof id === 'string' && QUESTION_ID_RE.test(id)) ||
|
|
175
|
+
new Set(question.after).size !== question.after.length
|
|
176
|
+
) {
|
|
177
|
+
problems.push(`${where}: "after" must list distinct question ids`);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
if (question.suggest !== undefined) {
|
|
181
|
+
if (!isText(question.suggest)) {
|
|
182
|
+
problems.push(`${where}: "suggest" must be a non-empty text`);
|
|
183
|
+
} else if (question.suggest.length > MAX_TEXT) {
|
|
184
|
+
problems.push(`${where}: "suggest" is longer than ${MAX_TEXT} characters`);
|
|
185
|
+
} else if (hasControlCharacter(question.suggest)) {
|
|
186
|
+
problems.push(`${where}: "suggest" holds a control character`);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* The `after` links of a file whose questions are otherwise valid: each id must name
|
|
193
|
+
* another question of the file, and the links must not close a loop.
|
|
194
|
+
*/
|
|
195
|
+
function validateOrder(intake, problems) {
|
|
196
|
+
const questions = new Map();
|
|
197
|
+
intake.sections.forEach((section, index) =>
|
|
198
|
+
(isPlainObject(section) && Array.isArray(section.questions) ? section.questions : []).forEach(
|
|
199
|
+
(question, position) => {
|
|
200
|
+
if (
|
|
201
|
+
isPlainObject(question) &&
|
|
202
|
+
typeof question.id === 'string' &&
|
|
203
|
+
!questions.has(question.id)
|
|
204
|
+
)
|
|
205
|
+
questions.set(question.id, {
|
|
206
|
+
question,
|
|
207
|
+
label: `sections[${index}].questions[${position}]`,
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
)
|
|
211
|
+
);
|
|
212
|
+
const prerequisites = (id) => {
|
|
213
|
+
const after = questions.get(id).question.after;
|
|
214
|
+
return Array.isArray(after)
|
|
215
|
+
? after.filter((other) => questions.has(other) && other !== id)
|
|
216
|
+
: [];
|
|
217
|
+
};
|
|
218
|
+
for (const [id, { question, label }] of questions) {
|
|
219
|
+
if (!Array.isArray(question.after)) continue;
|
|
220
|
+
for (const other of question.after) {
|
|
221
|
+
if (typeof other !== 'string' || !QUESTION_ID_RE.test(other)) continue;
|
|
222
|
+
if (other === id) problems.push(`${label}: "after" names the question itself`);
|
|
223
|
+
else if (!questions.has(other))
|
|
224
|
+
problems.push(`${label}: "after" names unknown question "${other}"`);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
// Depth-first walk; a question met again while still on the path closes a cycle.
|
|
228
|
+
const state = new Map();
|
|
229
|
+
const walk = (id, path) => {
|
|
230
|
+
state.set(id, 'open');
|
|
231
|
+
for (const other of prerequisites(id)) {
|
|
232
|
+
if (state.get(other) === 'open') {
|
|
233
|
+
const loop = [...path.slice(path.indexOf(other)), id, other];
|
|
234
|
+
problems.push(
|
|
235
|
+
`${questions.get(id).label}: "after" forms a cycle (each waits for the next): ${loop.join(' -> ')}`
|
|
236
|
+
);
|
|
237
|
+
} else if (!state.has(other)) walk(other, [...path, id]);
|
|
238
|
+
}
|
|
239
|
+
state.set(id, 'done');
|
|
240
|
+
};
|
|
241
|
+
for (const id of questions.keys()) if (!state.has(id)) walk(id, []);
|
|
167
242
|
}
|
|
168
243
|
|
|
169
244
|
/**
|
|
@@ -241,6 +316,7 @@ function validateIntake(intake) {
|
|
|
241
316
|
validateQuestion(question, label, problems);
|
|
242
317
|
});
|
|
243
318
|
});
|
|
319
|
+
validateOrder(intake, problems);
|
|
244
320
|
return { ok: problems.length === 0, problems };
|
|
245
321
|
}
|
|
246
322
|
|
|
@@ -327,12 +403,16 @@ function publicQuestion(question) {
|
|
|
327
403
|
...(question.max !== undefined ? { max: question.max } : {}),
|
|
328
404
|
...(question.default !== undefined ? { default: question.default } : {}),
|
|
329
405
|
...(question.risk_if_unknown !== undefined ? { risk: question.risk_if_unknown } : {}),
|
|
406
|
+
...(question.suggest !== undefined ? { suggest: question.suggest } : {}),
|
|
330
407
|
};
|
|
331
408
|
}
|
|
332
409
|
|
|
333
410
|
/**
|
|
334
411
|
* What to ask next and whether the pack may act. Both inputs must be valid.
|
|
335
412
|
* `ready` holds once every must-have is answered or marked unknown with its risk.
|
|
413
|
+
* A pending question waits while a question in its `after` has no entry yet (answered,
|
|
414
|
+
* defaulted and unknown all settle it): it stays out of `next` and shows in `blocked`
|
|
415
|
+
* with the ids it waits for. `blocked` is present only when the file declares an `after`.
|
|
336
416
|
*/
|
|
337
417
|
function planIntake(intake, answers = emptyAnswers(intake)) {
|
|
338
418
|
const limit = intake.max_per_message ?? MAX_PER_MESSAGE.fallback;
|
|
@@ -340,7 +420,14 @@ function planIntake(intake, answers = emptyAnswers(intake)) {
|
|
|
340
420
|
const recorded = (question) => entryOf(answers.answers, question.id);
|
|
341
421
|
const pending = questions.filter((question) => recorded(question) === undefined);
|
|
342
422
|
const missing = pending.filter((question) => question.must_have === true);
|
|
343
|
-
const
|
|
423
|
+
const waitingFor = (question) =>
|
|
424
|
+
(question.after ?? []).filter((id) => entryOf(answers.answers, id) === undefined);
|
|
425
|
+
const blocked = pending.filter((question) => waitingFor(question).length > 0);
|
|
426
|
+
const askable = (question) => !blocked.includes(question);
|
|
427
|
+
const next = [
|
|
428
|
+
...missing.filter(askable),
|
|
429
|
+
...pending.filter((question) => question.must_have !== true && askable(question)),
|
|
430
|
+
]
|
|
344
431
|
.slice(0, limit)
|
|
345
432
|
.map(publicQuestion);
|
|
346
433
|
const unknowns = questions
|
|
@@ -360,6 +447,15 @@ function planIntake(intake, answers = emptyAnswers(intake)) {
|
|
|
360
447
|
ready: missing.length === 0,
|
|
361
448
|
missing: missing.map((question) => question.id),
|
|
362
449
|
next,
|
|
450
|
+
...(questions.some((question) => question.after !== undefined)
|
|
451
|
+
? {
|
|
452
|
+
blocked: blocked.map((question) => ({
|
|
453
|
+
id: question.id,
|
|
454
|
+
mustHave: question.must_have === true,
|
|
455
|
+
waitingFor: waitingFor(question),
|
|
456
|
+
})),
|
|
457
|
+
}
|
|
458
|
+
: {}),
|
|
363
459
|
unknowns,
|
|
364
460
|
counts: {
|
|
365
461
|
questions: questions.length,
|
|
@@ -561,15 +561,15 @@ module.exports = {
|
|
|
561
561
|
}
|
|
562
562
|
|
|
563
563
|
if (selectedPacks.includes('seo')) {
|
|
564
|
-
agentGuide.push(` ${i.guide_seo.padEnd(28)} → "/seo
|
|
564
|
+
agentGuide.push(` ${i.guide_seo.padEnd(28)} → "/seo full <url>"`);
|
|
565
565
|
}
|
|
566
566
|
|
|
567
567
|
if (selectedPacks.includes('backup')) {
|
|
568
|
-
agentGuide.push(` ${i.guide_backup.padEnd(28)} → "/backup
|
|
568
|
+
agentGuide.push(` ${i.guide_backup.padEnd(28)} → "/backup"`);
|
|
569
569
|
}
|
|
570
570
|
|
|
571
571
|
if (selectedPacks.includes('animated')) {
|
|
572
|
-
agentGuide.push(` ${i.guide_animated.padEnd(28)} → "
|
|
572
|
+
agentGuide.push(` ${i.guide_animated.padEnd(28)} → "animated website from <video.mp4>"`);
|
|
573
573
|
}
|
|
574
574
|
|
|
575
575
|
if (selectedPacks.includes('design')) {
|
|
@@ -609,7 +609,7 @@ module.exports = {
|
|
|
609
609
|
'',
|
|
610
610
|
`📦 ${i.guide_cli_title || 'CLI Commands'}:`,
|
|
611
611
|
` npx bmad-plus install ${i.guide_cli_install || '— Install agents & skills'}`,
|
|
612
|
-
` npx bmad-plus update
|
|
612
|
+
` npx bmad-plus@latest update ${i.guide_cli_update || '— Update agents (keeps config)'}`,
|
|
613
613
|
` npx bmad-plus doctor ${i.guide_cli_doctor || '— Check installation health'}`,
|
|
614
614
|
` npx bmad-plus uninstall ${i.guide_cli_uninstall || '— Remove BMAD+ from project'}`
|
|
615
615
|
);
|
|
@@ -617,15 +617,15 @@ module.exports = {
|
|
|
617
617
|
// Add pack-specific examples
|
|
618
618
|
const examples = [];
|
|
619
619
|
if (selectedPacks.includes('seo')) {
|
|
620
|
-
examples.push(` ${i.guide_example_seo || '🔍 SEO: "/seo
|
|
620
|
+
examples.push(` ${i.guide_example_seo || '🔍 SEO: "/seo full https://example.com"'}`);
|
|
621
621
|
}
|
|
622
622
|
if (selectedPacks.includes('backup')) {
|
|
623
|
-
examples.push(
|
|
624
|
-
` ${i.guide_example_backup || '🗂️ Backup: "/backup create" → ZIP timestamped'}`
|
|
625
|
-
);
|
|
623
|
+
examples.push(` ${i.guide_example_backup || '🗂️ Backup: "/backup" → ZIP timestamped'}`);
|
|
626
624
|
}
|
|
627
625
|
if (selectedPacks.includes('animated')) {
|
|
628
|
-
examples.push(
|
|
626
|
+
examples.push(
|
|
627
|
+
` ${i.guide_example_animated || '🎬 Animated: "animated website from hero.mp4"'}`
|
|
628
|
+
);
|
|
629
629
|
}
|
|
630
630
|
if (selectedPacks.includes('design')) {
|
|
631
631
|
examples.push(
|
|
@@ -786,6 +786,13 @@ function mergeSettings(existing, defaults, explicit) {
|
|
|
786
786
|
return merged;
|
|
787
787
|
}
|
|
788
788
|
|
|
789
|
+
/**
|
|
790
|
+
* Plain YAML under every supported js-yaml: forceQuotes is avoided because 5.2.x
|
|
791
|
+
* tags forced scalars (`!!bool 'true'`, `!!int '3'`) while 5.5 does not. Strings that
|
|
792
|
+
* would read as another type are still quoted by the dumper.
|
|
793
|
+
*/
|
|
794
|
+
const CONFIG_DUMP = { lineWidth: -1, quotingType: '"' };
|
|
795
|
+
|
|
789
796
|
/** Returns null when the existing file is not a YAML mapping (left untouched). */
|
|
790
797
|
function mergeConfigYaml(existingText, generatedText, explicit = {}) {
|
|
791
798
|
let existing;
|
|
@@ -801,7 +808,7 @@ function mergeConfigYaml(existingText, generatedText, explicit = {}) {
|
|
|
801
808
|
changed: true,
|
|
802
809
|
content:
|
|
803
810
|
'# BMAD+ Project Configuration\n# Generated by bmad-plus install; existing settings preserved\n\n' +
|
|
804
|
-
yaml.dump(merged,
|
|
811
|
+
yaml.dump(merged, CONFIG_DUMP),
|
|
805
812
|
};
|
|
806
813
|
}
|
|
807
814
|
|
|
@@ -847,7 +854,7 @@ function generateConfigYaml(
|
|
|
847
854
|
// never covered by a budget, the host always asks.
|
|
848
855
|
swarm: { ...SWARM_DEFAULTS },
|
|
849
856
|
},
|
|
850
|
-
|
|
857
|
+
CONFIG_DUMP
|
|
851
858
|
)
|
|
852
859
|
);
|
|
853
860
|
}
|
|
@@ -21,11 +21,15 @@ function describePlan(result) {
|
|
|
21
21
|
if (question.choices) hints.push(`choices: ${question.choices.join(', ')}`);
|
|
22
22
|
if (question.default !== undefined)
|
|
23
23
|
hints.push(`default: ${JSON.stringify(question.default)}`);
|
|
24
|
+
if (question.suggest !== undefined) hints.push(`suggest: ${question.suggest}`);
|
|
24
25
|
lines.push(
|
|
25
26
|
` - ${question.id} [${question.kind}] ${question.ask}${hints.length ? ` (${hints.join('; ')})` : ''}`
|
|
26
27
|
);
|
|
27
28
|
}
|
|
28
29
|
}
|
|
30
|
+
for (const blocked of result.blocked ?? []) {
|
|
31
|
+
lines.push(`Blocked: ${blocked.id} — waits for ${blocked.waitingFor.join(', ')}`);
|
|
32
|
+
}
|
|
29
33
|
for (const unknown of result.unknowns) {
|
|
30
34
|
lines.push(`Unknown: ${unknown.id}${unknown.risk ? ` — risk: ${unknown.risk}` : ''}`);
|
|
31
35
|
}
|
|
@@ -105,7 +105,8 @@ module.exports = {
|
|
|
105
105
|
process.exitCode = 1;
|
|
106
106
|
if (options.json)
|
|
107
107
|
console.log(JSON.stringify({ schemaVersion: 1, status: 'error', error: error.message }));
|
|
108
|
-
else
|
|
108
|
+
else
|
|
109
|
+
console.error(/^Nexus: /.test(error.message) ? error.message : 'Nexus: ' + error.message);
|
|
109
110
|
}
|
|
110
111
|
},
|
|
111
112
|
};
|
|
@@ -205,7 +205,7 @@ module.exports = {
|
|
|
205
205
|
options: [
|
|
206
206
|
['-d, --directory <path>', 'Project directory'],
|
|
207
207
|
['--dir <path>', 'Review folder inside the project', review.DEFAULT_DIR],
|
|
208
|
-
['--base <ref>', 'Base commit or branch (default HEAD~1)'],
|
|
208
|
+
['--base <ref>', 'Base commit or branch (default HEAD~1, HEAD with --workspace)'],
|
|
209
209
|
['--head <ref>', 'Head commit or branch (default HEAD)'],
|
|
210
210
|
['--workspace', 'Review the working tree, untracked files included, against the base'],
|
|
211
211
|
['--include <glob>', 'Only review matching paths (repeatable)', (v, all) => [...all, v], []],
|
|
@@ -20,7 +20,33 @@ const { planUpdate, applyPlan, restoreUpdate, MANIFEST } = require('../lib/updat
|
|
|
20
20
|
function authorizeAuto(projectDir, version) {
|
|
21
21
|
const { readUpdatePolicy, authorizeTarget } = require('../lib/update-policy');
|
|
22
22
|
const decision = authorizeTarget(readUpdatePolicy(projectDir), version);
|
|
23
|
-
if (!decision.allowed) throw
|
|
23
|
+
if (!decision.allowed) throw require('../lib/update-dispatch').autoRefusal(decision.reason);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// npx runs a cached or project-local copy of the package before it asks the registry, so a plain
|
|
27
|
+
// `update` can install an older release than the published one. Say so instead of staying silent.
|
|
28
|
+
async function warnIfBehindRegistry(projectDir, version) {
|
|
29
|
+
let check;
|
|
30
|
+
try {
|
|
31
|
+
check = await require('../lib/update-check').checkForUpdate({
|
|
32
|
+
projectDir,
|
|
33
|
+
runningVersion: version,
|
|
34
|
+
});
|
|
35
|
+
} catch {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const latest = check.latestVersion;
|
|
39
|
+
if (!isExactVersion(latest) || !semver.gt(latest, version)) return;
|
|
40
|
+
clack.log.warn(
|
|
41
|
+
'This copy of BMAD+ is v' +
|
|
42
|
+
version +
|
|
43
|
+
' but v' +
|
|
44
|
+
latest +
|
|
45
|
+
' is published (npx reuses a cached copy). Stop and run `npx bmad-plus@latest update`, or ' +
|
|
46
|
+
'`npx bmad-plus update --latest`, to install v' +
|
|
47
|
+
latest +
|
|
48
|
+
'.'
|
|
49
|
+
);
|
|
24
50
|
}
|
|
25
51
|
|
|
26
52
|
async function confirmAction(options, message, lang = 'en') {
|
|
@@ -118,6 +144,9 @@ module.exports = {
|
|
|
118
144
|
throw new Error('Downgrade refused: ' + manifest.version + ' -> ' + version);
|
|
119
145
|
const lang = options.lang || manifest.uiLanguage || 'en';
|
|
120
146
|
clack.log.info('Installed: v' + manifest.version + ' -> Executing package: v' + version);
|
|
147
|
+
if (!options.auto && !options.expectedVersion) {
|
|
148
|
+
await warnIfBehindRegistry(projectDir, version);
|
|
149
|
+
}
|
|
121
150
|
if (manifest.version === version) {
|
|
122
151
|
clack.log.success(
|
|
123
152
|
'The installed version matches this executing package. Use --latest to check the registry.'
|
package/tools/cli/i18n.js
CHANGED
|
@@ -86,9 +86,9 @@ const LANGUAGES = {
|
|
|
86
86
|
guide_cli_doctor: '— Check installation health',
|
|
87
87
|
guide_cli_uninstall: '— Remove BMAD+ from project',
|
|
88
88
|
guide_examples_title: 'Quick Examples',
|
|
89
|
-
guide_example_seo: '🔍 SEO: "/seo
|
|
90
|
-
guide_example_backup: '🗂️ Backup: "/backup
|
|
91
|
-
guide_example_animated: '🎬 Animated: "
|
|
89
|
+
guide_example_seo: '🔍 SEO: "/seo full https://example.com"',
|
|
90
|
+
guide_example_backup: '🗂️ Backup: "/backup" → ZIP timestamped',
|
|
91
|
+
guide_example_animated: '🎬 Animated: "animated website from hero.mp4"',
|
|
92
92
|
guide_example_design: '🎨 Design: "/design read" → Atelier interviews you, then builds',
|
|
93
93
|
guide_example_osint: '🔍 OSINT: "Shadow, investigate John Doe"',
|
|
94
94
|
guide_memory: '🧠 Persistent Brain',
|
|
@@ -180,9 +180,9 @@ const LANGUAGES = {
|
|
|
180
180
|
guide_cli_doctor: "— Vérifier l'installation",
|
|
181
181
|
guide_cli_uninstall: '— Supprimer BMAD+ du projet',
|
|
182
182
|
guide_examples_title: 'Exemples rapides',
|
|
183
|
-
guide_example_seo: '🔍 SEO : "/seo
|
|
184
|
-
guide_example_backup: '🗂️ Backup : "/backup
|
|
185
|
-
guide_example_animated: '🎬 Animé : "
|
|
183
|
+
guide_example_seo: '🔍 SEO : "/seo full https://example.com"',
|
|
184
|
+
guide_example_backup: '🗂️ Backup : "/backup" → ZIP horodaté',
|
|
185
|
+
guide_example_animated: '🎬 Animé : "animated website from hero.mp4"',
|
|
186
186
|
guide_example_design: '🎨 Design : "/design read" → Atelier vous interroge, puis construit',
|
|
187
187
|
guide_example_osint: '🔍 OSINT : "Shadow, investigate John Doe"',
|
|
188
188
|
guide_memory: '🧠 Cerveau persistant',
|
|
@@ -276,9 +276,9 @@ const LANGUAGES = {
|
|
|
276
276
|
guide_cli_doctor: '— Verificar la instalación',
|
|
277
277
|
guide_cli_uninstall: '— Eliminar BMAD+ del proyecto',
|
|
278
278
|
guide_examples_title: 'Ejemplos rápidos',
|
|
279
|
-
guide_example_seo: '🔍 SEO: "/seo
|
|
280
|
-
guide_example_backup: '🗂️ Backup: "/backup
|
|
281
|
-
guide_example_animated: '🎬 Animado: "
|
|
279
|
+
guide_example_seo: '🔍 SEO: "/seo full https://example.com"',
|
|
280
|
+
guide_example_backup: '🗂️ Backup: "/backup" → ZIP con marca de tiempo',
|
|
281
|
+
guide_example_animated: '🎬 Animado: "animated website from hero.mp4"',
|
|
282
282
|
guide_example_design: '🎨 Diseño: "/design read" → Atelier te entrevista y luego construye',
|
|
283
283
|
guide_example_osint: '🔍 OSINT: "Shadow, investigate John Doe"',
|
|
284
284
|
guide_memory: '🧠 Cerebro persistente',
|
|
@@ -374,9 +374,9 @@ const LANGUAGES = {
|
|
|
374
374
|
guide_cli_doctor: '— Installation prüfen',
|
|
375
375
|
guide_cli_uninstall: '— BMAD+ vom Projekt entfernen',
|
|
376
376
|
guide_examples_title: 'Schnellbeispiele',
|
|
377
|
-
guide_example_seo: '🔍 SEO: "/seo
|
|
378
|
-
guide_example_backup: '🗂️ Backup: "/backup
|
|
379
|
-
guide_example_animated: '🎬 Animiert: "
|
|
377
|
+
guide_example_seo: '🔍 SEO: "/seo full https://example.com"',
|
|
378
|
+
guide_example_backup: '🗂️ Backup: "/backup" → ZIP mit Zeitstempel',
|
|
379
|
+
guide_example_animated: '🎬 Animiert: "animated website from hero.mp4"',
|
|
380
380
|
guide_example_design: '🎨 Design: "/design read" → Atelier befragt dich, dann baut es',
|
|
381
381
|
guide_example_osint: '🔍 OSINT: "Shadow, investigate John Doe"',
|
|
382
382
|
guide_memory: '🧠 Beständiges Gehirn',
|
|
@@ -471,9 +471,9 @@ const LANGUAGES = {
|
|
|
471
471
|
guide_cli_doctor: '— Verificar instalação',
|
|
472
472
|
guide_cli_uninstall: '— Remover BMAD+ do projeto',
|
|
473
473
|
guide_examples_title: 'Exemplos rápidos',
|
|
474
|
-
guide_example_seo: '🔍 SEO: "/seo
|
|
475
|
-
guide_example_backup: '🗂️ Backup: "/backup
|
|
476
|
-
guide_example_animated: '🎬 Animado: "
|
|
474
|
+
guide_example_seo: '🔍 SEO: "/seo full https://example.com"',
|
|
475
|
+
guide_example_backup: '🗂️ Backup: "/backup" → ZIP com timestamp',
|
|
476
|
+
guide_example_animated: '🎬 Animado: "animated website from hero.mp4"',
|
|
477
477
|
guide_example_design: '🎨 Design: "/design read" → Atelier entrevista você, depois constrói',
|
|
478
478
|
guide_example_osint: '🔍 OSINT: "Shadow, investigate John Doe"',
|
|
479
479
|
guide_memory: '🧠 Cérebro persistente',
|
|
@@ -565,9 +565,9 @@ const LANGUAGES = {
|
|
|
565
565
|
guide_cli_doctor: '— Проверить установку',
|
|
566
566
|
guide_cli_uninstall: '— Удалить BMAD+',
|
|
567
567
|
guide_examples_title: 'Быстрые примеры',
|
|
568
|
-
guide_example_seo: '🔍 SEO: "/seo
|
|
569
|
-
guide_example_backup: '🗂️ Бэкап: "/backup
|
|
570
|
-
guide_example_animated: '🎬 Анимация: "
|
|
568
|
+
guide_example_seo: '🔍 SEO: "/seo full https://example.com"',
|
|
569
|
+
guide_example_backup: '🗂️ Бэкап: "/backup" → ZIP',
|
|
570
|
+
guide_example_animated: '🎬 Анимация: "animated website from hero.mp4"',
|
|
571
571
|
guide_example_design: '🎨 Дизайн: "/design read" → Atelier опрашивает вас, затем строит',
|
|
572
572
|
guide_example_osint: '🔍 OSINT: "Shadow, investigate John Doe"',
|
|
573
573
|
guide_memory: '🧠 Постоянный мозг',
|
|
@@ -655,9 +655,9 @@ const LANGUAGES = {
|
|
|
655
655
|
guide_cli_doctor: '— 检查安装',
|
|
656
656
|
guide_cli_uninstall: '— 删除 BMAD+',
|
|
657
657
|
guide_examples_title: '快速示例',
|
|
658
|
-
guide_example_seo: '🔍 SEO: "/seo
|
|
659
|
-
guide_example_backup: '🗂️ 备份: "/backup
|
|
660
|
-
guide_example_animated: '🎬 动画: "
|
|
658
|
+
guide_example_seo: '🔍 SEO: "/seo full https://example.com"',
|
|
659
|
+
guide_example_backup: '🗂️ 备份: "/backup" → ZIP',
|
|
660
|
+
guide_example_animated: '🎬 动画: "animated website from hero.mp4"',
|
|
661
661
|
guide_example_design: '🎨 设计: "/design read" → Atelier 先向你提问,再构建',
|
|
662
662
|
guide_example_osint: '🔍 OSINT: "Shadow, investigate John Doe"',
|
|
663
663
|
guide_memory: '🧠 持久记忆',
|
|
@@ -745,9 +745,9 @@ const LANGUAGES = {
|
|
|
745
745
|
guide_cli_doctor: '— בדיקת התקנה',
|
|
746
746
|
guide_cli_uninstall: '— הסרת BMAD+',
|
|
747
747
|
guide_examples_title: 'דוגמאות מהירות',
|
|
748
|
-
guide_example_seo: '🔍 SEO: "/seo
|
|
749
|
-
guide_example_backup: '🗂️ גיבוי: "/backup
|
|
750
|
-
guide_example_animated: '🎬 אנימציה: "
|
|
748
|
+
guide_example_seo: '🔍 SEO: "/seo full https://example.com"',
|
|
749
|
+
guide_example_backup: '🗂️ גיבוי: "/backup" → ZIP',
|
|
750
|
+
guide_example_animated: '🎬 אנימציה: "animated website from hero.mp4"',
|
|
751
751
|
guide_example_design: '🎨 עיצוב: "/design read" → Atelier מראיין אותך ואז בונה',
|
|
752
752
|
guide_example_osint: '🔍 OSINT: "Shadow, investigate John Doe"',
|
|
753
753
|
guide_memory: '🧠 זיכרון מתמשך',
|
|
@@ -839,9 +839,9 @@ const LANGUAGES = {
|
|
|
839
839
|
guide_cli_doctor: '— インストール確認',
|
|
840
840
|
guide_cli_uninstall: '— BMAD+を削除',
|
|
841
841
|
guide_examples_title: 'クイック例',
|
|
842
|
-
guide_example_seo: '🔍 SEO: "/seo
|
|
843
|
-
guide_example_backup: '🗂️ バックアップ: "/backup
|
|
844
|
-
guide_example_animated: '🎬 アニメ: "
|
|
842
|
+
guide_example_seo: '🔍 SEO: "/seo full https://example.com"',
|
|
843
|
+
guide_example_backup: '🗂️ バックアップ: "/backup" → ZIP',
|
|
844
|
+
guide_example_animated: '🎬 アニメ: "animated website from hero.mp4"',
|
|
845
845
|
guide_example_design: '🎨 デザイン: "/design read" → Atelier がヒアリングしてから構築します',
|
|
846
846
|
guide_example_osint: '🔍 OSINT: "Shadow, investigate John Doe"',
|
|
847
847
|
guide_memory: '🧠 永続的な脳',
|
|
@@ -934,9 +934,9 @@ const LANGUAGES = {
|
|
|
934
934
|
guide_cli_doctor: '— Verifica installazione',
|
|
935
935
|
guide_cli_uninstall: '— Rimuovi BMAD+ dal progetto',
|
|
936
936
|
guide_examples_title: 'Esempi rapidi',
|
|
937
|
-
guide_example_seo: '🔍 SEO: "/seo
|
|
938
|
-
guide_example_backup: '🗂️ Backup: "/backup
|
|
939
|
-
guide_example_animated: '🎬 Animato: "
|
|
937
|
+
guide_example_seo: '🔍 SEO: "/seo full https://example.com"',
|
|
938
|
+
guide_example_backup: '🗂️ Backup: "/backup" → ZIP con timestamp',
|
|
939
|
+
guide_example_animated: '🎬 Animato: "animated website from hero.mp4"',
|
|
940
940
|
guide_example_design: '🎨 Design: "/design read" → Atelier ti intervista, poi costruisce',
|
|
941
941
|
guide_example_osint: '🔍 OSINT: "Shadow, investigate John Doe"',
|
|
942
942
|
guide_memory: '🧠 Memoria persistente',
|
package/tools/cli/lib/packs.js
CHANGED
|
@@ -18,6 +18,7 @@ const PACKS = {
|
|
|
18
18
|
],
|
|
19
19
|
"skills": [
|
|
20
20
|
"bmad-plus-autopilot",
|
|
21
|
+
"bmad-plus-challenge",
|
|
21
22
|
"bmad-plus-intake",
|
|
22
23
|
"bmad-plus-parallel",
|
|
23
24
|
"bmad-plus-sync",
|
|
@@ -57,7 +58,7 @@ const PACKS = {
|
|
|
57
58
|
"skills": [],
|
|
58
59
|
"packDir": "pack-shield",
|
|
59
60
|
"packSrcDir": "packs",
|
|
60
|
-
"desc": "GRC compliance (
|
|
61
|
+
"desc": "GRC compliance (27 frameworks)"
|
|
61
62
|
},
|
|
62
63
|
"seo": {
|
|
63
64
|
"name": "SEO",
|
|
@@ -220,7 +221,7 @@ const DERIVED = {
|
|
|
220
221
|
"product": {
|
|
221
222
|
"code": "bmad-plus",
|
|
222
223
|
"displayName": "BMAD+",
|
|
223
|
-
"version": "0.
|
|
224
|
+
"version": "0.24.0",
|
|
224
225
|
"derivedFrom": "BMAD-METHOD v6.6.0"
|
|
225
226
|
},
|
|
226
227
|
"packOrder": [
|
|
@@ -265,7 +266,7 @@ const DERIVED = {
|
|
|
265
266
|
"workflowCount": 0,
|
|
266
267
|
"frameworkCount": 0,
|
|
267
268
|
"categoryCount": 0,
|
|
268
|
-
"skillCount":
|
|
269
|
+
"skillCount": 7,
|
|
269
270
|
"referenceFiles": 0,
|
|
270
271
|
"categoryAgentCounts": [],
|
|
271
272
|
"runtimes": [
|
|
@@ -277,6 +278,7 @@ const DERIVED = {
|
|
|
277
278
|
".agents/skills/agent-quality/SKILL.md",
|
|
278
279
|
".agents/skills/agent-orchestrator/SKILL.md",
|
|
279
280
|
".agents/skills/bmad-plus-autopilot/SKILL.md",
|
|
281
|
+
".agents/skills/bmad-plus-challenge/SKILL.md",
|
|
280
282
|
".agents/skills/bmad-plus-intake/SKILL.md",
|
|
281
283
|
".agents/skills/bmad-plus-parallel/SKILL.md",
|
|
282
284
|
".agents/skills/bmad-plus-sync/SKILL.md",
|
|
@@ -289,25 +291,37 @@ const DERIVED = {
|
|
|
289
291
|
"id": "agent-strategist",
|
|
290
292
|
"name": "Atlas",
|
|
291
293
|
"role": "Strategist",
|
|
292
|
-
"description": "Business analysis + Product management"
|
|
294
|
+
"description": "Business analysis + Product management",
|
|
295
|
+
"usesSkills": [
|
|
296
|
+
"bmad-plus-challenge"
|
|
297
|
+
]
|
|
293
298
|
},
|
|
294
299
|
{
|
|
295
300
|
"id": "agent-architect-dev",
|
|
296
301
|
"name": "Forge",
|
|
297
302
|
"role": "Architect-Dev",
|
|
298
|
-
"description": "Architecture + Development + Documentation"
|
|
303
|
+
"description": "Architecture + Development + Documentation",
|
|
304
|
+
"usesSkills": [
|
|
305
|
+
"bmad-plus-challenge"
|
|
306
|
+
]
|
|
299
307
|
},
|
|
300
308
|
{
|
|
301
309
|
"id": "agent-quality",
|
|
302
310
|
"name": "Sentinel",
|
|
303
311
|
"role": "Quality",
|
|
304
|
-
"description": "QA + UX review"
|
|
312
|
+
"description": "QA + UX review",
|
|
313
|
+
"usesSkills": [
|
|
314
|
+
"bmad-plus-challenge"
|
|
315
|
+
]
|
|
305
316
|
},
|
|
306
317
|
{
|
|
307
318
|
"id": "agent-orchestrator",
|
|
308
319
|
"name": "Nexus",
|
|
309
320
|
"role": "Orchestrator",
|
|
310
|
-
"description": "Sprint management + Autopilot + Parallel execution"
|
|
321
|
+
"description": "Sprint management + Autopilot + Parallel execution",
|
|
322
|
+
"usesSkills": [
|
|
323
|
+
"bmad-plus-challenge"
|
|
324
|
+
]
|
|
311
325
|
}
|
|
312
326
|
],
|
|
313
327
|
"summary": "Multi-role agents for the full development lifecycle.",
|
|
@@ -377,7 +391,10 @@ const DERIVED = {
|
|
|
377
391
|
"id": "agent-maker",
|
|
378
392
|
"name": "Maker",
|
|
379
393
|
"role": "Agent Creator",
|
|
380
|
-
"description": "Design, build, validate, and package new BMAD+ agents"
|
|
394
|
+
"description": "Design, build, validate, and package new BMAD+ agents",
|
|
395
|
+
"usesSkills": [
|
|
396
|
+
"bmad-plus-challenge"
|
|
397
|
+
]
|
|
381
398
|
}
|
|
382
399
|
],
|
|
383
400
|
"summary": "Design, build, validate, and package new BMAD+-compatible agents.",
|
|
@@ -396,7 +413,7 @@ const DERIVED = {
|
|
|
396
413
|
"agentCount": 27,
|
|
397
414
|
"subAgentCount": 0,
|
|
398
415
|
"workflowCount": 11,
|
|
399
|
-
"frameworkCount":
|
|
416
|
+
"frameworkCount": 27,
|
|
400
417
|
"categoryCount": 6,
|
|
401
418
|
"skillCount": 0,
|
|
402
419
|
"referenceFiles": 79,
|
|
@@ -421,12 +438,15 @@ const DERIVED = {
|
|
|
421
438
|
"id": "shield-orchestrator",
|
|
422
439
|
"name": "Shield",
|
|
423
440
|
"role": "GRC",
|
|
424
|
-
"description": "Compliance agents for GDPR, ISO 27001, SOC 2, HIPAA, EU AI Act, DORA, NIS2 and more"
|
|
441
|
+
"description": "Compliance agents for GDPR, ISO 27001, SOC 2, HIPAA, EU AI Act, DORA, NIS2 and more",
|
|
442
|
+
"usesSkills": [
|
|
443
|
+
"bmad-plus-challenge"
|
|
444
|
+
]
|
|
425
445
|
}
|
|
426
446
|
],
|
|
427
|
-
"summary": "27 compliance agents + 11 workflows across
|
|
428
|
-
"desc": "GRC compliance (
|
|
429
|
-
"description": "GRC compliance (
|
|
447
|
+
"summary": "27 compliance agents + 11 workflows across 27+ frameworks.",
|
|
448
|
+
"desc": "GRC compliance (27 frameworks)",
|
|
449
|
+
"description": "GRC compliance (27 frameworks)"
|
|
430
450
|
},
|
|
431
451
|
"seo": {
|
|
432
452
|
"id": "seo",
|
|
@@ -467,7 +487,10 @@ const DERIVED = {
|
|
|
467
487
|
"id": "seo-chief",
|
|
468
488
|
"name": "SEO Chief",
|
|
469
489
|
"role": "Strategist & Reporter",
|
|
470
|
-
"description": "Scoring + strategy + reporting"
|
|
490
|
+
"description": "Scoring + strategy + reporting",
|
|
491
|
+
"usesSkills": [
|
|
492
|
+
"bmad-plus-challenge"
|
|
493
|
+
]
|
|
471
494
|
},
|
|
472
495
|
{
|
|
473
496
|
"id": "seo-judge",
|
|
@@ -559,7 +582,10 @@ const DERIVED = {
|
|
|
559
582
|
"name": "Miriam",
|
|
560
583
|
"role": "Business Analyst",
|
|
561
584
|
"description": "Strategic analysis, research, product briefs",
|
|
562
|
-
"alias": "מרים"
|
|
585
|
+
"alias": "מרים",
|
|
586
|
+
"usesSkills": [
|
|
587
|
+
"bmad-plus-challenge"
|
|
588
|
+
]
|
|
563
589
|
},
|
|
564
590
|
{
|
|
565
591
|
"id": "tech-writer-agent",
|
|
@@ -573,7 +599,10 @@ const DERIVED = {
|
|
|
573
599
|
"name": "Yosef",
|
|
574
600
|
"role": "Product Manager",
|
|
575
601
|
"description": "PRD, requirements, feature prioritization",
|
|
576
|
-
"alias": "יוסף"
|
|
602
|
+
"alias": "יוסף",
|
|
603
|
+
"usesSkills": [
|
|
604
|
+
"bmad-plus-challenge"
|
|
605
|
+
]
|
|
577
606
|
},
|
|
578
607
|
{
|
|
579
608
|
"id": "ux-designer-agent",
|
|
@@ -587,7 +616,10 @@ const DERIVED = {
|
|
|
587
616
|
"name": "Bezalel",
|
|
588
617
|
"role": "System Architect",
|
|
589
618
|
"description": "Architecture, ADRs, epics & stories",
|
|
590
|
-
"alias": "בצלאל"
|
|
619
|
+
"alias": "בצלאל",
|
|
620
|
+
"usesSkills": [
|
|
621
|
+
"bmad-plus-challenge"
|
|
622
|
+
]
|
|
591
623
|
},
|
|
592
624
|
{
|
|
593
625
|
"id": "dev-agent",
|
package/tools/cli/lib/review.js
CHANGED
|
@@ -221,7 +221,8 @@ function contentDigest(projectDir, file) {
|
|
|
221
221
|
*/
|
|
222
222
|
function buildScope(projectDir, options = {}) {
|
|
223
223
|
const head = options.workspace ? null : resolveCommit(projectDir, options.head || 'HEAD');
|
|
224
|
-
|
|
224
|
+
// A workspace review covers the uncommitted work, so its default base is HEAD.
|
|
225
|
+
const base = resolveCommit(projectDir, options.base || (options.workspace ? 'HEAD' : 'HEAD~1'));
|
|
225
226
|
const mergeBase = git(projectDir, ['merge-base', base, head || 'HEAD']).trim();
|
|
226
227
|
const range = options.workspace ? [mergeBase] : [mergeBase, head];
|
|
227
228
|
const numstat = parseNumstat(
|
|
@@ -24,6 +24,14 @@ function refusal(reason, detail) {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* One refusal for an `--auto` request, wherever it is evaluated: a policy that
|
|
29
|
+
* is not in `auto` mode never reads as the generic `approval-required` status.
|
|
30
|
+
*/
|
|
31
|
+
function autoRefusal(reason) {
|
|
32
|
+
return refusal(reason === 'approval-required' ? 'automatic-updates-not-authorized' : reason);
|
|
33
|
+
}
|
|
34
|
+
|
|
27
35
|
function requirePolicy(policy, targetVersion, auto) {
|
|
28
36
|
if (policy.registry !== OFFICIAL_REGISTRY) throw refusal('unsupported-registry');
|
|
29
37
|
if (policy.mode === 'off') throw refusal('updates-disabled');
|
|
@@ -31,7 +39,7 @@ function requirePolicy(policy, targetVersion, auto) {
|
|
|
31
39
|
throw refusal('prerelease-not-allowed');
|
|
32
40
|
if (auto) {
|
|
33
41
|
const authorization = authorizeTarget(policy, targetVersion);
|
|
34
|
-
if (!authorization.allowed) throw
|
|
42
|
+
if (!authorization.allowed) throw autoRefusal(authorization.reason);
|
|
35
43
|
}
|
|
36
44
|
}
|
|
37
45
|
|
|
@@ -179,4 +187,4 @@ async function runLatestUpdate({ projectDir, auto = false, yes = false }, inject
|
|
|
179
187
|
};
|
|
180
188
|
}
|
|
181
189
|
|
|
182
|
-
module.exports = { runLatestUpdate };
|
|
190
|
+
module.exports = { runLatestUpdate, autoRefusal };
|