buildcrew 1.3.0 → 1.3.1
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/bin/setup.js +12 -0
- package/package.json +1 -1
package/bin/setup.js
CHANGED
|
@@ -374,6 +374,18 @@ async function runInstall(force) {
|
|
|
374
374
|
log(`\n ${BOLD}buildcrew${RESET} v${VERSION}\n ${DIM}11 AI agents for Claude Code${RESET}\n`);
|
|
375
375
|
|
|
376
376
|
await mkdir(TARGET_DIR, { recursive: true });
|
|
377
|
+
|
|
378
|
+
// Migrate: remove renamed agents from previous versions
|
|
379
|
+
const deprecated = ["constitution.md"];
|
|
380
|
+
for (const old of deprecated) {
|
|
381
|
+
const oldPath = join(TARGET_DIR, old);
|
|
382
|
+
if (await exists(oldPath)) {
|
|
383
|
+
const { unlink } = await import("fs/promises");
|
|
384
|
+
await unlink(oldPath);
|
|
385
|
+
log(` ${YELLOW} ✕ ${RESET} ${old} ${DIM}(renamed → buildcrew.md)${RESET}`);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
377
389
|
let installed = 0, skipped = 0;
|
|
378
390
|
|
|
379
391
|
for (const file of files) {
|
package/package.json
CHANGED