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.
- package/dist/chunk-37JIYDVH.js +7 -0
- package/dist/{chunk-6E2M3P5A.js → chunk-AGFXJUTS.js} +2 -2
- package/dist/{chunk-PDMWQ2NK.js → chunk-GAYSJGKD.js} +47 -30
- package/dist/chunk-GAYSJGKD.js.map +1 -0
- package/dist/{chunk-HA2MM4C2.js → chunk-KUYKSKPV.js} +26 -12
- package/dist/{chunk-HA2MM4C2.js.map → chunk-KUYKSKPV.js.map} +1 -1
- package/dist/{chunk-SS5FADQN.js → chunk-OHULIRP6.js} +2 -2
- package/dist/{chunk-UJPVBDYG.js → chunk-WLIXCNZ6.js} +3 -3
- package/dist/cli.js +7 -7
- package/dist/{consensus-vote-355WNDBN.js → consensus-vote-62FAN4ZN.js} +4 -4
- package/dist/{improvement-review-PO4LS6GO.js → improvement-review-QUU5HR7Z.js} +4 -4
- package/dist/index.d.ts +17 -1
- package/dist/index.js +7 -7
- package/dist/{setup-data-dir-O2EABCPO.js → setup-data-dir-ZEH7TFA6.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-MNG6VKJP.js +0 -7
- package/dist/chunk-PDMWQ2NK.js.map +0 -1
- /package/dist/{chunk-MNG6VKJP.js.map → chunk-37JIYDVH.js.map} +0 -0
- /package/dist/{chunk-6E2M3P5A.js.map → chunk-AGFXJUTS.js.map} +0 -0
- /package/dist/{chunk-SS5FADQN.js.map → chunk-OHULIRP6.js.map} +0 -0
- /package/dist/{chunk-UJPVBDYG.js.map → chunk-WLIXCNZ6.js.map} +0 -0
- /package/dist/{consensus-vote-355WNDBN.js.map → consensus-vote-62FAN4ZN.js.map} +0 -0
- /package/dist/{improvement-review-PO4LS6GO.js.map → improvement-review-QUU5HR7Z.js.map} +0 -0
- /package/dist/{setup-data-dir-O2EABCPO.js.map → setup-data-dir-ZEH7TFA6.js.map} +0 -0
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_TASK_TTL_MS,
|
|
23
23
|
clampTaskTtl
|
|
24
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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 (
|
|
48855
|
+
if (safe.repoContext !== void 0 && safe.repoContext !== "") {
|
|
48842
48856
|
parts.push(`
|
|
48843
48857
|
**Repo context:**
|
|
48844
|
-
${
|
|
48858
|
+
${safe.repoContext}
|
|
48845
48859
|
`);
|
|
48846
48860
|
}
|
|
48847
|
-
if (
|
|
48861
|
+
if (safe.prDescription !== void 0 && safe.prDescription !== "") {
|
|
48848
48862
|
parts.push(`
|
|
48849
48863
|
**Description:**
|
|
48850
|
-
${
|
|
48864
|
+
${safe.prDescription}
|
|
48851
48865
|
`);
|
|
48852
48866
|
}
|
|
48853
48867
|
parts.push(`
|
|
48854
48868
|
## Diff
|
|
48855
48869
|
|
|
48856
48870
|
\`\`\`diff
|
|
48857
|
-
${
|
|
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-
|
|
56172
|
+
//# sourceMappingURL=chunk-KUYKSKPV.js.map
|