@taiga-ai/mcp-server 0.37.0-dev.960 → 0.37.0-dev.962
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 +17 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34801,6 +34801,21 @@ const SWEEP_FIELDS = [
|
|
|
34801
34801
|
"createdAt",
|
|
34802
34802
|
"completedAt"
|
|
34803
34803
|
];
|
|
34804
|
+
/** Advisories a sweep's summary names, at most. */
|
|
34805
|
+
const ADVISORIES_SHOWN = 10;
|
|
34806
|
+
/**
|
|
34807
|
+
* The advisories whose arrival in OSV's feed started a sweep (PRO-116), only
|
|
34808
|
+
* where some did: a sweep a push, the clock or a person started says nothing.
|
|
34809
|
+
*/
|
|
34810
|
+
function startedByAdvisories(sweep) {
|
|
34811
|
+
const raw = sweep.advisories;
|
|
34812
|
+
const advisories = Array.isArray(raw) ? raw.filter((a) => typeof a === "string") : [];
|
|
34813
|
+
if (advisories.length === 0) return {};
|
|
34814
|
+
return advisories.length > ADVISORIES_SHOWN ? {
|
|
34815
|
+
advisories: advisories.slice(0, ADVISORIES_SHOWN),
|
|
34816
|
+
advisoriesCount: advisories.length
|
|
34817
|
+
} : { advisories };
|
|
34818
|
+
}
|
|
34804
34819
|
/**
|
|
34805
34820
|
* The images a sweep's shipped images build on that it could not read, and
|
|
34806
34821
|
* why (PRO-4073): a base nobody read is no clean base. Only where the API
|
|
@@ -34930,7 +34945,8 @@ async function sweepOverview(client, productId) {
|
|
|
34930
34945
|
const [summary, sweeps] = await Promise.all([client.getMaintenanceSummary(productId), client.listMaintenanceSweeps(productId, { limit: 3 })]);
|
|
34931
34946
|
const latest = sweeps.data.map((sweep) => ({
|
|
34932
34947
|
...pickFields([sweep], SWEEP_FIELDS)[0],
|
|
34933
|
-
...notReadBases(sweep)
|
|
34948
|
+
...notReadBases(sweep),
|
|
34949
|
+
...startedByAdvisories(sweep)
|
|
34934
34950
|
}));
|
|
34935
34951
|
const { lastRun: _lastRun, lastRuns: _lastRuns, topFindings: _top, violatedControls: _controls, ...counts } = summary.data;
|
|
34936
34952
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.37.0-dev.
|
|
3
|
+
"version": "0.37.0-dev.962",
|
|
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",
|