nexus-agents 8.42.6 → 8.42.8

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.
@@ -23,10 +23,10 @@ import {
23
23
  toolSuccessStructured,
24
24
  withProgressHeartbeat,
25
25
  wrapToolWithTimeout
26
- } from "./chunk-CBZDBSTC.js";
26
+ } from "./chunk-YKQ4NWHP.js";
27
27
  import {
28
28
  VERSION
29
- } from "./chunk-L5PONUPR.js";
29
+ } from "./chunk-QJ6MN5QI.js";
30
30
  import {
31
31
  assessPanelIndependence,
32
32
  countDistinctModels,
@@ -7830,4 +7830,4 @@ export {
7830
7830
  CONSENSUS_VOTE_TOOL_SCHEMA,
7831
7831
  registerConsensusVoteTool
7832
7832
  };
7833
- //# sourceMappingURL=chunk-NX6CP5PU.js.map
7833
+ //# sourceMappingURL=chunk-IYQ4CN2Y.js.map
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-NOWQF44H.js";
24
+ } from "./chunk-MM3RHIOQ.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-HTSKUXUY.js";
@@ -55,7 +55,7 @@ import {
55
55
  toJobSummary,
56
56
  updateStage,
57
57
  writeJobCancelled
58
- } from "./chunk-NX6CP5PU.js";
58
+ } from "./chunk-IYQ4CN2Y.js";
59
59
  import {
60
60
  allOf,
61
61
  anyOf
@@ -75,7 +75,7 @@ import {
75
75
  } from "./chunk-NQXISQVW.js";
76
76
  import {
77
77
  withPrerequisite
78
- } from "./chunk-5H4NVDUR.js";
78
+ } from "./chunk-TWU6UP7D.js";
79
79
  import {
80
80
  NOOP_NOTIFIER,
81
81
  RateLimiter,
@@ -100,7 +100,7 @@ import {
100
100
  withAuditTrail,
101
101
  withProgressHeartbeat,
102
102
  wrapToolWithTimeout
103
- } from "./chunk-CBZDBSTC.js";
103
+ } from "./chunk-YKQ4NWHP.js";
104
104
  import {
105
105
  createAuditTrail,
106
106
  createGraphAuditBridge,
@@ -12144,6 +12144,13 @@ function scoreFor(suppliedScore, coverage, validVulns, calculateScore2) {
12144
12144
  if (coverage === "partial") return calculateScore2(validVulns);
12145
12145
  return typeof suppliedScore === "number" && suppliedScore >= 0 && suppliedScore <= 100 ? suppliedScore : calculateScore2(validVulns);
12146
12146
  }
12147
+ function heuristicSecurityOutcome(vulnerabilities, calculateScore2 = calculateSecurityScore) {
12148
+ const findingsCoverage = vulnerabilities.length > 0 ? "partial" : "unmeasured";
12149
+ return {
12150
+ findingsCoverage,
12151
+ securityScore: scoreFor(void 0, findingsCoverage, vulnerabilities, calculateScore2)
12152
+ };
12153
+ }
12147
12154
  function buildSecurityCore(p, validVulns, rejectedFindings, calculateScore2) {
12148
12155
  const conf = p["confidence"];
12149
12156
  const findingsCoverage = coverageFor(rejectedFindings, validVulns.length);
@@ -12172,12 +12179,12 @@ function parseSecurityResult(text, calculateScore2, validator) {
12172
12179
  return result;
12173
12180
  } catch {
12174
12181
  const heuristicVulns = detectHeuristicVulnerabilities(text);
12175
- const findingsCoverage = heuristicVulns.length > 0 ? "partial" : "unmeasured";
12182
+ const outcome = heuristicSecurityOutcome(heuristicVulns, calculateScore2);
12176
12183
  return {
12177
12184
  content: text,
12178
12185
  vulnerabilities: heuristicVulns,
12179
- securityScore: scoreFor(void 0, findingsCoverage, heuristicVulns, calculateScore2),
12180
- findingsCoverage,
12186
+ securityScore: outcome.securityScore,
12187
+ findingsCoverage: outcome.findingsCoverage,
12181
12188
  confidence: heuristicVulns.length > 0 ? 0.5 : 0.3
12182
12189
  };
12183
12190
  }
@@ -12230,12 +12237,12 @@ Analyze for security vulnerabilities and provide findings in the specified JSON
12230
12237
  enableCweMapping: this.expertOptions.enableCweMapping,
12231
12238
  minSeverity: this.expertOptions.minSeverity
12232
12239
  });
12233
- const securityScore = calculateSecurityScore(vulnerabilities);
12240
+ const { findingsCoverage, securityScore } = heuristicSecurityOutcome(vulnerabilities);
12234
12241
  const result = {
12235
12242
  content: "Heuristic security analysis. Model adapter required for comprehensive review.",
12236
12243
  vulnerabilities,
12237
12244
  securityScore,
12238
- findingsCoverage: "complete",
12245
+ findingsCoverage,
12239
12246
  recommendations: generateHeuristicRecommendations2(vulnerabilities),
12240
12247
  warnings: generateSecurityWarnings(vulnerabilities),
12241
12248
  confidence: vulnerabilities.length > 0 ? 0.6 : 0.4
@@ -30949,6 +30956,13 @@ function addPipelineState(builder) {
30949
30956
  builder.addState("pipelineStatus", overwrite("running"));
30950
30957
  builder.addState("error", overwrite(""));
30951
30958
  }
30959
+ function buildStageResult(stageId, result) {
30960
+ return {
30961
+ stageId,
30962
+ status: result.success ? "completed" : "failed",
30963
+ ...result.metadata["stub"] === true ? { stub: true } : {}
30964
+ };
30965
+ }
30952
30966
  function createStageHandler(stage, registry) {
30953
30967
  const plugin = registry?.resolve(stage.pluginId);
30954
30968
  if (plugin !== void 0) {
@@ -30961,7 +30975,7 @@ function createStageHandler(stage, registry) {
30961
30975
  const result = await plugin.execute(stage, ctx);
30962
30976
  return {
30963
30977
  currentStage: stage.id,
30964
- stageResults: [{ stageId: stage.id, status: result.success ? "completed" : "failed" }],
30978
+ stageResults: [buildStageResult(stage.id, result)],
30965
30979
  ...result.outputArtifacts.length > 0 ? { artifacts: result.outputArtifacts.map((a) => a.id) } : {}
30966
30980
  };
30967
30981
  };
@@ -45943,7 +45957,7 @@ function buildVotingInput(plan, config) {
45943
45957
  }
45944
45958
  async function executeSingleVote(plan, config, log) {
45945
45959
  try {
45946
- const { executeVoting } = await import("./consensus-vote-N5PJYDLM.js");
45960
+ const { executeVoting } = await import("./consensus-vote-22R2MMZF.js");
45947
45961
  const input = buildVotingInput(plan, config);
45948
45962
  const result = await executeVoting(input, log);
45949
45963
  return parseVotingResult(result);
@@ -47735,7 +47749,7 @@ ${contextBlock}`;
47735
47749
  const strategy = config.votingStrategy ?? "higher_order";
47736
47750
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47737
47751
  try {
47738
- const { executeVoting } = await import("./consensus-vote-N5PJYDLM.js");
47752
+ const { executeVoting } = await import("./consensus-vote-22R2MMZF.js");
47739
47753
  const votingResult = await executeVoting(
47740
47754
  {
47741
47755
  proposal: buildVoteProposal(plan, research),
@@ -56416,4 +56430,4 @@ export {
56416
56430
  startPipelineEventBridge,
56417
56431
  shutdownPipelineEventBridge
56418
56432
  };
56419
- //# sourceMappingURL=chunk-7RNUHPWR.js.map
56433
+ //# sourceMappingURL=chunk-KT5YOGS5.js.map