nexus-agents 11.3.0 → 11.3.1
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-BREDDYX4.js → chunk-3KA7JCK3.js} +2 -2
- package/dist/{chunk-PIBIAVWQ.js → chunk-6P7CCAQH.js} +3 -3
- package/dist/{chunk-KS7CAJAC.js → chunk-AKLRGCFR.js} +2 -2
- package/dist/{chunk-A7XDON63.js → chunk-FW7QME5N.js} +8 -8
- package/dist/{chunk-ZZ2BEXLC.js → chunk-R3O4NJYH.js} +3 -3
- package/dist/{chunk-3OQBXYFS.js → chunk-VMU25QVH.js} +2 -2
- package/dist/cli.js +67 -12
- package/dist/cli.js.map +1 -1
- package/dist/{consensus-vote-BD5NWZU5.js → consensus-vote-KCT6UPVD.js} +4 -4
- package/dist/{improvement-review-FLF7N7PR.js → improvement-review-ILGECXTE.js} +4 -4
- package/dist/index.js +6 -6
- package/dist/{setup-data-dir-A37RQCGA.js → setup-data-dir-R2XY27IM.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-BREDDYX4.js.map → chunk-3KA7JCK3.js.map} +0 -0
- /package/dist/{chunk-PIBIAVWQ.js.map → chunk-6P7CCAQH.js.map} +0 -0
- /package/dist/{chunk-KS7CAJAC.js.map → chunk-AKLRGCFR.js.map} +0 -0
- /package/dist/{chunk-A7XDON63.js.map → chunk-FW7QME5N.js.map} +0 -0
- /package/dist/{chunk-ZZ2BEXLC.js.map → chunk-R3O4NJYH.js.map} +0 -0
- /package/dist/{chunk-3OQBXYFS.js.map → chunk-VMU25QVH.js.map} +0 -0
- /package/dist/{consensus-vote-BD5NWZU5.js.map → consensus-vote-KCT6UPVD.js.map} +0 -0
- /package/dist/{improvement-review-FLF7N7PR.js.map → improvement-review-ILGECXTE.js.map} +0 -0
- /package/dist/{setup-data-dir-A37RQCGA.js.map → setup-data-dir-R2XY27IM.js.map} +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getCurrentRequestContext,
|
|
6
6
|
runWithRequestContext,
|
|
7
7
|
serverCallerInfo
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VMU25QVH.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_EXECUTION_MODE
|
|
11
11
|
} from "./chunk-TYLE7Z2S.js";
|
|
@@ -2345,4 +2345,4 @@ export {
|
|
|
2345
2345
|
DEFAULT_CONSENSUS_CONFIG,
|
|
2346
2346
|
ConsensusMetricsSchema
|
|
2347
2347
|
};
|
|
2348
|
-
//# sourceMappingURL=chunk-
|
|
2348
|
+
//# sourceMappingURL=chunk-3KA7JCK3.js.map
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
toolSuccess,
|
|
22
22
|
withProgressHeartbeat,
|
|
23
23
|
wrapToolWithTimeout
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-3KA7JCK3.js";
|
|
25
25
|
import {
|
|
26
26
|
getToolMemory
|
|
27
27
|
} from "./chunk-PPH3CAMR.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
} from "./chunk-EZNIYU5T.js";
|
|
31
31
|
import {
|
|
32
32
|
VERSION
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-VMU25QVH.js";
|
|
34
34
|
import {
|
|
35
35
|
ModelBoundAdapter,
|
|
36
36
|
UNVERIFIABLE_STDERR_RE,
|
|
@@ -9915,4 +9915,4 @@ export {
|
|
|
9915
9915
|
CONSENSUS_VOTE_TOOL_SCHEMA,
|
|
9916
9916
|
registerConsensusVoteTool
|
|
9917
9917
|
};
|
|
9918
|
-
//# sourceMappingURL=chunk-
|
|
9918
|
+
//# sourceMappingURL=chunk-6P7CCAQH.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
toSdkCallback,
|
|
8
8
|
toolStructuredError,
|
|
9
9
|
wrapToolWithTimeout
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3KA7JCK3.js";
|
|
11
11
|
import {
|
|
12
12
|
JsonlStore,
|
|
13
13
|
SECURITY_KEYWORDS,
|
|
@@ -2435,4 +2435,4 @@ export {
|
|
|
2435
2435
|
runImprovementReview,
|
|
2436
2436
|
registerImprovementReviewTool
|
|
2437
2437
|
};
|
|
2438
|
-
//# sourceMappingURL=chunk-
|
|
2438
|
+
//# sourceMappingURL=chunk-AKLRGCFR.js.map
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
updateStage,
|
|
59
59
|
withFileLock,
|
|
60
60
|
writeJobCancelled
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-6P7CCAQH.js";
|
|
62
62
|
import {
|
|
63
63
|
normalizeTopicToCanonical,
|
|
64
64
|
synthesizeResearch
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
} from "./chunk-HQ2SMW4Y.js";
|
|
78
78
|
import {
|
|
79
79
|
withPrerequisite
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-AKLRGCFR.js";
|
|
81
81
|
import {
|
|
82
82
|
NOOP_NOTIFIER,
|
|
83
83
|
RateLimiter,
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
toolSuccess,
|
|
106
106
|
withProgressHeartbeat,
|
|
107
107
|
wrapToolWithTimeout
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-3KA7JCK3.js";
|
|
109
109
|
import {
|
|
110
110
|
generateSecurityPlan
|
|
111
111
|
} from "./chunk-6ZTMMN2N.js";
|
|
@@ -187,7 +187,7 @@ import {
|
|
|
187
187
|
import {
|
|
188
188
|
DEFAULT_TASK_TTL_MS,
|
|
189
189
|
clampTaskTtl
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-R3O4NJYH.js";
|
|
191
191
|
import {
|
|
192
192
|
allOf,
|
|
193
193
|
anyOf
|
|
@@ -196,7 +196,7 @@ import {
|
|
|
196
196
|
VERSION,
|
|
197
197
|
createRequestContext,
|
|
198
198
|
measuredTrustTier
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-VMU25QVH.js";
|
|
200
200
|
import {
|
|
201
201
|
BWRAP_READ_ONLY_ARGS,
|
|
202
202
|
CliDetectionCache,
|
|
@@ -46682,7 +46682,7 @@ function buildVotingInput(plan, config) {
|
|
|
46682
46682
|
}
|
|
46683
46683
|
async function executeSingleVote(plan, config, log) {
|
|
46684
46684
|
try {
|
|
46685
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
46685
|
+
const { executeVoting } = await import("./consensus-vote-KCT6UPVD.js");
|
|
46686
46686
|
const input = buildVotingInput(plan, config);
|
|
46687
46687
|
const result = await executeVoting(input, log);
|
|
46688
46688
|
return parseVotingResult(result);
|
|
@@ -48515,7 +48515,7 @@ function createVoteStage({ config, startStage }) {
|
|
|
48515
48515
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
48516
48516
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
48517
48517
|
try {
|
|
48518
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
48518
|
+
const { executeVoting } = await import("./consensus-vote-KCT6UPVD.js");
|
|
48519
48519
|
const proposal = buildVoteProposal(plan, research);
|
|
48520
48520
|
const votingResult = await executeVoting(
|
|
48521
48521
|
{
|
|
@@ -58532,4 +58532,4 @@ export {
|
|
|
58532
58532
|
initializeSandbox,
|
|
58533
58533
|
getSandboxMode
|
|
58534
58534
|
};
|
|
58535
|
-
//# sourceMappingURL=chunk-
|
|
58535
|
+
//# sourceMappingURL=chunk-FW7QME5N.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
VERSION,
|
|
8
8
|
isNodeVersionSupported,
|
|
9
9
|
recordServerTransport
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VMU25QVH.js";
|
|
11
11
|
import {
|
|
12
12
|
checkGatewayHealth,
|
|
13
13
|
cliFailsVerdict,
|
|
@@ -2263,7 +2263,7 @@ async function runDoctorFix(result) {
|
|
|
2263
2263
|
writeLine2("\u2500".repeat(40));
|
|
2264
2264
|
let fixCount = 0;
|
|
2265
2265
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
2266
|
-
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-
|
|
2266
|
+
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-R2XY27IM.js");
|
|
2267
2267
|
const outcome = describeDataDirFix2(initDataDirectories2());
|
|
2268
2268
|
writeLine2(outcome.line);
|
|
2269
2269
|
if (outcome.counted) fixCount++;
|
|
@@ -2383,4 +2383,4 @@ export {
|
|
|
2383
2383
|
startStdioServer,
|
|
2384
2384
|
closeServer
|
|
2385
2385
|
};
|
|
2386
|
-
//# sourceMappingURL=chunk-
|
|
2386
|
+
//# sourceMappingURL=chunk-R3O4NJYH.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// src/version.ts
|
|
6
6
|
import semver from "semver";
|
|
7
|
-
var VERSION = true ? "11.3.
|
|
7
|
+
var VERSION = true ? "11.3.1" : "dev";
|
|
8
8
|
var NODE_ENGINE_RANGE = ">=24";
|
|
9
9
|
function isNodeVersionSupported(version) {
|
|
10
10
|
return semver.satisfies(version, NODE_ENGINE_RANGE);
|
|
@@ -106,4 +106,4 @@ export {
|
|
|
106
106
|
contextForLogging,
|
|
107
107
|
measuredTrustTier
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=chunk-
|
|
109
|
+
//# sourceMappingURL=chunk-VMU25QVH.js.map
|
package/dist/cli.js
CHANGED
|
@@ -173,7 +173,7 @@ import {
|
|
|
173
173
|
validateWorkflow,
|
|
174
174
|
withPanelWorkspace,
|
|
175
175
|
wrapInMarkdownFence
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-FW7QME5N.js";
|
|
177
177
|
import "./chunk-RGTJML3H.js";
|
|
178
178
|
import "./chunk-WDAND5YU.js";
|
|
179
179
|
import {
|
|
@@ -198,7 +198,7 @@ import {
|
|
|
198
198
|
seatFallbacks,
|
|
199
199
|
servedSubstitutions,
|
|
200
200
|
toRecordDecision
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-6P7CCAQH.js";
|
|
202
202
|
import {
|
|
203
203
|
synthesizeResearch
|
|
204
204
|
} from "./chunk-YEWHPFMD.js";
|
|
@@ -236,14 +236,14 @@ import {
|
|
|
236
236
|
renderPlanAsResearch,
|
|
237
237
|
runImprovementReview,
|
|
238
238
|
scanForSecrets
|
|
239
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-AKLRGCFR.js";
|
|
240
240
|
import {
|
|
241
241
|
getGlobalExecutionMode,
|
|
242
242
|
setGlobalExecutionMode,
|
|
243
243
|
setGlobalPolicyFirewall,
|
|
244
244
|
setSecureHandlerAuditLogger,
|
|
245
245
|
stagePolicyFirewallForRollout
|
|
246
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-3KA7JCK3.js";
|
|
247
247
|
import "./chunk-6ZTMMN2N.js";
|
|
248
248
|
import "./chunk-4GDMHCKX.js";
|
|
249
249
|
import "./chunk-I2THTVA4.js";
|
|
@@ -315,7 +315,7 @@ import {
|
|
|
315
315
|
loadConfig,
|
|
316
316
|
printDoctorSummary,
|
|
317
317
|
runDoctor
|
|
318
|
-
} from "./chunk-
|
|
318
|
+
} from "./chunk-R3O4NJYH.js";
|
|
319
319
|
import {
|
|
320
320
|
allOf,
|
|
321
321
|
anyOf
|
|
@@ -324,7 +324,7 @@ import {
|
|
|
324
324
|
NODE_ENGINE_RANGE,
|
|
325
325
|
VERSION,
|
|
326
326
|
isNodeVersionSupported
|
|
327
|
-
} from "./chunk-
|
|
327
|
+
} from "./chunk-VMU25QVH.js";
|
|
328
328
|
import "./chunk-R4ZN6AQO.js";
|
|
329
329
|
import {
|
|
330
330
|
claimGlobalRegistry,
|
|
@@ -12185,8 +12185,19 @@ function computeBanditProgress(banditStats, explorationStats) {
|
|
|
12185
12185
|
};
|
|
12186
12186
|
}
|
|
12187
12187
|
function computeRewardTrend(routingMetrics) {
|
|
12188
|
-
const
|
|
12189
|
-
|
|
12188
|
+
const sampleCount = routingMetrics?.totalOutcomes ?? 0;
|
|
12189
|
+
if (routingMetrics === void 0 || sampleCount === 0) {
|
|
12190
|
+
return {
|
|
12191
|
+
current: 0,
|
|
12192
|
+
previous: 0,
|
|
12193
|
+
direction: "stable",
|
|
12194
|
+
changePercent: 0,
|
|
12195
|
+
sampleCount: 0,
|
|
12196
|
+
measurementStatus: "unmeasured"
|
|
12197
|
+
};
|
|
12198
|
+
}
|
|
12199
|
+
const current = routingMetrics.avgReward;
|
|
12200
|
+
const trendChange = routingMetrics.avgRewardTrend;
|
|
12190
12201
|
const previous = current - trendChange;
|
|
12191
12202
|
let direction;
|
|
12192
12203
|
if (trendChange > 0.05) {
|
|
@@ -12197,7 +12208,14 @@ function computeRewardTrend(routingMetrics) {
|
|
|
12197
12208
|
direction = "stable";
|
|
12198
12209
|
}
|
|
12199
12210
|
const changePercent = previous !== 0 ? trendChange / Math.abs(previous) * 100 : 0;
|
|
12200
|
-
return {
|
|
12211
|
+
return {
|
|
12212
|
+
current,
|
|
12213
|
+
previous,
|
|
12214
|
+
direction,
|
|
12215
|
+
changePercent,
|
|
12216
|
+
sampleCount,
|
|
12217
|
+
measurementStatus: "measured"
|
|
12218
|
+
};
|
|
12201
12219
|
}
|
|
12202
12220
|
function extractOutcomeDistribution(outcomesByClass) {
|
|
12203
12221
|
const classes = outcomesByClass ?? {};
|
|
@@ -12346,9 +12364,14 @@ function formatFeatureImportance(features) {
|
|
|
12346
12364
|
lines.push(color("\u251C" + horizontalLine() + "\u2524", ANSI3.cyan));
|
|
12347
12365
|
return lines;
|
|
12348
12366
|
}
|
|
12349
|
-
function formatRewardTrend(trend) {
|
|
12367
|
+
function formatRewardTrend(trend, sampleCount) {
|
|
12350
12368
|
const lines = [];
|
|
12351
12369
|
lines.push(boxLine(color(" Reward Trend:", ANSI3.bold)));
|
|
12370
|
+
if (sampleCount === 0) {
|
|
12371
|
+
lines.push(boxLine(" unmeasured (0 routing outcomes)"));
|
|
12372
|
+
lines.push(color("\u251C" + horizontalLine() + "\u2524", ANSI3.cyan));
|
|
12373
|
+
return lines;
|
|
12374
|
+
}
|
|
12352
12375
|
const currentReward = trend.current.toFixed(3);
|
|
12353
12376
|
const previousReward = trend.previous.toFixed(3);
|
|
12354
12377
|
lines.push(boxLine(` Current: ${currentReward} | Previous: ${previousReward}`));
|
|
@@ -12399,15 +12422,31 @@ function formatAsciiOutput2(result, options) {
|
|
|
12399
12422
|
lines.push(...formatFeatureImportance(result.banditProgress.topFeatures));
|
|
12400
12423
|
}
|
|
12401
12424
|
if (options.showTrends) {
|
|
12402
|
-
lines.push(...formatRewardTrend(result.rewardTrend));
|
|
12425
|
+
lines.push(...formatRewardTrend(result.rewardTrend, trendSampleCount(result)));
|
|
12403
12426
|
}
|
|
12404
12427
|
lines.push(...formatFeedbackLoop(result.feedbackLoop));
|
|
12405
12428
|
return lines.join("\n");
|
|
12406
12429
|
}
|
|
12407
12430
|
function formatJsonOutput2(result) {
|
|
12431
|
+
const noRoutings = result.summary.totalRoutings === 0;
|
|
12432
|
+
const sampleCount = trendSampleCount(result);
|
|
12408
12433
|
return JSON.stringify(
|
|
12409
12434
|
{
|
|
12410
12435
|
...result,
|
|
12436
|
+
summary: {
|
|
12437
|
+
...result.summary,
|
|
12438
|
+
overallSuccessRate: noRoutings ? null : result.summary.overallSuccessRate,
|
|
12439
|
+
avgReward: noRoutings ? null : result.summary.avgReward
|
|
12440
|
+
},
|
|
12441
|
+
models: result.models.map(jsonModelStats),
|
|
12442
|
+
rewardTrend: sampleCount === 0 ? {
|
|
12443
|
+
current: null,
|
|
12444
|
+
previous: null,
|
|
12445
|
+
direction: "unmeasured",
|
|
12446
|
+
changePercent: null,
|
|
12447
|
+
sampleCount: 0,
|
|
12448
|
+
measurementStatus: "unmeasured"
|
|
12449
|
+
} : { ...result.rewardTrend, sampleCount, measurementStatus: "measured" },
|
|
12411
12450
|
...result.banditReconstruction === void 0 ? {} : {
|
|
12412
12451
|
banditStateDescription: formatBanditReconstruction(result.banditReconstruction).join(
|
|
12413
12452
|
" "
|
|
@@ -12418,6 +12457,22 @@ function formatJsonOutput2(result) {
|
|
|
12418
12457
|
2
|
|
12419
12458
|
);
|
|
12420
12459
|
}
|
|
12460
|
+
function trendSampleCount(result) {
|
|
12461
|
+
return result.rewardTrend.sampleCount ?? result.summary.totalRoutings;
|
|
12462
|
+
}
|
|
12463
|
+
function jsonModelStats(model) {
|
|
12464
|
+
const noRoutings = model.routingSelectionCount === 0;
|
|
12465
|
+
const noRewardSamples = model.pullCount === 0;
|
|
12466
|
+
return {
|
|
12467
|
+
...model,
|
|
12468
|
+
successRate: noRoutings ? null : model.successRate,
|
|
12469
|
+
selectionPercent: noRoutings ? null : model.selectionPercent,
|
|
12470
|
+
avgQuality: noRoutings ? null : model.avgQuality,
|
|
12471
|
+
avgLatencyMs: noRoutings ? null : model.avgLatencyMs,
|
|
12472
|
+
avgReward: noRewardSamples ? null : model.avgReward,
|
|
12473
|
+
cumulativeReward: noRewardSamples ? null : model.cumulativeReward
|
|
12474
|
+
};
|
|
12475
|
+
}
|
|
12421
12476
|
|
|
12422
12477
|
// src/cli/learning-metrics-command.ts
|
|
12423
12478
|
var logger15 = createLogger({ component: "learning-metrics" });
|
|
@@ -19222,7 +19277,7 @@ function startImprovementReviewScheduler(options) {
|
|
|
19222
19277
|
let running = false;
|
|
19223
19278
|
const runOnce = async () => {
|
|
19224
19279
|
try {
|
|
19225
|
-
const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-
|
|
19280
|
+
const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-ILGECXTE.js");
|
|
19226
19281
|
const input = ImprovementReviewInputSchema2.parse({ fileIssues });
|
|
19227
19282
|
const result = await runImprovementReview2(input, { logger: logger22 });
|
|
19228
19283
|
logger22.info("Scheduled improvement_review complete", {
|