@taiga-ai/mcp-server 0.34.0-dev.737 → 0.34.0-dev.739
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 +19 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26049,7 +26049,7 @@ function groupKey(row) {
|
|
|
26049
26049
|
const link = String(row["productRepositoryId"] ?? "");
|
|
26050
26050
|
if (row["kind"] === "license_violation") {
|
|
26051
26051
|
const verdict = licenseVerdict(row);
|
|
26052
|
-
const reason = String(row["resolvedReason"] ?? "");
|
|
26052
|
+
const reason = String(row["resolvedReason"] ?? row["previouslyResolvedReason"] ?? "");
|
|
26053
26053
|
return verdict ? `license|${status}|${reason}|${link}|${verdict}` : null;
|
|
26054
26054
|
}
|
|
26055
26055
|
const location = row["location"];
|
|
@@ -26192,6 +26192,21 @@ function withDependencyScope(row, { keepGroups = false } = {}) {
|
|
|
26192
26192
|
...keepGroups ? { dependencyRelationByLockfile: row["dependencyRelation"] ?? null } : {}
|
|
26193
26193
|
};
|
|
26194
26194
|
}
|
|
26195
|
+
/**
|
|
26196
|
+
* The reason a finding was resolved, said as what it is (PRO-3698). The API
|
|
26197
|
+
* keeps it on a finding that came back (PRO-3142), as its last resolution:
|
|
26198
|
+
* on an open row `resolvedReason: "fixed"` read as fixed, so an open,
|
|
26199
|
+
* ignored or remediating row carries it as `previouslyResolvedReason`, beside
|
|
26200
|
+
* `previouslyResolvedAt`.
|
|
26201
|
+
*/
|
|
26202
|
+
function withResolutionLabel(row) {
|
|
26203
|
+
if (row["status"] === "resolved" || row["resolvedReason"] == null) return row;
|
|
26204
|
+
const { resolvedReason, ...rest } = row;
|
|
26205
|
+
return {
|
|
26206
|
+
...rest,
|
|
26207
|
+
previouslyResolvedReason: resolvedReason
|
|
26208
|
+
};
|
|
26209
|
+
}
|
|
26195
26210
|
/** A finding as a tool answers it: the row fields, the scope, and whether Fix would take it. */
|
|
26196
26211
|
function findingRows(findings, extra = []) {
|
|
26197
26212
|
return pickFields(findings, [
|
|
@@ -26199,7 +26214,7 @@ function findingRows(findings, extra = []) {
|
|
|
26199
26214
|
"dependencyGroups",
|
|
26200
26215
|
"dependencyRelation",
|
|
26201
26216
|
...extra
|
|
26202
|
-
]).map((row) => withDependencyScope(row)).map(withFixability).map((row) => Object.fromEntries(Object.entries(row).filter(([key, value]) => value !== null || key === "ignoreExpiresAt" && row["status"] === "ignored")));
|
|
26217
|
+
]).map((row) => withDependencyScope(row)).map(withFixability).map(withResolutionLabel).map((row) => Object.fromEntries(Object.entries(row).filter(([key, value]) => value !== null || key === "ignoreExpiresAt" && row["status"] === "ignored")));
|
|
26203
26218
|
}
|
|
26204
26219
|
/** The parts of an advisory record an agent reads; the rest (every affected range, every reference) is full: true. */
|
|
26205
26220
|
const ADVISORY_KEPT = [
|
|
@@ -26436,10 +26451,10 @@ function registerMaintenanceTools(server, client) {
|
|
|
26436
26451
|
annotations: READ_ONLY
|
|
26437
26452
|
}, (params) => runTool(async () => {
|
|
26438
26453
|
const { runId, ...raw } = (await client.getFinding(params.findingId)).data;
|
|
26439
|
-
const finding = withFixability(params.full ? withDependencyScope(raw, { keepGroups: true }) : withDependencyScope({
|
|
26454
|
+
const finding = withResolutionLabel(withFixability(params.full ? withDependencyScope(raw, { keepGroups: true }) : withDependencyScope({
|
|
26440
26455
|
...raw,
|
|
26441
26456
|
data: leanAdvisory(raw["data"])
|
|
26442
|
-
}));
|
|
26457
|
+
})));
|
|
26443
26458
|
return toolResult(runId === void 0 ? finding : {
|
|
26444
26459
|
sweepId: runId,
|
|
26445
26460
|
...finding
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.34.0-dev.
|
|
3
|
+
"version": "0.34.0-dev.739",
|
|
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",
|