codeharness 0.18.0 → 0.18.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 +13 -24
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1081,28 +1081,17 @@ function installBmad(dir) {
|
|
|
1081
1081
|
patches_applied: []
|
|
1082
1082
|
};
|
|
1083
1083
|
}
|
|
1084
|
-
const cmdStr = "npx bmad-method install";
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
lastError = "";
|
|
1096
|
-
break;
|
|
1097
|
-
} catch (err) {
|
|
1098
|
-
lastError = err instanceof Error ? err.message : String(err);
|
|
1099
|
-
if (attempt < maxAttempts) {
|
|
1100
|
-
execFileSync4("sleep", ["2"]);
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
if (lastError) {
|
|
1105
|
-
throw new BmadError(cmdStr, lastError);
|
|
1084
|
+
const cmdStr = "npx bmad-method install --yes --tools claude-code";
|
|
1085
|
+
try {
|
|
1086
|
+
execFileSync4("npx", ["bmad-method", "install", "--yes", "--tools", "claude-code"], {
|
|
1087
|
+
stdio: "pipe",
|
|
1088
|
+
timeout: 12e4,
|
|
1089
|
+
// 2 min — npx may need to download the package first time
|
|
1090
|
+
cwd: root
|
|
1091
|
+
});
|
|
1092
|
+
} catch (err) {
|
|
1093
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
1094
|
+
throw new BmadError(cmdStr, message);
|
|
1106
1095
|
}
|
|
1107
1096
|
if (!isBmadInstalled(root)) {
|
|
1108
1097
|
throw new BmadError(cmdStr, "_bmad/ directory was not created after successful npx bmad-method install");
|
|
@@ -1403,7 +1392,7 @@ function getInstallCommand(stack) {
|
|
|
1403
1392
|
}
|
|
1404
1393
|
|
|
1405
1394
|
// src/commands/init.ts
|
|
1406
|
-
var HARNESS_VERSION = true ? "0.18.
|
|
1395
|
+
var HARNESS_VERSION = true ? "0.18.1" : "0.0.0-dev";
|
|
1407
1396
|
function getProjectName(projectDir) {
|
|
1408
1397
|
try {
|
|
1409
1398
|
const pkgPath = join7(projectDir, "package.json");
|
|
@@ -7775,7 +7764,7 @@ function handleStatus(dir, isJson, filterStory) {
|
|
|
7775
7764
|
}
|
|
7776
7765
|
|
|
7777
7766
|
// src/index.ts
|
|
7778
|
-
var VERSION = true ? "0.18.
|
|
7767
|
+
var VERSION = true ? "0.18.1" : "0.0.0-dev";
|
|
7779
7768
|
function createProgram() {
|
|
7780
7769
|
const program = new Command();
|
|
7781
7770
|
program.name("codeharness").description("Makes autonomous coding agents produce software that actually works").version(VERSION).option("--json", "Output in machine-readable JSON format");
|