nexus-agents 8.20.0 → 8.20.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-XSRCJ7FA.js → chunk-GUVJVLGX.js} +3 -3
- package/dist/chunk-KQIWR72E.js +7 -0
- package/dist/{chunk-PIWFHJSU.js → chunk-NXVN5DZX.js} +38 -11
- package/dist/{chunk-PIWFHJSU.js.map → chunk-NXVN5DZX.js.map} +1 -1
- package/dist/{chunk-W5M6VFDH.js → chunk-Q4A3U4KA.js} +2 -2
- package/dist/{chunk-FZXMMOBQ.js → chunk-WIOKVM7I.js} +2 -2
- package/dist/{chunk-ASUB4LSV.js → chunk-XP7E6PUR.js} +3 -3
- package/dist/cli.js +7 -7
- package/dist/{consensus-vote-X4XXWGDD.js → consensus-vote-NP7MGI54.js} +4 -4
- package/dist/{improvement-review-I7NBW7QO.js → improvement-review-ESVYQL52.js} +4 -4
- package/dist/index.d.ts +8 -1
- package/dist/index.js +6 -6
- package/dist/{setup-data-dir-JHZPDCPY.js → setup-data-dir-U4KGLTSK.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-AWFW6FD4.js +0 -7
- /package/dist/{chunk-XSRCJ7FA.js.map → chunk-GUVJVLGX.js.map} +0 -0
- /package/dist/{chunk-AWFW6FD4.js.map → chunk-KQIWR72E.js.map} +0 -0
- /package/dist/{chunk-W5M6VFDH.js.map → chunk-Q4A3U4KA.js.map} +0 -0
- /package/dist/{chunk-FZXMMOBQ.js.map → chunk-WIOKVM7I.js.map} +0 -0
- /package/dist/{chunk-ASUB4LSV.js.map → chunk-XP7E6PUR.js.map} +0 -0
- /package/dist/{consensus-vote-X4XXWGDD.js.map → consensus-vote-NP7MGI54.js.map} +0 -0
- /package/dist/{improvement-review-I7NBW7QO.js.map → improvement-review-ESVYQL52.js.map} +0 -0
- /package/dist/{setup-data-dir-JHZPDCPY.js.map → setup-data-dir-U4KGLTSK.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-OQB3XC5O.js";
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KQIWR72E.js";
|
|
10
10
|
import {
|
|
11
11
|
capitalize
|
|
12
12
|
} from "./chunk-7LP6VJRP.js";
|
|
@@ -1220,7 +1220,7 @@ async function runDoctorFix(result) {
|
|
|
1220
1220
|
writeLine2("\u2500".repeat(40));
|
|
1221
1221
|
let fixCount = 0;
|
|
1222
1222
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
1223
|
-
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-
|
|
1223
|
+
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-U4KGLTSK.js");
|
|
1224
1224
|
const outcome = describeDataDirFix2(initDataDirectories2());
|
|
1225
1225
|
writeLine2(outcome.line);
|
|
1226
1226
|
if (outcome.counted) fixCount++;
|
|
@@ -1322,4 +1322,4 @@ export {
|
|
|
1322
1322
|
startStdioServer,
|
|
1323
1323
|
closeServer
|
|
1324
1324
|
};
|
|
1325
|
-
//# sourceMappingURL=chunk-
|
|
1325
|
+
//# sourceMappingURL=chunk-GUVJVLGX.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-GUVJVLGX.js";
|
|
25
25
|
import {
|
|
26
26
|
executeExpert
|
|
27
27
|
} from "./chunk-C7CSLODO.js";
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
simulationDeniedResult,
|
|
49
49
|
toJobSummary,
|
|
50
50
|
writeJobCancelled
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-XP7E6PUR.js";
|
|
52
52
|
import {
|
|
53
53
|
allOf
|
|
54
54
|
} from "./chunk-OQB3XC5O.js";
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
} from "./chunk-ZUK5BG3Q.js";
|
|
68
68
|
import {
|
|
69
69
|
withPrerequisite
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-Q4A3U4KA.js";
|
|
71
71
|
import {
|
|
72
72
|
NOOP_NOTIFIER,
|
|
73
73
|
RateLimiter,
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
withAuditTrail,
|
|
93
93
|
withProgressHeartbeat,
|
|
94
94
|
wrapToolWithTimeout
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-WIOKVM7I.js";
|
|
96
96
|
import {
|
|
97
97
|
createAuditTrail,
|
|
98
98
|
createGraphAuditBridge,
|
|
@@ -22446,6 +22446,14 @@ function mapInputDefinition(input) {
|
|
|
22446
22446
|
if (input.default !== void 0) inputDef.default = input.default;
|
|
22447
22447
|
return inputDef;
|
|
22448
22448
|
}
|
|
22449
|
+
function mapPartialContextBudget(source) {
|
|
22450
|
+
const budget = {};
|
|
22451
|
+
if (source.system !== void 0) budget.system = source.system;
|
|
22452
|
+
if (source.task !== void 0) budget.task = source.task;
|
|
22453
|
+
if (source.active !== void 0) budget.active = source.active;
|
|
22454
|
+
if (source.reserved !== void 0) budget.reserved = source.reserved;
|
|
22455
|
+
return budget;
|
|
22456
|
+
}
|
|
22449
22457
|
function mapWorkflowStep(step) {
|
|
22450
22458
|
const stepDef = {
|
|
22451
22459
|
id: step.id,
|
|
@@ -22458,6 +22466,8 @@ function mapWorkflowStep(step) {
|
|
|
22458
22466
|
if (step.retries !== void 0) stepDef.retries = step.retries;
|
|
22459
22467
|
if (step.timeout !== void 0) stepDef.timeout = step.timeout;
|
|
22460
22468
|
if (step.condition !== void 0) stepDef.condition = step.condition;
|
|
22469
|
+
if (step.contextBudget !== void 0)
|
|
22470
|
+
stepDef.contextBudget = mapPartialContextBudget(step.contextBudget);
|
|
22461
22471
|
return stepDef;
|
|
22462
22472
|
}
|
|
22463
22473
|
function toWorkflowDefinition(data) {
|
|
@@ -22469,6 +22479,7 @@ function toWorkflowDefinition(data) {
|
|
|
22469
22479
|
};
|
|
22470
22480
|
if (data.description !== void 0) workflow.description = data.description;
|
|
22471
22481
|
if (data.timeout !== void 0) workflow.timeout = data.timeout;
|
|
22482
|
+
if (data.defaultBudget !== void 0) workflow.defaultBudget = data.defaultBudget;
|
|
22472
22483
|
return workflow;
|
|
22473
22484
|
}
|
|
22474
22485
|
async function loadWorkflowFile(filePath, allowedRoot = process.cwd()) {
|
|
@@ -29883,15 +29894,31 @@ function checkInterrupt(startTime, timeout, signal) {
|
|
|
29883
29894
|
return void 0;
|
|
29884
29895
|
}
|
|
29885
29896
|
async function runSuperStepLoop(graph, ctx, startTime, options) {
|
|
29886
|
-
const maxSteps = options
|
|
29887
|
-
const timeout = options?.timeout ?? DEFAULT_TIMEOUT_MS3;
|
|
29897
|
+
const { maxSteps, timeout, signal } = resolveLoopLimits(options);
|
|
29888
29898
|
while (ctx.runnableIds.length > 0 && ctx.stepsExecuted < maxSteps) {
|
|
29889
|
-
const aborted = checkInterrupt(startTime, timeout,
|
|
29899
|
+
const aborted = checkInterrupt(startTime, timeout, signal);
|
|
29890
29900
|
if (aborted !== void 0) return aborted;
|
|
29901
|
+
if (ctx.runnableIds.length > maxSteps - ctx.stepsExecuted) break;
|
|
29891
29902
|
await executeSuperStep(graph, ctx, options);
|
|
29892
29903
|
if (ctx.pendingInterrupt !== void 0) return void 0;
|
|
29893
29904
|
}
|
|
29894
|
-
return
|
|
29905
|
+
return maxStepsExhausted(ctx);
|
|
29906
|
+
}
|
|
29907
|
+
function resolveLoopLimits(options) {
|
|
29908
|
+
return {
|
|
29909
|
+
maxSteps: options?.maxSteps ?? DEFAULT_MAX_STEPS,
|
|
29910
|
+
timeout: options?.timeout ?? DEFAULT_TIMEOUT_MS3,
|
|
29911
|
+
signal: options?.signal
|
|
29912
|
+
};
|
|
29913
|
+
}
|
|
29914
|
+
function maxStepsExhausted(ctx) {
|
|
29915
|
+
if (ctx.runnableIds.length === 0) return void 0;
|
|
29916
|
+
const pendingIds = ctx.runnableIds.join(", ");
|
|
29917
|
+
return err(
|
|
29918
|
+
new Error(
|
|
29919
|
+
`maxSteps exhausted with ${String(ctx.runnableIds.length)} runnable node(s) pending: ${pendingIds}`
|
|
29920
|
+
)
|
|
29921
|
+
);
|
|
29895
29922
|
}
|
|
29896
29923
|
async function executeSuperStep(graph, ctx, options) {
|
|
29897
29924
|
emitNodeStarted(ctx, options);
|
|
@@ -45919,7 +45946,7 @@ function buildVotingInput(plan, config) {
|
|
|
45919
45946
|
}
|
|
45920
45947
|
async function executeSingleVote(plan, config, log) {
|
|
45921
45948
|
try {
|
|
45922
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
45949
|
+
const { executeVoting } = await import("./consensus-vote-NP7MGI54.js");
|
|
45923
45950
|
const input = buildVotingInput(plan, config);
|
|
45924
45951
|
const result = await executeVoting(input, log);
|
|
45925
45952
|
return parseVotingResult(result);
|
|
@@ -47691,7 +47718,7 @@ ${contextBlock}`;
|
|
|
47691
47718
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
47692
47719
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
47693
47720
|
try {
|
|
47694
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47721
|
+
const { executeVoting } = await import("./consensus-vote-NP7MGI54.js");
|
|
47695
47722
|
const votingResult = await executeVoting(
|
|
47696
47723
|
{
|
|
47697
47724
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -56376,4 +56403,4 @@ export {
|
|
|
56376
56403
|
shutdownFeedbackSubscriber,
|
|
56377
56404
|
createEventBusBridge
|
|
56378
56405
|
};
|
|
56379
|
-
//# sourceMappingURL=chunk-
|
|
56406
|
+
//# sourceMappingURL=chunk-NXVN5DZX.js.map
|