nexus-agents 2.80.0 → 2.80.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.
Files changed (104) hide show
  1. package/dist/{child-mcp-config-SM5I7USN.js → child-mcp-config-Q6UMCPGZ.js} +2 -2
  2. package/dist/{chunk-EKRMWVAH.js → chunk-23XU4LE2.js} +4 -4
  3. package/dist/{chunk-YGKPWUJ6.js → chunk-33LDLZCC.js} +2 -2
  4. package/dist/{chunk-BSIGP5XF.js → chunk-54UT2JUQ.js} +2 -2
  5. package/dist/{chunk-FAJAWO42.js → chunk-5WN3WGXG.js} +3 -3
  6. package/dist/{chunk-JXDDSNEK.js → chunk-7UM5XRGG.js} +2 -2
  7. package/dist/{chunk-4XGKCVJL.js → chunk-7ZKZ7K7J.js} +2 -2
  8. package/dist/{chunk-AYZ6P7CK.js → chunk-ALDKPBOZ.js} +2 -2
  9. package/dist/{chunk-6CJIKX6I.js → chunk-D3MQ4U2R.js} +44 -16
  10. package/dist/{chunk-6CJIKX6I.js.map → chunk-D3MQ4U2R.js.map} +1 -1
  11. package/dist/{chunk-2DBPZQLO.js → chunk-D4NEYNBO.js} +2 -2
  12. package/dist/{chunk-HBKZ2DJK.js → chunk-D5C5N5Q4.js} +2 -2
  13. package/dist/{chunk-ZU2Q3DWE.js → chunk-EPZMFIAX.js} +100 -7
  14. package/dist/chunk-EPZMFIAX.js.map +1 -0
  15. package/dist/{chunk-J5XEJHIQ.js → chunk-GODRGVF4.js} +3 -3
  16. package/dist/{chunk-EVZ7YR7H.js → chunk-HR7C4DSA.js} +3 -3
  17. package/dist/{chunk-JLWKHYIU.js → chunk-I5KYDT23.js} +2 -2
  18. package/dist/{chunk-SHVGZK4A.js → chunk-L7433REX.js} +3 -3
  19. package/dist/{chunk-GNRANMQ3.js → chunk-LDD272PW.js} +941 -874
  20. package/dist/chunk-LDD272PW.js.map +1 -0
  21. package/dist/{chunk-Q2U6SFN2.js → chunk-MUIA32LU.js} +2 -2
  22. package/dist/{chunk-RIUUFBX4.js → chunk-MVIYQMQM.js} +2 -2
  23. package/dist/{chunk-OO6MTUDS.js → chunk-NALIFUBD.js} +3 -3
  24. package/dist/{chunk-CTSESEFA.js → chunk-NCBWA6RU.js} +2 -2
  25. package/dist/{chunk-QVHXEQFM.js → chunk-O2ECPTFH.js} +3 -3
  26. package/dist/{chunk-FJHZW7CR.js → chunk-Q4DXTNGR.js} +2 -2
  27. package/dist/{chunk-UVALD724.js → chunk-SX3P2PD2.js} +2 -2
  28. package/dist/{chunk-YMT6H2HQ.js → chunk-T4E6UFFC.js} +7 -3
  29. package/dist/{chunk-YMT6H2HQ.js.map → chunk-T4E6UFFC.js.map} +1 -1
  30. package/dist/{chunk-SJUSQGKH.js → chunk-TFTP7EUQ.js} +7 -7
  31. package/dist/{chunk-VS4KB3AX.js → chunk-UEKTTIDA.js} +7 -7
  32. package/dist/{chunk-UGXR4PAY.js → chunk-WZ2T4T7N.js} +5 -5
  33. package/dist/{cli-circuit-breaker-JGX54DAD.js → cli-circuit-breaker-EUERR2HK.js} +4 -4
  34. package/dist/cli.js +89 -80
  35. package/dist/cli.js.map +1 -1
  36. package/dist/{composite-router-UYFYSMBT.js → composite-router-ZP72LQFH.js} +2 -2
  37. package/dist/{consensus-vote-BZ6JSN67.js → consensus-vote-TU3TQ4VH.js} +11 -11
  38. package/dist/{context-retriever-G23VVJ5S.js → context-retriever-OTLV46DF.js} +5 -5
  39. package/dist/{doctor-deep-OF2LXZ6A.js → doctor-deep-ZMBSG2DF.js} +3 -3
  40. package/dist/expert-bridge-IK4TY7HA.js +11 -0
  41. package/dist/{factory-I54TX7OY.js → factory-45NHZFLK.js} +4 -4
  42. package/dist/{factory-UHDCLEUE.js → factory-QDHYIYVE.js} +5 -5
  43. package/dist/index.d.ts +33 -0
  44. package/dist/index.js +24 -24
  45. package/dist/{init-opencode-FE7HVWQL.js → init-opencode-WFL4OXMB.js} +5 -5
  46. package/dist/{issue-triage-7NR5NQUY.js → issue-triage-UHFCGTEJ.js} +4 -4
  47. package/dist/{registry-command-NZLX7ZFV.js → registry-command-YMZPSW7S.js} +2 -2
  48. package/dist/{repo-security-plan-74GJWJSV.js → repo-security-plan-TGDXTSHS.js} +3 -3
  49. package/dist/{research-helpers-synthesize-LFPEXRIV.js → research-helpers-synthesize-5BAN353Y.js} +3 -3
  50. package/dist/{routing-memory-Y2LSEQVS.js → routing-memory-RG3U2MC2.js} +2 -2
  51. package/dist/{session-memory-RCNQJDJR.js → session-memory-C5GC2JAX.js} +3 -3
  52. package/dist/{setup-command-ZPLPOJF2.js → setup-command-OXJ32UAI.js} +10 -10
  53. package/dist/{setup-config-F7VRWXY3.js → setup-config-KNMVMGDD.js} +3 -3
  54. package/dist/{setup-custom-api-XTJ6YZM6.js → setup-custom-api-4EYRKCHB.js} +4 -4
  55. package/dist/{tool-memory-COZK6SR7.js → tool-memory-LUXUOE6Q.js} +4 -4
  56. package/dist/{weather-report-O4XOYGPK.js → weather-report-3KSDTC7T.js} +2 -2
  57. package/package.json +1 -1
  58. package/dist/chunk-GNRANMQ3.js.map +0 -1
  59. package/dist/chunk-ZU2Q3DWE.js.map +0 -1
  60. package/dist/expert-bridge-6ZLD2NWD.js +0 -11
  61. /package/dist/{child-mcp-config-SM5I7USN.js.map → child-mcp-config-Q6UMCPGZ.js.map} +0 -0
  62. /package/dist/{chunk-EKRMWVAH.js.map → chunk-23XU4LE2.js.map} +0 -0
  63. /package/dist/{chunk-YGKPWUJ6.js.map → chunk-33LDLZCC.js.map} +0 -0
  64. /package/dist/{chunk-BSIGP5XF.js.map → chunk-54UT2JUQ.js.map} +0 -0
  65. /package/dist/{chunk-FAJAWO42.js.map → chunk-5WN3WGXG.js.map} +0 -0
  66. /package/dist/{chunk-JXDDSNEK.js.map → chunk-7UM5XRGG.js.map} +0 -0
  67. /package/dist/{chunk-4XGKCVJL.js.map → chunk-7ZKZ7K7J.js.map} +0 -0
  68. /package/dist/{chunk-AYZ6P7CK.js.map → chunk-ALDKPBOZ.js.map} +0 -0
  69. /package/dist/{chunk-2DBPZQLO.js.map → chunk-D4NEYNBO.js.map} +0 -0
  70. /package/dist/{chunk-HBKZ2DJK.js.map → chunk-D5C5N5Q4.js.map} +0 -0
  71. /package/dist/{chunk-J5XEJHIQ.js.map → chunk-GODRGVF4.js.map} +0 -0
  72. /package/dist/{chunk-EVZ7YR7H.js.map → chunk-HR7C4DSA.js.map} +0 -0
  73. /package/dist/{chunk-JLWKHYIU.js.map → chunk-I5KYDT23.js.map} +0 -0
  74. /package/dist/{chunk-SHVGZK4A.js.map → chunk-L7433REX.js.map} +0 -0
  75. /package/dist/{chunk-Q2U6SFN2.js.map → chunk-MUIA32LU.js.map} +0 -0
  76. /package/dist/{chunk-RIUUFBX4.js.map → chunk-MVIYQMQM.js.map} +0 -0
  77. /package/dist/{chunk-OO6MTUDS.js.map → chunk-NALIFUBD.js.map} +0 -0
  78. /package/dist/{chunk-CTSESEFA.js.map → chunk-NCBWA6RU.js.map} +0 -0
  79. /package/dist/{chunk-QVHXEQFM.js.map → chunk-O2ECPTFH.js.map} +0 -0
  80. /package/dist/{chunk-FJHZW7CR.js.map → chunk-Q4DXTNGR.js.map} +0 -0
  81. /package/dist/{chunk-UVALD724.js.map → chunk-SX3P2PD2.js.map} +0 -0
  82. /package/dist/{chunk-SJUSQGKH.js.map → chunk-TFTP7EUQ.js.map} +0 -0
  83. /package/dist/{chunk-VS4KB3AX.js.map → chunk-UEKTTIDA.js.map} +0 -0
  84. /package/dist/{chunk-UGXR4PAY.js.map → chunk-WZ2T4T7N.js.map} +0 -0
  85. /package/dist/{cli-circuit-breaker-JGX54DAD.js.map → cli-circuit-breaker-EUERR2HK.js.map} +0 -0
  86. /package/dist/{composite-router-UYFYSMBT.js.map → composite-router-ZP72LQFH.js.map} +0 -0
  87. /package/dist/{consensus-vote-BZ6JSN67.js.map → consensus-vote-TU3TQ4VH.js.map} +0 -0
  88. /package/dist/{context-retriever-G23VVJ5S.js.map → context-retriever-OTLV46DF.js.map} +0 -0
  89. /package/dist/{doctor-deep-OF2LXZ6A.js.map → doctor-deep-ZMBSG2DF.js.map} +0 -0
  90. /package/dist/{expert-bridge-6ZLD2NWD.js.map → expert-bridge-IK4TY7HA.js.map} +0 -0
  91. /package/dist/{factory-I54TX7OY.js.map → factory-45NHZFLK.js.map} +0 -0
  92. /package/dist/{factory-UHDCLEUE.js.map → factory-QDHYIYVE.js.map} +0 -0
  93. /package/dist/{init-opencode-FE7HVWQL.js.map → init-opencode-WFL4OXMB.js.map} +0 -0
  94. /package/dist/{issue-triage-7NR5NQUY.js.map → issue-triage-UHFCGTEJ.js.map} +0 -0
  95. /package/dist/{registry-command-NZLX7ZFV.js.map → registry-command-YMZPSW7S.js.map} +0 -0
  96. /package/dist/{repo-security-plan-74GJWJSV.js.map → repo-security-plan-TGDXTSHS.js.map} +0 -0
  97. /package/dist/{research-helpers-synthesize-LFPEXRIV.js.map → research-helpers-synthesize-5BAN353Y.js.map} +0 -0
  98. /package/dist/{routing-memory-Y2LSEQVS.js.map → routing-memory-RG3U2MC2.js.map} +0 -0
  99. /package/dist/{session-memory-RCNQJDJR.js.map → session-memory-C5GC2JAX.js.map} +0 -0
  100. /package/dist/{setup-command-ZPLPOJF2.js.map → setup-command-OXJ32UAI.js.map} +0 -0
  101. /package/dist/{setup-config-F7VRWXY3.js.map → setup-config-KNMVMGDD.js.map} +0 -0
  102. /package/dist/{setup-custom-api-XTJ6YZM6.js.map → setup-custom-api-4EYRKCHB.js.map} +0 -0
  103. /package/dist/{tool-memory-COZK6SR7.js.map → tool-memory-LUXUOE6Q.js.map} +0 -0
  104. /package/dist/{weather-report-O4XOYGPK.js.map → weather-report-3KSDTC7T.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createLogger
3
- } from "./chunk-YMT6H2HQ.js";
3
+ } from "./chunk-T4E6UFFC.js";
4
4
  import "./chunk-2JQXC3CK.js";
5
5
  import "./chunk-UP2VWCW5.js";
6
6
 
@@ -59,4 +59,4 @@ export {
59
59
  generateMcpConfig,
60
60
  getDefaultAllowedTools
61
61
  };
62
- //# sourceMappingURL=child-mcp-config-SM5I7USN.js.map
62
+ //# sourceMappingURL=child-mcp-config-Q6UMCPGZ.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  resolveToken
3
- } from "./chunk-CTSESEFA.js";
3
+ } from "./chunk-NCBWA6RU.js";
4
4
  import {
5
5
  GitHubProvider,
6
6
  ScmError
7
- } from "./chunk-UVALD724.js";
7
+ } from "./chunk-SX3P2PD2.js";
8
8
  import {
9
9
  err,
10
10
  ok
11
- } from "./chunk-YMT6H2HQ.js";
11
+ } from "./chunk-T4E6UFFC.js";
12
12
 
13
13
  // src/scm/factory.ts
14
14
  async function createScmProvider(config) {
@@ -41,4 +41,4 @@ export {
41
41
  createScmProvider,
42
42
  createGitHubProvider
43
43
  };
44
- //# sourceMappingURL=chunk-EKRMWVAH.js.map
44
+ //# sourceMappingURL=chunk-23XU4LE2.js.map
@@ -10,7 +10,7 @@ import {
10
10
  getTokenEstimator,
11
11
  isRateLimitLikeError,
12
12
  ok
13
- } from "./chunk-YMT6H2HQ.js";
13
+ } from "./chunk-T4E6UFFC.js";
14
14
 
15
15
  // src/adapters/base-adapter.ts
16
16
  var AdapterModelError = class extends ModelError {
@@ -707,4 +707,4 @@ export {
707
707
  DEFAULT_COLLECT_STREAM_MAX_CHUNKS,
708
708
  collectStream
709
709
  };
710
- //# sourceMappingURL=chunk-YGKPWUJ6.js.map
710
+ //# sourceMappingURL=chunk-33LDLZCC.js.map
@@ -5,7 +5,7 @@ import {
5
5
  MCP_TIMEOUTS,
6
6
  TEST_TIMEOUTS,
7
7
  WORKFLOW_TIMEOUTS
8
- } from "./chunk-YMT6H2HQ.js";
8
+ } from "./chunk-T4E6UFFC.js";
9
9
 
10
10
  // src/config/defaults-env.ts
11
11
  function parseIntEnv(envKey, fallback) {
@@ -399,4 +399,4 @@ export {
399
399
  CUSTOM_API_DEFAULT_MODEL,
400
400
  DEFAULTS
401
401
  };
402
- //# sourceMappingURL=chunk-BSIGP5XF.js.map
402
+ //# sourceMappingURL=chunk-54UT2JUQ.js.map
@@ -3,14 +3,14 @@ import {
3
3
  createStream,
4
4
  requireApiKey,
5
5
  validateApiKeyPresence
6
- } from "./chunk-YGKPWUJ6.js";
6
+ } from "./chunk-33LDLZCC.js";
7
7
  import {
8
8
  ModelCapability,
9
9
  err,
10
10
  getCliModelName,
11
11
  getTokenEstimator,
12
12
  ok
13
- } from "./chunk-YMT6H2HQ.js";
13
+ } from "./chunk-T4E6UFFC.js";
14
14
 
15
15
  // src/adapters/openai-types.ts
16
16
  var OPENAI_MODELS = {
@@ -553,4 +553,4 @@ export {
553
553
  OpenAIAdapter,
554
554
  createOpenAIAdapter
555
555
  };
556
- //# sourceMappingURL=chunk-FAJAWO42.js.map
556
+ //# sourceMappingURL=chunk-5WN3WGXG.js.map
@@ -5,7 +5,7 @@ import {
5
5
  getErrorMessage,
6
6
  getTimeProvider,
7
7
  ok
8
- } from "./chunk-YMT6H2HQ.js";
8
+ } from "./chunk-T4E6UFFC.js";
9
9
 
10
10
  // src/cli-adapters/circuit-breaker-types.ts
11
11
  var CircuitErrorCode = {
@@ -353,4 +353,4 @@ export {
353
353
  CircuitBreakerRegistry,
354
354
  mapCliErrorToCategory
355
355
  };
356
- //# sourceMappingURL=chunk-JXDDSNEK.js.map
356
+ //# sourceMappingURL=chunk-7UM5XRGG.js.map
@@ -2,7 +2,7 @@ import {
2
2
  TASK_CATEGORIES,
3
3
  getAdaptiveBonus,
4
4
  getOutcomeStore
5
- } from "./chunk-YMT6H2HQ.js";
5
+ } from "./chunk-T4E6UFFC.js";
6
6
 
7
7
  // src/cli/doctor-deep.ts
8
8
  var CLI_NAMES = ["claude", "gemini", "codex", "opencode"];
@@ -106,4 +106,4 @@ export {
106
106
  runDeepDiagnostics,
107
107
  formatDeepDiagnostics
108
108
  };
109
- //# sourceMappingURL=chunk-4XGKCVJL.js.map
109
+ //# sourceMappingURL=chunk-7ZKZ7K7J.js.map
@@ -4,7 +4,7 @@ import {
4
4
  getErrorMessage,
5
5
  getTimeProvider,
6
6
  ok
7
- } from "./chunk-YMT6H2HQ.js";
7
+ } from "./chunk-T4E6UFFC.js";
8
8
 
9
9
  // src/context/session-memory.ts
10
10
  import * as fs from "fs";
@@ -351,4 +351,4 @@ export {
351
351
  SessionMemory,
352
352
  createSessionMemory
353
353
  };
354
- //# sourceMappingURL=chunk-AYZ6P7CK.js.map
354
+ //# sourceMappingURL=chunk-ALDKPBOZ.js.map
@@ -2,23 +2,23 @@ import {
2
2
  CUSTOM_API_BASE_URL_ENV,
3
3
  PROVIDER_ENV_KEYS,
4
4
  validateCustomApiBaseUrl
5
- } from "./chunk-JLWKHYIU.js";
5
+ } from "./chunk-I5KYDT23.js";
6
6
  import {
7
7
  AdapterModelError,
8
8
  BaseAdapter,
9
9
  createStream,
10
10
  requireApiKey,
11
11
  validateApiKeyPresence
12
- } from "./chunk-YGKPWUJ6.js";
12
+ } from "./chunk-33LDLZCC.js";
13
13
  import {
14
14
  getToolMemory
15
- } from "./chunk-OO6MTUDS.js";
15
+ } from "./chunk-NALIFUBD.js";
16
16
  import {
17
17
  getDefaultAvailableModelsCache
18
- } from "./chunk-HBKZ2DJK.js";
18
+ } from "./chunk-D5C5N5Q4.js";
19
19
  import {
20
20
  CUSTOM_API_DEFAULT_MODEL
21
- } from "./chunk-BSIGP5XF.js";
21
+ } from "./chunk-54UT2JUQ.js";
22
22
  import {
23
23
  createCliAdapter,
24
24
  createCliDetectionCache,
@@ -27,7 +27,7 @@ import {
27
27
  isCliAvailable,
28
28
  sanitizeOutput,
29
29
  withTimeout
30
- } from "./chunk-ZU2Q3DWE.js";
30
+ } from "./chunk-EPZMFIAX.js";
31
31
  import {
32
32
  AgentError,
33
33
  CACHE_TIMEOUTS,
@@ -70,7 +70,7 @@ import {
70
70
  resolveCliAlias,
71
71
  resolveVoteTimeout,
72
72
  toRateLimitError
73
- } from "./chunk-YMT6H2HQ.js";
73
+ } from "./chunk-T4E6UFFC.js";
74
74
  import {
75
75
  ensureLearningDir,
76
76
  getNexusDataDir,
@@ -5283,6 +5283,13 @@ function createHigherOrderVotingStrategy(options) {
5283
5283
  }
5284
5284
 
5285
5285
  // src/consensus/strategies.ts
5286
+ function evaluateThreshold(approveCount, votingTotal, threshold, inclusive) {
5287
+ const ratio = approveCount / votingTotal;
5288
+ return {
5289
+ approved: inclusive ? ratio >= threshold : ratio > threshold,
5290
+ approvalPercentage: ratio * 100
5291
+ };
5292
+ }
5286
5293
  var BaseVotingStrategy = class {
5287
5294
  /**
5288
5295
  * Count votes by decision type.
@@ -5346,8 +5353,12 @@ var SimpleMajorityStrategy = class extends BaseVotingStrategy {
5346
5353
  reason: "No votes cast (excluding abstentions)"
5347
5354
  };
5348
5355
  }
5349
- const approvalPercentage = counts.approve / votingVotes * 100;
5350
- const approved = counts.approve / votingVotes > threshold;
5356
+ const { approved, approvalPercentage } = evaluateThreshold(
5357
+ counts.approve,
5358
+ votingVotes,
5359
+ threshold,
5360
+ false
5361
+ );
5351
5362
  return {
5352
5363
  approved,
5353
5364
  approvalPercentage,
@@ -5370,8 +5381,12 @@ var SupermajorityStrategy = class extends BaseVotingStrategy {
5370
5381
  reason: "No votes cast (excluding abstentions)"
5371
5382
  };
5372
5383
  }
5373
- const approvalPercentage = counts.approve / votingVotes * 100;
5374
- const approved = counts.approve / votingVotes >= threshold;
5384
+ const { approved, approvalPercentage } = evaluateThreshold(
5385
+ counts.approve,
5386
+ votingVotes,
5387
+ threshold,
5388
+ true
5389
+ );
5375
5390
  return {
5376
5391
  approved,
5377
5392
  approvalPercentage,
@@ -5434,8 +5449,12 @@ var ProofOfLearningStrategy = class extends BaseVotingStrategy {
5434
5449
  reason: "No weighted votes cast (excluding abstentions)"
5435
5450
  };
5436
5451
  }
5437
- const approvalPercentage = weightedCounts.approve / votingWeight * 100;
5438
- const approved = weightedCounts.approve / votingWeight > threshold;
5452
+ const { approved, approvalPercentage } = evaluateThreshold(
5453
+ weightedCounts.approve,
5454
+ votingWeight,
5455
+ threshold,
5456
+ false
5457
+ );
5439
5458
  return {
5440
5459
  approved,
5441
5460
  approvalPercentage,
@@ -5671,7 +5690,16 @@ var ConsensusEngine = class {
5671
5690
  return this.closeInternal(proposalId).then((r) => r.ok ? ok(void 0) : err(r.error));
5672
5691
  }
5673
5692
  if (this.allRequiredVotersVoted(state)) {
5674
- const expanded = await this.tryExpandQuorum(proposalId, state);
5693
+ if (state.expansionInFlight === true) {
5694
+ return Promise.resolve(ok(void 0));
5695
+ }
5696
+ state.expansionInFlight = true;
5697
+ let expanded;
5698
+ try {
5699
+ expanded = await this.tryExpandQuorum(proposalId, state);
5700
+ } finally {
5701
+ state.expansionInFlight = false;
5702
+ }
5675
5703
  if (!expanded) {
5676
5704
  return this.closeInternal(proposalId).then((r) => r.ok ? ok(void 0) : err(r.error));
5677
5705
  }
@@ -8650,7 +8678,7 @@ async function processVotesWithCascade(engineVotes, opts) {
8650
8678
  var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
8651
8679
  async function runContrarianCheck(proposal, log) {
8652
8680
  try {
8653
- const { executeExpert } = await import("./expert-bridge-6ZLD2NWD.js");
8681
+ const { executeExpert } = await import("./expert-bridge-IK4TY7HA.js");
8654
8682
  const prompt = [
8655
8683
  "You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
8656
8684
  "Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
@@ -9067,4 +9095,4 @@ export {
9067
9095
  CONSENSUS_VOTE_OUTPUT_SCHEMA,
9068
9096
  registerConsensusVoteTool
9069
9097
  };
9070
- //# sourceMappingURL=chunk-6CJIKX6I.js.map
9098
+ //# sourceMappingURL=chunk-D3MQ4U2R.js.map