@mstar-harness/cli 1.5.1 → 1.5.3
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/mstar-harness.js +23 -9
- package/package.json +1 -1
package/dist/mstar-harness.js
CHANGED
|
@@ -4216,7 +4216,24 @@ function validateSymlink(target, linkPath) {
|
|
|
4216
4216
|
}
|
|
4217
4217
|
return errors2;
|
|
4218
4218
|
}
|
|
4219
|
-
var
|
|
4219
|
+
var HARNESS_PROCESS_GITIGNORE = [
|
|
4220
|
+
".mstar/archived/",
|
|
4221
|
+
".mstar/iterations/",
|
|
4222
|
+
".mstar/plans/",
|
|
4223
|
+
".mstar/sdd/",
|
|
4224
|
+
".mstar/notes.json",
|
|
4225
|
+
".mstar/status.json",
|
|
4226
|
+
".agents/archived/",
|
|
4227
|
+
".agents/iterations/",
|
|
4228
|
+
".agents/plans/",
|
|
4229
|
+
".agents/sdd/",
|
|
4230
|
+
".agents/notes.json",
|
|
4231
|
+
".agents/status.json"
|
|
4232
|
+
];
|
|
4233
|
+
function missingHarnessProcessGitignoreEntries(gitignoreContent) {
|
|
4234
|
+
const lines = gitignoreContent.split(/\r?\n/);
|
|
4235
|
+
return HARNESS_PROCESS_GITIGNORE.filter((entry) => !lines.includes(entry));
|
|
4236
|
+
}
|
|
4220
4237
|
function appendGitignore(projectRoot, entries, dryRun) {
|
|
4221
4238
|
const gitignorePath = path3.join(projectRoot, ".gitignore");
|
|
4222
4239
|
const current = fs2.existsSync(gitignorePath) ? fs2.readFileSync(gitignorePath, "utf8") : "";
|
|
@@ -4235,7 +4252,7 @@ function appendGitignore(projectRoot, entries, dryRun) {
|
|
|
4235
4252
|
return missing.map((entry) => `Added ${entry} to .gitignore`);
|
|
4236
4253
|
}
|
|
4237
4254
|
function appendHarnessProjectGitignore(projectRoot, dryRun) {
|
|
4238
|
-
return appendGitignore(projectRoot,
|
|
4255
|
+
return appendGitignore(projectRoot, HARNESS_PROCESS_GITIGNORE, dryRun);
|
|
4239
4256
|
}
|
|
4240
4257
|
function homeRelativeSourcePath(targetPath) {
|
|
4241
4258
|
const rel = path3.relative(os.homedir(), targetPath).split(path3.sep).join("/");
|
|
@@ -4456,9 +4473,8 @@ function runDoctor(scope) {
|
|
|
4456
4473
|
errors2.push(`Missing .gitignore entry: ${CODEX_PLUGIN_LINK}`);
|
|
4457
4474
|
if (!lines.includes(".codex/agents/*.toml"))
|
|
4458
4475
|
errors2.push("Missing .gitignore entry: .codex/agents/*.toml");
|
|
4459
|
-
for (const entry of
|
|
4460
|
-
|
|
4461
|
-
errors2.push(`Missing .gitignore entry: ${entry}`);
|
|
4476
|
+
for (const entry of missingHarnessProcessGitignoreEntries(gitignore)) {
|
|
4477
|
+
errors2.push(`Missing .gitignore entry: ${entry}`);
|
|
4462
4478
|
}
|
|
4463
4479
|
errors2.push(...validateIterationSkillLinks());
|
|
4464
4480
|
}
|
|
@@ -4541,10 +4557,8 @@ function projectDoctor() {
|
|
|
4541
4557
|
if (!gitignore.split(/\r?\n/).includes(CURSOR_PLUGIN_LINK)) {
|
|
4542
4558
|
errors2.push(`Missing .gitignore entry: ${CURSOR_PLUGIN_LINK}`);
|
|
4543
4559
|
}
|
|
4544
|
-
for (const entry of
|
|
4545
|
-
|
|
4546
|
-
errors2.push(`Missing .gitignore entry: ${entry}`);
|
|
4547
|
-
}
|
|
4560
|
+
for (const entry of missingHarnessProcessGitignoreEntries(gitignore)) {
|
|
4561
|
+
errors2.push(`Missing .gitignore entry: ${entry}`);
|
|
4548
4562
|
}
|
|
4549
4563
|
errors2.push(...validatePluginAgents(location));
|
|
4550
4564
|
return { location, errors: errors2 };
|