@mstar-harness/cli 1.5.0 → 1.5.2

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.
@@ -4216,7 +4216,24 @@ function validateSymlink(target, linkPath) {
4216
4216
  }
4217
4217
  return errors2;
4218
4218
  }
4219
- var SDD_SCRATCH_GITIGNORE = [".mstar/sdd/", ".agents/sdd/"];
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, SDD_SCRATCH_GITIGNORE, dryRun);
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 SDD_SCRATCH_GITIGNORE) {
4460
- if (!lines.includes(entry))
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 SDD_SCRATCH_GITIGNORE) {
4545
- if (!gitignore.split(/\r?\n/).includes(entry)) {
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mstar-harness/cli",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "Morning Star harness installer CLI (OpenCode, Cursor, Codex).",
5
5
  "license": "MIT",
6
6
  "repository": {