nexus-agents 5.0.4 → 5.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.
- package/dist/{chunk-CVDQYONC.js → chunk-326RCKE2.js} +6 -6
- package/dist/{chunk-ZAIZCK2H.js → chunk-IJLWQ4Y3.js} +3 -3
- package/dist/{chunk-ZKX6VVH2.js → chunk-T2KKAZTB.js} +2 -2
- package/dist/chunk-XUTX54BU.js +7 -0
- package/dist/{chunk-BSWCYRYH.js → chunk-YZN2UFYB.js} +2 -2
- package/dist/{chunk-BD6S7IQ3.js → chunk-ZSVUZOMQ.js} +2 -2
- package/dist/cli.js +13 -11
- package/dist/cli.js.map +1 -1
- package/dist/{consensus-vote-2TE2APCF.js → consensus-vote-AONDO26T.js} +4 -4
- package/dist/{improvement-review-OFMMBZPS.js → improvement-review-4KMYPNSZ.js} +4 -4
- package/dist/index.js +7 -7
- package/dist/{setup-data-dir-7H26F7FW.js → setup-data-dir-PIT5H2S6.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-7VPZ26NW.js +0 -7
- /package/dist/{chunk-CVDQYONC.js.map → chunk-326RCKE2.js.map} +0 -0
- /package/dist/{chunk-ZAIZCK2H.js.map → chunk-IJLWQ4Y3.js.map} +0 -0
- /package/dist/{chunk-ZKX6VVH2.js.map → chunk-T2KKAZTB.js.map} +0 -0
- /package/dist/{chunk-7VPZ26NW.js.map → chunk-XUTX54BU.js.map} +0 -0
- /package/dist/{chunk-BSWCYRYH.js.map → chunk-YZN2UFYB.js.map} +0 -0
- /package/dist/{chunk-BD6S7IQ3.js.map → chunk-ZSVUZOMQ.js.map} +0 -0
- /package/dist/{consensus-vote-2TE2APCF.js.map → consensus-vote-AONDO26T.js.map} +0 -0
- /package/dist/{improvement-review-OFMMBZPS.js.map → improvement-review-4KMYPNSZ.js.map} +0 -0
- /package/dist/{setup-data-dir-7H26F7FW.js.map → setup-data-dir-PIT5H2S6.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-IJLWQ4Y3.js";
|
|
25
25
|
import {
|
|
26
26
|
executeExpert
|
|
27
27
|
} from "./chunk-5MQPSHIG.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
simulationDeniedResult,
|
|
48
48
|
toJobSummary,
|
|
49
49
|
writeJobCancelled
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-YZN2UFYB.js";
|
|
51
51
|
import {
|
|
52
52
|
allOf
|
|
53
53
|
} from "./chunk-OQB3XC5O.js";
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
} from "./chunk-FU45UMX5.js";
|
|
65
65
|
import {
|
|
66
66
|
withPrerequisite
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-T2KKAZTB.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-ZSVUZOMQ.js";
|
|
92
92
|
import {
|
|
93
93
|
createAuditTrail,
|
|
94
94
|
createGraphAuditBridge,
|
|
@@ -47322,7 +47322,7 @@ ${contextBlock}`;
|
|
|
47322
47322
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
47323
47323
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
47324
47324
|
try {
|
|
47325
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47325
|
+
const { executeVoting } = await import("./consensus-vote-AONDO26T.js");
|
|
47326
47326
|
const votingResult = await executeVoting(
|
|
47327
47327
|
{
|
|
47328
47328
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -55958,4 +55958,4 @@ export {
|
|
|
55958
55958
|
shutdownFeedbackSubscriber,
|
|
55959
55959
|
createEventBusBridge
|
|
55960
55960
|
};
|
|
55961
|
-
//# sourceMappingURL=chunk-
|
|
55961
|
+
//# sourceMappingURL=chunk-326RCKE2.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-XUTX54BU.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-PIT5H2S6.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-IJLWQ4Y3.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
toolStructuredError,
|
|
8
8
|
toolSuccessStructured,
|
|
9
9
|
wrapToolWithTimeout
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZSVUZOMQ.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-T2KKAZTB.js.map
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
toolSuccessStructured,
|
|
24
24
|
withProgressHeartbeat,
|
|
25
25
|
wrapToolWithTimeout
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZSVUZOMQ.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-YZN2UFYB.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XUTX54BU.js";
|
|
4
4
|
import {
|
|
5
5
|
emitClawGuardViolation
|
|
6
6
|
} from "./chunk-OOGKQTDN.js";
|
|
@@ -2135,4 +2135,4 @@ export {
|
|
|
2135
2135
|
VOTING_THRESHOLDS,
|
|
2136
2136
|
ConsensusMetricsSchema
|
|
2137
2137
|
};
|
|
2138
|
-
//# sourceMappingURL=chunk-
|
|
2138
|
+
//# sourceMappingURL=chunk-ZSVUZOMQ.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-326RCKE2.js";
|
|
156
156
|
import "./chunk-JOY5IRVR.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-IJLWQ4Y3.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-YZN2UFYB.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-T2KKAZTB.js";
|
|
230
230
|
import {
|
|
231
231
|
createDefaultPolicyFirewall,
|
|
232
232
|
setGlobalPolicyFirewall,
|
|
233
233
|
stagePolicyFirewallForRollout
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-ZSVUZOMQ.js";
|
|
235
235
|
import {
|
|
236
236
|
VERSION
|
|
237
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-XUTX54BU.js";
|
|
238
238
|
import "./chunk-OOGKQTDN.js";
|
|
239
239
|
import {
|
|
240
240
|
createUnifiedRegistry,
|
|
@@ -12183,7 +12183,9 @@ function computeSummary(models, banditProgress, feedbackLoop) {
|
|
|
12183
12183
|
const overallSuccessRate = models.length > 0 ? models.reduce((sum, m) => sum + m.successRate * m.selectionPercent, 0) / 100 : 0;
|
|
12184
12184
|
const avgReward = feedbackLoop.avgReward;
|
|
12185
12185
|
let learningStatus;
|
|
12186
|
-
if (banditProgress.
|
|
12186
|
+
if (banditProgress.totalPulls === 0) {
|
|
12187
|
+
learningStatus = "unmeasured";
|
|
12188
|
+
} else if (banditProgress.explorationRatio > 0.6) {
|
|
12187
12189
|
learningStatus = "exploring";
|
|
12188
12190
|
} else if (banditProgress.explorationRatio < 0.3) {
|
|
12189
12191
|
learningStatus = "exploiting";
|
|
@@ -12211,9 +12213,9 @@ function formatHeader3(result) {
|
|
|
12211
12213
|
function formatSummary2(result) {
|
|
12212
12214
|
const lines = [];
|
|
12213
12215
|
lines.push(boxLine(color(" Summary:", ANSI3.bold)));
|
|
12214
|
-
const statusEmoji = result.summary.learningStatus === "exploring" ? color("\u26A1", ANSI3.yellow) : result.summary.learningStatus === "exploiting" ? color("\u2713", ANSI3.green) : color("\u25CE", ANSI3.blue);
|
|
12215
|
-
const
|
|
12216
|
-
lines.push(boxLine(` ${
|
|
12216
|
+
const statusEmoji = result.summary.learningStatus === "unmeasured" ? color("?", ANSI3.dim) : result.summary.learningStatus === "exploring" ? color("\u26A1", ANSI3.yellow) : result.summary.learningStatus === "exploiting" ? color("\u2713", ANSI3.green) : color("\u25CE", ANSI3.blue);
|
|
12217
|
+
const statusText = result.summary.learningStatus === "unmeasured" ? "unmeasured (no routing decisions recorded)" : result.summary.learningStatus;
|
|
12218
|
+
lines.push(boxLine(` ${statusEmoji} Learning Status: ${statusText}`));
|
|
12217
12219
|
const routings = result.summary.totalRoutings.toLocaleString();
|
|
12218
12220
|
lines.push(boxLine(` Total Routings: ${routings}`));
|
|
12219
12221
|
const successRate = formatPercentage(result.summary.overallSuccessRate, 1);
|
|
@@ -19553,7 +19555,7 @@ function startImprovementReviewScheduler(options) {
|
|
|
19553
19555
|
let running = false;
|
|
19554
19556
|
const runOnce = async () => {
|
|
19555
19557
|
try {
|
|
19556
|
-
const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-
|
|
19558
|
+
const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-4KMYPNSZ.js");
|
|
19557
19559
|
const input = ImprovementReviewInputSchema2.parse({ fileIssues });
|
|
19558
19560
|
const result = await runImprovementReview2(input, { logger: logger22 });
|
|
19559
19561
|
logger22.info("Scheduled improvement_review complete", {
|