nexus-agents 2.174.2 → 2.175.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 (143) hide show
  1. package/dist/{child-mcp-config-GWB7JLIS.js → child-mcp-config-XD4ODQJW.js} +9 -7
  2. package/dist/child-mcp-config-XD4ODQJW.js.map +1 -0
  3. package/dist/{chunk-AXTD4TFK.js → chunk-2HUC6NZN.js} +2 -2
  4. package/dist/{chunk-DGR27REV.js → chunk-4OZPWLKY.js} +2 -2
  5. package/dist/{chunk-RAIFOYRM.js → chunk-5Y4RWZ3M.js} +2 -2
  6. package/dist/{chunk-VSETLO4Q.js → chunk-67CGSBQW.js} +2 -2
  7. package/dist/{chunk-JSIX5L3C.js → chunk-67ZQSIGP.js} +2 -2
  8. package/dist/{chunk-DJZGCMNU.js → chunk-AHJYZNQU.js} +2 -2
  9. package/dist/{chunk-SGIWJYLJ.js → chunk-C7TM6GM7.js} +2 -2
  10. package/dist/{chunk-H5KLPUAL.js → chunk-CFZGSZEX.js} +3 -3
  11. package/dist/{chunk-JVBI4WKP.js → chunk-CXF5KR7V.js} +5 -5
  12. package/dist/{chunk-UB6APBIY.js → chunk-D7S4ZZS6.js} +2 -2
  13. package/dist/{chunk-5QVJCBM4.js → chunk-DALN2VV4.js} +4 -4
  14. package/dist/{chunk-PINS44XA.js → chunk-DVKS77O5.js} +2 -2
  15. package/dist/{chunk-3P7SMHBU.js → chunk-EY6CGIGS.js} +3 -3
  16. package/dist/{chunk-HUYP2XXH.js → chunk-FFVDD6MS.js} +2 -2
  17. package/dist/{chunk-IVINLVGP.js → chunk-FSVJJBIK.js} +2 -2
  18. package/dist/{chunk-Z77MIV3C.js → chunk-G4HDWPDT.js} +2 -2
  19. package/dist/{chunk-KU2HPCJG.js → chunk-GL4WGBKE.js} +4 -4
  20. package/dist/{chunk-MRRKFMYJ.js → chunk-HULJ7IYD.js} +4 -4
  21. package/dist/{chunk-OGR5Q6QO.js → chunk-IZS3BWQB.js} +7 -7
  22. package/dist/{chunk-YUCJ7VSJ.js → chunk-JIJA2RY5.js} +13 -10
  23. package/dist/chunk-JIJA2RY5.js.map +1 -0
  24. package/dist/{chunk-EDWON3X5.js → chunk-JXJAHGX2.js} +6 -6
  25. package/dist/{chunk-E35RUETV.js → chunk-KNIHV2UA.js} +2 -2
  26. package/dist/{chunk-OM2VVQKB.js → chunk-LZ2ATWVV.js} +2 -2
  27. package/dist/{chunk-OCTNNEXT.js → chunk-MTVSYN4U.js} +10 -10
  28. package/dist/{chunk-4PTAG65V.js → chunk-OM2NE5EZ.js} +2 -2
  29. package/dist/{chunk-DHVMSIT5.js → chunk-OQLFRJCW.js} +9 -1
  30. package/dist/chunk-OQLFRJCW.js.map +1 -0
  31. package/dist/{chunk-KWKGX7LC.js → chunk-PBWM7MFA.js} +5 -5
  32. package/dist/{chunk-KYF4YAZO.js → chunk-QCWBPQF2.js} +4 -4
  33. package/dist/{chunk-K6NXLBHG.js → chunk-QDPGKVHH.js} +13 -11
  34. package/dist/{chunk-K6NXLBHG.js.map → chunk-QDPGKVHH.js.map} +1 -1
  35. package/dist/{chunk-2CB6QMRX.js → chunk-QDYZCME4.js} +39 -39
  36. package/dist/{chunk-KAL22DYO.js → chunk-QJ2Z6SMD.js} +2 -2
  37. package/dist/{chunk-PN43VH6Z.js → chunk-QY5CJKNS.js} +7 -7
  38. package/dist/{chunk-6RRAQFSX.js → chunk-TYLCYSUQ.js} +2 -2
  39. package/dist/chunk-YAF73ZMR.js +38 -0
  40. package/dist/chunk-YAF73ZMR.js.map +1 -0
  41. package/dist/{chunk-Y5JA7XEO.js → chunk-YAJ4XUD2.js} +11 -11
  42. package/dist/chunk-YAJ4XUD2.js.map +1 -0
  43. package/dist/{chunk-YE2XMU3T.js → chunk-Z4BSY2MW.js} +3 -3
  44. package/dist/{chunk-ASJTVA7W.js → chunk-ZUOQBQN7.js} +6 -6
  45. package/dist/{cli-circuit-breaker-EINPV2CX.js → cli-circuit-breaker-UVYGXMC3.js} +5 -5
  46. package/dist/cli.js +58 -48
  47. package/dist/cli.js.map +1 -1
  48. package/dist/{composite-router-CUJAG7O4.js → composite-router-RMZL4257.js} +4 -4
  49. package/dist/{consensus-vote-BLCQCWPV.js → consensus-vote-REULZA53.js} +20 -19
  50. package/dist/{context-retriever-MTJR3AQM.js → context-retriever-RZZWVBOR.js} +11 -11
  51. package/dist/doctor-deep-HV4TJTJV.js +13 -0
  52. package/dist/{expert-bridge-2W2JMFQW.js → expert-bridge-ET6VC2JL.js} +6 -6
  53. package/dist/factory-2VRY5UT7.js +15 -0
  54. package/dist/factory-KQML5DIT.js +25 -0
  55. package/dist/{improvement-review-ZMUJQSX3.js → improvement-review-33RKE6ZV.js} +7 -7
  56. package/dist/index.js +34 -33
  57. package/dist/index.js.map +1 -1
  58. package/dist/{init-opencode-I5XSFY34.js → init-opencode-H4KHTVI6.js} +8 -8
  59. package/dist/issue-triage-3WQXLNRD.js +18 -0
  60. package/dist/{learning-persistence-6D5GGT7D.js → learning-persistence-EGY4VKKO.js} +3 -3
  61. package/dist/{pr-reviewer-helpers-CZDMP5UJ.js → pr-reviewer-helpers-NMOXAE4O.js} +6 -6
  62. package/dist/{registry-command-5J6RJZMS.js → registry-command-ZV7WMEYO.js} +4 -4
  63. package/dist/{repo-security-plan-MKSCD567.js → repo-security-plan-U6SMBTSU.js} +5 -5
  64. package/dist/research-helpers-synthesize-IUIZIZTV.js +15 -0
  65. package/dist/{routing-memory-HAWL7RKO.js → routing-memory-7EFOXSIE.js} +4 -4
  66. package/dist/{session-memory-RPSM7Y4Q.js → session-memory-IFVVJ2YP.js} +5 -5
  67. package/dist/setup-command-K2VBZISN.js +43 -0
  68. package/dist/setup-config-GA2YVE4R.js +11 -0
  69. package/dist/{setup-custom-api-BZSHB2M5.js → setup-custom-api-E7V4XEKX.js} +6 -6
  70. package/dist/{tool-memory-FCEJMKEH.js → tool-memory-ZJ5WR3DL.js} +8 -8
  71. package/dist/{tool-memory-registry-adapters-PMMKJQF5.js → tool-memory-registry-adapters-YQLOSV4S.js} +3 -3
  72. package/dist/unified-registry-56JY5W3B.js +28 -0
  73. package/dist/{weather-report-VNABZRH7.js → weather-report-MMOOGRWG.js} +4 -4
  74. package/package.json +1 -1
  75. package/dist/child-mcp-config-GWB7JLIS.js.map +0 -1
  76. package/dist/chunk-DHVMSIT5.js.map +0 -1
  77. package/dist/chunk-Y5JA7XEO.js.map +0 -1
  78. package/dist/chunk-YUCJ7VSJ.js.map +0 -1
  79. package/dist/doctor-deep-X2KP2G4M.js +0 -13
  80. package/dist/factory-7UFJ6LXW.js +0 -24
  81. package/dist/factory-SC5D5P3C.js +0 -15
  82. package/dist/issue-triage-KOIPTNDH.js +0 -18
  83. package/dist/research-helpers-synthesize-TIT43XF4.js +0 -15
  84. package/dist/setup-command-SORJLYU3.js +0 -42
  85. package/dist/setup-config-YDA4MY4N.js +0 -11
  86. package/dist/unified-registry-JWPD2ES2.js +0 -27
  87. /package/dist/{chunk-AXTD4TFK.js.map → chunk-2HUC6NZN.js.map} +0 -0
  88. /package/dist/{chunk-DGR27REV.js.map → chunk-4OZPWLKY.js.map} +0 -0
  89. /package/dist/{chunk-RAIFOYRM.js.map → chunk-5Y4RWZ3M.js.map} +0 -0
  90. /package/dist/{chunk-VSETLO4Q.js.map → chunk-67CGSBQW.js.map} +0 -0
  91. /package/dist/{chunk-JSIX5L3C.js.map → chunk-67ZQSIGP.js.map} +0 -0
  92. /package/dist/{chunk-DJZGCMNU.js.map → chunk-AHJYZNQU.js.map} +0 -0
  93. /package/dist/{chunk-SGIWJYLJ.js.map → chunk-C7TM6GM7.js.map} +0 -0
  94. /package/dist/{chunk-H5KLPUAL.js.map → chunk-CFZGSZEX.js.map} +0 -0
  95. /package/dist/{chunk-JVBI4WKP.js.map → chunk-CXF5KR7V.js.map} +0 -0
  96. /package/dist/{chunk-UB6APBIY.js.map → chunk-D7S4ZZS6.js.map} +0 -0
  97. /package/dist/{chunk-5QVJCBM4.js.map → chunk-DALN2VV4.js.map} +0 -0
  98. /package/dist/{chunk-PINS44XA.js.map → chunk-DVKS77O5.js.map} +0 -0
  99. /package/dist/{chunk-3P7SMHBU.js.map → chunk-EY6CGIGS.js.map} +0 -0
  100. /package/dist/{chunk-HUYP2XXH.js.map → chunk-FFVDD6MS.js.map} +0 -0
  101. /package/dist/{chunk-IVINLVGP.js.map → chunk-FSVJJBIK.js.map} +0 -0
  102. /package/dist/{chunk-Z77MIV3C.js.map → chunk-G4HDWPDT.js.map} +0 -0
  103. /package/dist/{chunk-KU2HPCJG.js.map → chunk-GL4WGBKE.js.map} +0 -0
  104. /package/dist/{chunk-MRRKFMYJ.js.map → chunk-HULJ7IYD.js.map} +0 -0
  105. /package/dist/{chunk-OGR5Q6QO.js.map → chunk-IZS3BWQB.js.map} +0 -0
  106. /package/dist/{chunk-EDWON3X5.js.map → chunk-JXJAHGX2.js.map} +0 -0
  107. /package/dist/{chunk-E35RUETV.js.map → chunk-KNIHV2UA.js.map} +0 -0
  108. /package/dist/{chunk-OM2VVQKB.js.map → chunk-LZ2ATWVV.js.map} +0 -0
  109. /package/dist/{chunk-OCTNNEXT.js.map → chunk-MTVSYN4U.js.map} +0 -0
  110. /package/dist/{chunk-4PTAG65V.js.map → chunk-OM2NE5EZ.js.map} +0 -0
  111. /package/dist/{chunk-KWKGX7LC.js.map → chunk-PBWM7MFA.js.map} +0 -0
  112. /package/dist/{chunk-KYF4YAZO.js.map → chunk-QCWBPQF2.js.map} +0 -0
  113. /package/dist/{chunk-2CB6QMRX.js.map → chunk-QDYZCME4.js.map} +0 -0
  114. /package/dist/{chunk-KAL22DYO.js.map → chunk-QJ2Z6SMD.js.map} +0 -0
  115. /package/dist/{chunk-PN43VH6Z.js.map → chunk-QY5CJKNS.js.map} +0 -0
  116. /package/dist/{chunk-6RRAQFSX.js.map → chunk-TYLCYSUQ.js.map} +0 -0
  117. /package/dist/{chunk-YE2XMU3T.js.map → chunk-Z4BSY2MW.js.map} +0 -0
  118. /package/dist/{chunk-ASJTVA7W.js.map → chunk-ZUOQBQN7.js.map} +0 -0
  119. /package/dist/{cli-circuit-breaker-EINPV2CX.js.map → cli-circuit-breaker-UVYGXMC3.js.map} +0 -0
  120. /package/dist/{composite-router-CUJAG7O4.js.map → composite-router-RMZL4257.js.map} +0 -0
  121. /package/dist/{consensus-vote-BLCQCWPV.js.map → consensus-vote-REULZA53.js.map} +0 -0
  122. /package/dist/{context-retriever-MTJR3AQM.js.map → context-retriever-RZZWVBOR.js.map} +0 -0
  123. /package/dist/{doctor-deep-X2KP2G4M.js.map → doctor-deep-HV4TJTJV.js.map} +0 -0
  124. /package/dist/{expert-bridge-2W2JMFQW.js.map → expert-bridge-ET6VC2JL.js.map} +0 -0
  125. /package/dist/{factory-7UFJ6LXW.js.map → factory-2VRY5UT7.js.map} +0 -0
  126. /package/dist/{factory-SC5D5P3C.js.map → factory-KQML5DIT.js.map} +0 -0
  127. /package/dist/{improvement-review-ZMUJQSX3.js.map → improvement-review-33RKE6ZV.js.map} +0 -0
  128. /package/dist/{init-opencode-I5XSFY34.js.map → init-opencode-H4KHTVI6.js.map} +0 -0
  129. /package/dist/{issue-triage-KOIPTNDH.js.map → issue-triage-3WQXLNRD.js.map} +0 -0
  130. /package/dist/{learning-persistence-6D5GGT7D.js.map → learning-persistence-EGY4VKKO.js.map} +0 -0
  131. /package/dist/{pr-reviewer-helpers-CZDMP5UJ.js.map → pr-reviewer-helpers-NMOXAE4O.js.map} +0 -0
  132. /package/dist/{registry-command-5J6RJZMS.js.map → registry-command-ZV7WMEYO.js.map} +0 -0
  133. /package/dist/{repo-security-plan-MKSCD567.js.map → repo-security-plan-U6SMBTSU.js.map} +0 -0
  134. /package/dist/{research-helpers-synthesize-TIT43XF4.js.map → research-helpers-synthesize-IUIZIZTV.js.map} +0 -0
  135. /package/dist/{routing-memory-HAWL7RKO.js.map → routing-memory-7EFOXSIE.js.map} +0 -0
  136. /package/dist/{session-memory-RPSM7Y4Q.js.map → session-memory-IFVVJ2YP.js.map} +0 -0
  137. /package/dist/{setup-command-SORJLYU3.js.map → setup-command-K2VBZISN.js.map} +0 -0
  138. /package/dist/{setup-config-YDA4MY4N.js.map → setup-config-GA2YVE4R.js.map} +0 -0
  139. /package/dist/{setup-custom-api-BZSHB2M5.js.map → setup-custom-api-E7V4XEKX.js.map} +0 -0
  140. /package/dist/{tool-memory-FCEJMKEH.js.map → tool-memory-ZJ5WR3DL.js.map} +0 -0
  141. /package/dist/{tool-memory-registry-adapters-PMMKJQF5.js.map → tool-memory-registry-adapters-YQLOSV4S.js.map} +0 -0
  142. /package/dist/{unified-registry-JWPD2ES2.js.map → unified-registry-56JY5W3B.js.map} +0 -0
  143. /package/dist/{weather-report-VNABZRH7.js.map → weather-report-MMOOGRWG.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateSecurityPlan
3
- } from "./chunk-UB6APBIY.js";
3
+ } from "./chunk-D7S4ZZS6.js";
4
4
  import {
5
5
  analyzeGitHubRepo
6
6
  } from "./chunk-HFOQKCD2.js";
@@ -21,10 +21,10 @@ import {
21
21
  DEFAULT_TASK_TTL_MS,
22
22
  DEFAULT_TOOL_RATE_LIMITS,
23
23
  clampTaskTtl
24
- } from "./chunk-YUCJ7VSJ.js";
24
+ } from "./chunk-JIJA2RY5.js";
25
25
  import {
26
26
  executeExpert
27
- } from "./chunk-PN43VH6Z.js";
27
+ } from "./chunk-QY5CJKNS.js";
28
28
  import {
29
29
  JobStatusSchema,
30
30
  abortJob,
@@ -45,21 +45,21 @@ import {
45
45
  simulationDeniedResult,
46
46
  toJobSummary,
47
47
  writeJobCancelled
48
- } from "./chunk-OCTNNEXT.js";
48
+ } from "./chunk-MTVSYN4U.js";
49
49
  import {
50
50
  normalizeTopicToCanonical,
51
51
  synthesizeResearch
52
- } from "./chunk-3P7SMHBU.js";
52
+ } from "./chunk-EY6CGIGS.js";
53
53
  import {
54
54
  IssueTriage
55
- } from "./chunk-KWKGX7LC.js";
55
+ } from "./chunk-PBWM7MFA.js";
56
56
  import {
57
57
  resolveEnvMode,
58
58
  sanitizeInput
59
- } from "./chunk-KAL22DYO.js";
59
+ } from "./chunk-QJ2Z6SMD.js";
60
60
  import {
61
61
  withPrerequisite
62
- } from "./chunk-KYF4YAZO.js";
62
+ } from "./chunk-QCWBPQF2.js";
63
63
  import {
64
64
  NOOP_NOTIFIER,
65
65
  RateLimiter,
@@ -82,18 +82,18 @@ import {
82
82
  withAuditTrail,
83
83
  withProgressHeartbeat,
84
84
  wrapToolWithTimeout
85
- } from "./chunk-5QVJCBM4.js";
85
+ } from "./chunk-DALN2VV4.js";
86
86
  import {
87
87
  createAuditTrail,
88
88
  createGraphAuditBridge,
89
89
  emitPipelinePolicyEvent
90
- } from "./chunk-VSETLO4Q.js";
90
+ } from "./chunk-67CGSBQW.js";
91
91
  import {
92
92
  EventTopics,
93
93
  createEvent,
94
94
  getGlobalEventBus,
95
95
  getGlobalRegistry
96
- } from "./chunk-MRRKFMYJ.js";
96
+ } from "./chunk-HULJ7IYD.js";
97
97
  import {
98
98
  IDENTIFIER_RE,
99
99
  LANG_VALUES,
@@ -126,15 +126,15 @@ import {
126
126
  parseRegistry,
127
127
  sourceExistsInRegistry,
128
128
  summarizeContextForPrompt
129
- } from "./chunk-OGR5Q6QO.js";
129
+ } from "./chunk-IZS3BWQB.js";
130
130
  import {
131
131
  getTokenEnvVars,
132
132
  resolveToken
133
- } from "./chunk-HUYP2XXH.js";
133
+ } from "./chunk-FFVDD6MS.js";
134
134
  import {
135
135
  loadPapersRegistry,
136
136
  loadTechniquesRegistry
137
- } from "./chunk-DJZGCMNU.js";
137
+ } from "./chunk-AHJYZNQU.js";
138
138
  import {
139
139
  resolveInsideRoot
140
140
  } from "./chunk-NUBSJGQZ.js";
@@ -143,14 +143,14 @@ import {
143
143
  MemoryImportance,
144
144
  calculateTextJaccardSimilarity,
145
145
  getToolMemory
146
- } from "./chunk-EDWON3X5.js";
146
+ } from "./chunk-JXJAHGX2.js";
147
147
  import {
148
148
  STOPWORDS,
149
149
  truncateWithInfo
150
150
  } from "./chunk-6T3EPABN.js";
151
151
  import {
152
152
  createSessionMemory
153
- } from "./chunk-IVINLVGP.js";
153
+ } from "./chunk-FSVJJBIK.js";
154
154
  import {
155
155
  BUILT_IN_EXPERTS,
156
156
  BuiltInExpertTypeSchema,
@@ -168,25 +168,25 @@ import {
168
168
  getAvailableClis,
169
169
  sleep,
170
170
  withTimeout
171
- } from "./chunk-K6NXLBHG.js";
171
+ } from "./chunk-QDPGKVHH.js";
172
172
  import {
173
173
  BaseAdapter,
174
174
  createStream,
175
175
  requireApiKey,
176
176
  validateApiKeyPresence
177
- } from "./chunk-6RRAQFSX.js";
177
+ } from "./chunk-TYLCYSUQ.js";
178
178
  import {
179
179
  DEFAULTS
180
- } from "./chunk-DGR27REV.js";
180
+ } from "./chunk-4OZPWLKY.js";
181
181
  import {
182
182
  getAvailabilityCache,
183
183
  getCliForModelId,
184
184
  resolveFallback
185
- } from "./chunk-RAIFOYRM.js";
185
+ } from "./chunk-5Y4RWZ3M.js";
186
186
  import {
187
187
  generateHyphenId,
188
188
  generateUUID
189
- } from "./chunk-SGIWJYLJ.js";
189
+ } from "./chunk-C7TM6GM7.js";
190
190
  import {
191
191
  AGENT_ROUTER_TIMEOUTS,
192
192
  API_TIMEOUTS,
@@ -283,17 +283,17 @@ import {
283
283
  selectStrategyByManifest,
284
284
  toExpertTaskAnalysisResult,
285
285
  withStep
286
- } from "./chunk-Y5JA7XEO.js";
286
+ } from "./chunk-YAJ4XUD2.js";
287
287
  import {
288
288
  ensureLearningDir,
289
289
  getMetaOutcomesFile,
290
290
  isPersistenceEnabled
291
- } from "./chunk-AXTD4TFK.js";
291
+ } from "./chunk-2HUC6NZN.js";
292
292
  import {
293
293
  findRepoRoot,
294
294
  nexusDataPath,
295
295
  nexusDataPathEnsure
296
- } from "./chunk-DHVMSIT5.js";
296
+ } from "./chunk-OQLFRJCW.js";
297
297
 
298
298
  // src/adapters/factory.ts
299
299
  import { z } from "zod";
@@ -28344,7 +28344,7 @@ function execIdFields(executionId) {
28344
28344
  async function populateUnifiedContextOnState(state, options) {
28345
28345
  const taskCandidate = state["task"];
28346
28346
  if (typeof taskCandidate !== "string" || taskCandidate === "") return;
28347
- const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-MTJR3AQM.js");
28347
+ const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-RZZWVBOR.js");
28348
28348
  const category = inferTaskCategory2(taskCandidate);
28349
28349
  const executionId = options?.executionId;
28350
28350
  const execFields = execIdFields(executionId);
@@ -43879,7 +43879,7 @@ async function tryIssueTriage(task) {
43879
43879
  try {
43880
43880
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
43881
43881
  if (issueMatch === null) return null;
43882
- const { createIssueTriage } = await import("./issue-triage-KOIPTNDH.js");
43882
+ const { createIssueTriage } = await import("./issue-triage-3WQXLNRD.js");
43883
43883
  const triage = createIssueTriage();
43884
43884
  const owner = issueMatch[1] ?? "";
43885
43885
  const num = issueMatch[2] ?? "";
@@ -43907,7 +43907,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
43907
43907
  ]);
43908
43908
  async function classifyWithLLM(task) {
43909
43909
  try {
43910
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-2W2JMFQW.js");
43910
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-ET6VC2JL.js");
43911
43911
  const prompt = [
43912
43912
  "Classify this task into exactly one pipeline template.",
43913
43913
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -45548,8 +45548,8 @@ var memoryInitPromise = null;
45548
45548
  async function initPipelineMemory() {
45549
45549
  if (cachedMemory !== null) return cachedMemory;
45550
45550
  try {
45551
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-RPSM7Y4Q.js");
45552
- const { getLearningDir } = await import("./learning-persistence-6D5GGT7D.js");
45551
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-IFVVJ2YP.js");
45552
+ const { getLearningDir } = await import("./learning-persistence-EGY4VKKO.js");
45553
45553
  const mem = createSessionMemory2(getLearningDir());
45554
45554
  mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
45555
45555
  cachedMemory = {
@@ -45610,7 +45610,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
45610
45610
  callRecord(routingMemoryCache);
45611
45611
  return;
45612
45612
  }
45613
- routingMemoryInitPromise ??= import("./routing-memory-HAWL7RKO.js").then(({ createRoutingMemory }) => {
45613
+ routingMemoryInitPromise ??= import("./routing-memory-7EFOXSIE.js").then(({ createRoutingMemory }) => {
45614
45614
  routingMemoryCache ??= createRoutingMemory();
45615
45615
  return routingMemoryCache;
45616
45616
  }).catch((error) => {
@@ -45644,7 +45644,7 @@ ${text}` : "";
45644
45644
  }
45645
45645
  async function getWeatherContext() {
45646
45646
  try {
45647
- const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-VNABZRH7.js");
45647
+ const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-MMOOGRWG.js");
45648
45648
  const report = generateWeatherReport2({ includeAdaptive: true });
45649
45649
  const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
45650
45650
  if (!Array.isArray(mappings) || mappings.length === 0) return "";
@@ -45662,8 +45662,8 @@ ${lines}
45662
45662
  }
45663
45663
  async function getMemoryContext(task) {
45664
45664
  try {
45665
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-RPSM7Y4Q.js");
45666
- const { getLearningDir } = await import("./learning-persistence-6D5GGT7D.js");
45665
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-IFVVJ2YP.js");
45666
+ const { getLearningDir } = await import("./learning-persistence-EGY4VKKO.js");
45667
45667
  const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
45668
45668
  const learnings = memory.searchLearnings(task.slice(0, 200));
45669
45669
  if (learnings.length === 0) return "";
@@ -45777,7 +45777,7 @@ ${contextBlock}`;
45777
45777
  const strategy = config.votingStrategy ?? "higher_order";
45778
45778
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
45779
45779
  try {
45780
- const { executeVoting } = await import("./consensus-vote-BLCQCWPV.js");
45780
+ const { executeVoting } = await import("./consensus-vote-REULZA53.js");
45781
45781
  const votingResult = await executeVoting(
45782
45782
  {
45783
45783
  proposal: buildVoteProposal(plan, research),
@@ -46218,7 +46218,7 @@ async function searchCodebaseForTask(task) {
46218
46218
  }
46219
46219
  async function queryResearchRegistry(task) {
46220
46220
  try {
46221
- const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-TIT43XF4.js");
46221
+ const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-IUIZIZTV.js");
46222
46222
  const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
46223
46223
  if (topic === void 0) return null;
46224
46224
  const result = await synthesizeResearch2(topic.slice(0, 50));
@@ -46289,7 +46289,7 @@ function createScanStageWrapper() {
46289
46289
  try {
46290
46290
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
46291
46291
  if (slug !== void 0) {
46292
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-MKSCD567.js");
46292
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-U6SMBTSU.js");
46293
46293
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
46294
46294
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
46295
46295
  return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
@@ -49261,7 +49261,7 @@ var GitHubTaskTracker = class {
49261
49261
  cachedProvider = null;
49262
49262
  async getProvider() {
49263
49263
  if (this.cachedProvider !== null) return this.cachedProvider;
49264
- const { createScmProvider } = await import("./factory-SC5D5P3C.js");
49264
+ const { createScmProvider } = await import("./factory-2VRY5UT7.js");
49265
49265
  const result = await createScmProvider({ repo: this.config.repo ?? "" });
49266
49266
  if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
49267
49267
  this.cachedProvider = result.value;
@@ -50103,7 +50103,7 @@ async function probeSource(source, includeModelIds) {
50103
50103
  }
50104
50104
  }
50105
50105
  async function defaultSources(includeOpenRouter) {
50106
- const { createAllAdapters: createAllAdapters2 } = await import("./factory-7UFJ6LXW.js");
50106
+ const { createAllAdapters: createAllAdapters2 } = await import("./factory-KQML5DIT.js");
50107
50107
  const adapters = createAllAdapters2();
50108
50108
  return buildDefaultModelSources(adapters, { includeOpenRouter });
50109
50109
  }
@@ -54123,4 +54123,4 @@ export {
54123
54123
  shutdownFeedbackSubscriber,
54124
54124
  createEventBusBridge
54125
54125
  };
54126
- //# sourceMappingURL=chunk-2CB6QMRX.js.map
54126
+ //# sourceMappingURL=chunk-QDYZCME4.js.map
@@ -2,7 +2,7 @@ import {
2
2
  CACHE_TIMEOUTS,
3
3
  createLogger,
4
4
  getTimeProvider
5
- } from "./chunk-Y5JA7XEO.js";
5
+ } from "./chunk-YAJ4XUD2.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-KAL22DYO.js.map
563
+ //# sourceMappingURL=chunk-QJ2Z6SMD.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveCliSlot
3
- } from "./chunk-RAIFOYRM.js";
3
+ } from "./chunk-5Y4RWZ3M.js";
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider,
7
7
  isRateLimitText
8
- } from "./chunk-Y5JA7XEO.js";
8
+ } from "./chunk-YAJ4XUD2.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-GWB7JLIS.js");
24
+ const { generateMcpConfig } = await import("./child-mcp-config-XD4ODQJW.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-7UFJ6LXW.js");
97
- const { createCompositeRouter } = await import("./composite-router-CUJAG7O4.js");
96
+ const { createAllAdapters } = await import("./factory-KQML5DIT.js");
97
+ const { createCompositeRouter } = await import("./composite-router-RMZL4257.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-EINPV2CX.js");
105
+ const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-UVYGXMC3.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-PN43VH6Z.js.map
216
+ //# sourceMappingURL=chunk-QY5CJKNS.js.map
@@ -11,7 +11,7 @@ import {
11
11
  isRateLimitLikeError,
12
12
  lookupInTreeCapability,
13
13
  ok
14
- } from "./chunk-Y5JA7XEO.js";
14
+ } from "./chunk-YAJ4XUD2.js";
15
15
 
16
16
  // src/config/model-parameter-support.ts
17
17
  function parseClaudeMajorMinor(bareId) {
@@ -828,4 +828,4 @@ export {
828
828
  DEFAULT_COLLECT_STREAM_MAX_CHUNKS,
829
829
  collectStream
830
830
  };
831
- //# sourceMappingURL=chunk-6RRAQFSX.js.map
831
+ //# sourceMappingURL=chunk-TYLCYSUQ.js.map
@@ -0,0 +1,38 @@
1
+ import {
2
+ nexusDataPathEnsure
3
+ } from "./chunk-OQLFRJCW.js";
4
+
5
+ // src/config/nexus-tmp-dir.ts
6
+ import { mkdirSync, mkdtempSync } from "fs";
7
+ import { mkdtemp } from "fs/promises";
8
+ import { tmpdir } from "os";
9
+ import { join, resolve } from "path";
10
+ function getNexusTmpDir() {
11
+ const fromEnv = process.env["NEXUS_TMPDIR"]?.trim();
12
+ if (fromEnv !== void 0 && fromEnv !== "") {
13
+ const dir = resolve(fromEnv);
14
+ try {
15
+ mkdirSync(dir, { recursive: true });
16
+ return dir;
17
+ } catch {
18
+ return tmpdir();
19
+ }
20
+ }
21
+ try {
22
+ return nexusDataPathEnsure("tmp");
23
+ } catch {
24
+ return tmpdir();
25
+ }
26
+ }
27
+ function nexusMkdtempSync(prefix) {
28
+ return mkdtempSync(join(getNexusTmpDir(), prefix));
29
+ }
30
+ async function nexusMkdtemp(prefix) {
31
+ return mkdtemp(join(getNexusTmpDir(), prefix));
32
+ }
33
+
34
+ export {
35
+ nexusMkdtempSync,
36
+ nexusMkdtemp
37
+ };
38
+ //# sourceMappingURL=chunk-YAF73ZMR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/config/nexus-tmp-dir.ts"],"sourcesContent":["/**\n * Repo-scoped scratch directory (#4412).\n *\n * Short-lived working files — throwaway git worktrees, system-prompt files,\n * generated MCP configs — used to be built directly into `os.tmpdir()`. That\n * is a shared space with no owner and no budget: anything else on the machine\n * can fill it, and when it fills, the failure surfaces as unrelated nonsense.\n * On this repo it manifested as ~1,100 test files failing to *collect* with\n * zero assertion failures, which reads like a code fault and is not one.\n *\n * Scratch now lands under the data dir we already own and already gitignore,\n * in its own `tmp/` subdir so it can be reaped without touching sessions,\n * traces, or the audit chain. Resolution order:\n *\n * 1. `NEXUS_TMPDIR` — explicit operator override, wins outright.\n * 2. `<dataDir>/tmp` via {@link nexusDataPathEnsure} — inherits the existing\n * per-repo / sandbox / writability logic rather than re-deriving it.\n * 3. `os.tmpdir()` — fail-open when neither can be created.\n *\n * Step 3 is deliberate. Scratch space is a convenience, not an invariant: a\n * read-only checkout should degrade to `/tmp`, not take down every adapter\n * that needs to write a prompt file.\n *\n * @module config/nexus-tmp-dir\n */\n\nimport { mkdirSync, mkdtempSync } from 'node:fs';\nimport { mkdtemp } from 'node:fs/promises';\nimport { tmpdir } from 'node:os';\nimport { join, resolve } from 'node:path';\nimport { nexusDataPathEnsure } from './nexus-data-dir.js';\n\n/**\n * Returns an existing directory suitable for short-lived working files.\n *\n * Always returns a path that exists — callers may `mkdtemp` into it directly\n * without a preceding `mkdirSync`.\n */\nexport function getNexusTmpDir(): string {\n const fromEnv = process.env['NEXUS_TMPDIR']?.trim();\n if (fromEnv !== undefined && fromEnv !== '') {\n const dir = resolve(fromEnv);\n try {\n mkdirSync(dir, { recursive: true });\n return dir;\n } catch {\n // An override that cannot be created is an operator mistake, but not a\n // reason to fail the caller's actual work. Fall through.\n return tmpdir();\n }\n }\n\n try {\n return nexusDataPathEnsure('tmp');\n } catch {\n return tmpdir();\n }\n}\n\n/**\n * `fs.mkdtempSync` against the scratch root.\n *\n * Keep the caller's prefix descriptive — it is the only thing that makes a\n * leaked directory attributable to the code that made it.\n */\nexport function nexusMkdtempSync(prefix: string): string {\n return mkdtempSync(join(getNexusTmpDir(), prefix));\n}\n\n/** Promise-returning counterpart to {@link nexusMkdtempSync}. */\nexport async function nexusMkdtemp(prefix: string): Promise<string> {\n return mkdtemp(join(getNexusTmpDir(), prefix));\n}\n"],"mappings":";;;;;AA0BA,SAAS,WAAW,mBAAmB;AACvC,SAAS,eAAe;AACxB,SAAS,cAAc;AACvB,SAAS,MAAM,eAAe;AASvB,SAAS,iBAAyB;AACvC,QAAM,UAAU,QAAQ,IAAI,cAAc,GAAG,KAAK;AAClD,MAAI,YAAY,UAAa,YAAY,IAAI;AAC3C,UAAM,MAAM,QAAQ,OAAO;AAC3B,QAAI;AACF,gBAAU,KAAK,EAAE,WAAW,KAAK,CAAC;AAClC,aAAO;AAAA,IACT,QAAQ;AAGN,aAAO,OAAO;AAAA,IAChB;AAAA,EACF;AAEA,MAAI;AACF,WAAO,oBAAoB,KAAK;AAAA,EAClC,QAAQ;AACN,WAAO,OAAO;AAAA,EAChB;AACF;AAQO,SAAS,iBAAiB,QAAwB;AACvD,SAAO,YAAY,KAAK,eAAe,GAAG,MAAM,CAAC;AACnD;AAGA,eAAsB,aAAa,QAAiC;AAClE,SAAO,QAAQ,KAAK,eAAe,GAAG,MAAM,CAAC;AAC/C;","names":[]}
@@ -3,10 +3,10 @@ import {
3
3
  getDecisionCostFile,
4
4
  getModelSelectionShadowFile,
5
5
  isPersistenceEnabled
6
- } from "./chunk-AXTD4TFK.js";
6
+ } from "./chunk-2HUC6NZN.js";
7
7
  import {
8
8
  nexusDataPath
9
- } from "./chunk-DHVMSIT5.js";
9
+ } from "./chunk-OQLFRJCW.js";
10
10
  import {
11
11
  __require
12
12
  } from "./chunk-ZPWHCABL.js";
@@ -1477,19 +1477,19 @@ var DEFAULT_MODEL_CAPABILITIES = {
1477
1477
  },
1478
1478
  {
1479
1479
  id: "openrouter-qwen-coder",
1480
- displayName: "Qwen3 Coder 480B (free)",
1480
+ displayName: "Qwen3 Coder 480B A35B",
1481
1481
  provider: "openrouter",
1482
1482
  contextWindow: 262144,
1483
1483
  outputModalities: ["text", "structured_json", "code"],
1484
1484
  inputModalities: ["text", "code"],
1485
1485
  toolCapabilities: ["function_calling", "structured_output"],
1486
1486
  specialFeatures: ["streaming"],
1487
- notes: "Strongest free coding model on OpenRouter. 480B parameters, 262K context. Free tier.",
1488
- pricing: { inputPer1M: 0, outputPer1M: 0 },
1489
- qualityScores: { reasoning: 7, codeGeneration: 8, speed: 6, cost: 10 },
1487
+ notes: "Strongest coding-specialized model on OpenRouter. 480B parameters (35B active), 262K context. The zero-cost SKU this entry used to point at was retired (#4410); `qwen/qwen3-coder` is the same checkpoint at list price.",
1488
+ pricing: { inputPer1M: 0.3, outputPer1M: 1 },
1489
+ qualityScores: { reasoning: 7, codeGeneration: 8, speed: 6, cost: 9 },
1490
1490
  maxOutputTokens: 32768,
1491
1491
  cliName: "opencode",
1492
- cliModelName: "qwen/qwen3-coder-480b-a35b:free"
1492
+ cliModelName: "qwen/qwen3-coder"
1493
1493
  }
1494
1494
  ]
1495
1495
  };
@@ -2619,7 +2619,7 @@ function setDefaultRegistry(registry) {
2619
2619
  }
2620
2620
  async function reloadDefaultRegistry() {
2621
2621
  globalRegistry = buildDefaultRegistry();
2622
- const { resetGlobalRegistry } = await import("./unified-registry-JWPD2ES2.js");
2622
+ const { resetGlobalRegistry } = await import("./unified-registry-56JY5W3B.js");
2623
2623
  resetGlobalRegistry();
2624
2624
  return globalRegistry;
2625
2625
  }
@@ -9856,7 +9856,7 @@ async function attachOutcomeStoreToRegistry(store) {
9856
9856
  try {
9857
9857
  const { getMemoryRegistry } = await import("./dist-IKZ53APZ.js");
9858
9858
  const { OutcomeStoreAdapter } = await import("./outcome-store-adapter-K4L3RUJE.js");
9859
- const { ensureSharedMemoryRegistry } = await import("./tool-memory-registry-adapters-PMMKJQF5.js");
9859
+ const { ensureSharedMemoryRegistry } = await import("./tool-memory-registry-adapters-YQLOSV4S.js");
9860
9860
  ensureSharedMemoryRegistry();
9861
9861
  getMemoryRegistry().attach("outcomes", new OutcomeStoreAdapter(store));
9862
9862
  } catch {
@@ -14409,7 +14409,7 @@ var CompositeRouter = class _CompositeRouter {
14409
14409
  */
14410
14410
  async consultUnifiedContext(task) {
14411
14411
  try {
14412
- const { getContextForTask, inferTaskCategory } = await import("./context-retriever-MTJR3AQM.js");
14412
+ const { getContextForTask, inferTaskCategory } = await import("./context-retriever-RZZWVBOR.js");
14413
14413
  const ctx = await getContextForTask({
14414
14414
  task: task.content,
14415
14415
  category: inferTaskCategory(task.content),
@@ -15999,4 +15999,4 @@ export {
15999
15999
  AgentCapability,
16000
16000
  OrchestratorError
16001
16001
  };
16002
- //# sourceMappingURL=chunk-Y5JA7XEO.js.map
16002
+ //# sourceMappingURL=chunk-YAJ4XUD2.js.map