nexus-agents 14.0.4 → 14.0.5

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.
@@ -62,7 +62,7 @@ import {
62
62
  updateStage,
63
63
  withFileLock,
64
64
  writeJobCancelled
65
- } from "./chunk-KSF67NHM.js";
65
+ } from "./chunk-SC4SASR6.js";
66
66
  import {
67
67
  allOf,
68
68
  anyOf
@@ -85,7 +85,7 @@ import {
85
85
  } from "./chunk-RYDTFPVI.js";
86
86
  import {
87
87
  withPrerequisite
88
- } from "./chunk-JDFDGY5A.js";
88
+ } from "./chunk-L47BXEBG.js";
89
89
  import {
90
90
  NOOP_NOTIFIER,
91
91
  RateLimiter,
@@ -118,7 +118,7 @@ import {
118
118
  toolSuccess,
119
119
  withProgressHeartbeat,
120
120
  wrapToolWithTimeout
121
- } from "./chunk-63L435QC.js";
121
+ } from "./chunk-7N4X6FI7.js";
122
122
  import {
123
123
  generateSecurityPlan
124
124
  } from "./chunk-KMGKOF5P.js";
@@ -50459,7 +50459,7 @@ function buildVotingInput(plan, config) {
50459
50459
  }
50460
50460
  async function executeSingleVote(plan, config, log) {
50461
50461
  try {
50462
- const { executeVoting } = await import("./consensus-vote-XRRZGJGJ.js");
50462
+ const { executeVoting } = await import("./consensus-vote-AYC2GYSB.js");
50463
50463
  const input = buildVotingInput(plan, config);
50464
50464
  const result = await executeVoting(input, log);
50465
50465
  return parseVotingResult(result);
@@ -52234,7 +52234,7 @@ function sanitizationNote(sanitizeResult, removedBefore) {
52234
52234
  }
52235
52235
  return parts.join("");
52236
52236
  }
52237
- function buildPrReviewProposal(input, removedBefore = {
52237
+ function buildPrReviewProposalResult(input, removedBefore = {
52238
52238
  comments: 0,
52239
52239
  fields: 0,
52240
52240
  tags: 0
@@ -52293,7 +52293,26 @@ ${safe.prDiff}
52293
52293
  parts.push(`
52294
52294
  ${FINDINGS_FORMAT_INSTRUCTIONS}
52295
52295
  `);
52296
- return parts.join("");
52296
+ return {
52297
+ proposal: parts.join(""),
52298
+ builderSanitization: copyBuilderFacts(sanitizeResult)
52299
+ };
52300
+ }
52301
+ function copyBuilderFacts(facts) {
52302
+ return Object.freeze({
52303
+ commentsRemoved: facts.commentsRemoved,
52304
+ tagsRemoved: facts.tagsRemoved,
52305
+ modifiedCount: facts.modifiedCount,
52306
+ wasModified: facts.wasModified,
52307
+ sanitizationIncomplete: facts.sanitizationIncomplete
52308
+ });
52309
+ }
52310
+ function buildPrReviewProposal(input, removedBefore = {
52311
+ comments: 0,
52312
+ fields: 0,
52313
+ tags: 0
52314
+ }) {
52315
+ return buildPrReviewProposalResult(input, removedBefore).proposal;
52297
52316
  }
52298
52317
 
52299
52318
  // src/pipeline/agent-executor-memory.ts
@@ -52935,7 +52954,7 @@ async function prepareCompletePlanVote(plan, research, config, signal) {
52935
52954
  return { proposal, roleAdapters: panel.seats };
52936
52955
  }
52937
52956
  async function executePlanVote(plan, research, config, strategy, signal) {
52938
- const { executeVoting } = await import("./consensus-vote-XRRZGJGJ.js");
52957
+ const { executeVoting } = await import("./consensus-vote-AYC2GYSB.js");
52939
52958
  const { proposal, roleAdapters } = await prepareCompletePlanVote(plan, research, config, signal);
52940
52959
  const votingResult = await executeVoting(
52941
52960
  {
@@ -55715,6 +55734,21 @@ function localReductionStamp(args) {
55715
55734
  }
55716
55735
  return ` [local pre-builder diff prefix ${String(r.prefixCodeUnits)}/${String(r.totalCodeUnits)} JS code units; UTF-8 ${String(r.prefixUtf8Bytes)}/${String(r.totalUtf8Bytes)} bytes; marker +${String(r.marker.length)} JS code units/+${String(Buffer.byteLength(r.marker))} bytes; additional inspection UNMEASURED]`;
55717
55736
  }
55737
+ var BuilderSanitizationFactsSchema = z113.object({
55738
+ commentsRemoved: z113.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
55739
+ tagsRemoved: z113.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
55740
+ modifiedCount: z113.number().int().min(0).max(4),
55741
+ wasModified: z113.boolean(),
55742
+ sanitizationIncomplete: z113.boolean()
55743
+ }).strict();
55744
+ function builderSanitizationStamp(args) {
55745
+ if (args.builderSanitization === void 0) return "";
55746
+ const f = BuilderSanitizationFactsSchema.parse(args.builderSanitization);
55747
+ if (args.diffSource !== "canonical-git" || args.sanitization !== void 0 || args.coverage !== void 0 || f.wasModified !== f.modifiedCount > 0 || (f.commentsRemoved > 0 || f.tagsRemoved > 0) && !f.wasModified) {
55748
+ throw new Error("Invalid builder-own sanitization facts");
55749
+ }
55750
+ return ` [builder sanitization: ${String(f.commentsRemoved)} comments, ${String(f.tagsRemoved)} tags, ${String(f.modifiedCount)} changed fields; modified=${String(f.wasModified)}; incomplete=${String(f.sanitizationIncomplete)}; scope=title/description/diff/context; additional inspection UNMEASURED]`;
55751
+ }
55718
55752
  function bytes(n) {
55719
55753
  return n.toLocaleString("en-US");
55720
55754
  }
@@ -55789,7 +55823,7 @@ function writeFailedOutcome() {
55789
55823
  function buildAndPersist(prNumber, baseSha, args) {
55790
55824
  const { input, aggregate, counts, reviewCount, logger: logger62, coverage, diffSource, sanitization } = args;
55791
55825
  const reviewedDiffHash = sanitization?.rawDiffHash ?? computeReviewedDiffHash(input.prDiff);
55792
- const stamps = localReductionStamp(args) + coverageStamps(coverage);
55826
+ const stamps = localReductionStamp(args) + builderSanitizationStamp(args) + coverageStamps(coverage);
55793
55827
  const coverageFields = coverageFieldsOf(coverage);
55794
55828
  const disclosure = sanitizationDisclosureOf(sanitization, input.prDiff);
55795
55829
  warnIfDiffTruncated(resolveBindingMeasurement(input.prDiff, sanitization), prNumber, logger62);
@@ -63441,4 +63475,4 @@ export {
63441
63475
  initializeSandbox,
63442
63476
  getSandboxMode
63443
63477
  };
63444
- //# sourceMappingURL=chunk-TK723ERO.js.map
63478
+ //# sourceMappingURL=chunk-3WBJBX3O.js.map