bemadralphy 2.0.3 → 2.0.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.
|
@@ -1,7 +1,16 @@
|
|
|
1
|
+
import { copyFileSync, existsSync } from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
1
3
|
import { logInfo } from '../utils/logging.js';
|
|
2
4
|
import { assertCommandExists, runCommand } from '../utils/exec.js';
|
|
3
5
|
export async function runClaudeTeamsBatch(projectRoot, maxParallel) {
|
|
4
6
|
logInfo(`swarm: running Claude teams batch (maxParallel=${maxParallel})`);
|
|
7
|
+
// Ralphy expects PRD.md in root, but BeMadRalphy generates in _bmad-output/
|
|
8
|
+
const bmadPrd = path.join(projectRoot, '_bmad-output', 'prd.md');
|
|
9
|
+
const rootPrd = path.join(projectRoot, 'PRD.md');
|
|
10
|
+
if (existsSync(bmadPrd) && !existsSync(rootPrd)) {
|
|
11
|
+
logInfo('swarm: copying _bmad-output/prd.md to PRD.md for ralphy compatibility');
|
|
12
|
+
copyFileSync(bmadPrd, rootPrd);
|
|
13
|
+
}
|
|
5
14
|
await assertCommandExists('ralphy', 'Install with: npm install -g ralphy-cli');
|
|
6
15
|
await runCommand('ralphy', ['--claude', '--parallel', '--max-parallel', String(maxParallel), '--max-iterations', '1'], projectRoot);
|
|
7
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-teams.js","sourceRoot":"","sources":["../../src/swarm/claude-teams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnE,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,WAAmB,EAAE,WAAmB;IAChF,OAAO,CAAC,kDAAkD,WAAW,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"claude-teams.js","sourceRoot":"","sources":["../../src/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