nexus-agents 2.178.0 → 2.178.1

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.
@@ -46,7 +46,7 @@ import {
46
46
  } from "./chunk-OQLFRJCW.js";
47
47
 
48
48
  // src/version.ts
49
- var VERSION = true ? "2.178.0" : "dev";
49
+ var VERSION = true ? "2.178.1" : "dev";
50
50
 
51
51
  // src/config/schemas-core.ts
52
52
  import { z } from "zod";
@@ -2188,7 +2188,7 @@ async function runDoctorFix(result) {
2188
2188
  writeLine2("\u2500".repeat(40));
2189
2189
  let fixCount = 0;
2190
2190
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2191
- const { runSetup } = await import("./setup-command-MJP66PED.js");
2191
+ const { runSetup } = await import("./setup-command-S5NZVYFW.js");
2192
2192
  const setupResult = runSetup({
2193
2193
  skipMcp: true,
2194
2194
  skipRules: true,
@@ -2301,4 +2301,4 @@ export {
2301
2301
  startStdioServer,
2302
2302
  closeServer
2303
2303
  };
2304
- //# sourceMappingURL=chunk-VDYFOQXY.js.map
2304
+ //# sourceMappingURL=chunk-BDZJVMEF.js.map
@@ -8,7 +8,7 @@ import {
8
8
  checkSqlite,
9
9
  defaultConfig,
10
10
  initDataDirectories
11
- } from "./chunk-VDYFOQXY.js";
11
+ } from "./chunk-BDZJVMEF.js";
12
12
  import {
13
13
  BUILT_IN_EXPERTS
14
14
  } from "./chunk-YPNQPT2F.js";
@@ -2001,4 +2001,4 @@ export {
2001
2001
  setupCommand,
2002
2002
  setupCommandAsync
2003
2003
  };
2004
- //# sourceMappingURL=chunk-AIBM5TJS.js.map
2004
+ //# sourceMappingURL=chunk-PSSNT4TL.js.map
@@ -21,7 +21,7 @@ import {
21
21
  DEFAULT_TASK_TTL_MS,
22
22
  DEFAULT_TOOL_RATE_LIMITS,
23
23
  clampTaskTtl
24
- } from "./chunk-VDYFOQXY.js";
24
+ } from "./chunk-BDZJVMEF.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-LJ36QD7F.js";
@@ -27559,6 +27559,10 @@ function getAllowedWorkflowDirs(deps) {
27559
27559
  }
27560
27560
  return allowedDirs;
27561
27561
  }
27562
+ function deriveWorkflowStatus(steps) {
27563
+ if (steps.length === 0) return "failed";
27564
+ return steps.some((s) => s.status === "failed") ? "failed" : "completed";
27565
+ }
27562
27566
  function toStepResultSummary(result) {
27563
27567
  const summary = {
27564
27568
  stepId: result.stepId,
@@ -27739,13 +27743,16 @@ async function executeWorkflow(deps, workflow, inputs, options) {
27739
27743
  durationMs: getTimeProvider().now() - startTime,
27740
27744
  stepCount: workflowResult.stepResults.length
27741
27745
  });
27746
+ const stepResults = workflowResult.stepResults.map(toStepResultSummary);
27742
27747
  return {
27743
27748
  ok: true,
27744
27749
  value: {
27745
27750
  executionId: workflowResult.executionId,
27746
27751
  workflowName: workflowResult.workflowName,
27747
- status: "completed",
27748
- stepResults: workflowResult.stepResults.map(toStepResultSummary),
27752
+ // #4351: was hardcoded 'completed'. A run whose steps all failed —
27753
+ // e.g. every adapter out of capacity — reported success to the caller.
27754
+ status: deriveWorkflowStatus(stepResults),
27755
+ stepResults,
27749
27756
  output: workflowResult.output,
27750
27757
  durationMs: workflowResult.totalDurationMs
27751
27758
  }
@@ -40023,9 +40030,10 @@ async function handleRunGraphWorkflow(input, logger58) {
40023
40030
  checkpointCount
40024
40031
  });
40025
40032
  }
40033
+ const nodeStatus = result.value.nodeResults.some((n) => n.status === "failed") ? "failed" : "completed";
40026
40034
  return {
40027
40035
  workflow: input.workflow,
40028
- status: "completed",
40036
+ status: nodeStatus,
40029
40037
  finalState: result.value.finalState,
40030
40038
  stepsExecuted: result.value.stepsExecuted,
40031
40039
  nodesExecuted: result.value.nodeResults.length,
@@ -45331,13 +45339,13 @@ function buildScanSummary(total, confirmed, falsePositives, osvCount) {
45331
45339
  }
45332
45340
 
45333
45341
  // src/security/quality-gate.ts
45334
- async function runCommandCheck(name, command, args) {
45342
+ async function runCommandCheck(name, command, args, cwd) {
45335
45343
  const start = Date.now();
45336
45344
  try {
45337
45345
  const { execFile: execFile2 } = await import("child_process");
45338
45346
  const { promisify: promisify2 } = await import("util");
45339
45347
  const exec2 = promisify2(execFile2);
45340
- await exec2(command, [...args], { timeout: 12e4 });
45348
+ await exec2(command, [...args], { timeout: 12e4, cwd });
45341
45349
  return {
45342
45350
  name,
45343
45351
  verdict: "pass",
@@ -45355,16 +45363,16 @@ async function runCommandCheck(name, command, args) {
45355
45363
  }
45356
45364
  }
45357
45365
  function checkTypeCheck(projectDir) {
45358
- return () => runCommandCheck("type_check", "npx", ["tsc", "--noEmit", "--project", projectDir]);
45366
+ return () => runCommandCheck("type_check", "npx", ["tsc", "--noEmit", "--project", projectDir], projectDir);
45359
45367
  }
45360
45368
  function checkLint(projectDir) {
45361
- return () => runCommandCheck("lint", "npx", ["eslint", "--max-warnings", "0", projectDir]);
45369
+ return () => runCommandCheck("lint", "npx", ["eslint", "--max-warnings", "0", projectDir], projectDir);
45362
45370
  }
45363
45371
  function checkTests(projectDir) {
45364
- return () => runCommandCheck("tests", "npx", ["vitest", "run", "--dir", projectDir]);
45372
+ return () => runCommandCheck("tests", "npx", ["vitest", "run", "--dir", projectDir], projectDir);
45365
45373
  }
45366
- function checkBuild() {
45367
- return () => runCommandCheck("build", "pnpm", ["build"]);
45374
+ function checkBuild(projectDir) {
45375
+ return () => runCommandCheck("build", "pnpm", ["build"], projectDir);
45368
45376
  }
45369
45377
  function aggregateResults2(checks) {
45370
45378
  let pass = 0;
@@ -48144,7 +48152,7 @@ function buildCheck(name, projectDir) {
48144
48152
  case "tests":
48145
48153
  return checkTests(projectDir);
48146
48154
  case "build":
48147
- return checkBuild();
48155
+ return checkBuild(projectDir);
48148
48156
  case "security":
48149
48157
  return checkSecurityScan(projectDir);
48150
48158
  }
@@ -54138,4 +54146,4 @@ export {
54138
54146
  shutdownFeedbackSubscriber,
54139
54147
  createEventBusBridge
54140
54148
  };
54141
- //# sourceMappingURL=chunk-HEYVV4XQ.js.map
54149
+ //# sourceMappingURL=chunk-VFGPZ7FX.js.map