@mstar-harness/cli 1.3.2 → 1.5.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.
@@ -4070,7 +4070,15 @@ import { execFileSync } from "node:child_process";
4070
4070
  var REPO_URL = "https://github.com/btspoony/mstar-harness.git";
4071
4071
  var PLUGIN_NAME = "morning-star-harness";
4072
4072
  var HARNESS_REPO_PATH = path3.join(os.homedir(), ".mstar", "harness");
4073
- var HARNESS_MARKER = ".codex-plugin/plugin.json";
4073
+ var HARNESS_MARKERS = [".codex-plugin/plugin.json"];
4074
+ function harnessMarkerPath() {
4075
+ for (const marker of HARNESS_MARKERS) {
4076
+ const candidate = path3.join(HARNESS_REPO_PATH, marker);
4077
+ if (fs2.existsSync(candidate))
4078
+ return candidate;
4079
+ }
4080
+ return path3.join(HARNESS_REPO_PATH, HARNESS_MARKERS[0]);
4081
+ }
4074
4082
  function pathOrSymlinkExists(filePath) {
4075
4083
  try {
4076
4084
  fs2.lstatSync(filePath);
@@ -4112,9 +4120,9 @@ function validateLocalHarnessRepo() {
4112
4120
  errors2.push(`Missing local harness repo: ${HARNESS_REPO_PATH}`);
4113
4121
  return errors2;
4114
4122
  }
4115
- const marker = path3.join(HARNESS_REPO_PATH, HARNESS_MARKER);
4123
+ const marker = harnessMarkerPath();
4116
4124
  if (!fs2.existsSync(marker)) {
4117
- errors2.push(`Local harness repo is missing marker file: ${marker}`);
4125
+ errors2.push(`Local harness repo is missing a plugin marker (expected one of: ${HARNESS_MARKERS.join(", ")}).`);
4118
4126
  }
4119
4127
  return errors2;
4120
4128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mstar-harness/cli",
3
- "version": "1.3.2",
3
+ "version": "1.5.0",
4
4
  "description": "Morning Star harness installer CLI (OpenCode, Cursor, Codex).",
5
5
  "license": "MIT",
6
6
  "repository": {