@taiga-ai/mcp-server 0.37.0-dev.1120 → 0.37.0-dev.1121

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -26710,6 +26710,10 @@ object({
26710
26710
  failingChecks: lenient(lenientList(storedFailingCheck)),
26711
26711
  blockers: lenient(lenientList(_enum(READY_BLOCKERS))),
26712
26712
  detail: lenient(string$2()),
26713
+ setupTasks: lenient(lenientList(object({
26714
+ id: string$2(),
26715
+ title: string$2()
26716
+ }))),
26713
26717
  roundsPaused: lenient(boolean())
26714
26718
  }).transform((e) => ({
26715
26719
  reason: e.reason,
@@ -26719,6 +26723,7 @@ object({
26719
26723
  ...e.failingChecks === void 0 ? {} : { failingChecks: e.failingChecks },
26720
26724
  ...e.blockers === void 0 ? {} : { blockers: e.blockers },
26721
26725
  ...e.detail === void 0 ? {} : { detail: e.detail },
26726
+ ...e.setupTasks === void 0 ? {} : { setupTasks: e.setupTasks },
26722
26727
  ...e.roundsPaused === void 0 ? {} : { roundsPaused: e.roundsPaused }
26723
26728
  }));
26724
26729
  /**
@@ -38767,13 +38772,15 @@ const RUNNING = {
38767
38772
  function handbackSaid(escalation) {
38768
38773
  if (!escalation || typeof escalation !== "object") return null;
38769
38774
  const e = escalation;
38775
+ const tasks = Array.isArray(e.setupTasks) ? e.setupTasks.map((task) => String(task.title)).join(", ") : "";
38776
+ const setup = tasks ? `; waiting on setup: ${tasks}` : "";
38770
38777
  const checks = Array.isArray(e.failingChecks) ? e.failingChecks.map((check) => String(check.name)).join(", ") : "";
38771
38778
  const on = checks ? ` on ${checks}` : "";
38772
38779
  const rounds = typeof e.rounds === "number" && e.rounds > 0 ? ` after ${e.rounds} automatic round${e.rounds === 1 ? "" : "s"}` : "";
38773
38780
  const blockers = Array.isArray(e.blockers) ? e.blockers.map((b) => READY_BLOCKER_SAID[String(b)] ?? String(b)) : [];
38774
38781
  switch (e.reason) {
38775
- case "ci_fix_cap": return `CI is still failing${on}${rounds}`;
38776
- case "ci_fix_stalled": return `CI is still failing${on}, and the last fix round changed nothing`;
38782
+ case "ci_fix_cap": return `CI is still failing${on}${rounds}${setup}`;
38783
+ case "ci_fix_stalled": return `CI is still failing${on}, and the last fix round changed nothing${setup}`;
38777
38784
  case "conflict_cap": return `the branch still conflicts with its base${rounds}`;
38778
38785
  case "review_bot_cap": return `review bots still have open comments${rounds}`;
38779
38786
  case "ci_never_settled": return "CI did not finish in time";
@@ -38806,6 +38813,8 @@ function handbackNextStep(escalation, provider = null) {
38806
38813
  const changeRequest = terms.changeRequest;
38807
38814
  const reason = escalation && typeof escalation === "object" ? escalation.reason : null;
38808
38815
  if (reason === "check_weakened") return `review that change${where} before merging`;
38816
+ const setupTasks = escalation && typeof escalation === "object" ? escalation.setupTasks : null;
38817
+ if (Array.isArray(setupTasks) && setupTasks.length > 0) return "mark that setup done (taiga_resolve_action), which runs the failed checks again";
38809
38818
  if (reason === "ci_never_settled") return `look at what is still running or queued in CI${where}, then review the ${changeRequest}`;
38810
38819
  return `fix it by hand, or review the ${changeRequest}${where}, which hands it back to the agent`;
38811
38820
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.37.0-dev.1120",
3
+ "version": "0.37.0-dev.1121",
4
4
  "description": "Taiga for AI coding assistants: read products, policies, initiatives and runs, and operate the line, over MCP",
5
5
  "mcpName": "ga.tai/mcp-server",
6
6
  "license": "UNLICENSED",