@taiga-ai/mcp-server 0.28.0-dev.615 → 0.28.0-dev.617
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/dist/index.js +17 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27434,7 +27434,7 @@ function runOutcome(run) {
|
|
|
27434
27434
|
succeeded: `Merged: ${pr} is in ${typeof run["baseBranch"] === "string" ? run["baseBranch"] : "the base branch"}.`,
|
|
27435
27435
|
unmerged: typeof run["prNumber"] === "number" || run["prUrl"] ? `Settled without merging: ${pr} was left unmerged.` : "Settled without a merged pull request.",
|
|
27436
27436
|
failed: `Failed${why ? `: ${why}` : ""}${progress}.`,
|
|
27437
|
-
stopped: replanHandedBack(run["failedReason"],
|
|
27437
|
+
stopped: replanHandedBack(run["failedReason"], run["error"], progress) ?? `Stopped before it finished${progress}.`,
|
|
27438
27438
|
rejected: `${pr} was closed without merging, so the work did not land.${handback ? ` It had been handed back: ${handback}.` : ""}`
|
|
27439
27439
|
}[disposition] ?? status
|
|
27440
27440
|
};
|
|
@@ -27451,12 +27451,22 @@ function steerPaused(reason, progress) {
|
|
|
27451
27451
|
* A run its re-plan handed back (PRO-3165), in one sentence with the
|
|
27452
27452
|
* planner's reason. Null for any other stop.
|
|
27453
27453
|
*/
|
|
27454
|
-
function replanHandedBack(reason,
|
|
27455
|
-
|
|
27456
|
-
|
|
27457
|
-
if (reason === "
|
|
27458
|
-
return
|
|
27459
|
-
}
|
|
27454
|
+
function replanHandedBack(reason, error, progress) {
|
|
27455
|
+
if (reason !== "replan_refused" && reason !== "replan_failed") return null;
|
|
27456
|
+
const why = plannerReasonSaid(error);
|
|
27457
|
+
if (reason === "replan_refused") return `Stopped${progress}, handed back: the planner would not plan the request for changes${why ? `: ${why}` : "."} Resume continues the original plan.`;
|
|
27458
|
+
return `Stopped${progress}, handed back: ${why ?? "the plan could not be revised."} Resume continues the original plan.`;
|
|
27459
|
+
}
|
|
27460
|
+
/** A hand-back's reason on one line, ending as a sentence, capped for a row. */
|
|
27461
|
+
function plannerReasonSaid(error) {
|
|
27462
|
+
if (typeof error !== "string") return null;
|
|
27463
|
+
const text = error.replace(/\s+/g, " ").trim();
|
|
27464
|
+
if (!text) return null;
|
|
27465
|
+
const capped = text.length > PLANNER_REASON_MAX ? `${text.slice(0, PLANNER_REASON_MAX).replace(/\s+\S*$/, "")}...` : text;
|
|
27466
|
+
return /[.!?]$/.test(capped) ? capped : `${capped}.`;
|
|
27467
|
+
}
|
|
27468
|
+
/** Characters of a planner's reason an outcome carries. */
|
|
27469
|
+
const PLANNER_REASON_MAX = 600;
|
|
27460
27470
|
/** Words a sentence does not end at: "e.g." and the like, and a lone initial. */
|
|
27461
27471
|
const ABBREVIATION = /(?:\b(?:e\.g|i\.e|etc|vs|cf|incl|approx)|(?:^|\s)[A-Za-z])\.$/i;
|
|
27462
27472
|
/** A finding's first sentence, capped: it ends at . ! or ? before white space, but not at an abbreviation. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.28.0-dev.
|
|
3
|
+
"version": "0.28.0-dev.617",
|
|
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",
|