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

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 +20 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -26220,12 +26220,6 @@ function isFixableFinding(finding) {
26220
26220
  if (finding.kind === "vulnerable_dependency" && isMaliciousPackageFinding(finding)) return true;
26221
26221
  return isCodeRemediationKind(finding.kind) || !!finding.recommendedVersion;
26222
26222
  }
26223
- /**
26224
- * Whether moving the base images a finding names to the builds their tags
26225
- * name now removes its advisory (PRO-1728): every base it names moves and the
26226
- * sweep found the advisory gone from each newer build
26227
- * (`data.baseImage.bases[].removed`), as the move itself requires.
26228
- */
26229
26223
  function baseImageMoveRemoves(data) {
26230
26224
  const baseImage = typeof data === "object" && data !== null ? data.baseImage : null;
26231
26225
  const bases = typeof baseImage === "object" && baseImage !== null ? baseImage.bases : null;
@@ -28384,6 +28378,7 @@ const FINDING_ROW_FIELDS = [
28384
28378
  "kevListedAt",
28385
28379
  "malicious",
28386
28380
  "baseMove",
28381
+ "baseImageMove",
28387
28382
  "removal",
28388
28383
  "replaceable",
28389
28384
  "status",
@@ -28688,11 +28683,26 @@ const SWEEP_FIELDS = [
28688
28683
  */
28689
28684
  const BASE_IMAGES_SHOWN = 10;
28690
28685
  function notReadBases(sweep) {
28691
- const notRead = (sweep.baseImages ?? []).filter((b) => b.state === "not_read");
28692
- if (notRead.length === 0) return {};
28686
+ const bases = sweep.baseImages ?? [];
28687
+ const notRead = bases.filter((b) => b.state === "not_read" || b.packages?.state === "not_read");
28688
+ const read = bases.flatMap((b) => b.packages?.state === "read" ? [{
28689
+ image: b.image,
28690
+ path: b.path,
28691
+ os: b.os ?? null,
28692
+ vulnerabilities: b.packages.vulnerabilities,
28693
+ removedByMoving: b.packages.candidate?.removes ?? 0,
28694
+ noDistroFix: b.packages.noDistroFix ?? null,
28695
+ movesTo: b.packages.candidate?.image ?? null
28696
+ }] : []);
28693
28697
  return {
28694
- baseImagesNotRead: notRead.slice(0, BASE_IMAGES_SHOWN),
28695
- ...notRead.length > BASE_IMAGES_SHOWN ? { baseImagesNotReadCount: notRead.length } : {}
28698
+ ...read.length > 0 ? {
28699
+ baseImages: read.slice(0, BASE_IMAGES_SHOWN),
28700
+ ...read.length > BASE_IMAGES_SHOWN ? { baseImagesCount: read.length } : {}
28701
+ } : {},
28702
+ ...notRead.length > 0 ? {
28703
+ baseImagesNotRead: notRead.slice(0, BASE_IMAGES_SHOWN),
28704
+ ...notRead.length > BASE_IMAGES_SHOWN ? { baseImagesNotReadCount: notRead.length } : {}
28705
+ } : {}
28696
28706
  };
28697
28707
  }
28698
28708
  /** A policy violation in a list: what it is, how bad, and what is being done about it. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.36.0-dev.890",
3
+ "version": "0.36.0-dev.891",
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",