nexus-agents 2.140.1 → 2.140.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-KUF5JK5A.js → chunk-3Z4SZVBB.js} +16 -7
- package/dist/chunk-3Z4SZVBB.js.map +1 -0
- package/dist/{chunk-QLFU334E.js → chunk-66LTZALB.js} +14 -13
- package/dist/{chunk-QLFU334E.js.map → chunk-66LTZALB.js.map} +1 -1
- package/dist/{chunk-W2X4T4JX.js → chunk-FLDT5YWH.js} +3 -3
- package/dist/{chunk-FDWCMNCA.js → chunk-JO2EX53W.js} +2 -2
- package/dist/cli.js +16 -5
- package/dist/cli.js.map +1 -1
- package/dist/{consensus-vote-LGFJGBLL.js → consensus-vote-DRGGSXUQ.js} +2 -2
- package/dist/index.js +4 -4
- package/dist/{setup-command-UGNZID2H.js → setup-command-SR7SNTMD.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-KUF5JK5A.js.map +0 -1
- /package/dist/{chunk-W2X4T4JX.js.map → chunk-FLDT5YWH.js.map} +0 -0
- /package/dist/{chunk-FDWCMNCA.js.map → chunk-JO2EX53W.js.map} +0 -0
- /package/dist/{consensus-vote-LGFJGBLL.js.map → consensus-vote-DRGGSXUQ.js.map} +0 -0
- /package/dist/{setup-command-UGNZID2H.js.map → setup-command-SR7SNTMD.js.map} +0 -0
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
DEFAULT_TASK_TTL_MS,
|
|
19
19
|
DEFAULT_TOOL_RATE_LIMITS,
|
|
20
20
|
clampTaskTtl
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FLDT5YWH.js";
|
|
22
22
|
import {
|
|
23
23
|
executeExpert
|
|
24
24
|
} from "./chunk-733ZGAXH.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
toJobSummary,
|
|
41
41
|
warnIfSimulatedOutsideTests,
|
|
42
42
|
writeJobCancelled
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-3Z4SZVBB.js";
|
|
44
44
|
import {
|
|
45
45
|
normalizeTopicToCanonical,
|
|
46
46
|
synthesizeResearch
|
|
@@ -43380,7 +43380,7 @@ ${contextBlock}`;
|
|
|
43380
43380
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
43381
43381
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
43382
43382
|
try {
|
|
43383
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
43383
|
+
const { executeVoting } = await import("./consensus-vote-DRGGSXUQ.js");
|
|
43384
43384
|
const votingResult = await executeVoting(
|
|
43385
43385
|
{
|
|
43386
43386
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -46603,7 +46603,7 @@ function routeGoal(input, logger57) {
|
|
|
46603
46603
|
note: NOTE
|
|
46604
46604
|
};
|
|
46605
46605
|
}
|
|
46606
|
-
function buildDefaultExecutors(trustTier) {
|
|
46606
|
+
function buildDefaultExecutors(trustTier, gatewayAdapters) {
|
|
46607
46607
|
return {
|
|
46608
46608
|
"dev-pipeline": (_decision, metaInput) => runDevPipelineForGoal(metaInput.goal, trustTier),
|
|
46609
46609
|
pipeline: (_decision, metaInput) => runPipelineForGoal(metaInput.goal),
|
|
@@ -46615,7 +46615,7 @@ function buildDefaultExecutors(trustTier) {
|
|
|
46615
46615
|
// registry is a feature with no current consumer (YAGNI) — add it only when a
|
|
46616
46616
|
// named loop needs research-specific stages; until then research==pipeline.
|
|
46617
46617
|
research: (_decision, metaInput) => runPipelineForGoal(metaInput.goal),
|
|
46618
|
-
consensus: (_decision, metaInput) => runConsensusForGoal(metaInput.goal)
|
|
46618
|
+
consensus: (_decision, metaInput) => runConsensusForGoal(metaInput.goal, void 0, gatewayAdapters)
|
|
46619
46619
|
};
|
|
46620
46620
|
}
|
|
46621
46621
|
function isShadowTrainEnabled() {
|
|
@@ -46640,7 +46640,7 @@ async function executeGoal(input, opts = {}) {
|
|
|
46640
46640
|
const decision = selectDecision(input, "execute", opts.logger);
|
|
46641
46641
|
const onOutcome = opts.onOutcome ?? buildShadowTrainObserver(opts.logger);
|
|
46642
46642
|
const dispatcher = createMetaDispatcher({
|
|
46643
|
-
executors: opts.executors ?? buildDefaultExecutors(opts.trustTier),
|
|
46643
|
+
executors: opts.executors ?? buildDefaultExecutors(opts.trustTier, opts.gatewayAdapters),
|
|
46644
46644
|
...opts.logger !== void 0 ? { logger: opts.logger } : {},
|
|
46645
46645
|
...opts.outcomeSink !== void 0 ? { outcomeSink: opts.outcomeSink } : {},
|
|
46646
46646
|
...onOutcome !== void 0 ? { onOutcome } : {}
|
|
@@ -46655,11 +46655,12 @@ async function executeGoal(input, opts = {}) {
|
|
|
46655
46655
|
result: dispatch.result
|
|
46656
46656
|
};
|
|
46657
46657
|
}
|
|
46658
|
-
async function executeRunBody(input, logger57, trustTier) {
|
|
46658
|
+
async function executeRunBody(input, logger57, trustTier, gatewayAdapters) {
|
|
46659
46659
|
try {
|
|
46660
46660
|
const exec2 = await executeGoal(input, {
|
|
46661
46661
|
logger: logger57,
|
|
46662
|
-
...trustTier !== void 0 ? { trustTier } : {}
|
|
46662
|
+
...trustTier !== void 0 ? { trustTier } : {},
|
|
46663
|
+
...gatewayAdapters !== void 0 ? { gatewayAdapters } : {}
|
|
46663
46664
|
});
|
|
46664
46665
|
logger57.info("run: executed goal", {
|
|
46665
46666
|
decisionId: exec2.decisionId,
|
|
@@ -46676,7 +46677,7 @@ async function executeRunBody(input, logger57, trustTier) {
|
|
|
46676
46677
|
});
|
|
46677
46678
|
}
|
|
46678
46679
|
}
|
|
46679
|
-
async function runHandler(args, logger57, trustTier) {
|
|
46680
|
+
async function runHandler(args, logger57, trustTier, gatewayAdapters) {
|
|
46680
46681
|
const parsed = RunInputSchema.safeParse(args);
|
|
46681
46682
|
if (!parsed.success) {
|
|
46682
46683
|
return toolStructuredError({
|
|
@@ -46691,11 +46692,11 @@ async function runHandler(args, logger57, trustTier) {
|
|
|
46691
46692
|
toolName: "run",
|
|
46692
46693
|
input,
|
|
46693
46694
|
freshJobId: () => `rn-${randomUUID17()}`,
|
|
46694
|
-
run: () => executeRunBody(input, logger57, trustTier),
|
|
46695
|
+
run: () => executeRunBody(input, logger57, trustTier, gatewayAdapters),
|
|
46695
46696
|
logger: logger57
|
|
46696
46697
|
});
|
|
46697
46698
|
}
|
|
46698
|
-
return executeRunBody(input, logger57, trustTier);
|
|
46699
|
+
return executeRunBody(input, logger57, trustTier, gatewayAdapters);
|
|
46699
46700
|
}
|
|
46700
46701
|
const response = routeGoal(parsed.data, logger57);
|
|
46701
46702
|
logger57.info("run: routed goal", {
|
|
@@ -46709,7 +46710,7 @@ var DESCRIPTION4 = "DEFAULT ENTRY POINT: give a goal and nexus-agents picks the
|
|
|
46709
46710
|
function registerRunTool(server, deps) {
|
|
46710
46711
|
const logger57 = deps.logger ?? createLogger({ tool: "run" });
|
|
46711
46712
|
const secureHandler = createSecureHandler(
|
|
46712
|
-
(args, ctx) => runHandler(args, logger57, ctx.requestContext.trustTier),
|
|
46713
|
+
(args, ctx) => runHandler(args, logger57, ctx.requestContext.trustTier, deps.gatewayAdapters),
|
|
46713
46714
|
{
|
|
46714
46715
|
toolName: "run",
|
|
46715
46716
|
rateLimiter: deps.rateLimiter,
|
|
@@ -50906,4 +50907,4 @@ export {
|
|
|
50906
50907
|
shutdownFeedbackSubscriber,
|
|
50907
50908
|
createEventBusBridge
|
|
50908
50909
|
};
|
|
50909
|
-
//# sourceMappingURL=chunk-
|
|
50910
|
+
//# sourceMappingURL=chunk-66LTZALB.js.map
|