nexus-agents 4.22.3 → 4.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/dist/{child-mcp-config-Y3QSDCYI.js → child-mcp-config-FEK2HK5L.js} +5 -5
  2. package/dist/{chunk-JV6SMJMJ.js → chunk-2FYFHAI4.js} +2 -2
  3. package/dist/{chunk-LX5HF6N5.js → chunk-2MPJ7UDR.js} +97 -45
  4. package/dist/{chunk-LX5HF6N5.js.map → chunk-2MPJ7UDR.js.map} +1 -1
  5. package/dist/{chunk-X7MLVGJV.js → chunk-32IMMUXP.js} +2 -2
  6. package/dist/{chunk-ICGYXBS6.js → chunk-3SMGCYGN.js} +2 -2
  7. package/dist/{chunk-RQV5ZUXT.js → chunk-4OW67KT2.js} +2 -2
  8. package/dist/{chunk-SBLLJXJO.js → chunk-5KKJKQVE.js} +5 -4
  9. package/dist/chunk-5KKJKQVE.js.map +1 -0
  10. package/dist/{chunk-EU7S5CDW.js → chunk-ADC7YEU2.js} +6 -6
  11. package/dist/{chunk-TBXAEAKP.js → chunk-AWMXPIMK.js} +3 -3
  12. package/dist/{chunk-RMTTKP4L.js → chunk-CMZGRDKF.js} +2 -2
  13. package/dist/{chunk-JM42KPWJ.js → chunk-EPZCODRK.js} +9 -9
  14. package/dist/{chunk-FVUQY73A.js → chunk-EYQUQ2PZ.js} +2 -2
  15. package/dist/{chunk-HHLCAWAV.js → chunk-GBHJ37V3.js} +2 -2
  16. package/dist/{chunk-RE2GYZRK.js → chunk-GGQOP4VK.js} +5 -5
  17. package/dist/{chunk-MM7BINTV.js → chunk-GVLMTQ46.js} +4 -4
  18. package/dist/{chunk-IK6JPHMX.js → chunk-HPGPOZG4.js} +7 -7
  19. package/dist/{chunk-V533P6BT.js → chunk-IC6WLIGJ.js} +4 -4
  20. package/dist/{chunk-KGFFEQTN.js → chunk-JEAKVUWM.js} +2 -2
  21. package/dist/{chunk-TMKBZG3W.js → chunk-K2A24T36.js} +2 -2
  22. package/dist/{chunk-6U3LS57H.js → chunk-K2DSQJEH.js} +6 -6
  23. package/dist/{chunk-7HBTESFT.js → chunk-K7RASYIZ.js} +3 -3
  24. package/dist/{chunk-QRG7UR2F.js → chunk-LLGK3NRY.js} +2 -2
  25. package/dist/{chunk-JR4XD3T7.js → chunk-LMENHZQ6.js} +4 -4
  26. package/dist/{chunk-MTGMOLRO.js → chunk-LMTBX4GZ.js} +2 -2
  27. package/dist/{chunk-D6ZTSN34.js → chunk-LSJ2EPOF.js} +9 -21
  28. package/dist/chunk-LSJ2EPOF.js.map +1 -0
  29. package/dist/{chunk-GMJQ6QMZ.js → chunk-MSHZHT5X.js} +2 -2
  30. package/dist/{chunk-KDUSLLZM.js → chunk-NMFXYX7R.js} +2 -2
  31. package/dist/{chunk-NBMWONHE.js → chunk-OGHEKPLD.js} +11 -2
  32. package/dist/{chunk-NBMWONHE.js.map → chunk-OGHEKPLD.js.map} +1 -1
  33. package/dist/{chunk-2SVIHHNJ.js → chunk-OYFKB64X.js} +9 -7
  34. package/dist/{chunk-2SVIHHNJ.js.map → chunk-OYFKB64X.js.map} +1 -1
  35. package/dist/{chunk-H7CV35LZ.js → chunk-PUGRS4KW.js} +9 -4
  36. package/dist/chunk-PUGRS4KW.js.map +1 -0
  37. package/dist/{chunk-DGLAEH7Y.js → chunk-R3H46BNY.js} +2 -2
  38. package/dist/{chunk-N5W3GATS.js → chunk-TXCJMTLN.js} +10 -10
  39. package/dist/{chunk-CBORIR4Y.js → chunk-WJGTRYWS.js} +2 -2
  40. package/dist/{chunk-W2DYH4WL.js → chunk-XQEWXGJ5.js} +10 -10
  41. package/dist/{chunk-PSXX2GBZ.js → chunk-YFDE4AM3.js} +7 -7
  42. package/dist/{chunk-P422WQJM.js → chunk-YVW743K3.js} +2 -2
  43. package/dist/{chunk-XYWCZNFC.js → chunk-Z37OVF33.js} +2 -2
  44. package/dist/{cli-circuit-breaker-T2IKLJVA.js → cli-circuit-breaker-VUWP2GRN.js} +5 -5
  45. package/dist/cli.js +46 -45
  46. package/dist/cli.js.map +1 -1
  47. package/dist/{composite-router-CCDCVYTY.js → composite-router-4F3ZVLJV.js} +4 -4
  48. package/dist/{consensus-vote-TMMGZROW.js → consensus-vote-ETJ63JRC.js} +20 -20
  49. package/dist/{context-retriever-CKJ7EJME.js → context-retriever-L2LTCKV6.js} +11 -11
  50. package/dist/doctor-deep-HPBHFGBZ.js +13 -0
  51. package/dist/{doctor-live-IAERE7DO.js → doctor-live-NQ35PQ5B.js} +12 -12
  52. package/dist/{expert-bridge-5MK4DOB7.js → expert-bridge-XN5MFZOG.js} +6 -6
  53. package/dist/factory-2TJ44P7L.js +15 -0
  54. package/dist/factory-GVBBWUOE.js +25 -0
  55. package/dist/{improvement-review-DKCVIJSF.js → improvement-review-7VJYOI2F.js} +7 -7
  56. package/dist/index.d.ts +11 -0
  57. package/dist/index.js +34 -34
  58. package/dist/{init-opencode-CM2HL2PI.js → init-opencode-TLVVMG54.js} +8 -8
  59. package/dist/issue-triage-YREC36AC.js +17 -0
  60. package/dist/{learning-persistence-SR5F4DSY.js → learning-persistence-7O5QYDM7.js} +3 -3
  61. package/dist/{pr-reviewer-helpers-I5UIREUR.js → pr-reviewer-helpers-4ERCFSZ7.js} +6 -6
  62. package/dist/{registry-command-BYRGRQ3I.js → registry-command-GN2REQQP.js} +4 -4
  63. package/dist/{repo-security-plan-NP6AT3NR.js → repo-security-plan-VPAXEENC.js} +5 -5
  64. package/dist/research-helpers-synthesize-OZOOIEFW.js +14 -0
  65. package/dist/{routing-memory-IZH3XQQH.js → routing-memory-OF7J3OE4.js} +4 -4
  66. package/dist/{session-memory-OWEWA5BX.js → session-memory-O5M3CLRX.js} +5 -5
  67. package/dist/setup-config-WW5BNLVS.js +11 -0
  68. package/dist/{setup-custom-api-OZ3QCQTJ.js → setup-custom-api-UX4XNOT6.js} +6 -6
  69. package/dist/setup-data-dir-KHLK534F.js +28 -0
  70. package/dist/{tool-memory-LYKMCW7U.js → tool-memory-PIBTMGPH.js} +8 -8
  71. package/dist/{tool-memory-registry-adapters-UMPIJLHS.js → tool-memory-registry-adapters-IMRSOAAV.js} +3 -3
  72. package/dist/unified-registry-MUXCSSG5.js +26 -0
  73. package/dist/{weather-report-4OFVK5Q5.js → weather-report-JOATSJWU.js} +4 -4
  74. package/package.json +1 -1
  75. package/dist/chunk-D6ZTSN34.js.map +0 -1
  76. package/dist/chunk-H7CV35LZ.js.map +0 -1
  77. package/dist/chunk-SBLLJXJO.js.map +0 -1
  78. package/dist/doctor-deep-MIQ5QYUL.js +0 -13
  79. package/dist/factory-6FNJM6P3.js +0 -25
  80. package/dist/factory-OO7MN24L.js +0 -15
  81. package/dist/issue-triage-NH25YRNT.js +0 -17
  82. package/dist/research-helpers-synthesize-2R6TO2SP.js +0 -14
  83. package/dist/setup-config-O7LHHD42.js +0 -11
  84. package/dist/setup-data-dir-XPXP3KIZ.js +0 -28
  85. package/dist/unified-registry-ZSPVJ4BO.js +0 -26
  86. /package/dist/{child-mcp-config-Y3QSDCYI.js.map → child-mcp-config-FEK2HK5L.js.map} +0 -0
  87. /package/dist/{chunk-JV6SMJMJ.js.map → chunk-2FYFHAI4.js.map} +0 -0
  88. /package/dist/{chunk-X7MLVGJV.js.map → chunk-32IMMUXP.js.map} +0 -0
  89. /package/dist/{chunk-ICGYXBS6.js.map → chunk-3SMGCYGN.js.map} +0 -0
  90. /package/dist/{chunk-RQV5ZUXT.js.map → chunk-4OW67KT2.js.map} +0 -0
  91. /package/dist/{chunk-EU7S5CDW.js.map → chunk-ADC7YEU2.js.map} +0 -0
  92. /package/dist/{chunk-TBXAEAKP.js.map → chunk-AWMXPIMK.js.map} +0 -0
  93. /package/dist/{chunk-RMTTKP4L.js.map → chunk-CMZGRDKF.js.map} +0 -0
  94. /package/dist/{chunk-JM42KPWJ.js.map → chunk-EPZCODRK.js.map} +0 -0
  95. /package/dist/{chunk-FVUQY73A.js.map → chunk-EYQUQ2PZ.js.map} +0 -0
  96. /package/dist/{chunk-HHLCAWAV.js.map → chunk-GBHJ37V3.js.map} +0 -0
  97. /package/dist/{chunk-RE2GYZRK.js.map → chunk-GGQOP4VK.js.map} +0 -0
  98. /package/dist/{chunk-MM7BINTV.js.map → chunk-GVLMTQ46.js.map} +0 -0
  99. /package/dist/{chunk-IK6JPHMX.js.map → chunk-HPGPOZG4.js.map} +0 -0
  100. /package/dist/{chunk-V533P6BT.js.map → chunk-IC6WLIGJ.js.map} +0 -0
  101. /package/dist/{chunk-KGFFEQTN.js.map → chunk-JEAKVUWM.js.map} +0 -0
  102. /package/dist/{chunk-TMKBZG3W.js.map → chunk-K2A24T36.js.map} +0 -0
  103. /package/dist/{chunk-6U3LS57H.js.map → chunk-K2DSQJEH.js.map} +0 -0
  104. /package/dist/{chunk-7HBTESFT.js.map → chunk-K7RASYIZ.js.map} +0 -0
  105. /package/dist/{chunk-QRG7UR2F.js.map → chunk-LLGK3NRY.js.map} +0 -0
  106. /package/dist/{chunk-JR4XD3T7.js.map → chunk-LMENHZQ6.js.map} +0 -0
  107. /package/dist/{chunk-MTGMOLRO.js.map → chunk-LMTBX4GZ.js.map} +0 -0
  108. /package/dist/{chunk-GMJQ6QMZ.js.map → chunk-MSHZHT5X.js.map} +0 -0
  109. /package/dist/{chunk-KDUSLLZM.js.map → chunk-NMFXYX7R.js.map} +0 -0
  110. /package/dist/{chunk-DGLAEH7Y.js.map → chunk-R3H46BNY.js.map} +0 -0
  111. /package/dist/{chunk-N5W3GATS.js.map → chunk-TXCJMTLN.js.map} +0 -0
  112. /package/dist/{chunk-CBORIR4Y.js.map → chunk-WJGTRYWS.js.map} +0 -0
  113. /package/dist/{chunk-W2DYH4WL.js.map → chunk-XQEWXGJ5.js.map} +0 -0
  114. /package/dist/{chunk-PSXX2GBZ.js.map → chunk-YFDE4AM3.js.map} +0 -0
  115. /package/dist/{chunk-P422WQJM.js.map → chunk-YVW743K3.js.map} +0 -0
  116. /package/dist/{chunk-XYWCZNFC.js.map → chunk-Z37OVF33.js.map} +0 -0
  117. /package/dist/{cli-circuit-breaker-T2IKLJVA.js.map → cli-circuit-breaker-VUWP2GRN.js.map} +0 -0
  118. /package/dist/{composite-router-CCDCVYTY.js.map → composite-router-4F3ZVLJV.js.map} +0 -0
  119. /package/dist/{consensus-vote-TMMGZROW.js.map → consensus-vote-ETJ63JRC.js.map} +0 -0
  120. /package/dist/{context-retriever-CKJ7EJME.js.map → context-retriever-L2LTCKV6.js.map} +0 -0
  121. /package/dist/{doctor-deep-MIQ5QYUL.js.map → doctor-deep-HPBHFGBZ.js.map} +0 -0
  122. /package/dist/{doctor-live-IAERE7DO.js.map → doctor-live-NQ35PQ5B.js.map} +0 -0
  123. /package/dist/{expert-bridge-5MK4DOB7.js.map → expert-bridge-XN5MFZOG.js.map} +0 -0
  124. /package/dist/{factory-6FNJM6P3.js.map → factory-2TJ44P7L.js.map} +0 -0
  125. /package/dist/{factory-OO7MN24L.js.map → factory-GVBBWUOE.js.map} +0 -0
  126. /package/dist/{improvement-review-DKCVIJSF.js.map → improvement-review-7VJYOI2F.js.map} +0 -0
  127. /package/dist/{init-opencode-CM2HL2PI.js.map → init-opencode-TLVVMG54.js.map} +0 -0
  128. /package/dist/{issue-triage-NH25YRNT.js.map → issue-triage-YREC36AC.js.map} +0 -0
  129. /package/dist/{learning-persistence-SR5F4DSY.js.map → learning-persistence-7O5QYDM7.js.map} +0 -0
  130. /package/dist/{pr-reviewer-helpers-I5UIREUR.js.map → pr-reviewer-helpers-4ERCFSZ7.js.map} +0 -0
  131. /package/dist/{registry-command-BYRGRQ3I.js.map → registry-command-GN2REQQP.js.map} +0 -0
  132. /package/dist/{repo-security-plan-NP6AT3NR.js.map → repo-security-plan-VPAXEENC.js.map} +0 -0
  133. /package/dist/{research-helpers-synthesize-2R6TO2SP.js.map → research-helpers-synthesize-OZOOIEFW.js.map} +0 -0
  134. /package/dist/{routing-memory-IZH3XQQH.js.map → routing-memory-OF7J3OE4.js.map} +0 -0
  135. /package/dist/{session-memory-OWEWA5BX.js.map → session-memory-O5M3CLRX.js.map} +0 -0
  136. /package/dist/{setup-config-O7LHHD42.js.map → setup-config-WW5BNLVS.js.map} +0 -0
  137. /package/dist/{setup-custom-api-OZ3QCQTJ.js.map → setup-custom-api-UX4XNOT6.js.map} +0 -0
  138. /package/dist/{setup-data-dir-XPXP3KIZ.js.map → setup-data-dir-KHLK534F.js.map} +0 -0
  139. /package/dist/{tool-memory-LYKMCW7U.js.map → tool-memory-PIBTMGPH.js.map} +0 -0
  140. /package/dist/{tool-memory-registry-adapters-UMPIJLHS.js.map → tool-memory-registry-adapters-IMRSOAAV.js.map} +0 -0
  141. /package/dist/{unified-registry-ZSPVJ4BO.js.map → unified-registry-MUXCSSG5.js.map} +0 -0
  142. /package/dist/{weather-report-4OFVK5Q5.js.map → weather-report-JOATSJWU.js.map} +0 -0
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  nexusMkdtemp
3
- } from "./chunk-RQV5ZUXT.js";
3
+ } from "./chunk-4OW67KT2.js";
4
4
  import {
5
5
  createLogger
6
- } from "./chunk-2SVIHHNJ.js";
7
- import "./chunk-HHLCAWAV.js";
8
- import "./chunk-NBMWONHE.js";
6
+ } from "./chunk-OYFKB64X.js";
7
+ import "./chunk-GBHJ37V3.js";
8
+ import "./chunk-OGHEKPLD.js";
9
9
  import "./chunk-ZPWHCABL.js";
10
10
 
11
11
  // src/cli-adapters/child-mcp-config.ts
@@ -62,4 +62,4 @@ export {
62
62
  generateMcpConfig,
63
63
  getDefaultAllowedTools
64
64
  };
65
- //# sourceMappingURL=child-mcp-config-Y3QSDCYI.js.map
65
+ //# sourceMappingURL=child-mcp-config-FEK2HK5L.js.map
@@ -2,7 +2,7 @@ import {
2
2
  TASK_CATEGORIES,
3
3
  getAdaptiveBonus,
4
4
  getOutcomeStore
5
- } from "./chunk-2SVIHHNJ.js";
5
+ } from "./chunk-OYFKB64X.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-JV6SMJMJ.js.map
109
+ //# sourceMappingURL=chunk-2FYFHAI4.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateSecurityPlan
3
- } from "./chunk-QRG7UR2F.js";
3
+ } from "./chunk-LLGK3NRY.js";
4
4
  import {
5
5
  analyzeGitHubRepo
6
6
  } from "./chunk-HFOQKCD2.js";
@@ -21,10 +21,10 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-N5W3GATS.js";
24
+ } from "./chunk-TXCJMTLN.js";
25
25
  import {
26
26
  executeExpert
27
- } from "./chunk-PSXX2GBZ.js";
27
+ } from "./chunk-YFDE4AM3.js";
28
28
  import {
29
29
  JobStatusSchema,
30
30
  abortJob,
@@ -46,24 +46,24 @@ import {
46
46
  simulationDeniedResult,
47
47
  toJobSummary,
48
48
  writeJobCancelled
49
- } from "./chunk-W2DYH4WL.js";
49
+ } from "./chunk-XQEWXGJ5.js";
50
50
  import {
51
51
  allOf
52
52
  } from "./chunk-OQB3XC5O.js";
53
53
  import {
54
54
  normalizeTopicToCanonical,
55
55
  synthesizeResearch
56
- } from "./chunk-H7CV35LZ.js";
56
+ } from "./chunk-PUGRS4KW.js";
57
57
  import {
58
58
  IssueTriage
59
- } from "./chunk-6U3LS57H.js";
59
+ } from "./chunk-K2DSQJEH.js";
60
60
  import {
61
61
  resolveEnvMode,
62
62
  sanitizeInput
63
- } from "./chunk-GMJQ6QMZ.js";
63
+ } from "./chunk-MSHZHT5X.js";
64
64
  import {
65
65
  withPrerequisite
66
- } from "./chunk-MM7BINTV.js";
66
+ } from "./chunk-GVLMTQ46.js";
67
67
  import {
68
68
  NOOP_NOTIFIER,
69
69
  RateLimiter,
@@ -87,18 +87,18 @@ import {
87
87
  withAuditTrail,
88
88
  withProgressHeartbeat,
89
89
  wrapToolWithTimeout
90
- } from "./chunk-D6ZTSN34.js";
90
+ } from "./chunk-LSJ2EPOF.js";
91
91
  import {
92
92
  createAuditTrail,
93
93
  createGraphAuditBridge,
94
94
  emitPipelinePolicyEvent
95
- } from "./chunk-X7MLVGJV.js";
95
+ } from "./chunk-32IMMUXP.js";
96
96
  import {
97
97
  EventTopics,
98
98
  createEvent,
99
99
  getGlobalEventBus,
100
100
  getGlobalRegistry
101
- } from "./chunk-V533P6BT.js";
101
+ } from "./chunk-IC6WLIGJ.js";
102
102
  import {
103
103
  IDENTIFIER_RE,
104
104
  LANG_VALUES,
@@ -131,29 +131,29 @@ import {
131
131
  parseRegistry,
132
132
  sourceExistsInRegistry,
133
133
  summarizeContextForPrompt
134
- } from "./chunk-IK6JPHMX.js";
134
+ } from "./chunk-HPGPOZG4.js";
135
135
  import {
136
136
  loadPapersRegistry,
137
137
  loadTechniquesRegistry,
138
138
  resolveInsideRoot
139
- } from "./chunk-P422WQJM.js";
139
+ } from "./chunk-YVW743K3.js";
140
140
  import {
141
141
  getTokenEnvVars,
142
142
  resolveToken
143
- } from "./chunk-XYWCZNFC.js";
143
+ } from "./chunk-Z37OVF33.js";
144
144
  import {
145
145
  DEFAULT_RELEVANCE_CONFIG,
146
146
  MemoryImportance,
147
147
  calculateTextJaccardSimilarity,
148
148
  getToolMemory
149
- } from "./chunk-EU7S5CDW.js";
149
+ } from "./chunk-ADC7YEU2.js";
150
150
  import {
151
151
  STOPWORDS,
152
152
  truncateWithInfo
153
153
  } from "./chunk-6T3EPABN.js";
154
154
  import {
155
155
  createSessionMemory
156
- } from "./chunk-DGLAEH7Y.js";
156
+ } from "./chunk-R3H46BNY.js";
157
157
  import {
158
158
  BUILT_IN_EXPERTS,
159
159
  BuiltInExpertTypeSchema,
@@ -171,25 +171,25 @@ import {
171
171
  getAvailableClis,
172
172
  sleep,
173
173
  withTimeout
174
- } from "./chunk-JM42KPWJ.js";
174
+ } from "./chunk-EPZCODRK.js";
175
175
  import {
176
176
  BaseAdapter,
177
177
  createStream,
178
178
  requireApiKey,
179
179
  validateApiKeyPresence
180
- } from "./chunk-CBORIR4Y.js";
180
+ } from "./chunk-WJGTRYWS.js";
181
181
  import {
182
182
  DEFAULTS
183
- } from "./chunk-TMKBZG3W.js";
183
+ } from "./chunk-K2A24T36.js";
184
184
  import {
185
185
  getAvailabilityCache,
186
186
  getCliForModelId,
187
187
  resolveFallback
188
- } from "./chunk-RMTTKP4L.js";
188
+ } from "./chunk-CMZGRDKF.js";
189
189
  import {
190
190
  generateHyphenId,
191
191
  generateUUID
192
- } from "./chunk-MTGMOLRO.js";
192
+ } from "./chunk-LMTBX4GZ.js";
193
193
  import {
194
194
  AGENT_ROUTER_TIMEOUTS,
195
195
  API_TIMEOUTS,
@@ -293,18 +293,18 @@ import {
293
293
  selectStrategyByManifest,
294
294
  toExpertTaskAnalysisResult,
295
295
  withStep
296
- } from "./chunk-2SVIHHNJ.js";
296
+ } from "./chunk-OYFKB64X.js";
297
297
  import {
298
298
  ensureLearningDir,
299
299
  getMetaOutcomesFile,
300
300
  isPersistenceEnabled
301
- } from "./chunk-HHLCAWAV.js";
301
+ } from "./chunk-GBHJ37V3.js";
302
302
  import {
303
303
  findRepoRoot,
304
304
  getNexusDataDir,
305
305
  nexusDataPath,
306
306
  nexusDataPathEnsure
307
- } from "./chunk-NBMWONHE.js";
307
+ } from "./chunk-OGHEKPLD.js";
308
308
 
309
309
  // src/config/schemas-core.ts
310
310
  import { z } from "zod";
@@ -29544,7 +29544,7 @@ function execIdFields(executionId) {
29544
29544
  async function populateUnifiedContextOnState(state, options) {
29545
29545
  const taskCandidate = state["task"];
29546
29546
  if (typeof taskCandidate !== "string" || taskCandidate === "") return;
29547
- const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-CKJ7EJME.js");
29547
+ const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-L2LTCKV6.js");
29548
29548
  const category = inferTaskCategory2(taskCandidate);
29549
29549
  const executionId = options?.executionId;
29550
29550
  const execFields = execIdFields(executionId);
@@ -40464,7 +40464,13 @@ function recordDiscoveryOutcome(success, durationMs, errorMsg) {
40464
40464
  const store = getOutcomeStore();
40465
40465
  store.append({
40466
40466
  id: `research-discover-${String(getTimeProvider().now())}-${getRandomProvider().random().toString(36).slice(2, 8)}`,
40467
- cli: DEFAULT_CLI,
40467
+ // #5034: NOT `DEFAULT_CLI`. This tool does not know which CLI served the
40468
+ // work — `model` below is a synthetic label — and hardcoding 'claude'
40469
+ // credited or debited claude in the routing learner on every run.
40470
+ // `'unknown'` is the schema's own unattributed value, which the bandit's
40471
+ // warm-start partitions out instead of replaying (#4935). #5020 fixed
40472
+ // two of these four writers; this is the remainder.
40473
+ cli: "unknown",
40468
40474
  category: "research",
40469
40475
  model: "research-discover",
40470
40476
  success,
@@ -41202,7 +41208,13 @@ function recordTriageOutcome(success, durationMs, errorMsg) {
41202
41208
  const store = getOutcomeStore();
41203
41209
  store.append({
41204
41210
  id: `triage-${String(getTimeProvider().now())}-${getRandomProvider().random().toString(36).slice(2, 8)}`,
41205
- cli: DEFAULT_CLI,
41211
+ // #5034: NOT `DEFAULT_CLI`. This tool does not know which CLI served the
41212
+ // work — `model` below is a synthetic label — and hardcoding 'claude'
41213
+ // credited or debited claude in the routing learner on every run.
41214
+ // `'unknown'` is the schema's own unattributed value, which the bandit's
41215
+ // warm-start partitions out instead of replaying (#4935). #5020 fixed
41216
+ // two of these four writers; this is the remainder.
41217
+ cli: "unknown",
41206
41218
  category: "planning",
41207
41219
  model: "issue-triage",
41208
41220
  success,
@@ -41482,7 +41494,13 @@ function recordGraphWorkflowResult(result) {
41482
41494
  const store = getOutcomeStore();
41483
41495
  store.append({
41484
41496
  id: `graph-${String(getTimeProvider().now())}-${getRandomProvider().random().toString(36).slice(2, 8)}`,
41485
- cli: DEFAULT_CLI,
41497
+ // #5020: NOT `DEFAULT_CLI`. This tool does not know which CLI served the
41498
+ // work — the model field below is a synthetic label, not a model id — and
41499
+ // hardcoding 'claude' credited or debited claude for every run, poisoning
41500
+ // the same routing learner #5003 fixed in the feedback bridge.
41501
+ // `'unknown'` is the schema's own unattributed value, and the bandit's
41502
+ // warm-start already partitions it out (#4935) instead of replaying it.
41503
+ cli: "unknown",
41486
41504
  category: workflowToCategory(result.workflow),
41487
41505
  model: "graph-workflow",
41488
41506
  success: succeeded,
@@ -42097,7 +42115,13 @@ function recordSpecOutcome(success, durationMs, stage) {
42097
42115
  const store = getOutcomeStore();
42098
42116
  store.append({
42099
42117
  id: `spec-${String(getTimeProvider().now())}-${getRandomProvider().random().toString(36).slice(2, 8)}`,
42100
- cli: DEFAULT_CLI,
42118
+ // #5020: NOT `DEFAULT_CLI`. This tool does not know which CLI served the
42119
+ // work — the model field below is a synthetic label, not a model id — and
42120
+ // hardcoding 'claude' credited or debited claude for every run, poisoning
42121
+ // the same routing learner #5003 fixed in the feedback bridge.
42122
+ // `'unknown'` is the schema's own unattributed value, and the bandit's
42123
+ // warm-start already partitions it out (#4935) instead of replaying it.
42124
+ cli: "unknown",
42101
42125
  category: "code_generation",
42102
42126
  model: "spec-executor",
42103
42127
  success,
@@ -42123,6 +42147,24 @@ var MemoryQueryInputSchema = z80.object({
42123
42147
  limit: z80.number().int().min(1).max(50).optional().default(10).describe("Maximum results to return (default: 10, max: 50)"),
42124
42148
  source: z80.enum(["session", "belief", "agentic", "typed", "adaptive", "all"]).optional().default("all").describe("Filter by memory source (default: all)")
42125
42149
  });
42150
+ function describeBackendCoverage(memory, source) {
42151
+ const optional = [
42152
+ ["agentic", memory.isAgenticMemoryAvailable()],
42153
+ ["adaptive", memory.isAdaptiveMemoryAvailable()],
42154
+ ["typed", memory.isTypedMemoryAvailable()]
42155
+ ];
42156
+ const inScope = (name) => source === "all" || source === name;
42157
+ const searched = [];
42158
+ const unavailable = [];
42159
+ for (const name of ["session", "belief"]) {
42160
+ if (inScope(name)) searched.push(name);
42161
+ }
42162
+ for (const [name, available] of optional) {
42163
+ if (!inScope(name)) continue;
42164
+ (available ? searched : unavailable).push(name);
42165
+ }
42166
+ return { searched, unavailable };
42167
+ }
42126
42168
  var reflectionCache;
42127
42169
  var reflectionAdapter;
42128
42170
  function getReflectiveRetriever(logger59) {
@@ -42174,12 +42216,15 @@ async function executeMemoryQuery(input, logger59) {
42174
42216
  reflectionSource: reflection?.source,
42175
42217
  reflectionDurationMs: reflection?.durationMs
42176
42218
  });
42219
+ const coverage = describeBackendCoverage(toolMemory, input.source);
42177
42220
  return {
42178
42221
  query: input.query,
42179
42222
  ...expandedQuery !== void 0 ? { expandedQuery } : {},
42180
42223
  results,
42181
42224
  count: results.length,
42182
- source: input.source
42225
+ source: input.source,
42226
+ searched: coverage.searched,
42227
+ unavailable: coverage.unavailable
42183
42228
  };
42184
42229
  }
42185
42230
  async function memoryQueryHandler(args, ctx) {
@@ -42215,7 +42260,14 @@ function registerMemoryQueryTool(server, deps) {
42215
42260
  expandedQuery: z80.string().optional(),
42216
42261
  results: z80.array(z80.unknown()),
42217
42262
  count: z80.number(),
42218
- source: z80.string()
42263
+ source: z80.string(),
42264
+ // #4999: the SDK validates structured content against this schema with
42265
+ // `additionalProperties: false`, so a field added to the response and not
42266
+ // declared here makes EVERY call fail with -32602 rather than merely going
42267
+ // unreported. The integration test caught that; the unit tests could not,
42268
+ // because they call the handler directly and never cross the protocol.
42269
+ searched: z80.array(z80.string()),
42270
+ unavailable: z80.array(z80.string())
42219
42271
  };
42220
42272
  server.registerTool(
42221
42273
  "memory_query",
@@ -45272,7 +45324,7 @@ async function tryIssueTriage(task) {
45272
45324
  try {
45273
45325
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
45274
45326
  if (issueMatch === null) return null;
45275
- const { createIssueTriage } = await import("./issue-triage-NH25YRNT.js");
45327
+ const { createIssueTriage } = await import("./issue-triage-YREC36AC.js");
45276
45328
  const triage = createIssueTriage();
45277
45329
  const owner = issueMatch[1] ?? "";
45278
45330
  const num = issueMatch[2] ?? "";
@@ -45300,7 +45352,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
45300
45352
  ]);
45301
45353
  async function classifyWithLLM(task) {
45302
45354
  try {
45303
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-5MK4DOB7.js");
45355
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-XN5MFZOG.js");
45304
45356
  const prompt = [
45305
45357
  "Classify this task into exactly one pipeline template.",
45306
45358
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -47081,8 +47133,8 @@ var memoryInitPromise = null;
47081
47133
  async function initPipelineMemory() {
47082
47134
  if (cachedMemory !== null) return cachedMemory;
47083
47135
  try {
47084
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-OWEWA5BX.js");
47085
- const { getLearningDir } = await import("./learning-persistence-SR5F4DSY.js");
47136
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-O5M3CLRX.js");
47137
+ const { getLearningDir } = await import("./learning-persistence-7O5QYDM7.js");
47086
47138
  const mem = createSessionMemory2(getLearningDir());
47087
47139
  mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
47088
47140
  cachedMemory = {
@@ -47143,7 +47195,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
47143
47195
  callRecord(routingMemoryCache);
47144
47196
  return;
47145
47197
  }
47146
- routingMemoryInitPromise ??= import("./routing-memory-IZH3XQQH.js").then(({ createRoutingMemory }) => {
47198
+ routingMemoryInitPromise ??= import("./routing-memory-OF7J3OE4.js").then(({ createRoutingMemory }) => {
47147
47199
  routingMemoryCache ??= createRoutingMemory();
47148
47200
  return routingMemoryCache;
47149
47201
  }).catch((error) => {
@@ -47177,7 +47229,7 @@ ${text}` : "";
47177
47229
  }
47178
47230
  async function getWeatherContext() {
47179
47231
  try {
47180
- const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-4OFVK5Q5.js");
47232
+ const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-JOATSJWU.js");
47181
47233
  const report = generateWeatherReport2({ includeAdaptive: true });
47182
47234
  const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
47183
47235
  if (!Array.isArray(mappings) || mappings.length === 0) return "";
@@ -47195,8 +47247,8 @@ ${lines}
47195
47247
  }
47196
47248
  async function getMemoryContext(task) {
47197
47249
  try {
47198
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-OWEWA5BX.js");
47199
- const { getLearningDir } = await import("./learning-persistence-SR5F4DSY.js");
47250
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-O5M3CLRX.js");
47251
+ const { getLearningDir } = await import("./learning-persistence-7O5QYDM7.js");
47200
47252
  const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
47201
47253
  const learnings = memory.searchLearnings(task.slice(0, 200));
47202
47254
  if (learnings.length === 0) return "";
@@ -47314,7 +47366,7 @@ ${contextBlock}`;
47314
47366
  const strategy = config.votingStrategy ?? "higher_order";
47315
47367
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47316
47368
  try {
47317
- const { executeVoting } = await import("./consensus-vote-TMMGZROW.js");
47369
+ const { executeVoting } = await import("./consensus-vote-ETJ63JRC.js");
47318
47370
  const votingResult = await executeVoting(
47319
47371
  {
47320
47372
  proposal: buildVoteProposal(plan, research),
@@ -47753,7 +47805,7 @@ async function searchCodebaseForTask(task) {
47753
47805
  }
47754
47806
  async function queryResearchRegistry(task) {
47755
47807
  try {
47756
- const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-2R6TO2SP.js");
47808
+ const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-OZOOIEFW.js");
47757
47809
  const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
47758
47810
  if (topic === void 0) return null;
47759
47811
  const result = await synthesizeResearch2(topic.slice(0, 50));
@@ -47824,7 +47876,7 @@ function createScanStageWrapper() {
47824
47876
  try {
47825
47877
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
47826
47878
  if (slug !== void 0) {
47827
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-NP6AT3NR.js");
47879
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-VPAXEENC.js");
47828
47880
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
47829
47881
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
47830
47882
  return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
@@ -50949,7 +51001,7 @@ var GitHubTaskTracker = class {
50949
51001
  cachedProvider = null;
50950
51002
  async getProvider() {
50951
51003
  if (this.cachedProvider !== null) return this.cachedProvider;
50952
- const { createScmProvider } = await import("./factory-OO7MN24L.js");
51004
+ const { createScmProvider } = await import("./factory-2TJ44P7L.js");
50953
51005
  const result = await createScmProvider({ repo: this.config.repo ?? "" });
50954
51006
  if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
50955
51007
  this.cachedProvider = result.value;
@@ -51862,7 +51914,7 @@ async function probeSource(source, includeModelIds) {
51862
51914
  }
51863
51915
  }
51864
51916
  async function defaultSources(includeOpenRouter) {
51865
- const { createAllAdapters: createAllAdapters2 } = await import("./factory-6FNJM6P3.js");
51917
+ const { createAllAdapters: createAllAdapters2 } = await import("./factory-GVBBWUOE.js");
51866
51918
  const adapters = createAllAdapters2();
51867
51919
  return buildDefaultModelSources(adapters, { includeOpenRouter });
51868
51920
  }
@@ -55926,4 +55978,4 @@ export {
55926
55978
  shutdownFeedbackSubscriber,
55927
55979
  createEventBusBridge
55928
55980
  };
55929
- //# sourceMappingURL=chunk-LX5HF6N5.js.map
55981
+ //# sourceMappingURL=chunk-2MPJ7UDR.js.map