nexus-agents 2.164.0 → 2.165.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 (121) hide show
  1. package/dist/{child-mcp-config-Q3XDLAVG.js → child-mcp-config-LQ4IKFSN.js} +2 -2
  2. package/dist/{chunk-NSZVUPZH.js → chunk-2255SARF.js} +2 -2
  3. package/dist/{chunk-SOWWAZ5C.js → chunk-2UMMVKUW.js} +3 -3
  4. package/dist/{chunk-4WZWUONK.js → chunk-33X5V4PL.js} +2 -2
  5. package/dist/{chunk-VGOPIPDV.js → chunk-3GYRM7D6.js} +5 -5
  6. package/dist/{chunk-2O4TMKUN.js → chunk-3HVF4BG4.js} +2 -2
  7. package/dist/{chunk-FTYO3F2S.js → chunk-3SMFRAX5.js} +3 -3
  8. package/dist/{chunk-GATA7PDR.js → chunk-55NRU7SV.js} +8 -8
  9. package/dist/{chunk-RYUMBYYR.js → chunk-6PYVTJZF.js} +2 -2
  10. package/dist/{chunk-M5LNQ6DM.js → chunk-CVLVWHXG.js} +5 -5
  11. package/dist/{chunk-UGNUHVZP.js → chunk-DPV7TCNP.js} +34 -34
  12. package/dist/{chunk-UFWFHXDP.js → chunk-DUUMMELV.js} +3 -3
  13. package/dist/{chunk-A57TGFAC.js → chunk-FFPFN4W2.js} +5 -5
  14. package/dist/{chunk-BOE7RCND.js → chunk-FKOWIKR4.js} +3 -3
  15. package/dist/{chunk-IH7A6MNH.js → chunk-IXZXG2MY.js} +7 -7
  16. package/dist/{chunk-FQNXEOL3.js → chunk-JBZMUKT4.js} +2 -2
  17. package/dist/{chunk-JAGAZMUT.js → chunk-JV64QX3Y.js} +2 -2
  18. package/dist/{chunk-KWYMR424.js → chunk-LKSG75LC.js} +4 -4
  19. package/dist/{chunk-XYA7W5IQ.js → chunk-LQ2ABFLI.js} +2 -2
  20. package/dist/{chunk-YLA7NOSK.js → chunk-LUP26FMZ.js} +4 -4
  21. package/dist/{chunk-M2BRITA3.js → chunk-MQUSJVER.js} +4 -4
  22. package/dist/{chunk-GMLPL5P2.js → chunk-MYNI3CYT.js} +4 -4
  23. package/dist/{chunk-V2PFGYOM.js → chunk-NBPA4PQD.js} +2 -2
  24. package/dist/{chunk-K54QBTB6.js → chunk-NXJJZEUO.js} +2 -2
  25. package/dist/{chunk-N6WRMZYA.js → chunk-PZ3BB3PO.js} +137 -38
  26. package/dist/chunk-PZ3BB3PO.js.map +1 -0
  27. package/dist/{chunk-NWIN6KOK.js → chunk-RBN4WXOA.js} +2 -2
  28. package/dist/{chunk-5HLHFSTH.js → chunk-RXI5ONP7.js} +2 -2
  29. package/dist/{chunk-6RIGFUZF.js → chunk-S6QSNP67.js} +7 -7
  30. package/dist/{chunk-KCVJPSZF.js → chunk-SF2AK3JB.js} +2 -2
  31. package/dist/{chunk-K6II2MEP.js → chunk-TFYQRAWT.js} +3 -3
  32. package/dist/{chunk-WEIYBIV3.js → chunk-TZNJCTNQ.js} +2 -2
  33. package/dist/{chunk-HLP36YBZ.js → chunk-U43BUJSN.js} +7 -7
  34. package/dist/{chunk-P2BP7MJS.js → chunk-YOFRUVPJ.js} +2 -2
  35. package/dist/{chunk-P67JWFPG.js → chunk-YPPYRLDF.js} +2 -2
  36. package/dist/{chunk-BE7MNC7B.js → chunk-ZNY7MM2J.js} +3 -3
  37. package/dist/{cli-circuit-breaker-G2P42V3H.js → cli-circuit-breaker-5IGBBD7R.js} +4 -4
  38. package/dist/cli.js +105 -85
  39. package/dist/cli.js.map +1 -1
  40. package/dist/{composite-router-NZPVPGSN.js → composite-router-62KI56W6.js} +2 -2
  41. package/dist/{consensus-vote-BTN37MRV.js → consensus-vote-M4ZELBV4.js} +15 -15
  42. package/dist/{context-retriever-4SWGSINU.js → context-retriever-5UJC5KDZ.js} +8 -8
  43. package/dist/{doctor-deep-SYEDHAPX.js → doctor-deep-7OR5MYMI.js} +3 -3
  44. package/dist/{expert-bridge-6I34TGL7.js → expert-bridge-BNMCDENK.js} +4 -4
  45. package/dist/{factory-KKRPWZ2A.js → factory-77GX5DG4.js} +8 -8
  46. package/dist/{factory-2BGHWTMC.js → factory-QLW773DP.js} +5 -5
  47. package/dist/{improvement-review-4RX6YUVD.js → improvement-review-KDM6OL25.js} +5 -5
  48. package/dist/index.js +30 -30
  49. package/dist/{init-opencode-CXUIMAUP.js → init-opencode-FXKABSGS.js} +6 -6
  50. package/dist/{issue-triage-4VXHABBD.js → issue-triage-OVX4VSUN.js} +6 -6
  51. package/dist/{pr-reviewer-helpers-5BOB2KK4.js → pr-reviewer-helpers-VGIBNZBX.js} +4 -4
  52. package/dist/{registry-command-4PDAF4XP.js → registry-command-CGMRLZQ2.js} +2 -2
  53. package/dist/{repo-security-plan-UMNW5FP6.js → repo-security-plan-TBCMGL5Z.js} +3 -3
  54. package/dist/{research-helpers-synthesize-WYFSSCKX.js → research-helpers-synthesize-76ZZYWJ5.js} +4 -4
  55. package/dist/{routing-memory-IMJPZUKI.js → routing-memory-PZ4LTLXJ.js} +2 -2
  56. package/dist/{session-memory-XKJFKI6R.js → session-memory-C55R7LGY.js} +3 -3
  57. package/dist/{setup-command-BPNKRJB2.js → setup-command-3SVR247D.js} +11 -11
  58. package/dist/{setup-config-DHGAMWSI.js → setup-config-SMRMMT6Z.js} +3 -3
  59. package/dist/{setup-custom-api-ESPG7XTX.js → setup-custom-api-42JXTJHU.js} +3 -3
  60. package/dist/{tool-memory-VGEHRRGE.js → tool-memory-LCDNVPFI.js} +5 -5
  61. package/dist/{unified-registry-GLVZZGSC.js → unified-registry-XEXWGKV5.js} +9 -9
  62. package/dist/{weather-report-ITGCNNPJ.js → weather-report-DPADAXFN.js} +2 -2
  63. package/package.json +1 -1
  64. package/dist/chunk-N6WRMZYA.js.map +0 -1
  65. /package/dist/{child-mcp-config-Q3XDLAVG.js.map → child-mcp-config-LQ4IKFSN.js.map} +0 -0
  66. /package/dist/{chunk-NSZVUPZH.js.map → chunk-2255SARF.js.map} +0 -0
  67. /package/dist/{chunk-SOWWAZ5C.js.map → chunk-2UMMVKUW.js.map} +0 -0
  68. /package/dist/{chunk-4WZWUONK.js.map → chunk-33X5V4PL.js.map} +0 -0
  69. /package/dist/{chunk-VGOPIPDV.js.map → chunk-3GYRM7D6.js.map} +0 -0
  70. /package/dist/{chunk-2O4TMKUN.js.map → chunk-3HVF4BG4.js.map} +0 -0
  71. /package/dist/{chunk-FTYO3F2S.js.map → chunk-3SMFRAX5.js.map} +0 -0
  72. /package/dist/{chunk-GATA7PDR.js.map → chunk-55NRU7SV.js.map} +0 -0
  73. /package/dist/{chunk-RYUMBYYR.js.map → chunk-6PYVTJZF.js.map} +0 -0
  74. /package/dist/{chunk-M5LNQ6DM.js.map → chunk-CVLVWHXG.js.map} +0 -0
  75. /package/dist/{chunk-UGNUHVZP.js.map → chunk-DPV7TCNP.js.map} +0 -0
  76. /package/dist/{chunk-UFWFHXDP.js.map → chunk-DUUMMELV.js.map} +0 -0
  77. /package/dist/{chunk-A57TGFAC.js.map → chunk-FFPFN4W2.js.map} +0 -0
  78. /package/dist/{chunk-BOE7RCND.js.map → chunk-FKOWIKR4.js.map} +0 -0
  79. /package/dist/{chunk-IH7A6MNH.js.map → chunk-IXZXG2MY.js.map} +0 -0
  80. /package/dist/{chunk-FQNXEOL3.js.map → chunk-JBZMUKT4.js.map} +0 -0
  81. /package/dist/{chunk-JAGAZMUT.js.map → chunk-JV64QX3Y.js.map} +0 -0
  82. /package/dist/{chunk-KWYMR424.js.map → chunk-LKSG75LC.js.map} +0 -0
  83. /package/dist/{chunk-XYA7W5IQ.js.map → chunk-LQ2ABFLI.js.map} +0 -0
  84. /package/dist/{chunk-YLA7NOSK.js.map → chunk-LUP26FMZ.js.map} +0 -0
  85. /package/dist/{chunk-M2BRITA3.js.map → chunk-MQUSJVER.js.map} +0 -0
  86. /package/dist/{chunk-GMLPL5P2.js.map → chunk-MYNI3CYT.js.map} +0 -0
  87. /package/dist/{chunk-V2PFGYOM.js.map → chunk-NBPA4PQD.js.map} +0 -0
  88. /package/dist/{chunk-K54QBTB6.js.map → chunk-NXJJZEUO.js.map} +0 -0
  89. /package/dist/{chunk-NWIN6KOK.js.map → chunk-RBN4WXOA.js.map} +0 -0
  90. /package/dist/{chunk-5HLHFSTH.js.map → chunk-RXI5ONP7.js.map} +0 -0
  91. /package/dist/{chunk-6RIGFUZF.js.map → chunk-S6QSNP67.js.map} +0 -0
  92. /package/dist/{chunk-KCVJPSZF.js.map → chunk-SF2AK3JB.js.map} +0 -0
  93. /package/dist/{chunk-K6II2MEP.js.map → chunk-TFYQRAWT.js.map} +0 -0
  94. /package/dist/{chunk-WEIYBIV3.js.map → chunk-TZNJCTNQ.js.map} +0 -0
  95. /package/dist/{chunk-HLP36YBZ.js.map → chunk-U43BUJSN.js.map} +0 -0
  96. /package/dist/{chunk-P2BP7MJS.js.map → chunk-YOFRUVPJ.js.map} +0 -0
  97. /package/dist/{chunk-P67JWFPG.js.map → chunk-YPPYRLDF.js.map} +0 -0
  98. /package/dist/{chunk-BE7MNC7B.js.map → chunk-ZNY7MM2J.js.map} +0 -0
  99. /package/dist/{cli-circuit-breaker-G2P42V3H.js.map → cli-circuit-breaker-5IGBBD7R.js.map} +0 -0
  100. /package/dist/{composite-router-NZPVPGSN.js.map → composite-router-62KI56W6.js.map} +0 -0
  101. /package/dist/{consensus-vote-BTN37MRV.js.map → consensus-vote-M4ZELBV4.js.map} +0 -0
  102. /package/dist/{context-retriever-4SWGSINU.js.map → context-retriever-5UJC5KDZ.js.map} +0 -0
  103. /package/dist/{doctor-deep-SYEDHAPX.js.map → doctor-deep-7OR5MYMI.js.map} +0 -0
  104. /package/dist/{expert-bridge-6I34TGL7.js.map → expert-bridge-BNMCDENK.js.map} +0 -0
  105. /package/dist/{factory-2BGHWTMC.js.map → factory-77GX5DG4.js.map} +0 -0
  106. /package/dist/{factory-KKRPWZ2A.js.map → factory-QLW773DP.js.map} +0 -0
  107. /package/dist/{improvement-review-4RX6YUVD.js.map → improvement-review-KDM6OL25.js.map} +0 -0
  108. /package/dist/{init-opencode-CXUIMAUP.js.map → init-opencode-FXKABSGS.js.map} +0 -0
  109. /package/dist/{issue-triage-4VXHABBD.js.map → issue-triage-OVX4VSUN.js.map} +0 -0
  110. /package/dist/{pr-reviewer-helpers-5BOB2KK4.js.map → pr-reviewer-helpers-VGIBNZBX.js.map} +0 -0
  111. /package/dist/{registry-command-4PDAF4XP.js.map → registry-command-CGMRLZQ2.js.map} +0 -0
  112. /package/dist/{repo-security-plan-UMNW5FP6.js.map → repo-security-plan-TBCMGL5Z.js.map} +0 -0
  113. /package/dist/{research-helpers-synthesize-WYFSSCKX.js.map → research-helpers-synthesize-76ZZYWJ5.js.map} +0 -0
  114. /package/dist/{routing-memory-IMJPZUKI.js.map → routing-memory-PZ4LTLXJ.js.map} +0 -0
  115. /package/dist/{session-memory-XKJFKI6R.js.map → session-memory-C55R7LGY.js.map} +0 -0
  116. /package/dist/{setup-command-BPNKRJB2.js.map → setup-command-3SVR247D.js.map} +0 -0
  117. /package/dist/{setup-config-DHGAMWSI.js.map → setup-config-SMRMMT6Z.js.map} +0 -0
  118. /package/dist/{setup-custom-api-ESPG7XTX.js.map → setup-custom-api-42JXTJHU.js.map} +0 -0
  119. /package/dist/{tool-memory-VGEHRRGE.js.map → tool-memory-LCDNVPFI.js.map} +0 -0
  120. /package/dist/{unified-registry-GLVZZGSC.js.map → unified-registry-XEXWGKV5.js.map} +0 -0
  121. /package/dist/{weather-report-ITGCNNPJ.js.map → weather-report-DPADAXFN.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  err,
5
5
  getErrorMessage,
6
6
  ok
7
- } from "./chunk-N6WRMZYA.js";
7
+ } from "./chunk-PZ3BB3PO.js";
8
8
 
9
9
  // src/scm/types.ts
10
10
  var ScmError = class extends Error {
@@ -263,4 +263,4 @@ export {
263
263
  ScmError,
264
264
  GitHubProvider
265
265
  };
266
- //# sourceMappingURL=chunk-NWIN6KOK.js.map
266
+ //# sourceMappingURL=chunk-RBN4WXOA.js.map
@@ -5,7 +5,7 @@ import {
5
5
  getErrorMessage,
6
6
  getTimeProvider,
7
7
  ok
8
- } from "./chunk-N6WRMZYA.js";
8
+ } from "./chunk-PZ3BB3PO.js";
9
9
 
10
10
  // src/cli-adapters/circuit-breaker-types.ts
11
11
  var CircuitErrorCode = {
@@ -375,4 +375,4 @@ export {
375
375
  mapCliErrorToCategory,
376
376
  mapModelErrorToCategory
377
377
  };
378
- //# sourceMappingURL=chunk-5HLHFSTH.js.map
378
+ //# sourceMappingURL=chunk-RXI5ONP7.js.map
@@ -7,10 +7,10 @@ import {
7
7
  import {
8
8
  createAllAdapters,
9
9
  probeCli
10
- } from "./chunk-IH7A6MNH.js";
10
+ } from "./chunk-IXZXG2MY.js";
11
11
  import {
12
12
  DEFAULTS
13
- } from "./chunk-RYUMBYYR.js";
13
+ } from "./chunk-6PYVTJZF.js";
14
14
  import {
15
15
  CliNameSchema,
16
16
  DEFAULT_CAPABILITIES,
@@ -27,7 +27,7 @@ import {
27
27
  ok,
28
28
  symbols,
29
29
  writeLine
30
- } from "./chunk-N6WRMZYA.js";
30
+ } from "./chunk-PZ3BB3PO.js";
31
31
  import {
32
32
  getLearningDir,
33
33
  getOutcomesFile,
@@ -43,7 +43,7 @@ import {
43
43
  } from "./chunk-DHVMSIT5.js";
44
44
 
45
45
  // src/version.ts
46
- var VERSION = true ? "2.164.0" : "dev";
46
+ var VERSION = true ? "2.165.1" : "dev";
47
47
 
48
48
  // src/config/schemas-core.ts
49
49
  import { z } from "zod";
@@ -2159,7 +2159,7 @@ async function runDoctorFix(result) {
2159
2159
  writeLine2("\u2500".repeat(40));
2160
2160
  let fixCount = 0;
2161
2161
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2162
- const { runSetup } = await import("./setup-command-BPNKRJB2.js");
2162
+ const { runSetup } = await import("./setup-command-3SVR247D.js");
2163
2163
  const setupResult = runSetup({
2164
2164
  skipMcp: true,
2165
2165
  skipRules: true,
@@ -2173,7 +2173,7 @@ async function runDoctorFix(result) {
2173
2173
  }
2174
2174
  }
2175
2175
  if (!result.configFile.found) {
2176
- const { runConfigInitSync } = await import("./setup-config-DHGAMWSI.js");
2176
+ const { runConfigInitSync } = await import("./setup-config-SMRMMT6Z.js");
2177
2177
  const configResult = runConfigInitSync(process.cwd(), false, false);
2178
2178
  if (configResult.success && configResult.created) {
2179
2179
  writeLine2(`\u2713 Generated config: ${configResult.path}`);
@@ -2272,4 +2272,4 @@ export {
2272
2272
  startStdioServer,
2273
2273
  closeServer
2274
2274
  };
2275
- //# sourceMappingURL=chunk-6RIGFUZF.js.map
2275
+ //# sourceMappingURL=chunk-S6QSNP67.js.map
@@ -2,7 +2,7 @@ import {
2
2
  TASK_CATEGORIES,
3
3
  getAdaptiveBonus,
4
4
  getOutcomeStore
5
- } from "./chunk-N6WRMZYA.js";
5
+ } from "./chunk-PZ3BB3PO.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-KCVJPSZF.js.map
109
+ //# sourceMappingURL=chunk-SF2AK3JB.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  loadPapersRegistry
3
- } from "./chunk-P67JWFPG.js";
3
+ } from "./chunk-YPPYRLDF.js";
4
4
  import {
5
5
  getErrorMessage
6
- } from "./chunk-N6WRMZYA.js";
6
+ } from "./chunk-PZ3BB3PO.js";
7
7
 
8
8
  // src/cli/research-helpers-synthesize.ts
9
9
  import { z } from "zod";
@@ -876,4 +876,4 @@ export {
876
876
  AttributedInsightSchema,
877
877
  synthesizeResearch
878
878
  };
879
- //# sourceMappingURL=chunk-K6II2MEP.js.map
879
+ //# sourceMappingURL=chunk-TFYQRAWT.js.map
@@ -2,7 +2,7 @@ import {
2
2
  CACHE_TIMEOUTS,
3
3
  createLogger,
4
4
  getTimeProvider
5
- } from "./chunk-N6WRMZYA.js";
5
+ } from "./chunk-PZ3BB3PO.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-WEIYBIV3.js.map
563
+ //# sourceMappingURL=chunk-TZNJCTNQ.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveCliSlot
3
- } from "./chunk-2O4TMKUN.js";
3
+ } from "./chunk-3HVF4BG4.js";
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider,
7
7
  isRateLimitText
8
- } from "./chunk-N6WRMZYA.js";
8
+ } from "./chunk-PZ3BB3PO.js";
9
9
 
10
10
  // src/pipeline/expert-bridge.ts
11
11
  function resolveCliFromModelString(model) {
@@ -21,7 +21,7 @@ async function getMcpConfigPath() {
21
21
  if (cachedMcpConfigPath !== null) return cachedMcpConfigPath;
22
22
  mcpConfigInitPromise ??= (async () => {
23
23
  try {
24
- const { generateMcpConfig } = await import("./child-mcp-config-Q3XDLAVG.js");
24
+ const { generateMcpConfig } = await import("./child-mcp-config-LQ4IKFSN.js");
25
25
  const config = await generateMcpConfig();
26
26
  cachedMcpConfigPath = config.configPath;
27
27
  cachedMcpConfigCleanup = config.cleanup;
@@ -93,8 +93,8 @@ var routerInitPromise = null;
93
93
  async function getRouter() {
94
94
  if (cachedRouter !== null) return cachedRouter;
95
95
  routerInitPromise ??= (async () => {
96
- const { createAllAdapters } = await import("./factory-KKRPWZ2A.js");
97
- const { createCompositeRouter } = await import("./composite-router-NZPVPGSN.js");
96
+ const { createAllAdapters } = await import("./factory-77GX5DG4.js");
97
+ const { createCompositeRouter } = await import("./composite-router-62KI56W6.js");
98
98
  const adapters = createAllAdapters();
99
99
  if (adapters.size === 0) {
100
100
  routerInitPromise = null;
@@ -102,7 +102,7 @@ async function getRouter() {
102
102
  }
103
103
  cachedRouter = adaptCompositeRouter(createCompositeRouter(adapters));
104
104
  try {
105
- const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-G2P42V3H.js");
105
+ const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-5IGBBD7R.js");
106
106
  cachedCircuitBreaker = createCliCircuitBreakerIntegration([...adapters.values()]);
107
107
  } catch (error) {
108
108
  const msg = error instanceof Error ? error.message : String(error);
@@ -213,4 +213,4 @@ export {
213
213
  tokenSplitFromUsage,
214
214
  executeExpert
215
215
  };
216
- //# sourceMappingURL=chunk-HLP36YBZ.js.map
216
+ //# sourceMappingURL=chunk-U43BUJSN.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider
7
- } from "./chunk-N6WRMZYA.js";
7
+ } from "./chunk-PZ3BB3PO.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-P2BP7MJS.js.map
724
+ //# sourceMappingURL=chunk-YOFRUVPJ.js.map
@@ -8,7 +8,7 @@ import {
8
8
  getErrorMessage,
9
9
  ok,
10
10
  parseBoolEnv
11
- } from "./chunk-N6WRMZYA.js";
11
+ } from "./chunk-PZ3BB3PO.js";
12
12
 
13
13
  // src/cli/research-helpers-io.ts
14
14
  import * as fs2 from "fs/promises";
@@ -146,4 +146,4 @@ export {
146
146
  loadPapersRegistry,
147
147
  savePapersRegistry
148
148
  };
149
- //# sourceMappingURL=chunk-P67JWFPG.js.map
149
+ //# sourceMappingURL=chunk-YPPYRLDF.js.map
@@ -9,11 +9,11 @@ import {
9
9
  gateWithReputation,
10
10
  resolveReputationGatingMode,
11
11
  sanitizeInput
12
- } from "./chunk-WEIYBIV3.js";
12
+ } from "./chunk-TZNJCTNQ.js";
13
13
  import {
14
14
  createLogger,
15
15
  getTimeProvider
16
- } from "./chunk-N6WRMZYA.js";
16
+ } from "./chunk-PZ3BB3PO.js";
17
17
 
18
18
  // src/dogfooding/pr-reviewer-helpers.ts
19
19
  import { randomUUID } from "crypto";
@@ -288,4 +288,4 @@ export {
288
288
  formatReviewComment,
289
289
  createFailedReview
290
290
  };
291
- //# sourceMappingURL=chunk-BE7MNC7B.js.map
291
+ //# sourceMappingURL=chunk-ZNY7MM2J.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CliCircuitBreakerIntegration,
3
3
  createCliCircuitBreakerIntegration
4
- } from "./chunk-BOE7RCND.js";
5
- import "./chunk-5HLHFSTH.js";
6
- import "./chunk-N6WRMZYA.js";
4
+ } from "./chunk-FKOWIKR4.js";
5
+ import "./chunk-RXI5ONP7.js";
6
+ import "./chunk-PZ3BB3PO.js";
7
7
  import "./chunk-AXTD4TFK.js";
8
8
  import "./chunk-DHVMSIT5.js";
9
9
  import "./chunk-ZPWHCABL.js";
@@ -11,4 +11,4 @@ export {
11
11
  CliCircuitBreakerIntegration,
12
12
  createCliCircuitBreakerIntegration
13
13
  };
14
- //# sourceMappingURL=cli-circuit-breaker-G2P42V3H.js.map
14
+ //# sourceMappingURL=cli-circuit-breaker-5IGBBD7R.js.map
package/dist/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  buildOpenAICompatAdapters,
4
4
  readOpenAICompatEnv
5
- } from "./chunk-KWYMR424.js";
5
+ } from "./chunk-LKSG75LC.js";
6
6
  import {
7
7
  calculateConsensus,
8
8
  countByCategory,
@@ -17,13 +17,13 @@ import {
17
17
  generateSummary,
18
18
  parseFindings,
19
19
  sumFindings
20
- } from "./chunk-BE7MNC7B.js";
21
- import "./chunk-KCVJPSZF.js";
20
+ } from "./chunk-ZNY7MM2J.js";
21
+ import "./chunk-SF2AK3JB.js";
22
22
  import {
23
23
  setupCommandAsync,
24
24
  verifyCommand
25
- } from "./chunk-A57TGFAC.js";
26
- import "./chunk-NSZVUPZH.js";
25
+ } from "./chunk-FFPFN4W2.js";
26
+ import "./chunk-2255SARF.js";
27
27
  import {
28
28
  AuthHandler,
29
29
  DEFAULT_EXPERTS,
@@ -142,9 +142,9 @@ import {
142
142
  validateCommand,
143
143
  validateWorkflow,
144
144
  wrapInMarkdownFence
145
- } from "./chunk-UGNUHVZP.js";
146
- import "./chunk-SOWWAZ5C.js";
147
- import "./chunk-P2BP7MJS.js";
145
+ } from "./chunk-DPV7TCNP.js";
146
+ import "./chunk-2UMMVKUW.js";
147
+ import "./chunk-YOFRUVPJ.js";
148
148
  import "./chunk-HFOQKCD2.js";
149
149
  import "./chunk-3ACDP4E6.js";
150
150
  import {
@@ -170,11 +170,11 @@ import {
170
170
  loadConfig,
171
171
  runDoctor,
172
172
  validateNexusEnv
173
- } from "./chunk-6RIGFUZF.js";
174
- import "./chunk-BOE7RCND.js";
173
+ } from "./chunk-S6QSNP67.js";
174
+ import "./chunk-FKOWIKR4.js";
175
175
  import {
176
176
  shutdownExpertBridge
177
- } from "./chunk-HLP36YBZ.js";
177
+ } from "./chunk-U43BUJSN.js";
178
178
  import {
179
179
  ConsensusVoteInputSchema,
180
180
  DEFAULT_VOTE_TIMEOUT_MS,
@@ -184,25 +184,25 @@ import {
184
184
  executeVoting,
185
185
  mapOutcomeToDecision,
186
186
  registerConsensusVoteTool
187
- } from "./chunk-GATA7PDR.js";
187
+ } from "./chunk-55NRU7SV.js";
188
188
  import {
189
189
  loadUsageEvents,
190
190
  rollupByModel
191
- } from "./chunk-FQNXEOL3.js";
191
+ } from "./chunk-JBZMUKT4.js";
192
192
  import {
193
193
  synthesizeResearch
194
- } from "./chunk-K6II2MEP.js";
194
+ } from "./chunk-TFYQRAWT.js";
195
195
  import {
196
196
  classifyTrust,
197
197
  createFullGitHubProvider,
198
198
  evaluatePolicy,
199
199
  parsePRUrl
200
- } from "./chunk-M5LNQ6DM.js";
201
- import "./chunk-NWIN6KOK.js";
200
+ } from "./chunk-CVLVWHXG.js";
201
+ import "./chunk-RBN4WXOA.js";
202
202
  import {
203
203
  ReputationCache,
204
204
  sanitizeInput
205
- } from "./chunk-WEIYBIV3.js";
205
+ } from "./chunk-TZNJCTNQ.js";
206
206
  import {
207
207
  ImprovementReviewInputSchema,
208
208
  calculateFitnessScore,
@@ -216,11 +216,11 @@ import {
216
216
  registerImprovementReviewTool,
217
217
  runImprovementReview,
218
218
  scanForSecrets
219
- } from "./chunk-UFWFHXDP.js";
219
+ } from "./chunk-DUUMMELV.js";
220
220
  import {
221
221
  createDefaultPolicyFirewall
222
- } from "./chunk-FTYO3F2S.js";
223
- import "./chunk-V2PFGYOM.js";
222
+ } from "./chunk-3SMFRAX5.js";
223
+ import "./chunk-NBPA4PQD.js";
224
224
  import {
225
225
  PaperStatusSchema,
226
226
  createResearchIssue,
@@ -243,32 +243,32 @@ import {
243
243
  loadSourcesRegistry,
244
244
  rankDiscoveredItems,
245
245
  saveSourcesRegistry
246
- } from "./chunk-VGOPIPDV.js";
246
+ } from "./chunk-3GYRM7D6.js";
247
247
  import {
248
248
  resolveToken
249
- } from "./chunk-JAGAZMUT.js";
249
+ } from "./chunk-JV64QX3Y.js";
250
250
  import {
251
251
  loadPapersRegistry,
252
252
  loadTechniquesRegistry,
253
253
  savePapersRegistry
254
- } from "./chunk-P67JWFPG.js";
254
+ } from "./chunk-YPPYRLDF.js";
255
255
  import "./chunk-NUBSJGQZ.js";
256
256
  import {
257
257
  MemoryError,
258
258
  shutdownToolMemory
259
- } from "./chunk-M2BRITA3.js";
259
+ } from "./chunk-MQUSJVER.js";
260
260
  import {
261
261
  capitalize,
262
262
  capitalizeKebab,
263
263
  truncateSentence
264
264
  } from "./chunk-6T3EPABN.js";
265
- import "./chunk-XYA7W5IQ.js";
265
+ import "./chunk-LQ2ABFLI.js";
266
266
  import "./chunk-ZM4O442V.js";
267
267
  import "./chunk-PINS44XA.js";
268
268
  import "./chunk-KSQSWEFH.js";
269
269
  import {
270
270
  createUnifiedRegistry
271
- } from "./chunk-GMLPL5P2.js";
271
+ } from "./chunk-MYNI3CYT.js";
272
272
  import {
273
273
  NEXUS_SUBPROCESS_DEPTH_ENV,
274
274
  createAllAdapters,
@@ -276,14 +276,14 @@ import {
276
276
  isRecord,
277
277
  probeAllClis,
278
278
  readSubprocessDepth
279
- } from "./chunk-IH7A6MNH.js";
280
- import "./chunk-K54QBTB6.js";
279
+ } from "./chunk-IXZXG2MY.js";
280
+ import "./chunk-NXJJZEUO.js";
281
281
  import {
282
282
  DEFAULTS
283
- } from "./chunk-RYUMBYYR.js";
284
- import "./chunk-5HLHFSTH.js";
285
- import "./chunk-2O4TMKUN.js";
286
- import "./chunk-4WZWUONK.js";
283
+ } from "./chunk-6PYVTJZF.js";
284
+ import "./chunk-RXI5ONP7.js";
285
+ import "./chunk-3HVF4BG4.js";
286
+ import "./chunk-33X5V4PL.js";
287
287
  import {
288
288
  API_TIMEOUTS,
289
289
  AgentCapability,
@@ -357,7 +357,7 @@ import {
357
357
  validateTimeout,
358
358
  writeEmptyLine,
359
359
  writeLine
360
- } from "./chunk-N6WRMZYA.js";
360
+ } from "./chunk-PZ3BB3PO.js";
361
361
  import "./chunk-AXTD4TFK.js";
362
362
  import {
363
363
  applyPortableMode,
@@ -4035,7 +4035,7 @@ ${file.patch}
4035
4035
  violations: policyResult.violations
4036
4036
  });
4037
4037
  }
4038
- const { formatReviewComment: formatReviewComment2 } = await import("./pr-reviewer-helpers-5BOB2KK4.js");
4038
+ const { formatReviewComment: formatReviewComment2 } = await import("./pr-reviewer-helpers-VGIBNZBX.js");
4039
4039
  const body = formatReviewComment2(result);
4040
4040
  const postResult = await provider.createReview(pr.prNumber, body, result.decision);
4041
4041
  if (!postResult.ok) {
@@ -17859,7 +17859,7 @@ function startImprovementReviewScheduler(options) {
17859
17859
  let running = false;
17860
17860
  const runOnce = async () => {
17861
17861
  try {
17862
- const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-4RX6YUVD.js");
17862
+ const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-KDM6OL25.js");
17863
17863
  const input = ImprovementReviewInputSchema2.parse({ fileIssues });
17864
17864
  const result = await runImprovementReview2(input, { logger: logger19 });
17865
17865
  logger19.info("Scheduled improvement_review complete", {
@@ -19898,7 +19898,7 @@ function adaptConfigToLibrary(config) {
19898
19898
  }
19899
19899
  function createBeliefPromoter() {
19900
19900
  return async (event) => {
19901
- const { getToolMemory } = await import("./tool-memory-VGEHRRGE.js");
19901
+ const { getToolMemory } = await import("./tool-memory-LCDNVPFI.js");
19902
19902
  const tm = getToolMemory();
19903
19903
  await tm.recordBelief(
19904
19904
  `skill:${event.name}`,
@@ -20749,6 +20749,50 @@ function printResearchUsage() {
20749
20749
  process.stdout.write(" prioritize Rank actionable techniques by priority\n");
20750
20750
  }
20751
20751
 
20752
+ // src/cli-command-suggester.ts
20753
+ var MAX_SUGGESTIONS = 3;
20754
+ var MAX_ABSOLUTE_DISTANCE = 2;
20755
+ var RELATIVE_DISTANCE_RATIO = 0.4;
20756
+ function suggestCommand(input, names) {
20757
+ const needle = input.trim().toLowerCase();
20758
+ if (needle.length === 0) return [];
20759
+ const ceiling = Math.min(
20760
+ MAX_ABSOLUTE_DISTANCE,
20761
+ Math.floor(needle.length * RELATIVE_DISTANCE_RATIO)
20762
+ );
20763
+ if (ceiling < 1) return [];
20764
+ const scored = [];
20765
+ for (const name of names) {
20766
+ const distance = levenshtein(needle, name.toLowerCase());
20767
+ if (distance === 0) continue;
20768
+ if (distance <= ceiling) {
20769
+ scored.push({ name, distance });
20770
+ }
20771
+ }
20772
+ scored.sort((a, b) => a.distance - b.distance || a.name.localeCompare(b.name));
20773
+ const seen = /* @__PURE__ */ new Set();
20774
+ const result = [];
20775
+ for (const candidate of scored) {
20776
+ if (seen.has(candidate.name)) continue;
20777
+ seen.add(candidate.name);
20778
+ result.push(candidate.name);
20779
+ if (result.length >= MAX_SUGGESTIONS) break;
20780
+ }
20781
+ return result;
20782
+ }
20783
+ function catalogCommandNames() {
20784
+ return COMMAND_CATALOG.map((e) => e.command).filter((c) => c !== "(default)");
20785
+ }
20786
+ function formatUnknownCommandMessage(input, names) {
20787
+ const suggestions = suggestCommand(input, names);
20788
+ const lines = [`Unknown command '${input}'.`];
20789
+ if (suggestions.length > 0) {
20790
+ lines.push(`Did you mean: ${suggestions.join(", ")}?`);
20791
+ }
20792
+ lines.push('Run "nexus-agents --help" for usage information.');
20793
+ return lines.join("\n");
20794
+ }
20795
+
20752
20796
  // src/cli-commands-handlers-complex.ts
20753
20797
  async function handleConfigInit(args) {
20754
20798
  const configOpts = {
@@ -20846,6 +20890,23 @@ var MCP_EQUIVALENTS = {
20846
20890
  "expert create": "create_expert",
20847
20891
  "expert execute": "execute_expert"
20848
20892
  };
20893
+ var IMPLEMENTED_SUBCOMMANDS = {
20894
+ expert: ["list"],
20895
+ workflow: ["list", "run"]
20896
+ };
20897
+ var TRACKING_ISSUES_URL = "https://github.com/nexus-substrate/nexus-agents/issues";
20898
+ function writeSubcommandSuggestion(command) {
20899
+ const [topLevel, ...subParts] = command.split(" ");
20900
+ const subcommand = subParts.join(" ");
20901
+ if (topLevel === void 0 || subcommand.length === 0) return;
20902
+ const validSubcommands = IMPLEMENTED_SUBCOMMANDS[topLevel];
20903
+ if (validSubcommands === void 0) return;
20904
+ const suggestions = suggestCommand(subcommand, validSubcommands);
20905
+ if (suggestions.length === 0) return;
20906
+ const rendered = suggestions.map((sub) => `${topLevel} ${sub}`).join(", ");
20907
+ process.stderr.write(`Did you mean: ${rendered}?
20908
+ `);
20909
+ }
20849
20910
  function handleUnimplementedCommand(command) {
20850
20911
  const equiv = MCP_EQUIVALENTS[command];
20851
20912
  process.stderr.write(`The '${command}' CLI subcommand is not yet implemented.
@@ -20856,6 +20917,9 @@ function handleUnimplementedCommand(command) {
20856
20917
  `
20857
20918
  );
20858
20919
  }
20920
+ writeSubcommandSuggestion(command);
20921
+ process.stderr.write(`Track or request this command: ${TRACKING_ISSUES_URL}
20922
+ `);
20859
20923
  process.stderr.write('Run "nexus-agents --help" for available options.\n');
20860
20924
  }
20861
20925
  function handleExpertCommand(args) {
@@ -21010,7 +21074,7 @@ async function handleResearchCommand(args) {
21010
21074
  }
21011
21075
  }
21012
21076
  async function handleRegistryCommand(args) {
21013
- const { registryCommand, isValidRegistrySubcommand, formatRegistryUsage } = await import("./registry-command-4PDAF4XP.js");
21077
+ const { registryCommand, isValidRegistrySubcommand, formatRegistryUsage } = await import("./registry-command-CGMRLZQ2.js");
21014
21078
  const subcommand = args.subcommand;
21015
21079
  if (!isValidRegistrySubcommand(subcommand)) {
21016
21080
  process.stdout.write(`${formatRegistryUsage()}
@@ -21058,7 +21122,7 @@ async function handleVerifyCommand(args) {
21058
21122
  async function handleDoctorCommand(args) {
21059
21123
  const exitCode = await doctorCommand({ fix: args.options.fix });
21060
21124
  if (args.options.deep) {
21061
- const { runDeepDiagnostics: runDeepDiagnostics2, formatDeepDiagnostics: formatDeepDiagnostics2 } = await import("./doctor-deep-SYEDHAPX.js");
21125
+ const { runDeepDiagnostics: runDeepDiagnostics2, formatDeepDiagnostics: formatDeepDiagnostics2 } = await import("./doctor-deep-7OR5MYMI.js");
21062
21126
  const diag = runDeepDiagnostics2();
21063
21127
  process.stdout.write(formatDeepDiagnostics2(diag) + "\n");
21064
21128
  }
@@ -21108,7 +21172,7 @@ async function runInitPortableFlow(args) {
21108
21172
  return cliExit(result.success ? EXIT_CODES.SUCCESS : EXIT_CODES.SERVER_START_FAILED);
21109
21173
  }
21110
21174
  async function runInitOpencodeFlow(args) {
21111
- const { runInitOpencode } = await import("./init-opencode-CXUIMAUP.js");
21175
+ const { runInitOpencode } = await import("./init-opencode-FXKABSGS.js");
21112
21176
  const opencodePath = args.options.opencode;
21113
21177
  if (opencodePath === void 0 || opencodePath === "") {
21114
21178
  process.stderr.write("Error: --opencode requires a path argument.\n");
@@ -21134,7 +21198,7 @@ async function runInitOpencodeFlow(args) {
21134
21198
  return cliExit(EXIT_CODES.SUCCESS);
21135
21199
  }
21136
21200
  async function renderOpencodeValidate(opencodePath) {
21137
- const { runOpencodeValidate } = await import("./init-opencode-CXUIMAUP.js");
21201
+ const { runOpencodeValidate } = await import("./init-opencode-FXKABSGS.js");
21138
21202
  const result = await runOpencodeValidate(opencodePath);
21139
21203
  if (!result.ok) {
21140
21204
  process.stderr.write(`init --opencode --validate: ${result.reason ?? "failed"}
@@ -21173,7 +21237,7 @@ async function handleSetupCommandAsync(args) {
21173
21237
  return cliExitFromStatus(exitCode);
21174
21238
  }
21175
21239
  async function runCustomApiSetup(args) {
21176
- const { configureCustomApi } = await import("./setup-custom-api-ESPG7XTX.js");
21240
+ const { configureCustomApi } = await import("./setup-custom-api-42JXTJHU.js");
21177
21241
  const baseUrl = args.options.customApi;
21178
21242
  if (baseUrl === void 0) return EXIT_CODES.SERVER_START_FAILED;
21179
21243
  const input = {
@@ -25636,50 +25700,6 @@ async function dispatchCommand(args) {
25636
25700
  }
25637
25701
  }
25638
25702
 
25639
- // src/cli-command-suggester.ts
25640
- var MAX_SUGGESTIONS = 3;
25641
- var MAX_ABSOLUTE_DISTANCE = 2;
25642
- var RELATIVE_DISTANCE_RATIO = 0.4;
25643
- function suggestCommand(input, names) {
25644
- const needle = input.trim().toLowerCase();
25645
- if (needle.length === 0) return [];
25646
- const ceiling = Math.min(
25647
- MAX_ABSOLUTE_DISTANCE,
25648
- Math.floor(needle.length * RELATIVE_DISTANCE_RATIO)
25649
- );
25650
- if (ceiling < 1) return [];
25651
- const scored = [];
25652
- for (const name of names) {
25653
- const distance = levenshtein(needle, name.toLowerCase());
25654
- if (distance === 0) continue;
25655
- if (distance <= ceiling) {
25656
- scored.push({ name, distance });
25657
- }
25658
- }
25659
- scored.sort((a, b) => a.distance - b.distance || a.name.localeCompare(b.name));
25660
- const seen = /* @__PURE__ */ new Set();
25661
- const result = [];
25662
- for (const candidate of scored) {
25663
- if (seen.has(candidate.name)) continue;
25664
- seen.add(candidate.name);
25665
- result.push(candidate.name);
25666
- if (result.length >= MAX_SUGGESTIONS) break;
25667
- }
25668
- return result;
25669
- }
25670
- function catalogCommandNames() {
25671
- return COMMAND_CATALOG.map((e) => e.command).filter((c) => c !== "(default)");
25672
- }
25673
- function formatUnknownCommandMessage(input, names) {
25674
- const suggestions = suggestCommand(input, names);
25675
- const lines = [`Unknown command '${input}'.`];
25676
- if (suggestions.length > 0) {
25677
- lines.push(`Did you mean: ${suggestions.join(", ")}?`);
25678
- }
25679
- lines.push('Run "nexus-agents --help" for usage information.');
25680
- return lines.join("\n");
25681
- }
25682
-
25683
25703
  // src/cli.ts
25684
25704
  function determineCommand(options, positionals) {
25685
25705
  const firstArg = positionals[0];