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.
@@ -53,10 +53,10 @@ import {
53
53
  } from "./chunk-ERWXGXV2.js";
54
54
  import {
55
55
  generateSecurityPlan
56
- } from "./chunk-WXVN4K3D.js";
56
+ } from "./chunk-G2CSKBY5.js";
57
57
  import {
58
58
  analyzeGitHubRepo
59
- } from "./chunk-BMOPMCFZ.js";
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-OZLCOG3N.js";
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] ?? xml;
36321
+ return entryMatch?.[1] ?? null;
36322
+ }
36323
+ function decodeXmlEntities(s) {
36324
+ return s.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&apos;/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-QGLXEFVJ.js");
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-X5CRZ2YY.js");
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-M36XZWG2.js.map
50036
+ //# sourceMappingURL=chunk-T22NR4Z4.js.map