@mstar-harness/cli 0.5.4 → 1.0.0

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.
@@ -4429,6 +4429,7 @@ function validateSymlink(target, linkPath) {
4429
4429
  }
4430
4430
  return errors2;
4431
4431
  }
4432
+ var SDD_SCRATCH_GITIGNORE = [".mstar/sdd/", ".agents/sdd/"];
4432
4433
  function appendGitignore(projectRoot, entries, dryRun) {
4433
4434
  const gitignorePath = path3.join(projectRoot, ".gitignore");
4434
4435
  const current = fs2.existsSync(gitignorePath) ? fs2.readFileSync(gitignorePath, "utf8") : "";
@@ -4446,6 +4447,9 @@ function appendGitignore(projectRoot, entries, dryRun) {
4446
4447
  }
4447
4448
  return missing.map((entry) => `Added ${entry} to .gitignore`);
4448
4449
  }
4450
+ function appendHarnessProjectGitignore(projectRoot, dryRun) {
4451
+ return appendGitignore(projectRoot, SDD_SCRATCH_GITIGNORE, dryRun);
4452
+ }
4449
4453
  function homeRelativeSourcePath(targetPath) {
4450
4454
  const rel = path3.relative(os.homedir(), targetPath).split(path3.sep).join("/");
4451
4455
  return rel.startsWith("..") ? targetPath : `./${rel}`;
@@ -4584,6 +4588,7 @@ function runInit(scope, dryRun) {
4584
4588
  const projectRoot = resolveProjectRoot();
4585
4589
  notes.push(ensureSymlink(HARNESS_REPO_PATH, path4.join(projectRoot, CODEX_PLUGIN_LINK), dryRun));
4586
4590
  notes.push(...appendGitignore(projectRoot, [CODEX_PLUGIN_LINK, ".codex/agents/*.toml"], dryRun));
4591
+ notes.push(...appendHarnessProjectGitignore(projectRoot, dryRun));
4587
4592
  }
4588
4593
  notes.push(...ensureAgentLinks(scope, dryRun));
4589
4594
  if (!dryRun)
@@ -4617,6 +4622,10 @@ function runDoctor(scope) {
4617
4622
  errors2.push(`Missing .gitignore entry: ${CODEX_PLUGIN_LINK}`);
4618
4623
  if (!lines.includes(".codex/agents/*.toml"))
4619
4624
  errors2.push("Missing .gitignore entry: .codex/agents/*.toml");
4625
+ for (const entry of SDD_SCRATCH_GITIGNORE) {
4626
+ if (!lines.includes(entry))
4627
+ errors2.push(`Missing .gitignore entry: ${entry}`);
4628
+ }
4620
4629
  }
4621
4630
  errors2.push(...validateAgentLinks(scope));
4622
4631
  return { location: pathToMarketplace, errors: errors2 };
@@ -4677,6 +4686,7 @@ function projectInit(dryRun) {
4677
4686
  const notes = ensureLocalHarnessRepo(dryRun);
4678
4687
  notes.push(...ensureCursorPluginCheckout(location, dryRun));
4679
4688
  notes.push(...appendGitignore(projectRoot, [CURSOR_PLUGIN_LINK], dryRun));
4689
+ notes.push(...appendHarnessProjectGitignore(projectRoot, dryRun));
4680
4690
  return { location, notes };
4681
4691
  }
4682
4692
  function globalDoctor() {
@@ -4696,6 +4706,11 @@ function projectDoctor() {
4696
4706
  if (!gitignore.split(/\r?\n/).includes(CURSOR_PLUGIN_LINK)) {
4697
4707
  errors2.push(`Missing .gitignore entry: ${CURSOR_PLUGIN_LINK}`);
4698
4708
  }
4709
+ for (const entry of SDD_SCRATCH_GITIGNORE) {
4710
+ if (!gitignore.split(/\r?\n/).includes(entry)) {
4711
+ errors2.push(`Missing .gitignore entry: ${entry}`);
4712
+ }
4713
+ }
4699
4714
  errors2.push(...validatePluginAgents(location));
4700
4715
  return { location, errors: errors2 };
4701
4716
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mstar-harness/cli",
3
- "version": "0.5.4",
3
+ "version": "1.0.0",
4
4
  "description": "Morning Star harness installer CLI (OpenCode, Cursor, Codex).",
5
5
  "license": "MIT",
6
6
  "repository": {