nexus-agents 2.77.9 → 2.77.11
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-BMOPMCFZ.js → chunk-7J7PNOJQ.js} +17 -6
- package/dist/chunk-7J7PNOJQ.js.map +1 -0
- package/dist/{chunk-MZF4DKQJ.js → chunk-CFTRFP3V.js} +2 -2
- package/dist/{chunk-WXVN4K3D.js → chunk-G2CSKBY5.js} +2 -2
- package/dist/{chunk-OZLCOG3N.js → chunk-N4IYBHN6.js} +3 -3
- package/dist/{chunk-OZLCOG3N.js.map → chunk-N4IYBHN6.js.map} +1 -1
- package/dist/{chunk-M36XZWG2.js → chunk-T22NR4Z4.js} +13 -9
- package/dist/{chunk-M36XZWG2.js.map → chunk-T22NR4Z4.js.map} +1 -1
- package/dist/cli.js +5 -5
- package/dist/index.js +4 -4
- package/dist/{repo-analyze-QGLXEFVJ.js → repo-analyze-GBQT4LAK.js} +2 -2
- package/dist/{repo-security-plan-X5CRZ2YY.js → repo-security-plan-7ZCDVH5O.js} +3 -3
- package/dist/{setup-command-R3HO5FXE.js → setup-command-HBZ22QFQ.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-BMOPMCFZ.js.map +0 -1
- /package/dist/{chunk-MZF4DKQJ.js.map → chunk-CFTRFP3V.js.map} +0 -0
- /package/dist/{chunk-WXVN4K3D.js.map → chunk-G2CSKBY5.js.map} +0 -0
- /package/dist/{repo-analyze-QGLXEFVJ.js.map → repo-analyze-GBQT4LAK.js.map} +0 -0
- /package/dist/{repo-security-plan-X5CRZ2YY.js.map → repo-security-plan-7ZCDVH5O.js.map} +0 -0
- /package/dist/{setup-command-R3HO5FXE.js.map → setup-command-HBZ22QFQ.js.map} +0 -0
|
@@ -53,10 +53,10 @@ import {
|
|
|
53
53
|
} from "./chunk-ERWXGXV2.js";
|
|
54
54
|
import {
|
|
55
55
|
generateSecurityPlan
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-G2CSKBY5.js";
|
|
57
57
|
import {
|
|
58
58
|
analyzeGitHubRepo
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-7J7PNOJQ.js";
|
|
60
60
|
import {
|
|
61
61
|
CodebaseIndex
|
|
62
62
|
} from "./chunk-AP2FD37C.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
clampTaskTtl,
|
|
71
71
|
getAvailabilityCache,
|
|
72
72
|
resolveFallback
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-N4IYBHN6.js";
|
|
74
74
|
import {
|
|
75
75
|
DEFAULTS
|
|
76
76
|
} from "./chunk-YQMQSJQK.js";
|
|
@@ -36318,10 +36318,14 @@ async function addPaperToRegistry(options) {
|
|
|
36318
36318
|
var ARXIV_API_TIMEOUT_MS = API_TIMEOUTS.arxivMs;
|
|
36319
36319
|
function extractEntryXml(xml) {
|
|
36320
36320
|
const entryMatch = xml.match(/<entry>([\s\S]*?)<\/entry>/);
|
|
36321
|
-
return entryMatch?.[1] ??
|
|
36321
|
+
return entryMatch?.[1] ?? null;
|
|
36322
|
+
}
|
|
36323
|
+
function decodeXmlEntities(s) {
|
|
36324
|
+
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, '"').replace(/'/g, "'");
|
|
36322
36325
|
}
|
|
36323
36326
|
function parseArxivXml(arxivId, xml) {
|
|
36324
36327
|
const entryXml = extractEntryXml(xml);
|
|
36328
|
+
if (entryXml === null) return null;
|
|
36325
36329
|
const titleMatch = entryXml.match(/<title>([^<]+)<\/title>/);
|
|
36326
36330
|
const summaryMatch = entryXml.match(/<summary>([^<]+)<\/summary>/s);
|
|
36327
36331
|
const publishedMatch = entryXml.match(/<published>([^<]+)<\/published>/);
|
|
@@ -36329,10 +36333,10 @@ function parseArxivXml(arxivId, xml) {
|
|
|
36329
36333
|
if (titleContent === void 0 || titleContent === "") return null;
|
|
36330
36334
|
return {
|
|
36331
36335
|
id: arxivId,
|
|
36332
|
-
title: titleContent.trim().replace(/\s+/g, " "),
|
|
36336
|
+
title: decodeXmlEntities(titleContent.trim().replace(/\s+/g, " ")),
|
|
36333
36337
|
authors: [],
|
|
36334
36338
|
// Would need more complex parsing
|
|
36335
|
-
summary: summaryMatch?.[1]?.trim().replace(/\s+/g, " ") ?? "",
|
|
36339
|
+
summary: decodeXmlEntities(summaryMatch?.[1]?.trim().replace(/\s+/g, " ") ?? ""),
|
|
36336
36340
|
published: publishedMatch?.[1] ?? "",
|
|
36337
36341
|
updated: "",
|
|
36338
36342
|
categories: [],
|
|
@@ -43737,7 +43741,7 @@ function createAnalyzeStageWrapper() {
|
|
|
43737
43741
|
true
|
|
43738
43742
|
);
|
|
43739
43743
|
}
|
|
43740
|
-
const { analyzeGitHubRepo: analyzeGitHubRepo2 } = await import("./repo-analyze-
|
|
43744
|
+
const { analyzeGitHubRepo: analyzeGitHubRepo2 } = await import("./repo-analyze-GBQT4LAK.js");
|
|
43741
43745
|
const analysis = await analyzeGitHubRepo2({ repo: slug, depth: "deep" });
|
|
43742
43746
|
const summary = `Language: ${String(analysis.language)}, Framework: ${String(analysis.framework)}, CI: ${String(analysis.ciProvider)}, Security: ${analysis.securityTooling.join(", ") || "none"}`;
|
|
43743
43747
|
ctx.sharedMemory.write("analyze", "discovery", { slug, analysis: summary });
|
|
@@ -43757,7 +43761,7 @@ function createScanStageWrapper() {
|
|
|
43757
43761
|
try {
|
|
43758
43762
|
const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
|
|
43759
43763
|
if (slug !== void 0) {
|
|
43760
|
-
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-
|
|
43764
|
+
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-7ZCDVH5O.js");
|
|
43761
43765
|
const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
|
|
43762
43766
|
const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
|
|
43763
43767
|
ctx.sharedMemory.write("scan", "decision", { recommendations: recs });
|
|
@@ -50029,4 +50033,4 @@ export {
|
|
|
50029
50033
|
detectBackend,
|
|
50030
50034
|
createTaskTracker
|
|
50031
50035
|
};
|
|
50032
|
-
//# sourceMappingURL=chunk-
|
|
50036
|
+
//# sourceMappingURL=chunk-T22NR4Z4.js.map
|