nexus-agents 4.26.9 → 4.28.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-O7LX6CCH.js → chunk-6OAWETHW.js} +2 -2
- package/dist/{chunk-YOGYNVAN.js → chunk-7V5V6H5C.js} +26 -24
- package/dist/{chunk-YOGYNVAN.js.map → chunk-7V5V6H5C.js.map} +1 -1
- package/dist/chunk-D2E5PC2V.js +7 -0
- package/dist/{chunk-VYZWF4DB.js → chunk-EGO754SU.js} +41 -18
- package/dist/{chunk-VYZWF4DB.js.map → chunk-EGO754SU.js.map} +1 -1
- package/dist/{chunk-FQQOROWP.js → chunk-LLJ65HUO.js} +2 -2
- package/dist/{chunk-DHYDTSS3.js → chunk-Q4T3UWOC.js} +2 -2
- package/dist/{chunk-MJQVSJZB.js → chunk-RV57MIQU.js} +1 -1
- package/dist/chunk-RV57MIQU.js.map +1 -0
- package/dist/{chunk-MQTXQPFN.js → chunk-VEFRTBUE.js} +3 -3
- package/dist/cli.js +22 -10
- package/dist/cli.js.map +1 -1
- package/dist/{consensus-vote-ZCZJS543.js → consensus-vote-YYHQHD7V.js} +5 -5
- package/dist/{improvement-review-GG7IIXBS.js → improvement-review-C74SDVTQ.js} +5 -5
- package/dist/index.d.ts +46 -0
- package/dist/index.js +9 -9
- package/dist/{issue-triage-N4ZYYJYR.js → issue-triage-BOGQS5GP.js} +3 -3
- package/dist/{setup-data-dir-CF5HCZ3V.js → setup-data-dir-YSN7UU3M.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-ARR4ZJVE.js +0 -7
- package/dist/chunk-MJQVSJZB.js.map +0 -1
- /package/dist/{chunk-O7LX6CCH.js.map → chunk-6OAWETHW.js.map} +0 -0
- /package/dist/{chunk-ARR4ZJVE.js.map → chunk-D2E5PC2V.js.map} +0 -0
- /package/dist/{chunk-FQQOROWP.js.map → chunk-LLJ65HUO.js.map} +0 -0
- /package/dist/{chunk-DHYDTSS3.js.map → chunk-Q4T3UWOC.js.map} +0 -0
- /package/dist/{chunk-MQTXQPFN.js.map → chunk-VEFRTBUE.js.map} +0 -0
- /package/dist/{consensus-vote-ZCZJS543.js.map → consensus-vote-YYHQHD7V.js.map} +0 -0
- /package/dist/{improvement-review-GG7IIXBS.js.map → improvement-review-C74SDVTQ.js.map} +0 -0
- /package/dist/{issue-triage-N4ZYYJYR.js.map → issue-triage-BOGQS5GP.js.map} +0 -0
- /package/dist/{setup-data-dir-CF5HCZ3V.js.map → setup-data-dir-YSN7UU3M.js.map} +0 -0
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_TASK_TTL_MS,
|
|
23
23
|
clampTaskTtl
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VEFRTBUE.js";
|
|
25
25
|
import {
|
|
26
26
|
executeExpert
|
|
27
27
|
} from "./chunk-XEGZYUPX.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
simulationDeniedResult,
|
|
47
47
|
toJobSummary,
|
|
48
48
|
writeJobCancelled
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-6OAWETHW.js";
|
|
50
50
|
import {
|
|
51
51
|
allOf
|
|
52
52
|
} from "./chunk-OQB3XC5O.js";
|
|
@@ -56,14 +56,14 @@ import {
|
|
|
56
56
|
} from "./chunk-I6JRNQ6S.js";
|
|
57
57
|
import {
|
|
58
58
|
IssueTriage
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-LLJ65HUO.js";
|
|
60
60
|
import {
|
|
61
61
|
resolveEnvMode,
|
|
62
62
|
sanitizeInput
|
|
63
63
|
} from "./chunk-UBWHBW7S.js";
|
|
64
64
|
import {
|
|
65
65
|
withPrerequisite
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-Q4T3UWOC.js";
|
|
67
67
|
import {
|
|
68
68
|
NOOP_NOTIFIER,
|
|
69
69
|
RateLimiter,
|
|
@@ -87,12 +87,12 @@ import {
|
|
|
87
87
|
withAuditTrail,
|
|
88
88
|
withProgressHeartbeat,
|
|
89
89
|
wrapToolWithTimeout
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-7V5V6H5C.js";
|
|
91
91
|
import {
|
|
92
92
|
createAuditTrail,
|
|
93
93
|
createGraphAuditBridge,
|
|
94
94
|
emitPipelinePolicyEvent
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-RV57MIQU.js";
|
|
96
96
|
import {
|
|
97
97
|
EventTopics,
|
|
98
98
|
createEvent,
|
|
@@ -24440,12 +24440,15 @@ function createSimpleStepResult(step, startTime) {
|
|
|
24440
24440
|
output: {
|
|
24441
24441
|
action: step.action,
|
|
24442
24442
|
agent: step.agent,
|
|
24443
|
-
message: `
|
|
24443
|
+
message: `Step ${step.id} was NOT executed (mock executor)`,
|
|
24444
24444
|
mock: true
|
|
24445
|
-
// Indicates this was mock execution, not real
|
|
24446
24445
|
},
|
|
24447
24446
|
durationMs: getTimeProvider().now() - startTime,
|
|
24448
|
-
|
|
24447
|
+
// 'skipped', not 'success' (#5116). A step that did not run did not
|
|
24448
|
+
// succeed, and `status` is the field a caller branches on — the `mock: true`
|
|
24449
|
+
// marker sits a level down in `output`, where nobody checking status looks.
|
|
24450
|
+
// This was the whole shape of the bug: unexecuted work reported as done.
|
|
24451
|
+
status: "skipped"
|
|
24449
24452
|
};
|
|
24450
24453
|
}
|
|
24451
24454
|
function bridgeToWorkflowContext(parallelCtx, workflowId) {
|
|
@@ -24577,9 +24580,7 @@ function createMockStepExecutor(logger59) {
|
|
|
24577
24580
|
function resolveStepExecutor(options) {
|
|
24578
24581
|
const { logger: logger59, expertFactory, workflowId, useMockExecutor } = options;
|
|
24579
24582
|
if (useMockExecutor === true) {
|
|
24580
|
-
logger59.
|
|
24581
|
-
"useMockExecutor enabled; workflow steps will return mock results (NOT RECOMMENDED)"
|
|
24582
|
-
);
|
|
24583
|
+
logger59.debug("Mock step executor installed; steps will report skipped, not executed");
|
|
24583
24584
|
return createMockStepExecutor(logger59);
|
|
24584
24585
|
}
|
|
24585
24586
|
if (expertFactory !== void 0 && workflowId !== void 0) {
|
|
@@ -28792,7 +28793,9 @@ function getAllowedWorkflowDirs(deps) {
|
|
|
28792
28793
|
}
|
|
28793
28794
|
function deriveWorkflowStatus(steps) {
|
|
28794
28795
|
if (steps.length === 0) return "failed";
|
|
28795
|
-
|
|
28796
|
+
if (steps.some((s) => s.status === "failed")) return "failed";
|
|
28797
|
+
if (!steps.some((s) => s.status === "success")) return "failed";
|
|
28798
|
+
return "completed";
|
|
28796
28799
|
}
|
|
28797
28800
|
function toStepResultSummary(result) {
|
|
28798
28801
|
const summary = {
|
|
@@ -28950,15 +28953,35 @@ function formatValidationErrors(validation) {
|
|
|
28950
28953
|
|
|
28951
28954
|
// src/mcp/tools/run-workflow.ts
|
|
28952
28955
|
import { randomUUID as randomUUID8 } from "crypto";
|
|
28956
|
+
function resolveExecutionEngineOrError(deps, workflowName) {
|
|
28957
|
+
try {
|
|
28958
|
+
const resolve22 = deps.resolveExecutionEngine ?? (() => deps.workflowEngine);
|
|
28959
|
+
return { ok: true, value: resolve22() };
|
|
28960
|
+
} catch (error) {
|
|
28961
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
28962
|
+
deps.logger?.error(
|
|
28963
|
+
"Workflow execution unavailable",
|
|
28964
|
+
error instanceof Error ? error : void 0,
|
|
28965
|
+
{ workflowName }
|
|
28966
|
+
);
|
|
28967
|
+
return {
|
|
28968
|
+
ok: false,
|
|
28969
|
+
error: new WorkflowError(`Cannot execute workflow "${workflowName}": ${message}`)
|
|
28970
|
+
};
|
|
28971
|
+
}
|
|
28972
|
+
}
|
|
28953
28973
|
async function executeWorkflow(deps, workflow, inputs, options) {
|
|
28954
|
-
const {
|
|
28974
|
+
const { logger: logger59 } = deps;
|
|
28975
|
+
const engineOrError = resolveExecutionEngineOrError(deps, workflow.name);
|
|
28976
|
+
if (!engineOrError.ok) return engineOrError;
|
|
28977
|
+
const executionEngine = engineOrError.value;
|
|
28955
28978
|
logger59?.info("Executing workflow", {
|
|
28956
28979
|
workflowName: workflow.name,
|
|
28957
28980
|
inputCount: Object.keys(inputs).length,
|
|
28958
28981
|
...options?.phaseTimeoutMs !== void 0 ? { phaseTimeoutMs: options.phaseTimeoutMs } : {}
|
|
28959
28982
|
});
|
|
28960
28983
|
const startTime = getTimeProvider().now();
|
|
28961
|
-
const result = options?.phaseTimeoutMs !== void 0 ? await
|
|
28984
|
+
const result = options?.phaseTimeoutMs !== void 0 ? await executionEngine.execute(workflow, inputs, { phaseTimeoutMs: options.phaseTimeoutMs }) : await executionEngine.execute(workflow, inputs);
|
|
28962
28985
|
if (!result.ok) {
|
|
28963
28986
|
logger59?.error("Workflow execution failed", result.error, {
|
|
28964
28987
|
workflowName: workflow.name
|
|
@@ -45357,7 +45380,7 @@ async function tryIssueTriage(task) {
|
|
|
45357
45380
|
try {
|
|
45358
45381
|
const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
|
|
45359
45382
|
if (issueMatch === null) return null;
|
|
45360
|
-
const { createIssueTriage } = await import("./issue-triage-
|
|
45383
|
+
const { createIssueTriage } = await import("./issue-triage-BOGQS5GP.js");
|
|
45361
45384
|
const triage = createIssueTriage();
|
|
45362
45385
|
const owner = issueMatch[1] ?? "";
|
|
45363
45386
|
const num = issueMatch[2] ?? "";
|
|
@@ -47399,7 +47422,7 @@ ${contextBlock}`;
|
|
|
47399
47422
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
47400
47423
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
47401
47424
|
try {
|
|
47402
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47425
|
+
const { executeVoting } = await import("./consensus-vote-YYHQHD7V.js");
|
|
47403
47426
|
const votingResult = await executeVoting(
|
|
47404
47427
|
{
|
|
47405
47428
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -56021,4 +56044,4 @@ export {
|
|
|
56021
56044
|
shutdownFeedbackSubscriber,
|
|
56022
56045
|
createEventBusBridge
|
|
56023
56046
|
};
|
|
56024
|
-
//# sourceMappingURL=chunk-
|
|
56047
|
+
//# sourceMappingURL=chunk-EGO754SU.js.map
|