nexus-agents 4.32.4 → 4.33.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-HIXWQWNA.js → chunk-4XDOYKKU.js} +3 -3
- package/dist/chunk-HTI6JN7N.js +7 -0
- package/dist/{chunk-VDA4B6NO.js → chunk-KU2Z6NLS.js} +2 -2
- package/dist/{chunk-O2RQZFOJ.js → chunk-L6XFYXES.js} +2 -2
- package/dist/{chunk-OFEXOT56.js → chunk-LNYMYNYQ.js} +22 -16
- package/dist/{chunk-OFEXOT56.js.map → chunk-LNYMYNYQ.js.map} +1 -1
- package/dist/{chunk-SYVBAREH.js → chunk-R3EIPORN.js} +2 -2
- package/dist/cli.js +7 -7
- package/dist/{consensus-vote-YMHPKKZV.js → consensus-vote-3UI3XWVS.js} +4 -4
- package/dist/{improvement-review-BTPKYYYU.js → improvement-review-2O7MRNKA.js} +4 -4
- package/dist/index.d.ts +9 -0
- package/dist/index.js +7 -7
- package/dist/{setup-data-dir-JQC5RC3M.js → setup-data-dir-4MEAJDF6.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-3NJFOC3L.js +0 -7
- /package/dist/{chunk-HIXWQWNA.js.map → chunk-4XDOYKKU.js.map} +0 -0
- /package/dist/{chunk-3NJFOC3L.js.map → chunk-HTI6JN7N.js.map} +0 -0
- /package/dist/{chunk-VDA4B6NO.js.map → chunk-KU2Z6NLS.js.map} +0 -0
- /package/dist/{chunk-O2RQZFOJ.js.map → chunk-L6XFYXES.js.map} +0 -0
- /package/dist/{chunk-SYVBAREH.js.map → chunk-R3EIPORN.js.map} +0 -0
- /package/dist/{consensus-vote-YMHPKKZV.js.map → consensus-vote-3UI3XWVS.js.map} +0 -0
- /package/dist/{improvement-review-BTPKYYYU.js.map → improvement-review-2O7MRNKA.js.map} +0 -0
- /package/dist/{setup-data-dir-JQC5RC3M.js.map → setup-data-dir-4MEAJDF6.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-HTI6JN7N.js";
|
|
10
10
|
import {
|
|
11
11
|
capitalize
|
|
12
12
|
} from "./chunk-6T3EPABN.js";
|
|
@@ -1201,7 +1201,7 @@ async function runDoctorFix(result) {
|
|
|
1201
1201
|
writeLine2("\u2500".repeat(40));
|
|
1202
1202
|
let fixCount = 0;
|
|
1203
1203
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
1204
|
-
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-
|
|
1204
|
+
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-4MEAJDF6.js");
|
|
1205
1205
|
const outcome = describeDataDirFix2(initDataDirectories2());
|
|
1206
1206
|
writeLine2(outcome.line);
|
|
1207
1207
|
if (outcome.counted) fixCount++;
|
|
@@ -1303,4 +1303,4 @@ export {
|
|
|
1303
1303
|
startStdioServer,
|
|
1304
1304
|
closeServer
|
|
1305
1305
|
};
|
|
1306
|
-
//# sourceMappingURL=chunk-
|
|
1306
|
+
//# sourceMappingURL=chunk-4XDOYKKU.js.map
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
toolSuccessStructured,
|
|
24
24
|
withProgressHeartbeat,
|
|
25
25
|
wrapToolWithTimeout
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-L6XFYXES.js";
|
|
27
27
|
import {
|
|
28
28
|
assessPanelIndependence,
|
|
29
29
|
countDistinctModels,
|
|
@@ -6803,4 +6803,4 @@ export {
|
|
|
6803
6803
|
CONSENSUS_VOTE_TOOL_SCHEMA,
|
|
6804
6804
|
registerConsensusVoteTool
|
|
6805
6805
|
};
|
|
6806
|
-
//# sourceMappingURL=chunk-
|
|
6806
|
+
//# sourceMappingURL=chunk-KU2Z6NLS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HTI6JN7N.js";
|
|
4
4
|
import {
|
|
5
5
|
emitClawGuardViolation
|
|
6
6
|
} from "./chunk-3U6L7DBT.js";
|
|
@@ -2116,4 +2116,4 @@ export {
|
|
|
2116
2116
|
VOTING_THRESHOLDS,
|
|
2117
2117
|
ConsensusMetricsSchema
|
|
2118
2118
|
};
|
|
2119
|
-
//# sourceMappingURL=chunk-
|
|
2119
|
+
//# sourceMappingURL=chunk-L6XFYXES.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-4XDOYKKU.js";
|
|
25
25
|
import {
|
|
26
26
|
executeExpert
|
|
27
27
|
} from "./chunk-MUTREHSB.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
simulationDeniedResult,
|
|
48
48
|
toJobSummary,
|
|
49
49
|
writeJobCancelled
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-KU2Z6NLS.js";
|
|
51
51
|
import {
|
|
52
52
|
allOf
|
|
53
53
|
} from "./chunk-OQB3XC5O.js";
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
} from "./chunk-6FD2ANO6.js";
|
|
65
65
|
import {
|
|
66
66
|
withPrerequisite
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-R3EIPORN.js";
|
|
68
68
|
import {
|
|
69
69
|
NOOP_NOTIFIER,
|
|
70
70
|
RateLimiter,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
withAuditTrail,
|
|
89
89
|
withProgressHeartbeat,
|
|
90
90
|
wrapToolWithTimeout
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-L6XFYXES.js";
|
|
92
92
|
import {
|
|
93
93
|
createAuditTrail,
|
|
94
94
|
createGraphAuditBridge,
|
|
@@ -41447,20 +41447,26 @@ function resolveGraph(workflow, startTime) {
|
|
|
41447
41447
|
}
|
|
41448
41448
|
return { ok: true, graph };
|
|
41449
41449
|
}
|
|
41450
|
-
function createEventCollector(events, enableAuditTrail) {
|
|
41451
|
-
const
|
|
41450
|
+
function createEventCollector(events, enableAuditTrail, logger59, auditLogger) {
|
|
41451
|
+
const trail = enableAuditTrail ? createDurableAuditTrail(auditLogger) : void 0;
|
|
41452
|
+
if (enableAuditTrail && trail === void 0) {
|
|
41453
|
+
logger59.warn(
|
|
41454
|
+
"enableAuditTrail requested but no durable audit logger is configured; graph_execution events will NOT be recorded (#5219)"
|
|
41455
|
+
);
|
|
41456
|
+
}
|
|
41457
|
+
const auditBridge = trail !== void 0 ? createGraphAuditBridge(trail) : void 0;
|
|
41452
41458
|
return (event) => {
|
|
41453
41459
|
events.push(toEventSummary(event));
|
|
41454
41460
|
auditBridge?.(event);
|
|
41455
41461
|
};
|
|
41456
41462
|
}
|
|
41457
|
-
async function handleRunGraphWorkflow(input, logger59) {
|
|
41463
|
+
async function handleRunGraphWorkflow(input, logger59, auditLogger) {
|
|
41458
41464
|
const startTime = getTimeProvider().now();
|
|
41459
41465
|
const resolved = resolveGraph(input.workflow, startTime);
|
|
41460
41466
|
if (!resolved.ok) return resolved.error;
|
|
41461
41467
|
const events = [];
|
|
41462
41468
|
const checkpointStore = input.enableCheckpointing ? createCheckpointStore() : void 0;
|
|
41463
|
-
const onEvent = createEventCollector(events, input.enableAuditTrail);
|
|
41469
|
+
const onEvent = createEventCollector(events, input.enableAuditTrail, logger59, auditLogger);
|
|
41464
41470
|
const executionId = `graph-${input.workflow}-${String(Date.now())}`;
|
|
41465
41471
|
logger59.info("Executing graph workflow", {
|
|
41466
41472
|
workflow: input.workflow,
|
|
@@ -41509,8 +41515,8 @@ var GRAPH_WORKFLOW_SCHEMA = {
|
|
|
41509
41515
|
"Dispatch mode (#3732). 'sync' (default): run inline. 'async': return a jobId immediately + run in background (poll get_job_result)."
|
|
41510
41516
|
)
|
|
41511
41517
|
};
|
|
41512
|
-
async function executeGraphWorkflowBody(input, logger59, notifier) {
|
|
41513
|
-
const result = await handleRunGraphWorkflow(input, logger59);
|
|
41518
|
+
async function executeGraphWorkflowBody(input, logger59, notifier, auditLogger) {
|
|
41519
|
+
const result = await handleRunGraphWorkflow(input, logger59, auditLogger);
|
|
41514
41520
|
const succeeded = result.status === "completed";
|
|
41515
41521
|
notifier.info("run_graph_workflow", {
|
|
41516
41522
|
event: succeeded ? "graph_workflow_complete" : "graph_workflow_failed",
|
|
@@ -41522,7 +41528,7 @@ async function executeGraphWorkflowBody(input, logger59, notifier) {
|
|
|
41522
41528
|
const text = JSON.stringify(result, null, 2);
|
|
41523
41529
|
return succeeded ? toolSuccess(text) : toolStructuredError({ errorCategory: "internal", message: text });
|
|
41524
41530
|
}
|
|
41525
|
-
function createGraphWorkflowHandler(logger59, notifier) {
|
|
41531
|
+
function createGraphWorkflowHandler(logger59, notifier, auditLogger) {
|
|
41526
41532
|
return async (args, _ctx) => {
|
|
41527
41533
|
const parsed = RunGraphWorkflowInputSchema.safeParse(args);
|
|
41528
41534
|
if (!parsed.success) {
|
|
@@ -41544,17 +41550,17 @@ function createGraphWorkflowHandler(logger59, notifier) {
|
|
|
41544
41550
|
toolName: "run_graph_workflow",
|
|
41545
41551
|
input,
|
|
41546
41552
|
freshJobId: () => `gw-${randomUUID11()}`,
|
|
41547
|
-
run: () => executeGraphWorkflowBody(input, logger59, notifier),
|
|
41553
|
+
run: () => executeGraphWorkflowBody(input, logger59, notifier, auditLogger),
|
|
41548
41554
|
logger: logger59
|
|
41549
41555
|
});
|
|
41550
41556
|
}
|
|
41551
|
-
return executeGraphWorkflowBody(input, logger59, notifier);
|
|
41557
|
+
return executeGraphWorkflowBody(input, logger59, notifier, auditLogger);
|
|
41552
41558
|
};
|
|
41553
41559
|
}
|
|
41554
41560
|
function registerRunGraphWorkflowTool(server, deps) {
|
|
41555
41561
|
const logger59 = deps.logger ?? createLogger({ tool: "run_graph_workflow" });
|
|
41556
41562
|
const notifier = deps.notifier ?? createMcpNotifier(server);
|
|
41557
|
-
const handler3 = createGraphWorkflowHandler(logger59, notifier);
|
|
41563
|
+
const handler3 = createGraphWorkflowHandler(logger59, notifier, deps.auditLogger);
|
|
41558
41564
|
const secureHandler = createSecureHandler(handler3, {
|
|
41559
41565
|
toolName: "run_graph_workflow",
|
|
41560
41566
|
rateLimiter: deps.rateLimiter,
|
|
@@ -47541,7 +47547,7 @@ ${contextBlock}`;
|
|
|
47541
47547
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
47542
47548
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
47543
47549
|
try {
|
|
47544
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47550
|
+
const { executeVoting } = await import("./consensus-vote-3UI3XWVS.js");
|
|
47545
47551
|
const votingResult = await executeVoting(
|
|
47546
47552
|
{
|
|
47547
47553
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -56169,4 +56175,4 @@ export {
|
|
|
56169
56175
|
shutdownFeedbackSubscriber,
|
|
56170
56176
|
createEventBusBridge
|
|
56171
56177
|
};
|
|
56172
|
-
//# sourceMappingURL=chunk-
|
|
56178
|
+
//# sourceMappingURL=chunk-LNYMYNYQ.js.map
|