nexus-agents 8.24.1 → 8.24.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-6CZ62UGB.js → chunk-4DDARPJT.js} +3 -3
- package/dist/{chunk-ZRR5GL5P.js → chunk-CKTGOSEL.js} +37 -19
- package/dist/{chunk-ZRR5GL5P.js.map → chunk-CKTGOSEL.js.map} +1 -1
- package/dist/{chunk-7EMTQUFH.js → chunk-I4LNM23C.js} +3 -3
- package/dist/{chunk-6OLJGAHD.js → chunk-O2EJO2N5.js} +2 -2
- package/dist/{chunk-QWGLAGBX.js → chunk-WGWKS6KS.js} +2 -2
- package/dist/{chunk-FNSW2YQO.js → chunk-YA3ULAKB.js} +2 -2
- package/dist/cli.js +7 -7
- package/dist/{consensus-vote-NANVCVZJ.js → consensus-vote-UYC4OKHJ.js} +4 -4
- package/dist/{improvement-review-5P66EY63.js → improvement-review-DZA7XQCT.js} +4 -4
- package/dist/index.js +6 -6
- package/dist/{setup-data-dir-Q3DEAHF7.js → setup-data-dir-5XI7DMHS.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-6CZ62UGB.js.map → chunk-4DDARPJT.js.map} +0 -0
- /package/dist/{chunk-7EMTQUFH.js.map → chunk-I4LNM23C.js.map} +0 -0
- /package/dist/{chunk-6OLJGAHD.js.map → chunk-O2EJO2N5.js.map} +0 -0
- /package/dist/{chunk-QWGLAGBX.js.map → chunk-WGWKS6KS.js.map} +0 -0
- /package/dist/{chunk-FNSW2YQO.js.map → chunk-YA3ULAKB.js.map} +0 -0
- /package/dist/{consensus-vote-NANVCVZJ.js.map → consensus-vote-UYC4OKHJ.js.map} +0 -0
- /package/dist/{improvement-review-5P66EY63.js.map → improvement-review-DZA7XQCT.js.map} +0 -0
- /package/dist/{setup-data-dir-Q3DEAHF7.js.map → setup-data-dir-5XI7DMHS.js.map} +0 -0
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
toolSuccessStructured,
|
|
24
24
|
withProgressHeartbeat,
|
|
25
25
|
wrapToolWithTimeout
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-YA3ULAKB.js";
|
|
27
27
|
import {
|
|
28
28
|
VERSION
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-WGWKS6KS.js";
|
|
30
30
|
import {
|
|
31
31
|
assessPanelIndependence,
|
|
32
32
|
countDistinctModels,
|
|
@@ -7682,4 +7682,4 @@ export {
|
|
|
7682
7682
|
CONSENSUS_VOTE_TOOL_SCHEMA,
|
|
7683
7683
|
registerConsensusVoteTool
|
|
7684
7684
|
};
|
|
7685
|
-
//# sourceMappingURL=chunk-
|
|
7685
|
+
//# sourceMappingURL=chunk-4DDARPJT.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-I4LNM23C.js";
|
|
25
25
|
import {
|
|
26
26
|
executeExpert
|
|
27
27
|
} from "./chunk-CN3VAMQD.js";
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
toJobSummary,
|
|
56
56
|
updateStage,
|
|
57
57
|
writeJobCancelled
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-4DDARPJT.js";
|
|
59
59
|
import {
|
|
60
60
|
allOf
|
|
61
61
|
} from "./chunk-OQB3XC5O.js";
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
} from "./chunk-OYTRYITB.js";
|
|
75
75
|
import {
|
|
76
76
|
withPrerequisite
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-O2EJO2N5.js";
|
|
78
78
|
import {
|
|
79
79
|
NOOP_NOTIFIER,
|
|
80
80
|
RateLimiter,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
withAuditTrail,
|
|
100
100
|
withProgressHeartbeat,
|
|
101
101
|
wrapToolWithTimeout
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-YA3ULAKB.js";
|
|
103
103
|
import {
|
|
104
104
|
createAuditTrail,
|
|
105
105
|
createGraphAuditBridge,
|
|
@@ -45665,7 +45665,7 @@ function buildVotingInput(plan, config) {
|
|
|
45665
45665
|
}
|
|
45666
45666
|
async function executeSingleVote(plan, config, log) {
|
|
45667
45667
|
try {
|
|
45668
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
45668
|
+
const { executeVoting } = await import("./consensus-vote-UYC4OKHJ.js");
|
|
45669
45669
|
const input = buildVotingInput(plan, config);
|
|
45670
45670
|
const result = await executeVoting(input, log);
|
|
45671
45671
|
return parseVotingResult(result);
|
|
@@ -47437,7 +47437,7 @@ ${contextBlock}`;
|
|
|
47437
47437
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
47438
47438
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
47439
47439
|
try {
|
|
47440
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47440
|
+
const { executeVoting } = await import("./consensus-vote-UYC4OKHJ.js");
|
|
47441
47441
|
const votingResult = await executeVoting(
|
|
47442
47442
|
{
|
|
47443
47443
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -50225,6 +50225,24 @@ function createAuditLogOutcomeSink(logger56) {
|
|
|
50225
50225
|
function errorMessage(err2) {
|
|
50226
50226
|
return err2 instanceof Error ? err2.message : String(err2);
|
|
50227
50227
|
}
|
|
50228
|
+
function classifyEngineResult(result) {
|
|
50229
|
+
if (typeof result !== "object" || result === null) {
|
|
50230
|
+
return { success: true };
|
|
50231
|
+
}
|
|
50232
|
+
const record = result;
|
|
50233
|
+
if (record["success"] === false) {
|
|
50234
|
+
const reason = typeof record["error"] === "string" ? record["error"] : "no error message";
|
|
50235
|
+
return { success: false, failureReason: reason };
|
|
50236
|
+
}
|
|
50237
|
+
if (record["completed"] === false) {
|
|
50238
|
+
if (record["dryRun"] === true && record["planStatus"] === void 0) {
|
|
50239
|
+
return { success: true };
|
|
50240
|
+
}
|
|
50241
|
+
const reason = typeof record["error"] === "string" ? record["error"] : "pipeline did not complete";
|
|
50242
|
+
return { success: false, failureReason: reason };
|
|
50243
|
+
}
|
|
50244
|
+
return { success: true };
|
|
50245
|
+
}
|
|
50228
50246
|
function recordOutcome2(deps, decision, start, success, failureReason) {
|
|
50229
50247
|
const record = {
|
|
50230
50248
|
decisionId: decision.decisionId,
|
|
@@ -50262,7 +50280,8 @@ async function dispatchDecision(decision, input, deps) {
|
|
|
50262
50280
|
}
|
|
50263
50281
|
try {
|
|
50264
50282
|
const result = await executor(decision, input);
|
|
50265
|
-
|
|
50283
|
+
const classification = deps.classifyResult(result);
|
|
50284
|
+
recordOutcome2(deps, decision, start, classification.success, classification.failureReason);
|
|
50266
50285
|
return {
|
|
50267
50286
|
decisionId,
|
|
50268
50287
|
strategy,
|
|
@@ -50291,7 +50310,8 @@ function createMetaDispatcher(options) {
|
|
|
50291
50310
|
executors: options.executors,
|
|
50292
50311
|
outcomeSink,
|
|
50293
50312
|
logger: logger56,
|
|
50294
|
-
onOutcome: options.onOutcome
|
|
50313
|
+
onOutcome: options.onOutcome,
|
|
50314
|
+
classifyResult: options.classifyResult ?? classifyEngineResult
|
|
50295
50315
|
};
|
|
50296
50316
|
return {
|
|
50297
50317
|
dispatch(decision, input) {
|
|
@@ -51887,7 +51907,8 @@ async function executeGoal(input, opts = {}) {
|
|
|
51887
51907
|
executors: opts.executors ?? buildDefaultExecutors(opts.trustTier, opts.gatewayAdapters, input.dryRun),
|
|
51888
51908
|
...opts.logger !== void 0 ? { logger: opts.logger } : {},
|
|
51889
51909
|
...opts.outcomeSink !== void 0 ? { outcomeSink: opts.outcomeSink } : {},
|
|
51890
|
-
...onOutcome !== void 0 ? { onOutcome } : {}
|
|
51910
|
+
...onOutcome !== void 0 ? { onOutcome } : {},
|
|
51911
|
+
...opts.classifyResult !== void 0 ? { classifyResult: opts.classifyResult } : {}
|
|
51891
51912
|
});
|
|
51892
51913
|
const dispatch = await dispatcher.dispatch(decision, toMetaInput(input, "execute"));
|
|
51893
51914
|
return {
|
|
@@ -51900,17 +51921,14 @@ async function executeGoal(input, opts = {}) {
|
|
|
51900
51921
|
};
|
|
51901
51922
|
}
|
|
51902
51923
|
function detectEngineFailure(result) {
|
|
51903
|
-
|
|
51904
|
-
|
|
51905
|
-
|
|
51906
|
-
|
|
51907
|
-
return { message: `Engine reported failure: ${detail}` };
|
|
51908
|
-
}
|
|
51909
|
-
if (record["completed"] === false) {
|
|
51910
|
-
if (record["dryRun"] === true && record["planStatus"] === void 0) return null;
|
|
51924
|
+
const classification = classifyEngineResult(result);
|
|
51925
|
+
if (classification.success) return null;
|
|
51926
|
+
const record = typeof result === "object" && result !== null ? result : void 0;
|
|
51927
|
+
if (record?.["completed"] === false) {
|
|
51911
51928
|
return { message: describeIncompletePipeline(record), detail: record };
|
|
51912
51929
|
}
|
|
51913
|
-
|
|
51930
|
+
const detail = classification.failureReason ?? "no error message";
|
|
51931
|
+
return { message: `Engine reported failure: ${detail}` };
|
|
51914
51932
|
}
|
|
51915
51933
|
async function executeRunBody(input, logger56, trustTier, gatewayAdapters) {
|
|
51916
51934
|
try {
|
|
@@ -56122,4 +56140,4 @@ export {
|
|
|
56122
56140
|
shutdownFeedbackSubscriber,
|
|
56123
56141
|
createEventBusBridge
|
|
56124
56142
|
};
|
|
56125
|
-
//# sourceMappingURL=chunk-
|
|
56143
|
+
//# sourceMappingURL=chunk-CKTGOSEL.js.map
|