nexus-agents 2.119.2 → 2.120.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 (118) hide show
  1. package/dist/{child-mcp-config-JUQOQBBY.js → child-mcp-config-RDUL6TEN.js} +2 -2
  2. package/dist/{chunk-22IIWHB7.js → chunk-2PQNHP5Y.js} +2 -2
  3. package/dist/{chunk-MAVVFAN4.js → chunk-3A5RSSNS.js} +2 -2
  4. package/dist/{chunk-ULTFAX5B.js → chunk-3A6MVIMV.js} +2 -2
  5. package/dist/{chunk-XV6MRLOW.js → chunk-4AICTG5E.js} +2 -2
  6. package/dist/{chunk-RG23ZE4G.js → chunk-5CIKBB4B.js} +2 -2
  7. package/dist/{chunk-IW3KSMM6.js → chunk-74FAWZDF.js} +2 -2
  8. package/dist/{chunk-WIG3TUXY.js → chunk-AEPFWQLE.js} +3 -3
  9. package/dist/{chunk-HGLWVQTP.js → chunk-CBJZ5OXG.js} +3 -3
  10. package/dist/{chunk-TMTJ3OOM.js → chunk-CBTGEHTF.js} +3 -3
  11. package/dist/{chunk-ZWZN5N2Z.js → chunk-DWXR7MPD.js} +5 -5
  12. package/dist/{chunk-5YMBUH45.js → chunk-EXC3AYWU.js} +2 -2
  13. package/dist/{chunk-SAVNA4TI.js → chunk-HBAZPTKZ.js} +3 -3
  14. package/dist/{chunk-4FDPDYEX.js → chunk-HR5IN77R.js} +2 -2
  15. package/dist/{chunk-XY6QSHBP.js → chunk-JQBGO5XS.js} +3 -3
  16. package/dist/{chunk-CSUPWCVI.js → chunk-JZUZJFR7.js} +2 -2
  17. package/dist/{chunk-LR5YOBU5.js → chunk-KDST2V5V.js} +4 -4
  18. package/dist/{chunk-DT2AAM6K.js → chunk-KPZ7LI5U.js} +4 -4
  19. package/dist/{chunk-EZ47OIGA.js → chunk-KQYEBRLU.js} +38 -12
  20. package/dist/chunk-KQYEBRLU.js.map +1 -0
  21. package/dist/{chunk-S33JJYFL.js → chunk-LICZWNOC.js} +2 -2
  22. package/dist/{chunk-T4D7CT6L.js → chunk-LV26EF7E.js} +45 -39
  23. package/dist/chunk-LV26EF7E.js.map +1 -0
  24. package/dist/{chunk-57N4FTLL.js → chunk-MRBKDEBX.js} +2 -2
  25. package/dist/{chunk-HWQHXB3L.js → chunk-NHCAY372.js} +7 -7
  26. package/dist/{chunk-62ACDINW.js → chunk-NT7LFPXT.js} +7 -7
  27. package/dist/{chunk-235LYOTA.js → chunk-O56EMO45.js} +5 -5
  28. package/dist/chunk-O56EMO45.js.map +1 -0
  29. package/dist/{chunk-ZGKWMHGC.js → chunk-OQL2SBS2.js} +7 -7
  30. package/dist/{chunk-44DIHZLT.js → chunk-OZGVNH5E.js} +2 -2
  31. package/dist/{chunk-LOYYLIDC.js → chunk-PGAZT4UC.js} +4 -4
  32. package/dist/{chunk-L4LZ36ZR.js → chunk-PN6BFDVL.js} +2 -2
  33. package/dist/{chunk-LXFX6C2B.js → chunk-RACI64HA.js} +2 -2
  34. package/dist/{chunk-F4V6FE64.js → chunk-TAJN2TAF.js} +3 -3
  35. package/dist/{chunk-Y4YAJM7H.js → chunk-TW4DWZHR.js} +18 -9
  36. package/dist/chunk-TW4DWZHR.js.map +1 -0
  37. package/dist/{cli-circuit-breaker-3FJIRS6L.js → cli-circuit-breaker-UBXYD743.js} +4 -4
  38. package/dist/cli.js +44 -40
  39. package/dist/cli.js.map +1 -1
  40. package/dist/{composite-router-LOHKXQUL.js → composite-router-MBOLQYU5.js} +2 -2
  41. package/dist/{consensus-vote-MW4OI6G2.js → consensus-vote-YM4BVTDO.js} +12 -12
  42. package/dist/{context-retriever-RJINEPAF.js → context-retriever-Z33ENLKK.js} +8 -8
  43. package/dist/{doctor-deep-CT6A5DPU.js → doctor-deep-CNCAD3EL.js} +3 -3
  44. package/dist/{expert-bridge-MCXXD563.js → expert-bridge-I4AAMYLC.js} +4 -4
  45. package/dist/factory-2ZPUMTHZ.js +21 -0
  46. package/dist/{factory-BTNDO4KX.js → factory-XCCAP6N5.js} +5 -5
  47. package/dist/{improvement-review-LM3LEION.js → improvement-review-4G2MLOIK.js} +4 -4
  48. package/dist/index.d.ts +46 -12
  49. package/dist/index.js +27 -27
  50. package/dist/{init-opencode-6PZ2N4X3.js → init-opencode-3CBGVXLE.js} +5 -5
  51. package/dist/{issue-triage-QVIRVHZ4.js → issue-triage-O4OQWBK4.js} +5 -5
  52. package/dist/{pr-reviewer-helpers-S2WVLRHC.js → pr-reviewer-helpers-3URXL6EB.js} +4 -4
  53. package/dist/{registry-command-O4U4W6IA.js → registry-command-WGRIA4KZ.js} +2 -2
  54. package/dist/{repo-security-plan-N35AAZKL.js → repo-security-plan-52QYE2BH.js} +3 -3
  55. package/dist/{research-helpers-synthesize-VXKZWU3M.js → research-helpers-synthesize-YFCTIOSG.js} +4 -4
  56. package/dist/{routing-memory-H5YZCGMO.js → routing-memory-PBMMTURL.js} +2 -2
  57. package/dist/{session-memory-OIA3ZJTT.js → session-memory-ZTHW5UXC.js} +3 -3
  58. package/dist/{setup-command-UC552MKE.js → setup-command-2JKY6AOS.js} +11 -11
  59. package/dist/{setup-config-PA744X7J.js → setup-config-OSTBQXXX.js} +3 -3
  60. package/dist/{setup-custom-api-CMA6DDD6.js → setup-custom-api-AGZEJR2A.js} +3 -3
  61. package/dist/{tool-memory-2TUID2VC.js → tool-memory-DQHPHYTA.js} +5 -5
  62. package/dist/{weather-report-S6X5AKTZ.js → weather-report-H6ESCY7I.js} +2 -2
  63. package/package.json +1 -1
  64. package/dist/chunk-235LYOTA.js.map +0 -1
  65. package/dist/chunk-EZ47OIGA.js.map +0 -1
  66. package/dist/chunk-T4D7CT6L.js.map +0 -1
  67. package/dist/chunk-Y4YAJM7H.js.map +0 -1
  68. package/dist/factory-DUXMSYAY.js +0 -21
  69. /package/dist/{child-mcp-config-JUQOQBBY.js.map → child-mcp-config-RDUL6TEN.js.map} +0 -0
  70. /package/dist/{chunk-22IIWHB7.js.map → chunk-2PQNHP5Y.js.map} +0 -0
  71. /package/dist/{chunk-MAVVFAN4.js.map → chunk-3A5RSSNS.js.map} +0 -0
  72. /package/dist/{chunk-ULTFAX5B.js.map → chunk-3A6MVIMV.js.map} +0 -0
  73. /package/dist/{chunk-XV6MRLOW.js.map → chunk-4AICTG5E.js.map} +0 -0
  74. /package/dist/{chunk-RG23ZE4G.js.map → chunk-5CIKBB4B.js.map} +0 -0
  75. /package/dist/{chunk-IW3KSMM6.js.map → chunk-74FAWZDF.js.map} +0 -0
  76. /package/dist/{chunk-WIG3TUXY.js.map → chunk-AEPFWQLE.js.map} +0 -0
  77. /package/dist/{chunk-HGLWVQTP.js.map → chunk-CBJZ5OXG.js.map} +0 -0
  78. /package/dist/{chunk-TMTJ3OOM.js.map → chunk-CBTGEHTF.js.map} +0 -0
  79. /package/dist/{chunk-ZWZN5N2Z.js.map → chunk-DWXR7MPD.js.map} +0 -0
  80. /package/dist/{chunk-5YMBUH45.js.map → chunk-EXC3AYWU.js.map} +0 -0
  81. /package/dist/{chunk-SAVNA4TI.js.map → chunk-HBAZPTKZ.js.map} +0 -0
  82. /package/dist/{chunk-4FDPDYEX.js.map → chunk-HR5IN77R.js.map} +0 -0
  83. /package/dist/{chunk-XY6QSHBP.js.map → chunk-JQBGO5XS.js.map} +0 -0
  84. /package/dist/{chunk-CSUPWCVI.js.map → chunk-JZUZJFR7.js.map} +0 -0
  85. /package/dist/{chunk-LR5YOBU5.js.map → chunk-KDST2V5V.js.map} +0 -0
  86. /package/dist/{chunk-DT2AAM6K.js.map → chunk-KPZ7LI5U.js.map} +0 -0
  87. /package/dist/{chunk-S33JJYFL.js.map → chunk-LICZWNOC.js.map} +0 -0
  88. /package/dist/{chunk-57N4FTLL.js.map → chunk-MRBKDEBX.js.map} +0 -0
  89. /package/dist/{chunk-HWQHXB3L.js.map → chunk-NHCAY372.js.map} +0 -0
  90. /package/dist/{chunk-62ACDINW.js.map → chunk-NT7LFPXT.js.map} +0 -0
  91. /package/dist/{chunk-ZGKWMHGC.js.map → chunk-OQL2SBS2.js.map} +0 -0
  92. /package/dist/{chunk-44DIHZLT.js.map → chunk-OZGVNH5E.js.map} +0 -0
  93. /package/dist/{chunk-LOYYLIDC.js.map → chunk-PGAZT4UC.js.map} +0 -0
  94. /package/dist/{chunk-L4LZ36ZR.js.map → chunk-PN6BFDVL.js.map} +0 -0
  95. /package/dist/{chunk-LXFX6C2B.js.map → chunk-RACI64HA.js.map} +0 -0
  96. /package/dist/{chunk-F4V6FE64.js.map → chunk-TAJN2TAF.js.map} +0 -0
  97. /package/dist/{cli-circuit-breaker-3FJIRS6L.js.map → cli-circuit-breaker-UBXYD743.js.map} +0 -0
  98. /package/dist/{composite-router-LOHKXQUL.js.map → composite-router-MBOLQYU5.js.map} +0 -0
  99. /package/dist/{consensus-vote-MW4OI6G2.js.map → consensus-vote-YM4BVTDO.js.map} +0 -0
  100. /package/dist/{context-retriever-RJINEPAF.js.map → context-retriever-Z33ENLKK.js.map} +0 -0
  101. /package/dist/{doctor-deep-CT6A5DPU.js.map → doctor-deep-CNCAD3EL.js.map} +0 -0
  102. /package/dist/{expert-bridge-MCXXD563.js.map → expert-bridge-I4AAMYLC.js.map} +0 -0
  103. /package/dist/{factory-BTNDO4KX.js.map → factory-2ZPUMTHZ.js.map} +0 -0
  104. /package/dist/{factory-DUXMSYAY.js.map → factory-XCCAP6N5.js.map} +0 -0
  105. /package/dist/{improvement-review-LM3LEION.js.map → improvement-review-4G2MLOIK.js.map} +0 -0
  106. /package/dist/{init-opencode-6PZ2N4X3.js.map → init-opencode-3CBGVXLE.js.map} +0 -0
  107. /package/dist/{issue-triage-QVIRVHZ4.js.map → issue-triage-O4OQWBK4.js.map} +0 -0
  108. /package/dist/{pr-reviewer-helpers-S2WVLRHC.js.map → pr-reviewer-helpers-3URXL6EB.js.map} +0 -0
  109. /package/dist/{registry-command-O4U4W6IA.js.map → registry-command-WGRIA4KZ.js.map} +0 -0
  110. /package/dist/{repo-security-plan-N35AAZKL.js.map → repo-security-plan-52QYE2BH.js.map} +0 -0
  111. /package/dist/{research-helpers-synthesize-VXKZWU3M.js.map → research-helpers-synthesize-YFCTIOSG.js.map} +0 -0
  112. /package/dist/{routing-memory-H5YZCGMO.js.map → routing-memory-PBMMTURL.js.map} +0 -0
  113. /package/dist/{session-memory-OIA3ZJTT.js.map → session-memory-ZTHW5UXC.js.map} +0 -0
  114. /package/dist/{setup-command-UC552MKE.js.map → setup-command-2JKY6AOS.js.map} +0 -0
  115. /package/dist/{setup-config-PA744X7J.js.map → setup-config-OSTBQXXX.js.map} +0 -0
  116. /package/dist/{setup-custom-api-CMA6DDD6.js.map → setup-custom-api-AGZEJR2A.js.map} +0 -0
  117. /package/dist/{tool-memory-2TUID2VC.js.map → tool-memory-DQHPHYTA.js.map} +0 -0
  118. /package/dist/{weather-report-S6X5AKTZ.js.map → weather-report-H6ESCY7I.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createLogger
3
- } from "./chunk-Y4YAJM7H.js";
3
+ } from "./chunk-TW4DWZHR.js";
4
4
  import "./chunk-CH7QIDHQ.js";
5
5
  import "./chunk-PR4QN5HX.js";
6
6
 
@@ -59,4 +59,4 @@ export {
59
59
  generateMcpConfig,
60
60
  getDefaultAllowedTools
61
61
  };
62
- //# sourceMappingURL=child-mcp-config-JUQOQBBY.js.map
62
+ //# sourceMappingURL=child-mcp-config-RDUL6TEN.js.map
@@ -11,7 +11,7 @@ import {
11
11
  getErrorMessage,
12
12
  getTimeProvider,
13
13
  ok
14
- } from "./chunk-Y4YAJM7H.js";
14
+ } from "./chunk-TW4DWZHR.js";
15
15
  import {
16
16
  getNexusDataDir
17
17
  } from "./chunk-CH7QIDHQ.js";
@@ -2588,4 +2588,4 @@ export {
2588
2588
  VOTING_THRESHOLDS,
2589
2589
  ConsensusMetricsSchema
2590
2590
  };
2591
- //# sourceMappingURL=chunk-22IIWHB7.js.map
2591
+ //# sourceMappingURL=chunk-2PQNHP5Y.js.map
@@ -10,7 +10,7 @@ import {
10
10
  getTokenEstimator,
11
11
  isRateLimitLikeError,
12
12
  ok
13
- } from "./chunk-Y4YAJM7H.js";
13
+ } from "./chunk-TW4DWZHR.js";
14
14
 
15
15
  // src/adapters/base-adapter.ts
16
16
  var AdapterModelError = class extends ModelError {
@@ -707,4 +707,4 @@ export {
707
707
  DEFAULT_COLLECT_STREAM_MAX_CHUNKS,
708
708
  collectStream
709
709
  };
710
- //# sourceMappingURL=chunk-MAVVFAN4.js.map
710
+ //# sourceMappingURL=chunk-3A5RSSNS.js.map
@@ -3,7 +3,7 @@ import {
3
3
  err,
4
4
  getErrorMessage,
5
5
  ok
6
- } from "./chunk-Y4YAJM7H.js";
6
+ } from "./chunk-TW4DWZHR.js";
7
7
 
8
8
  // src/scm/types.ts
9
9
  var ScmError = class extends Error {
@@ -258,4 +258,4 @@ export {
258
258
  ScmError,
259
259
  GitHubProvider
260
260
  };
261
- //# sourceMappingURL=chunk-ULTFAX5B.js.map
261
+ //# sourceMappingURL=chunk-3A6MVIMV.js.map
@@ -2,7 +2,7 @@ import {
2
2
  TASK_CATEGORIES,
3
3
  getAdaptiveBonus,
4
4
  getOutcomeStore
5
- } from "./chunk-Y4YAJM7H.js";
5
+ } from "./chunk-TW4DWZHR.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-XV6MRLOW.js.map
109
+ //# sourceMappingURL=chunk-4AICTG5E.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider
7
- } from "./chunk-Y4YAJM7H.js";
7
+ } from "./chunk-TW4DWZHR.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-RG23ZE4G.js.map
724
+ //# sourceMappingURL=chunk-5CIKBB4B.js.map
@@ -3,7 +3,7 @@ import {
3
3
  MODEL_IDS,
4
4
  getTimeProvider,
5
5
  resolveModelIdentitySync
6
- } from "./chunk-Y4YAJM7H.js";
6
+ } from "./chunk-TW4DWZHR.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-IW3KSMM6.js.map
153
+ //# sourceMappingURL=chunk-74FAWZDF.js.map
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-22IIWHB7.js";
10
+ } from "./chunk-2PQNHP5Y.js";
11
11
  import {
12
12
  createLogger,
13
13
  formatZodError,
@@ -15,7 +15,7 @@ import {
15
15
  getOutcomeStore,
16
16
  getPipelineEventBus,
17
17
  getTimeProvider
18
- } from "./chunk-Y4YAJM7H.js";
18
+ } from "./chunk-TW4DWZHR.js";
19
19
  import {
20
20
  getNexusDataDir
21
21
  } from "./chunk-CH7QIDHQ.js";
@@ -1138,4 +1138,4 @@ export {
1138
1138
  runImprovementReview,
1139
1139
  registerImprovementReviewTool
1140
1140
  };
1141
- //# sourceMappingURL=chunk-WIG3TUXY.js.map
1141
+ //# sourceMappingURL=chunk-AEPFWQLE.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OpenAIAdapter
3
- } from "./chunk-SAVNA4TI.js";
3
+ } from "./chunk-HBAZPTKZ.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-Y4YAJM7H.js";
12
+ } from "./chunk-TW4DWZHR.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-HGLWVQTP.js.map
310
+ //# sourceMappingURL=chunk-CBJZ5OXG.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  loadPapersRegistry
3
- } from "./chunk-57N4FTLL.js";
3
+ } from "./chunk-MRBKDEBX.js";
4
4
  import {
5
5
  getErrorMessage
6
- } from "./chunk-Y4YAJM7H.js";
6
+ } from "./chunk-TW4DWZHR.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-TMTJ3OOM.js.map
879
+ //# sourceMappingURL=chunk-CBTGEHTF.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  resolveToken
3
- } from "./chunk-4FDPDYEX.js";
3
+ } from "./chunk-HR5IN77R.js";
4
4
  import {
5
5
  REGISTRY_PATH,
6
6
  getProjectRoot,
7
7
  loadPapersRegistry,
8
8
  loadTechniquesRegistry,
9
9
  savePapersRegistry
10
- } from "./chunk-57N4FTLL.js";
10
+ } from "./chunk-MRBKDEBX.js";
11
11
  import {
12
12
  getToolMemory
13
- } from "./chunk-LOYYLIDC.js";
13
+ } from "./chunk-PGAZT4UC.js";
14
14
  import {
15
15
  resolveInsideRoot
16
16
  } from "./chunk-NUBSJGQZ.js";
@@ -27,7 +27,7 @@ import {
27
27
  getOutcomeStore,
28
28
  getTimeProvider,
29
29
  registerPersistentDistillerFactory
30
- } from "./chunk-Y4YAJM7H.js";
30
+ } from "./chunk-TW4DWZHR.js";
31
31
  import {
32
32
  ensureLearningDir,
33
33
  getRulesFile
@@ -2491,4 +2491,4 @@ export {
2491
2491
  summarizeContextForPrompt,
2492
2492
  getContextPromptPrefix
2493
2493
  };
2494
- //# sourceMappingURL=chunk-ZWZN5N2Z.js.map
2494
+ //# sourceMappingURL=chunk-DWXR7MPD.js.map
@@ -5,7 +5,7 @@ import {
5
5
  getErrorMessage,
6
6
  getTimeProvider,
7
7
  ok
8
- } from "./chunk-Y4YAJM7H.js";
8
+ } from "./chunk-TW4DWZHR.js";
9
9
 
10
10
  // src/cli-adapters/circuit-breaker-types.ts
11
11
  var CircuitErrorCode = {
@@ -372,4 +372,4 @@ export {
372
372
  mapCliErrorToCategory,
373
373
  mapModelErrorToCategory
374
374
  };
375
- //# sourceMappingURL=chunk-5YMBUH45.js.map
375
+ //# sourceMappingURL=chunk-EXC3AYWU.js.map
@@ -3,14 +3,14 @@ import {
3
3
  createStream,
4
4
  requireApiKey,
5
5
  validateApiKeyPresence
6
- } from "./chunk-MAVVFAN4.js";
6
+ } from "./chunk-3A5RSSNS.js";
7
7
  import {
8
8
  ModelCapability,
9
9
  err,
10
10
  getCliModelName,
11
11
  getTokenEstimator,
12
12
  ok
13
- } from "./chunk-Y4YAJM7H.js";
13
+ } from "./chunk-TW4DWZHR.js";
14
14
 
15
15
  // src/adapters/openai-types.ts
16
16
  var OPENAI_MODELS = {
@@ -553,4 +553,4 @@ export {
553
553
  OpenAIAdapter,
554
554
  createOpenAIAdapter
555
555
  };
556
- //# sourceMappingURL=chunk-SAVNA4TI.js.map
556
+ //# sourceMappingURL=chunk-HBAZPTKZ.js.map
@@ -2,7 +2,7 @@ import {
2
2
  createLogger,
3
3
  err,
4
4
  ok
5
- } from "./chunk-Y4YAJM7H.js";
5
+ } from "./chunk-TW4DWZHR.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-4FDPDYEX.js.map
90
+ //# sourceMappingURL=chunk-HR5IN77R.js.map
@@ -2,14 +2,14 @@ import {
2
2
  CircuitBreakerRegistry,
3
3
  CircuitError,
4
4
  mapCliErrorToCategory
5
- } from "./chunk-5YMBUH45.js";
5
+ } from "./chunk-EXC3AYWU.js";
6
6
  import {
7
7
  createLogger,
8
8
  err,
9
9
  getFallbackChainForCategory,
10
10
  getTimeProvider,
11
11
  ok
12
- } from "./chunk-Y4YAJM7H.js";
12
+ } from "./chunk-TW4DWZHR.js";
13
13
 
14
14
  // src/cli-adapters/cli-circuit-breaker.ts
15
15
  var CATEGORY_TO_FALLBACK = {
@@ -152,4 +152,4 @@ export {
152
152
  CliCircuitBreakerIntegration,
153
153
  createCliCircuitBreakerIntegration
154
154
  };
155
- //# sourceMappingURL=chunk-XY6QSHBP.js.map
155
+ //# sourceMappingURL=chunk-JQBGO5XS.js.map
@@ -4,7 +4,7 @@ import {
4
4
  getErrorMessage,
5
5
  getTimeProvider,
6
6
  ok
7
- } from "./chunk-Y4YAJM7H.js";
7
+ } from "./chunk-TW4DWZHR.js";
8
8
 
9
9
  // src/context/session-memory.ts
10
10
  import * as fs from "fs";
@@ -351,4 +351,4 @@ export {
351
351
  SessionMemory,
352
352
  createSessionMemory
353
353
  };
354
- //# sourceMappingURL=chunk-CSUPWCVI.js.map
354
+ //# sourceMappingURL=chunk-JZUZJFR7.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-ULTFAX5B.js";
4
+ } from "./chunk-3A6MVIMV.js";
5
5
  import {
6
6
  resolveToken
7
- } from "./chunk-4FDPDYEX.js";
7
+ } from "./chunk-HR5IN77R.js";
8
8
  import {
9
9
  err,
10
10
  ok
11
- } from "./chunk-Y4YAJM7H.js";
11
+ } from "./chunk-TW4DWZHR.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-LR5YOBU5.js.map
44
+ //# sourceMappingURL=chunk-KDST2V5V.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-ULTFAX5B.js";
4
+ } from "./chunk-3A6MVIMV.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-L4LZ36ZR.js";
14
+ } from "./chunk-PN6BFDVL.js";
15
15
  import {
16
16
  createLogger,
17
17
  err,
18
18
  getTimeProvider,
19
19
  ok
20
- } from "./chunk-Y4YAJM7H.js";
20
+ } from "./chunk-TW4DWZHR.js";
21
21
 
22
22
  // src/security/trust-classifier.ts
23
23
  function mapAuthorAssociation(association) {
@@ -1390,4 +1390,4 @@ export {
1390
1390
  IssueTriage,
1391
1391
  createIssueTriage
1392
1392
  };
1393
- //# sourceMappingURL=chunk-DT2AAM6K.js.map
1393
+ //# sourceMappingURL=chunk-KPZ7LI5U.js.map
@@ -14,20 +14,20 @@ import {
14
14
  toolSuccess,
15
15
  withProgressHeartbeat,
16
16
  wrapToolWithTimeout
17
- } from "./chunk-22IIWHB7.js";
17
+ } from "./chunk-2PQNHP5Y.js";
18
18
  import {
19
19
  getToolMemory
20
- } from "./chunk-LOYYLIDC.js";
20
+ } from "./chunk-PGAZT4UC.js";
21
21
  import {
22
22
  authRemediation,
23
23
  createAutoAdapter,
24
24
  delay,
25
25
  getAvailableClis,
26
26
  withTimeout
27
- } from "./chunk-62ACDINW.js";
27
+ } from "./chunk-NT7LFPXT.js";
28
28
  import {
29
29
  mapModelErrorToCategory
30
- } from "./chunk-5YMBUH45.js";
30
+ } from "./chunk-EXC3AYWU.js";
31
31
  import {
32
32
  AgentError,
33
33
  CLI_NAMES,
@@ -62,7 +62,7 @@ import {
62
62
  registerPersistentOutcomeStoreFactory,
63
63
  resolveVoteTimeout,
64
64
  toRateLimitError
65
- } from "./chunk-Y4YAJM7H.js";
65
+ } from "./chunk-TW4DWZHR.js";
66
66
  import {
67
67
  ensureLearningDir,
68
68
  getOutcomesFile,
@@ -1678,9 +1678,18 @@ async function executeSingleVoteAttempt(role, proposal, adapter, timeoutMs) {
1678
1678
  // Low temperature for consistent evaluations
1679
1679
  // #3433: request native structured output (Claude tool_use / OpenAI+Gemini
1680
1680
  // json mode) so the vote arrives as a schema-valid JSON object instead of
1681
- // prose-wrapped JSON. Adapters that don't honor responseFormat ignore it and
1682
- // the existing extractTextFromResponse + parseVoteResponse regex/Zod path
1683
- // below is the fallback no behavior change for those backends.
1681
+ // prose-wrapped JSON. When an adapter DOES honor it, the
1682
+ // extractTextFromResponse + parseVoteResponse regex/Zod path below still
1683
+ // accepts the result, so it's also the fallback for prose-returning backends.
1684
+ //
1685
+ // CAVEAT (#3497): not every backend "silently ignores" an unsupported
1686
+ // responseFormat. OpenRouter implements `json_schema` via provider tool-use,
1687
+ // so a role routed to a provider without tool-use returns a hard
1688
+ // 404 "No endpoints found that support tool use" rather than ignoring the
1689
+ // field. Those voters then error → abstain (the panel degrades to the
1690
+ // succeeding voters). The real fix — gate `responseFormat` on a model
1691
+ // structured-output capability, or retry-without-it on that 404 — is tracked
1692
+ // in #3497; this comment no longer claims a universal "no behavior change".
1684
1693
  responseFormat: { type: "json_schema", schema: VOTE_JSON_SCHEMA },
1685
1694
  // Thread the vote's budget into the adapter so its shorter standard CLI
1686
1695
  // timeout doesn't fire first and surface as an MCP -32001 on slow voters
@@ -5084,6 +5093,10 @@ var VotingStrategySchema = z6.enum([
5084
5093
  function isHigherOrderStrategy(strategy) {
5085
5094
  return strategy === "higher_order" || strategy === "opinion_wise";
5086
5095
  }
5096
+ var HIGHER_ORDER_ESCALATION_POSTERIOR_FLOOR = 0.65;
5097
+ function shouldEscalateLowPosterior(strategy, outcome, quickMode, posteriorApproval) {
5098
+ return quickMode && outcome === "approved" && isHigherOrderStrategy(strategy) && posteriorApproval !== void 0 && posteriorApproval < HIGHER_ORDER_ESCALATION_POSTERIOR_FLOOR;
5099
+ }
5087
5100
  var ErrorPolicySchema = z6.enum(["reduce_denominator", "count_as_abstain", "fail_closed"]);
5088
5101
  var VoteThresholdSchema = z6.enum(["majority", "supermajority", "unanimous"]);
5089
5102
  var ERROR_FLOOR_FRACTION = 0.5;
@@ -5985,7 +5998,7 @@ async function processVotesWithCascade(engineVotes, opts) {
5985
5998
  var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
5986
5999
  async function runContrarianCheck(proposal, log) {
5987
6000
  try {
5988
- const { executeExpert } = await import("./expert-bridge-MCXXD563.js");
6001
+ const { executeExpert } = await import("./expert-bridge-I4AAMYLC.js");
5989
6002
  const prompt = [
5990
6003
  "You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
5991
6004
  "Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
@@ -6038,8 +6051,15 @@ function buildPolicyShortCircuitResult(args) {
6038
6051
  policyReason: args.reason
6039
6052
  };
6040
6053
  }
6041
- async function maybeEscalateContrarian(input, outcome, logger11, opts) {
6054
+ async function maybeEscalateContrarian(input, outcome, ctx, logger11, opts) {
6042
6055
  if (!input.quickMode || outcome !== "approved" || input.simulateVotes) return void 0;
6056
+ if (shouldEscalateLowPosterior(ctx.strategy, outcome, input.quickMode, ctx.posteriorApproval)) {
6057
+ logger11.warn("Posterior-confidence escalation: re-running with full vote (#3174)", {
6058
+ strategy: ctx.strategy,
6059
+ posteriorApproval: ctx.posteriorApproval
6060
+ });
6061
+ return executeVoting({ ...input, quickMode: false }, logger11, opts);
6062
+ }
6043
6063
  const escalation = await runContrarianCheck(input.proposal, logger11);
6044
6064
  if (!escalation.shouldEscalate) return void 0;
6045
6065
  logger11.warn("Contrarian escalation: re-running with full vote", {
@@ -6090,7 +6110,13 @@ async function executeVoting(input, logger11, opts) {
6090
6110
  }
6091
6111
  );
6092
6112
  recordVotesToTracker(votes, outcome, logger11);
6093
- const escalated = await maybeEscalateContrarian(input, outcome, logger11, opts);
6113
+ const escalated = await maybeEscalateContrarian(
6114
+ input,
6115
+ outcome,
6116
+ { strategy, posteriorApproval: higherOrderResult?.posteriorApproval },
6117
+ logger11,
6118
+ opts
6119
+ );
6094
6120
  if (escalated !== void 0) return escalated;
6095
6121
  return finalizeVotingResult({
6096
6122
  input,
@@ -6457,4 +6483,4 @@ export {
6457
6483
  CONSENSUS_VOTE_OUTPUT_SCHEMA,
6458
6484
  registerConsensusVoteTool
6459
6485
  };
6460
- //# sourceMappingURL=chunk-EZ47OIGA.js.map
6486
+ //# sourceMappingURL=chunk-KQYEBRLU.js.map