nexus-agents 4.33.2 → 4.34.0
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-DJK6AVEQ.js → chunk-L4HOCHPC.js} +6 -6
- package/dist/{chunk-HB44B3BY.js → chunk-MEB34WD2.js} +3 -3
- package/dist/{chunk-QK5ZVSEW.js → chunk-NJ64CT2S.js} +2 -2
- package/dist/{chunk-QK5ZVSEW.js.map → chunk-NJ64CT2S.js.map} +1 -1
- package/dist/{chunk-AXBQ5TZD.js → chunk-PQ467L7A.js} +2 -2
- package/dist/{chunk-AH73DVZ2.js → chunk-UNM2AHS6.js} +63 -18
- package/dist/chunk-UNM2AHS6.js.map +1 -0
- package/dist/chunk-V4II4GN4.js +7 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +7 -7
- package/dist/{consensus-vote-XRX3QXQJ.js → consensus-vote-E62RKNVK.js} +4 -4
- package/dist/{consensus-vote-types-D66OPHNc.d.ts → consensus-vote-types-Br1h5IMv.d.ts} +34 -2
- package/dist/{improvement-review-MIKGBXMO.js → improvement-review-6GHO7J26.js} +4 -4
- package/dist/index.d.ts +16 -3
- package/dist/index.js +7 -7
- package/dist/model-registry.generated.json +1402 -1402
- package/dist/{setup-data-dir-JGQNIML7.js → setup-data-dir-M3WXYKIN.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-AH73DVZ2.js.map +0 -1
- package/dist/chunk-RESSWGLL.js +0 -7
- /package/dist/{chunk-DJK6AVEQ.js.map → chunk-L4HOCHPC.js.map} +0 -0
- /package/dist/{chunk-HB44B3BY.js.map → chunk-MEB34WD2.js.map} +0 -0
- /package/dist/{chunk-AXBQ5TZD.js.map → chunk-PQ467L7A.js.map} +0 -0
- /package/dist/{chunk-RESSWGLL.js.map → chunk-V4II4GN4.js.map} +0 -0
- /package/dist/{consensus-vote-XRX3QXQJ.js.map → consensus-vote-E62RKNVK.js.map} +0 -0
- /package/dist/{improvement-review-MIKGBXMO.js.map → improvement-review-6GHO7J26.js.map} +0 -0
- /package/dist/{setup-data-dir-JGQNIML7.js.map → setup-data-dir-M3WXYKIN.js.map} +0 -0
package/dist/cli.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { C as CliNameLiteral,
|
|
2
|
+
import { C as CliNameLiteral, L as VoteThreshold, E as ErrorPolicy, N as NoQuorumPolicy } from './consensus-vote-types-Br1h5IMv.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
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-L4HOCHPC.js";
|
|
156
156
|
import "./chunk-TKEO2CET.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-MEB34WD2.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-UNM2AHS6.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-PQ467L7A.js";
|
|
230
230
|
import {
|
|
231
231
|
createDefaultPolicyFirewall,
|
|
232
232
|
setGlobalPolicyFirewall,
|
|
233
233
|
stagePolicyFirewallForRollout
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-NJ64CT2S.js";
|
|
235
235
|
import {
|
|
236
236
|
VERSION
|
|
237
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-V4II4GN4.js";
|
|
238
238
|
import "./chunk-3U6L7DBT.js";
|
|
239
239
|
import {
|
|
240
240
|
createUnifiedRegistry,
|
|
@@ -19553,7 +19553,7 @@ function startImprovementReviewScheduler(options) {
|
|
|
19553
19553
|
let running = false;
|
|
19554
19554
|
const runOnce = async () => {
|
|
19555
19555
|
try {
|
|
19556
|
-
const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-
|
|
19556
|
+
const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-6GHO7J26.js");
|
|
19557
19557
|
const input = ImprovementReviewInputSchema2.parse({ fileIssues });
|
|
19558
19558
|
const result = await runImprovementReview2(input, { logger: logger22 });
|
|
19559
19559
|
logger22.info("Scheduled improvement_review complete", {
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
resetCorrelationTracker,
|
|
12
12
|
runConsensusForGoal,
|
|
13
13
|
unwrapVoteOrThrow
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UNM2AHS6.js";
|
|
15
15
|
import "./chunk-7W7CSKJY.js";
|
|
16
16
|
import "./chunk-OQB3XC5O.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-NJ64CT2S.js";
|
|
18
|
+
import "./chunk-V4II4GN4.js";
|
|
19
19
|
import "./chunk-3U6L7DBT.js";
|
|
20
20
|
import "./chunk-NAGBHP3R.js";
|
|
21
21
|
import "./chunk-EICIX73A.js";
|
|
@@ -50,4 +50,4 @@ export {
|
|
|
50
50
|
runConsensusForGoal,
|
|
51
51
|
unwrapVoteOrThrow
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=consensus-vote-
|
|
53
|
+
//# sourceMappingURL=consensus-vote-E62RKNVK.js.map
|
|
@@ -436,6 +436,26 @@ interface VoteCounts {
|
|
|
436
436
|
/**
|
|
437
437
|
* Weighted vote counts for proof-of-learning.
|
|
438
438
|
*/
|
|
439
|
+
/**
|
|
440
|
+
* What a weighted tally's weights were actually derived from (#5117).
|
|
441
|
+
*
|
|
442
|
+
* `proof_of_learning` reported `"X% weighted approval"` and a populated
|
|
443
|
+
* `weightedCounts` for tallies in which every weight was structurally `1.0` —
|
|
444
|
+
* because the performance map feeding them has never had a writer
|
|
445
|
+
* (`updateAgentPerformance` has no non-test caller). A reader was invited to
|
|
446
|
+
* believe voter track record influenced the outcome. It did not, and could not.
|
|
447
|
+
*
|
|
448
|
+
* Deliberately NOT derived by checking whether any weight differs from `1.0`.
|
|
449
|
+
* A voter with a perfect record legitimately weighs `1.0`, so numeric equality
|
|
450
|
+
* cannot tell "measured, and they were reliable" from "never measured" — that
|
|
451
|
+
* test would be its own can't-distinguish defect. The basis is derived from
|
|
452
|
+
* PROVENANCE: whether a performance record existed for each voter.
|
|
453
|
+
*
|
|
454
|
+
* `partial` is a real state, not a rounding of the other two. Some voters
|
|
455
|
+
* having history while others do not must not be reported as fully
|
|
456
|
+
* performance-weighted.
|
|
457
|
+
*/
|
|
458
|
+
type WeightBasis = 'performance' | 'partial' | 'unweighted';
|
|
439
459
|
interface WeightedVoteCounts {
|
|
440
460
|
approve: number;
|
|
441
461
|
reject: number;
|
|
@@ -452,6 +472,15 @@ interface ConsensusResult {
|
|
|
452
472
|
votes: Map<string, Vote>;
|
|
453
473
|
voteCounts: VoteCounts;
|
|
454
474
|
weightedCounts?: WeightedVoteCounts | undefined;
|
|
475
|
+
/**
|
|
476
|
+
* What the weights in `weightedCounts` were derived from (#5117).
|
|
477
|
+
*
|
|
478
|
+
* Carried on the RESULT, not just computed inside the strategy, because the
|
|
479
|
+
* result is what a reviewer reads. A tally reported as weighted when every
|
|
480
|
+
* weight was structurally 1.0 invites the reader to believe voter track
|
|
481
|
+
* record moved the number. Absent for strategies that do not weight at all.
|
|
482
|
+
*/
|
|
483
|
+
weightBasis?: WeightBasis | undefined;
|
|
455
484
|
approvalPercentage: number;
|
|
456
485
|
quorumReached: boolean;
|
|
457
486
|
startedAt: string;
|
|
@@ -801,7 +830,10 @@ interface AgentVoteResult {
|
|
|
801
830
|
* - `simple_majority`: Standard majority voting (>50%)
|
|
802
831
|
* - `supermajority`: Requires >=67% approval
|
|
803
832
|
* - `unanimous`: Requires 100% approval
|
|
804
|
-
* - `proof_of_learning`: Weighted by agent performance (Issue #103)
|
|
833
|
+
* - `proof_of_learning`: Weighted by agent performance (Issue #103). NOTE: weights come from
|
|
834
|
+
* recorded voter history, and nothing writes that history today (#5234), so in practice this
|
|
835
|
+
* currently behaves as simple_majority. The outcome reports `weightBasis: 'unweighted'` when
|
|
836
|
+
* that is the case (#5117) rather than claiming a weighting that did not happen.
|
|
805
837
|
* - `higher_order`: Bayesian-optimal with correlation awareness (Issue #514)
|
|
806
838
|
* - `opinion_wise`: Alias for higher_order (Issue #333)
|
|
807
839
|
*/
|
|
@@ -1049,4 +1081,4 @@ interface ConsensusVoteResponse {
|
|
|
1049
1081
|
voteRecordNote?: string;
|
|
1050
1082
|
}
|
|
1051
1083
|
|
|
1052
|
-
export { type AgentPerformance as A,
|
|
1084
|
+
export { type AgentPerformance as A, ProposalStatusSchema as B, type CliNameLiteral as C, type DecisionCostSummary as D, type ErrorPolicy as E, type RejectionCategory as F, RejectionCategorySchema as G, VOTING_THRESHOLDS as H, type InputModality as I, type VoteDecisionStatus as J, VoteSchema as K, type VoteThreshold as L, type ModelId as M, type NoQuorumPolicy as N, type OutputModality as O, type Pricing as P, type QualityScores as Q, REJECTION_CATEGORIES as R, type SpecialFeature as S, type ToolCapability as T, type Vote as V, type WeightedVoteCounts as W, type VoteDecision as a, type VoterRole as b, type ConsensusAlgorithm as c, type VoteCounts as d, type WeightBasis as e, type ProposalState as f, type ProposalId as g, type ConsensusEngineConfig as h, type ConsensusResult as i, type ProposalStatus as j, type Proposal as k, type ConsensusMetrics as l, type VoterExpansionCallback as m, type AgentVoteResult as n, type VotingStrategy as o, AgentPerformanceSchema as p, type AgentVoteSummary as q, ConsensusAlgorithmSchema as r, ConsensusEngineConfigSchema as s, ConsensusMetricsSchema as t, ConsensusResultSchema as u, type ConsensusVoteInput as v, ConsensusVoteInputSchema as w, type ConsensusVoteResponse as x, DEFAULT_CONSENSUS_CONFIG as y, ProposalSchema as z };
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
loadSelfEvalSignals,
|
|
12
12
|
registerImprovementReviewTool,
|
|
13
13
|
runImprovementReview
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-PQ467L7A.js";
|
|
15
|
+
import "./chunk-NJ64CT2S.js";
|
|
16
|
+
import "./chunk-V4II4GN4.js";
|
|
17
17
|
import "./chunk-3U6L7DBT.js";
|
|
18
18
|
import "./chunk-37H55KW3.js";
|
|
19
19
|
import "./chunk-GBHJ37V3.js";
|
|
@@ -33,4 +33,4 @@ export {
|
|
|
33
33
|
registerImprovementReviewTool,
|
|
34
34
|
runImprovementReview
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=improvement-review-
|
|
36
|
+
//# sourceMappingURL=improvement-review-6GHO7J26.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ZodError, z, ZodType, ZodSafeParseResult } from 'zod';
|
|
2
|
-
import { C as CliNameLiteral, I as InputModality, O as OutputModality, T as ToolCapability, S as SpecialFeature, P as Pricing, Q as QualityScores, M as ModelId, V as Vote, a as VoteDecision$1, b as VoterRole, D as DecisionCostSummary, c as ConsensusAlgorithm, d as VoteCounts, W as WeightedVoteCounts, A as AgentPerformance,
|
|
3
|
-
export {
|
|
2
|
+
import { C as CliNameLiteral, I as InputModality, O as OutputModality, T as ToolCapability, S as SpecialFeature, P as Pricing, Q as QualityScores, M as ModelId, V as Vote, a as VoteDecision$1, b as VoterRole, D as DecisionCostSummary, c as ConsensusAlgorithm, d as VoteCounts, W as WeightedVoteCounts, e as WeightBasis, A as AgentPerformance, f as ProposalState, g as ProposalId, h as ConsensusEngineConfig, i as ConsensusResult, j as ProposalStatus, k as Proposal, l as ConsensusMetrics, m as VoterExpansionCallback, n as AgentVoteResult, o as VotingStrategy, E as ErrorPolicy } from './consensus-vote-types-Br1h5IMv.js';
|
|
3
|
+
export { p as AgentPerformanceSchema, q as AgentVoteSummary, r as ConsensusAlgorithmSchema, s as ConsensusEngineConfigSchema, t as ConsensusMetricsSchema, u as ConsensusResultSchema, v as ConsensusVoteInput, w as ConsensusVoteInputSchema, x as ConsensusVoteResponse, y as DEFAULT_CONSENSUS_CONFIG, z as ProposalSchema, B as ProposalStatusSchema, R as REJECTION_CATEGORIES, F as RejectionCategory, G as RejectionCategorySchema, H as VOTING_THRESHOLDS, J as VoteDecisionStatus, K as VoteSchema } from './consensus-vote-types-Br1h5IMv.js';
|
|
4
4
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
5
5
|
import { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
|
|
6
6
|
|
|
@@ -32324,6 +32324,13 @@ interface VotingOutcome {
|
|
|
32324
32324
|
approvalPercentage: number;
|
|
32325
32325
|
voteCounts: VoteCounts;
|
|
32326
32326
|
weightedCounts?: WeightedVoteCounts;
|
|
32327
|
+
/**
|
|
32328
|
+
* Present on weighted strategies only. Absent means the strategy does not
|
|
32329
|
+
* weight at all (simple majority, supermajority, unanimous) — which is
|
|
32330
|
+
* different from `'unweighted'`, meaning a weighted strategy ran with nothing
|
|
32331
|
+
* to weight by.
|
|
32332
|
+
*/
|
|
32333
|
+
weightBasis?: WeightBasis;
|
|
32327
32334
|
reason: string;
|
|
32328
32335
|
}
|
|
32329
32336
|
/**
|
|
@@ -32372,7 +32379,13 @@ declare class ProofOfLearningStrategy extends BaseVotingStrategy {
|
|
|
32372
32379
|
}
|
|
32373
32380
|
/**
|
|
32374
32381
|
* Calculate vote weight for an agent based on their performance history.
|
|
32375
|
-
*
|
|
32382
|
+
*
|
|
32383
|
+
* Weight ranges from 0.5 (never correct) to 1.0 (perfect track record). An
|
|
32384
|
+
* agent with NO history returns 1.0, not 0.5 — the doc used to say "0.5 (no
|
|
32385
|
+
* history)", which the code has never done (#5117). The distinction matters:
|
|
32386
|
+
* a 1.0 default is indistinguishable from a perfect record by value alone,
|
|
32387
|
+
* which is why callers must not infer "was this measured?" from the number.
|
|
32388
|
+
* `deriveWeightBasis` answers that from provenance instead.
|
|
32376
32389
|
*/
|
|
32377
32390
|
declare function calculateVoteWeight(performance: AgentPerformance | undefined): number;
|
|
32378
32391
|
/**
|
package/dist/index.js
CHANGED
|
@@ -553,7 +553,7 @@ import {
|
|
|
553
553
|
withLogging,
|
|
554
554
|
withRetry,
|
|
555
555
|
withRetryWrapper
|
|
556
|
-
} from "./chunk-
|
|
556
|
+
} from "./chunk-L4HOCHPC.js";
|
|
557
557
|
import {
|
|
558
558
|
FALLBACK_SCANNER_DATA,
|
|
559
559
|
buildPlanFromAnalysis,
|
|
@@ -574,7 +574,7 @@ import {
|
|
|
574
574
|
connectTransport,
|
|
575
575
|
createServer,
|
|
576
576
|
startStdioServer
|
|
577
|
-
} from "./chunk-
|
|
577
|
+
} from "./chunk-MEB34WD2.js";
|
|
578
578
|
import {
|
|
579
579
|
OPENAI_MODELS,
|
|
580
580
|
OPENAI_MODEL_ALIASES,
|
|
@@ -632,7 +632,7 @@ import {
|
|
|
632
632
|
generateProposalId,
|
|
633
633
|
parseAgentPairKey,
|
|
634
634
|
registerConsensusVoteTool
|
|
635
|
-
} from "./chunk-
|
|
635
|
+
} from "./chunk-UNM2AHS6.js";
|
|
636
636
|
import "./chunk-7W7CSKJY.js";
|
|
637
637
|
import {
|
|
638
638
|
allOf
|
|
@@ -683,7 +683,7 @@ import {
|
|
|
683
683
|
import {
|
|
684
684
|
ImprovementReviewInputSchema,
|
|
685
685
|
registerImprovementReviewTool
|
|
686
|
-
} from "./chunk-
|
|
686
|
+
} from "./chunk-PQ467L7A.js";
|
|
687
687
|
import {
|
|
688
688
|
AgentPerformanceSchema,
|
|
689
689
|
ConsensusAlgorithmSchema,
|
|
@@ -719,10 +719,10 @@ import {
|
|
|
719
719
|
toolSuccess,
|
|
720
720
|
toolSuccessStructured,
|
|
721
721
|
validateToolInput
|
|
722
|
-
} from "./chunk-
|
|
722
|
+
} from "./chunk-NJ64CT2S.js";
|
|
723
723
|
import {
|
|
724
724
|
VERSION
|
|
725
|
-
} from "./chunk-
|
|
725
|
+
} from "./chunk-V4II4GN4.js";
|
|
726
726
|
import {
|
|
727
727
|
AuditTrail,
|
|
728
728
|
MAX_STRIPPED_ELEMENTS_PER_EVENT,
|
|
@@ -4755,7 +4755,7 @@ function buildVotingInput(plan, config) {
|
|
|
4755
4755
|
}
|
|
4756
4756
|
async function executeSingleVote(plan, config, log) {
|
|
4757
4757
|
try {
|
|
4758
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
4758
|
+
const { executeVoting } = await import("./consensus-vote-E62RKNVK.js");
|
|
4759
4759
|
const input = buildVotingInput(plan, config);
|
|
4760
4760
|
const result = await executeVoting(input, log);
|
|
4761
4761
|
return parseVotingResult(result);
|