nexus-agents 2.136.0 → 2.137.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 (138) hide show
  1. package/dist/{child-mcp-config-TM6OCARU.js → child-mcp-config-LCWPKOYE.js} +4 -4
  2. package/dist/{chunk-6JOXXQK2.js → chunk-23J7J37D.js} +37 -37
  3. package/dist/{chunk-ZLENFXL5.js → chunk-2SWMXQZF.js} +4 -4
  4. package/dist/{chunk-257QMFTM.js → chunk-5MMHH5WK.js} +3 -3
  5. package/dist/{chunk-VY4FZNZA.js → chunk-7QEGSYSU.js} +2 -2
  6. package/dist/{chunk-UH3F4RZB.js → chunk-7QR2RTA4.js} +7 -7
  7. package/dist/{chunk-GWOXPCIF.js → chunk-7XCQJXN4.js} +7 -7
  8. package/dist/{chunk-3WBEEYCS.js → chunk-AL7ZYHAF.js} +4 -4
  9. package/dist/{chunk-WOE5J5M6.js → chunk-AYA7K5F5.js} +4 -4
  10. package/dist/{chunk-3QH2KWLH.js → chunk-D2XWKFZ2.js} +2 -2
  11. package/dist/{chunk-L4QFWOOQ.js → chunk-DHVMSIT5.js} +22 -3
  12. package/dist/chunk-DHVMSIT5.js.map +1 -0
  13. package/dist/{chunk-7E5UXA4U.js → chunk-DKU7O4V2.js} +2 -2
  14. package/dist/{chunk-JK4L2TQ6.js → chunk-DOCEHXLQ.js} +3 -3
  15. package/dist/{chunk-66TXNH4S.js → chunk-DPHEFR5X.js} +9 -9
  16. package/dist/{chunk-KOVTOPEQ.js → chunk-DTHMBYSV.js} +2 -2
  17. package/dist/{chunk-HMZT2SJK.js → chunk-H3B7H67H.js} +4 -4
  18. package/dist/{chunk-7G63H7ZT.js → chunk-H4ATQPGQ.js} +2 -2
  19. package/dist/{chunk-N67LHY47.js → chunk-HC5CUX6C.js} +10 -10
  20. package/dist/{chunk-ESP6U3LW.js → chunk-J2HWO3J3.js} +6 -6
  21. package/dist/{chunk-ZHCEOIEQ.js → chunk-JFKNUEZ7.js} +2 -2
  22. package/dist/{chunk-FIQSOSQU.js → chunk-K62WRHHK.js} +2 -2
  23. package/dist/{chunk-OCJEYHUQ.js → chunk-KWZC5LFC.js} +6 -6
  24. package/dist/{chunk-FHFEC2XM.js → chunk-LMMLLGZZ.js} +2 -2
  25. package/dist/{chunk-VN3CKPEF.js → chunk-MNHNQC7R.js} +3 -3
  26. package/dist/{chunk-FSUZIIOJ.js → chunk-MNXLJ2VX.js} +2 -2
  27. package/dist/{chunk-3AAJWZCR.js → chunk-MXDMJGVG.js} +4 -4
  28. package/dist/{chunk-JVZ7FGWR.js → chunk-NJW5GQUF.js} +3 -3
  29. package/dist/{chunk-5SXGPX34.js → chunk-NL7SZQPW.js} +2 -2
  30. package/dist/{chunk-MTE7THMR.js → chunk-NRJLOBGA.js} +6 -6
  31. package/dist/{chunk-CQDGPGTL.js → chunk-NYSOJBF5.js} +3 -3
  32. package/dist/{chunk-5546JU53.js → chunk-PLKWH53F.js} +6 -6
  33. package/dist/{chunk-LCSGGLZZ.js → chunk-Q3EZN3Z2.js} +2 -2
  34. package/dist/{chunk-UGAKYSDO.js → chunk-RER74KD6.js} +2 -2
  35. package/dist/{chunk-3JSDOBOA.js → chunk-RTBVZCLD.js} +2 -2
  36. package/dist/{chunk-VVBKPRLI.js → chunk-XUH2UFSG.js} +2 -2
  37. package/dist/{chunk-ZII5MDUO.js → chunk-YPGTIJEW.js} +2 -2
  38. package/dist/{chunk-4GVPON4W.js → chunk-ZJ3WGARD.js} +3 -3
  39. package/dist/cli-circuit-breaker-TNV2PBLS.js +14 -0
  40. package/dist/cli.js +117 -66
  41. package/dist/cli.js.map +1 -1
  42. package/dist/{composite-router-PS42433A.js → composite-router-KM4BPVY4.js} +4 -4
  43. package/dist/consensus-vote-HHA73ME6.js +39 -0
  44. package/dist/{context-retriever-NIFXFYPQ.js → context-retriever-MAZKHYRD.js} +11 -11
  45. package/dist/doctor-deep-XCMFGGJ3.js +13 -0
  46. package/dist/{expert-bridge-NY6FAFQH.js → expert-bridge-EA3U3GKU.js} +6 -6
  47. package/dist/factory-FACKN4IN.js +22 -0
  48. package/dist/factory-Y5WCLQDB.js +15 -0
  49. package/dist/{improvement-review-JDSRWFHM.js → improvement-review-F7TKX4LQ.js} +6 -6
  50. package/dist/index.js +32 -32
  51. package/dist/{init-opencode-C7U6ZQK3.js → init-opencode-ZYGGEUZN.js} +8 -8
  52. package/dist/issue-triage-NI2ZDVTB.js +17 -0
  53. package/dist/{learning-persistence-EHTHKWR5.js → learning-persistence-M3OTCCNI.js} +3 -3
  54. package/dist/{pr-reviewer-helpers-D47TVXFX.js → pr-reviewer-helpers-L7L6O3VQ.js} +6 -6
  55. package/dist/{registry-command-PVC47NSQ.js → registry-command-K2KWID5D.js} +4 -4
  56. package/dist/{repo-security-plan-76IXMJNC.js → repo-security-plan-PCGHBEGZ.js} +5 -5
  57. package/dist/research-helpers-synthesize-R45KXXNH.js +15 -0
  58. package/dist/{routing-memory-RAYIYIUP.js → routing-memory-TLB5EY7J.js} +4 -4
  59. package/dist/{session-memory-WZCS7WDH.js → session-memory-PUEUWVIN.js} +5 -5
  60. package/dist/{setup-command-O62DVQ2U.js → setup-command-TIGCMJRZ.js} +13 -13
  61. package/dist/setup-config-SLFGQ5F2.js +11 -0
  62. package/dist/{setup-custom-api-2PQP6UOT.js → setup-custom-api-SVCRCSKY.js} +5 -5
  63. package/dist/{tool-memory-RAQWOUXV.js → tool-memory-COQWIFB6.js} +8 -8
  64. package/dist/{tool-memory-registry-adapters-Y4EGADHN.js → tool-memory-registry-adapters-DLSE4SQH.js} +3 -3
  65. package/dist/unified-registry-44DIG4XK.js +25 -0
  66. package/dist/{weather-report-TEBEALS7.js → weather-report-WK7TJPMM.js} +4 -4
  67. package/package.json +1 -1
  68. package/dist/chunk-L4QFWOOQ.js.map +0 -1
  69. package/dist/cli-circuit-breaker-HFFMCA43.js +0 -14
  70. package/dist/consensus-vote-K2SHY4TC.js +0 -39
  71. package/dist/doctor-deep-VQQNT7VN.js +0 -13
  72. package/dist/factory-6A26HIWS.js +0 -15
  73. package/dist/factory-GGSACEWN.js +0 -22
  74. package/dist/issue-triage-7RN74LBU.js +0 -17
  75. package/dist/research-helpers-synthesize-WH4IC36H.js +0 -15
  76. package/dist/setup-config-KEBEUMC3.js +0 -11
  77. package/dist/unified-registry-L5PGLSEI.js +0 -25
  78. /package/dist/{child-mcp-config-TM6OCARU.js.map → child-mcp-config-LCWPKOYE.js.map} +0 -0
  79. /package/dist/{chunk-6JOXXQK2.js.map → chunk-23J7J37D.js.map} +0 -0
  80. /package/dist/{chunk-ZLENFXL5.js.map → chunk-2SWMXQZF.js.map} +0 -0
  81. /package/dist/{chunk-257QMFTM.js.map → chunk-5MMHH5WK.js.map} +0 -0
  82. /package/dist/{chunk-VY4FZNZA.js.map → chunk-7QEGSYSU.js.map} +0 -0
  83. /package/dist/{chunk-UH3F4RZB.js.map → chunk-7QR2RTA4.js.map} +0 -0
  84. /package/dist/{chunk-GWOXPCIF.js.map → chunk-7XCQJXN4.js.map} +0 -0
  85. /package/dist/{chunk-3WBEEYCS.js.map → chunk-AL7ZYHAF.js.map} +0 -0
  86. /package/dist/{chunk-WOE5J5M6.js.map → chunk-AYA7K5F5.js.map} +0 -0
  87. /package/dist/{chunk-3QH2KWLH.js.map → chunk-D2XWKFZ2.js.map} +0 -0
  88. /package/dist/{chunk-7E5UXA4U.js.map → chunk-DKU7O4V2.js.map} +0 -0
  89. /package/dist/{chunk-JK4L2TQ6.js.map → chunk-DOCEHXLQ.js.map} +0 -0
  90. /package/dist/{chunk-66TXNH4S.js.map → chunk-DPHEFR5X.js.map} +0 -0
  91. /package/dist/{chunk-KOVTOPEQ.js.map → chunk-DTHMBYSV.js.map} +0 -0
  92. /package/dist/{chunk-HMZT2SJK.js.map → chunk-H3B7H67H.js.map} +0 -0
  93. /package/dist/{chunk-7G63H7ZT.js.map → chunk-H4ATQPGQ.js.map} +0 -0
  94. /package/dist/{chunk-N67LHY47.js.map → chunk-HC5CUX6C.js.map} +0 -0
  95. /package/dist/{chunk-ESP6U3LW.js.map → chunk-J2HWO3J3.js.map} +0 -0
  96. /package/dist/{chunk-ZHCEOIEQ.js.map → chunk-JFKNUEZ7.js.map} +0 -0
  97. /package/dist/{chunk-FIQSOSQU.js.map → chunk-K62WRHHK.js.map} +0 -0
  98. /package/dist/{chunk-OCJEYHUQ.js.map → chunk-KWZC5LFC.js.map} +0 -0
  99. /package/dist/{chunk-FHFEC2XM.js.map → chunk-LMMLLGZZ.js.map} +0 -0
  100. /package/dist/{chunk-VN3CKPEF.js.map → chunk-MNHNQC7R.js.map} +0 -0
  101. /package/dist/{chunk-FSUZIIOJ.js.map → chunk-MNXLJ2VX.js.map} +0 -0
  102. /package/dist/{chunk-3AAJWZCR.js.map → chunk-MXDMJGVG.js.map} +0 -0
  103. /package/dist/{chunk-JVZ7FGWR.js.map → chunk-NJW5GQUF.js.map} +0 -0
  104. /package/dist/{chunk-5SXGPX34.js.map → chunk-NL7SZQPW.js.map} +0 -0
  105. /package/dist/{chunk-MTE7THMR.js.map → chunk-NRJLOBGA.js.map} +0 -0
  106. /package/dist/{chunk-CQDGPGTL.js.map → chunk-NYSOJBF5.js.map} +0 -0
  107. /package/dist/{chunk-5546JU53.js.map → chunk-PLKWH53F.js.map} +0 -0
  108. /package/dist/{chunk-LCSGGLZZ.js.map → chunk-Q3EZN3Z2.js.map} +0 -0
  109. /package/dist/{chunk-UGAKYSDO.js.map → chunk-RER74KD6.js.map} +0 -0
  110. /package/dist/{chunk-3JSDOBOA.js.map → chunk-RTBVZCLD.js.map} +0 -0
  111. /package/dist/{chunk-VVBKPRLI.js.map → chunk-XUH2UFSG.js.map} +0 -0
  112. /package/dist/{chunk-ZII5MDUO.js.map → chunk-YPGTIJEW.js.map} +0 -0
  113. /package/dist/{chunk-4GVPON4W.js.map → chunk-ZJ3WGARD.js.map} +0 -0
  114. /package/dist/{cli-circuit-breaker-HFFMCA43.js.map → cli-circuit-breaker-TNV2PBLS.js.map} +0 -0
  115. /package/dist/{composite-router-PS42433A.js.map → composite-router-KM4BPVY4.js.map} +0 -0
  116. /package/dist/{consensus-vote-K2SHY4TC.js.map → consensus-vote-HHA73ME6.js.map} +0 -0
  117. /package/dist/{context-retriever-NIFXFYPQ.js.map → context-retriever-MAZKHYRD.js.map} +0 -0
  118. /package/dist/{doctor-deep-VQQNT7VN.js.map → doctor-deep-XCMFGGJ3.js.map} +0 -0
  119. /package/dist/{expert-bridge-NY6FAFQH.js.map → expert-bridge-EA3U3GKU.js.map} +0 -0
  120. /package/dist/{factory-6A26HIWS.js.map → factory-FACKN4IN.js.map} +0 -0
  121. /package/dist/{factory-GGSACEWN.js.map → factory-Y5WCLQDB.js.map} +0 -0
  122. /package/dist/{improvement-review-JDSRWFHM.js.map → improvement-review-F7TKX4LQ.js.map} +0 -0
  123. /package/dist/{init-opencode-C7U6ZQK3.js.map → init-opencode-ZYGGEUZN.js.map} +0 -0
  124. /package/dist/{issue-triage-7RN74LBU.js.map → issue-triage-NI2ZDVTB.js.map} +0 -0
  125. /package/dist/{learning-persistence-EHTHKWR5.js.map → learning-persistence-M3OTCCNI.js.map} +0 -0
  126. /package/dist/{pr-reviewer-helpers-D47TVXFX.js.map → pr-reviewer-helpers-L7L6O3VQ.js.map} +0 -0
  127. /package/dist/{registry-command-PVC47NSQ.js.map → registry-command-K2KWID5D.js.map} +0 -0
  128. /package/dist/{repo-security-plan-76IXMJNC.js.map → repo-security-plan-PCGHBEGZ.js.map} +0 -0
  129. /package/dist/{research-helpers-synthesize-WH4IC36H.js.map → research-helpers-synthesize-R45KXXNH.js.map} +0 -0
  130. /package/dist/{routing-memory-RAYIYIUP.js.map → routing-memory-TLB5EY7J.js.map} +0 -0
  131. /package/dist/{session-memory-WZCS7WDH.js.map → session-memory-PUEUWVIN.js.map} +0 -0
  132. /package/dist/{setup-command-O62DVQ2U.js.map → setup-command-TIGCMJRZ.js.map} +0 -0
  133. /package/dist/{setup-config-KEBEUMC3.js.map → setup-config-SLFGQ5F2.js.map} +0 -0
  134. /package/dist/{setup-custom-api-2PQP6UOT.js.map → setup-custom-api-SVCRCSKY.js.map} +0 -0
  135. /package/dist/{tool-memory-RAQWOUXV.js.map → tool-memory-COQWIFB6.js.map} +0 -0
  136. /package/dist/{tool-memory-registry-adapters-Y4EGADHN.js.map → tool-memory-registry-adapters-DLSE4SQH.js.map} +0 -0
  137. /package/dist/{unified-registry-L5PGLSEI.js.map → unified-registry-44DIG4XK.js.map} +0 -0
  138. /package/dist/{weather-report-TEBEALS7.js.map → weather-report-WK7TJPMM.js.map} +0 -0
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  createLogger
3
- } from "./chunk-OCJEYHUQ.js";
4
- import "./chunk-5SXGPX34.js";
5
- import "./chunk-L4QFWOOQ.js";
3
+ } from "./chunk-KWZC5LFC.js";
4
+ import "./chunk-NL7SZQPW.js";
5
+ import "./chunk-DHVMSIT5.js";
6
6
  import "./chunk-ZPWHCABL.js";
7
7
 
8
8
  // src/cli-adapters/child-mcp-config.ts
@@ -60,4 +60,4 @@ export {
60
60
  generateMcpConfig,
61
61
  getDefaultAllowedTools
62
62
  };
63
- //# sourceMappingURL=child-mcp-config-TM6OCARU.js.map
63
+ //# sourceMappingURL=child-mcp-config-LCWPKOYE.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateSecurityPlan
3
- } from "./chunk-3JSDOBOA.js";
3
+ } from "./chunk-RTBVZCLD.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-66TXNH4S.js";
21
+ } from "./chunk-DPHEFR5X.js";
22
22
  import {
23
23
  executeExpert
24
- } from "./chunk-UH3F4RZB.js";
24
+ } from "./chunk-7QR2RTA4.js";
25
25
  import {
26
26
  JobStatusSchema,
27
27
  collectRealVotes,
@@ -40,24 +40,24 @@ import {
40
40
  toJobSummary,
41
41
  warnIfSimulatedOutsideTests,
42
42
  writeJobCancelled
43
- } from "./chunk-N67LHY47.js";
43
+ } from "./chunk-HC5CUX6C.js";
44
44
  import {
45
45
  normalizeTopicToCanonical,
46
46
  synthesizeResearch
47
- } from "./chunk-4GVPON4W.js";
47
+ } from "./chunk-ZJ3WGARD.js";
48
48
  import {
49
49
  IssueTriage,
50
50
  createAuditTrail,
51
51
  createGraphAuditBridge,
52
52
  emitPipelinePolicyEvent
53
- } from "./chunk-3AAJWZCR.js";
53
+ } from "./chunk-MXDMJGVG.js";
54
54
  import {
55
55
  resolveEnvMode,
56
56
  sanitizeInput
57
- } from "./chunk-FSUZIIOJ.js";
57
+ } from "./chunk-MNXLJ2VX.js";
58
58
  import {
59
59
  withPrerequisite
60
- } from "./chunk-3WBEEYCS.js";
60
+ } from "./chunk-AL7ZYHAF.js";
61
61
  import {
62
62
  NOOP_NOTIFIER,
63
63
  RateLimiter,
@@ -79,7 +79,7 @@ import {
79
79
  withAccessPolicy,
80
80
  withProgressHeartbeat,
81
81
  wrapToolWithTimeout
82
- } from "./chunk-JVZ7FGWR.js";
82
+ } from "./chunk-NJW5GQUF.js";
83
83
  import {
84
84
  addResearchPaper,
85
85
  addSourceToRegistry,
@@ -107,15 +107,15 @@ import {
107
107
  parseRegistry,
108
108
  sourceExistsInRegistry,
109
109
  summarizeContextForPrompt
110
- } from "./chunk-5546JU53.js";
110
+ } from "./chunk-PLKWH53F.js";
111
111
  import {
112
112
  getTokenEnvVars,
113
113
  resolveToken
114
- } from "./chunk-FHFEC2XM.js";
114
+ } from "./chunk-LMMLLGZZ.js";
115
115
  import {
116
116
  loadPapersRegistry,
117
117
  loadTechniquesRegistry
118
- } from "./chunk-ZHCEOIEQ.js";
118
+ } from "./chunk-JFKNUEZ7.js";
119
119
  import {
120
120
  resolveInsideRoot
121
121
  } from "./chunk-NUBSJGQZ.js";
@@ -124,14 +124,14 @@ import {
124
124
  MemoryImportance,
125
125
  calculateTextJaccardSimilarity,
126
126
  getToolMemory
127
- } from "./chunk-ESP6U3LW.js";
127
+ } from "./chunk-J2HWO3J3.js";
128
128
  import {
129
129
  STOPWORDS,
130
130
  truncateWithInfo
131
131
  } from "./chunk-6T3EPABN.js";
132
132
  import {
133
133
  createSessionMemory
134
- } from "./chunk-3QH2KWLH.js";
134
+ } from "./chunk-D2XWKFZ2.js";
135
135
  import {
136
136
  BUILT_IN_EXPERTS,
137
137
  BuiltInExpertTypeSchema,
@@ -146,7 +146,7 @@ import {
146
146
  createEvent,
147
147
  getGlobalEventBus,
148
148
  getGlobalRegistry
149
- } from "./chunk-HMZT2SJK.js";
149
+ } from "./chunk-H3B7H67H.js";
150
150
  import {
151
151
  CliDetectionCache,
152
152
  asRecord,
@@ -154,19 +154,19 @@ import {
154
154
  getAvailableClis,
155
155
  sleep,
156
156
  withTimeout
157
- } from "./chunk-GWOXPCIF.js";
157
+ } from "./chunk-7XCQJXN4.js";
158
158
  import {
159
159
  DEFAULTS
160
- } from "./chunk-7E5UXA4U.js";
160
+ } from "./chunk-DKU7O4V2.js";
161
161
  import {
162
162
  getAvailabilityCache,
163
163
  getCliForModelId,
164
164
  resolveFallback
165
- } from "./chunk-KOVTOPEQ.js";
165
+ } from "./chunk-DTHMBYSV.js";
166
166
  import {
167
167
  generateHyphenId,
168
168
  generateUUID
169
- } from "./chunk-FIQSOSQU.js";
169
+ } from "./chunk-K62WRHHK.js";
170
170
  import {
171
171
  AGENT_ROUTER_TIMEOUTS,
172
172
  API_TIMEOUTS,
@@ -258,16 +258,16 @@ import {
258
258
  selectStrategyByManifest,
259
259
  toExpertTaskAnalysisResult,
260
260
  withStep
261
- } from "./chunk-OCJEYHUQ.js";
261
+ } from "./chunk-KWZC5LFC.js";
262
262
  import {
263
263
  ensureLearningDir,
264
264
  getMetaOutcomesFile,
265
265
  isPersistenceEnabled
266
- } from "./chunk-5SXGPX34.js";
266
+ } from "./chunk-NL7SZQPW.js";
267
267
  import {
268
268
  nexusDataPath,
269
269
  nexusDataPathEnsure
270
- } from "./chunk-L4QFWOOQ.js";
270
+ } from "./chunk-DHVMSIT5.js";
271
271
 
272
272
  // src/agents/state-machine-types.ts
273
273
  var VALID_TRANSITIONS = /* @__PURE__ */ new Map([
@@ -26292,7 +26292,7 @@ function execIdFields(executionId) {
26292
26292
  async function populateUnifiedContextOnState(state, options) {
26293
26293
  const taskCandidate = state["task"];
26294
26294
  if (typeof taskCandidate !== "string" || taskCandidate === "") return;
26295
- const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-NIFXFYPQ.js");
26295
+ const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-MAZKHYRD.js");
26296
26296
  const category = inferTaskCategory2(taskCandidate);
26297
26297
  const executionId = options?.executionId;
26298
26298
  const execFields = execIdFields(executionId);
@@ -41389,7 +41389,7 @@ async function tryIssueTriage(task) {
41389
41389
  try {
41390
41390
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
41391
41391
  if (issueMatch === null) return null;
41392
- const { createIssueTriage } = await import("./issue-triage-7RN74LBU.js");
41392
+ const { createIssueTriage } = await import("./issue-triage-NI2ZDVTB.js");
41393
41393
  const triage = createIssueTriage();
41394
41394
  const owner = issueMatch[1] ?? "";
41395
41395
  const num = issueMatch[2] ?? "";
@@ -41417,7 +41417,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
41417
41417
  ]);
41418
41418
  async function classifyWithLLM(task) {
41419
41419
  try {
41420
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-NY6FAFQH.js");
41420
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-EA3U3GKU.js");
41421
41421
  const prompt = [
41422
41422
  "Classify this task into exactly one pipeline template.",
41423
41423
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -43183,8 +43183,8 @@ var memoryInitPromise = null;
43183
43183
  async function initPipelineMemory() {
43184
43184
  if (cachedMemory !== null) return cachedMemory;
43185
43185
  try {
43186
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-WZCS7WDH.js");
43187
- const { getLearningDir } = await import("./learning-persistence-EHTHKWR5.js");
43186
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-PUEUWVIN.js");
43187
+ const { getLearningDir } = await import("./learning-persistence-M3OTCCNI.js");
43188
43188
  const mem = createSessionMemory2(getLearningDir());
43189
43189
  mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
43190
43190
  cachedMemory = {
@@ -43245,7 +43245,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
43245
43245
  callRecord(routingMemoryCache);
43246
43246
  return;
43247
43247
  }
43248
- routingMemoryInitPromise ??= import("./routing-memory-RAYIYIUP.js").then(({ createRoutingMemory }) => {
43248
+ routingMemoryInitPromise ??= import("./routing-memory-TLB5EY7J.js").then(({ createRoutingMemory }) => {
43249
43249
  routingMemoryCache ??= createRoutingMemory();
43250
43250
  return routingMemoryCache;
43251
43251
  }).catch((error) => {
@@ -43279,7 +43279,7 @@ ${text}` : "";
43279
43279
  }
43280
43280
  async function getWeatherContext() {
43281
43281
  try {
43282
- const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-TEBEALS7.js");
43282
+ const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-WK7TJPMM.js");
43283
43283
  const report = generateWeatherReport2({ includeAdaptive: true });
43284
43284
  const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
43285
43285
  if (!Array.isArray(mappings) || mappings.length === 0) return "";
@@ -43297,8 +43297,8 @@ ${lines}
43297
43297
  }
43298
43298
  async function getMemoryContext(task) {
43299
43299
  try {
43300
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-WZCS7WDH.js");
43301
- const { getLearningDir } = await import("./learning-persistence-EHTHKWR5.js");
43300
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-PUEUWVIN.js");
43301
+ const { getLearningDir } = await import("./learning-persistence-M3OTCCNI.js");
43302
43302
  const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
43303
43303
  const learnings = memory.searchLearnings(task.slice(0, 200));
43304
43304
  if (learnings.length === 0) return "";
@@ -43409,7 +43409,7 @@ ${contextBlock}`;
43409
43409
  const strategy = config.votingStrategy ?? "higher_order";
43410
43410
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
43411
43411
  try {
43412
- const { executeVoting } = await import("./consensus-vote-K2SHY4TC.js");
43412
+ const { executeVoting } = await import("./consensus-vote-HHA73ME6.js");
43413
43413
  const votingResult = await executeVoting(
43414
43414
  {
43415
43415
  proposal: buildVoteProposal(plan, research),
@@ -43846,7 +43846,7 @@ async function searchCodebaseForTask(task) {
43846
43846
  }
43847
43847
  async function queryResearchRegistry(task) {
43848
43848
  try {
43849
- const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-WH4IC36H.js");
43849
+ const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-R45KXXNH.js");
43850
43850
  const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
43851
43851
  if (topic === void 0) return null;
43852
43852
  const result = await synthesizeResearch2(topic.slice(0, 50));
@@ -43917,7 +43917,7 @@ function createScanStageWrapper() {
43917
43917
  try {
43918
43918
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
43919
43919
  if (slug !== void 0) {
43920
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-76IXMJNC.js");
43920
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-PCGHBEGZ.js");
43921
43921
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
43922
43922
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
43923
43923
  return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
@@ -46023,7 +46023,7 @@ var GitHubTaskTracker = class {
46023
46023
  cachedProvider = null;
46024
46024
  async getProvider() {
46025
46025
  if (this.cachedProvider !== null) return this.cachedProvider;
46026
- const { createScmProvider } = await import("./factory-6A26HIWS.js");
46026
+ const { createScmProvider } = await import("./factory-Y5WCLQDB.js");
46027
46027
  const result = await createScmProvider({ repo: this.config.repo ?? "" });
46028
46028
  if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
46029
46029
  this.cachedProvider = result.value;
@@ -46788,7 +46788,7 @@ async function probeSource(source, includeModelIds) {
46788
46788
  }
46789
46789
  }
46790
46790
  async function defaultSources(includeOpenRouter) {
46791
- const { createAllAdapters: createAllAdapters2 } = await import("./factory-GGSACEWN.js");
46791
+ const { createAllAdapters: createAllAdapters2 } = await import("./factory-FACKN4IN.js");
46792
46792
  const adapters = createAllAdapters2();
46793
46793
  return buildDefaultModelSources(adapters, { includeOpenRouter });
46794
46794
  }
@@ -50911,4 +50911,4 @@ export {
50911
50911
  shutdownFeedbackSubscriber,
50912
50912
  createEventBusBridge
50913
50913
  };
50914
- //# sourceMappingURL=chunk-6JOXXQK2.js.map
50914
+ //# sourceMappingURL=chunk-23J7J37D.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-VVBKPRLI.js";
4
+ } from "./chunk-XUH2UFSG.js";
5
5
  import {
6
6
  resolveToken
7
- } from "./chunk-FHFEC2XM.js";
7
+ } from "./chunk-LMMLLGZZ.js";
8
8
  import {
9
9
  err,
10
10
  ok
11
- } from "./chunk-OCJEYHUQ.js";
11
+ } from "./chunk-KWZC5LFC.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-ZLENFXL5.js.map
44
+ //# sourceMappingURL=chunk-2SWMXQZF.js.map
@@ -3,14 +3,14 @@ import {
3
3
  createStream,
4
4
  requireApiKey,
5
5
  validateApiKeyPresence
6
- } from "./chunk-ZII5MDUO.js";
6
+ } from "./chunk-YPGTIJEW.js";
7
7
  import {
8
8
  ModelCapability,
9
9
  err,
10
10
  getCliModelName,
11
11
  getTokenEstimator,
12
12
  ok
13
- } from "./chunk-OCJEYHUQ.js";
13
+ } from "./chunk-KWZC5LFC.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-257QMFTM.js.map
556
+ //# sourceMappingURL=chunk-5MMHH5WK.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getErrorMessage
3
- } from "./chunk-OCJEYHUQ.js";
3
+ } from "./chunk-KWZC5LFC.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-VY4FZNZA.js.map
80
+ //# sourceMappingURL=chunk-7QEGSYSU.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveCliSlot
3
- } from "./chunk-KOVTOPEQ.js";
3
+ } from "./chunk-DTHMBYSV.js";
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider,
7
7
  isRateLimitText
8
- } from "./chunk-OCJEYHUQ.js";
8
+ } from "./chunk-KWZC5LFC.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-TM6OCARU.js");
24
+ const { generateMcpConfig } = await import("./child-mcp-config-LCWPKOYE.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-GGSACEWN.js");
97
- const { createCompositeRouter } = await import("./composite-router-PS42433A.js");
96
+ const { createAllAdapters } = await import("./factory-FACKN4IN.js");
97
+ const { createCompositeRouter } = await import("./composite-router-KM4BPVY4.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-HFFMCA43.js");
105
+ const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-TNV2PBLS.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-UH3F4RZB.js.map
216
+ //# sourceMappingURL=chunk-7QR2RTA4.js.map
@@ -4,24 +4,24 @@ import {
4
4
  createStream,
5
5
  requireApiKey,
6
6
  validateApiKeyPresence
7
- } from "./chunk-ZII5MDUO.js";
7
+ } from "./chunk-YPGTIJEW.js";
8
8
  import {
9
9
  CUSTOM_API_BASE_URL_ENV,
10
10
  CUSTOM_API_DEFAULT_MODEL,
11
11
  PROVIDER_ENV_KEYS,
12
12
  assertCustomApiHostResolvesPublic,
13
13
  validateCustomApiBaseUrl
14
- } from "./chunk-7E5UXA4U.js";
14
+ } from "./chunk-DKU7O4V2.js";
15
15
  import {
16
16
  CliCircuitBreaker,
17
17
  DEFAULT_CIRCUIT_BREAKER_CONFIG
18
- } from "./chunk-7G63H7ZT.js";
18
+ } from "./chunk-H4ATQPGQ.js";
19
19
  import {
20
20
  getAvailabilityCache
21
- } from "./chunk-KOVTOPEQ.js";
21
+ } from "./chunk-DTHMBYSV.js";
22
22
  import {
23
23
  generateHyphenId
24
- } from "./chunk-FIQSOSQU.js";
24
+ } from "./chunk-K62WRHHK.js";
25
25
  import {
26
26
  CLI_SUBPROCESS_TIMEOUTS,
27
27
  CLI_TIMEOUTS,
@@ -57,7 +57,7 @@ import {
57
57
  loadModelsDevSnapshot,
58
58
  ok,
59
59
  resolveCliAlias
60
- } from "./chunk-OCJEYHUQ.js";
60
+ } from "./chunk-KWZC5LFC.js";
61
61
 
62
62
  // src/cli-adapters/cli-to-model-adapter.ts
63
63
  var CliToModelAdapter = class {
@@ -4838,4 +4838,4 @@ export {
4838
4838
  SdkAdapter,
4839
4839
  createAutoAdapter
4840
4840
  };
4841
- //# sourceMappingURL=chunk-GWOXPCIF.js.map
4841
+ //# sourceMappingURL=chunk-7XCQJXN4.js.map
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-JVZ7FGWR.js";
10
+ } from "./chunk-NJW5GQUF.js";
11
11
  import {
12
12
  JsonlStore,
13
13
  SECURITY_KEYWORDS,
@@ -19,11 +19,11 @@ import {
19
19
  getPipelineEventBus,
20
20
  getTimeProvider,
21
21
  isDeclaredNeverDeprecate
22
- } from "./chunk-OCJEYHUQ.js";
22
+ } from "./chunk-KWZC5LFC.js";
23
23
  import {
24
24
  getNexusDataDir,
25
25
  nexusDataPath
26
- } from "./chunk-L4QFWOOQ.js";
26
+ } from "./chunk-DHVMSIT5.js";
27
27
 
28
28
  // src/mcp/tools/improvement-review.ts
29
29
  import { execFile as execFile2 } from "child_process";
@@ -2132,4 +2132,4 @@ export {
2132
2132
  runImprovementReview,
2133
2133
  registerImprovementReviewTool
2134
2134
  };
2135
- //# sourceMappingURL=chunk-3WBEEYCS.js.map
2135
+ //# sourceMappingURL=chunk-AL7ZYHAF.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  OpenAIAdapter
3
- } from "./chunk-257QMFTM.js";
3
+ } from "./chunk-5MMHH5WK.js";
4
4
  import {
5
5
  computeCostUSD,
6
6
  recordUsageEvent
7
- } from "./chunk-VN3CKPEF.js";
7
+ } from "./chunk-MNHNQC7R.js";
8
8
  import {
9
9
  ConfigError,
10
10
  createLogger,
@@ -12,7 +12,7 @@ import {
12
12
  getErrorMessage,
13
13
  getTimeProvider,
14
14
  ok
15
- } from "./chunk-OCJEYHUQ.js";
15
+ } from "./chunk-KWZC5LFC.js";
16
16
 
17
17
  // src/config/opencode-bridge.ts
18
18
  import { readFileSync } from "fs";
@@ -191,4 +191,4 @@ export {
191
191
  discoverModels,
192
192
  buildOpenAICompatAdapters
193
193
  };
194
- //# sourceMappingURL=chunk-WOE5J5M6.js.map
194
+ //# sourceMappingURL=chunk-AYA7K5F5.js.map
@@ -4,7 +4,7 @@ import {
4
4
  getErrorMessage,
5
5
  getTimeProvider,
6
6
  ok
7
- } from "./chunk-OCJEYHUQ.js";
7
+ } from "./chunk-KWZC5LFC.js";
8
8
 
9
9
  // src/context/session-memory.ts
10
10
  import * as fs from "fs";
@@ -352,4 +352,4 @@ export {
352
352
  SessionMemory,
353
353
  createSessionMemory
354
354
  };
355
- //# sourceMappingURL=chunk-3QH2KWLH.js.map
355
+ //# sourceMappingURL=chunk-D2XWKFZ2.js.map
@@ -166,11 +166,13 @@ import {
166
166
  copyFileSync,
167
167
  existsSync as existsSync4,
168
168
  mkdirSync,
169
+ realpathSync as realpathSync2,
169
170
  renameSync,
171
+ statSync as statSync3,
170
172
  unlinkSync
171
173
  } from "fs";
172
174
  import { homedir as homedir2 } from "os";
173
- import { dirname as dirname2, join as join2, resolve as resolve3 } from "path";
175
+ import { dirname as dirname2, isAbsolute as isAbsolute2, join as join2, resolve as resolve3 } from "path";
174
176
 
175
177
  // src/config/sandbox-detection.ts
176
178
  import { existsSync as existsSync3, readFileSync as readFileSync3 } from "fs";
@@ -242,12 +244,28 @@ function getNexusDataDir() {
242
244
  return join2(homedir2(), ".nexus-agents");
243
245
  }
244
246
  var gitignoredRoots = /* @__PURE__ */ new Set();
247
+ var activeWorkspaceRoot;
248
+ function setActiveWorkspaceRoot(root) {
249
+ const trimmed = root?.trim();
250
+ if (trimmed === void 0 || trimmed === "") {
251
+ activeWorkspaceRoot = void 0;
252
+ return false;
253
+ }
254
+ try {
255
+ const canonical = realpathSync2(resolve3(trimmed));
256
+ if (!isAbsolute2(canonical) || !statSync3(canonical).isDirectory()) return false;
257
+ activeWorkspaceRoot = canonical;
258
+ return true;
259
+ } catch {
260
+ return false;
261
+ }
262
+ }
245
263
  function getNexusRepoDir() {
246
264
  if (process.env["NEXUS_REPO_PREFERRED"] === "0") return null;
247
265
  const fromEnv = process.env["NEXUS_DATA_DIR"]?.trim();
248
266
  if (fromEnv !== void 0 && fromEnv !== "") return null;
249
267
  if (detectSandbox().active) return null;
250
- const root = findRepoRoot(process.cwd());
268
+ const root = activeWorkspaceRoot ?? findRepoRoot(process.cwd());
251
269
  if (root === null) return null;
252
270
  maybeAutoGitignore(root);
253
271
  return join2(root, ".nexus-agents");
@@ -349,6 +367,7 @@ export {
349
367
  applyPortableMode,
350
368
  ensureGitignored,
351
369
  getNexusDataDir,
370
+ setActiveWorkspaceRoot,
352
371
  getNexusRepoDir,
353
372
  nexusDataPath,
354
373
  nexusDataPathEnsure,
@@ -356,4 +375,4 @@ export {
356
375
  getPerRepoSubdirs,
357
376
  sessionsDbPath
358
377
  };
359
- //# sourceMappingURL=chunk-L4QFWOOQ.js.map
378
+ //# sourceMappingURL=chunk-DHVMSIT5.js.map