nexus-agents 8.103.1 → 8.103.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.
Files changed (134) hide show
  1. package/dist/{ast-rule-runner-H2VFAOT4.js → ast-rule-runner-VIIZKD35.js} +3 -3
  2. package/dist/{child-mcp-config-Y3DPCM6L.js → child-mcp-config-2JYO5AJP.js} +2 -2
  3. package/dist/{chunk-ALX7T72L.js → chunk-2DBAC2OY.js} +14 -76
  4. package/dist/chunk-2DBAC2OY.js.map +1 -0
  5. package/dist/{chunk-NZNPMI3W.js → chunk-2SAKTPAB.js} +2 -2
  6. package/dist/{chunk-MPQDZVC6.js → chunk-3GYS7COR.js} +3 -3
  7. package/dist/{chunk-5EFWZHUV.js → chunk-47G5DKIB.js} +2 -2
  8. package/dist/{chunk-V7VGNFAN.js → chunk-4K3SY7XD.js} +91 -4
  9. package/dist/chunk-4K3SY7XD.js.map +1 -0
  10. package/dist/{chunk-TNBHH2XO.js → chunk-5TRW6QSO.js} +41 -40
  11. package/dist/{chunk-TNBHH2XO.js.map → chunk-5TRW6QSO.js.map} +1 -1
  12. package/dist/{chunk-RL2O37NE.js → chunk-5ZONF4CQ.js} +2 -2
  13. package/dist/{chunk-KEN3STUW.js → chunk-7LX3GAS5.js} +7 -7
  14. package/dist/{chunk-KUT76BHZ.js → chunk-AKOWEZKO.js} +2 -2
  15. package/dist/{chunk-KDNWXGUF.js → chunk-CRTPETKD.js} +2 -2
  16. package/dist/{chunk-X7BYCDQN.js → chunk-DUHH2IS4.js} +3 -3
  17. package/dist/{chunk-TQ6OKB3G.js → chunk-F2UTYE6D.js} +12 -12
  18. package/dist/{chunk-E5QULKGJ.js → chunk-F7SZ56LN.js} +8 -8
  19. package/dist/{chunk-BGATTU3Z.js → chunk-FU3IJOUI.js} +5 -5
  20. package/dist/{chunk-7VZXPXC4.js → chunk-GAYE5GWR.js} +22 -8
  21. package/dist/chunk-GAYE5GWR.js.map +1 -0
  22. package/dist/{chunk-MUMQRZM5.js → chunk-HI5SDT6A.js} +2 -2
  23. package/dist/{chunk-W76A3RPF.js → chunk-ILUSO4TT.js} +2 -2
  24. package/dist/{chunk-LHI66BKG.js → chunk-JFQJLOW4.js} +30 -6
  25. package/dist/chunk-JFQJLOW4.js.map +1 -0
  26. package/dist/{chunk-NFBKSKEE.js → chunk-JI4WSYTK.js} +3 -3
  27. package/dist/{chunk-DIPNNIVK.js → chunk-JL22F4XW.js} +5 -5
  28. package/dist/{chunk-FAO37OT4.js → chunk-JZQQVIKS.js} +23 -2
  29. package/dist/{chunk-FAO37OT4.js.map → chunk-JZQQVIKS.js.map} +1 -1
  30. package/dist/{chunk-QYWR7LJP.js → chunk-MG7HNWZT.js} +2 -2
  31. package/dist/{chunk-WVVJWPZT.js → chunk-NIMOQ4ZY.js} +3 -3
  32. package/dist/{chunk-6NROQXOM.js → chunk-P6UFA2UN.js} +2 -2
  33. package/dist/{chunk-XKJYFHPO.js → chunk-Q34QYIQZ.js} +2 -2
  34. package/dist/{chunk-ONMUMFUN.js → chunk-QOBBJAQK.js} +2 -2
  35. package/dist/{chunk-4WIJ2LKW.js → chunk-SFXQEW3O.js} +3 -3
  36. package/dist/{chunk-SIPFKN6U.js → chunk-SXO5CV6E.js} +2 -2
  37. package/dist/{chunk-L6RAO6KC.js → chunk-TFAI7OB7.js} +2 -2
  38. package/dist/{chunk-46CXXIQ4.js → chunk-UP2GSUT5.js} +4 -4
  39. package/dist/{chunk-WWBB6HUI.js → chunk-USGPMAWQ.js} +4 -4
  40. package/dist/{chunk-W7HVGLPS.js → chunk-WWDTDPX4.js} +2 -2
  41. package/dist/{chunk-QSXDLYV4.js → chunk-XPXTELLI.js} +2 -2
  42. package/dist/{chunk-3H62U2MH.js → chunk-Y365LONR.js} +2 -2
  43. package/dist/{cli-circuit-breaker-LYB4F3VP.js → cli-circuit-breaker-TUSDZ2SV.js} +3 -3
  44. package/dist/cli.js +50 -46
  45. package/dist/cli.js.map +1 -1
  46. package/dist/{composite-router-OLXAFCJE.js → composite-router-RPUHBTVN.js} +2 -2
  47. package/dist/{consensus-vote-SWMMGIJU.js → consensus-vote-NBVBPFIB.js} +16 -16
  48. package/dist/{context-retriever-5C5MS2ZF.js → context-retriever-BKOWAH5O.js} +8 -8
  49. package/dist/{doctor-deep-YLOG5CAD.js → doctor-deep-KNTBC4H2.js} +3 -3
  50. package/dist/{doctor-gateway-report-JNOMZGSQ.js → doctor-gateway-report-HOQXHTPV.js} +6 -6
  51. package/dist/{doctor-live-SRNNC37A.js → doctor-live-GZDB4B33.js} +10 -10
  52. package/dist/{expert-bridge-H4EOOXWB.js → expert-bridge-YGKTCGCZ.js} +4 -4
  53. package/dist/{factory-FHJ42ORZ.js → factory-22OXEIIE.js} +5 -5
  54. package/dist/{factory-VOICDXGX.js → factory-5QHVFCXC.js} +9 -9
  55. package/dist/{improvement-review-OW2MEP4O.js → improvement-review-XTP7JMEZ.js} +5 -5
  56. package/dist/index.js +31 -31
  57. package/dist/{init-opencode-ZO7MEDSW.js → init-opencode-ETQVTJS2.js} +5 -5
  58. package/dist/issue-triage-LWHJZJXW.js +16 -0
  59. package/dist/{openai-compat-adapter-WKXMQE62.js → openai-compat-adapter-OYPGYA7H.js} +5 -5
  60. package/dist/{pr-reviewer-helpers-UMNXRN2R.js → pr-reviewer-helpers-UQCX6JJV.js} +4 -4
  61. package/dist/{registry-command-A4SZT4UX.js → registry-command-5ZDFQVNQ.js} +2 -2
  62. package/dist/{repo-security-plan-XF5N6D6R.js → repo-security-plan-C3E4UCMK.js} +3 -3
  63. package/dist/{research-helpers-synthesize-SKK7U6KA.js → research-helpers-synthesize-MHHRXBUM.js} +4 -4
  64. package/dist/{routing-memory-64AEPNLI.js → routing-memory-ZY2HWUJH.js} +2 -2
  65. package/dist/{session-memory-EWRSQOIF.js → session-memory-OTOULTRW.js} +3 -3
  66. package/dist/{setup-config-RDVRYJLA.js → setup-config-2WG42YRL.js} +3 -3
  67. package/dist/{setup-custom-api-65DC33O2.js → setup-custom-api-XLCFXFP6.js} +4 -4
  68. package/dist/setup-data-dir-BOZJED5R.js +33 -0
  69. package/dist/{tool-memory-WVKKXZ4E.js → tool-memory-FQR6ZO5H.js} +5 -5
  70. package/dist/{unified-registry-6YJ2LONB.js → unified-registry-F23TAIRP.js} +10 -10
  71. package/dist/{weather-report-GL3FCWG4.js → weather-report-6XYTDVTL.js} +2 -2
  72. package/package.json +1 -1
  73. package/dist/chunk-7VZXPXC4.js.map +0 -1
  74. package/dist/chunk-ALX7T72L.js.map +0 -1
  75. package/dist/chunk-LHI66BKG.js.map +0 -1
  76. package/dist/chunk-V7VGNFAN.js.map +0 -1
  77. package/dist/issue-triage-KEE4DN4M.js +0 -16
  78. package/dist/setup-data-dir-O7LK4JUO.js +0 -33
  79. /package/dist/{ast-rule-runner-H2VFAOT4.js.map → ast-rule-runner-VIIZKD35.js.map} +0 -0
  80. /package/dist/{child-mcp-config-Y3DPCM6L.js.map → child-mcp-config-2JYO5AJP.js.map} +0 -0
  81. /package/dist/{chunk-NZNPMI3W.js.map → chunk-2SAKTPAB.js.map} +0 -0
  82. /package/dist/{chunk-MPQDZVC6.js.map → chunk-3GYS7COR.js.map} +0 -0
  83. /package/dist/{chunk-5EFWZHUV.js.map → chunk-47G5DKIB.js.map} +0 -0
  84. /package/dist/{chunk-RL2O37NE.js.map → chunk-5ZONF4CQ.js.map} +0 -0
  85. /package/dist/{chunk-KEN3STUW.js.map → chunk-7LX3GAS5.js.map} +0 -0
  86. /package/dist/{chunk-KUT76BHZ.js.map → chunk-AKOWEZKO.js.map} +0 -0
  87. /package/dist/{chunk-KDNWXGUF.js.map → chunk-CRTPETKD.js.map} +0 -0
  88. /package/dist/{chunk-X7BYCDQN.js.map → chunk-DUHH2IS4.js.map} +0 -0
  89. /package/dist/{chunk-TQ6OKB3G.js.map → chunk-F2UTYE6D.js.map} +0 -0
  90. /package/dist/{chunk-E5QULKGJ.js.map → chunk-F7SZ56LN.js.map} +0 -0
  91. /package/dist/{chunk-BGATTU3Z.js.map → chunk-FU3IJOUI.js.map} +0 -0
  92. /package/dist/{chunk-MUMQRZM5.js.map → chunk-HI5SDT6A.js.map} +0 -0
  93. /package/dist/{chunk-W76A3RPF.js.map → chunk-ILUSO4TT.js.map} +0 -0
  94. /package/dist/{chunk-NFBKSKEE.js.map → chunk-JI4WSYTK.js.map} +0 -0
  95. /package/dist/{chunk-DIPNNIVK.js.map → chunk-JL22F4XW.js.map} +0 -0
  96. /package/dist/{chunk-QYWR7LJP.js.map → chunk-MG7HNWZT.js.map} +0 -0
  97. /package/dist/{chunk-WVVJWPZT.js.map → chunk-NIMOQ4ZY.js.map} +0 -0
  98. /package/dist/{chunk-6NROQXOM.js.map → chunk-P6UFA2UN.js.map} +0 -0
  99. /package/dist/{chunk-XKJYFHPO.js.map → chunk-Q34QYIQZ.js.map} +0 -0
  100. /package/dist/{chunk-ONMUMFUN.js.map → chunk-QOBBJAQK.js.map} +0 -0
  101. /package/dist/{chunk-4WIJ2LKW.js.map → chunk-SFXQEW3O.js.map} +0 -0
  102. /package/dist/{chunk-SIPFKN6U.js.map → chunk-SXO5CV6E.js.map} +0 -0
  103. /package/dist/{chunk-L6RAO6KC.js.map → chunk-TFAI7OB7.js.map} +0 -0
  104. /package/dist/{chunk-46CXXIQ4.js.map → chunk-UP2GSUT5.js.map} +0 -0
  105. /package/dist/{chunk-WWBB6HUI.js.map → chunk-USGPMAWQ.js.map} +0 -0
  106. /package/dist/{chunk-W7HVGLPS.js.map → chunk-WWDTDPX4.js.map} +0 -0
  107. /package/dist/{chunk-QSXDLYV4.js.map → chunk-XPXTELLI.js.map} +0 -0
  108. /package/dist/{chunk-3H62U2MH.js.map → chunk-Y365LONR.js.map} +0 -0
  109. /package/dist/{cli-circuit-breaker-LYB4F3VP.js.map → cli-circuit-breaker-TUSDZ2SV.js.map} +0 -0
  110. /package/dist/{composite-router-OLXAFCJE.js.map → composite-router-RPUHBTVN.js.map} +0 -0
  111. /package/dist/{consensus-vote-SWMMGIJU.js.map → consensus-vote-NBVBPFIB.js.map} +0 -0
  112. /package/dist/{context-retriever-5C5MS2ZF.js.map → context-retriever-BKOWAH5O.js.map} +0 -0
  113. /package/dist/{doctor-deep-YLOG5CAD.js.map → doctor-deep-KNTBC4H2.js.map} +0 -0
  114. /package/dist/{doctor-gateway-report-JNOMZGSQ.js.map → doctor-gateway-report-HOQXHTPV.js.map} +0 -0
  115. /package/dist/{doctor-live-SRNNC37A.js.map → doctor-live-GZDB4B33.js.map} +0 -0
  116. /package/dist/{expert-bridge-H4EOOXWB.js.map → expert-bridge-YGKTCGCZ.js.map} +0 -0
  117. /package/dist/{factory-FHJ42ORZ.js.map → factory-22OXEIIE.js.map} +0 -0
  118. /package/dist/{factory-VOICDXGX.js.map → factory-5QHVFCXC.js.map} +0 -0
  119. /package/dist/{improvement-review-OW2MEP4O.js.map → improvement-review-XTP7JMEZ.js.map} +0 -0
  120. /package/dist/{init-opencode-ZO7MEDSW.js.map → init-opencode-ETQVTJS2.js.map} +0 -0
  121. /package/dist/{issue-triage-KEE4DN4M.js.map → issue-triage-LWHJZJXW.js.map} +0 -0
  122. /package/dist/{openai-compat-adapter-WKXMQE62.js.map → openai-compat-adapter-OYPGYA7H.js.map} +0 -0
  123. /package/dist/{pr-reviewer-helpers-UMNXRN2R.js.map → pr-reviewer-helpers-UQCX6JJV.js.map} +0 -0
  124. /package/dist/{registry-command-A4SZT4UX.js.map → registry-command-5ZDFQVNQ.js.map} +0 -0
  125. /package/dist/{repo-security-plan-XF5N6D6R.js.map → repo-security-plan-C3E4UCMK.js.map} +0 -0
  126. /package/dist/{research-helpers-synthesize-SKK7U6KA.js.map → research-helpers-synthesize-MHHRXBUM.js.map} +0 -0
  127. /package/dist/{routing-memory-64AEPNLI.js.map → routing-memory-ZY2HWUJH.js.map} +0 -0
  128. /package/dist/{session-memory-EWRSQOIF.js.map → session-memory-OTOULTRW.js.map} +0 -0
  129. /package/dist/{setup-config-RDVRYJLA.js.map → setup-config-2WG42YRL.js.map} +0 -0
  130. /package/dist/{setup-custom-api-65DC33O2.js.map → setup-custom-api-XLCFXFP6.js.map} +0 -0
  131. /package/dist/{setup-data-dir-O7LK4JUO.js.map → setup-data-dir-BOZJED5R.js.map} +0 -0
  132. /package/dist/{tool-memory-WVKKXZ4E.js.map → tool-memory-FQR6ZO5H.js.map} +0 -0
  133. /package/dist/{unified-registry-6YJ2LONB.js.map → unified-registry-F23TAIRP.js.map} +0 -0
  134. /package/dist/{weather-report-GL3FCWG4.js.map → weather-report-6XYTDVTL.js.map} +0 -0
@@ -9,8 +9,8 @@ import {
9
9
  getBuiltInAstRulesPath,
10
10
  loadRules,
11
11
  runAstQaRules
12
- } from "./chunk-5EFWZHUV.js";
13
- import "./chunk-X7BYCDQN.js";
12
+ } from "./chunk-47G5DKIB.js";
13
+ import "./chunk-DUHH2IS4.js";
14
14
  import "./chunk-UE7A2XHM.js";
15
15
  import "./chunk-LWOX65CP.js";
16
16
  import "./chunk-PX6F3LHL.js";
@@ -26,4 +26,4 @@ export {
26
26
  loadRules,
27
27
  runAstQaRules
28
28
  };
29
- //# sourceMappingURL=ast-rule-runner-H2VFAOT4.js.map
29
+ //# sourceMappingURL=ast-rule-runner-VIIZKD35.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-OITVVSWO.js";
4
4
  import {
5
5
  createLogger
6
- } from "./chunk-X7BYCDQN.js";
6
+ } from "./chunk-DUHH2IS4.js";
7
7
  import "./chunk-UE7A2XHM.js";
8
8
  import "./chunk-LWOX65CP.js";
9
9
  import "./chunk-PX6F3LHL.js";
@@ -56,4 +56,4 @@ async function generateMcpConfig(options) {
56
56
  export {
57
57
  generateMcpConfig
58
58
  };
59
- //# sourceMappingURL=child-mcp-config-Y3DPCM6L.js.map
59
+ //# sourceMappingURL=child-mcp-config-2JYO5AJP.js.map
@@ -19,40 +19,41 @@ import {
19
19
  toolSuccessStructured,
20
20
  withProgressHeartbeat,
21
21
  wrapToolWithTimeout
22
- } from "./chunk-WVVJWPZT.js";
22
+ } from "./chunk-NIMOQ4ZY.js";
23
23
  import {
24
24
  VERSION
25
- } from "./chunk-ONMUMFUN.js";
25
+ } from "./chunk-QOBBJAQK.js";
26
26
  import {
27
27
  allOf
28
28
  } from "./chunk-EZNIYU5T.js";
29
29
  import {
30
30
  isGatewayModelAdapter
31
- } from "./chunk-LHI66BKG.js";
31
+ } from "./chunk-JFQJLOW4.js";
32
32
  import {
33
33
  UNRESOLVED_MODEL_ID,
34
34
  assessPanelIndependence,
35
35
  canonicalModelKey,
36
36
  countDistinctModels,
37
37
  createEvent,
38
+ ensureGatewayDiscovered,
38
39
  getGlobalRegistry
39
- } from "./chunk-V7VGNFAN.js";
40
+ } from "./chunk-4K3SY7XD.js";
40
41
  import {
41
42
  getToolMemory
42
- } from "./chunk-46CXXIQ4.js";
43
+ } from "./chunk-UP2GSUT5.js";
43
44
  import {
44
45
  delay,
45
46
  getAvailableClis,
46
47
  sleep,
47
48
  withTimeout
48
- } from "./chunk-E5QULKGJ.js";
49
+ } from "./chunk-F7SZ56LN.js";
49
50
  import {
50
51
  sanitizeErrorDetails,
51
52
  sanitizeOutput
52
53
  } from "./chunk-2NDA4DHW.js";
53
54
  import {
54
55
  isTimeoutText
55
- } from "./chunk-QSXDLYV4.js";
56
+ } from "./chunk-XPXTELLI.js";
56
57
  import {
57
58
  AgentError,
58
59
  CLI_NAMES,
@@ -94,7 +95,7 @@ import {
94
95
  resolveVoteTimeout,
95
96
  servedCostDetail,
96
97
  stepBus
97
- } from "./chunk-X7BYCDQN.js";
98
+ } from "./chunk-DUHH2IS4.js";
98
99
  import {
99
100
  ensureLearningDir,
100
101
  getOutcomesFile
@@ -2261,66 +2262,6 @@ function resolvePanelWorkspace(workspace) {
2261
2262
  return workspace ?? process.cwd();
2262
2263
  }
2263
2264
 
2264
- // src/adapters/gateway-rediscovery.ts
2265
- var GATEWAY_REDISCOVERY_INTERVAL_MS = 6e4;
2266
- var GatewayRediscovery = class {
2267
- constructor(options) {
2268
- this.options = options;
2269
- this.minIntervalMs = options.minIntervalMs ?? GATEWAY_REDISCOVERY_INTERVAL_MS;
2270
- this.lastAttemptAt = options.lastAttemptAt ?? getTimeProvider().now();
2271
- }
2272
- options;
2273
- minIntervalMs;
2274
- lastAttemptAt;
2275
- inFlight;
2276
- /**
2277
- * Re-run discovery if the gateway is still missing and the backoff allows.
2278
- * Never rejects: a failed attempt is logged and the caller proceeds on
2279
- * whatever the list holds (empty means the CLI path, as at boot).
2280
- */
2281
- ensure() {
2282
- if (this.options.target.length > 0) return Promise.resolve();
2283
- if (this.inFlight !== void 0) return this.inFlight;
2284
- const now = getTimeProvider().now();
2285
- if (now - this.lastAttemptAt < this.minIntervalMs) return Promise.resolve();
2286
- this.lastAttemptAt = now;
2287
- this.inFlight = this.attempt().finally(() => {
2288
- this.inFlight = void 0;
2289
- });
2290
- return this.inFlight;
2291
- }
2292
- async attempt() {
2293
- const { logger: logger11, target } = this.options;
2294
- let found;
2295
- try {
2296
- found = await this.options.discover();
2297
- } catch (error) {
2298
- logger11.warn("Gateway re-discovery threw; calls stay on CLI subprocesses", {
2299
- error: getErrorMessage(error)
2300
- });
2301
- return;
2302
- }
2303
- if (found === void 0 || found.length === 0) {
2304
- logger11.warn(
2305
- `Gateway re-discovery found no usable gateway; calls stay on CLI subprocesses. Next attempt no sooner than ${String(Math.round(this.minIntervalMs / 1e3))} s, on the next gateway call.`
2306
- );
2307
- return;
2308
- }
2309
- target.push(...found);
2310
- logger11.info("OpenAI-compatible gateway re-discovered; gateway calls now go in-process", {
2311
- modelCount: found.length
2312
- });
2313
- this.options.onDiscovered?.(found);
2314
- }
2315
- };
2316
- var active;
2317
- function setGatewayRediscovery(rediscovery) {
2318
- active = rediscovery;
2319
- }
2320
- async function ensureGatewayDiscovered() {
2321
- await active?.ensure();
2322
- }
2323
-
2324
2265
  // src/cli/voter-agents.ts
2325
2266
  function computeOverallConsensusDeadlineMs(timeoutMs, maxRetries, roleCount, interDelayMs) {
2326
2267
  const perVoteBudget = timeoutMs * (maxRetries + 1);
@@ -5540,12 +5481,12 @@ var CorrelationModelPartitions = class {
5540
5481
  for (const [role, newModel] of modelPins) this.setCurrentPin(role, newModel);
5541
5482
  }
5542
5483
  getActiveHistory() {
5543
- const active2 = /* @__PURE__ */ new Map();
5484
+ const active = /* @__PURE__ */ new Map();
5544
5485
  for (const [pairKey, partitions] of this.histories) {
5545
5486
  const history = partitions.get(this.activePartitionKey(pairKey));
5546
- if (history !== void 0) active2.set(pairKey, history);
5487
+ if (history !== void 0) active.set(pairKey, history);
5547
5488
  }
5548
- return active2;
5489
+ return active;
5549
5490
  }
5550
5491
  getOrCreate(pairKey, create) {
5551
5492
  let partitions = this.histories.get(pairKey);
@@ -6649,7 +6590,7 @@ function logPartialProposal(bounded, log) {
6649
6590
  }
6650
6591
  async function runContrarianCheck(proposal, log, opts) {
6651
6592
  try {
6652
- const { executeExpert } = await import("./expert-bridge-H4EOOXWB.js");
6593
+ const { executeExpert } = await import("./expert-bridge-YGKTCGCZ.js");
6653
6594
  const bounded = boundArtifactForReview(proposal, CONTRARIAN_PROPOSAL_BUDGET, "proposal");
6654
6595
  logPartialProposal(bounded, log);
6655
6596
  const result = await executeExpert("architecture", buildContrarianPrompt(bounded, opts), {
@@ -9884,9 +9825,6 @@ export {
9884
9825
  isAbsentSeat,
9885
9826
  NoAdapterError,
9886
9827
  resolveAdapter,
9887
- GatewayRediscovery,
9888
- setGatewayRediscovery,
9889
- ensureGatewayDiscovered,
9890
9828
  assignPanelSeats,
9891
9829
  collectRealVotes,
9892
9830
  VoterProjectInputSchema,
@@ -9958,4 +9896,4 @@ export {
9958
9896
  CONSENSUS_VOTE_TOOL_SCHEMA,
9959
9897
  registerConsensusVoteTool
9960
9898
  };
9961
- //# sourceMappingURL=chunk-ALX7T72L.js.map
9899
+ //# sourceMappingURL=chunk-2DBAC2OY.js.map