@taiga-ai/mcp-server 0.36.0-dev.912 → 0.36.0-dev.914

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 +26 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -26277,7 +26277,10 @@ function isFixableFinding(finding) {
26277
26277
  if (finding.status !== "open") return false;
26278
26278
  if (finding.location?.historyOnly) return false;
26279
26279
  if (!isAgentRemediable(finding)) return false;
26280
- if (finding.fingerprint?.startsWith("base-image:")) return typeof finding.baseMove === "boolean" ? finding.baseMove : baseImageMoveRemoves(finding.data);
26280
+ if (finding.fingerprint?.startsWith("base-image:") || finding.baseImageFix) {
26281
+ if (finding.baseImageFix) return finding.baseImageFix.way === "move" || finding.baseImageFix.way === "upgrade";
26282
+ return typeof finding.baseMove === "boolean" ? finding.baseMove : baseImageMoveRemoves(finding.data);
26283
+ }
26281
26284
  if (finding.kind === "vulnerable_dependency" && isMaliciousPackageFinding(finding)) return true;
26282
26285
  return isCodeRemediationKind(finding.kind) || !!finding.recommendedVersion;
26283
26286
  }
@@ -28541,6 +28544,7 @@ const FINDING_ROW_FIELDS = [
28541
28544
  "malicious",
28542
28545
  "baseMove",
28543
28546
  "baseImageMove",
28547
+ "baseImageFix",
28544
28548
  "removal",
28545
28549
  "replaceable",
28546
28550
  "status",
@@ -28707,7 +28711,20 @@ function withFixability(row) {
28707
28711
  fixable: true,
28708
28712
  fixNote: "A malicious package: taiga_fix_finding removes it (or replaces it), with every advisory on that version."
28709
28713
  } : row;
28710
- if (typeof row["baseMove"] === "boolean" && isAgentRemediable({ remediableBy: typeof row["remediableBy"] === "string" ? row["remediableBy"] : null })) return row["baseMove"] === true && row["status"] === "open" ? {
28714
+ const base = row["baseImageFix"];
28715
+ if (base && base.way !== "move" && isAgentRemediable({ remediableBy: remediableByOf(row) })) {
28716
+ if (base.way === "upgrade") return row["status"] === "open" ? {
28717
+ ...row,
28718
+ fixable: true,
28719
+ fixNote: "taiga_fix_finding adds a temporary line to the Dockerfile that upgrades this package over its base, until the base publishes a build with the fix."
28720
+ } : row;
28721
+ return {
28722
+ ...row,
28723
+ fixable: false,
28724
+ fixNote: baseImageWaitNote(base)
28725
+ };
28726
+ }
28727
+ if (typeof row["baseMove"] === "boolean" && isAgentRemediable({ remediableBy: remediableByOf(row) })) return row["baseMove"] === true && row["status"] === "open" ? {
28711
28728
  ...row,
28712
28729
  fixable: true,
28713
28730
  fixNote: "taiga_fix_finding moves the base images it is in to the builds their tags name now, the FROM line alone, with every other advisory that move removes."
@@ -28777,6 +28794,13 @@ function withResolutionLabel(row) {
28777
28794
  previouslyResolvedReason: resolvedReason
28778
28795
  };
28779
28796
  }
28797
+ /** Why a base image's finding has no Fix, in the page's words (`maintaining_base_wait_*`). */
28798
+ function baseImageWaitNote(fix) {
28799
+ if (fix.way === "wait_for_distro") return `${fix.distro} has no fix for this yet.`;
28800
+ const image = fix.images.join(", ") || "The base image";
28801
+ return `${fix.distro} has fixed this, but ${image} has not published a build with the fix yet. It clears when it does.`;
28802
+ }
28803
+ const remediableByOf = (row) => typeof row["remediableBy"] === "string" ? row["remediableBy"] : null;
28780
28804
  /** A finding as a tool answers it: the row fields, the scope, and whether Fix would take it. */
28781
28805
  function findingRows(findings, extra = []) {
28782
28806
  return pickFields(findings, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.36.0-dev.912",
3
+ "version": "0.36.0-dev.914",
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",