nexus-agents 2.81.0 → 2.81.2
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/{chunk-DQW2PQU3.js → chunk-37ZXD5B6.js} +41 -14
- package/dist/{chunk-DQW2PQU3.js.map → chunk-37ZXD5B6.js.map} +1 -1
- package/dist/{chunk-VOFTCWSI.js → chunk-6KO6LO3L.js} +3 -3
- package/dist/{chunk-KL23OVEU.js → chunk-MRCURXAX.js} +2 -2
- package/dist/cli.js +3 -3
- package/dist/index.js +2 -2
- package/dist/{setup-command-RC4ZBQ2V.js → setup-command-JBTK3LGD.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-VOFTCWSI.js.map → chunk-6KO6LO3L.js.map} +0 -0
- /package/dist/{chunk-KL23OVEU.js.map → chunk-MRCURXAX.js.map} +0 -0
- /package/dist/{setup-command-RC4ZBQ2V.js.map → setup-command-JBTK3LGD.js.map} +0 -0
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
DEFAULT_TASK_TTL_MS,
|
|
78
78
|
DEFAULT_TOOL_RATE_LIMITS,
|
|
79
79
|
clampTaskTtl
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-6KO6LO3L.js";
|
|
81
81
|
import {
|
|
82
82
|
getAvailabilityCache,
|
|
83
83
|
resolveFallback
|
|
@@ -36374,6 +36374,36 @@ function createRegistryError(code, message, paperId, cause) {
|
|
|
36374
36374
|
}
|
|
36375
36375
|
return error;
|
|
36376
36376
|
}
|
|
36377
|
+
function paperEntryToResearchPaper(entry) {
|
|
36378
|
+
return {
|
|
36379
|
+
title: entry.title,
|
|
36380
|
+
authors: [...entry.authors],
|
|
36381
|
+
source: entry.source,
|
|
36382
|
+
arxiv_id: entry.arxiv_id,
|
|
36383
|
+
url: entry.url,
|
|
36384
|
+
publication_date: entry.publication_date,
|
|
36385
|
+
venue: entry.venue,
|
|
36386
|
+
topics: [...entry.topics],
|
|
36387
|
+
tags: [...entry.tags],
|
|
36388
|
+
reviewed_date: entry.reviewed_date,
|
|
36389
|
+
reviewed_in: entry.reviewed_in,
|
|
36390
|
+
summary: entry.summary,
|
|
36391
|
+
key_findings: [...entry.key_findings],
|
|
36392
|
+
relevance: entry.relevance,
|
|
36393
|
+
techniques_extracted: [...entry.techniques_extracted],
|
|
36394
|
+
related_issues: [...entry.related_issues],
|
|
36395
|
+
implementation_status: entry.implementation_status,
|
|
36396
|
+
rigor_tags: entry.rigor_tags ? [...entry.rigor_tags] : [],
|
|
36397
|
+
...entry.venue_tier !== void 0 ? { venue_tier: entry.venue_tier } : {},
|
|
36398
|
+
...entry.quality_score !== void 0 ? { quality_score: entry.quality_score } : {},
|
|
36399
|
+
...entry.evidence_tier !== void 0 ? { evidence_tier: entry.evidence_tier } : {},
|
|
36400
|
+
...entry.citation_count !== void 0 ? { citation_count: entry.citation_count } : {},
|
|
36401
|
+
...entry.has_code !== void 0 ? { has_code: entry.has_code } : {},
|
|
36402
|
+
...entry.code_url !== void 0 ? { code_url: entry.code_url } : {},
|
|
36403
|
+
...entry.quality_notes !== void 0 ? { quality_notes: entry.quality_notes } : {},
|
|
36404
|
+
...entry.last_quality_check !== void 0 ? { last_quality_check: entry.last_quality_check } : {}
|
|
36405
|
+
};
|
|
36406
|
+
}
|
|
36377
36407
|
function generateRegistryEntry(metadata, topic) {
|
|
36378
36408
|
if (metadata.id === "" || metadata.title === "") {
|
|
36379
36409
|
return {
|
|
@@ -36409,7 +36439,7 @@ function generateRegistryEntry(metadata, topic) {
|
|
|
36409
36439
|
related_issues: [],
|
|
36410
36440
|
implementation_status: "not-started"
|
|
36411
36441
|
};
|
|
36412
|
-
const paperForScoring = entry;
|
|
36442
|
+
const paperForScoring = paperEntryToResearchPaper(entry);
|
|
36413
36443
|
const qualityScore = computeQualityScore(paperForScoring);
|
|
36414
36444
|
const evidenceTier = computeEvidenceTier({ ...paperForScoring, quality_score: qualityScore });
|
|
36415
36445
|
const scoredEntry = {
|
|
@@ -42508,7 +42538,7 @@ async function triageFindings(findings, delegateFn, config = DEFAULT_CONFIG3) {
|
|
|
42508
42538
|
for (const finding of toTriaged) {
|
|
42509
42539
|
const verdict = await triageFinding(finding, delegateFn, config);
|
|
42510
42540
|
if (verdict !== null) {
|
|
42511
|
-
results.push(verdict);
|
|
42541
|
+
results.push({ finding, verdict });
|
|
42512
42542
|
}
|
|
42513
42543
|
}
|
|
42514
42544
|
return {
|
|
@@ -42663,7 +42693,7 @@ async function runTriagePipeline(sarifResult, targetDir, config, start) {
|
|
|
42663
42693
|
minConfidence: 0.5
|
|
42664
42694
|
});
|
|
42665
42695
|
lastTriageVerdicts = triageResult.triaged;
|
|
42666
|
-
recordTriageLifecycle(
|
|
42696
|
+
recordTriageLifecycle(triageResult.triaged, lifecycleEntries);
|
|
42667
42697
|
const osvVulns = await runOsvCheck(targetDir, config.enableOsv ?? true);
|
|
42668
42698
|
lastOsvVulnerabilities = osvVulns;
|
|
42669
42699
|
const confirmed = getConfirmedBlockingFindings(sarifResult.findings, triageResult.triaged);
|
|
@@ -42688,13 +42718,9 @@ async function runTriagePipeline(sarifResult, targetDir, config, start) {
|
|
|
42688
42718
|
durationMs: Date.now() - start
|
|
42689
42719
|
};
|
|
42690
42720
|
}
|
|
42691
|
-
function recordTriageLifecycle(
|
|
42692
|
-
for (
|
|
42693
|
-
|
|
42694
|
-
const verdict = verdicts[i];
|
|
42695
|
-
if (finding !== void 0 && verdict !== void 0) {
|
|
42696
|
-
recordTriaged(finding, verdict, (entry) => entries.push(entry));
|
|
42697
|
-
}
|
|
42721
|
+
function recordTriageLifecycle(verdicts, entries) {
|
|
42722
|
+
for (const triaged of verdicts) {
|
|
42723
|
+
recordTriaged(triaged.finding, triaged.verdict, (entry) => entries.push(entry));
|
|
42698
42724
|
}
|
|
42699
42725
|
}
|
|
42700
42726
|
async function runOsvCheck(targetDir, enabled) {
|
|
@@ -42720,8 +42746,9 @@ async function runOsvCheck(targetDir, enabled) {
|
|
|
42720
42746
|
function getConfirmedBlockingFindings(findings, verdicts) {
|
|
42721
42747
|
const blocking = findings.filter((f) => BLOCKING_SEVERITIES.has(f.severity));
|
|
42722
42748
|
if (verdicts.length === 0) return [...blocking];
|
|
42723
|
-
|
|
42724
|
-
|
|
42749
|
+
const verdictById = new Map(verdicts.map((t) => [t.finding.id, t.verdict]));
|
|
42750
|
+
return blocking.filter((f) => {
|
|
42751
|
+
const verdict = verdictById.get(f.id);
|
|
42725
42752
|
return verdict === void 0 || verdict.confirmed;
|
|
42726
42753
|
});
|
|
42727
42754
|
}
|
|
@@ -50274,4 +50301,4 @@ export {
|
|
|
50274
50301
|
detectBackend,
|
|
50275
50302
|
createTaskTracker
|
|
50276
50303
|
};
|
|
50277
|
-
//# sourceMappingURL=chunk-
|
|
50304
|
+
//# sourceMappingURL=chunk-37ZXD5B6.js.map
|