@taiga-ai/mcp-server 0.36.0-dev.866 → 0.36.0-dev.868

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 +19 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -28588,6 +28588,21 @@ const SWEEP_FIELDS = [
28588
28588
  "createdAt",
28589
28589
  "completedAt"
28590
28590
  ];
28591
+ /**
28592
+ * The images a sweep's shipped images build on that it could not read, and
28593
+ * why (PRO-4073): a base nobody read is no clean base. Only where the API
28594
+ * returns the list (null with the containerImages flag off, or from a sweep
28595
+ * that listed none).
28596
+ */
28597
+ const BASE_IMAGES_SHOWN = 10;
28598
+ function notReadBases(sweep) {
28599
+ const notRead = (sweep.baseImages ?? []).filter((b) => b.state === "not_read");
28600
+ if (notRead.length === 0) return {};
28601
+ return {
28602
+ baseImagesNotRead: notRead.slice(0, BASE_IMAGES_SHOWN),
28603
+ ...notRead.length > BASE_IMAGES_SHOWN ? { baseImagesNotReadCount: notRead.length } : {}
28604
+ };
28605
+ }
28591
28606
  /** A policy violation in a list: what it is, how bad, and what is being done about it. */
28592
28607
  const VIOLATION_FIELDS = [
28593
28608
  "id",
@@ -28685,7 +28700,10 @@ const findingId = idInput("finding", "taiga_list_findings gives it");
28685
28700
  /** Open findings by severity and kind, and the latest sweeps, as the first page of findings carries them. */
28686
28701
  async function sweepOverview(client, productId) {
28687
28702
  const [summary, sweeps] = await Promise.all([client.getMaintenanceSummary(productId), client.listMaintenanceSweeps(productId, { limit: 3 })]);
28688
- const latest = pickFields(sweeps.data, SWEEP_FIELDS);
28703
+ const latest = sweeps.data.map((sweep) => ({
28704
+ ...pickFields([sweep], SWEEP_FIELDS)[0],
28705
+ ...notReadBases(sweep)
28706
+ }));
28689
28707
  const { lastRun: _lastRun, lastRuns: _lastRuns, topFindings: _top, violatedControls: _controls, ...counts } = summary.data;
28690
28708
  return {
28691
28709
  ...counts,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.36.0-dev.866",
3
+ "version": "0.36.0-dev.868",
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",