nexus-agents 6.0.2 → 6.0.4
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-PHVAHFGS.js → chunk-562PJ473.js} +2 -2
- package/dist/{chunk-LK3EGTKJ.js → chunk-5SGP5J5I.js} +6 -6
- package/dist/{chunk-Z7RDLA4Y.js → chunk-AQWDHZ6I.js} +3 -3
- package/dist/chunk-GS4K6B5K.js +7 -0
- package/dist/{chunk-AUJKMEEX.js → chunk-I3A7V4SW.js} +2 -2
- package/dist/{chunk-AO7YLNND.js → chunk-RRBDZEZD.js} +2 -2
- package/dist/cli.js +16 -12
- package/dist/cli.js.map +1 -1
- package/dist/{consensus-vote-AGMVHSZB.js → consensus-vote-URW73T3X.js} +4 -4
- package/dist/{improvement-review-NUP44BIB.js → improvement-review-Y6YLJBP4.js} +4 -4
- package/dist/index.js +7 -7
- package/dist/{setup-data-dir-XSVCUFJF.js → setup-data-dir-KQZV6LVM.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-ZIMYE4FB.js +0 -7
- /package/dist/{chunk-PHVAHFGS.js.map → chunk-562PJ473.js.map} +0 -0
- /package/dist/{chunk-LK3EGTKJ.js.map → chunk-5SGP5J5I.js.map} +0 -0
- /package/dist/{chunk-Z7RDLA4Y.js.map → chunk-AQWDHZ6I.js.map} +0 -0
- /package/dist/{chunk-ZIMYE4FB.js.map → chunk-GS4K6B5K.js.map} +0 -0
- /package/dist/{chunk-AUJKMEEX.js.map → chunk-I3A7V4SW.js.map} +0 -0
- /package/dist/{chunk-AO7YLNND.js.map → chunk-RRBDZEZD.js.map} +0 -0
- /package/dist/{consensus-vote-AGMVHSZB.js.map → consensus-vote-URW73T3X.js.map} +0 -0
- /package/dist/{improvement-review-NUP44BIB.js.map → improvement-review-Y6YLJBP4.js.map} +0 -0
- /package/dist/{setup-data-dir-XSVCUFJF.js.map → setup-data-dir-KQZV6LVM.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GS4K6B5K.js";
|
|
4
4
|
import {
|
|
5
5
|
emitClawGuardViolation
|
|
6
6
|
} from "./chunk-6ME3ITZE.js";
|
|
@@ -2135,4 +2135,4 @@ export {
|
|
|
2135
2135
|
VOTING_THRESHOLDS,
|
|
2136
2136
|
ConsensusMetricsSchema
|
|
2137
2137
|
};
|
|
2138
|
-
//# sourceMappingURL=chunk-
|
|
2138
|
+
//# sourceMappingURL=chunk-562PJ473.js.map
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_TASK_TTL_MS,
|
|
23
23
|
clampTaskTtl
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-AQWDHZ6I.js";
|
|
25
25
|
import {
|
|
26
26
|
executeExpert
|
|
27
27
|
} from "./chunk-HFYSK6QJ.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
simulationDeniedResult,
|
|
48
48
|
toJobSummary,
|
|
49
49
|
writeJobCancelled
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-I3A7V4SW.js";
|
|
51
51
|
import {
|
|
52
52
|
allOf
|
|
53
53
|
} from "./chunk-OQB3XC5O.js";
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
} from "./chunk-YJF46WLY.js";
|
|
65
65
|
import {
|
|
66
66
|
withPrerequisite
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-RRBDZEZD.js";
|
|
68
68
|
import {
|
|
69
69
|
NOOP_NOTIFIER,
|
|
70
70
|
RateLimiter,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
withAuditTrail,
|
|
89
89
|
withProgressHeartbeat,
|
|
90
90
|
wrapToolWithTimeout
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-562PJ473.js";
|
|
92
92
|
import {
|
|
93
93
|
createAuditTrail,
|
|
94
94
|
createGraphAuditBridge,
|
|
@@ -47300,7 +47300,7 @@ ${contextBlock}`;
|
|
|
47300
47300
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
47301
47301
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
47302
47302
|
try {
|
|
47303
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47303
|
+
const { executeVoting } = await import("./consensus-vote-URW73T3X.js");
|
|
47304
47304
|
const votingResult = await executeVoting(
|
|
47305
47305
|
{
|
|
47306
47306
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -55941,4 +55941,4 @@ export {
|
|
|
55941
55941
|
shutdownFeedbackSubscriber,
|
|
55942
55942
|
createEventBusBridge
|
|
55943
55943
|
};
|
|
55944
|
-
//# sourceMappingURL=chunk-
|
|
55944
|
+
//# sourceMappingURL=chunk-5SGP5J5I.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-OQB3XC5O.js";
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GS4K6B5K.js";
|
|
10
10
|
import {
|
|
11
11
|
capitalize
|
|
12
12
|
} from "./chunk-6T3EPABN.js";
|
|
@@ -1201,7 +1201,7 @@ async function runDoctorFix(result) {
|
|
|
1201
1201
|
writeLine2("\u2500".repeat(40));
|
|
1202
1202
|
let fixCount = 0;
|
|
1203
1203
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
1204
|
-
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-
|
|
1204
|
+
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-KQZV6LVM.js");
|
|
1205
1205
|
const outcome = describeDataDirFix2(initDataDirectories2());
|
|
1206
1206
|
writeLine2(outcome.line);
|
|
1207
1207
|
if (outcome.counted) fixCount++;
|
|
@@ -1303,4 +1303,4 @@ export {
|
|
|
1303
1303
|
startStdioServer,
|
|
1304
1304
|
closeServer
|
|
1305
1305
|
};
|
|
1306
|
-
//# sourceMappingURL=chunk-
|
|
1306
|
+
//# sourceMappingURL=chunk-AQWDHZ6I.js.map
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
toolSuccessStructured,
|
|
24
24
|
withProgressHeartbeat,
|
|
25
25
|
wrapToolWithTimeout
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-562PJ473.js";
|
|
27
27
|
import {
|
|
28
28
|
assessPanelIndependence,
|
|
29
29
|
countDistinctModels,
|
|
@@ -6848,4 +6848,4 @@ export {
|
|
|
6848
6848
|
CONSENSUS_VOTE_TOOL_SCHEMA,
|
|
6849
6849
|
registerConsensusVoteTool
|
|
6850
6850
|
};
|
|
6851
|
-
//# sourceMappingURL=chunk-
|
|
6851
|
+
//# sourceMappingURL=chunk-I3A7V4SW.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
toolStructuredError,
|
|
8
8
|
toolSuccessStructured,
|
|
9
9
|
wrapToolWithTimeout
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-562PJ473.js";
|
|
11
11
|
import {
|
|
12
12
|
JsonlStore,
|
|
13
13
|
SECURITY_KEYWORDS,
|
|
@@ -2159,4 +2159,4 @@ export {
|
|
|
2159
2159
|
runImprovementReview,
|
|
2160
2160
|
registerImprovementReviewTool
|
|
2161
2161
|
};
|
|
2162
|
-
//# sourceMappingURL=chunk-
|
|
2162
|
+
//# sourceMappingURL=chunk-RRBDZEZD.js.map
|
package/dist/cli.js
CHANGED
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
validateNexusEnv,
|
|
153
153
|
validateWorkflow,
|
|
154
154
|
wrapInMarkdownFence
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-5SGP5J5I.js";
|
|
156
156
|
import "./chunk-RMZPEV7T.js";
|
|
157
157
|
import "./chunk-HFOQKCD2.js";
|
|
158
158
|
import "./chunk-RSMG2DPB.js";
|
|
@@ -171,7 +171,7 @@ import {
|
|
|
171
171
|
doctorCommand,
|
|
172
172
|
initDataDirectories,
|
|
173
173
|
runDoctor
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-AQWDHZ6I.js";
|
|
175
175
|
import {
|
|
176
176
|
buildOpenAICompatAdapters,
|
|
177
177
|
readOpenAICompatEnv
|
|
@@ -190,7 +190,7 @@ import {
|
|
|
190
190
|
recordAuthenticVote,
|
|
191
191
|
registerConsensusVoteTool,
|
|
192
192
|
toRecordDecision
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-I3A7V4SW.js";
|
|
194
194
|
import {
|
|
195
195
|
loadUsageEvents,
|
|
196
196
|
rollupByModel
|
|
@@ -226,15 +226,15 @@ import {
|
|
|
226
226
|
registerImprovementReviewTool,
|
|
227
227
|
runImprovementReview,
|
|
228
228
|
scanForSecrets
|
|
229
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-RRBDZEZD.js";
|
|
230
230
|
import {
|
|
231
231
|
createDefaultPolicyFirewall,
|
|
232
232
|
setGlobalPolicyFirewall,
|
|
233
233
|
stagePolicyFirewallForRollout
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-562PJ473.js";
|
|
235
235
|
import {
|
|
236
236
|
VERSION
|
|
237
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-GS4K6B5K.js";
|
|
238
238
|
import "./chunk-6ME3ITZE.js";
|
|
239
239
|
import {
|
|
240
240
|
createUnifiedRegistry,
|
|
@@ -5364,6 +5364,7 @@ function formatTopsisRanking(result) {
|
|
|
5364
5364
|
function formatLinUCBSelection(result) {
|
|
5365
5365
|
const lines = [];
|
|
5366
5366
|
lines.push(boxLine(color(" LinUCB Selection:", ANSI.bold)));
|
|
5367
|
+
lines.push(boxLine(color(" [cold bandit \u2014 not the router's live state]", ANSI.dim)));
|
|
5367
5368
|
for (const arm of result.linucbDetails) {
|
|
5368
5369
|
const marker = arm.cliName === result.selectedCli ? arm.isExploration ? color("\u2190 explore", ANSI.yellow) : color("\u2190 exploit", ANSI.green) : "";
|
|
5369
5370
|
const ucb = arm.ucbScore.toFixed(2);
|
|
@@ -15116,7 +15117,12 @@ function validateBashCommand(command, customPatterns) {
|
|
|
15116
15117
|
}
|
|
15117
15118
|
if (customPatterns !== void 0) {
|
|
15118
15119
|
for (const patternStr of customPatterns) {
|
|
15119
|
-
|
|
15120
|
+
const verdict = testCustomPattern(patternStr, command);
|
|
15121
|
+
if (verdict === "invalid") {
|
|
15122
|
+
logger18.warn("Invalid custom block pattern \u2014 failing closed", { pattern: patternStr });
|
|
15123
|
+
return `Blocked: custom block pattern is not a valid regex: ${patternStr}`;
|
|
15124
|
+
}
|
|
15125
|
+
if (verdict === "match") {
|
|
15120
15126
|
return `Blocked by custom pattern: ${patternStr}`;
|
|
15121
15127
|
}
|
|
15122
15128
|
}
|
|
@@ -15125,11 +15131,9 @@ function validateBashCommand(command, customPatterns) {
|
|
|
15125
15131
|
}
|
|
15126
15132
|
function testCustomPattern(patternStr, command) {
|
|
15127
15133
|
try {
|
|
15128
|
-
|
|
15129
|
-
return pattern.test(command);
|
|
15134
|
+
return new RegExp(patternStr).test(command) ? "match" : "no-match";
|
|
15130
15135
|
} catch {
|
|
15131
|
-
|
|
15132
|
-
return false;
|
|
15136
|
+
return "invalid";
|
|
15133
15137
|
}
|
|
15134
15138
|
}
|
|
15135
15139
|
function checkSensitiveFile(filePath) {
|
|
@@ -19559,7 +19563,7 @@ function startImprovementReviewScheduler(options) {
|
|
|
19559
19563
|
let running = false;
|
|
19560
19564
|
const runOnce = async () => {
|
|
19561
19565
|
try {
|
|
19562
|
-
const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-
|
|
19566
|
+
const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-Y6YLJBP4.js");
|
|
19563
19567
|
const input = ImprovementReviewInputSchema2.parse({ fileIssues });
|
|
19564
19568
|
const result = await runImprovementReview2(input, { logger: logger22 });
|
|
19565
19569
|
logger22.info("Scheduled improvement_review complete", {
|