nexus-agents 6.0.6 → 6.1.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 (125) hide show
  1. package/dist/{child-mcp-config-IWSFAWKW.js → child-mcp-config-4DDBRYPA.js} +2 -2
  2. package/dist/{chunk-Y5FOSK35.js → chunk-3B5746AG.js} +2 -2
  3. package/dist/{chunk-P2KL7HLM.js → chunk-3K6DNH62.js} +106 -58
  4. package/dist/chunk-3K6DNH62.js.map +1 -0
  5. package/dist/{chunk-KSB7BA4I.js → chunk-3N3HTDAK.js} +2 -2
  6. package/dist/{chunk-DRVMOA3O.js → chunk-3NCBSBSA.js} +2 -2
  7. package/dist/{chunk-4B54LFAT.js → chunk-5OISEA34.js} +5 -5
  8. package/dist/{chunk-UEE5Q7NZ.js → chunk-62JZZXZA.js} +2 -2
  9. package/dist/{chunk-36BLV4HK.js → chunk-6U2OC56L.js} +3 -3
  10. package/dist/{chunk-CLNF77U7.js → chunk-BIOAMDHR.js} +2 -2
  11. package/dist/{chunk-FLZ4HLEX.js → chunk-BSUATLSL.js} +2 -2
  12. package/dist/{chunk-NBXWLWON.js → chunk-CL4TF6YT.js} +2 -2
  13. package/dist/{chunk-QXUR4YUG.js → chunk-DDCKXILN.js} +2 -2
  14. package/dist/{chunk-DSCUFZOH.js → chunk-ETEKZ4RK.js} +2 -2
  15. package/dist/{chunk-KHUXAO6X.js → chunk-FWRH2IEJ.js} +3 -3
  16. package/dist/{chunk-HFYSK6QJ.js → chunk-GHD3CUV7.js} +7 -7
  17. package/dist/{chunk-UMUO4TJL.js → chunk-HE76P4LG.js} +7 -7
  18. package/dist/{chunk-27CHC2RT.js → chunk-I7VQGYLE.js} +2 -2
  19. package/dist/{chunk-GMJEGWDI.js → chunk-JPEXSNOX.js} +8 -8
  20. package/dist/{chunk-YXBG5QEM.js → chunk-K3P5KQXZ.js} +2 -2
  21. package/dist/{chunk-RMZPEV7T.js → chunk-KQYXPAFQ.js} +2 -2
  22. package/dist/{chunk-BUA6XJYA.js → chunk-LQOANCSX.js} +2 -2
  23. package/dist/{chunk-6ME3ITZE.js → chunk-MGXRJZUQ.js} +2 -2
  24. package/dist/{chunk-MUEJPAGI.js → chunk-OBCBF2AI.js} +6 -6
  25. package/dist/{chunk-H6RKH6WM.js → chunk-OHQ5JDJX.js} +3 -3
  26. package/dist/{chunk-WMHOQLDT.js → chunk-PE4W7G7S.js} +45 -20
  27. package/dist/chunk-PE4W7G7S.js.map +1 -0
  28. package/dist/{chunk-YJF46WLY.js → chunk-QNXB6PVL.js} +2 -2
  29. package/dist/{chunk-LX5IYPWT.js → chunk-RGK3N3UN.js} +12 -10
  30. package/dist/{chunk-LX5IYPWT.js.map → chunk-RGK3N3UN.js.map} +1 -1
  31. package/dist/{chunk-QSXXNGHT.js → chunk-RGLSWWTT.js} +5 -5
  32. package/dist/{chunk-OX7EEJRF.js → chunk-RPXCZLC7.js} +4 -4
  33. package/dist/{chunk-NNIFAFML.js → chunk-TPO3KDE3.js} +4 -4
  34. package/dist/{chunk-MLDDCRER.js → chunk-XKHFPXIP.js} +4 -4
  35. package/dist/{chunk-ZRFL3DXX.js → chunk-XZHGPNSB.js} +4 -4
  36. package/dist/chunk-YVRYIIHX.js +7 -0
  37. package/dist/{chunk-CLCZ4OSN.js → chunk-YYCQ5G3K.js} +2 -2
  38. package/dist/{cli-circuit-breaker-4RVYA7PH.js → cli-circuit-breaker-EZYSMS5J.js} +3 -3
  39. package/dist/cli.js +41 -41
  40. package/dist/{composite-router-F7XYQ7CQ.js → composite-router-4MX77KAO.js} +2 -2
  41. package/dist/{consensus-vote-JN3YL2IQ.js → consensus-vote-RULORCL2.js} +17 -17
  42. package/dist/{context-retriever-NSVQPXT5.js → context-retriever-XQXSR7X2.js} +8 -8
  43. package/dist/{doctor-deep-PJZP7TJS.js → doctor-deep-LTNNWX2R.js} +3 -3
  44. package/dist/{doctor-live-LDTTQLNF.js → doctor-live-S3EP4CDZ.js} +9 -9
  45. package/dist/{expert-bridge-LEXXNSTY.js → expert-bridge-3EHBG44P.js} +4 -4
  46. package/dist/{factory-VA3WWJB5.js → factory-5EQYMH5L.js} +5 -5
  47. package/dist/{factory-KY34GTK6.js → factory-I7V3JB6F.js} +9 -9
  48. package/dist/{improvement-review-54XWE5LV.js → improvement-review-36HJKKCR.js} +6 -6
  49. package/dist/index.d.ts +22 -0
  50. package/dist/index.js +31 -31
  51. package/dist/{init-opencode-TCVCZFTB.js → init-opencode-CX5YQG7X.js} +6 -6
  52. package/dist/issue-triage-FQXZ2UCS.js +17 -0
  53. package/dist/{pr-reviewer-helpers-4C4GKDEU.js → pr-reviewer-helpers-ZQJE6G6S.js} +4 -4
  54. package/dist/{registry-command-GLKF6USW.js → registry-command-AM4NCHY6.js} +2 -2
  55. package/dist/{repo-security-plan-XAOIZOMP.js → repo-security-plan-4LB6D3NE.js} +3 -3
  56. package/dist/{research-helpers-synthesize-ULEA7TQG.js → research-helpers-synthesize-R3NHYY7G.js} +4 -4
  57. package/dist/{routing-memory-IRHKYUZA.js → routing-memory-UFJLIHRW.js} +2 -2
  58. package/dist/{session-memory-WDYRPZV2.js → session-memory-47LD45HS.js} +3 -3
  59. package/dist/{setup-config-TAV64QON.js → setup-config-CZ4ATPBX.js} +3 -3
  60. package/dist/{setup-custom-api-PTLWT7QX.js → setup-custom-api-7W5AHZVX.js} +4 -4
  61. package/dist/setup-data-dir-XRUWUIYA.js +29 -0
  62. package/dist/{tool-memory-L4GEPIYU.js → tool-memory-FTLUCKZI.js} +5 -5
  63. package/dist/{unified-registry-TSLD6KHS.js → unified-registry-GBD77P3U.js} +10 -10
  64. package/dist/{weather-report-VY3S6KVG.js → weather-report-C6HWZL3B.js} +2 -2
  65. package/package.json +1 -1
  66. package/dist/chunk-72DYYJXS.js +0 -7
  67. package/dist/chunk-P2KL7HLM.js.map +0 -1
  68. package/dist/chunk-WMHOQLDT.js.map +0 -1
  69. package/dist/issue-triage-XRYQL5HZ.js +0 -17
  70. package/dist/setup-data-dir-GRN2NHXS.js +0 -29
  71. /package/dist/{child-mcp-config-IWSFAWKW.js.map → child-mcp-config-4DDBRYPA.js.map} +0 -0
  72. /package/dist/{chunk-Y5FOSK35.js.map → chunk-3B5746AG.js.map} +0 -0
  73. /package/dist/{chunk-KSB7BA4I.js.map → chunk-3N3HTDAK.js.map} +0 -0
  74. /package/dist/{chunk-DRVMOA3O.js.map → chunk-3NCBSBSA.js.map} +0 -0
  75. /package/dist/{chunk-4B54LFAT.js.map → chunk-5OISEA34.js.map} +0 -0
  76. /package/dist/{chunk-UEE5Q7NZ.js.map → chunk-62JZZXZA.js.map} +0 -0
  77. /package/dist/{chunk-36BLV4HK.js.map → chunk-6U2OC56L.js.map} +0 -0
  78. /package/dist/{chunk-CLNF77U7.js.map → chunk-BIOAMDHR.js.map} +0 -0
  79. /package/dist/{chunk-FLZ4HLEX.js.map → chunk-BSUATLSL.js.map} +0 -0
  80. /package/dist/{chunk-NBXWLWON.js.map → chunk-CL4TF6YT.js.map} +0 -0
  81. /package/dist/{chunk-QXUR4YUG.js.map → chunk-DDCKXILN.js.map} +0 -0
  82. /package/dist/{chunk-DSCUFZOH.js.map → chunk-ETEKZ4RK.js.map} +0 -0
  83. /package/dist/{chunk-KHUXAO6X.js.map → chunk-FWRH2IEJ.js.map} +0 -0
  84. /package/dist/{chunk-HFYSK6QJ.js.map → chunk-GHD3CUV7.js.map} +0 -0
  85. /package/dist/{chunk-UMUO4TJL.js.map → chunk-HE76P4LG.js.map} +0 -0
  86. /package/dist/{chunk-27CHC2RT.js.map → chunk-I7VQGYLE.js.map} +0 -0
  87. /package/dist/{chunk-GMJEGWDI.js.map → chunk-JPEXSNOX.js.map} +0 -0
  88. /package/dist/{chunk-YXBG5QEM.js.map → chunk-K3P5KQXZ.js.map} +0 -0
  89. /package/dist/{chunk-RMZPEV7T.js.map → chunk-KQYXPAFQ.js.map} +0 -0
  90. /package/dist/{chunk-BUA6XJYA.js.map → chunk-LQOANCSX.js.map} +0 -0
  91. /package/dist/{chunk-6ME3ITZE.js.map → chunk-MGXRJZUQ.js.map} +0 -0
  92. /package/dist/{chunk-MUEJPAGI.js.map → chunk-OBCBF2AI.js.map} +0 -0
  93. /package/dist/{chunk-H6RKH6WM.js.map → chunk-OHQ5JDJX.js.map} +0 -0
  94. /package/dist/{chunk-YJF46WLY.js.map → chunk-QNXB6PVL.js.map} +0 -0
  95. /package/dist/{chunk-QSXXNGHT.js.map → chunk-RGLSWWTT.js.map} +0 -0
  96. /package/dist/{chunk-OX7EEJRF.js.map → chunk-RPXCZLC7.js.map} +0 -0
  97. /package/dist/{chunk-NNIFAFML.js.map → chunk-TPO3KDE3.js.map} +0 -0
  98. /package/dist/{chunk-MLDDCRER.js.map → chunk-XKHFPXIP.js.map} +0 -0
  99. /package/dist/{chunk-ZRFL3DXX.js.map → chunk-XZHGPNSB.js.map} +0 -0
  100. /package/dist/{chunk-72DYYJXS.js.map → chunk-YVRYIIHX.js.map} +0 -0
  101. /package/dist/{chunk-CLCZ4OSN.js.map → chunk-YYCQ5G3K.js.map} +0 -0
  102. /package/dist/{cli-circuit-breaker-4RVYA7PH.js.map → cli-circuit-breaker-EZYSMS5J.js.map} +0 -0
  103. /package/dist/{composite-router-F7XYQ7CQ.js.map → composite-router-4MX77KAO.js.map} +0 -0
  104. /package/dist/{consensus-vote-JN3YL2IQ.js.map → consensus-vote-RULORCL2.js.map} +0 -0
  105. /package/dist/{context-retriever-NSVQPXT5.js.map → context-retriever-XQXSR7X2.js.map} +0 -0
  106. /package/dist/{doctor-deep-PJZP7TJS.js.map → doctor-deep-LTNNWX2R.js.map} +0 -0
  107. /package/dist/{doctor-live-LDTTQLNF.js.map → doctor-live-S3EP4CDZ.js.map} +0 -0
  108. /package/dist/{expert-bridge-LEXXNSTY.js.map → expert-bridge-3EHBG44P.js.map} +0 -0
  109. /package/dist/{factory-KY34GTK6.js.map → factory-5EQYMH5L.js.map} +0 -0
  110. /package/dist/{factory-VA3WWJB5.js.map → factory-I7V3JB6F.js.map} +0 -0
  111. /package/dist/{improvement-review-54XWE5LV.js.map → improvement-review-36HJKKCR.js.map} +0 -0
  112. /package/dist/{init-opencode-TCVCZFTB.js.map → init-opencode-CX5YQG7X.js.map} +0 -0
  113. /package/dist/{issue-triage-XRYQL5HZ.js.map → issue-triage-FQXZ2UCS.js.map} +0 -0
  114. /package/dist/{pr-reviewer-helpers-4C4GKDEU.js.map → pr-reviewer-helpers-ZQJE6G6S.js.map} +0 -0
  115. /package/dist/{registry-command-GLKF6USW.js.map → registry-command-AM4NCHY6.js.map} +0 -0
  116. /package/dist/{repo-security-plan-XAOIZOMP.js.map → repo-security-plan-4LB6D3NE.js.map} +0 -0
  117. /package/dist/{research-helpers-synthesize-ULEA7TQG.js.map → research-helpers-synthesize-R3NHYY7G.js.map} +0 -0
  118. /package/dist/{routing-memory-IRHKYUZA.js.map → routing-memory-UFJLIHRW.js.map} +0 -0
  119. /package/dist/{session-memory-WDYRPZV2.js.map → session-memory-47LD45HS.js.map} +0 -0
  120. /package/dist/{setup-config-TAV64QON.js.map → setup-config-CZ4ATPBX.js.map} +0 -0
  121. /package/dist/{setup-custom-api-PTLWT7QX.js.map → setup-custom-api-7W5AHZVX.js.map} +0 -0
  122. /package/dist/{setup-data-dir-GRN2NHXS.js.map → setup-data-dir-XRUWUIYA.js.map} +0 -0
  123. /package/dist/{tool-memory-L4GEPIYU.js.map → tool-memory-FTLUCKZI.js.map} +0 -0
  124. /package/dist/{unified-registry-TSLD6KHS.js.map → unified-registry-GBD77P3U.js.map} +0 -0
  125. /package/dist/{weather-report-VY3S6KVG.js.map → weather-report-C6HWZL3B.js.map} +0 -0
@@ -2,7 +2,7 @@ import {
2
2
  createLogger,
3
3
  err,
4
4
  ok
5
- } from "./chunk-LX5IYPWT.js";
5
+ } from "./chunk-RGK3N3UN.js";
6
6
 
7
7
  // src/scm/token-resolver.ts
8
8
  import { execFile } from "child_process";
@@ -87,4 +87,4 @@ export {
87
87
  hasToken,
88
88
  getTokenEnvVars
89
89
  };
90
- //# sourceMappingURL=chunk-KSB7BA4I.js.map
90
+ //# sourceMappingURL=chunk-3N3HTDAK.js.map
@@ -13,7 +13,7 @@ import {
13
13
  lookupInTreeCapability,
14
14
  ok,
15
15
  resolveRetryAfterMs
16
- } from "./chunk-LX5IYPWT.js";
16
+ } from "./chunk-RGK3N3UN.js";
17
17
 
18
18
  // src/config/model-parameter-support.ts
19
19
  function parseClaudeMajorMinor(bareId) {
@@ -834,4 +834,4 @@ export {
834
834
  DEFAULT_COLLECT_STREAM_MAX_CHUNKS,
835
835
  collectStream
836
836
  };
837
- //# sourceMappingURL=chunk-DRVMOA3O.js.map
837
+ //# sourceMappingURL=chunk-3NCBSBSA.js.map
@@ -5,13 +5,13 @@ import {
5
5
  loadTechniquesRegistry,
6
6
  resolveInsideRoot,
7
7
  savePapersRegistry
8
- } from "./chunk-YXBG5QEM.js";
8
+ } from "./chunk-K3P5KQXZ.js";
9
9
  import {
10
10
  resolveToken
11
- } from "./chunk-KSB7BA4I.js";
11
+ } from "./chunk-3N3HTDAK.js";
12
12
  import {
13
13
  getToolMemory
14
- } from "./chunk-MLDDCRER.js";
14
+ } from "./chunk-XKHFPXIP.js";
15
15
  import {
16
16
  capitalizeWords,
17
17
  tokenizeFiltered,
@@ -37,7 +37,7 @@ import {
37
37
  getTimeProvider,
38
38
  ok,
39
39
  registerPersistentDistillerFactory
40
- } from "./chunk-LX5IYPWT.js";
40
+ } from "./chunk-RGK3N3UN.js";
41
41
  import {
42
42
  ensureLearningDir,
43
43
  getRulesFile
@@ -4132,4 +4132,4 @@ export {
4132
4132
  DEFAULT_CONTEXT_BUDGET_TOKENS,
4133
4133
  getContextPromptPrefix
4134
4134
  };
4135
- //# sourceMappingURL=chunk-4B54LFAT.js.map
4135
+ //# sourceMappingURL=chunk-5OISEA34.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getRandomProvider,
3
3
  getTimeProvider
4
- } from "./chunk-LX5IYPWT.js";
4
+ } from "./chunk-RGK3N3UN.js";
5
5
 
6
6
  // src/utils/id-utils.ts
7
7
  import { randomUUID } from "crypto";
@@ -24,4 +24,4 @@ export {
24
24
  generateHyphenId,
25
25
  generateUUID
26
26
  };
27
- //# sourceMappingURL=chunk-UEE5Q7NZ.js.map
27
+ //# sourceMappingURL=chunk-62JZZXZA.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  loadPapersRegistry
3
- } from "./chunk-YXBG5QEM.js";
3
+ } from "./chunk-K3P5KQXZ.js";
4
4
  import {
5
5
  getErrorMessage
6
- } from "./chunk-LX5IYPWT.js";
6
+ } from "./chunk-RGK3N3UN.js";
7
7
 
8
8
  // src/cli/research-helpers-synthesize.ts
9
9
  import { z } from "zod";
@@ -886,4 +886,4 @@ export {
886
886
  AttributedInsightSchema,
887
887
  synthesizeResearch
888
888
  };
889
- //# sourceMappingURL=chunk-36BLV4HK.js.map
889
+ //# sourceMappingURL=chunk-6U2OC56L.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getErrorMessage
3
- } from "./chunk-LX5IYPWT.js";
3
+ } from "./chunk-RGK3N3UN.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-CLNF77U7.js.map
80
+ //# sourceMappingURL=chunk-BIOAMDHR.js.map
@@ -4,7 +4,7 @@ import {
4
4
  err,
5
5
  getErrorMessage,
6
6
  ok
7
- } from "./chunk-LX5IYPWT.js";
7
+ } from "./chunk-RGK3N3UN.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-FLZ4HLEX.js.map
266
+ //# sourceMappingURL=chunk-BSUATLSL.js.map
@@ -3,7 +3,7 @@ import {
3
3
  MODEL_IDS,
4
4
  getTimeProvider,
5
5
  resolveModelIdentitySync
6
- } from "./chunk-LX5IYPWT.js";
6
+ } from "./chunk-RGK3N3UN.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-NBXWLWON.js.map
153
+ //# sourceMappingURL=chunk-CL4TF6YT.js.map
@@ -2,7 +2,7 @@ import {
2
2
  TASK_CATEGORIES,
3
3
  getAdaptiveBonus,
4
4
  getOutcomeStore
5
- } from "./chunk-LX5IYPWT.js";
5
+ } from "./chunk-RGK3N3UN.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-QXUR4YUG.js.map
109
+ //# sourceMappingURL=chunk-DDCKXILN.js.map
@@ -4,7 +4,7 @@ import {
4
4
  getErrorMessage,
5
5
  getTimeProvider,
6
6
  ok
7
- } from "./chunk-LX5IYPWT.js";
7
+ } from "./chunk-RGK3N3UN.js";
8
8
 
9
9
  // src/context/session-memory.ts
10
10
  import * as fs from "fs";
@@ -366,4 +366,4 @@ export {
366
366
  SessionMemory,
367
367
  createSessionMemory
368
368
  };
369
- //# sourceMappingURL=chunk-DSCUFZOH.js.map
369
+ //# sourceMappingURL=chunk-ETEKZ4RK.js.map
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-NNIFAFML.js";
10
+ } from "./chunk-TPO3KDE3.js";
11
11
  import {
12
12
  JsonlStore,
13
13
  SECURITY_KEYWORDS,
@@ -20,7 +20,7 @@ import {
20
20
  getTimeProvider,
21
21
  isDeclaredNeverDeprecate,
22
22
  isRegisteredToolName
23
- } from "./chunk-LX5IYPWT.js";
23
+ } from "./chunk-RGK3N3UN.js";
24
24
  import {
25
25
  getNexusDataDir,
26
26
  nexusDataPath
@@ -2159,4 +2159,4 @@ export {
2159
2159
  runImprovementReview,
2160
2160
  registerImprovementReviewTool
2161
2161
  };
2162
- //# sourceMappingURL=chunk-KHUXAO6X.js.map
2162
+ //# sourceMappingURL=chunk-FWRH2IEJ.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveCliSlot
3
- } from "./chunk-NBXWLWON.js";
3
+ } from "./chunk-CL4TF6YT.js";
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider,
7
7
  isRateLimitText
8
- } from "./chunk-LX5IYPWT.js";
8
+ } from "./chunk-RGK3N3UN.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-IWSFAWKW.js");
24
+ const { generateMcpConfig } = await import("./child-mcp-config-4DDBRYPA.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-KY34GTK6.js");
97
- const { createCompositeRouter } = await import("./composite-router-F7XYQ7CQ.js");
96
+ const { createAllAdapters } = await import("./factory-I7V3JB6F.js");
97
+ const { createCompositeRouter } = await import("./composite-router-4MX77KAO.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-4RVYA7PH.js");
105
+ const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-EZYSMS5J.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-HFYSK6QJ.js.map
216
+ //# sourceMappingURL=chunk-GHD3CUV7.js.map
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  readOpenAICompatEnv
3
- } from "./chunk-QSXXNGHT.js";
3
+ } from "./chunk-RGLSWWTT.js";
4
4
  import {
5
5
  allOf
6
6
  } from "./chunk-OQB3XC5O.js";
7
7
  import {
8
8
  VERSION
9
- } from "./chunk-72DYYJXS.js";
9
+ } from "./chunk-YVRYIIHX.js";
10
10
  import {
11
11
  capitalize
12
12
  } from "./chunk-6T3EPABN.js";
13
13
  import {
14
14
  createAllAdapters,
15
15
  probeCli
16
- } from "./chunk-GMJEGWDI.js";
16
+ } from "./chunk-JPEXSNOX.js";
17
17
  import {
18
18
  getNexusTmpDir
19
19
  } from "./chunk-4OW67KT2.js";
@@ -28,7 +28,7 @@ import {
28
28
  ok,
29
29
  symbols,
30
30
  writeLine
31
- } from "./chunk-LX5IYPWT.js";
31
+ } from "./chunk-RGK3N3UN.js";
32
32
  import {
33
33
  getLearningDir,
34
34
  getOutcomesFile,
@@ -1201,13 +1201,13 @@ async function runDoctorFix(result) {
1201
1201
  writeLine2("\u2500".repeat(40));
1202
1202
  let fixCount = 0;
1203
1203
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
1204
- const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-GRN2NHXS.js");
1204
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-XRUWUIYA.js");
1205
1205
  const outcome = describeDataDirFix2(initDataDirectories2());
1206
1206
  writeLine2(outcome.line);
1207
1207
  if (outcome.counted) fixCount++;
1208
1208
  }
1209
1209
  if (!result.configFile.found) {
1210
- const { runConfigInitSync } = await import("./setup-config-TAV64QON.js");
1210
+ const { runConfigInitSync } = await import("./setup-config-CZ4ATPBX.js");
1211
1211
  const configResult = runConfigInitSync(process.cwd(), false, false);
1212
1212
  if (configResult.success && configResult.created) {
1213
1213
  writeLine2(`\u2713 Generated config: ${configResult.path}`);
@@ -1303,4 +1303,4 @@ export {
1303
1303
  startStdioServer,
1304
1304
  closeServer
1305
1305
  };
1306
- //# sourceMappingURL=chunk-UMUO4TJL.js.map
1306
+ //# sourceMappingURL=chunk-HE76P4LG.js.map
@@ -2,7 +2,7 @@ import {
2
2
  computeTokenCost,
3
3
  getDefaultRegistry,
4
4
  roundToMicroUsd
5
- } from "./chunk-LX5IYPWT.js";
5
+ } from "./chunk-RGK3N3UN.js";
6
6
  import {
7
7
  getNexusDataDir
8
8
  } from "./chunk-OGHEKPLD.js";
@@ -131,4 +131,4 @@ export {
131
131
  loadUsageEvents,
132
132
  rollupByModel
133
133
  };
134
- //# sourceMappingURL=chunk-27CHC2RT.js.map
134
+ //# sourceMappingURL=chunk-I7VQGYLE.js.map
@@ -5,34 +5,34 @@ import {
5
5
  planOptionalParams,
6
6
  requireApiKey,
7
7
  validateApiKeyPresence
8
- } from "./chunk-DRVMOA3O.js";
8
+ } from "./chunk-3NCBSBSA.js";
9
9
  import {
10
10
  CUSTOM_API_DEFAULT_MODEL
11
- } from "./chunk-CLCZ4OSN.js";
11
+ } from "./chunk-YYCQ5G3K.js";
12
12
  import {
13
13
  CUSTOM_API_BASE_URL_ENV,
14
14
  PROVIDER_ENV_KEYS,
15
15
  assertCustomApiHostResolvesPublic,
16
16
  validateCustomApiBaseUrl
17
- } from "./chunk-Y5FOSK35.js";
17
+ } from "./chunk-3B5746AG.js";
18
18
  import {
19
19
  nexusMkdtempSync
20
20
  } from "./chunk-4OW67KT2.js";
21
21
  import {
22
22
  getAvailabilityCache
23
- } from "./chunk-NBXWLWON.js";
23
+ } from "./chunk-CL4TF6YT.js";
24
24
  import {
25
25
  extractSystemPrompt
26
26
  } from "./chunk-QZUG667L.js";
27
27
  import {
28
28
  generateHyphenId
29
- } from "./chunk-UEE5Q7NZ.js";
29
+ } from "./chunk-62JZZXZA.js";
30
30
  import {
31
31
  CliCircuitBreaker,
32
32
  DEFAULT_CIRCUIT_BREAKER_CONFIG,
33
33
  getCliCircuitBreakerSnapshot,
34
34
  getDefaultCliCircuitBreakerRegistry
35
- } from "./chunk-BUA6XJYA.js";
35
+ } from "./chunk-LQOANCSX.js";
36
36
  import {
37
37
  CLI_SUBPROCESS_TIMEOUTS,
38
38
  CLI_TIMEOUTS,
@@ -72,7 +72,7 @@ import {
72
72
  resolveCliAlias,
73
73
  resolveRetryAfterMs,
74
74
  retryAfterMsFromContext
75
- } from "./chunk-LX5IYPWT.js";
75
+ } from "./chunk-RGK3N3UN.js";
76
76
 
77
77
  // src/cli-adapters/cli-to-model-adapter.ts
78
78
  var CliToModelAdapter = class {
@@ -4903,4 +4903,4 @@ export {
4903
4903
  SdkAdapter,
4904
4904
  createAutoAdapter
4905
4905
  };
4906
- //# sourceMappingURL=chunk-GMJEGWDI.js.map
4906
+ //# sourceMappingURL=chunk-JPEXSNOX.js.map
@@ -5,7 +5,7 @@ import {
5
5
  getErrorMessage,
6
6
  ok,
7
7
  parseBoolEnv
8
- } from "./chunk-LX5IYPWT.js";
8
+ } from "./chunk-RGK3N3UN.js";
9
9
 
10
10
  // src/cli/research-helpers-io.ts
11
11
  import * as fs2 from "fs/promises";
@@ -156,4 +156,4 @@ export {
156
156
  loadPapersRegistry,
157
157
  savePapersRegistry
158
158
  };
159
- //# sourceMappingURL=chunk-YXBG5QEM.js.map
159
+ //# sourceMappingURL=chunk-K3P5KQXZ.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider
7
- } from "./chunk-LX5IYPWT.js";
7
+ } from "./chunk-RGK3N3UN.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-RMZPEV7T.js.map
724
+ //# sourceMappingURL=chunk-KQYXPAFQ.js.map
@@ -8,7 +8,7 @@ import {
8
8
  getTimeProvider,
9
9
  isRateLimitText,
10
10
  ok
11
- } from "./chunk-LX5IYPWT.js";
11
+ } from "./chunk-RGK3N3UN.js";
12
12
 
13
13
  // src/cli-adapters/circuit-breaker-types.ts
14
14
  var CircuitErrorCode = {
@@ -541,4 +541,4 @@ export {
541
541
  CliCircuitBreakerIntegration,
542
542
  createCliCircuitBreakerIntegration
543
543
  };
544
- //# sourceMappingURL=chunk-BUA6XJYA.js.map
544
+ //# sourceMappingURL=chunk-LQOANCSX.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getTimeProvider
3
- } from "./chunk-LX5IYPWT.js";
3
+ } from "./chunk-RGK3N3UN.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-6ME3ITZE.js.map
208
+ //# sourceMappingURL=chunk-MGXRJZUQ.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-FLZ4HLEX.js";
4
+ } from "./chunk-BSUATLSL.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-YJF46WLY.js";
14
+ } from "./chunk-QNXB6PVL.js";
15
15
  import {
16
16
  emitPolicyEvent
17
- } from "./chunk-6ME3ITZE.js";
17
+ } from "./chunk-MGXRJZUQ.js";
18
18
  import {
19
19
  hasToken
20
- } from "./chunk-KSB7BA4I.js";
20
+ } from "./chunk-3N3HTDAK.js";
21
21
  import {
22
22
  CLI_SUBPROCESS_TIMEOUTS,
23
23
  createLogger,
24
24
  err,
25
25
  getTimeProvider,
26
26
  ok
27
- } from "./chunk-LX5IYPWT.js";
27
+ } from "./chunk-RGK3N3UN.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-MUEJPAGI.js.map
1250
+ //# sourceMappingURL=chunk-OBCBF2AI.js.map
@@ -12,11 +12,11 @@ import {
12
12
  gateWithReputation,
13
13
  resolveReputationGatingMode,
14
14
  sanitizeInput
15
- } from "./chunk-YJF46WLY.js";
15
+ } from "./chunk-QNXB6PVL.js";
16
16
  import {
17
17
  createLogger,
18
18
  getTimeProvider
19
- } from "./chunk-LX5IYPWT.js";
19
+ } from "./chunk-RGK3N3UN.js";
20
20
 
21
21
  // src/dogfooding/pr-reviewer-helpers.ts
22
22
  import { randomUUID } from "crypto";
@@ -297,4 +297,4 @@ export {
297
297
  formatReviewComment,
298
298
  createFailedReview
299
299
  };
300
- //# sourceMappingURL=chunk-H6RKH6WM.js.map
300
+ //# sourceMappingURL=chunk-OHQ5JDJX.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  computeCostDetail,
3
3
  priceBasisOf
4
- } from "./chunk-27CHC2RT.js";
4
+ } from "./chunk-I7VQGYLE.js";
5
5
  import {
6
6
  allOf
7
7
  } from "./chunk-OQB3XC5O.js";
@@ -23,22 +23,22 @@ import {
23
23
  toolSuccessStructured,
24
24
  withProgressHeartbeat,
25
25
  wrapToolWithTimeout
26
- } from "./chunk-NNIFAFML.js";
26
+ } from "./chunk-TPO3KDE3.js";
27
27
  import {
28
28
  assessPanelIndependence,
29
29
  countDistinctModels,
30
30
  createEvent,
31
31
  getGlobalRegistry
32
- } from "./chunk-ZRFL3DXX.js";
32
+ } from "./chunk-XZHGPNSB.js";
33
33
  import {
34
34
  getToolMemory
35
- } from "./chunk-MLDDCRER.js";
35
+ } from "./chunk-XKHFPXIP.js";
36
36
  import {
37
37
  authRemediation,
38
38
  delay,
39
39
  getAvailableClis,
40
40
  withTimeout
41
- } from "./chunk-GMJEGWDI.js";
41
+ } from "./chunk-JPEXSNOX.js";
42
42
  import {
43
43
  AgentError,
44
44
  CLI_NAMES,
@@ -66,7 +66,7 @@ import {
66
66
  registerPersistentOutcomeStoreFactory,
67
67
  resolveClassGuardMs,
68
68
  resolveVoteTimeout
69
- } from "./chunk-LX5IYPWT.js";
69
+ } from "./chunk-RGK3N3UN.js";
70
70
  import {
71
71
  ensureLearningDir,
72
72
  getOutcomesFile
@@ -80,6 +80,18 @@ import {
80
80
  // src/mcp/tools/consensus-vote.ts
81
81
  import { z as z10 } from "zod";
82
82
 
83
+ // src/utils/bounded-artifact.ts
84
+ function boundArtifactForReview(text, budget, label) {
85
+ if (text.length <= budget) {
86
+ return { text, note: "", bound: void 0 };
87
+ }
88
+ return {
89
+ text: text.slice(0, budget),
90
+ note: `> NOTE: partial view \u2014 you are seeing the first ${String(budget)} of ${String(text.length)} characters of the ${label}. Judge only what is shown, and treat insufficient visibility as itself a reason to raise a concern.`,
91
+ bound: { reviewedChars: budget, totalChars: text.length, partial: true }
92
+ };
93
+ }
94
+
83
95
  // src/cli/voter-model-overrides.ts
84
96
  function voterModelOverrideEnvKey(role) {
85
97
  return `NEXUS_VOTER_MODEL_${role.toUpperCase()}`;
@@ -6259,21 +6271,34 @@ async function processVotesWithCascade(engineVotes, opts) {
6259
6271
  return { engineResult, voteMap, higherOrderResult, outcome, cascaded: cascadeInfo.decided };
6260
6272
  }
6261
6273
  var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
6274
+ var CONTRARIAN_PROPOSAL_BUDGET = 2e3;
6275
+ function buildContrarianPrompt(bounded) {
6276
+ return [
6277
+ "You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
6278
+ "Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
6279
+ "",
6280
+ ...bounded.note === "" ? [] : [bounded.note, ""],
6281
+ `Proposal: ${bounded.text}`,
6282
+ "",
6283
+ "If you find a strong reason to reject, respond with JSON:",
6284
+ '{"decision":"reject","confidence":0.0-1.0,"reasoning":"your concern"}',
6285
+ "If the proposal is sound, respond with:",
6286
+ '{"decision":"approve","confidence":0.0-1.0,"reasoning":"why it is acceptable"}'
6287
+ ].join("\n");
6288
+ }
6289
+ function logPartialProposal(bounded, log) {
6290
+ if (bounded.bound === void 0) return;
6291
+ log.info("Contrarian sees a partial proposal", {
6292
+ reviewedChars: bounded.bound.reviewedChars,
6293
+ totalChars: bounded.bound.totalChars
6294
+ });
6295
+ }
6262
6296
  async function runContrarianCheck(proposal, log) {
6263
6297
  try {
6264
- const { executeExpert } = await import("./expert-bridge-LEXXNSTY.js");
6265
- const prompt = [
6266
- "You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
6267
- "Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
6268
- "",
6269
- `Proposal: ${proposal.slice(0, 2e3)}`,
6270
- "",
6271
- "If you find a strong reason to reject, respond with JSON:",
6272
- '{"decision":"reject","confidence":0.0-1.0,"reasoning":"your concern"}',
6273
- "If the proposal is sound, respond with:",
6274
- '{"decision":"approve","confidence":0.0-1.0,"reasoning":"why it is acceptable"}'
6275
- ].join("\n");
6276
- const result = await executeExpert("architecture", prompt);
6298
+ const { executeExpert } = await import("./expert-bridge-3EHBG44P.js");
6299
+ const bounded = boundArtifactForReview(proposal, CONTRARIAN_PROPOSAL_BUDGET, "proposal");
6300
+ logPartialProposal(bounded, log);
6301
+ const result = await executeExpert("architecture", buildContrarianPrompt(bounded));
6277
6302
  if (!result.success) return { shouldEscalate: false, reason: "", confidence: 0, errored: true };
6278
6303
  const jsonMatch = result.text.match(/\{[\s\S]*\}/);
6279
6304
  if (jsonMatch === null)
@@ -6848,4 +6873,4 @@ export {
6848
6873
  CONSENSUS_VOTE_TOOL_SCHEMA,
6849
6874
  registerConsensusVoteTool
6850
6875
  };
6851
- //# sourceMappingURL=chunk-WMHOQLDT.js.map
6876
+ //# sourceMappingURL=chunk-PE4W7G7S.js.map