nexus-agents 4.37.2 → 5.0.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-7A63AX2A.js +7 -0
- package/dist/{chunk-3BL6HLHW.js.map → chunk-7A63AX2A.js.map} +1 -1
- package/dist/{chunk-WCQD5WJX.js → chunk-AYJNW7JN.js} +3 -3
- package/dist/{chunk-DLWXTCLB.js → chunk-BZRUZSJ6.js} +2 -2
- package/dist/{chunk-BL2RCXGC.js → chunk-DDUZI6OD.js} +2 -2
- package/dist/{chunk-DIMPT3NS.js → chunk-GQXDNAMB.js} +2 -2
- package/dist/{chunk-EZVDJJ4T.js → chunk-LFAIB5MG.js} +33 -21
- package/dist/{chunk-EZVDJJ4T.js.map → chunk-LFAIB5MG.js.map} +1 -1
- package/dist/cli.js +21 -10
- package/dist/cli.js.map +1 -1
- package/dist/{consensus-vote-VNLVKZZK.js → consensus-vote-X2EF47XM.js} +4 -4
- package/dist/{improvement-review-RVR2XRU2.js → improvement-review-VBLDRXFP.js} +4 -4
- package/dist/index.d.ts +63 -20
- package/dist/index.js +7 -7
- package/dist/{setup-data-dir-TCVUSEDW.js → setup-data-dir-RQCYL3D3.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-3BL6HLHW.js +0 -7
- /package/dist/{chunk-WCQD5WJX.js.map → chunk-AYJNW7JN.js.map} +0 -0
- /package/dist/{chunk-DLWXTCLB.js.map → chunk-BZRUZSJ6.js.map} +0 -0
- /package/dist/{chunk-BL2RCXGC.js.map → chunk-DDUZI6OD.js.map} +0 -0
- /package/dist/{chunk-DIMPT3NS.js.map → chunk-GQXDNAMB.js.map} +0 -0
- /package/dist/{consensus-vote-VNLVKZZK.js.map → consensus-vote-X2EF47XM.js.map} +0 -0
- /package/dist/{improvement-review-RVR2XRU2.js.map → improvement-review-VBLDRXFP.js.map} +0 -0
- /package/dist/{setup-data-dir-TCVUSEDW.js.map → setup-data-dir-RQCYL3D3.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["/**\n * nexus-agents - Version constant\n *\n * Injected at build time via tsup define from package.json.\n * Do NOT edit this value manually — it is replaced during build.\n */\n\ndeclare const __NEXUS_VERSION__: string;\n\nexport const VERSION: string = typeof __NEXUS_VERSION__ !== 'undefined' ? __NEXUS_VERSION__ : 'dev';\n"],"mappings":";AASO,IAAM,UAAkB,OAA2C,
|
|
1
|
+
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["/**\n * nexus-agents - Version constant\n *\n * Injected at build time via tsup define from package.json.\n * Do NOT edit this value manually — it is replaced during build.\n */\n\ndeclare const __NEXUS_VERSION__: string;\n\nexport const VERSION: string = typeof __NEXUS_VERSION__ !== 'undefined' ? __NEXUS_VERSION__ : 'dev';\n"],"mappings":";AASO,IAAM,UAAkB,OAA2C,UAAoB;","names":[]}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-OQB3XC5O.js";
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7A63AX2A.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-RQCYL3D3.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-AYJNW7JN.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7A63AX2A.js";
|
|
4
4
|
import {
|
|
5
5
|
emitClawGuardViolation
|
|
6
6
|
} from "./chunk-ZSNWRX2B.js";
|
|
@@ -2130,4 +2130,4 @@ export {
|
|
|
2130
2130
|
VOTING_THRESHOLDS,
|
|
2131
2131
|
ConsensusMetricsSchema
|
|
2132
2132
|
};
|
|
2133
|
-
//# sourceMappingURL=chunk-
|
|
2133
|
+
//# sourceMappingURL=chunk-BZRUZSJ6.js.map
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
toolSuccessStructured,
|
|
24
24
|
withProgressHeartbeat,
|
|
25
25
|
wrapToolWithTimeout
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-BZRUZSJ6.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-DDUZI6OD.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
toolStructuredError,
|
|
8
8
|
toolSuccessStructured,
|
|
9
9
|
wrapToolWithTimeout
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BZRUZSJ6.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-GQXDNAMB.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-AYJNW7JN.js";
|
|
25
25
|
import {
|
|
26
26
|
executeExpert
|
|
27
27
|
} from "./chunk-WTQEMR7D.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
simulationDeniedResult,
|
|
48
48
|
toJobSummary,
|
|
49
49
|
writeJobCancelled
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-DDUZI6OD.js";
|
|
51
51
|
import {
|
|
52
52
|
allOf
|
|
53
53
|
} from "./chunk-OQB3XC5O.js";
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
} from "./chunk-C2LEM7RD.js";
|
|
65
65
|
import {
|
|
66
66
|
withPrerequisite
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-GQXDNAMB.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-BZRUZSJ6.js";
|
|
92
92
|
import {
|
|
93
93
|
createAuditTrail,
|
|
94
94
|
createGraphAuditBridge,
|
|
@@ -27173,11 +27173,11 @@ function calculateDistributionStats(values) {
|
|
|
27173
27173
|
function calculateRegret(decisions) {
|
|
27174
27174
|
if (decisions.length === 0) {
|
|
27175
27175
|
return {
|
|
27176
|
-
cumulativeRegret:
|
|
27177
|
-
avgRegret:
|
|
27176
|
+
cumulativeRegret: null,
|
|
27177
|
+
avgRegret: null,
|
|
27178
27178
|
totalDecisions: 0,
|
|
27179
27179
|
suboptimalDecisions: 0,
|
|
27180
|
-
optimalRate:
|
|
27180
|
+
optimalRate: null,
|
|
27181
27181
|
regretPerModel: {}
|
|
27182
27182
|
};
|
|
27183
27183
|
}
|
|
@@ -27319,12 +27319,15 @@ function renderTaskTypePerformance(taskTypes) {
|
|
|
27319
27319
|
function renderLearningProgress2(progress, options) {
|
|
27320
27320
|
const lines = ["Learning Progress:"];
|
|
27321
27321
|
lines.push("-".repeat(60));
|
|
27322
|
-
const
|
|
27323
|
-
|
|
27324
|
-
lines.push(
|
|
27325
|
-
lines.push(
|
|
27326
|
-
|
|
27327
|
-
|
|
27322
|
+
const pct = (label, value, barMax) => value === null ? `${label}: unmeasured (nothing recorded)` : `${label}: ${renderProgressBar(value, barMax)} ${(value * 100).toFixed(1)}%`;
|
|
27323
|
+
lines.push(pct("Exploration Rate", progress.explorationRate, 0.3));
|
|
27324
|
+
lines.push(pct("Optimal Decision Rate", progress.optimalRate, 1));
|
|
27325
|
+
lines.push(
|
|
27326
|
+
progress.cumulativeRegret === null ? "Cumulative Regret: unmeasured (no comparable decision)" : `Cumulative Regret: ${progress.cumulativeRegret.toFixed(2)}`
|
|
27327
|
+
);
|
|
27328
|
+
lines.push(
|
|
27329
|
+
progress.convergenceScore === null ? "Convergence Score: unmeasured (no feature weights recorded)" : `Convergence Score: ${(progress.convergenceScore * 100).toFixed(0)}%`
|
|
27330
|
+
);
|
|
27328
27331
|
if (options.showFeatureImportance === true && progress.featureImportance.length > 0) {
|
|
27329
27332
|
lines.push("");
|
|
27330
27333
|
lines.push("Top Features:");
|
|
@@ -27338,10 +27341,10 @@ function renderLearningProgress2(progress, options) {
|
|
|
27338
27341
|
function renderHealthIndicators(health) {
|
|
27339
27342
|
const lines = ["Health Indicators:"];
|
|
27340
27343
|
lines.push("-".repeat(60));
|
|
27341
|
-
const check = (ok2) => ok2 ? "\u2713" : "\u2717";
|
|
27344
|
+
const check = (ok2) => ok2 === null ? "?" : ok2 ? "\u2713" : "\u2717";
|
|
27342
27345
|
lines.push(`${check(health.hasMinimumData)} Minimum Data`);
|
|
27343
|
-
lines.push(`${check(health.isLearning)} Learning Progress`);
|
|
27344
|
-
lines.push(`${check(health.healthyExploration)} Healthy Exploration`);
|
|
27346
|
+
lines.push(`${check(health.isLearning)} Learning Progress${health.isLearning === null ? " (unmeasured)" : ""}`);
|
|
27347
|
+
lines.push(`${check(health.healthyExploration)} Healthy Exploration${health.healthyExploration === null ? " (unmeasured)" : ""}`);
|
|
27345
27348
|
lines.push(`${check(health.noUnderperformers)} No Underperformers`);
|
|
27346
27349
|
lines.push("");
|
|
27347
27350
|
lines.push(
|
|
@@ -27431,10 +27434,10 @@ function calculateTaskTypePerformance(taskType, outcomes, minSampleSize) {
|
|
|
27431
27434
|
}
|
|
27432
27435
|
function calculateLearningProgress(outcomes, explorationHistory, featureWeights) {
|
|
27433
27436
|
const recentExploration = explorationHistory.slice(-10);
|
|
27434
|
-
const explorationRate = recentExploration.length > 0 ? recentExploration.reduce((sum, e) => sum + e.rate, 0) / recentExploration.length :
|
|
27437
|
+
const explorationRate = recentExploration.length > 0 ? recentExploration.reduce((sum, e) => sum + e.rate, 0) / recentExploration.length : null;
|
|
27435
27438
|
const olderExploration = explorationHistory.slice(-20, -10);
|
|
27436
27439
|
const olderAvg = olderExploration.length > 0 ? olderExploration.reduce((sum, e) => sum + e.rate, 0) / olderExploration.length : explorationRate;
|
|
27437
|
-
const explorationRateTrend = explorationRate - olderAvg;
|
|
27440
|
+
const explorationRateTrend = explorationRate === null || olderAvg === null ? 0 : explorationRate - olderAvg;
|
|
27438
27441
|
const comparableOutcomes = outcomes.filter((o) => o.allModelRewards !== void 0).map((o) => ({
|
|
27439
27442
|
chosenModel: o.model,
|
|
27440
27443
|
actualReward: o.reward,
|
|
@@ -27458,7 +27461,7 @@ function calculateLearningProgress(outcomes, explorationHistory, featureWeights)
|
|
|
27458
27461
|
}
|
|
27459
27462
|
function calculateConvergenceScore(featureWeights) {
|
|
27460
27463
|
if (Object.keys(featureWeights).length === 0) {
|
|
27461
|
-
return
|
|
27464
|
+
return null;
|
|
27462
27465
|
}
|
|
27463
27466
|
const variances = [];
|
|
27464
27467
|
for (const weights of Object.values(featureWeights)) {
|
|
@@ -27478,6 +27481,7 @@ function calculateAvgReward(outcomes) {
|
|
|
27478
27481
|
}
|
|
27479
27482
|
function computeHealthScore(hasMinimumData, isLearning, healthyExploration, noUnderperformers) {
|
|
27480
27483
|
if (!hasMinimumData) return null;
|
|
27484
|
+
if (isLearning === null || healthyExploration === null) return null;
|
|
27481
27485
|
const scores = [
|
|
27482
27486
|
1,
|
|
27483
27487
|
// hasMinimumData, established above
|
|
@@ -27638,6 +27642,10 @@ var ValidationDashboard = class {
|
|
|
27638
27642
|
};
|
|
27639
27643
|
}
|
|
27640
27644
|
checkLearningProgress(progress, outcomeCount, warnings) {
|
|
27645
|
+
if (progress.avgRegret === null || progress.optimalRate === null) {
|
|
27646
|
+
warnings.push("Learning progress unmeasured: no comparable routing decisions recorded");
|
|
27647
|
+
return null;
|
|
27648
|
+
}
|
|
27641
27649
|
const isLearning = progress.avgRegret < MAX_ACCEPTABLE_REGRET || progress.optimalRate > MIN_OPTIMAL_RATE;
|
|
27642
27650
|
if (!isLearning && outcomeCount >= MIN_OUTCOMES_FOR_HEALTH) {
|
|
27643
27651
|
warnings.push("Learning not progressing: regret remains high");
|
|
@@ -27645,6 +27653,10 @@ var ValidationDashboard = class {
|
|
|
27645
27653
|
return isLearning;
|
|
27646
27654
|
}
|
|
27647
27655
|
checkExplorationHealth(progress, warnings) {
|
|
27656
|
+
if (progress.explorationRate === null) {
|
|
27657
|
+
warnings.push("Exploration health unmeasured: no exploration rate recorded");
|
|
27658
|
+
return null;
|
|
27659
|
+
}
|
|
27648
27660
|
const healthyExploration = progress.explorationRate >= 0.1 && progress.explorationRate <= 0.2;
|
|
27649
27661
|
if (!healthyExploration && this.explorationHistory.length > 10) {
|
|
27650
27662
|
const pct = (progress.explorationRate * 100).toFixed(1);
|
|
@@ -47305,7 +47317,7 @@ ${contextBlock}`;
|
|
|
47305
47317
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
47306
47318
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
47307
47319
|
try {
|
|
47308
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47320
|
+
const { executeVoting } = await import("./consensus-vote-X2EF47XM.js");
|
|
47309
47321
|
const votingResult = await executeVoting(
|
|
47310
47322
|
{
|
|
47311
47323
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -55941,4 +55953,4 @@ export {
|
|
|
55941
55953
|
shutdownFeedbackSubscriber,
|
|
55942
55954
|
createEventBusBridge
|
|
55943
55955
|
};
|
|
55944
|
-
//# sourceMappingURL=chunk-
|
|
55956
|
+
//# sourceMappingURL=chunk-LFAIB5MG.js.map
|