nexus-agents 7.0.1 → 7.0.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.
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-UJPVBDYG.js";
24
+ } from "./chunk-WLIXCNZ6.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-KJWD2V4K.js";
@@ -47,7 +47,7 @@ import {
47
47
  simulationDeniedResult,
48
48
  toJobSummary,
49
49
  writeJobCancelled
50
- } from "./chunk-SS5FADQN.js";
50
+ } from "./chunk-OHULIRP6.js";
51
51
  import {
52
52
  allOf
53
53
  } from "./chunk-OQB3XC5O.js";
@@ -64,7 +64,7 @@ import {
64
64
  } from "./chunk-RLBJTZHA.js";
65
65
  import {
66
66
  withPrerequisite
67
- } from "./chunk-6E2M3P5A.js";
67
+ } from "./chunk-AGFXJUTS.js";
68
68
  import {
69
69
  NOOP_NOTIFIER,
70
70
  RateLimiter,
@@ -78,6 +78,7 @@ import {
78
78
  getToolAnnotations,
79
79
  getToolTimeout,
80
80
  measuredTrustTier,
81
+ sanitizeToolInput,
81
82
  toSdkCallback,
82
83
  toSdkCallbackWithBudgetCheck,
83
84
  toolError,
@@ -88,7 +89,7 @@ import {
88
89
  withAuditTrail,
89
90
  withProgressHeartbeat,
90
91
  wrapToolWithTimeout
91
- } from "./chunk-PDMWQ2NK.js";
92
+ } from "./chunk-GAYSJGKD.js";
92
93
  import {
93
94
  createAuditTrail,
94
95
  createGraphAuditBridge,
@@ -47524,7 +47525,7 @@ ${contextBlock}`;
47524
47525
  const strategy = config.votingStrategy ?? "higher_order";
47525
47526
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47526
47527
  try {
47527
- const { executeVoting } = await import("./consensus-vote-355WNDBN.js");
47528
+ const { executeVoting } = await import("./consensus-vote-62FAN4ZN.js");
47528
47529
  const votingResult = await executeVoting(
47529
47530
  {
47530
47531
  proposal: buildVoteProposal(plan, research),
@@ -48829,32 +48830,45 @@ function absoluteQuorumApprove(reviews, valid) {
48829
48830
  return { decision: "approve", verified: true };
48830
48831
  }
48831
48832
  function buildPrReviewProposal(input) {
48833
+ const sanitizeResult = sanitizeToolInput({
48834
+ prTitle: input.prTitle,
48835
+ prDescription: input.prDescription,
48836
+ prDiff: input.prDiff,
48837
+ repoContext: input.repoContext
48838
+ });
48839
+ const safe = sanitizeResult.sanitized;
48832
48840
  const parts = [];
48833
48841
  parts.push(`# Pull Request Review
48834
48842
  `);
48835
- parts.push(`**Title:** ${input.prTitle}
48843
+ if (sanitizeResult.commentsRemoved > 0) {
48844
+ parts.push(
48845
+ `> **Note:** ${String(sanitizeResult.commentsRemoved)} HTML comment(s) were removed from the untrusted fields below before you saw them (#5258). Comments are invisible in rendered markdown, so they are stripped rather than trusted. This is routine \u2014 GitHub's default PR template contains one \u2014 and is not by itself evidence of an attack.
48846
+ `
48847
+ );
48848
+ }
48849
+ parts.push(`**Title:** ${safe.prTitle}
48836
48850
  `);
48837
48851
  if (input.baseRef !== void 0 && input.headRef !== void 0) {
48838
48852
  parts.push(`**Branches:** ${input.headRef} \u2192 ${input.baseRef}
48839
48853
  `);
48840
48854
  }
48841
- if (input.repoContext !== void 0 && input.repoContext !== "") {
48855
+ if (safe.repoContext !== void 0 && safe.repoContext !== "") {
48842
48856
  parts.push(`
48843
48857
  **Repo context:**
48844
- ${input.repoContext}
48858
+ ${safe.repoContext}
48845
48859
  `);
48846
48860
  }
48847
- if (input.prDescription !== void 0 && input.prDescription !== "") {
48861
+ if (safe.prDescription !== void 0 && safe.prDescription !== "") {
48848
48862
  parts.push(`
48849
48863
  **Description:**
48850
- ${input.prDescription}
48864
+ ${safe.prDescription}
48851
48865
  `);
48852
48866
  }
48853
48867
  parts.push(`
48854
48868
  ## Diff
48855
48869
 
48856
48870
  \`\`\`diff
48857
- ${input.prDiff}
48871
+ ${safe.prDiff}
48858
48872
  \`\`\`
48859
48873
  `);
48860
48874
  parts.push(`
@@ -56155,4 +56169,4 @@ export {
56155
56169
  shutdownFeedbackSubscriber,
56156
56170
  createEventBusBridge
56157
56171
  };
56158
- //# sourceMappingURL=chunk-HA2MM4C2.js.map
56172
+ //# sourceMappingURL=chunk-KUYKSKPV.js.map