nexus-agents 2.96.0 → 2.97.0

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 (117) hide show
  1. package/dist/{child-mcp-config-HZUEFKXB.js → child-mcp-config-WVPJIK2J.js} +2 -2
  2. package/dist/{chunk-3ZROPKLV.js → chunk-5LGAPYX7.js} +2 -2
  3. package/dist/{chunk-SSHL5TAX.js → chunk-65LE457J.js} +2 -2
  4. package/dist/{chunk-EUUWRNDZ.js → chunk-674NONPG.js} +2 -2
  5. package/dist/{chunk-NJN5SGU2.js → chunk-6IN4MKDA.js} +7 -7
  6. package/dist/{chunk-7P3UIYJH.js → chunk-76FTBRUS.js} +30 -30
  7. package/dist/{chunk-THVTU2UG.js → chunk-7BLBXITB.js} +3 -3
  8. package/dist/{chunk-23NNSR45.js → chunk-APLZRTYC.js} +7 -7
  9. package/dist/{chunk-P7Y3KLKG.js → chunk-D3OT7TOA.js} +3 -3
  10. package/dist/{chunk-FHZUOIVC.js → chunk-E43RUPLP.js} +3 -3
  11. package/dist/{chunk-MVCJEIUU.js → chunk-EY7LL4F4.js} +2 -2
  12. package/dist/{chunk-OHGKVMT3.js → chunk-FDTIRCSL.js} +2 -2
  13. package/dist/{chunk-Z7PILY4E.js → chunk-GAIUXYF4.js} +15 -12
  14. package/dist/chunk-GAIUXYF4.js.map +1 -0
  15. package/dist/{chunk-AW3HJHJT.js → chunk-GERVGPTF.js} +2 -2
  16. package/dist/{chunk-Z3XF5LRT.js → chunk-HIWO2WWP.js} +2 -2
  17. package/dist/{chunk-AJMHTC4J.js → chunk-HWCMNFIS.js} +3 -3
  18. package/dist/{chunk-AREIPUCD.js → chunk-HZGHPBTV.js} +2 -2
  19. package/dist/{chunk-ANH2A44T.js → chunk-IHKPGTF3.js} +4 -4
  20. package/dist/{chunk-2KHD2ANY.js → chunk-JTQLV374.js} +69 -5
  21. package/dist/chunk-JTQLV374.js.map +1 -0
  22. package/dist/{chunk-YSYBVLYS.js → chunk-JX6VL7JF.js} +3 -3
  23. package/dist/{chunk-ONIHS7K7.js → chunk-KKVH3PDK.js} +4 -4
  24. package/dist/{chunk-XMYJWMWN.js → chunk-ML4IF3PS.js} +4 -4
  25. package/dist/{chunk-YWIZ3UQ6.js → chunk-N5656LE3.js} +2 -2
  26. package/dist/{chunk-DTFM37IG.js → chunk-NTBVUWU4.js} +2 -2
  27. package/dist/{chunk-FPAUF3YB.js → chunk-OKRTOMKX.js} +2 -2
  28. package/dist/{chunk-ZBQXPP7M.js → chunk-OSHCOBDK.js} +2 -2
  29. package/dist/{chunk-SRSAMAPP.js → chunk-P2BKWVKF.js} +3 -3
  30. package/dist/{chunk-INFJH4JX.js → chunk-SAUBPHQ7.js} +4 -4
  31. package/dist/{chunk-ICOHLRHT.js → chunk-SWNOQW7Y.js} +5 -5
  32. package/dist/{chunk-R2KJ22LX.js → chunk-SZNNT2DH.js} +2 -2
  33. package/dist/{chunk-2472O6HR.js → chunk-T5TYWM5S.js} +2 -2
  34. package/dist/{chunk-MMW4KIBH.js → chunk-UNOOL6EN.js} +2 -2
  35. package/dist/{chunk-JEK5CHK2.js → chunk-WXDWDGVL.js} +2 -2
  36. package/dist/{cli-circuit-breaker-L6SWUVOP.js → cli-circuit-breaker-STKW4DTL.js} +4 -4
  37. package/dist/cli.js +84 -39
  38. package/dist/cli.js.map +1 -1
  39. package/dist/{composite-router-HFBOUCXD.js → composite-router-POFAM7T4.js} +2 -2
  40. package/dist/{consensus-vote-YEZIP2JQ.js → consensus-vote-EQAYX53Z.js} +13 -13
  41. package/dist/{context-retriever-PTRDEBBH.js → context-retriever-H22L3WFV.js} +6 -6
  42. package/dist/{doctor-deep-WHCDAV3Z.js → doctor-deep-HGAC6N5Y.js} +3 -3
  43. package/dist/{expert-bridge-N4L47MHU.js → expert-bridge-IAQPOJAQ.js} +4 -4
  44. package/dist/{factory-ZKGYCGDT.js → factory-P2SQS7UM.js} +5 -5
  45. package/dist/{factory-EFLOKY32.js → factory-ZIZYUDKH.js} +5 -5
  46. package/dist/{improvement-review-4MTIYCOZ.js → improvement-review-G2HAMGZP.js} +4 -4
  47. package/dist/index.d.ts +8 -1
  48. package/dist/index.js +28 -28
  49. package/dist/{init-opencode-42GKRQDA.js → init-opencode-RHCYZDZW.js} +5 -5
  50. package/dist/{issue-triage-TEPE6VMA.js → issue-triage-VVNQIQW5.js} +5 -5
  51. package/dist/{pr-reviewer-helpers-G4O22XF6.js → pr-reviewer-helpers-UN7RDPDN.js} +4 -4
  52. package/dist/{registry-command-32PUZNNG.js → registry-command-OVRRKYHO.js} +2 -2
  53. package/dist/{repo-security-plan-XWUDQB34.js → repo-security-plan-X74TBYOV.js} +3 -3
  54. package/dist/{research-helpers-synthesize-YI6S7SN6.js → research-helpers-synthesize-OSP6FGNV.js} +3 -3
  55. package/dist/{routing-memory-Z3ZCTPFM.js → routing-memory-5T5QJF47.js} +2 -2
  56. package/dist/{session-memory-5ZZ2SXDE.js → session-memory-X7CJ6X4A.js} +3 -3
  57. package/dist/{setup-command-U3ILRY5H.js → setup-command-ZWJCGPJ5.js} +11 -11
  58. package/dist/{setup-config-WZYLXPDO.js → setup-config-YVIKUNOB.js} +3 -3
  59. package/dist/{setup-custom-api-K4EN47CP.js → setup-custom-api-FLV4SELI.js} +4 -4
  60. package/dist/{tool-memory-53Y2TUR3.js → tool-memory-QNEAKRKV.js} +5 -5
  61. package/dist/{weather-report-JOBWXWQ3.js → weather-report-SUVIXWKI.js} +2 -2
  62. package/package.json +1 -1
  63. package/dist/chunk-2KHD2ANY.js.map +0 -1
  64. package/dist/chunk-Z7PILY4E.js.map +0 -1
  65. /package/dist/{child-mcp-config-HZUEFKXB.js.map → child-mcp-config-WVPJIK2J.js.map} +0 -0
  66. /package/dist/{chunk-3ZROPKLV.js.map → chunk-5LGAPYX7.js.map} +0 -0
  67. /package/dist/{chunk-SSHL5TAX.js.map → chunk-65LE457J.js.map} +0 -0
  68. /package/dist/{chunk-EUUWRNDZ.js.map → chunk-674NONPG.js.map} +0 -0
  69. /package/dist/{chunk-NJN5SGU2.js.map → chunk-6IN4MKDA.js.map} +0 -0
  70. /package/dist/{chunk-7P3UIYJH.js.map → chunk-76FTBRUS.js.map} +0 -0
  71. /package/dist/{chunk-THVTU2UG.js.map → chunk-7BLBXITB.js.map} +0 -0
  72. /package/dist/{chunk-23NNSR45.js.map → chunk-APLZRTYC.js.map} +0 -0
  73. /package/dist/{chunk-P7Y3KLKG.js.map → chunk-D3OT7TOA.js.map} +0 -0
  74. /package/dist/{chunk-FHZUOIVC.js.map → chunk-E43RUPLP.js.map} +0 -0
  75. /package/dist/{chunk-MVCJEIUU.js.map → chunk-EY7LL4F4.js.map} +0 -0
  76. /package/dist/{chunk-OHGKVMT3.js.map → chunk-FDTIRCSL.js.map} +0 -0
  77. /package/dist/{chunk-AW3HJHJT.js.map → chunk-GERVGPTF.js.map} +0 -0
  78. /package/dist/{chunk-Z3XF5LRT.js.map → chunk-HIWO2WWP.js.map} +0 -0
  79. /package/dist/{chunk-AJMHTC4J.js.map → chunk-HWCMNFIS.js.map} +0 -0
  80. /package/dist/{chunk-AREIPUCD.js.map → chunk-HZGHPBTV.js.map} +0 -0
  81. /package/dist/{chunk-ANH2A44T.js.map → chunk-IHKPGTF3.js.map} +0 -0
  82. /package/dist/{chunk-YSYBVLYS.js.map → chunk-JX6VL7JF.js.map} +0 -0
  83. /package/dist/{chunk-ONIHS7K7.js.map → chunk-KKVH3PDK.js.map} +0 -0
  84. /package/dist/{chunk-XMYJWMWN.js.map → chunk-ML4IF3PS.js.map} +0 -0
  85. /package/dist/{chunk-YWIZ3UQ6.js.map → chunk-N5656LE3.js.map} +0 -0
  86. /package/dist/{chunk-DTFM37IG.js.map → chunk-NTBVUWU4.js.map} +0 -0
  87. /package/dist/{chunk-FPAUF3YB.js.map → chunk-OKRTOMKX.js.map} +0 -0
  88. /package/dist/{chunk-ZBQXPP7M.js.map → chunk-OSHCOBDK.js.map} +0 -0
  89. /package/dist/{chunk-SRSAMAPP.js.map → chunk-P2BKWVKF.js.map} +0 -0
  90. /package/dist/{chunk-INFJH4JX.js.map → chunk-SAUBPHQ7.js.map} +0 -0
  91. /package/dist/{chunk-ICOHLRHT.js.map → chunk-SWNOQW7Y.js.map} +0 -0
  92. /package/dist/{chunk-R2KJ22LX.js.map → chunk-SZNNT2DH.js.map} +0 -0
  93. /package/dist/{chunk-2472O6HR.js.map → chunk-T5TYWM5S.js.map} +0 -0
  94. /package/dist/{chunk-MMW4KIBH.js.map → chunk-UNOOL6EN.js.map} +0 -0
  95. /package/dist/{chunk-JEK5CHK2.js.map → chunk-WXDWDGVL.js.map} +0 -0
  96. /package/dist/{cli-circuit-breaker-L6SWUVOP.js.map → cli-circuit-breaker-STKW4DTL.js.map} +0 -0
  97. /package/dist/{composite-router-HFBOUCXD.js.map → composite-router-POFAM7T4.js.map} +0 -0
  98. /package/dist/{consensus-vote-YEZIP2JQ.js.map → consensus-vote-EQAYX53Z.js.map} +0 -0
  99. /package/dist/{context-retriever-PTRDEBBH.js.map → context-retriever-H22L3WFV.js.map} +0 -0
  100. /package/dist/{doctor-deep-WHCDAV3Z.js.map → doctor-deep-HGAC6N5Y.js.map} +0 -0
  101. /package/dist/{expert-bridge-N4L47MHU.js.map → expert-bridge-IAQPOJAQ.js.map} +0 -0
  102. /package/dist/{factory-EFLOKY32.js.map → factory-P2SQS7UM.js.map} +0 -0
  103. /package/dist/{factory-ZKGYCGDT.js.map → factory-ZIZYUDKH.js.map} +0 -0
  104. /package/dist/{improvement-review-4MTIYCOZ.js.map → improvement-review-G2HAMGZP.js.map} +0 -0
  105. /package/dist/{init-opencode-42GKRQDA.js.map → init-opencode-RHCYZDZW.js.map} +0 -0
  106. /package/dist/{issue-triage-TEPE6VMA.js.map → issue-triage-VVNQIQW5.js.map} +0 -0
  107. /package/dist/{pr-reviewer-helpers-G4O22XF6.js.map → pr-reviewer-helpers-UN7RDPDN.js.map} +0 -0
  108. /package/dist/{registry-command-32PUZNNG.js.map → registry-command-OVRRKYHO.js.map} +0 -0
  109. /package/dist/{repo-security-plan-XWUDQB34.js.map → repo-security-plan-X74TBYOV.js.map} +0 -0
  110. /package/dist/{research-helpers-synthesize-YI6S7SN6.js.map → research-helpers-synthesize-OSP6FGNV.js.map} +0 -0
  111. /package/dist/{routing-memory-Z3ZCTPFM.js.map → routing-memory-5T5QJF47.js.map} +0 -0
  112. /package/dist/{session-memory-5ZZ2SXDE.js.map → session-memory-X7CJ6X4A.js.map} +0 -0
  113. /package/dist/{setup-command-U3ILRY5H.js.map → setup-command-ZWJCGPJ5.js.map} +0 -0
  114. /package/dist/{setup-config-WZYLXPDO.js.map → setup-config-YVIKUNOB.js.map} +0 -0
  115. /package/dist/{setup-custom-api-K4EN47CP.js.map → setup-custom-api-FLV4SELI.js.map} +0 -0
  116. /package/dist/{tool-memory-53Y2TUR3.js.map → tool-memory-QNEAKRKV.js.map} +0 -0
  117. /package/dist/{weather-report-JOBWXWQ3.js.map → weather-report-SUVIXWKI.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OpenAIAdapter
3
- } from "./chunk-AJMHTC4J.js";
3
+ } from "./chunk-HWCMNFIS.js";
4
4
  import {
5
5
  ConfigError,
6
6
  createLogger,
@@ -9,7 +9,7 @@ import {
9
9
  getTimeProvider,
10
10
  lookupInTreeCapability,
11
11
  ok
12
- } from "./chunk-2KHD2ANY.js";
12
+ } from "./chunk-JTQLV374.js";
13
13
  import {
14
14
  getNexusDataDir
15
15
  } from "./chunk-CH7QIDHQ.js";
@@ -307,4 +307,4 @@ export {
307
307
  discoverModels,
308
308
  buildOpenAICompatAdapters
309
309
  };
310
- //# sourceMappingURL=chunk-YSYBVLYS.js.map
310
+ //# sourceMappingURL=chunk-JX6VL7JF.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-MVCJEIUU.js";
4
+ } from "./chunk-EY7LL4F4.js";
5
5
  import {
6
6
  ROLE_DEFAULT_TRUST,
7
7
  ReputationCache,
@@ -11,13 +11,13 @@ import {
11
11
  gateWithReputation,
12
12
  resolveReputationGatingMode,
13
13
  sanitizeInput
14
- } from "./chunk-R2KJ22LX.js";
14
+ } from "./chunk-SZNNT2DH.js";
15
15
  import {
16
16
  createLogger,
17
17
  err,
18
18
  getTimeProvider,
19
19
  ok
20
- } from "./chunk-2KHD2ANY.js";
20
+ } from "./chunk-JTQLV374.js";
21
21
 
22
22
  // src/security/trust-classifier.ts
23
23
  function mapAuthorAssociation(association) {
@@ -1368,4 +1368,4 @@ export {
1368
1368
  IssueTriage,
1369
1369
  createIssueTriage
1370
1370
  };
1371
- //# sourceMappingURL=chunk-ONIHS7K7.js.map
1371
+ //# sourceMappingURL=chunk-KKVH3PDK.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  CliCircuitBreaker,
3
3
  DEFAULT_CIRCUIT_BREAKER_CONFIG
4
- } from "./chunk-EUUWRNDZ.js";
4
+ } from "./chunk-674NONPG.js";
5
5
  import {
6
6
  generateHyphenId
7
- } from "./chunk-AREIPUCD.js";
7
+ } from "./chunk-HZGHPBTV.js";
8
8
  import {
9
9
  CLI_SUBPROCESS_TIMEOUTS,
10
10
  CLI_TIMEOUTS,
@@ -27,7 +27,7 @@ import {
27
27
  getTimeProvider,
28
28
  isRateLimitText,
29
29
  ok
30
- } from "./chunk-2KHD2ANY.js";
30
+ } from "./chunk-JTQLV374.js";
31
31
 
32
32
  // src/cli-adapters/subprocess-adapter.ts
33
33
  import { spawn } from "child_process";
@@ -3291,4 +3291,4 @@ export {
3291
3291
  isCliAvailable,
3292
3292
  getAvailableClis
3293
3293
  };
3294
- //# sourceMappingURL=chunk-XMYJWMWN.js.map
3294
+ //# sourceMappingURL=chunk-ML4IF3PS.js.map
@@ -3,7 +3,7 @@ import {
3
3
  MODEL_IDS,
4
4
  getTimeProvider,
5
5
  resolveModelIdentitySync
6
- } from "./chunk-2KHD2ANY.js";
6
+ } from "./chunk-JTQLV374.js";
7
7
 
8
8
  // src/config/model-availability.ts
9
9
  var DEFAULT_TTL_MS = 6e4;
@@ -150,4 +150,4 @@ export {
150
150
  resetAvailabilityCache,
151
151
  filterAvailableModels
152
152
  };
153
- //# sourceMappingURL=chunk-YWIZ3UQ6.js.map
153
+ //# sourceMappingURL=chunk-N5656LE3.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getErrorMessage
3
- } from "./chunk-2KHD2ANY.js";
3
+ } from "./chunk-JTQLV374.js";
4
4
 
5
5
  // src/cli/setup-config.ts
6
6
  import { copyFileSync, existsSync, mkdirSync, writeFileSync } from "fs";
@@ -77,4 +77,4 @@ function ensureBackup(outputPath) {
77
77
  export {
78
78
  runConfigInitSync
79
79
  };
80
- //# sourceMappingURL=chunk-DTFM37IG.js.map
80
+ //# sourceMappingURL=chunk-NTBVUWU4.js.map
@@ -2,7 +2,7 @@ import {
2
2
  TASK_CATEGORIES,
3
3
  getAdaptiveBonus,
4
4
  getOutcomeStore
5
- } from "./chunk-2KHD2ANY.js";
5
+ } from "./chunk-JTQLV374.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-FPAUF3YB.js.map
109
+ //# sourceMappingURL=chunk-OKRTOMKX.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createLogger
3
- } from "./chunk-2KHD2ANY.js";
3
+ } from "./chunk-JTQLV374.js";
4
4
 
5
5
  // src/config/available-models-cache.ts
6
6
  var logger = createLogger({ component: "available-models-cache" });
@@ -150,4 +150,4 @@ export {
150
150
  getDefaultAvailableModelsCache,
151
151
  setDefaultAvailableModelsCache
152
152
  };
153
- //# sourceMappingURL=chunk-ZBQXPP7M.js.map
153
+ //# sourceMappingURL=chunk-OSHCOBDK.js.map
@@ -6,7 +6,7 @@ import {
6
6
  toolStructuredError,
7
7
  toolSuccessStructured,
8
8
  wrapToolWithTimeout
9
- } from "./chunk-3ZROPKLV.js";
9
+ } from "./chunk-5LGAPYX7.js";
10
10
  import {
11
11
  createLogger,
12
12
  formatZodError,
@@ -14,7 +14,7 @@ import {
14
14
  getOutcomeStore,
15
15
  getPipelineEventBus,
16
16
  getTimeProvider
17
- } from "./chunk-2KHD2ANY.js";
17
+ } from "./chunk-JTQLV374.js";
18
18
  import {
19
19
  getNexusDataDir
20
20
  } from "./chunk-CH7QIDHQ.js";
@@ -1092,4 +1092,4 @@ export {
1092
1092
  runImprovementReview,
1093
1093
  registerImprovementReviewTool
1094
1094
  };
1095
- //# sourceMappingURL=chunk-SRSAMAPP.js.map
1095
+ //# sourceMappingURL=chunk-P2BKWVKF.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  resolveToken
3
- } from "./chunk-OHGKVMT3.js";
3
+ } from "./chunk-FDTIRCSL.js";
4
4
  import {
5
5
  GitHubProvider,
6
6
  ScmError
7
- } from "./chunk-MVCJEIUU.js";
7
+ } from "./chunk-EY7LL4F4.js";
8
8
  import {
9
9
  err,
10
10
  ok
11
- } from "./chunk-2KHD2ANY.js";
11
+ } from "./chunk-JTQLV374.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-INFJH4JX.js.map
44
+ //# sourceMappingURL=chunk-SAUBPHQ7.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runConfigInitSync
3
- } from "./chunk-DTFM37IG.js";
3
+ } from "./chunk-NTBVUWU4.js";
4
4
  import {
5
5
  VERSION,
6
6
  checkApiKeys,
@@ -8,10 +8,10 @@ import {
8
8
  checkSqlite,
9
9
  defaultConfig,
10
10
  initDataDirectories
11
- } from "./chunk-23NNSR45.js";
11
+ } from "./chunk-APLZRTYC.js";
12
12
  import {
13
13
  probeAllClis
14
- } from "./chunk-XMYJWMWN.js";
14
+ } from "./chunk-ML4IF3PS.js";
15
15
  import {
16
16
  BUILT_IN_EXPERTS
17
17
  } from "./chunk-ZM4O442V.js";
@@ -25,7 +25,7 @@ import {
25
25
  getErrorMessage,
26
26
  getTimeProvider,
27
27
  symbols
28
- } from "./chunk-2KHD2ANY.js";
28
+ } from "./chunk-JTQLV374.js";
29
29
  import {
30
30
  ensureGitignored,
31
31
  findRepoRoot
@@ -1987,4 +1987,4 @@ export {
1987
1987
  setupCommand,
1988
1988
  setupCommandAsync
1989
1989
  };
1990
- //# sourceMappingURL=chunk-ICOHLRHT.js.map
1990
+ //# sourceMappingURL=chunk-SWNOQW7Y.js.map
@@ -2,7 +2,7 @@ import {
2
2
  CACHE_TIMEOUTS,
3
3
  createLogger,
4
4
  getTimeProvider
5
- } from "./chunk-2KHD2ANY.js";
5
+ } from "./chunk-JTQLV374.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-R2KJ22LX.js.map
563
+ //# sourceMappingURL=chunk-SZNNT2DH.js.map
@@ -8,7 +8,7 @@ import {
8
8
  getErrorMessage,
9
9
  ok,
10
10
  parseBoolEnv
11
- } from "./chunk-2KHD2ANY.js";
11
+ } from "./chunk-JTQLV374.js";
12
12
 
13
13
  // src/cli/research-helpers-synthesize.ts
14
14
  import { z } from "zod";
@@ -1015,4 +1015,4 @@ export {
1015
1015
  AttributedInsightSchema,
1016
1016
  synthesizeResearch
1017
1017
  };
1018
- //# sourceMappingURL=chunk-2472O6HR.js.map
1018
+ //# sourceMappingURL=chunk-T5TYWM5S.js.map
@@ -11,7 +11,7 @@ import {
11
11
  createGetRetryConfig,
12
12
  createGetTimeout,
13
13
  createGetToolRateLimit
14
- } from "./chunk-2KHD2ANY.js";
14
+ } from "./chunk-JTQLV374.js";
15
15
 
16
16
  // src/config/defaults.ts
17
17
  var CUSTOM_API_DEFAULT_MODEL = "gpt-4o";
@@ -230,4 +230,4 @@ export {
230
230
  CUSTOM_API_DEFAULT_MODEL,
231
231
  DEFAULTS
232
232
  };
233
- //# sourceMappingURL=chunk-MMW4KIBH.js.map
233
+ //# sourceMappingURL=chunk-UNOOL6EN.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider
7
- } from "./chunk-2KHD2ANY.js";
7
+ } from "./chunk-JTQLV374.js";
8
8
 
9
9
  // src/mcp/tools/scanner-registry-fetcher.ts
10
10
  import { z } from "zod";
@@ -721,4 +721,4 @@ export {
721
721
  generateSecurityPlan,
722
722
  buildPlanFromAnalysis
723
723
  };
724
- //# sourceMappingURL=chunk-JEK5CHK2.js.map
724
+ //# sourceMappingURL=chunk-WXDWDGVL.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  CliCircuitBreakerIntegration,
3
3
  createCliCircuitBreakerIntegration
4
- } from "./chunk-FHZUOIVC.js";
5
- import "./chunk-EUUWRNDZ.js";
6
- import "./chunk-2KHD2ANY.js";
4
+ } from "./chunk-E43RUPLP.js";
5
+ import "./chunk-674NONPG.js";
6
+ import "./chunk-JTQLV374.js";
7
7
  import "./chunk-CH7QIDHQ.js";
8
8
  import "./chunk-PR4QN5HX.js";
9
9
  export {
10
10
  CliCircuitBreakerIntegration,
11
11
  createCliCircuitBreakerIntegration
12
12
  };
13
- //# sourceMappingURL=cli-circuit-breaker-L6SWUVOP.js.map
13
+ //# sourceMappingURL=cli-circuit-breaker-STKW4DTL.js.map
package/dist/cli.js CHANGED
@@ -13,19 +13,19 @@ import {
13
13
  generateSummary,
14
14
  parseFindings,
15
15
  sumFindings
16
- } from "./chunk-THVTU2UG.js";
17
- import "./chunk-FPAUF3YB.js";
16
+ } from "./chunk-7BLBXITB.js";
17
+ import "./chunk-OKRTOMKX.js";
18
18
  import {
19
19
  buildOpenAICompatAdapters,
20
20
  loadUsageEvents,
21
21
  readOpenAICompatEnv,
22
22
  rollupByModel
23
- } from "./chunk-YSYBVLYS.js";
23
+ } from "./chunk-JX6VL7JF.js";
24
24
  import {
25
25
  setupCommandAsync,
26
26
  verifyCommand
27
- } from "./chunk-ICOHLRHT.js";
28
- import "./chunk-DTFM37IG.js";
27
+ } from "./chunk-SWNOQW7Y.js";
28
+ import "./chunk-NTBVUWU4.js";
29
29
  import {
30
30
  AuthHandler,
31
31
  DEFAULT_EXPERTS,
@@ -163,20 +163,20 @@ import {
163
163
  validateCommand,
164
164
  validateWorkflow,
165
165
  wrapInMarkdownFence
166
- } from "./chunk-7P3UIYJH.js";
166
+ } from "./chunk-76FTBRUS.js";
167
167
  import "./chunk-3ACDP4E6.js";
168
168
  import {
169
169
  resolveToken
170
- } from "./chunk-OHGKVMT3.js";
170
+ } from "./chunk-FDTIRCSL.js";
171
171
  import {
172
172
  CATEGORY_DISPLAY_NAMES,
173
173
  DEFAULT_PR_REVIEW_CONFIG
174
174
  } from "./chunk-OK6U5N5Y.js";
175
- import "./chunk-AJMHTC4J.js";
176
- import "./chunk-FHZUOIVC.js";
175
+ import "./chunk-HWCMNFIS.js";
176
+ import "./chunk-E43RUPLP.js";
177
177
  import {
178
178
  shutdownExpertBridge
179
- } from "./chunk-NJN5SGU2.js";
179
+ } from "./chunk-6IN4MKDA.js";
180
180
  import {
181
181
  DEFAULT_VOTE_TIMEOUT_MS,
182
182
  ErrorPolicySchema,
@@ -186,33 +186,33 @@ import {
186
186
  executeVoting,
187
187
  registerConsensusVoteTool,
188
188
  warnIfSimulatedOutsideTests
189
- } from "./chunk-Z7PILY4E.js";
190
- import "./chunk-AW3HJHJT.js";
191
- import "./chunk-SSHL5TAX.js";
189
+ } from "./chunk-GAIUXYF4.js";
190
+ import "./chunk-GERVGPTF.js";
191
+ import "./chunk-65LE457J.js";
192
192
  import {
193
193
  loadPapersRegistry,
194
194
  loadTechniquesRegistry,
195
195
  savePapersRegistry,
196
196
  synthesizeResearch
197
- } from "./chunk-2472O6HR.js";
197
+ } from "./chunk-T5TYWM5S.js";
198
198
  import {
199
199
  classifyTrust,
200
200
  createFullGitHubProvider,
201
201
  evaluatePolicy,
202
202
  parsePRUrl
203
- } from "./chunk-ONIHS7K7.js";
204
- import "./chunk-MVCJEIUU.js";
203
+ } from "./chunk-KKVH3PDK.js";
204
+ import "./chunk-EY7LL4F4.js";
205
205
  import {
206
206
  ReputationCache,
207
207
  sanitizeInput
208
- } from "./chunk-R2KJ22LX.js";
208
+ } from "./chunk-SZNNT2DH.js";
209
209
  import {
210
210
  ImprovementReviewInputSchema,
211
211
  calculateFitnessScore,
212
212
  createFitnessScoreCalculator,
213
213
  registerImprovementReviewTool,
214
214
  runImprovementReview
215
- } from "./chunk-SRSAMAPP.js";
215
+ } from "./chunk-P2BKWVKF.js";
216
216
  import {
217
217
  createDefaultPolicyFirewall,
218
218
  createSecureHandler,
@@ -222,14 +222,14 @@ import {
222
222
  toolStructuredError,
223
223
  toolSuccessStructured,
224
224
  wrapToolWithTimeout
225
- } from "./chunk-3ZROPKLV.js";
226
- import "./chunk-JEK5CHK2.js";
225
+ } from "./chunk-5LGAPYX7.js";
226
+ import "./chunk-WXDWDGVL.js";
227
227
  import "./chunk-HFOQKCD2.js";
228
- import "./chunk-P7Y3KLKG.js";
228
+ import "./chunk-D3OT7TOA.js";
229
229
  import {
230
230
  MemoryError,
231
231
  shutdownToolMemory
232
- } from "./chunk-ANH2A44T.js";
232
+ } from "./chunk-IHKPGTF3.js";
233
233
  import {
234
234
  CustomExpertDefinitionSchema,
235
235
  DATA_SUBDIRECTORIES,
@@ -248,12 +248,12 @@ import {
248
248
  loadConfig,
249
249
  runDoctor,
250
250
  validateNexusEnv
251
- } from "./chunk-23NNSR45.js";
252
- import "./chunk-YWIZ3UQ6.js";
253
- import "./chunk-ZBQXPP7M.js";
251
+ } from "./chunk-APLZRTYC.js";
252
+ import "./chunk-N5656LE3.js";
253
+ import "./chunk-OSHCOBDK.js";
254
254
  import {
255
255
  DEFAULTS
256
- } from "./chunk-MMW4KIBH.js";
256
+ } from "./chunk-UNOOL6EN.js";
257
257
  import "./chunk-NUBSJGQZ.js";
258
258
  import {
259
259
  capitalize,
@@ -265,12 +265,12 @@ import {
265
265
  getAvailableClis,
266
266
  isRecord,
267
267
  probeAllClis
268
- } from "./chunk-XMYJWMWN.js";
269
- import "./chunk-EUUWRNDZ.js";
270
- import "./chunk-AREIPUCD.js";
268
+ } from "./chunk-ML4IF3PS.js";
269
+ import "./chunk-674NONPG.js";
270
+ import "./chunk-HZGHPBTV.js";
271
271
  import "./chunk-ZM4O442V.js";
272
272
  import "./chunk-PQHVC4BD.js";
273
- import "./chunk-Z3XF5LRT.js";
273
+ import "./chunk-HIWO2WWP.js";
274
274
  import {
275
275
  API_TIMEOUTS,
276
276
  AgentCapability,
@@ -341,7 +341,7 @@ import {
341
341
  validateTimeout,
342
342
  writeEmptyLine,
343
343
  writeLine
344
- } from "./chunk-2KHD2ANY.js";
344
+ } from "./chunk-JTQLV374.js";
345
345
  import {
346
346
  applyPortableMode,
347
347
  detectSandbox,
@@ -3120,7 +3120,7 @@ ${file.patch}
3120
3120
  violations: policyResult.violations
3121
3121
  });
3122
3122
  }
3123
- const { formatReviewComment: formatReviewComment2 } = await import("./pr-reviewer-helpers-G4O22XF6.js");
3123
+ const { formatReviewComment: formatReviewComment2 } = await import("./pr-reviewer-helpers-UN7RDPDN.js");
3124
3124
  const body = formatReviewComment2(result);
3125
3125
  const postResult = await provider.createReview(pr.prNumber, body, result.decision);
3126
3126
  if (!postResult.ok) {
@@ -17571,7 +17571,7 @@ function startImprovementReviewScheduler(options) {
17571
17571
  let running = false;
17572
17572
  const runOnce = async () => {
17573
17573
  try {
17574
- const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-4MTIYCOZ.js");
17574
+ const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-G2HAMGZP.js");
17575
17575
  const input = ImprovementReviewInputSchema2.parse({ fileIssues });
17576
17576
  const result = await runImprovementReview2(input, { logger: logger18 });
17577
17577
  logger18.info("Scheduled improvement_review complete", {
@@ -18191,6 +18191,50 @@ function registerMcpTools(options) {
18191
18191
  // src/cli-server.ts
18192
18192
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
18193
18193
 
18194
+ // src/cli/version-check.ts
18195
+ import semver from "semver";
18196
+ var REGISTRY_LATEST_URL = "https://registry.npmjs.org/nexus-agents/latest";
18197
+ var DEFAULT_TIMEOUT_MS3 = 1500;
18198
+ var ENV_FLAG = "NEXUS_VERSION_CHECK";
18199
+ async function fetchLatestVersion(doFetch, timeoutMs) {
18200
+ try {
18201
+ const res = await doFetch(REGISTRY_LATEST_URL, { signal: AbortSignal.timeout(timeoutMs) });
18202
+ if (!res.ok) return null;
18203
+ const body = await res.json();
18204
+ const latest = typeof body.version === "string" ? body.version : null;
18205
+ return latest !== null && semver.valid(latest) !== null ? latest : null;
18206
+ } catch {
18207
+ return null;
18208
+ }
18209
+ }
18210
+ async function checkVersionDrift(options) {
18211
+ const current = options?.currentVersion ?? VERSION;
18212
+ if (semver.valid(current) === null) return null;
18213
+ const doFetch = options?.fetchImpl ?? globalThis.fetch;
18214
+ if (typeof doFetch !== "function") return null;
18215
+ const latest = await fetchLatestVersion(doFetch, options?.timeoutMs ?? DEFAULT_TIMEOUT_MS3);
18216
+ if (latest === null) return null;
18217
+ return { current, latest, stale: semver.lt(current, latest) };
18218
+ }
18219
+ async function warnIfVersionStale(logger18, options) {
18220
+ if (!parseBoolEnv(ENV_FLAG, true)) return;
18221
+ if (process.env["CI"] !== void 0 && process.env["CI"] !== "") return;
18222
+ try {
18223
+ const drift = await checkVersionDrift(options);
18224
+ if (drift?.stale === true) {
18225
+ logger18.warn(
18226
+ "nexus-agents is running a stale version \u2014 you may be serving old code (#3283)",
18227
+ {
18228
+ running: drift.current,
18229
+ latestPublished: drift.latest,
18230
+ fix: "npm i -g nexus-agents@latest, then restart the MCP server"
18231
+ }
18232
+ );
18233
+ }
18234
+ } catch {
18235
+ }
18236
+ }
18237
+
18194
18238
  // src/cli-server-lifecycle.ts
18195
18239
  function initializeSwarmObserver(logger18, options) {
18196
18240
  const maxEvents = options?.maxEvents ?? 1e4;
@@ -19456,7 +19500,7 @@ function adaptConfigToLibrary(config) {
19456
19500
  }
19457
19501
  function createBeliefPromoter() {
19458
19502
  return async (event) => {
19459
- const { getToolMemory } = await import("./tool-memory-53Y2TUR3.js");
19503
+ const { getToolMemory } = await import("./tool-memory-QNEAKRKV.js");
19460
19504
  const tm = getToolMemory();
19461
19505
  await tm.recordBelief(
19462
19506
  `skill:${event.name}`,
@@ -19929,6 +19973,7 @@ async function startServer(verbose, mode, modeWasExplicit = false, orchestratorO
19929
19973
  startupWatchdog.unref();
19930
19974
  const detectionResult = detectMode({ explicitMode: modeWasExplicit ? mode : void 0 });
19931
19975
  logStartupInfo(logger18, detectionResult, verbose);
19976
+ void warnIfVersionStale(logger18);
19932
19977
  const configResult = loadAndLogConfig(logger18);
19933
19978
  applyLoggingConfig(logger18, verbose, configResult.config);
19934
19979
  validateNexusEnv(logger18);
@@ -20322,7 +20367,7 @@ async function handleResearchCommand(args) {
20322
20367
  }
20323
20368
  }
20324
20369
  async function handleRegistryCommand(args) {
20325
- const { registryCommand, isValidRegistrySubcommand, formatRegistryUsage } = await import("./registry-command-32PUZNNG.js");
20370
+ const { registryCommand, isValidRegistrySubcommand, formatRegistryUsage } = await import("./registry-command-OVRRKYHO.js");
20326
20371
  const subcommand = args.subcommand;
20327
20372
  if (!isValidRegistrySubcommand(subcommand)) {
20328
20373
  process.stdout.write(`${formatRegistryUsage()}
@@ -20370,7 +20415,7 @@ async function handleVerifyCommand(args) {
20370
20415
  async function handleDoctorCommand(args) {
20371
20416
  const exitCode = await doctorCommand({ fix: args.options.fix });
20372
20417
  if (args.options.deep) {
20373
- const { runDeepDiagnostics: runDeepDiagnostics2, formatDeepDiagnostics: formatDeepDiagnostics2 } = await import("./doctor-deep-WHCDAV3Z.js");
20418
+ const { runDeepDiagnostics: runDeepDiagnostics2, formatDeepDiagnostics: formatDeepDiagnostics2 } = await import("./doctor-deep-HGAC6N5Y.js");
20374
20419
  const diag = runDeepDiagnostics2();
20375
20420
  process.stdout.write(formatDeepDiagnostics2(diag) + "\n");
20376
20421
  }
@@ -20414,7 +20459,7 @@ async function handleInitCommand(args) {
20414
20459
  process.exit(result.success ? EXIT_CODES.SUCCESS : EXIT_CODES.SERVER_START_FAILED);
20415
20460
  }
20416
20461
  async function runInitOpencodeFlow(args) {
20417
- const { runInitOpencode } = await import("./init-opencode-42GKRQDA.js");
20462
+ const { runInitOpencode } = await import("./init-opencode-RHCYZDZW.js");
20418
20463
  const opencodePath = args.options.opencode;
20419
20464
  if (opencodePath === void 0 || opencodePath === "") {
20420
20465
  process.stderr.write("Error: --opencode requires a path argument.\n");
@@ -20441,7 +20486,7 @@ async function runInitOpencodeFlow(args) {
20441
20486
  process.exit(EXIT_CODES.SUCCESS);
20442
20487
  }
20443
20488
  async function renderOpencodeValidate(opencodePath) {
20444
- const { runOpencodeValidate } = await import("./init-opencode-42GKRQDA.js");
20489
+ const { runOpencodeValidate } = await import("./init-opencode-RHCYZDZW.js");
20445
20490
  const result = await runOpencodeValidate(opencodePath);
20446
20491
  if (!result.ok) {
20447
20492
  process.stderr.write(`init --opencode --validate: ${result.reason ?? "failed"}
@@ -20481,7 +20526,7 @@ async function handleSetupCommandAsync(args) {
20481
20526
  process.exit(exitCode === 0 ? EXIT_CODES.SUCCESS : EXIT_CODES.SERVER_START_FAILED);
20482
20527
  }
20483
20528
  async function runCustomApiSetup(args) {
20484
- const { configureCustomApi } = await import("./setup-custom-api-K4EN47CP.js");
20529
+ const { configureCustomApi } = await import("./setup-custom-api-FLV4SELI.js");
20485
20530
  const baseUrl = args.options.customApi;
20486
20531
  if (baseUrl === void 0) return EXIT_CODES.SERVER_START_FAILED;
20487
20532
  const input = {