nexus-agents 2.92.1 → 2.92.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-ZNR3ZVC6.js → chunk-3HVSXLPL.js} +3 -3
- package/dist/{chunk-G3CYK3WA.js → chunk-F47QKVPH.js} +4 -4
- package/dist/{chunk-4N54BTZU.js → chunk-UYOHV3EG.js} +30 -8
- package/dist/chunk-UYOHV3EG.js.map +1 -0
- package/dist/{chunk-74AO4RKT.js → chunk-XNBPE6WG.js} +2 -2
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +4 -4
- package/dist/{consensus-vote-B6W7YQ6K.js → consensus-vote-VSRNSZ5J.js} +4 -2
- package/dist/{consensus-vote-types-COAhHVIp.d.ts → consensus-vote-types-WGBFeT7y.d.ts} +6 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/{setup-command-AZAWBZOP.js → setup-command-BMELLUUX.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-4N54BTZU.js.map +0 -1
- /package/dist/{chunk-ZNR3ZVC6.js.map → chunk-3HVSXLPL.js.map} +0 -0
- /package/dist/{chunk-G3CYK3WA.js.map → chunk-F47QKVPH.js.map} +0 -0
- /package/dist/{chunk-74AO4RKT.js.map → chunk-XNBPE6WG.js.map} +0 -0
- /package/dist/{consensus-vote-B6W7YQ6K.js.map → consensus-vote-VSRNSZ5J.js.map} +0 -0
- /package/dist/{setup-command-AZAWBZOP.js.map → setup-command-BMELLUUX.js.map} +0 -0
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
} from "./chunk-CH7QIDHQ.js";
|
|
41
41
|
|
|
42
42
|
// src/version.ts
|
|
43
|
-
var VERSION = true ? "2.92.
|
|
43
|
+
var VERSION = true ? "2.92.2" : "dev";
|
|
44
44
|
|
|
45
45
|
// src/config/schemas-core.ts
|
|
46
46
|
import { z } from "zod";
|
|
@@ -2096,7 +2096,7 @@ async function runDoctorFix(result) {
|
|
|
2096
2096
|
writeLine2("\u2500".repeat(40));
|
|
2097
2097
|
let fixCount = 0;
|
|
2098
2098
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
2099
|
-
const { runSetup } = await import("./setup-command-
|
|
2099
|
+
const { runSetup } = await import("./setup-command-BMELLUUX.js");
|
|
2100
2100
|
const setupResult = runSetup({
|
|
2101
2101
|
skipMcp: true,
|
|
2102
2102
|
skipRules: true,
|
|
@@ -2208,4 +2208,4 @@ export {
|
|
|
2208
2208
|
startStdioServer,
|
|
2209
2209
|
closeServer
|
|
2210
2210
|
};
|
|
2211
|
-
//# sourceMappingURL=chunk-
|
|
2211
|
+
//# sourceMappingURL=chunk-3HVSXLPL.js.map
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
writeJobComplete,
|
|
43
43
|
writeJobFailed,
|
|
44
44
|
writeJobPending
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-UYOHV3EG.js";
|
|
46
46
|
import {
|
|
47
47
|
REGISTRY_PATH,
|
|
48
48
|
getProjectRoot,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
DEFAULT_TASK_TTL_MS,
|
|
85
85
|
DEFAULT_TOOL_RATE_LIMITS,
|
|
86
86
|
clampTaskTtl
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-3HVSXLPL.js";
|
|
88
88
|
import {
|
|
89
89
|
getAvailabilityCache,
|
|
90
90
|
resolveFallback
|
|
@@ -43548,7 +43548,7 @@ ${contextBlock}`;
|
|
|
43548
43548
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
43549
43549
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
43550
43550
|
try {
|
|
43551
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
43551
|
+
const { executeVoting } = await import("./consensus-vote-VSRNSZ5J.js");
|
|
43552
43552
|
const votingResult = await executeVoting(
|
|
43553
43553
|
{
|
|
43554
43554
|
proposal: plan.slice(0, 4e3),
|
|
@@ -51876,4 +51876,4 @@ export {
|
|
|
51876
51876
|
detectBackend,
|
|
51877
51877
|
createTaskTracker
|
|
51878
51878
|
};
|
|
51879
|
-
//# sourceMappingURL=chunk-
|
|
51879
|
+
//# sourceMappingURL=chunk-F47QKVPH.js.map
|
|
@@ -7990,6 +7990,9 @@ function buildResponse(input, result) {
|
|
|
7990
7990
|
if (input.threshold !== void 0) {
|
|
7991
7991
|
response.threshold = input.threshold;
|
|
7992
7992
|
}
|
|
7993
|
+
if (result.policyReason !== void 0) {
|
|
7994
|
+
response.policyReason = result.policyReason;
|
|
7995
|
+
}
|
|
7993
7996
|
if (result.strategy === "higher_order" && result.higherOrderResult) {
|
|
7994
7997
|
response.higherOrderMetadata = {
|
|
7995
7998
|
posteriorApproval: result.higherOrderResult.posteriorApproval,
|
|
@@ -8971,15 +8974,27 @@ function createEmptyConsensusResult(proposal, algorithm) {
|
|
|
8971
8974
|
durationMs: 0
|
|
8972
8975
|
};
|
|
8973
8976
|
}
|
|
8974
|
-
function createPolicyFailedResult(proposal, algorithm, reason) {
|
|
8977
|
+
function createPolicyFailedResult(proposal, algorithm, reason, votes) {
|
|
8975
8978
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
8979
|
+
const voteMap = /* @__PURE__ */ new Map();
|
|
8980
|
+
let approve = 0;
|
|
8981
|
+
let reject = 0;
|
|
8982
|
+
let abstain = 0;
|
|
8983
|
+
for (const v of votes) {
|
|
8984
|
+
if (v.source === "error") continue;
|
|
8985
|
+
voteMap.set(v.role, v.vote);
|
|
8986
|
+
if (v.vote.decision === "approve") approve++;
|
|
8987
|
+
else if (v.vote.decision === "reject") reject++;
|
|
8988
|
+
else abstain++;
|
|
8989
|
+
}
|
|
8990
|
+
const responding = approve + reject + abstain;
|
|
8976
8991
|
return {
|
|
8977
8992
|
proposalId: "error-policy-short-circuit",
|
|
8978
8993
|
proposal: { title: `MCP Consensus Vote \u2014 ${reason}`, description: proposal, algorithm },
|
|
8979
8994
|
outcome: "rejected",
|
|
8980
|
-
votes:
|
|
8981
|
-
voteCounts: { approve
|
|
8982
|
-
approvalPercentage: 0,
|
|
8995
|
+
votes: voteMap,
|
|
8996
|
+
voteCounts: { approve, reject, abstain, total: responding },
|
|
8997
|
+
approvalPercentage: responding > 0 ? approve / responding * 100 : 0,
|
|
8983
8998
|
quorumReached: false,
|
|
8984
8999
|
startedAt: now,
|
|
8985
9000
|
closedAt: now,
|
|
@@ -9134,11 +9149,14 @@ function buildPolicyShortCircuitResult(args) {
|
|
|
9134
9149
|
return {
|
|
9135
9150
|
proposal: args.input.proposal,
|
|
9136
9151
|
threshold: args.algorithm,
|
|
9137
|
-
result: createPolicyFailedResult(args.input.proposal, args.algorithm, args.reason),
|
|
9152
|
+
result: createPolicyFailedResult(args.input.proposal, args.algorithm, args.reason, args.votes),
|
|
9138
9153
|
votes: args.votes,
|
|
9139
9154
|
totalTimeMs,
|
|
9140
9155
|
simulateVotes: args.input.simulateVotes,
|
|
9141
|
-
strategy: args.strategy
|
|
9156
|
+
strategy: args.strategy,
|
|
9157
|
+
// #3124: surface WHY a high-approval result is still 'rejected' so callers
|
|
9158
|
+
// don't mistake a fail-closed policy short-circuit for a genuine rejection.
|
|
9159
|
+
policyReason: args.reason
|
|
9142
9160
|
};
|
|
9143
9161
|
}
|
|
9144
9162
|
async function maybeEscalateContrarian(input, outcome, logger11, opts) {
|
|
@@ -9433,7 +9451,10 @@ var CONSENSUS_VOTE_OUTPUT_SCHEMA = {
|
|
|
9433
9451
|
improvementOverBaseline: z12.number(),
|
|
9434
9452
|
downweightedAgents: z12.array(z12.string().max(100)).max(10),
|
|
9435
9453
|
reasoning: z12.string().max(2e3)
|
|
9436
|
-
}).optional()
|
|
9454
|
+
}).optional(),
|
|
9455
|
+
// #3124: explains a `rejected` decision that coexists with a high
|
|
9456
|
+
// approvalPercentage (an error-policy short-circuit, e.g. fail_closed).
|
|
9457
|
+
policyReason: z12.string().max(200).optional()
|
|
9437
9458
|
};
|
|
9438
9459
|
function registerConsensusVoteTool(server, deps) {
|
|
9439
9460
|
const logger11 = deps.logger ?? createLogger({ tool: "consensus_vote" });
|
|
@@ -9599,8 +9620,9 @@ export {
|
|
|
9599
9620
|
ConsensusVoteInputSchema,
|
|
9600
9621
|
warnIfSimulatedOutsideTests,
|
|
9601
9622
|
resetCorrelationTracker,
|
|
9623
|
+
createPolicyFailedResult,
|
|
9602
9624
|
executeVoting,
|
|
9603
9625
|
CONSENSUS_VOTE_OUTPUT_SCHEMA,
|
|
9604
9626
|
registerConsensusVoteTool
|
|
9605
9627
|
};
|
|
9606
|
-
//# sourceMappingURL=chunk-
|
|
9628
|
+
//# sourceMappingURL=chunk-UYOHV3EG.js.map
|