@karajan-family/code 5.0.2 → 5.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karajan-family/code",
3
- "version": "5.0.2",
3
+ "version": "5.0.3",
4
4
  "description": "Local multi-agent coding orchestrator with TDD, SonarQube, and code review pipeline",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0",
@@ -124,12 +124,13 @@ export function createRepoStateCheck({ projectDir }) {
124
124
  }
125
125
 
126
126
  const notMain = defaultBranchProblem(dir);
127
- if (notMain) symptoms.push({ detail: notMain.detail, fix: notMain.fix });
127
+ // KJC-BUG-0481 (#3080, point 3): a failure until it is fixed, not a warning, so doctor exits 1.
128
+ if (notMain) symptoms.push({ detail: notMain.detail, fix: notMain.fix, fails: true });
128
129
 
129
130
  if (symptoms.length === 0) return { ok: true, severity: "info", detail: "el repositorio está en orden" };
130
131
  return {
131
132
  ok: false,
132
- severity: "warn",
133
+ severity: symptoms.some((s) => s.fails) ? "fail" : "warn",
133
134
  detail: symptoms.map((s) => s.detail).join(" · "),
134
135
  fix: symptoms.map((s) => s.fix).join(" · "),
135
136
  };