nexus-agents 4.3.6 → 4.5.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 (123) hide show
  1. package/dist/{child-mcp-config-6BPBGQB4.js → child-mcp-config-OBOA4PE2.js} +2 -2
  2. package/dist/{chunk-IXMTCWMN.js → chunk-34UKF4FB.js} +3 -3
  3. package/dist/{chunk-65DZ7WHY.js → chunk-5JRYCJ37.js} +2 -2
  4. package/dist/{chunk-LPUJG7C6.js → chunk-6HSDJ5H6.js} +2 -2
  5. package/dist/{chunk-CFEZ2DG6.js → chunk-75K4TN5H.js} +8 -8
  6. package/dist/{chunk-RUN6KRCP.js → chunk-7BMK5VEO.js} +8 -8
  7. package/dist/{chunk-Y3UJ3VLA.js → chunk-7Y7UFVQ5.js} +2 -2
  8. package/dist/{chunk-XJORRLQT.js → chunk-ANTZOHQ6.js} +24 -7
  9. package/dist/{chunk-XJORRLQT.js.map → chunk-ANTZOHQ6.js.map} +1 -1
  10. package/dist/{chunk-K2ZYZZNZ.js → chunk-ARTRA6YC.js} +3 -3
  11. package/dist/{chunk-UH4MK2N7.js → chunk-B6DNL7LG.js} +4 -4
  12. package/dist/{chunk-E6ET2WJI.js → chunk-BAWVMEXA.js} +4 -4
  13. package/dist/{chunk-SSPEB62Y.js → chunk-BLY3DXM2.js} +5 -5
  14. package/dist/{chunk-PZSPL5KN.js → chunk-BT6ONNFH.js} +2 -2
  15. package/dist/{chunk-SHG3MYMD.js → chunk-C6SAPXUV.js} +2 -2
  16. package/dist/{chunk-K6VI5GUF.js → chunk-CGJPW5BI.js} +55 -46
  17. package/dist/chunk-CGJPW5BI.js.map +1 -0
  18. package/dist/{chunk-PG563EVI.js → chunk-D7X2AMEB.js} +2 -2
  19. package/dist/{chunk-CDLXONR6.js → chunk-EPD5MGPB.js} +8 -8
  20. package/dist/{chunk-6DLKK5R2.js → chunk-ESWY4Y7S.js} +4 -4
  21. package/dist/{chunk-DFCJUKGD.js → chunk-EYZIMY6I.js} +2 -2
  22. package/dist/{chunk-TKFWYFBD.js → chunk-HBGA62JG.js} +2 -2
  23. package/dist/{chunk-OPH5S776.js → chunk-JDUTA6FI.js} +2 -2
  24. package/dist/{chunk-VWXQHGQ2.js → chunk-KMUOL3AL.js} +2 -2
  25. package/dist/{chunk-AVB5GOSW.js → chunk-LVE7MN2F.js} +6 -6
  26. package/dist/{chunk-U4LM5Q2L.js → chunk-NH3O2D5O.js} +3 -3
  27. package/dist/{chunk-4OSPP2KN.js → chunk-NMX7AYYB.js} +2 -2
  28. package/dist/{chunk-ZQWCL7YB.js → chunk-O32DMSG5.js} +3 -3
  29. package/dist/{chunk-NXGHNZJV.js → chunk-QNT5WS7E.js} +24 -24
  30. package/dist/{chunk-NXGHNZJV.js.map → chunk-QNT5WS7E.js.map} +1 -1
  31. package/dist/{chunk-UI3WYJSZ.js → chunk-SWUYPFXS.js} +2 -2
  32. package/dist/{chunk-SPZOZGBS.js → chunk-TD6I5UHY.js} +2 -2
  33. package/dist/{chunk-QGXA25PQ.js → chunk-TI65NJOM.js} +2 -2
  34. package/dist/{chunk-QTP4AIVR.js → chunk-VRJAJUUR.js} +7 -7
  35. package/dist/{chunk-EJLOD53Z.js → chunk-XCUO5YUJ.js} +2 -2
  36. package/dist/{chunk-YIV4GQHK.js → chunk-YLESXBB3.js} +2 -2
  37. package/dist/{chunk-NKTANKWH.js → chunk-YY67CP2U.js} +3 -3
  38. package/dist/{cli-circuit-breaker-3CH36TPE.js → cli-circuit-breaker-TJVDSJU5.js} +3 -3
  39. package/dist/cli.js +106 -77
  40. package/dist/cli.js.map +1 -1
  41. package/dist/{composite-router-QK4OPVDX.js → composite-router-CIC4BU6A.js} +2 -2
  42. package/dist/{consensus-vote-DL4XNR7M.js → consensus-vote-77UCSVGM.js} +16 -16
  43. package/dist/{context-retriever-UPHWSEXA.js → context-retriever-CP72SNYZ.js} +8 -8
  44. package/dist/{doctor-deep-UHFL3AE4.js → doctor-deep-WI2ZC7Z3.js} +3 -3
  45. package/dist/{doctor-live-2CGAFGFG.js → doctor-live-W2KY3OIA.js} +9 -9
  46. package/dist/{expert-bridge-KTKJTMMO.js → expert-bridge-HGBVHVJI.js} +4 -4
  47. package/dist/{factory-SC3N2RMX.js → factory-GEBBVQHZ.js} +9 -9
  48. package/dist/{factory-QQKY3UW4.js → factory-LEYEWZ4Y.js} +5 -5
  49. package/dist/{improvement-review-I4WFQK25.js → improvement-review-XN2GZX3V.js} +5 -5
  50. package/dist/index.d.ts +14 -0
  51. package/dist/index.js +30 -30
  52. package/dist/{init-opencode-HTSSQOLE.js → init-opencode-UPA3R362.js} +6 -6
  53. package/dist/issue-triage-QAI2FNMN.js +17 -0
  54. package/dist/{pr-reviewer-helpers-UOP4JVHI.js → pr-reviewer-helpers-KRKXKZIA.js} +4 -4
  55. package/dist/{registry-command-EPG2X2ZI.js → registry-command-2SCTKLEO.js} +2 -2
  56. package/dist/{repo-security-plan-QYSW4MKN.js → repo-security-plan-NFYC64IS.js} +3 -3
  57. package/dist/{research-helpers-synthesize-YSYYUW5H.js → research-helpers-synthesize-K5TX2WM3.js} +4 -4
  58. package/dist/{routing-memory-BZ6IGNXN.js → routing-memory-JPDPHK7P.js} +2 -2
  59. package/dist/{session-memory-GVOVQ3TV.js → session-memory-XIIEIJPT.js} +3 -3
  60. package/dist/{setup-command-TLIVUIVE.js → setup-command-DIL56GPR.js} +14 -14
  61. package/dist/{setup-config-Q2WGGIQT.js → setup-config-SUEPUZYL.js} +3 -3
  62. package/dist/{setup-custom-api-GXF5MFBG.js → setup-custom-api-5TTLIPV3.js} +4 -4
  63. package/dist/{tool-memory-MHP37ASX.js → tool-memory-ACUOYCYG.js} +5 -5
  64. package/dist/{unified-registry-WX3GDBCZ.js → unified-registry-P3PLOFBN.js} +10 -10
  65. package/dist/{weather-report-YY7BO744.js → weather-report-464SS6FY.js} +2 -2
  66. package/package.json +1 -1
  67. package/dist/chunk-K6VI5GUF.js.map +0 -1
  68. package/dist/issue-triage-SAS3D5K4.js +0 -17
  69. /package/dist/{child-mcp-config-6BPBGQB4.js.map → child-mcp-config-OBOA4PE2.js.map} +0 -0
  70. /package/dist/{chunk-IXMTCWMN.js.map → chunk-34UKF4FB.js.map} +0 -0
  71. /package/dist/{chunk-65DZ7WHY.js.map → chunk-5JRYCJ37.js.map} +0 -0
  72. /package/dist/{chunk-LPUJG7C6.js.map → chunk-6HSDJ5H6.js.map} +0 -0
  73. /package/dist/{chunk-CFEZ2DG6.js.map → chunk-75K4TN5H.js.map} +0 -0
  74. /package/dist/{chunk-RUN6KRCP.js.map → chunk-7BMK5VEO.js.map} +0 -0
  75. /package/dist/{chunk-Y3UJ3VLA.js.map → chunk-7Y7UFVQ5.js.map} +0 -0
  76. /package/dist/{chunk-K2ZYZZNZ.js.map → chunk-ARTRA6YC.js.map} +0 -0
  77. /package/dist/{chunk-UH4MK2N7.js.map → chunk-B6DNL7LG.js.map} +0 -0
  78. /package/dist/{chunk-E6ET2WJI.js.map → chunk-BAWVMEXA.js.map} +0 -0
  79. /package/dist/{chunk-SSPEB62Y.js.map → chunk-BLY3DXM2.js.map} +0 -0
  80. /package/dist/{chunk-PZSPL5KN.js.map → chunk-BT6ONNFH.js.map} +0 -0
  81. /package/dist/{chunk-SHG3MYMD.js.map → chunk-C6SAPXUV.js.map} +0 -0
  82. /package/dist/{chunk-PG563EVI.js.map → chunk-D7X2AMEB.js.map} +0 -0
  83. /package/dist/{chunk-CDLXONR6.js.map → chunk-EPD5MGPB.js.map} +0 -0
  84. /package/dist/{chunk-6DLKK5R2.js.map → chunk-ESWY4Y7S.js.map} +0 -0
  85. /package/dist/{chunk-DFCJUKGD.js.map → chunk-EYZIMY6I.js.map} +0 -0
  86. /package/dist/{chunk-TKFWYFBD.js.map → chunk-HBGA62JG.js.map} +0 -0
  87. /package/dist/{chunk-OPH5S776.js.map → chunk-JDUTA6FI.js.map} +0 -0
  88. /package/dist/{chunk-VWXQHGQ2.js.map → chunk-KMUOL3AL.js.map} +0 -0
  89. /package/dist/{chunk-AVB5GOSW.js.map → chunk-LVE7MN2F.js.map} +0 -0
  90. /package/dist/{chunk-U4LM5Q2L.js.map → chunk-NH3O2D5O.js.map} +0 -0
  91. /package/dist/{chunk-4OSPP2KN.js.map → chunk-NMX7AYYB.js.map} +0 -0
  92. /package/dist/{chunk-ZQWCL7YB.js.map → chunk-O32DMSG5.js.map} +0 -0
  93. /package/dist/{chunk-UI3WYJSZ.js.map → chunk-SWUYPFXS.js.map} +0 -0
  94. /package/dist/{chunk-SPZOZGBS.js.map → chunk-TD6I5UHY.js.map} +0 -0
  95. /package/dist/{chunk-QGXA25PQ.js.map → chunk-TI65NJOM.js.map} +0 -0
  96. /package/dist/{chunk-QTP4AIVR.js.map → chunk-VRJAJUUR.js.map} +0 -0
  97. /package/dist/{chunk-EJLOD53Z.js.map → chunk-XCUO5YUJ.js.map} +0 -0
  98. /package/dist/{chunk-YIV4GQHK.js.map → chunk-YLESXBB3.js.map} +0 -0
  99. /package/dist/{chunk-NKTANKWH.js.map → chunk-YY67CP2U.js.map} +0 -0
  100. /package/dist/{cli-circuit-breaker-3CH36TPE.js.map → cli-circuit-breaker-TJVDSJU5.js.map} +0 -0
  101. /package/dist/{composite-router-QK4OPVDX.js.map → composite-router-CIC4BU6A.js.map} +0 -0
  102. /package/dist/{consensus-vote-DL4XNR7M.js.map → consensus-vote-77UCSVGM.js.map} +0 -0
  103. /package/dist/{context-retriever-UPHWSEXA.js.map → context-retriever-CP72SNYZ.js.map} +0 -0
  104. /package/dist/{doctor-deep-UHFL3AE4.js.map → doctor-deep-WI2ZC7Z3.js.map} +0 -0
  105. /package/dist/{doctor-live-2CGAFGFG.js.map → doctor-live-W2KY3OIA.js.map} +0 -0
  106. /package/dist/{expert-bridge-KTKJTMMO.js.map → expert-bridge-HGBVHVJI.js.map} +0 -0
  107. /package/dist/{factory-QQKY3UW4.js.map → factory-GEBBVQHZ.js.map} +0 -0
  108. /package/dist/{factory-SC3N2RMX.js.map → factory-LEYEWZ4Y.js.map} +0 -0
  109. /package/dist/{improvement-review-I4WFQK25.js.map → improvement-review-XN2GZX3V.js.map} +0 -0
  110. /package/dist/{init-opencode-HTSSQOLE.js.map → init-opencode-UPA3R362.js.map} +0 -0
  111. /package/dist/{issue-triage-SAS3D5K4.js.map → issue-triage-QAI2FNMN.js.map} +0 -0
  112. /package/dist/{pr-reviewer-helpers-UOP4JVHI.js.map → pr-reviewer-helpers-KRKXKZIA.js.map} +0 -0
  113. /package/dist/{registry-command-EPG2X2ZI.js.map → registry-command-2SCTKLEO.js.map} +0 -0
  114. /package/dist/{repo-security-plan-QYSW4MKN.js.map → repo-security-plan-NFYC64IS.js.map} +0 -0
  115. /package/dist/{research-helpers-synthesize-YSYYUW5H.js.map → research-helpers-synthesize-K5TX2WM3.js.map} +0 -0
  116. /package/dist/{routing-memory-BZ6IGNXN.js.map → routing-memory-JPDPHK7P.js.map} +0 -0
  117. /package/dist/{session-memory-GVOVQ3TV.js.map → session-memory-XIIEIJPT.js.map} +0 -0
  118. /package/dist/{setup-command-TLIVUIVE.js.map → setup-command-DIL56GPR.js.map} +0 -0
  119. /package/dist/{setup-config-Q2WGGIQT.js.map → setup-config-SUEPUZYL.js.map} +0 -0
  120. /package/dist/{setup-custom-api-GXF5MFBG.js.map → setup-custom-api-5TTLIPV3.js.map} +0 -0
  121. /package/dist/{tool-memory-MHP37ASX.js.map → tool-memory-ACUOYCYG.js.map} +0 -0
  122. /package/dist/{unified-registry-WX3GDBCZ.js.map → unified-registry-P3PLOFBN.js.map} +0 -0
  123. /package/dist/{weather-report-YY7BO744.js.map → weather-report-464SS6FY.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  getErrorMessage,
5
5
  getTimeProvider,
6
6
  ok
7
- } from "./chunk-U4LM5Q2L.js";
7
+ } from "./chunk-NH3O2D5O.js";
8
8
 
9
9
  // src/context/session-memory.ts
10
10
  import * as fs from "fs";
@@ -352,4 +352,4 @@ export {
352
352
  SessionMemory,
353
353
  createSessionMemory
354
354
  };
355
- //# sourceMappingURL=chunk-PG563EVI.js.map
355
+ //# sourceMappingURL=chunk-D7X2AMEB.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readOpenAICompatEnv
3
- } from "./chunk-SSPEB62Y.js";
3
+ } from "./chunk-BLY3DXM2.js";
4
4
  import {
5
5
  allOf
6
6
  } from "./chunk-OQB3XC5O.js";
@@ -13,10 +13,10 @@ import {
13
13
  import {
14
14
  createAllAdapters,
15
15
  probeCli
16
- } from "./chunk-RUN6KRCP.js";
16
+ } from "./chunk-7BMK5VEO.js";
17
17
  import {
18
18
  DEFAULTS
19
- } from "./chunk-65DZ7WHY.js";
19
+ } from "./chunk-5JRYCJ37.js";
20
20
  import {
21
21
  getNexusTmpDir
22
22
  } from "./chunk-SNJNRDKZ.js";
@@ -36,7 +36,7 @@ import {
36
36
  ok,
37
37
  symbols,
38
38
  writeLine
39
- } from "./chunk-U4LM5Q2L.js";
39
+ } from "./chunk-NH3O2D5O.js";
40
40
  import {
41
41
  getLearningDir,
42
42
  getOutcomesFile,
@@ -52,7 +52,7 @@ import {
52
52
  } from "./chunk-OQLFRJCW.js";
53
53
 
54
54
  // src/version.ts
55
- var VERSION = true ? "4.3.6" : "dev";
55
+ var VERSION = true ? "4.5.1" : "dev";
56
56
 
57
57
  // src/config/schemas-core.ts
58
58
  import { z } from "zod";
@@ -2339,7 +2339,7 @@ async function runDoctorFix(result) {
2339
2339
  writeLine2("\u2500".repeat(40));
2340
2340
  let fixCount = 0;
2341
2341
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2342
- const { runSetup } = await import("./setup-command-TLIVUIVE.js");
2342
+ const { runSetup } = await import("./setup-command-DIL56GPR.js");
2343
2343
  const setupResult = runSetup({
2344
2344
  skipMcp: true,
2345
2345
  skipRules: true,
@@ -2353,7 +2353,7 @@ async function runDoctorFix(result) {
2353
2353
  }
2354
2354
  }
2355
2355
  if (!result.configFile.found) {
2356
- const { runConfigInitSync } = await import("./setup-config-Q2WGGIQT.js");
2356
+ const { runConfigInitSync } = await import("./setup-config-SUEPUZYL.js");
2357
2357
  const configResult = runConfigInitSync(process.cwd(), false, false);
2358
2358
  if (configResult.success && configResult.created) {
2359
2359
  writeLine2(`\u2713 Generated config: ${configResult.path}`);
@@ -2452,4 +2452,4 @@ export {
2452
2452
  startStdioServer,
2453
2453
  closeServer
2454
2454
  };
2455
- //# sourceMappingURL=chunk-CDLXONR6.js.map
2455
+ //# sourceMappingURL=chunk-EPD5MGPB.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-LPUJG7C6.js";
4
+ } from "./chunk-6HSDJ5H6.js";
5
5
  import {
6
6
  resolveToken
7
- } from "./chunk-UI3WYJSZ.js";
7
+ } from "./chunk-SWUYPFXS.js";
8
8
  import {
9
9
  err,
10
10
  ok
11
- } from "./chunk-U4LM5Q2L.js";
11
+ } from "./chunk-NH3O2D5O.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-6DLKK5R2.js.map
44
+ //# sourceMappingURL=chunk-ESWY4Y7S.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getTimeProvider
3
- } from "./chunk-U4LM5Q2L.js";
3
+ } from "./chunk-NH3O2D5O.js";
4
4
 
5
5
  // src/security/audit-trail.ts
6
6
  var MAX_EVENTS = 1e4;
@@ -205,4 +205,4 @@ export {
205
205
  createGraphAuditBridge,
206
206
  createAuditTrail
207
207
  };
208
- //# sourceMappingURL=chunk-DFCJUKGD.js.map
208
+ //# sourceMappingURL=chunk-EYZIMY6I.js.map
@@ -2,7 +2,7 @@ import {
2
2
  TASK_CATEGORIES,
3
3
  getAdaptiveBonus,
4
4
  getOutcomeStore
5
- } from "./chunk-U4LM5Q2L.js";
5
+ } from "./chunk-NH3O2D5O.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-TKFWYFBD.js.map
109
+ //# sourceMappingURL=chunk-HBGA62JG.js.map
@@ -3,7 +3,7 @@ import {
3
3
  createLogger,
4
4
  err,
5
5
  ok
6
- } from "./chunk-U4LM5Q2L.js";
6
+ } from "./chunk-NH3O2D5O.js";
7
7
 
8
8
  // src/adapters/sdk/types.ts
9
9
  var PROVIDER_ENV_KEYS = {
@@ -169,4 +169,4 @@ export {
169
169
  validateCustomApiBaseUrl,
170
170
  assertCustomApiHostResolvesPublic
171
171
  };
172
- //# sourceMappingURL=chunk-OPH5S776.js.map
172
+ //# sourceMappingURL=chunk-JDUTA6FI.js.map
@@ -8,7 +8,7 @@ import {
8
8
  getErrorMessage,
9
9
  ok,
10
10
  parseBoolEnv
11
- } from "./chunk-U4LM5Q2L.js";
11
+ } from "./chunk-NH3O2D5O.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-VWXQHGQ2.js.map
149
+ //# sourceMappingURL=chunk-KMUOL3AL.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-LPUJG7C6.js";
4
+ } from "./chunk-6HSDJ5H6.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-EJLOD53Z.js";
14
+ } from "./chunk-XCUO5YUJ.js";
15
15
  import {
16
16
  emitPolicyEvent
17
- } from "./chunk-DFCJUKGD.js";
17
+ } from "./chunk-EYZIMY6I.js";
18
18
  import {
19
19
  hasToken
20
- } from "./chunk-UI3WYJSZ.js";
20
+ } from "./chunk-SWUYPFXS.js";
21
21
  import {
22
22
  CLI_SUBPROCESS_TIMEOUTS,
23
23
  createLogger,
24
24
  err,
25
25
  getTimeProvider,
26
26
  ok
27
- } from "./chunk-U4LM5Q2L.js";
27
+ } from "./chunk-NH3O2D5O.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-AVB5GOSW.js.map
1250
+ //# sourceMappingURL=chunk-LVE7MN2F.js.map
@@ -2623,7 +2623,7 @@ function setDefaultRegistry(registry) {
2623
2623
  }
2624
2624
  async function reloadDefaultRegistry() {
2625
2625
  globalRegistry = buildDefaultRegistry();
2626
- const { resetGlobalRegistry } = await import("./unified-registry-WX3GDBCZ.js");
2626
+ const { resetGlobalRegistry } = await import("./unified-registry-P3PLOFBN.js");
2627
2627
  resetGlobalRegistry();
2628
2628
  return globalRegistry;
2629
2629
  }
@@ -15022,7 +15022,7 @@ var CompositeRouter = class _CompositeRouter {
15022
15022
  */
15023
15023
  async consultUnifiedContext(task) {
15024
15024
  try {
15025
- const { getContextForTask, inferTaskCategory } = await import("./context-retriever-UPHWSEXA.js");
15025
+ const { getContextForTask, inferTaskCategory } = await import("./context-retriever-CP72SNYZ.js");
15026
15026
  const ctx = await getContextForTask({
15027
15027
  task: task.content,
15028
15028
  category: inferTaskCategory(task.content),
@@ -16612,4 +16612,4 @@ export {
16612
16612
  AgentCapability,
16613
16613
  OrchestratorError
16614
16614
  };
16615
- //# sourceMappingURL=chunk-U4LM5Q2L.js.map
16615
+ //# sourceMappingURL=chunk-NH3O2D5O.js.map
@@ -8,7 +8,7 @@ import {
8
8
  getTimeProvider,
9
9
  isRateLimitText,
10
10
  ok
11
- } from "./chunk-U4LM5Q2L.js";
11
+ } from "./chunk-NH3O2D5O.js";
12
12
 
13
13
  // src/cli-adapters/circuit-breaker-types.ts
14
14
  var CircuitErrorCode = {
@@ -540,4 +540,4 @@ export {
540
540
  CliCircuitBreakerIntegration,
541
541
  createCliCircuitBreakerIntegration
542
542
  };
543
- //# sourceMappingURL=chunk-4OSPP2KN.js.map
543
+ //# sourceMappingURL=chunk-NMX7AYYB.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  loadPapersRegistry
3
- } from "./chunk-VWXQHGQ2.js";
3
+ } from "./chunk-KMUOL3AL.js";
4
4
  import {
5
5
  getErrorMessage
6
- } from "./chunk-U4LM5Q2L.js";
6
+ } from "./chunk-NH3O2D5O.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-ZQWCL7YB.js.map
879
+ //# sourceMappingURL=chunk-O32DMSG5.js.map
@@ -1,20 +1,21 @@
1
1
  import {
2
2
  runConfigInitSync
3
- } from "./chunk-YIV4GQHK.js";
3
+ } from "./chunk-YLESXBB3.js";
4
4
  import {
5
5
  VERSION,
6
6
  checkApiKeys,
7
7
  checkDataDirectory,
8
8
  checkSqlite,
9
9
  defaultConfig,
10
- initDataDirectories
11
- } from "./chunk-CDLXONR6.js";
10
+ initDataDirectories,
11
+ loadConfig
12
+ } from "./chunk-EPD5MGPB.js";
12
13
  import {
13
14
  BUILT_IN_EXPERTS
14
15
  } from "./chunk-YPNQPT2F.js";
15
16
  import {
16
17
  probeAllClis
17
- } from "./chunk-RUN6KRCP.js";
18
+ } from "./chunk-7BMK5VEO.js";
18
19
  import {
19
20
  CLI_SUBPROCESS_TIMEOUTS,
20
21
  colors,
@@ -25,7 +26,7 @@ import {
25
26
  getErrorMessage,
26
27
  getTimeProvider,
27
28
  symbols
28
- } from "./chunk-U4LM5Q2L.js";
29
+ } from "./chunk-NH3O2D5O.js";
29
30
  import {
30
31
  ensureGitignored,
31
32
  findRepoRoot
@@ -1149,31 +1150,30 @@ function checkPackageExports() {
1149
1150
  }
1150
1151
  }
1151
1152
  function checkConfigLoading() {
1152
- try {
1153
- const hasModels = typeof defaultConfig.models === "object";
1154
- const hasSecurity = typeof defaultConfig.security === "object";
1155
- if (hasModels && hasSecurity) {
1156
- return {
1157
- name: "Configuration",
1158
- passed: true,
1159
- message: "Default config accessible"
1160
- };
1161
- }
1153
+ const result = loadConfig();
1154
+ if (!result.ok) {
1162
1155
  return {
1163
1156
  name: "Configuration",
1164
- passed: true,
1165
- // Config errors are not fatal for verification
1166
- message: "Using default configuration"
1157
+ passed: false,
1158
+ severity: "warn",
1159
+ message: `Failed to load nexus-agents.yaml: ${result.error.message}`,
1160
+ fix: "Fix the syntax errors in nexus-agents.yaml, or remove it to fall back to defaults"
1167
1161
  };
1168
- } catch {
1162
+ }
1163
+ const { configPath, warnings } = result.value;
1164
+ if (configPath === void 0) {
1169
1165
  return {
1170
1166
  name: "Configuration",
1171
- passed: false,
1172
- severity: "warn",
1173
- message: "Failed to load default configuration",
1174
- fix: "Reinstall nexus-agents (npm install -g nexus-agents); if a local config override exists, check it for syntax errors"
1167
+ passed: true,
1168
+ message: "No config file found \u2014 using defaults"
1175
1169
  };
1176
1170
  }
1171
+ const suffix = warnings.length > 0 ? ` (${String(warnings.length)} warning(s))` : "";
1172
+ return {
1173
+ name: "Configuration",
1174
+ passed: true,
1175
+ message: `Loaded ${configPath}${suffix}`
1176
+ };
1177
1177
  }
1178
1178
  function checkExpertSystem() {
1179
1179
  const expertTypes = Object.keys(BUILT_IN_EXPERTS);
@@ -2001,4 +2001,4 @@ export {
2001
2001
  setupCommand,
2002
2002
  setupCommandAsync
2003
2003
  };
2004
- //# sourceMappingURL=chunk-NXGHNZJV.js.map
2004
+ //# sourceMappingURL=chunk-QNT5WS7E.js.map