nexus-agents 2.159.0 → 2.160.2

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-72S4OMRK.js → child-mcp-config-JHX6JCF5.js} +2 -2
  2. package/dist/{chunk-NTVJNSJC.js → chunk-24ALAT2O.js} +2 -2
  3. package/dist/{chunk-7WKSZZAX.js → chunk-2CGJSTYK.js} +2 -2
  4. package/dist/{chunk-SLQJ746K.js → chunk-2QDZ2L2C.js} +2 -2
  5. package/dist/{chunk-CY3QSLDQ.js → chunk-32ZVVATK.js} +3 -3
  6. package/dist/{chunk-ZQMTD74M.js → chunk-3CPGLNSD.js} +58 -41
  7. package/dist/{chunk-ZQMTD74M.js.map → chunk-3CPGLNSD.js.map} +1 -1
  8. package/dist/{chunk-SHKRC6Z7.js → chunk-3QHURPW4.js} +5 -5
  9. package/dist/{chunk-BK2IRU3L.js → chunk-3XMAIPFB.js} +2 -2
  10. package/dist/{chunk-I3ROKMFF.js → chunk-3Y44T42S.js} +4 -4
  11. package/dist/{chunk-XPPDWKZI.js → chunk-4JKJEEMP.js} +7 -7
  12. package/dist/{chunk-MWTAZEHK.js → chunk-4KRO6NTX.js} +2 -2
  13. package/dist/{chunk-I4SDEK6H.js → chunk-4TLU7JJA.js} +7 -7
  14. package/dist/{chunk-6IXIKOLR.js → chunk-6DJ7WISU.js} +6 -6
  15. package/dist/{chunk-6IXIKOLR.js.map → chunk-6DJ7WISU.js.map} +1 -1
  16. package/dist/{chunk-3YGTLWNA.js → chunk-6EUEK2T5.js} +2 -2
  17. package/dist/{chunk-FENIEDNW.js → chunk-7NOWAN4D.js} +106 -6
  18. package/dist/chunk-7NOWAN4D.js.map +1 -0
  19. package/dist/{chunk-YNKEHMKX.js → chunk-AL3PRVJG.js} +3 -3
  20. package/dist/{chunk-DOTCPOLE.js → chunk-AMU753KU.js} +14 -10
  21. package/dist/chunk-AMU753KU.js.map +1 -0
  22. package/dist/{chunk-IYSD4VFM.js → chunk-BKPBAXWH.js} +4 -4
  23. package/dist/{chunk-WTCREQRS.js → chunk-CDJJ3CL2.js} +5 -5
  24. package/dist/{chunk-P7SRGOLU.js → chunk-DDAYKDEB.js} +2 -2
  25. package/dist/{chunk-P3FNNFAW.js → chunk-H2HAB3EW.js} +3 -3
  26. package/dist/{chunk-VCFKTNCM.js → chunk-INQLVBAM.js} +2 -2
  27. package/dist/{chunk-TMBVOQPL.js → chunk-J2SLPVMA.js} +4 -4
  28. package/dist/{chunk-TOJFRIVM.js → chunk-JRQSJ2L7.js} +4 -4
  29. package/dist/{chunk-VCX3QMZE.js → chunk-LB5AD6JX.js} +8 -8
  30. package/dist/{chunk-Y7637JDT.js → chunk-LPFOSO5W.js} +5 -5
  31. package/dist/{chunk-VOTYZUEG.js → chunk-NSPJHKKJ.js} +3 -3
  32. package/dist/{chunk-RZDIYKVH.js → chunk-PRERQSR2.js} +2 -2
  33. package/dist/{chunk-GY4XQU2V.js → chunk-PXIGNQWU.js} +3 -3
  34. package/dist/{chunk-ZHGCHS2D.js → chunk-RHY46PYV.js} +2 -2
  35. package/dist/{chunk-24PRWXLQ.js → chunk-TID366GJ.js} +3 -3
  36. package/dist/{chunk-VQ3ZVDSQ.js → chunk-URIRSUQQ.js} +2 -2
  37. package/dist/{chunk-AS6TNXKV.js → chunk-W75MNLLK.js} +2 -2
  38. package/dist/{chunk-TB7GQCIH.js → chunk-WFGGF6RQ.js} +2 -2
  39. package/dist/{chunk-JEUWM2VZ.js → chunk-WZJK5ZK3.js} +2 -2
  40. package/dist/{cli-circuit-breaker-BWZXZBNW.js → cli-circuit-breaker-3MA2YHO4.js} +4 -4
  41. package/dist/cli.js +41 -41
  42. package/dist/{composite-router-NPSNBLX7.js → composite-router-XNE5Q3YF.js} +2 -2
  43. package/dist/{consensus-vote-ZX6NLTI4.js → consensus-vote-4CU3EY7H.js} +15 -15
  44. package/dist/{context-retriever-3QKHEA5U.js → context-retriever-VOPNSCRI.js} +8 -8
  45. package/dist/{doctor-deep-Y2PQCE6G.js → doctor-deep-LPZ7X4MY.js} +3 -3
  46. package/dist/{expert-bridge-NXG4Z7U7.js → expert-bridge-WDVNKIO3.js} +4 -4
  47. package/dist/{factory-YK2QA3TU.js → factory-3KFIWW2N.js} +5 -5
  48. package/dist/{factory-JJ4N6YPR.js → factory-Q4FUNYFK.js} +8 -8
  49. package/dist/{improvement-review-6LSV4QFA.js → improvement-review-SUVEFV7C.js} +5 -5
  50. package/dist/index.d.ts +79 -0
  51. package/dist/index.js +30 -30
  52. package/dist/index.js.map +1 -1
  53. package/dist/{init-opencode-AO2PEKXB.js → init-opencode-IU3SEIHV.js} +6 -6
  54. package/dist/{issue-triage-ZRRXCDAM.js → issue-triage-PF2WKXHL.js} +6 -6
  55. package/dist/{pr-reviewer-helpers-NEJJKQ7D.js → pr-reviewer-helpers-UR7WCAGK.js} +4 -4
  56. package/dist/{registry-command-DKNGS752.js → registry-command-IHDL7SMW.js} +2 -2
  57. package/dist/{repo-security-plan-DEYYRMTB.js → repo-security-plan-YNCJQ2YC.js} +3 -3
  58. package/dist/{research-helpers-synthesize-54UEJ24R.js → research-helpers-synthesize-FUY4WVHY.js} +4 -4
  59. package/dist/{routing-memory-QFEXYF6G.js → routing-memory-CRRV6C4D.js} +2 -2
  60. package/dist/{session-memory-DYU7XMQO.js → session-memory-JLWKMKZI.js} +3 -3
  61. package/dist/{setup-command-PSYJ4M7Q.js → setup-command-Q23UB7WS.js} +11 -11
  62. package/dist/{setup-config-CBV4OUOE.js → setup-config-DXN6CAOG.js} +3 -3
  63. package/dist/{setup-custom-api-IJWYWAHX.js → setup-custom-api-NKK2CNLH.js} +3 -3
  64. package/dist/{tool-memory-2DI34M5Z.js → tool-memory-JUZW6R3I.js} +5 -5
  65. package/dist/{unified-registry-VQPPIL6M.js → unified-registry-3ROGZFAX.js} +9 -9
  66. package/dist/{weather-report-RETBQ4VD.js → weather-report-5MYASHFK.js} +6 -2
  67. package/package.json +1 -1
  68. package/dist/chunk-DOTCPOLE.js.map +0 -1
  69. package/dist/chunk-FENIEDNW.js.map +0 -1
  70. /package/dist/{child-mcp-config-72S4OMRK.js.map → child-mcp-config-JHX6JCF5.js.map} +0 -0
  71. /package/dist/{chunk-NTVJNSJC.js.map → chunk-24ALAT2O.js.map} +0 -0
  72. /package/dist/{chunk-7WKSZZAX.js.map → chunk-2CGJSTYK.js.map} +0 -0
  73. /package/dist/{chunk-SLQJ746K.js.map → chunk-2QDZ2L2C.js.map} +0 -0
  74. /package/dist/{chunk-CY3QSLDQ.js.map → chunk-32ZVVATK.js.map} +0 -0
  75. /package/dist/{chunk-SHKRC6Z7.js.map → chunk-3QHURPW4.js.map} +0 -0
  76. /package/dist/{chunk-BK2IRU3L.js.map → chunk-3XMAIPFB.js.map} +0 -0
  77. /package/dist/{chunk-I3ROKMFF.js.map → chunk-3Y44T42S.js.map} +0 -0
  78. /package/dist/{chunk-XPPDWKZI.js.map → chunk-4JKJEEMP.js.map} +0 -0
  79. /package/dist/{chunk-MWTAZEHK.js.map → chunk-4KRO6NTX.js.map} +0 -0
  80. /package/dist/{chunk-I4SDEK6H.js.map → chunk-4TLU7JJA.js.map} +0 -0
  81. /package/dist/{chunk-3YGTLWNA.js.map → chunk-6EUEK2T5.js.map} +0 -0
  82. /package/dist/{chunk-YNKEHMKX.js.map → chunk-AL3PRVJG.js.map} +0 -0
  83. /package/dist/{chunk-IYSD4VFM.js.map → chunk-BKPBAXWH.js.map} +0 -0
  84. /package/dist/{chunk-WTCREQRS.js.map → chunk-CDJJ3CL2.js.map} +0 -0
  85. /package/dist/{chunk-P7SRGOLU.js.map → chunk-DDAYKDEB.js.map} +0 -0
  86. /package/dist/{chunk-P3FNNFAW.js.map → chunk-H2HAB3EW.js.map} +0 -0
  87. /package/dist/{chunk-VCFKTNCM.js.map → chunk-INQLVBAM.js.map} +0 -0
  88. /package/dist/{chunk-TMBVOQPL.js.map → chunk-J2SLPVMA.js.map} +0 -0
  89. /package/dist/{chunk-TOJFRIVM.js.map → chunk-JRQSJ2L7.js.map} +0 -0
  90. /package/dist/{chunk-VCX3QMZE.js.map → chunk-LB5AD6JX.js.map} +0 -0
  91. /package/dist/{chunk-Y7637JDT.js.map → chunk-LPFOSO5W.js.map} +0 -0
  92. /package/dist/{chunk-VOTYZUEG.js.map → chunk-NSPJHKKJ.js.map} +0 -0
  93. /package/dist/{chunk-RZDIYKVH.js.map → chunk-PRERQSR2.js.map} +0 -0
  94. /package/dist/{chunk-GY4XQU2V.js.map → chunk-PXIGNQWU.js.map} +0 -0
  95. /package/dist/{chunk-ZHGCHS2D.js.map → chunk-RHY46PYV.js.map} +0 -0
  96. /package/dist/{chunk-24PRWXLQ.js.map → chunk-TID366GJ.js.map} +0 -0
  97. /package/dist/{chunk-VQ3ZVDSQ.js.map → chunk-URIRSUQQ.js.map} +0 -0
  98. /package/dist/{chunk-AS6TNXKV.js.map → chunk-W75MNLLK.js.map} +0 -0
  99. /package/dist/{chunk-TB7GQCIH.js.map → chunk-WFGGF6RQ.js.map} +0 -0
  100. /package/dist/{chunk-JEUWM2VZ.js.map → chunk-WZJK5ZK3.js.map} +0 -0
  101. /package/dist/{cli-circuit-breaker-BWZXZBNW.js.map → cli-circuit-breaker-3MA2YHO4.js.map} +0 -0
  102. /package/dist/{composite-router-NPSNBLX7.js.map → composite-router-XNE5Q3YF.js.map} +0 -0
  103. /package/dist/{consensus-vote-ZX6NLTI4.js.map → consensus-vote-4CU3EY7H.js.map} +0 -0
  104. /package/dist/{context-retriever-3QKHEA5U.js.map → context-retriever-VOPNSCRI.js.map} +0 -0
  105. /package/dist/{doctor-deep-Y2PQCE6G.js.map → doctor-deep-LPZ7X4MY.js.map} +0 -0
  106. /package/dist/{expert-bridge-NXG4Z7U7.js.map → expert-bridge-WDVNKIO3.js.map} +0 -0
  107. /package/dist/{factory-JJ4N6YPR.js.map → factory-3KFIWW2N.js.map} +0 -0
  108. /package/dist/{factory-YK2QA3TU.js.map → factory-Q4FUNYFK.js.map} +0 -0
  109. /package/dist/{improvement-review-6LSV4QFA.js.map → improvement-review-SUVEFV7C.js.map} +0 -0
  110. /package/dist/{init-opencode-AO2PEKXB.js.map → init-opencode-IU3SEIHV.js.map} +0 -0
  111. /package/dist/{issue-triage-ZRRXCDAM.js.map → issue-triage-PF2WKXHL.js.map} +0 -0
  112. /package/dist/{pr-reviewer-helpers-NEJJKQ7D.js.map → pr-reviewer-helpers-UR7WCAGK.js.map} +0 -0
  113. /package/dist/{registry-command-DKNGS752.js.map → registry-command-IHDL7SMW.js.map} +0 -0
  114. /package/dist/{repo-security-plan-DEYYRMTB.js.map → repo-security-plan-YNCJQ2YC.js.map} +0 -0
  115. /package/dist/{research-helpers-synthesize-54UEJ24R.js.map → research-helpers-synthesize-FUY4WVHY.js.map} +0 -0
  116. /package/dist/{routing-memory-QFEXYF6G.js.map → routing-memory-CRRV6C4D.js.map} +0 -0
  117. /package/dist/{session-memory-DYU7XMQO.js.map → session-memory-JLWKMKZI.js.map} +0 -0
  118. /package/dist/{setup-command-PSYJ4M7Q.js.map → setup-command-Q23UB7WS.js.map} +0 -0
  119. /package/dist/{setup-config-CBV4OUOE.js.map → setup-config-DXN6CAOG.js.map} +0 -0
  120. /package/dist/{setup-custom-api-IJWYWAHX.js.map → setup-custom-api-NKK2CNLH.js.map} +0 -0
  121. /package/dist/{tool-memory-2DI34M5Z.js.map → tool-memory-JUZW6R3I.js.map} +0 -0
  122. /package/dist/{unified-registry-VQPPIL6M.js.map → unified-registry-3ROGZFAX.js.map} +0 -0
  123. /package/dist/{weather-report-RETBQ4VD.js.map → weather-report-5MYASHFK.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createLogger
3
- } from "./chunk-FENIEDNW.js";
3
+ } from "./chunk-7NOWAN4D.js";
4
4
  import "./chunk-NL7SZQPW.js";
5
5
  import "./chunk-DHVMSIT5.js";
6
6
  import "./chunk-ZPWHCABL.js";
@@ -60,4 +60,4 @@ export {
60
60
  generateMcpConfig,
61
61
  getDefaultAllowedTools
62
62
  };
63
- //# sourceMappingURL=child-mcp-config-72S4OMRK.js.map
63
+ //# sourceMappingURL=child-mcp-config-JHX6JCF5.js.map
@@ -2,7 +2,7 @@ import {
2
2
  CACHE_TIMEOUTS,
3
3
  createLogger,
4
4
  getTimeProvider
5
- } from "./chunk-FENIEDNW.js";
5
+ } from "./chunk-7NOWAN4D.js";
6
6
 
7
7
  // src/security/trust-types.ts
8
8
  import { z } from "zod";
@@ -560,4 +560,4 @@ export {
560
560
  resolveReputationGatingMode,
561
561
  gateWithReputation
562
562
  };
563
- //# sourceMappingURL=chunk-NTVJNSJC.js.map
563
+ //# sourceMappingURL=chunk-24ALAT2O.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getErrorMessage
3
- } from "./chunk-FENIEDNW.js";
3
+ } from "./chunk-7NOWAN4D.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-7WKSZZAX.js.map
80
+ //# sourceMappingURL=chunk-2CGJSTYK.js.map
@@ -2,7 +2,7 @@ import {
2
2
  TASK_CATEGORIES,
3
3
  getAdaptiveBonus,
4
4
  getOutcomeStore
5
- } from "./chunk-FENIEDNW.js";
5
+ } from "./chunk-7NOWAN4D.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-SLQJ746K.js.map
109
+ //# sourceMappingURL=chunk-2QDZ2L2C.js.map
@@ -2,14 +2,14 @@ import {
2
2
  CircuitBreakerRegistry,
3
3
  CircuitError,
4
4
  mapCliErrorToCategory
5
- } from "./chunk-JEUWM2VZ.js";
5
+ } from "./chunk-WZJK5ZK3.js";
6
6
  import {
7
7
  createLogger,
8
8
  err,
9
9
  getFallbackChainForCategory,
10
10
  getTimeProvider,
11
11
  ok
12
- } from "./chunk-FENIEDNW.js";
12
+ } from "./chunk-7NOWAN4D.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-CY3QSLDQ.js.map
155
+ //# sourceMappingURL=chunk-32ZVVATK.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateSecurityPlan
3
- } from "./chunk-ZHGCHS2D.js";
3
+ } from "./chunk-RHY46PYV.js";
4
4
  import {
5
5
  analyzeGitHubRepo
6
6
  } from "./chunk-HFOQKCD2.js";
@@ -18,10 +18,10 @@ import {
18
18
  DEFAULT_TASK_TTL_MS,
19
19
  DEFAULT_TOOL_RATE_LIMITS,
20
20
  clampTaskTtl
21
- } from "./chunk-DOTCPOLE.js";
21
+ } from "./chunk-AMU753KU.js";
22
22
  import {
23
23
  executeExpert
24
- } from "./chunk-I4SDEK6H.js";
24
+ } from "./chunk-4TLU7JJA.js";
25
25
  import {
26
26
  JobStatusSchema,
27
27
  abortJob,
@@ -42,21 +42,21 @@ import {
42
42
  simulationDeniedResult,
43
43
  toJobSummary,
44
44
  writeJobCancelled
45
- } from "./chunk-VCX3QMZE.js";
45
+ } from "./chunk-LB5AD6JX.js";
46
46
  import {
47
47
  normalizeTopicToCanonical,
48
48
  synthesizeResearch
49
- } from "./chunk-24PRWXLQ.js";
49
+ } from "./chunk-TID366GJ.js";
50
50
  import {
51
51
  IssueTriage
52
- } from "./chunk-SHKRC6Z7.js";
52
+ } from "./chunk-3QHURPW4.js";
53
53
  import {
54
54
  resolveEnvMode,
55
55
  sanitizeInput
56
- } from "./chunk-NTVJNSJC.js";
56
+ } from "./chunk-24ALAT2O.js";
57
57
  import {
58
58
  withPrerequisite
59
- } from "./chunk-GY4XQU2V.js";
59
+ } from "./chunk-PXIGNQWU.js";
60
60
  import {
61
61
  NOOP_NOTIFIER,
62
62
  RateLimiter,
@@ -79,12 +79,12 @@ import {
79
79
  withAuditTrail,
80
80
  withProgressHeartbeat,
81
81
  wrapToolWithTimeout
82
- } from "./chunk-VOTYZUEG.js";
82
+ } from "./chunk-NSPJHKKJ.js";
83
83
  import {
84
84
  createAuditTrail,
85
85
  createGraphAuditBridge,
86
86
  emitPipelinePolicyEvent
87
- } from "./chunk-RZDIYKVH.js";
87
+ } from "./chunk-PRERQSR2.js";
88
88
  import {
89
89
  addResearchPaper,
90
90
  addSourceToRegistry,
@@ -112,15 +112,15 @@ import {
112
112
  parseRegistry,
113
113
  sourceExistsInRegistry,
114
114
  summarizeContextForPrompt
115
- } from "./chunk-Y7637JDT.js";
115
+ } from "./chunk-LPFOSO5W.js";
116
116
  import {
117
117
  getTokenEnvVars,
118
118
  resolveToken
119
- } from "./chunk-AS6TNXKV.js";
119
+ } from "./chunk-W75MNLLK.js";
120
120
  import {
121
121
  loadPapersRegistry,
122
122
  loadTechniquesRegistry
123
- } from "./chunk-3YGTLWNA.js";
123
+ } from "./chunk-6EUEK2T5.js";
124
124
  import {
125
125
  resolveInsideRoot
126
126
  } from "./chunk-NUBSJGQZ.js";
@@ -129,14 +129,14 @@ import {
129
129
  MemoryImportance,
130
130
  calculateTextJaccardSimilarity,
131
131
  getToolMemory
132
- } from "./chunk-TOJFRIVM.js";
132
+ } from "./chunk-JRQSJ2L7.js";
133
133
  import {
134
134
  STOPWORDS,
135
135
  truncateWithInfo
136
136
  } from "./chunk-6T3EPABN.js";
137
137
  import {
138
138
  createSessionMemory
139
- } from "./chunk-P7SRGOLU.js";
139
+ } from "./chunk-DDAYKDEB.js";
140
140
  import {
141
141
  BUILT_IN_EXPERTS,
142
142
  BuiltInExpertTypeSchema,
@@ -151,7 +151,7 @@ import {
151
151
  createEvent,
152
152
  getGlobalEventBus,
153
153
  getGlobalRegistry
154
- } from "./chunk-TMBVOQPL.js";
154
+ } from "./chunk-J2SLPVMA.js";
155
155
  import {
156
156
  CliDetectionCache,
157
157
  asRecord,
@@ -159,19 +159,19 @@ import {
159
159
  getAvailableClis,
160
160
  sleep,
161
161
  withTimeout
162
- } from "./chunk-XPPDWKZI.js";
162
+ } from "./chunk-4JKJEEMP.js";
163
163
  import {
164
164
  DEFAULTS
165
- } from "./chunk-6IXIKOLR.js";
165
+ } from "./chunk-6DJ7WISU.js";
166
166
  import {
167
167
  getAvailabilityCache,
168
168
  getCliForModelId,
169
169
  resolveFallback
170
- } from "./chunk-BK2IRU3L.js";
170
+ } from "./chunk-3XMAIPFB.js";
171
171
  import {
172
172
  generateHyphenId,
173
173
  generateUUID
174
- } from "./chunk-VCFKTNCM.js";
174
+ } from "./chunk-INQLVBAM.js";
175
175
  import {
176
176
  AGENT_ROUTER_TIMEOUTS,
177
177
  API_TIMEOUTS,
@@ -263,7 +263,7 @@ import {
263
263
  selectStrategyByManifest,
264
264
  toExpertTaskAnalysisResult,
265
265
  withStep
266
- } from "./chunk-FENIEDNW.js";
266
+ } from "./chunk-7NOWAN4D.js";
267
267
  import {
268
268
  ensureLearningDir,
269
269
  getMetaOutcomesFile,
@@ -26298,7 +26298,7 @@ function execIdFields(executionId) {
26298
26298
  async function populateUnifiedContextOnState(state, options) {
26299
26299
  const taskCandidate = state["task"];
26300
26300
  if (typeof taskCandidate !== "string" || taskCandidate === "") return;
26301
- const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-3QKHEA5U.js");
26301
+ const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-VOPNSCRI.js");
26302
26302
  const category = inferTaskCategory2(taskCandidate);
26303
26303
  const executionId = options?.executionId;
26304
26304
  const execFields = execIdFields(executionId);
@@ -27681,7 +27681,8 @@ function emitStageFailed(options) {
27681
27681
  timestamp: Date.now(),
27682
27682
  executionId: options.executionId,
27683
27683
  stageId: options.stageId,
27684
- error: options.error
27684
+ error: options.error,
27685
+ ...options.model !== void 0 && { model: options.model }
27685
27686
  });
27686
27687
  }
27687
27688
  function emitModelCalled(options) {
@@ -27711,10 +27712,14 @@ function emitPipelineStageEvent(prefix, stage, status, details) {
27711
27712
  durationMs: details?.["durationMs"] || 0
27712
27713
  });
27713
27714
  } else {
27715
+ const model = details?.["model"];
27714
27716
  emitStageFailed({
27715
27717
  executionId,
27716
27718
  stageId: stage,
27717
- error: details?.["error"] || "Unknown"
27719
+ error: details?.["error"] || "Unknown",
27720
+ // Real model attribution when the caller knows it (#4194) — string only,
27721
+ // so junk detail values never masquerade as a model id.
27722
+ ...typeof model === "string" && model.length > 0 ? { model } : {}
27718
27723
  });
27719
27724
  }
27720
27725
  }
@@ -39217,7 +39222,10 @@ function weatherReportHandler(args, ctx) {
39217
39222
  const opts = {
39218
39223
  ...cli !== void 0 && { cli },
39219
39224
  ...category !== void 0 && { category },
39220
- includeAdaptive
39225
+ includeAdaptive,
39226
+ // The MCP tool always opts into the per-model lens (#4194/#4202);
39227
+ // the routing-bonus path stays lens-free.
39228
+ includeModelWeather: true
39221
39229
  };
39222
39230
  const report = generateWeatherReport(opts);
39223
39231
  const serialized = serializeReport(report);
@@ -41572,7 +41580,7 @@ async function tryIssueTriage(task) {
41572
41580
  try {
41573
41581
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
41574
41582
  if (issueMatch === null) return null;
41575
- const { createIssueTriage } = await import("./issue-triage-ZRRXCDAM.js");
41583
+ const { createIssueTriage } = await import("./issue-triage-PF2WKXHL.js");
41576
41584
  const triage = createIssueTriage();
41577
41585
  const owner = issueMatch[1] ?? "";
41578
41586
  const num = issueMatch[2] ?? "";
@@ -41600,7 +41608,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
41600
41608
  ]);
41601
41609
  async function classifyWithLLM(task) {
41602
41610
  try {
41603
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-NXG4Z7U7.js");
41611
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-WDVNKIO3.js");
41604
41612
  const prompt = [
41605
41613
  "Classify this task into exactly one pipeline template.",
41606
41614
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -43241,7 +43249,7 @@ var memoryInitPromise = null;
43241
43249
  async function initPipelineMemory() {
43242
43250
  if (cachedMemory !== null) return cachedMemory;
43243
43251
  try {
43244
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-DYU7XMQO.js");
43252
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-JLWKMKZI.js");
43245
43253
  const { getLearningDir } = await import("./learning-persistence-M3OTCCNI.js");
43246
43254
  const mem = createSessionMemory2(getLearningDir());
43247
43255
  mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
@@ -43303,7 +43311,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
43303
43311
  callRecord(routingMemoryCache);
43304
43312
  return;
43305
43313
  }
43306
- routingMemoryInitPromise ??= import("./routing-memory-QFEXYF6G.js").then(({ createRoutingMemory }) => {
43314
+ routingMemoryInitPromise ??= import("./routing-memory-CRRV6C4D.js").then(({ createRoutingMemory }) => {
43307
43315
  routingMemoryCache ??= createRoutingMemory();
43308
43316
  return routingMemoryCache;
43309
43317
  }).catch((error) => {
@@ -43337,7 +43345,7 @@ ${text}` : "";
43337
43345
  }
43338
43346
  async function getWeatherContext() {
43339
43347
  try {
43340
- const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-RETBQ4VD.js");
43348
+ const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-5MYASHFK.js");
43341
43349
  const report = generateWeatherReport2({ includeAdaptive: true });
43342
43350
  const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
43343
43351
  if (!Array.isArray(mappings) || mappings.length === 0) return "";
@@ -43355,7 +43363,7 @@ ${lines}
43355
43363
  }
43356
43364
  async function getMemoryContext(task) {
43357
43365
  try {
43358
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-DYU7XMQO.js");
43366
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-JLWKMKZI.js");
43359
43367
  const { getLearningDir } = await import("./learning-persistence-M3OTCCNI.js");
43360
43368
  const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
43361
43369
  const learnings = memory.searchLearnings(task.slice(0, 200));
@@ -43450,7 +43458,10 @@ ${task}
43450
43458
  ${contextBlock}`;
43451
43459
  await postProgress(config, "Plan", feedback !== void 0 ? "Revising..." : "Planning...");
43452
43460
  const r = await runExpert(guard, "architecture", prompt, "plan");
43453
- emitStageEvent2("plan", r.success ? "completed" : "failed", { durationMs: r.durationMs });
43461
+ emitStageEvent2("plan", r.success ? "completed" : "failed", {
43462
+ durationMs: r.durationMs,
43463
+ model: r.model
43464
+ });
43454
43465
  recordOutcome({
43455
43466
  taskId: "plan",
43456
43467
  category: "architecture",
@@ -43467,7 +43478,7 @@ ${contextBlock}`;
43467
43478
  const strategy = config.votingStrategy ?? "higher_order";
43468
43479
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
43469
43480
  try {
43470
- const { executeVoting } = await import("./consensus-vote-ZX6NLTI4.js");
43481
+ const { executeVoting } = await import("./consensus-vote-4CU3EY7H.js");
43471
43482
  const votingResult = await executeVoting(
43472
43483
  {
43473
43484
  proposal: buildVoteProposal(plan, research),
@@ -43555,7 +43566,9 @@ ${task.description}${fb}`,
43555
43566
  task.id
43556
43567
  );
43557
43568
  emitStageEvent2(`impl-${task.id}`, r.success ? "completed" : "failed", {
43558
- durationMs: r.durationMs
43569
+ durationMs: r.durationMs,
43570
+ // model: real per-model failure attribution for the feedback bridge (#4194)
43571
+ model: r.model
43559
43572
  });
43560
43573
  recordOutcome({
43561
43574
  taskId: task.id,
@@ -43592,7 +43605,9 @@ Verdict: PASS/NEEDS_WORK/REJECT`,
43592
43605
  );
43593
43606
  const review = parseQaFromResponse(r.text);
43594
43607
  emitStageEvent2(`qa-${task.id}`, review.verdict === "pass" ? "completed" : "failed", {
43595
- durationMs: r.durationMs
43608
+ durationMs: r.durationMs,
43609
+ // model: real per-model failure attribution for the feedback bridge (#4194)
43610
+ model: r.model
43596
43611
  });
43597
43612
  recordOutcome({
43598
43613
  taskId: task.id,
@@ -43904,7 +43919,7 @@ async function searchCodebaseForTask(task) {
43904
43919
  }
43905
43920
  async function queryResearchRegistry(task) {
43906
43921
  try {
43907
- const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-54UEJ24R.js");
43922
+ const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-FUY4WVHY.js");
43908
43923
  const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
43909
43924
  if (topic === void 0) return null;
43910
43925
  const result = await synthesizeResearch2(topic.slice(0, 50));
@@ -43975,7 +43990,7 @@ function createScanStageWrapper() {
43975
43990
  try {
43976
43991
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
43977
43992
  if (slug !== void 0) {
43978
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-DEYYRMTB.js");
43993
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-YNCJQ2YC.js");
43979
43994
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
43980
43995
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
43981
43996
  return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
@@ -46935,7 +46950,7 @@ var GitHubTaskTracker = class {
46935
46950
  cachedProvider = null;
46936
46951
  async getProvider() {
46937
46952
  if (this.cachedProvider !== null) return this.cachedProvider;
46938
- const { createScmProvider } = await import("./factory-YK2QA3TU.js");
46953
+ const { createScmProvider } = await import("./factory-3KFIWW2N.js");
46939
46954
  const result = await createScmProvider({ repo: this.config.repo ?? "" });
46940
46955
  if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
46941
46956
  this.cachedProvider = result.value;
@@ -47742,7 +47757,7 @@ async function probeSource(source, includeModelIds) {
47742
47757
  }
47743
47758
  }
47744
47759
  async function defaultSources(includeOpenRouter) {
47745
- const { createAllAdapters: createAllAdapters2 } = await import("./factory-JJ4N6YPR.js");
47760
+ const { createAllAdapters: createAllAdapters2 } = await import("./factory-Q4FUNYFK.js");
47746
47761
  const adapters = createAllAdapters2();
47747
47762
  return buildDefaultModelSources(adapters, { includeOpenRouter });
47748
47763
  }
@@ -51113,7 +51128,9 @@ function recordStageFailed(event, store) {
51113
51128
  cli: DEFAULT_CLI,
51114
51129
  // Stage failures don't carry CLI info; default to canonical fallback
51115
51130
  category: "code_generation",
51116
- model: "unknown",
51131
+ // Real model id when the emitter attributed one (#4194); 'unknown' is
51132
+ // reserved for stages that genuinely have no single model — never a guess.
51133
+ model: event.model ?? "unknown",
51117
51134
  success: false,
51118
51135
  durationMs: 0,
51119
51136
  timestamp: new Date(event.timestamp).toISOString(),
@@ -51809,4 +51826,4 @@ export {
51809
51826
  shutdownFeedbackSubscriber,
51810
51827
  createEventBusBridge
51811
51828
  };
51812
- //# sourceMappingURL=chunk-ZQMTD74M.js.map
51829
+ //# sourceMappingURL=chunk-3CPGLNSD.js.map