nexus-agents 8.38.1 → 8.38.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.
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-D3JOQTLZ.js";
10
+ } from "./chunk-RFKWVP7I.js";
11
11
  import {
12
12
  JsonlStore,
13
13
  SECURITY_KEYWORDS,
@@ -2173,4 +2173,4 @@ export {
2173
2173
  runImprovementReview,
2174
2174
  registerImprovementReviewTool
2175
2175
  };
2176
- //# sourceMappingURL=chunk-FLN4PWTS.js.map
2176
+ //# sourceMappingURL=chunk-4OIZ763R.js.map
@@ -23,10 +23,10 @@ import {
23
23
  toolSuccessStructured,
24
24
  withProgressHeartbeat,
25
25
  wrapToolWithTimeout
26
- } from "./chunk-D3JOQTLZ.js";
26
+ } from "./chunk-RFKWVP7I.js";
27
27
  import {
28
28
  VERSION
29
- } from "./chunk-KZ2P4XMK.js";
29
+ } from "./chunk-IMYGE2GM.js";
30
30
  import {
31
31
  assessPanelIndependence,
32
32
  countDistinctModels,
@@ -7806,4 +7806,4 @@ export {
7806
7806
  CONSENSUS_VOTE_TOOL_SCHEMA,
7807
7807
  registerConsensusVoteTool
7808
7808
  };
7809
- //# sourceMappingURL=chunk-37DHYKJ6.js.map
7809
+ //# sourceMappingURL=chunk-A3BCACYO.js.map
@@ -8,7 +8,7 @@ import {
8
8
  NODE_ENGINE_RANGE,
9
9
  VERSION,
10
10
  isNodeVersionSupported
11
- } from "./chunk-KZ2P4XMK.js";
11
+ } from "./chunk-IMYGE2GM.js";
12
12
  import {
13
13
  capitalize
14
14
  } from "./chunk-7LP6VJRP.js";
@@ -1228,7 +1228,7 @@ async function runDoctorFix(result) {
1228
1228
  writeLine2("\u2500".repeat(40));
1229
1229
  let fixCount = 0;
1230
1230
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
1231
- const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-NS7BF5KX.js");
1231
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-STWPI2EU.js");
1232
1232
  const outcome = describeDataDirFix2(initDataDirectories2());
1233
1233
  writeLine2(outcome.line);
1234
1234
  if (outcome.counted) fixCount++;
@@ -1330,4 +1330,4 @@ export {
1330
1330
  startStdioServer,
1331
1331
  closeServer
1332
1332
  };
1333
- //# sourceMappingURL=chunk-Y2TRWRQP.js.map
1333
+ //# sourceMappingURL=chunk-AB5FT2E6.js.map
@@ -1,6 +1,6 @@
1
1
  // src/version.ts
2
2
  import semver from "semver";
3
- var VERSION = true ? "8.38.1" : "dev";
3
+ var VERSION = true ? "8.38.2" : "dev";
4
4
  var NODE_ENGINE_RANGE = ">=22.5.0";
5
5
  function isNodeVersionSupported(version) {
6
6
  return semver.satisfies(version, NODE_ENGINE_RANGE);
@@ -11,4 +11,4 @@ export {
11
11
  NODE_ENGINE_RANGE,
12
12
  isNodeVersionSupported
13
13
  };
14
- //# sourceMappingURL=chunk-KZ2P4XMK.js.map
14
+ //# sourceMappingURL=chunk-IMYGE2GM.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-KZ2P4XMK.js";
3
+ } from "./chunk-IMYGE2GM.js";
4
4
  import {
5
5
  emitClawGuardViolation
6
6
  } from "./chunk-CXKSY4C4.js";
@@ -2306,4 +2306,4 @@ export {
2306
2306
  VOTING_THRESHOLDS,
2307
2307
  ConsensusMetricsSchema
2308
2308
  };
2309
- //# sourceMappingURL=chunk-D3JOQTLZ.js.map
2309
+ //# sourceMappingURL=chunk-RFKWVP7I.js.map
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-Y2TRWRQP.js";
24
+ } from "./chunk-AB5FT2E6.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-YJJTXGHE.js";
@@ -55,7 +55,7 @@ import {
55
55
  toJobSummary,
56
56
  updateStage,
57
57
  writeJobCancelled
58
- } from "./chunk-37DHYKJ6.js";
58
+ } from "./chunk-A3BCACYO.js";
59
59
  import {
60
60
  allOf,
61
61
  anyOf
@@ -75,7 +75,7 @@ import {
75
75
  } from "./chunk-IURDLL5M.js";
76
76
  import {
77
77
  withPrerequisite
78
- } from "./chunk-FLN4PWTS.js";
78
+ } from "./chunk-4OIZ763R.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-D3JOQTLZ.js";
103
+ } from "./chunk-RFKWVP7I.js";
104
104
  import {
105
105
  createAuditTrail,
106
106
  createGraphAuditBridge,
@@ -13541,6 +13541,21 @@ var DEFAULT_RECOVERY_STRATEGIES = {
13541
13541
  }
13542
13542
  };
13543
13543
 
13544
+ // src/agents/resilience/failure-severity.ts
13545
+ var SEVERITY_THRESHOLDS = [
13546
+ [0.3, "low"],
13547
+ [0.5, "medium"],
13548
+ [0.7, "high"],
13549
+ [1, "critical"]
13550
+ ];
13551
+ function severityForConfidence(confidence) {
13552
+ let severity = "low";
13553
+ for (const [threshold, level] of SEVERITY_THRESHOLDS) {
13554
+ if (confidence >= threshold) severity = level;
13555
+ }
13556
+ return severity;
13557
+ }
13558
+
13544
13559
  // src/agents/resilience/failure-detector.ts
13545
13560
  var PREMATURE_ACTION_INDICATORS = [
13546
13561
  /guessing|assuming|probably|likely|might be/i,
@@ -13760,16 +13775,7 @@ var FailureDetector = class {
13760
13775
  }
13761
13776
  /** Creates a detected failure object. */
13762
13777
  createFailure(archetype, indicators, confidence) {
13763
- const severityMap = {
13764
- 0.3: "low",
13765
- 0.5: "medium",
13766
- 0.7: "high",
13767
- 1: "critical"
13768
- };
13769
- let severity = "low";
13770
- for (const [threshold, sev] of Object.entries(severityMap)) {
13771
- if (confidence >= parseFloat(threshold)) severity = sev;
13772
- }
13778
+ const severity = severityForConfidence(confidence);
13773
13779
  return {
13774
13780
  archetype,
13775
13781
  severity,
@@ -45849,7 +45855,7 @@ function buildVotingInput(plan, config) {
45849
45855
  }
45850
45856
  async function executeSingleVote(plan, config, log) {
45851
45857
  try {
45852
- const { executeVoting } = await import("./consensus-vote-TBQLXU2Y.js");
45858
+ const { executeVoting } = await import("./consensus-vote-VU4ZMMMM.js");
45853
45859
  const input = buildVotingInput(plan, config);
45854
45860
  const result = await executeVoting(input, log);
45855
45861
  return parseVotingResult(result);
@@ -47641,7 +47647,7 @@ ${contextBlock}`;
47641
47647
  const strategy = config.votingStrategy ?? "higher_order";
47642
47648
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47643
47649
  try {
47644
- const { executeVoting } = await import("./consensus-vote-TBQLXU2Y.js");
47650
+ const { executeVoting } = await import("./consensus-vote-VU4ZMMMM.js");
47645
47651
  const votingResult = await executeVoting(
47646
47652
  {
47647
47653
  proposal: buildVoteProposal(plan, research),
@@ -56322,4 +56328,4 @@ export {
56322
56328
  startPipelineEventBridge,
56323
56329
  shutdownPipelineEventBridge
56324
56330
  };
56325
- //# sourceMappingURL=chunk-OF2GHPW6.js.map
56331
+ //# sourceMappingURL=chunk-UV5MKV4J.js.map