@taiga-ai/mcp-server 0.36.0-dev.889 → 0.36.0-dev.890

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 +9 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -31326,6 +31326,10 @@ function standing(item) {
31326
31326
  const life = item["lifecycle"];
31327
31327
  const run = life?.latestBuild;
31328
31328
  const situation = situationOf(item);
31329
+ const open = (life?.openPullRequests ?? []).flatMap((pull) => typeof pull.repositoryFullName === "string" && typeof pull.prNumber === "number" ? [{
31330
+ repository: pull.repositoryFullName,
31331
+ prNumber: pull.prNumber
31332
+ }] : []);
31329
31333
  return {
31330
31334
  column: typeof item["state"] === "string" ? item["state"] : null,
31331
31335
  turn: typeof life?.turn === "string" ? life.turn : null,
@@ -31333,7 +31337,8 @@ function standing(item) {
31333
31337
  latestRun: run && typeof run.id === "string" ? {
31334
31338
  id: run.id,
31335
31339
  ...typeof run.prNumber === "number" ? { prNumber: run.prNumber } : {}
31336
- } : null
31340
+ } : null,
31341
+ ...open.length > 1 ? { pullRequests: open } : {}
31337
31342
  };
31338
31343
  }
31339
31344
  /** The move each call to action is, in the tools' words. */
@@ -31664,10 +31669,12 @@ function registerBacklogReads(server, client) {
31664
31669
  ...revised
31665
31670
  });
31666
31671
  const steps = Array.isArray(plan.steps) ? plan.steps : [];
31672
+ const several = (plan.repositories?.length ?? 0) > 1;
31667
31673
  return toolResult({
31668
31674
  ...pickFields([plan], PLAN_SUMMARY_FIELDS)[0],
31675
+ ...several ? { repositories: plan.repositories } : {},
31669
31676
  ...revised,
31670
- steps: pickFields(steps, PLAN_STEP_SUMMARY_FIELDS)
31677
+ steps: several ? pickFields(steps, [...PLAN_STEP_SUMMARY_FIELDS, "repositoryName"]) : pickFields(steps, PLAN_STEP_SUMMARY_FIELDS)
31671
31678
  });
31672
31679
  }));
31673
31680
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.36.0-dev.889",
3
+ "version": "0.36.0-dev.890",
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",