nexus-agents 6.3.0 → 6.3.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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-IRRAGZFM.js";
3
+ } from "./chunk-5STSWEDG.js";
4
4
  import {
5
5
  emitClawGuardViolation
6
6
  } from "./chunk-QOF5S5Z5.js";
@@ -2135,4 +2135,4 @@ export {
2135
2135
  VOTING_THRESHOLDS,
2136
2136
  ConsensusMetricsSchema
2137
2137
  };
2138
- //# sourceMappingURL=chunk-LMAIZ3FD.js.map
2138
+ //# sourceMappingURL=chunk-5M3ZAK2V.js.map
@@ -0,0 +1,7 @@
1
+ // src/version.ts
2
+ var VERSION = true ? "6.3.2" : "dev";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-5STSWEDG.js.map
@@ -23,7 +23,7 @@ import {
23
23
  toolSuccessStructured,
24
24
  withProgressHeartbeat,
25
25
  wrapToolWithTimeout
26
- } from "./chunk-LMAIZ3FD.js";
26
+ } from "./chunk-5M3ZAK2V.js";
27
27
  import {
28
28
  assessPanelIndependence,
29
29
  countDistinctModels,
@@ -6878,4 +6878,4 @@ export {
6878
6878
  CONSENSUS_VOTE_TOOL_SCHEMA,
6879
6879
  registerConsensusVoteTool
6880
6880
  };
6881
- //# sourceMappingURL=chunk-IOGNN2JB.js.map
6881
+ //# sourceMappingURL=chunk-6THNSXDV.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-OQB3XC5O.js";
7
7
  import {
8
8
  VERSION
9
- } from "./chunk-IRRAGZFM.js";
9
+ } from "./chunk-5STSWEDG.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-GRIO6YXJ.js");
1204
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-NNBWZ2BK.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-D3EQF2BM.js.map
1306
+ //# sourceMappingURL=chunk-BT534KOS.js.map
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-D3EQF2BM.js";
24
+ } from "./chunk-BT534KOS.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-M2TFLYPC.js";
@@ -47,7 +47,7 @@ import {
47
47
  simulationDeniedResult,
48
48
  toJobSummary,
49
49
  writeJobCancelled
50
- } from "./chunk-IOGNN2JB.js";
50
+ } from "./chunk-6THNSXDV.js";
51
51
  import {
52
52
  allOf
53
53
  } from "./chunk-OQB3XC5O.js";
@@ -64,7 +64,7 @@ import {
64
64
  } from "./chunk-JYTDEFY6.js";
65
65
  import {
66
66
  withPrerequisite
67
- } from "./chunk-PLBMOZKM.js";
67
+ } from "./chunk-ZTH7YD3J.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-LMAIZ3FD.js";
91
+ } from "./chunk-5M3ZAK2V.js";
92
92
  import {
93
93
  createAuditTrail,
94
94
  createGraphAuditBridge,
@@ -46708,7 +46708,6 @@ async function queryOsvBatch(packages, config = DEFAULT_OSV_CONFIG) {
46708
46708
 
46709
46709
  // src/pipeline/security-gate.ts
46710
46710
  var logger45 = createLogger({ component: "security-gate" });
46711
- var lastOsvVulnerabilities = [];
46712
46711
  var BLOCKING_SEVERITIES = /* @__PURE__ */ new Set(["critical", "high"]);
46713
46712
  function checkSecurityScan(targetDir, rulesets = ["p/default"], config = {}) {
46714
46713
  return async () => {
@@ -46734,7 +46733,6 @@ function checkSecurityScan(targetDir, rulesets = ["p/default"], config = {}) {
46734
46733
  async function runSecurityPipeline(sarifResult, targetDir, config, start) {
46735
46734
  const osv = await runOsvCheck(targetDir, config.enableOsv ?? true);
46736
46735
  const osvVulns = osv.vulnerabilities;
46737
- lastOsvVulnerabilities = osvVulns;
46738
46736
  const blocking = getBlockingFindings(sarifResult.findings);
46739
46737
  const details = buildScanSummary(
46740
46738
  sarifResult.totalFindings,
@@ -46760,8 +46758,10 @@ var OSV_EMPTY = {
46760
46758
  vulnerabilities: [],
46761
46759
  failedLookups: 0,
46762
46760
  queried: 0,
46763
- declared: 0
46761
+ declared: 0,
46762
+ checkFailed: false
46764
46763
  };
46764
+ var OSV_CHECK_FAILED = { ...OSV_EMPTY, checkFailed: true };
46765
46765
  var OSV_DEPENDENCY_CAP = 20;
46766
46766
  async function runOsvCheck(targetDir, enabled) {
46767
46767
  if (!enabled) return OSV_EMPTY;
@@ -46784,33 +46784,40 @@ async function runOsvCheck(targetDir, enabled) {
46784
46784
  // `vulnerabilities` array with an `error` set, which read as "clean".
46785
46785
  failedLookups: results.filter((r) => r.error !== null).length,
46786
46786
  queried: deps.length,
46787
- declared
46787
+ declared,
46788
+ // The check ran. Individual lookups may still have errored — that is
46789
+ // `failedLookups`, a different and finer-grained fact.
46790
+ checkFailed: false
46788
46791
  };
46789
46792
  } catch (error) {
46790
- logger45.debug("OSV check skipped", { error: String(error) });
46791
- return OSV_EMPTY;
46793
+ logger45.warn("OSV check did not run", { error: String(error) });
46794
+ return OSV_CHECK_FAILED;
46792
46795
  }
46793
46796
  }
46794
46797
  function getBlockingFindings(findings) {
46795
46798
  return findings.filter((f) => BLOCKING_SEVERITIES.has(f.severity));
46796
46799
  }
46800
+ function osvCoverageNote(blocking, osvCount, osv) {
46801
+ if (osv?.checkFailed === true) {
46802
+ return "OSV check did not run (error) \u2014 dependency vulnerabilities unknown";
46803
+ }
46804
+ if (osv !== void 0 && osv.failedLookups > 0) {
46805
+ return `OSV not checked for ${String(osv.failedLookups)} of ${String(osv.queried)} dependencies (lookup failed)`;
46806
+ }
46807
+ if (blocking === 0 && osvCount === 0) return "none blocking";
46808
+ return "";
46809
+ }
46797
46810
  function buildScanSummary(total, blocking, osvCount, osv) {
46798
46811
  const parts = [`${String(total)} SAST findings`];
46799
46812
  if (blocking > 0) parts.push(`${String(blocking)} blocking`);
46800
46813
  if (osvCount > 0) parts.push(`${String(osvCount)} OSV dependency vulnerabilities`);
46801
- if (osv !== void 0 && osv.failedLookups > 0) {
46802
- parts.push(
46803
- `OSV not checked for ${String(osv.failedLookups)} of ${String(osv.queried)} dependencies (lookup failed)`
46804
- );
46805
- } else if (blocking === 0 && osvCount === 0) {
46806
- parts.push("none blocking");
46807
- }
46814
+ parts.push(osvCoverageNote(blocking, osvCount, osv));
46808
46815
  if (osv !== void 0 && osv.declared > osv.queried) {
46809
46816
  parts.push(
46810
46817
  `OSV covered ${String(osv.queried)} of ${String(osv.declared)} declared dependencies`
46811
46818
  );
46812
46819
  }
46813
- return parts.join(", ");
46820
+ return parts.filter((p) => p !== "").join(", ");
46814
46821
  }
46815
46822
 
46816
46823
  // src/security/quality-gate-commands.ts
@@ -47358,7 +47365,7 @@ ${contextBlock}`;
47358
47365
  const strategy = config.votingStrategy ?? "higher_order";
47359
47366
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47360
47367
  try {
47361
- const { executeVoting } = await import("./consensus-vote-N35DUGJH.js");
47368
+ const { executeVoting } = await import("./consensus-vote-YUVGQZL7.js");
47362
47369
  const votingResult = await executeVoting(
47363
47370
  {
47364
47371
  proposal: buildVoteProposal(plan, research),
@@ -55989,4 +55996,4 @@ export {
55989
55996
  shutdownFeedbackSubscriber,
55990
55997
  createEventBusBridge
55991
55998
  };
55992
- //# sourceMappingURL=chunk-VJ3YAU2K.js.map
55999
+ //# sourceMappingURL=chunk-XHKHC44U.js.map