harness-bujang 0.2.0 → 0.2.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/dist/index.js +18 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -204,6 +204,13 @@ async function runInit(args) {
|
|
|
204
204
|
if (interactive) {
|
|
205
205
|
try {
|
|
206
206
|
opts = await promptInteractive(opts, scan);
|
|
207
|
+
if (await isExistingInstall(opts.target)) {
|
|
208
|
+
const overwrite = await confirm({
|
|
209
|
+
message: "Existing harness install detected. Overwrite all files to apply your selections?",
|
|
210
|
+
default: false
|
|
211
|
+
});
|
|
212
|
+
if (overwrite) opts.yes = true;
|
|
213
|
+
}
|
|
207
214
|
} catch (err) {
|
|
208
215
|
if (err && typeof err === "object" && "name" in err && err.name === "ExitPromptError") {
|
|
209
216
|
console.log(c.dim(" (aborted)"));
|
|
@@ -218,6 +225,7 @@ async function runInit(args) {
|
|
|
218
225
|
if (scan.framework.startsWith("Next.js")) {
|
|
219
226
|
console.log(c.dim(` Chat-room UI: ${opts.installTemplate ? "install" : "skip"}`));
|
|
220
227
|
}
|
|
228
|
+
console.log(c.dim(` On conflict: ${opts.yes ? "overwrite" : "skip existing files"}`));
|
|
221
229
|
console.log();
|
|
222
230
|
if (interactive) {
|
|
223
231
|
try {
|
|
@@ -448,6 +456,16 @@ function getFlag(args, name) {
|
|
|
448
456
|
}
|
|
449
457
|
return void 0;
|
|
450
458
|
}
|
|
459
|
+
async function isExistingInstall(target) {
|
|
460
|
+
const probes = [
|
|
461
|
+
path2.join(target, ".claude/agents/director.md"),
|
|
462
|
+
path2.join(target, ".claude/agents/dev-team.md")
|
|
463
|
+
];
|
|
464
|
+
for (const p of probes) {
|
|
465
|
+
if (await exists2(p)) return true;
|
|
466
|
+
}
|
|
467
|
+
return false;
|
|
468
|
+
}
|
|
451
469
|
async function exists2(p) {
|
|
452
470
|
try {
|
|
453
471
|
await fs2.access(p);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "harness-bujang",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Install the Harness-Bujang multi-agent harness into any project — Director, 7 specialist teams, real-time chat-room UI. Korean and English personas. Works with Claude Code, Cursor, Cline, Aider, or any tool that reads .claude/agents/.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|