@taiga-ai/mcp-server 0.36.0-dev.924 → 0.36.0-dev.925
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 +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30919,10 +30919,11 @@ function runOutcome(run) {
|
|
|
30919
30919
|
const why = errorSaid(run["error"]) ?? (typeof run["failedReason"] === "string" ? run["failedReason"] : null);
|
|
30920
30920
|
const handback = handbackSaid(run["reviewEscalation"]);
|
|
30921
30921
|
const draft = run["prDraft"] === true ? `, still a draft` : "";
|
|
30922
|
+
const blocked = reasonOnOneLine(run["factoryBlockedBecause"]);
|
|
30922
30923
|
return {
|
|
30923
30924
|
disposition,
|
|
30924
30925
|
outcome: {
|
|
30925
|
-
in_flight: status === "pending" ? "Queued: waiting to start." : status === "replanning" ? steerPaused(run["failedReason"], progress) : `Running: ${RUNNING[status] ?? status}${progress}.`,
|
|
30926
|
+
in_flight: blocked ? `Blocked: the factory has stopped working on this run${progress}. ${blocked}` : status === "pending" ? "Queued: waiting to start." : status === "replanning" ? steerPaused(run["failedReason"], progress) : `Running: ${RUNNING[status] ?? status}${progress}.`,
|
|
30926
30927
|
gated: handback ? `Handed back to a person: ${handback}. ${pr}${draft ? `${draft},` : ""} waits for them to ${handbackNextStep(run["reviewEscalation"], run["provider"])}.` : `Waiting for a person to review and merge ${pr}${draft}.`,
|
|
30927
30928
|
succeeded: `Merged: ${pr} is in ${typeof run["baseBranch"] === "string" ? run["baseBranch"] : "the base branch"}.`,
|
|
30928
30929
|
unmerged: typeof run["prNumber"] === "number" || run["prUrl"] ? `Settled without merging: ${pr} was left unmerged.` : "Settled without a merged pull request.",
|
|
@@ -30946,12 +30947,12 @@ function steerPaused(reason, progress) {
|
|
|
30946
30947
|
*/
|
|
30947
30948
|
function replanHandedBack(reason, error, progress) {
|
|
30948
30949
|
if (reason !== "replan_refused" && reason !== "replan_failed") return null;
|
|
30949
|
-
const why =
|
|
30950
|
+
const why = reasonOnOneLine(error);
|
|
30950
30951
|
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.`;
|
|
30951
30952
|
return `Stopped${progress}, handed back: ${why ?? "the plan could not be revised."} Resume continues the original plan.`;
|
|
30952
30953
|
}
|
|
30953
30954
|
/** A hand-back's reason on one line, ending as a sentence, capped for a row. */
|
|
30954
|
-
function
|
|
30955
|
+
function reasonOnOneLine(error) {
|
|
30955
30956
|
if (typeof error !== "string") return null;
|
|
30956
30957
|
const text = error.replace(/\s+/g, " ").trim();
|
|
30957
30958
|
if (!text) return null;
|
|
@@ -31037,7 +31038,7 @@ const FAILED_REASON_MEANS = {
|
|
|
31037
31038
|
* text out: its first sentence is in the outcome, and taiga_get_run has it all.
|
|
31038
31039
|
*/
|
|
31039
31040
|
function readableRun(run, opts = {}) {
|
|
31040
|
-
const { prDraft, error, reviewEscalation, runtime: _runtime, origin, ...rest } = run;
|
|
31041
|
+
const { prDraft, error, reviewEscalation, runtime: _runtime, origin, factoryBlockedBecause: _inTheOutcome, ...rest } = run;
|
|
31041
31042
|
const said = runOutcome(run);
|
|
31042
31043
|
const means = FAILED_REASON_MEANS[String(run["failedReason"])];
|
|
31043
31044
|
const hardening = run["hardeningResult"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.36.0-dev.
|
|
3
|
+
"version": "0.36.0-dev.925",
|
|
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",
|