nexus-agents 2.136.0 → 2.138.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/dist/{child-mcp-config-TM6OCARU.js → child-mcp-config-LCWPKOYE.js} +4 -4
  2. package/dist/{chunk-ZLENFXL5.js → chunk-2SWMXQZF.js} +4 -4
  3. package/dist/{chunk-MTE7THMR.js → chunk-52JN2RFG.js} +6 -6
  4. package/dist/{chunk-257QMFTM.js → chunk-5MMHH5WK.js} +3 -3
  5. package/dist/{chunk-66TXNH4S.js → chunk-7KFI6R2M.js} +9 -9
  6. package/dist/{chunk-VY4FZNZA.js → chunk-7QEGSYSU.js} +2 -2
  7. package/dist/{chunk-UH3F4RZB.js → chunk-7QR2RTA4.js} +7 -7
  8. package/dist/{chunk-GWOXPCIF.js → chunk-7XCQJXN4.js} +7 -7
  9. package/dist/{chunk-3WBEEYCS.js → chunk-AL7ZYHAF.js} +4 -4
  10. package/dist/{chunk-WOE5J5M6.js → chunk-AYA7K5F5.js} +4 -4
  11. package/dist/{chunk-3QH2KWLH.js → chunk-D2XWKFZ2.js} +2 -2
  12. package/dist/{chunk-L4QFWOOQ.js → chunk-DHVMSIT5.js} +22 -3
  13. package/dist/chunk-DHVMSIT5.js.map +1 -0
  14. package/dist/{chunk-7E5UXA4U.js → chunk-DKU7O4V2.js} +2 -2
  15. package/dist/{chunk-JK4L2TQ6.js → chunk-DOCEHXLQ.js} +3 -3
  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-ESP6U3LW.js → chunk-J2HWO3J3.js} +6 -6
  20. package/dist/{chunk-ZHCEOIEQ.js → chunk-JFKNUEZ7.js} +2 -2
  21. package/dist/{chunk-FIQSOSQU.js → chunk-K62WRHHK.js} +2 -2
  22. package/dist/{chunk-OCJEYHUQ.js → chunk-KWZC5LFC.js} +6 -6
  23. package/dist/{chunk-FHFEC2XM.js → chunk-LMMLLGZZ.js} +2 -2
  24. package/dist/{chunk-VN3CKPEF.js → chunk-MNHNQC7R.js} +3 -3
  25. package/dist/{chunk-FSUZIIOJ.js → chunk-MNXLJ2VX.js} +2 -2
  26. package/dist/{chunk-3AAJWZCR.js → chunk-MXDMJGVG.js} +4 -4
  27. package/dist/{chunk-JVZ7FGWR.js → chunk-NJW5GQUF.js} +3 -3
  28. package/dist/{chunk-5SXGPX34.js → chunk-NL7SZQPW.js} +2 -2
  29. package/dist/{chunk-N67LHY47.js → chunk-NWW7HLRL.js} +93 -33
  30. package/dist/chunk-NWW7HLRL.js.map +1 -0
  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-6JOXXQK2.js → chunk-R5ZQCA37.js} +44 -63
  35. package/dist/{chunk-6JOXXQK2.js.map → chunk-R5ZQCA37.js.map} +1 -1
  36. package/dist/{chunk-UGAKYSDO.js → chunk-RER74KD6.js} +2 -2
  37. package/dist/{chunk-3JSDOBOA.js → chunk-RTBVZCLD.js} +2 -2
  38. package/dist/{chunk-VVBKPRLI.js → chunk-XUH2UFSG.js} +2 -2
  39. package/dist/{chunk-ZII5MDUO.js → chunk-YPGTIJEW.js} +2 -2
  40. package/dist/{chunk-4GVPON4W.js → chunk-ZJ3WGARD.js} +3 -3
  41. package/dist/cli-circuit-breaker-TNV2PBLS.js +14 -0
  42. package/dist/cli.d.ts +1 -1
  43. package/dist/cli.js +117 -66
  44. package/dist/cli.js.map +1 -1
  45. package/dist/{composite-router-PS42433A.js → composite-router-KM4BPVY4.js} +4 -4
  46. package/dist/consensus-vote-PCIFXILX.js +39 -0
  47. package/dist/{consensus-vote-types-Dx4pf3YW.d.ts → consensus-vote-types-Qx_LRxt1.d.ts} +2 -1
  48. package/dist/{context-retriever-NIFXFYPQ.js → context-retriever-MAZKHYRD.js} +11 -11
  49. package/dist/doctor-deep-XCMFGGJ3.js +13 -0
  50. package/dist/{expert-bridge-NY6FAFQH.js → expert-bridge-EA3U3GKU.js} +6 -6
  51. package/dist/factory-FACKN4IN.js +22 -0
  52. package/dist/factory-Y5WCLQDB.js +15 -0
  53. package/dist/{improvement-review-JDSRWFHM.js → improvement-review-F7TKX4LQ.js} +6 -6
  54. package/dist/index.d.ts +6 -6
  55. package/dist/index.js +32 -32
  56. package/dist/{init-opencode-C7U6ZQK3.js → init-opencode-ZYGGEUZN.js} +8 -8
  57. package/dist/issue-triage-NI2ZDVTB.js +17 -0
  58. package/dist/{learning-persistence-EHTHKWR5.js → learning-persistence-M3OTCCNI.js} +3 -3
  59. package/dist/{pr-reviewer-helpers-D47TVXFX.js → pr-reviewer-helpers-L7L6O3VQ.js} +6 -6
  60. package/dist/{registry-command-PVC47NSQ.js → registry-command-K2KWID5D.js} +4 -4
  61. package/dist/{repo-security-plan-76IXMJNC.js → repo-security-plan-PCGHBEGZ.js} +5 -5
  62. package/dist/research-helpers-synthesize-R45KXXNH.js +15 -0
  63. package/dist/{routing-memory-RAYIYIUP.js → routing-memory-TLB5EY7J.js} +4 -4
  64. package/dist/{session-memory-WZCS7WDH.js → session-memory-PUEUWVIN.js} +5 -5
  65. package/dist/{setup-command-O62DVQ2U.js → setup-command-OHM6K4FM.js} +13 -13
  66. package/dist/setup-config-SLFGQ5F2.js +11 -0
  67. package/dist/{setup-custom-api-2PQP6UOT.js → setup-custom-api-SVCRCSKY.js} +5 -5
  68. package/dist/{tool-memory-RAQWOUXV.js → tool-memory-COQWIFB6.js} +8 -8
  69. package/dist/{tool-memory-registry-adapters-Y4EGADHN.js → tool-memory-registry-adapters-DLSE4SQH.js} +3 -3
  70. package/dist/unified-registry-44DIG4XK.js +25 -0
  71. package/dist/{weather-report-TEBEALS7.js → weather-report-WK7TJPMM.js} +4 -4
  72. package/package.json +1 -1
  73. package/dist/chunk-L4QFWOOQ.js.map +0 -1
  74. package/dist/chunk-N67LHY47.js.map +0 -1
  75. package/dist/cli-circuit-breaker-HFFMCA43.js +0 -14
  76. package/dist/consensus-vote-K2SHY4TC.js +0 -39
  77. package/dist/doctor-deep-VQQNT7VN.js +0 -13
  78. package/dist/factory-6A26HIWS.js +0 -15
  79. package/dist/factory-GGSACEWN.js +0 -22
  80. package/dist/issue-triage-7RN74LBU.js +0 -17
  81. package/dist/research-helpers-synthesize-WH4IC36H.js +0 -15
  82. package/dist/setup-config-KEBEUMC3.js +0 -11
  83. package/dist/unified-registry-L5PGLSEI.js +0 -25
  84. /package/dist/{child-mcp-config-TM6OCARU.js.map → child-mcp-config-LCWPKOYE.js.map} +0 -0
  85. /package/dist/{chunk-ZLENFXL5.js.map → chunk-2SWMXQZF.js.map} +0 -0
  86. /package/dist/{chunk-MTE7THMR.js.map → chunk-52JN2RFG.js.map} +0 -0
  87. /package/dist/{chunk-257QMFTM.js.map → chunk-5MMHH5WK.js.map} +0 -0
  88. /package/dist/{chunk-66TXNH4S.js.map → chunk-7KFI6R2M.js.map} +0 -0
  89. /package/dist/{chunk-VY4FZNZA.js.map → chunk-7QEGSYSU.js.map} +0 -0
  90. /package/dist/{chunk-UH3F4RZB.js.map → chunk-7QR2RTA4.js.map} +0 -0
  91. /package/dist/{chunk-GWOXPCIF.js.map → chunk-7XCQJXN4.js.map} +0 -0
  92. /package/dist/{chunk-3WBEEYCS.js.map → chunk-AL7ZYHAF.js.map} +0 -0
  93. /package/dist/{chunk-WOE5J5M6.js.map → chunk-AYA7K5F5.js.map} +0 -0
  94. /package/dist/{chunk-3QH2KWLH.js.map → chunk-D2XWKFZ2.js.map} +0 -0
  95. /package/dist/{chunk-7E5UXA4U.js.map → chunk-DKU7O4V2.js.map} +0 -0
  96. /package/dist/{chunk-JK4L2TQ6.js.map → chunk-DOCEHXLQ.js.map} +0 -0
  97. /package/dist/{chunk-KOVTOPEQ.js.map → chunk-DTHMBYSV.js.map} +0 -0
  98. /package/dist/{chunk-HMZT2SJK.js.map → chunk-H3B7H67H.js.map} +0 -0
  99. /package/dist/{chunk-7G63H7ZT.js.map → chunk-H4ATQPGQ.js.map} +0 -0
  100. /package/dist/{chunk-ESP6U3LW.js.map → chunk-J2HWO3J3.js.map} +0 -0
  101. /package/dist/{chunk-ZHCEOIEQ.js.map → chunk-JFKNUEZ7.js.map} +0 -0
  102. /package/dist/{chunk-FIQSOSQU.js.map → chunk-K62WRHHK.js.map} +0 -0
  103. /package/dist/{chunk-OCJEYHUQ.js.map → chunk-KWZC5LFC.js.map} +0 -0
  104. /package/dist/{chunk-FHFEC2XM.js.map → chunk-LMMLLGZZ.js.map} +0 -0
  105. /package/dist/{chunk-VN3CKPEF.js.map → chunk-MNHNQC7R.js.map} +0 -0
  106. /package/dist/{chunk-FSUZIIOJ.js.map → chunk-MNXLJ2VX.js.map} +0 -0
  107. /package/dist/{chunk-3AAJWZCR.js.map → chunk-MXDMJGVG.js.map} +0 -0
  108. /package/dist/{chunk-JVZ7FGWR.js.map → chunk-NJW5GQUF.js.map} +0 -0
  109. /package/dist/{chunk-5SXGPX34.js.map → chunk-NL7SZQPW.js.map} +0 -0
  110. /package/dist/{chunk-CQDGPGTL.js.map → chunk-NYSOJBF5.js.map} +0 -0
  111. /package/dist/{chunk-5546JU53.js.map → chunk-PLKWH53F.js.map} +0 -0
  112. /package/dist/{chunk-LCSGGLZZ.js.map → chunk-Q3EZN3Z2.js.map} +0 -0
  113. /package/dist/{chunk-UGAKYSDO.js.map → chunk-RER74KD6.js.map} +0 -0
  114. /package/dist/{chunk-3JSDOBOA.js.map → chunk-RTBVZCLD.js.map} +0 -0
  115. /package/dist/{chunk-VVBKPRLI.js.map → chunk-XUH2UFSG.js.map} +0 -0
  116. /package/dist/{chunk-ZII5MDUO.js.map → chunk-YPGTIJEW.js.map} +0 -0
  117. /package/dist/{chunk-4GVPON4W.js.map → chunk-ZJ3WGARD.js.map} +0 -0
  118. /package/dist/{cli-circuit-breaker-HFFMCA43.js.map → cli-circuit-breaker-TNV2PBLS.js.map} +0 -0
  119. /package/dist/{composite-router-PS42433A.js.map → composite-router-KM4BPVY4.js.map} +0 -0
  120. /package/dist/{consensus-vote-K2SHY4TC.js.map → consensus-vote-PCIFXILX.js.map} +0 -0
  121. /package/dist/{context-retriever-NIFXFYPQ.js.map → context-retriever-MAZKHYRD.js.map} +0 -0
  122. /package/dist/{doctor-deep-VQQNT7VN.js.map → doctor-deep-XCMFGGJ3.js.map} +0 -0
  123. /package/dist/{expert-bridge-NY6FAFQH.js.map → expert-bridge-EA3U3GKU.js.map} +0 -0
  124. /package/dist/{factory-6A26HIWS.js.map → factory-FACKN4IN.js.map} +0 -0
  125. /package/dist/{factory-GGSACEWN.js.map → factory-Y5WCLQDB.js.map} +0 -0
  126. /package/dist/{improvement-review-JDSRWFHM.js.map → improvement-review-F7TKX4LQ.js.map} +0 -0
  127. /package/dist/{init-opencode-C7U6ZQK3.js.map → init-opencode-ZYGGEUZN.js.map} +0 -0
  128. /package/dist/{issue-triage-7RN74LBU.js.map → issue-triage-NI2ZDVTB.js.map} +0 -0
  129. /package/dist/{learning-persistence-EHTHKWR5.js.map → learning-persistence-M3OTCCNI.js.map} +0 -0
  130. /package/dist/{pr-reviewer-helpers-D47TVXFX.js.map → pr-reviewer-helpers-L7L6O3VQ.js.map} +0 -0
  131. /package/dist/{registry-command-PVC47NSQ.js.map → registry-command-K2KWID5D.js.map} +0 -0
  132. /package/dist/{repo-security-plan-76IXMJNC.js.map → repo-security-plan-PCGHBEGZ.js.map} +0 -0
  133. /package/dist/{research-helpers-synthesize-WH4IC36H.js.map → research-helpers-synthesize-R45KXXNH.js.map} +0 -0
  134. /package/dist/{routing-memory-RAYIYIUP.js.map → routing-memory-TLB5EY7J.js.map} +0 -0
  135. /package/dist/{session-memory-WZCS7WDH.js.map → session-memory-PUEUWVIN.js.map} +0 -0
  136. /package/dist/{setup-command-O62DVQ2U.js.map → setup-command-OHM6K4FM.js.map} +0 -0
  137. /package/dist/{setup-config-KEBEUMC3.js.map → setup-config-SLFGQ5F2.js.map} +0 -0
  138. /package/dist/{setup-custom-api-2PQP6UOT.js.map → setup-custom-api-SVCRCSKY.js.map} +0 -0
  139. /package/dist/{tool-memory-RAQWOUXV.js.map → tool-memory-COQWIFB6.js.map} +0 -0
  140. /package/dist/{tool-memory-registry-adapters-Y4EGADHN.js.map → tool-memory-registry-adapters-DLSE4SQH.js.map} +0 -0
  141. /package/dist/{unified-registry-L5PGLSEI.js.map → unified-registry-44DIG4XK.js.map} +0 -0
  142. /package/dist/{weather-report-TEBEALS7.js.map → weather-report-WK7TJPMM.js.map} +0 -0
@@ -2,14 +2,14 @@ import {
2
2
  CircuitBreakerRegistry,
3
3
  CircuitError,
4
4
  mapCliErrorToCategory
5
- } from "./chunk-7G63H7ZT.js";
5
+ } from "./chunk-H4ATQPGQ.js";
6
6
  import {
7
7
  createLogger,
8
8
  err,
9
9
  getFallbackChainForCategory,
10
10
  getTimeProvider,
11
11
  ok
12
- } from "./chunk-OCJEYHUQ.js";
12
+ } from "./chunk-KWZC5LFC.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-CQDGPGTL.js.map
155
+ //# sourceMappingURL=chunk-NYSOJBF5.js.map
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  resolveToken
3
- } from "./chunk-FHFEC2XM.js";
3
+ } from "./chunk-LMMLLGZZ.js";
4
4
  import {
5
5
  REGISTRY_PATH,
6
6
  getProjectRoot,
7
7
  loadPapersRegistry,
8
8
  loadTechniquesRegistry,
9
9
  savePapersRegistry
10
- } from "./chunk-ZHCEOIEQ.js";
10
+ } from "./chunk-JFKNUEZ7.js";
11
11
  import {
12
12
  resolveInsideRoot
13
13
  } from "./chunk-NUBSJGQZ.js";
14
14
  import {
15
15
  getToolMemory
16
- } from "./chunk-ESP6U3LW.js";
16
+ } from "./chunk-J2HWO3J3.js";
17
17
  import {
18
18
  capitalizeWords
19
19
  } from "./chunk-6T3EPABN.js";
@@ -27,11 +27,11 @@ import {
27
27
  getOutcomeStore,
28
28
  getTimeProvider,
29
29
  registerPersistentDistillerFactory
30
- } from "./chunk-OCJEYHUQ.js";
30
+ } from "./chunk-KWZC5LFC.js";
31
31
  import {
32
32
  ensureLearningDir,
33
33
  getRulesFile
34
- } from "./chunk-5SXGPX34.js";
34
+ } from "./chunk-NL7SZQPW.js";
35
35
 
36
36
  // src/learning/strategy-distiller-persistence.ts
37
37
  import { writeFileSync, readFileSync, renameSync, unlinkSync, existsSync } from "fs";
@@ -2686,4 +2686,4 @@ export {
2686
2686
  summarizeContextForPrompt,
2687
2687
  getContextPromptPrefix
2688
2688
  };
2689
- //# sourceMappingURL=chunk-5546JU53.js.map
2689
+ //# sourceMappingURL=chunk-PLKWH53F.js.map
@@ -2,7 +2,7 @@ import {
2
2
  TASK_CATEGORIES,
3
3
  getAdaptiveBonus,
4
4
  getOutcomeStore
5
- } from "./chunk-OCJEYHUQ.js";
5
+ } from "./chunk-KWZC5LFC.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-LCSGGLZZ.js.map
109
+ //# sourceMappingURL=chunk-Q3EZN3Z2.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-7KFI6R2M.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-NWW7HLRL.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);
@@ -40046,32 +40046,6 @@ var TierTransitionPayloadSchema = z85.object({
40046
40046
  ratificationVoteRef: z85.string().min(1).optional()
40047
40047
  }).strict();
40048
40048
  var TIER_TRANSITION_METADATA_KEY = "tierTransition";
40049
- var RatificationVoteSchema = z85.object({
40050
- /** The ref a tier-transition's `ratificationVoteRef` must equal to resolve. */
40051
- id: z85.string().min(1),
40052
- /** The loop/strategy the vote ratified (cross-checked against the transition subject). */
40053
- subject: z85.string().min(1),
40054
- /**
40055
- * The recorded decision. Only `approved` ratifies a promotion; `rejected`
40056
- * fails the gate (`promotion-ratification-not-approved`).
40057
- */
40058
- decision: z85.enum(["approved", "rejected"]),
40059
- /**
40060
- * The voting strategy. A promotion is governance-of-the-governor and must be
40061
- * ratified by a `higher_order` consensus_vote (ADR-0017).
40062
- */
40063
- strategy: z85.enum(["higher_order", "simple_majority", "supermajority", "unanimous"]),
40064
- /** ISO-8601 timestamp the vote was recorded. */
40065
- votedAt: z85.string().min(1),
40066
- /** Optional approval fraction / quorum detail, for the human record. */
40067
- approvalPercentage: z85.number().min(0).max(100).optional(),
40068
- /** Optional link to the vote artifact / issue thread for the human record. */
40069
- voteUri: z85.string().min(1).optional()
40070
- }).strict();
40071
- var RatificationVoteLedgerSchema = z85.object({
40072
- version: z85.number().int().positive(),
40073
- votes: z85.array(RatificationVoteSchema)
40074
- }).strict();
40075
40049
  var AuditSeveritySchema = z85.enum([
40076
40050
  "info",
40077
40051
  // Normal operations
@@ -41389,7 +41363,7 @@ async function tryIssueTriage(task) {
41389
41363
  try {
41390
41364
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
41391
41365
  if (issueMatch === null) return null;
41392
- const { createIssueTriage } = await import("./issue-triage-7RN74LBU.js");
41366
+ const { createIssueTriage } = await import("./issue-triage-NI2ZDVTB.js");
41393
41367
  const triage = createIssueTriage();
41394
41368
  const owner = issueMatch[1] ?? "";
41395
41369
  const num = issueMatch[2] ?? "";
@@ -41417,7 +41391,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
41417
41391
  ]);
41418
41392
  async function classifyWithLLM(task) {
41419
41393
  try {
41420
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-NY6FAFQH.js");
41394
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-EA3U3GKU.js");
41421
41395
  const prompt = [
41422
41396
  "Classify this task into exactly one pipeline template.",
41423
41397
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -43183,8 +43157,8 @@ var memoryInitPromise = null;
43183
43157
  async function initPipelineMemory() {
43184
43158
  if (cachedMemory !== null) return cachedMemory;
43185
43159
  try {
43186
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-WZCS7WDH.js");
43187
- const { getLearningDir } = await import("./learning-persistence-EHTHKWR5.js");
43160
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-PUEUWVIN.js");
43161
+ const { getLearningDir } = await import("./learning-persistence-M3OTCCNI.js");
43188
43162
  const mem = createSessionMemory2(getLearningDir());
43189
43163
  mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
43190
43164
  cachedMemory = {
@@ -43245,7 +43219,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
43245
43219
  callRecord(routingMemoryCache);
43246
43220
  return;
43247
43221
  }
43248
- routingMemoryInitPromise ??= import("./routing-memory-RAYIYIUP.js").then(({ createRoutingMemory }) => {
43222
+ routingMemoryInitPromise ??= import("./routing-memory-TLB5EY7J.js").then(({ createRoutingMemory }) => {
43249
43223
  routingMemoryCache ??= createRoutingMemory();
43250
43224
  return routingMemoryCache;
43251
43225
  }).catch((error) => {
@@ -43279,7 +43253,7 @@ ${text}` : "";
43279
43253
  }
43280
43254
  async function getWeatherContext() {
43281
43255
  try {
43282
- const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-TEBEALS7.js");
43256
+ const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-WK7TJPMM.js");
43283
43257
  const report = generateWeatherReport2({ includeAdaptive: true });
43284
43258
  const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
43285
43259
  if (!Array.isArray(mappings) || mappings.length === 0) return "";
@@ -43297,8 +43271,8 @@ ${lines}
43297
43271
  }
43298
43272
  async function getMemoryContext(task) {
43299
43273
  try {
43300
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-WZCS7WDH.js");
43301
- const { getLearningDir } = await import("./learning-persistence-EHTHKWR5.js");
43274
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-PUEUWVIN.js");
43275
+ const { getLearningDir } = await import("./learning-persistence-M3OTCCNI.js");
43302
43276
  const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
43303
43277
  const learnings = memory.searchLearnings(task.slice(0, 200));
43304
43278
  if (learnings.length === 0) return "";
@@ -43409,7 +43383,7 @@ ${contextBlock}`;
43409
43383
  const strategy = config.votingStrategy ?? "higher_order";
43410
43384
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
43411
43385
  try {
43412
- const { executeVoting } = await import("./consensus-vote-K2SHY4TC.js");
43386
+ const { executeVoting } = await import("./consensus-vote-PCIFXILX.js");
43413
43387
  const votingResult = await executeVoting(
43414
43388
  {
43415
43389
  proposal: buildVoteProposal(plan, research),
@@ -43846,7 +43820,7 @@ async function searchCodebaseForTask(task) {
43846
43820
  }
43847
43821
  async function queryResearchRegistry(task) {
43848
43822
  try {
43849
- const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-WH4IC36H.js");
43823
+ const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-R45KXXNH.js");
43850
43824
  const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
43851
43825
  if (topic === void 0) return null;
43852
43826
  const result = await synthesizeResearch2(topic.slice(0, 50));
@@ -43917,7 +43891,7 @@ function createScanStageWrapper() {
43917
43891
  try {
43918
43892
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
43919
43893
  if (slug !== void 0) {
43920
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-76IXMJNC.js");
43894
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-PCGHBEGZ.js");
43921
43895
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
43922
43896
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
43923
43897
  return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
@@ -46023,7 +45997,7 @@ var GitHubTaskTracker = class {
46023
45997
  cachedProvider = null;
46024
45998
  async getProvider() {
46025
45999
  if (this.cachedProvider !== null) return this.cachedProvider;
46026
- const { createScmProvider } = await import("./factory-6A26HIWS.js");
46000
+ const { createScmProvider } = await import("./factory-Y5WCLQDB.js");
46027
46001
  const result = await createScmProvider({ repo: this.config.repo ?? "" });
46028
46002
  if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
46029
46003
  this.cachedProvider = result.value;
@@ -46633,6 +46607,13 @@ function buildDefaultExecutors(trustTier) {
46633
46607
  return {
46634
46608
  "dev-pipeline": (_decision, metaInput) => runDevPipelineForGoal(metaInput.goal, trustTier),
46635
46609
  pipeline: (_decision, metaInput) => runPipelineForGoal(metaInput.goal),
46610
+ // #3988: `research` deliberately ALIASES the `pipeline` engine — it runs the
46611
+ // SAME generic stage registry (selectStageRegistry only branches greenfield/
46612
+ // audit), shaped by the goal text, NOT a distinct research stage registry.
46613
+ // The registry's research `entrypointTool` already points at run_pipeline, so
46614
+ // this is intended aliasing, not a distinct executor. A real research-shaped
46615
+ // registry is a feature with no current consumer (YAGNI) — add it only when a
46616
+ // named loop needs research-specific stages; until then research==pipeline.
46636
46617
  research: (_decision, metaInput) => runPipelineForGoal(metaInput.goal),
46637
46618
  consensus: (_decision, metaInput) => runConsensusForGoal(metaInput.goal)
46638
46619
  };
@@ -46788,7 +46769,7 @@ async function probeSource(source, includeModelIds) {
46788
46769
  }
46789
46770
  }
46790
46771
  async function defaultSources(includeOpenRouter) {
46791
- const { createAllAdapters: createAllAdapters2 } = await import("./factory-GGSACEWN.js");
46772
+ const { createAllAdapters: createAllAdapters2 } = await import("./factory-FACKN4IN.js");
46792
46773
  const adapters = createAllAdapters2();
46793
46774
  return buildDefaultModelSources(adapters, { includeOpenRouter });
46794
46775
  }
@@ -50911,4 +50892,4 @@ export {
50911
50892
  shutdownFeedbackSubscriber,
50912
50893
  createEventBusBridge
50913
50894
  };
50914
- //# sourceMappingURL=chunk-6JOXXQK2.js.map
50895
+ //# sourceMappingURL=chunk-R5ZQCA37.js.map