nexus-agents 6.3.17 → 7.0.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 (126) hide show
  1. package/dist/{child-mcp-config-IPWKOUSE.js → child-mcp-config-ORXLS5HP.js} +2 -2
  2. package/dist/{chunk-XOCNOKIV.js → chunk-33FI7W3G.js} +2 -2
  3. package/dist/{chunk-QUMUVNL6.js → chunk-3CGUPSBW.js} +2 -2
  4. package/dist/{chunk-V2OHGKB5.js → chunk-6E2M3P5A.js} +3 -3
  5. package/dist/{chunk-PCZJMNPT.js → chunk-6GYTTWNM.js} +2 -2
  6. package/dist/{chunk-DR7DYEFQ.js → chunk-6Q3KSZVI.js} +2 -2
  7. package/dist/{chunk-DXIZQRP5.js → chunk-7U7HAYPB.js} +4 -4
  8. package/dist/{chunk-KYCJ47JZ.js → chunk-BTWKDT4F.js} +8 -8
  9. package/dist/{chunk-KXQNETUB.js → chunk-D6TL5GZV.js} +13 -4
  10. package/dist/chunk-D6TL5GZV.js.map +1 -0
  11. package/dist/{chunk-LT2LUIQK.js → chunk-HA2MM4C2.js} +71 -37
  12. package/dist/{chunk-LT2LUIQK.js.map → chunk-HA2MM4C2.js.map} +1 -1
  13. package/dist/{chunk-MB2YIETU.js → chunk-IWTK6FDT.js} +2 -2
  14. package/dist/{chunk-5EEEPQZY.js → chunk-JJT7NVNY.js} +3 -3
  15. package/dist/{chunk-6ZYJ46HN.js → chunk-JNZ3D5B5.js} +2 -2
  16. package/dist/{chunk-VNULIWRK.js → chunk-K2AWJGQO.js} +2 -2
  17. package/dist/{chunk-ET67NYCJ.js → chunk-KJWD2V4K.js} +7 -7
  18. package/dist/{chunk-UAKFLKW3.js → chunk-LVYRGNOC.js} +2 -2
  19. package/dist/chunk-MNG6VKJP.js +7 -0
  20. package/dist/{chunk-KASDQSEA.js.map → chunk-MNG6VKJP.js.map} +1 -1
  21. package/dist/{chunk-N34KB6DR.js → chunk-PDMWQ2NK.js} +141 -62
  22. package/dist/chunk-PDMWQ2NK.js.map +1 -0
  23. package/dist/{chunk-T47DKINM.js → chunk-Q6IODDEA.js} +6 -6
  24. package/dist/{chunk-RSSLLOU6.js → chunk-QAHGHWC7.js} +5 -5
  25. package/dist/{chunk-JC4WREXA.js → chunk-RBF64DXJ.js} +2 -2
  26. package/dist/{chunk-NVFYMGCC.js → chunk-RLBJTZHA.js} +2 -2
  27. package/dist/{chunk-HGL7B6WB.js → chunk-S2Z7CME3.js} +2 -2
  28. package/dist/{chunk-IRHLTW3P.js → chunk-SS5FADQN.js} +23 -9
  29. package/dist/chunk-SS5FADQN.js.map +1 -0
  30. package/dist/{chunk-OI6XXZOE.js → chunk-UJPVBDYG.js} +7 -7
  31. package/dist/{chunk-LUPEM2NF.js → chunk-UVO673OY.js} +3 -3
  32. package/dist/{chunk-CF5CXFYJ.js → chunk-VVXHIUFQ.js} +5 -5
  33. package/dist/{chunk-L3ZVRVHA.js → chunk-VYAXMVI5.js} +2 -2
  34. package/dist/{chunk-ZICPESTJ.js → chunk-XREG2HTQ.js} +4 -4
  35. package/dist/{chunk-SZZRE2VU.js → chunk-XZEYSIGG.js} +2 -2
  36. package/dist/{chunk-OP6PH7GC.js → chunk-Y5GYBP52.js} +2 -2
  37. package/dist/{chunk-UOHOHH72.js → chunk-Y742U2YM.js} +18 -7
  38. package/dist/{chunk-UOHOHH72.js.map → chunk-Y742U2YM.js.map} +1 -1
  39. package/dist/{chunk-KLQ352NK.js → chunk-ZD4VEHEG.js} +2 -2
  40. package/dist/{chunk-XOLGF5MK.js → chunk-ZGEDIKAM.js} +2 -2
  41. package/dist/{cli-circuit-breaker-TEW4RTM2.js → cli-circuit-breaker-5FYJDS5O.js} +3 -3
  42. package/dist/cli.js +41 -41
  43. package/dist/{composite-router-GEQSU4S3.js → composite-router-GE24MYPP.js} +2 -2
  44. package/dist/{consensus-vote-OHOQXNTT.js → consensus-vote-355WNDBN.js} +17 -17
  45. package/dist/{context-retriever-ECGC4EFR.js → context-retriever-3OO6N4V6.js} +8 -8
  46. package/dist/{doctor-deep-6WLU2HV7.js → doctor-deep-6WHVRRVQ.js} +3 -3
  47. package/dist/{doctor-live-OLSOA44K.js → doctor-live-J7JIZH3T.js} +9 -9
  48. package/dist/{expert-bridge-DWBQLHPG.js → expert-bridge-PWRVRFDG.js} +4 -4
  49. package/dist/{factory-Q7D2MNS2.js → factory-3BZDQQYM.js} +9 -9
  50. package/dist/{factory-OTIHI4GK.js → factory-UFKRSADE.js} +5 -5
  51. package/dist/{improvement-review-F2POEVI4.js → improvement-review-PO4LS6GO.js} +6 -6
  52. package/dist/index.d.ts +101 -14
  53. package/dist/index.js +31 -31
  54. package/dist/{init-opencode-MCS4F4MP.js → init-opencode-GDPE4U65.js} +6 -6
  55. package/dist/issue-triage-2LNYGQRJ.js +17 -0
  56. package/dist/{pr-reviewer-helpers-7OKVLICU.js → pr-reviewer-helpers-KBOP72XG.js} +4 -4
  57. package/dist/{registry-command-WRWJWKJV.js → registry-command-ZK4NQ2MX.js} +2 -2
  58. package/dist/{repo-security-plan-TW3D5JPQ.js → repo-security-plan-SZU4O2TN.js} +3 -3
  59. package/dist/{research-helpers-synthesize-3YBPFYMX.js → research-helpers-synthesize-QY3DDHTD.js} +4 -4
  60. package/dist/{routing-memory-5CLHRWID.js → routing-memory-2SMMUPTB.js} +2 -2
  61. package/dist/{session-memory-M2LUBDCR.js → session-memory-YQQVPLKM.js} +3 -3
  62. package/dist/{setup-config-OMH2SQLH.js → setup-config-LMZE4IRV.js} +3 -3
  63. package/dist/{setup-custom-api-WHU4TJKG.js → setup-custom-api-ZSBUIJID.js} +4 -4
  64. package/dist/setup-data-dir-O2EABCPO.js +29 -0
  65. package/dist/{tool-memory-K3LY6VBF.js → tool-memory-GUPG2M25.js} +5 -5
  66. package/dist/{unified-registry-DC7GEQKG.js → unified-registry-RPT4O3XB.js} +10 -10
  67. package/dist/{weather-report-XMWNDDHY.js → weather-report-6AVPMHHM.js} +2 -2
  68. package/package.json +1 -1
  69. package/dist/chunk-IRHLTW3P.js.map +0 -1
  70. package/dist/chunk-KASDQSEA.js +0 -7
  71. package/dist/chunk-KXQNETUB.js.map +0 -1
  72. package/dist/chunk-N34KB6DR.js.map +0 -1
  73. package/dist/issue-triage-A7JXRGSV.js +0 -17
  74. package/dist/setup-data-dir-BQVEUXP5.js +0 -29
  75. /package/dist/{child-mcp-config-IPWKOUSE.js.map → child-mcp-config-ORXLS5HP.js.map} +0 -0
  76. /package/dist/{chunk-XOCNOKIV.js.map → chunk-33FI7W3G.js.map} +0 -0
  77. /package/dist/{chunk-QUMUVNL6.js.map → chunk-3CGUPSBW.js.map} +0 -0
  78. /package/dist/{chunk-V2OHGKB5.js.map → chunk-6E2M3P5A.js.map} +0 -0
  79. /package/dist/{chunk-PCZJMNPT.js.map → chunk-6GYTTWNM.js.map} +0 -0
  80. /package/dist/{chunk-DR7DYEFQ.js.map → chunk-6Q3KSZVI.js.map} +0 -0
  81. /package/dist/{chunk-DXIZQRP5.js.map → chunk-7U7HAYPB.js.map} +0 -0
  82. /package/dist/{chunk-KYCJ47JZ.js.map → chunk-BTWKDT4F.js.map} +0 -0
  83. /package/dist/{chunk-MB2YIETU.js.map → chunk-IWTK6FDT.js.map} +0 -0
  84. /package/dist/{chunk-5EEEPQZY.js.map → chunk-JJT7NVNY.js.map} +0 -0
  85. /package/dist/{chunk-6ZYJ46HN.js.map → chunk-JNZ3D5B5.js.map} +0 -0
  86. /package/dist/{chunk-VNULIWRK.js.map → chunk-K2AWJGQO.js.map} +0 -0
  87. /package/dist/{chunk-ET67NYCJ.js.map → chunk-KJWD2V4K.js.map} +0 -0
  88. /package/dist/{chunk-UAKFLKW3.js.map → chunk-LVYRGNOC.js.map} +0 -0
  89. /package/dist/{chunk-T47DKINM.js.map → chunk-Q6IODDEA.js.map} +0 -0
  90. /package/dist/{chunk-RSSLLOU6.js.map → chunk-QAHGHWC7.js.map} +0 -0
  91. /package/dist/{chunk-JC4WREXA.js.map → chunk-RBF64DXJ.js.map} +0 -0
  92. /package/dist/{chunk-NVFYMGCC.js.map → chunk-RLBJTZHA.js.map} +0 -0
  93. /package/dist/{chunk-HGL7B6WB.js.map → chunk-S2Z7CME3.js.map} +0 -0
  94. /package/dist/{chunk-OI6XXZOE.js.map → chunk-UJPVBDYG.js.map} +0 -0
  95. /package/dist/{chunk-LUPEM2NF.js.map → chunk-UVO673OY.js.map} +0 -0
  96. /package/dist/{chunk-CF5CXFYJ.js.map → chunk-VVXHIUFQ.js.map} +0 -0
  97. /package/dist/{chunk-L3ZVRVHA.js.map → chunk-VYAXMVI5.js.map} +0 -0
  98. /package/dist/{chunk-ZICPESTJ.js.map → chunk-XREG2HTQ.js.map} +0 -0
  99. /package/dist/{chunk-SZZRE2VU.js.map → chunk-XZEYSIGG.js.map} +0 -0
  100. /package/dist/{chunk-OP6PH7GC.js.map → chunk-Y5GYBP52.js.map} +0 -0
  101. /package/dist/{chunk-KLQ352NK.js.map → chunk-ZD4VEHEG.js.map} +0 -0
  102. /package/dist/{chunk-XOLGF5MK.js.map → chunk-ZGEDIKAM.js.map} +0 -0
  103. /package/dist/{cli-circuit-breaker-TEW4RTM2.js.map → cli-circuit-breaker-5FYJDS5O.js.map} +0 -0
  104. /package/dist/{composite-router-GEQSU4S3.js.map → composite-router-GE24MYPP.js.map} +0 -0
  105. /package/dist/{consensus-vote-OHOQXNTT.js.map → consensus-vote-355WNDBN.js.map} +0 -0
  106. /package/dist/{context-retriever-ECGC4EFR.js.map → context-retriever-3OO6N4V6.js.map} +0 -0
  107. /package/dist/{doctor-deep-6WLU2HV7.js.map → doctor-deep-6WHVRRVQ.js.map} +0 -0
  108. /package/dist/{doctor-live-OLSOA44K.js.map → doctor-live-J7JIZH3T.js.map} +0 -0
  109. /package/dist/{expert-bridge-DWBQLHPG.js.map → expert-bridge-PWRVRFDG.js.map} +0 -0
  110. /package/dist/{factory-OTIHI4GK.js.map → factory-3BZDQQYM.js.map} +0 -0
  111. /package/dist/{factory-Q7D2MNS2.js.map → factory-UFKRSADE.js.map} +0 -0
  112. /package/dist/{improvement-review-F2POEVI4.js.map → improvement-review-PO4LS6GO.js.map} +0 -0
  113. /package/dist/{init-opencode-MCS4F4MP.js.map → init-opencode-GDPE4U65.js.map} +0 -0
  114. /package/dist/{issue-triage-A7JXRGSV.js.map → issue-triage-2LNYGQRJ.js.map} +0 -0
  115. /package/dist/{pr-reviewer-helpers-7OKVLICU.js.map → pr-reviewer-helpers-KBOP72XG.js.map} +0 -0
  116. /package/dist/{registry-command-WRWJWKJV.js.map → registry-command-ZK4NQ2MX.js.map} +0 -0
  117. /package/dist/{repo-security-plan-TW3D5JPQ.js.map → repo-security-plan-SZU4O2TN.js.map} +0 -0
  118. /package/dist/{research-helpers-synthesize-3YBPFYMX.js.map → research-helpers-synthesize-QY3DDHTD.js.map} +0 -0
  119. /package/dist/{routing-memory-5CLHRWID.js.map → routing-memory-2SMMUPTB.js.map} +0 -0
  120. /package/dist/{session-memory-M2LUBDCR.js.map → session-memory-YQQVPLKM.js.map} +0 -0
  121. /package/dist/{setup-config-OMH2SQLH.js.map → setup-config-LMZE4IRV.js.map} +0 -0
  122. /package/dist/{setup-custom-api-WHU4TJKG.js.map → setup-custom-api-ZSBUIJID.js.map} +0 -0
  123. /package/dist/{setup-data-dir-BQVEUXP5.js.map → setup-data-dir-O2EABCPO.js.map} +0 -0
  124. /package/dist/{tool-memory-K3LY6VBF.js.map → tool-memory-GUPG2M25.js.map} +0 -0
  125. /package/dist/{unified-registry-DC7GEQKG.js.map → unified-registry-RPT4O3XB.js.map} +0 -0
  126. /package/dist/{weather-report-XMWNDDHY.js.map → weather-report-6AVPMHHM.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-MB2YIETU.js";
4
+ } from "./chunk-IWTK6FDT.js";
5
5
  import {
6
6
  ROLE_DEFAULT_TRUST,
7
7
  ReputationCache,
@@ -11,20 +11,20 @@ import {
11
11
  gateWithReputation,
12
12
  resolveReputationGatingMode,
13
13
  sanitizeInput
14
- } from "./chunk-NVFYMGCC.js";
14
+ } from "./chunk-RLBJTZHA.js";
15
15
  import {
16
16
  emitPolicyEvent
17
- } from "./chunk-DR7DYEFQ.js";
17
+ } from "./chunk-6Q3KSZVI.js";
18
18
  import {
19
19
  hasToken
20
- } from "./chunk-SZZRE2VU.js";
20
+ } from "./chunk-XZEYSIGG.js";
21
21
  import {
22
22
  CLI_SUBPROCESS_TIMEOUTS,
23
23
  createLogger,
24
24
  err,
25
25
  getTimeProvider,
26
26
  ok
27
- } from "./chunk-UOHOHH72.js";
27
+ } from "./chunk-Y742U2YM.js";
28
28
 
29
29
  // src/security/trust-classifier.ts
30
30
  function mapAuthorAssociation(association) {
@@ -1247,4 +1247,4 @@ export {
1247
1247
  IssueTriage,
1248
1248
  createIssueTriage
1249
1249
  };
1250
- //# sourceMappingURL=chunk-T47DKINM.js.map
1250
+ //# sourceMappingURL=chunk-Q6IODDEA.js.map
@@ -5,13 +5,13 @@ import {
5
5
  loadTechniquesRegistry,
6
6
  resolveInsideRoot,
7
7
  savePapersRegistry
8
- } from "./chunk-VNULIWRK.js";
8
+ } from "./chunk-K2AWJGQO.js";
9
9
  import {
10
10
  resolveToken
11
- } from "./chunk-SZZRE2VU.js";
11
+ } from "./chunk-XZEYSIGG.js";
12
12
  import {
13
13
  getToolMemory
14
- } from "./chunk-DXIZQRP5.js";
14
+ } from "./chunk-7U7HAYPB.js";
15
15
  import {
16
16
  capitalizeWords,
17
17
  tokenizeFiltered,
@@ -37,7 +37,7 @@ import {
37
37
  getTimeProvider,
38
38
  ok,
39
39
  registerPersistentDistillerFactory
40
- } from "./chunk-UOHOHH72.js";
40
+ } from "./chunk-Y742U2YM.js";
41
41
  import {
42
42
  ensureLearningDir,
43
43
  getRulesFile
@@ -4132,4 +4132,4 @@ export {
4132
4132
  DEFAULT_CONTEXT_BUDGET_TOKENS,
4133
4133
  getContextPromptPrefix
4134
4134
  };
4135
- //# sourceMappingURL=chunk-RSSLLOU6.js.map
4135
+ //# sourceMappingURL=chunk-QAHGHWC7.js.map
@@ -3,7 +3,7 @@ import {
3
3
  createLogger,
4
4
  getDefaultRegistry,
5
5
  roundToMicroUsd
6
- } from "./chunk-UOHOHH72.js";
6
+ } from "./chunk-Y742U2YM.js";
7
7
  import {
8
8
  getNexusDataDir
9
9
  } from "./chunk-OGHEKPLD.js";
@@ -176,4 +176,4 @@ export {
176
176
  loadUsageEvents,
177
177
  rollupByModel
178
178
  };
179
- //# sourceMappingURL=chunk-JC4WREXA.js.map
179
+ //# sourceMappingURL=chunk-RBF64DXJ.js.map
@@ -2,7 +2,7 @@ import {
2
2
  CACHE_TIMEOUTS,
3
3
  createLogger,
4
4
  getTimeProvider
5
- } from "./chunk-UOHOHH72.js";
5
+ } from "./chunk-Y742U2YM.js";
6
6
 
7
7
  // src/security/trust-types.ts
8
8
  import { z } from "zod";
@@ -560,4 +560,4 @@ export {
560
560
  resolveReputationGatingMode,
561
561
  gateWithReputation
562
562
  };
563
- //# sourceMappingURL=chunk-NVFYMGCC.js.map
563
+ //# sourceMappingURL=chunk-RLBJTZHA.js.map
@@ -8,7 +8,7 @@ import {
8
8
  getTimeProvider,
9
9
  isRateLimitText,
10
10
  ok
11
- } from "./chunk-UOHOHH72.js";
11
+ } from "./chunk-Y742U2YM.js";
12
12
 
13
13
  // src/cli-adapters/circuit-breaker-types.ts
14
14
  var CircuitErrorCode = {
@@ -541,4 +541,4 @@ export {
541
541
  CliCircuitBreakerIntegration,
542
542
  createCliCircuitBreakerIntegration
543
543
  };
544
- //# sourceMappingURL=chunk-HGL7B6WB.js.map
544
+ //# sourceMappingURL=chunk-S2Z7CME3.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  computeCostDetail,
3
3
  priceBasisOf
4
- } from "./chunk-JC4WREXA.js";
4
+ } from "./chunk-RBF64DXJ.js";
5
5
  import {
6
6
  allOf
7
7
  } from "./chunk-OQB3XC5O.js";
@@ -23,22 +23,22 @@ import {
23
23
  toolSuccessStructured,
24
24
  withProgressHeartbeat,
25
25
  wrapToolWithTimeout
26
- } from "./chunk-N34KB6DR.js";
26
+ } from "./chunk-PDMWQ2NK.js";
27
27
  import {
28
28
  assessPanelIndependence,
29
29
  countDistinctModels,
30
30
  createEvent,
31
31
  getGlobalRegistry
32
- } from "./chunk-KXQNETUB.js";
32
+ } from "./chunk-D6TL5GZV.js";
33
33
  import {
34
34
  getToolMemory
35
- } from "./chunk-DXIZQRP5.js";
35
+ } from "./chunk-7U7HAYPB.js";
36
36
  import {
37
37
  authRemediation,
38
38
  delay,
39
39
  getAvailableClis,
40
40
  withTimeout
41
- } from "./chunk-KYCJ47JZ.js";
41
+ } from "./chunk-BTWKDT4F.js";
42
42
  import {
43
43
  AgentError,
44
44
  CLI_NAMES,
@@ -61,12 +61,13 @@ import {
61
61
  getPipelineEventBus,
62
62
  getRandomProvider,
63
63
  getTimeProvider,
64
+ isDurableCapacityText,
64
65
  isRateLimitLikeError,
65
66
  ok,
66
67
  registerPersistentOutcomeStoreFactory,
67
68
  resolveClassGuardMs,
68
69
  resolveVoteTimeout
69
- } from "./chunk-UOHOHH72.js";
70
+ } from "./chunk-Y742U2YM.js";
70
71
  import {
71
72
  ensureLearningDir,
72
73
  getOutcomesFile
@@ -956,6 +957,13 @@ async function executeSingleVoteAttempt(role, proposal, adapter, timeoutMs, opti
956
957
  throw error;
957
958
  }
958
959
  }
960
+ function logAbandonedRetries(logger10, role, attempt, maxRetries) {
961
+ logger10.warn("Durable capacity cap \u2014 abandoning retries for this voter", {
962
+ role,
963
+ attempt: attempt + 1,
964
+ remainingAttemptsSkipped: maxRetries - attempt
965
+ });
966
+ }
959
967
  async function executeWithRetries(opts) {
960
968
  const { role, proposal, adapter, logger: logger10, timeoutMs, maxRetries, options } = opts;
961
969
  let lastError = "";
@@ -981,6 +989,7 @@ async function executeWithRetries(opts) {
981
989
  }
982
990
  lastError = result.error;
983
991
  const rateLimited = isRateLimitError(lastError);
992
+ const durableCap = isDurableCapacityText(lastError);
984
993
  logger10.info("Vote attempt timing", {
985
994
  role,
986
995
  attempt: attempt + 1,
@@ -993,8 +1002,13 @@ async function executeWithRetries(opts) {
993
1002
  attempt: attempt + 1,
994
1003
  maxRetries: maxRetries + 1,
995
1004
  error: lastError,
996
- ...rateLimited ? { rateLimited: true } : {}
1005
+ ...rateLimited ? { rateLimited: true } : {},
1006
+ ...durableCap ? { durableCap: true } : {}
997
1007
  });
1008
+ if (durableCap) {
1009
+ logAbandonedRetries(logger10, role, attempt, maxRetries);
1010
+ break;
1011
+ }
998
1012
  }
999
1013
  return { error: lastError !== "" ? lastError : "Unknown error after all retries", ok: false };
1000
1014
  }
@@ -6300,7 +6314,7 @@ function logPartialProposal(bounded, log) {
6300
6314
  }
6301
6315
  async function runContrarianCheck(proposal, log) {
6302
6316
  try {
6303
- const { executeExpert } = await import("./expert-bridge-DWBQLHPG.js");
6317
+ const { executeExpert } = await import("./expert-bridge-PWRVRFDG.js");
6304
6318
  const bounded = boundArtifactForReview(proposal, CONTRARIAN_PROPOSAL_BUDGET, "proposal");
6305
6319
  logPartialProposal(bounded, log);
6306
6320
  const result = await executeExpert("architecture", buildContrarianPrompt(bounded));
@@ -6878,4 +6892,4 @@ export {
6878
6892
  CONSENSUS_VOTE_TOOL_SCHEMA,
6879
6893
  registerConsensusVoteTool
6880
6894
  };
6881
- //# sourceMappingURL=chunk-IRHLTW3P.js.map
6895
+ //# sourceMappingURL=chunk-SS5FADQN.js.map