nexus-agents 8.31.0 → 8.31.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/{ast-rule-runner-S2FVYD3R.js → ast-rule-runner-O7XM7DPM.js} +3 -3
  2. package/dist/{child-mcp-config-LZFSRS2Y.js → child-mcp-config-KQ2FHXLS.js} +2 -2
  3. package/dist/{chunk-PF452UB3.js → chunk-3UE7LTKR.js} +2 -2
  4. package/dist/{chunk-VAMUAAXY.js → chunk-5WF5RIMB.js} +2 -2
  5. package/dist/{chunk-Q42ZZU7R.js → chunk-6BFB5ZUZ.js} +5 -5
  6. package/dist/{chunk-3ZVZXXRY.js → chunk-74HBGCRX.js} +9 -9
  7. package/dist/{chunk-K6PI22W5.js → chunk-B6IRVMCB.js} +8 -8
  8. package/dist/{chunk-T2BLFRBW.js → chunk-BUK27VKL.js} +16 -5
  9. package/dist/chunk-BUK27VKL.js.map +1 -0
  10. package/dist/{chunk-42LDWYPF.js → chunk-DNTAD6VB.js} +4 -4
  11. package/dist/{chunk-YEURRBMU.js → chunk-EBEH4DJW.js} +3 -3
  12. package/dist/{chunk-JR6IWC53.js → chunk-EE3BENLO.js} +4 -4
  13. package/dist/{chunk-LE5GD6MT.js → chunk-EPMYCTAM.js} +7 -7
  14. package/dist/{chunk-UDWIG4UI.js → chunk-GGJFM56X.js} +6 -6
  15. package/dist/{chunk-SSSIXL27.js → chunk-HB5RNZCH.js} +2 -2
  16. package/dist/{chunk-JXSN4V34.js → chunk-HJNBG6GZ.js} +2 -2
  17. package/dist/{chunk-D66ZGEMC.js → chunk-HLM3OF6V.js} +3 -3
  18. package/dist/{chunk-WU3N4Q2W.js → chunk-JTJFEJ4V.js} +18 -8
  19. package/dist/chunk-JTJFEJ4V.js.map +1 -0
  20. package/dist/{chunk-5RQLXO7L.js → chunk-KIEQ32E4.js} +2 -2
  21. package/dist/{chunk-GRZDF5LY.js → chunk-L2FD3A3D.js} +2 -2
  22. package/dist/{chunk-E3WQANII.js → chunk-LL6GK5QZ.js} +2 -2
  23. package/dist/{chunk-RRI3M73Y.js → chunk-M34BWXLK.js} +44 -42
  24. package/dist/{chunk-RRI3M73Y.js.map → chunk-M34BWXLK.js.map} +1 -1
  25. package/dist/{chunk-ZYLE33GL.js → chunk-MPL7HJUT.js} +7 -7
  26. package/dist/{chunk-THC72SMO.js → chunk-NB6V6K4F.js} +2 -2
  27. package/dist/{chunk-E7A6CTUR.js → chunk-NFSMF7EF.js} +2 -2
  28. package/dist/{chunk-SPRKLIH2.js → chunk-NMCAXGG2.js} +2 -2
  29. package/dist/{chunk-RFHNPEC6.js → chunk-NTO3S3UF.js} +2 -2
  30. package/dist/{chunk-OBNNU2P7.js → chunk-PL7KHCY3.js} +2 -2
  31. package/dist/{chunk-OWHOQY3U.js → chunk-R6EFVD5N.js} +2 -2
  32. package/dist/{chunk-J5DOKTMY.js → chunk-SIJ3G533.js} +2 -2
  33. package/dist/{chunk-ATIYWDZI.js → chunk-T2YQEL6R.js} +4 -4
  34. package/dist/{chunk-DOR65KQC.js → chunk-UWUAQQT6.js} +4 -4
  35. package/dist/{chunk-5QJRFE7P.js → chunk-VQ65ZJU5.js} +2 -2
  36. package/dist/{chunk-JANMYVKT.js → chunk-VSJK5CB4.js} +2 -2
  37. package/dist/{chunk-MMOFBPGE.js → chunk-W6IAKNSF.js} +2 -2
  38. package/dist/{chunk-KZ6ANGFK.js → chunk-WYHXZRC5.js} +2 -2
  39. package/dist/{chunk-Y3NGTK3H.js → chunk-XY7F7TPT.js} +5 -5
  40. package/dist/{cli-circuit-breaker-NOBHCTID.js → cli-circuit-breaker-24LMZ2UI.js} +3 -3
  41. package/dist/cli.js +43 -43
  42. package/dist/{composite-router-BFODQAKW.js → composite-router-ALACKC2H.js} +2 -2
  43. package/dist/{consensus-vote-AJ6SWE4U.js → consensus-vote-3N2SXR57.js} +17 -17
  44. package/dist/{context-retriever-FZCJ7DQI.js → context-retriever-HCDDUCJA.js} +8 -8
  45. package/dist/{doctor-deep-ZJUIDJCR.js → doctor-deep-PHTRQAAC.js} +3 -3
  46. package/dist/{doctor-live-V3AV42NV.js → doctor-live-5SCU3XCP.js} +9 -9
  47. package/dist/{expert-bridge-TKTD3AEX.js → expert-bridge-BLAMZDSB.js} +4 -4
  48. package/dist/{factory-7RV4LG54.js → factory-DHGWNH7U.js} +5 -5
  49. package/dist/{factory-ZQKRK46A.js → factory-RZ67ZSKZ.js} +9 -9
  50. package/dist/{improvement-review-MY2U3VKI.js → improvement-review-SEGU2S5L.js} +6 -6
  51. package/dist/index.js +31 -31
  52. package/dist/{init-opencode-GVEFQQRA.js → init-opencode-IJEQMQLB.js} +6 -6
  53. package/dist/issue-triage-GKCZAHJU.js +17 -0
  54. package/dist/{pr-reviewer-helpers-HVZ5GHP4.js → pr-reviewer-helpers-G3BSLDNC.js} +4 -4
  55. package/dist/{registry-command-JRLICAVI.js → registry-command-FUZ7672W.js} +2 -2
  56. package/dist/{repo-security-plan-RC4C3JTS.js → repo-security-plan-KYTPPI5M.js} +3 -3
  57. package/dist/{research-helpers-synthesize-E4RMSBRM.js → research-helpers-synthesize-OZMVILW3.js} +4 -4
  58. package/dist/{routing-memory-DFEBGRQB.js → routing-memory-SUAELMFZ.js} +2 -2
  59. package/dist/{session-memory-6BC5OGJS.js → session-memory-UVFDZJMY.js} +3 -3
  60. package/dist/{setup-config-5UAZU4PI.js → setup-config-PUJXXZOM.js} +3 -3
  61. package/dist/{setup-custom-api-5ZGDSRK2.js → setup-custom-api-2BJVEIL5.js} +4 -4
  62. package/dist/setup-data-dir-52JC3POB.js +29 -0
  63. package/dist/{tool-memory-URZEDJRJ.js → tool-memory-BZB4QTSZ.js} +5 -5
  64. package/dist/{unified-registry-B2YQOYQ4.js → unified-registry-Q37NG62V.js} +10 -10
  65. package/dist/{weather-report-XEZDPSZM.js → weather-report-X4LWY66B.js} +2 -2
  66. package/package.json +1 -1
  67. package/dist/chunk-T2BLFRBW.js.map +0 -1
  68. package/dist/chunk-WU3N4Q2W.js.map +0 -1
  69. package/dist/issue-triage-NZLA75GB.js +0 -17
  70. package/dist/setup-data-dir-T2ZTIRXS.js +0 -29
  71. /package/dist/{ast-rule-runner-S2FVYD3R.js.map → ast-rule-runner-O7XM7DPM.js.map} +0 -0
  72. /package/dist/{child-mcp-config-LZFSRS2Y.js.map → child-mcp-config-KQ2FHXLS.js.map} +0 -0
  73. /package/dist/{chunk-PF452UB3.js.map → chunk-3UE7LTKR.js.map} +0 -0
  74. /package/dist/{chunk-VAMUAAXY.js.map → chunk-5WF5RIMB.js.map} +0 -0
  75. /package/dist/{chunk-Q42ZZU7R.js.map → chunk-6BFB5ZUZ.js.map} +0 -0
  76. /package/dist/{chunk-3ZVZXXRY.js.map → chunk-74HBGCRX.js.map} +0 -0
  77. /package/dist/{chunk-K6PI22W5.js.map → chunk-B6IRVMCB.js.map} +0 -0
  78. /package/dist/{chunk-42LDWYPF.js.map → chunk-DNTAD6VB.js.map} +0 -0
  79. /package/dist/{chunk-YEURRBMU.js.map → chunk-EBEH4DJW.js.map} +0 -0
  80. /package/dist/{chunk-JR6IWC53.js.map → chunk-EE3BENLO.js.map} +0 -0
  81. /package/dist/{chunk-LE5GD6MT.js.map → chunk-EPMYCTAM.js.map} +0 -0
  82. /package/dist/{chunk-UDWIG4UI.js.map → chunk-GGJFM56X.js.map} +0 -0
  83. /package/dist/{chunk-SSSIXL27.js.map → chunk-HB5RNZCH.js.map} +0 -0
  84. /package/dist/{chunk-JXSN4V34.js.map → chunk-HJNBG6GZ.js.map} +0 -0
  85. /package/dist/{chunk-D66ZGEMC.js.map → chunk-HLM3OF6V.js.map} +0 -0
  86. /package/dist/{chunk-5RQLXO7L.js.map → chunk-KIEQ32E4.js.map} +0 -0
  87. /package/dist/{chunk-GRZDF5LY.js.map → chunk-L2FD3A3D.js.map} +0 -0
  88. /package/dist/{chunk-E3WQANII.js.map → chunk-LL6GK5QZ.js.map} +0 -0
  89. /package/dist/{chunk-ZYLE33GL.js.map → chunk-MPL7HJUT.js.map} +0 -0
  90. /package/dist/{chunk-THC72SMO.js.map → chunk-NB6V6K4F.js.map} +0 -0
  91. /package/dist/{chunk-E7A6CTUR.js.map → chunk-NFSMF7EF.js.map} +0 -0
  92. /package/dist/{chunk-SPRKLIH2.js.map → chunk-NMCAXGG2.js.map} +0 -0
  93. /package/dist/{chunk-RFHNPEC6.js.map → chunk-NTO3S3UF.js.map} +0 -0
  94. /package/dist/{chunk-OBNNU2P7.js.map → chunk-PL7KHCY3.js.map} +0 -0
  95. /package/dist/{chunk-OWHOQY3U.js.map → chunk-R6EFVD5N.js.map} +0 -0
  96. /package/dist/{chunk-J5DOKTMY.js.map → chunk-SIJ3G533.js.map} +0 -0
  97. /package/dist/{chunk-ATIYWDZI.js.map → chunk-T2YQEL6R.js.map} +0 -0
  98. /package/dist/{chunk-DOR65KQC.js.map → chunk-UWUAQQT6.js.map} +0 -0
  99. /package/dist/{chunk-5QJRFE7P.js.map → chunk-VQ65ZJU5.js.map} +0 -0
  100. /package/dist/{chunk-JANMYVKT.js.map → chunk-VSJK5CB4.js.map} +0 -0
  101. /package/dist/{chunk-MMOFBPGE.js.map → chunk-W6IAKNSF.js.map} +0 -0
  102. /package/dist/{chunk-KZ6ANGFK.js.map → chunk-WYHXZRC5.js.map} +0 -0
  103. /package/dist/{chunk-Y3NGTK3H.js.map → chunk-XY7F7TPT.js.map} +0 -0
  104. /package/dist/{cli-circuit-breaker-NOBHCTID.js.map → cli-circuit-breaker-24LMZ2UI.js.map} +0 -0
  105. /package/dist/{composite-router-BFODQAKW.js.map → composite-router-ALACKC2H.js.map} +0 -0
  106. /package/dist/{consensus-vote-AJ6SWE4U.js.map → consensus-vote-3N2SXR57.js.map} +0 -0
  107. /package/dist/{context-retriever-FZCJ7DQI.js.map → context-retriever-HCDDUCJA.js.map} +0 -0
  108. /package/dist/{doctor-deep-ZJUIDJCR.js.map → doctor-deep-PHTRQAAC.js.map} +0 -0
  109. /package/dist/{doctor-live-V3AV42NV.js.map → doctor-live-5SCU3XCP.js.map} +0 -0
  110. /package/dist/{expert-bridge-TKTD3AEX.js.map → expert-bridge-BLAMZDSB.js.map} +0 -0
  111. /package/dist/{factory-7RV4LG54.js.map → factory-DHGWNH7U.js.map} +0 -0
  112. /package/dist/{factory-ZQKRK46A.js.map → factory-RZ67ZSKZ.js.map} +0 -0
  113. /package/dist/{improvement-review-MY2U3VKI.js.map → improvement-review-SEGU2S5L.js.map} +0 -0
  114. /package/dist/{init-opencode-GVEFQQRA.js.map → init-opencode-IJEQMQLB.js.map} +0 -0
  115. /package/dist/{issue-triage-NZLA75GB.js.map → issue-triage-GKCZAHJU.js.map} +0 -0
  116. /package/dist/{pr-reviewer-helpers-HVZ5GHP4.js.map → pr-reviewer-helpers-G3BSLDNC.js.map} +0 -0
  117. /package/dist/{registry-command-JRLICAVI.js.map → registry-command-FUZ7672W.js.map} +0 -0
  118. /package/dist/{repo-security-plan-RC4C3JTS.js.map → repo-security-plan-KYTPPI5M.js.map} +0 -0
  119. /package/dist/{research-helpers-synthesize-E4RMSBRM.js.map → research-helpers-synthesize-OZMVILW3.js.map} +0 -0
  120. /package/dist/{routing-memory-DFEBGRQB.js.map → routing-memory-SUAELMFZ.js.map} +0 -0
  121. /package/dist/{session-memory-6BC5OGJS.js.map → session-memory-UVFDZJMY.js.map} +0 -0
  122. /package/dist/{setup-config-5UAZU4PI.js.map → setup-config-PUJXXZOM.js.map} +0 -0
  123. /package/dist/{setup-custom-api-5ZGDSRK2.js.map → setup-custom-api-2BJVEIL5.js.map} +0 -0
  124. /package/dist/{setup-data-dir-T2ZTIRXS.js.map → setup-data-dir-52JC3POB.js.map} +0 -0
  125. /package/dist/{tool-memory-URZEDJRJ.js.map → tool-memory-BZB4QTSZ.js.map} +0 -0
  126. /package/dist/{unified-registry-B2YQOYQ4.js.map → unified-registry-Q37NG62V.js.map} +0 -0
  127. /package/dist/{weather-report-XEZDPSZM.js.map → weather-report-X4LWY66B.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider
7
- } from "./chunk-WU3N4Q2W.js";
7
+ } from "./chunk-JTJFEJ4V.js";
8
8
 
9
9
  // src/mcp/tools/scanner-registry-fetcher.ts
10
10
  import { z } from "zod";
@@ -721,4 +721,4 @@ export {
721
721
  generateSecurityPlan,
722
722
  buildPlanFromAnalysis
723
723
  };
724
- //# sourceMappingURL=chunk-5RQLXO7L.js.map
724
+ //# sourceMappingURL=chunk-KIEQ32E4.js.map
@@ -5,7 +5,7 @@ import {
5
5
  err,
6
6
  getErrorMessage,
7
7
  ok
8
- } from "./chunk-WU3N4Q2W.js";
8
+ } from "./chunk-JTJFEJ4V.js";
9
9
  import {
10
10
  findRepoRoot,
11
11
  getActiveWorkspaceRoot,
@@ -223,4 +223,4 @@ export {
223
223
  loadPapersRegistry,
224
224
  savePapersRegistry
225
225
  };
226
- //# sourceMappingURL=chunk-GRZDF5LY.js.map
226
+ //# sourceMappingURL=chunk-L2FD3A3D.js.map
@@ -3,7 +3,7 @@ import {
3
3
  ValidationError,
4
4
  createLogger,
5
5
  formatZodError
6
- } from "./chunk-WU3N4Q2W.js";
6
+ } from "./chunk-JTJFEJ4V.js";
7
7
 
8
8
  // src/security/ast-rule-runner.ts
9
9
  import { existsSync } from "node:fs";
@@ -241,4 +241,4 @@ export {
241
241
  collectAstQaFindings,
242
242
  runAstQaRules
243
243
  };
244
- //# sourceMappingURL=chunk-E3WQANII.js.map
244
+ //# sourceMappingURL=chunk-LL6GK5QZ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateSecurityPlan
3
- } from "./chunk-5RQLXO7L.js";
3
+ } from "./chunk-KIEQ32E4.js";
4
4
  import {
5
5
  analyzeGitHubRepo
6
6
  } from "./chunk-DGWT7DXX.js";
@@ -21,10 +21,10 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-ZYLE33GL.js";
24
+ } from "./chunk-MPL7HJUT.js";
25
25
  import {
26
26
  executeExpert
27
- } from "./chunk-LE5GD6MT.js";
27
+ } from "./chunk-EPMYCTAM.js";
28
28
  import {
29
29
  JobStatusSchema,
30
30
  VOTER_ROLES,
@@ -55,7 +55,7 @@ import {
55
55
  toJobSummary,
56
56
  updateStage,
57
57
  writeJobCancelled
58
- } from "./chunk-3ZVZXXRY.js";
58
+ } from "./chunk-74HBGCRX.js";
59
59
  import {
60
60
  allOf,
61
61
  anyOf
@@ -63,19 +63,19 @@ import {
63
63
  import {
64
64
  normalizeTopicToCanonical,
65
65
  synthesizeResearch
66
- } from "./chunk-D66ZGEMC.js";
66
+ } from "./chunk-HLM3OF6V.js";
67
67
  import {
68
68
  IssueTriage,
69
69
  createDurableAuditSink,
70
70
  createDurableAuditTrail
71
- } from "./chunk-UDWIG4UI.js";
71
+ } from "./chunk-GGJFM56X.js";
72
72
  import {
73
73
  resolveEnvMode,
74
74
  sanitizeInput
75
- } from "./chunk-J5DOKTMY.js";
75
+ } from "./chunk-SIJ3G533.js";
76
76
  import {
77
77
  withPrerequisite
78
- } from "./chunk-YEURRBMU.js";
78
+ } from "./chunk-EBEH4DJW.js";
79
79
  import {
80
80
  NOOP_NOTIFIER,
81
81
  RateLimiter,
@@ -100,18 +100,18 @@ import {
100
100
  withAuditTrail,
101
101
  withProgressHeartbeat,
102
102
  wrapToolWithTimeout
103
- } from "./chunk-42LDWYPF.js";
103
+ } from "./chunk-DNTAD6VB.js";
104
104
  import {
105
105
  createAuditTrail,
106
106
  createGraphAuditBridge,
107
107
  emitPipelinePolicyEvent
108
- } from "./chunk-JANMYVKT.js";
108
+ } from "./chunk-VSJK5CB4.js";
109
109
  import {
110
110
  EventTopics,
111
111
  createEvent,
112
112
  getGlobalEventBus,
113
113
  getGlobalRegistry
114
- } from "./chunk-JR6IWC53.js";
114
+ } from "./chunk-EE3BENLO.js";
115
115
  import {
116
116
  IDENTIFIER_RE,
117
117
  LANG_VALUES,
@@ -144,7 +144,7 @@ import {
144
144
  parseRegistry,
145
145
  sourceExistsInRegistry,
146
146
  summarizeContextForPrompt
147
- } from "./chunk-Y3NGTK3H.js";
147
+ } from "./chunk-XY7F7TPT.js";
148
148
  import {
149
149
  REGISTRY_PATH,
150
150
  getProjectRoot,
@@ -152,25 +152,25 @@ import {
152
152
  loadTechniquesRegistry,
153
153
  resolveInsideRoot,
154
154
  resolveRegistryRoot
155
- } from "./chunk-GRZDF5LY.js";
155
+ } from "./chunk-L2FD3A3D.js";
156
156
  import {
157
157
  getTokenEnvVars,
158
158
  resolveToken
159
- } from "./chunk-OBNNU2P7.js";
159
+ } from "./chunk-PL7KHCY3.js";
160
160
  import {
161
161
  DEFAULT_RELEVANCE_CONFIG,
162
162
  MemoryImportance,
163
163
  MemoryType,
164
164
  calculateTextJaccardSimilarity,
165
165
  getToolMemory
166
- } from "./chunk-ATIYWDZI.js";
166
+ } from "./chunk-T2YQEL6R.js";
167
167
  import {
168
168
  STOPWORDS,
169
169
  truncateWithInfo
170
170
  } from "./chunk-7LP6VJRP.js";
171
171
  import {
172
172
  createSessionMemory
173
- } from "./chunk-MMOFBPGE.js";
173
+ } from "./chunk-W6IAKNSF.js";
174
174
  import {
175
175
  BUILT_IN_EXPERTS,
176
176
  BuiltInExpertTypeSchema,
@@ -188,25 +188,25 @@ import {
188
188
  getAvailableClis,
189
189
  sleep,
190
190
  withTimeout
191
- } from "./chunk-K6PI22W5.js";
191
+ } from "./chunk-B6IRVMCB.js";
192
192
  import {
193
193
  BaseAdapter,
194
194
  createStream,
195
195
  requireApiKey,
196
196
  validateApiKeyPresence
197
- } from "./chunk-VAMUAAXY.js";
197
+ } from "./chunk-5WF5RIMB.js";
198
198
  import {
199
199
  DEFAULTS
200
- } from "./chunk-E7A6CTUR.js";
200
+ } from "./chunk-NFSMF7EF.js";
201
201
  import {
202
202
  getAvailabilityCache,
203
203
  getCliForModelId,
204
204
  resolveFallback
205
- } from "./chunk-KZ6ANGFK.js";
205
+ } from "./chunk-WYHXZRC5.js";
206
206
  import {
207
207
  generateHyphenId,
208
208
  generateUUID
209
- } from "./chunk-JXSN4V34.js";
209
+ } from "./chunk-HJNBG6GZ.js";
210
210
  import {
211
211
  AGENT_ROUTER_TIMEOUTS,
212
212
  API_TIMEOUTS,
@@ -313,7 +313,7 @@ import {
313
313
  selectStrategyByManifest,
314
314
  toExpertTaskAnalysisResult,
315
315
  withStep
316
- } from "./chunk-WU3N4Q2W.js";
316
+ } from "./chunk-JTJFEJ4V.js";
317
317
  import {
318
318
  ensureLearningDir,
319
319
  getMetaOutcomesFile,
@@ -27158,14 +27158,16 @@ var Z_SCORES = {
27158
27158
  0.95: 1.96,
27159
27159
  0.99: 2.576
27160
27160
  };
27161
+ function zQuantile(p) {
27162
+ const t = Math.sqrt(-2 * Math.log(1 - p));
27163
+ return t - (2.515517 + 0.802853 * t + 0.010328 * t * t) / (1 + 1.432788 * t + 0.189269 * t * t + 1308e-6 * t * t * t);
27164
+ }
27161
27165
  function getZScore(confidence) {
27162
27166
  const knownScore = Z_SCORES[confidence];
27163
27167
  if (knownScore !== void 0) {
27164
27168
  return knownScore;
27165
27169
  }
27166
- const p = 1 - (1 - confidence) / 2;
27167
- const t = Math.sqrt(-2 * Math.log(1 - p));
27168
- return t - (2.515517 + 0.802853 * t + 0.010328 * t * t) / (1 + 1.432788 * t + 0.189269 * t * t + 1308e-6 * t * t * t);
27170
+ return zQuantile(1 - (1 - confidence) / 2);
27169
27171
  }
27170
27172
  function normalCDF(x) {
27171
27173
  const a1 = 0.254829592;
@@ -27189,7 +27191,7 @@ function calculateZStatistic(params) {
27189
27191
  if (useContinuityCorrection && total1 > 0 && total2 > 0) {
27190
27192
  correction = 0.5 * (1 / total1 + 1 / total2);
27191
27193
  }
27192
- return se > 0 ? (Math.abs(difference) - correction) / se : 0;
27194
+ return se > 0 ? Math.max(0, Math.abs(difference) - correction) / se : 0;
27193
27195
  }
27194
27196
  function calculateDifferenceCI(p1, p2, total1, total2, confidence) {
27195
27197
  const difference = p1 - p2;
@@ -27426,8 +27428,8 @@ function calculateMinSampleSize(baselineRate, minimumDetectableEffect, options =
27426
27428
  const p1 = baselineRate;
27427
27429
  const p2 = baselineRate + minimumDetectableEffect;
27428
27430
  const pBar = (p1 + p2) / 2;
27429
- const zAlpha = getZScore(1 - alpha / 2);
27430
- const zBeta = getZScore(power);
27431
+ const zAlpha = getZScore(1 - alpha);
27432
+ const zBeta = zQuantile(power);
27431
27433
  const numerator = (zAlpha * Math.sqrt(2 * pBar * (1 - pBar)) + zBeta * Math.sqrt(p1 * (1 - p1) + p2 * (1 - p2))) ** 2;
27432
27434
  const denominator = (p1 - p2) ** 2;
27433
27435
  return Math.ceil(numerator / denominator);
@@ -29888,7 +29890,7 @@ function execIdFields(executionId) {
29888
29890
  async function populateUnifiedContextOnState(state, options) {
29889
29891
  const taskCandidate = state["task"];
29890
29892
  if (typeof taskCandidate !== "string" || taskCandidate === "") return;
29891
- const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-FZCJ7DQI.js");
29893
+ const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-HCDDUCJA.js");
29892
29894
  const category = inferTaskCategory2(taskCandidate);
29893
29895
  const executionId = options?.executionId;
29894
29896
  const execFields = execIdFields(executionId);
@@ -45352,7 +45354,7 @@ async function tryIssueTriage(task) {
45352
45354
  try {
45353
45355
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
45354
45356
  if (issueMatch === null) return null;
45355
- const { createIssueTriage } = await import("./issue-triage-NZLA75GB.js");
45357
+ const { createIssueTriage } = await import("./issue-triage-GKCZAHJU.js");
45356
45358
  const triage = createIssueTriage();
45357
45359
  const owner = issueMatch[1] ?? "";
45358
45360
  const num = issueMatch[2] ?? "";
@@ -45380,7 +45382,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
45380
45382
  ]);
45381
45383
  async function classifyWithLLM(task) {
45382
45384
  try {
45383
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-TKTD3AEX.js");
45385
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-BLAMZDSB.js");
45384
45386
  const prompt = [
45385
45387
  "Classify this task into exactly one pipeline template.",
45386
45388
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -45754,7 +45756,7 @@ function buildVotingInput(plan, config) {
45754
45756
  }
45755
45757
  async function executeSingleVote(plan, config, log) {
45756
45758
  try {
45757
- const { executeVoting } = await import("./consensus-vote-AJ6SWE4U.js");
45759
+ const { executeVoting } = await import("./consensus-vote-3N2SXR57.js");
45758
45760
  const input = buildVotingInput(plan, config);
45759
45761
  const result = await executeVoting(input, log);
45760
45762
  return parseVotingResult(result);
@@ -47313,7 +47315,7 @@ var memoryInitPromise = null;
47313
47315
  async function initPipelineMemory() {
47314
47316
  if (cachedMemory !== null) return cachedMemory;
47315
47317
  try {
47316
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-6BC5OGJS.js");
47318
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-UVFDZJMY.js");
47317
47319
  const { getLearningDir } = await import("./learning-persistence-TX2WE7Y7.js");
47318
47320
  const mem = createSessionMemory2(getLearningDir());
47319
47321
  mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
@@ -47375,7 +47377,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
47375
47377
  callRecord(routingMemoryCache);
47376
47378
  return;
47377
47379
  }
47378
- routingMemoryInitPromise ??= import("./routing-memory-DFEBGRQB.js").then(({ createRoutingMemory }) => {
47380
+ routingMemoryInitPromise ??= import("./routing-memory-SUAELMFZ.js").then(({ createRoutingMemory }) => {
47379
47381
  routingMemoryCache ??= createRoutingMemory();
47380
47382
  return routingMemoryCache;
47381
47383
  }).catch((error) => {
@@ -47409,7 +47411,7 @@ ${text}` : "";
47409
47411
  }
47410
47412
  async function getWeatherContext() {
47411
47413
  try {
47412
- const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-XEZDPSZM.js");
47414
+ const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-X4LWY66B.js");
47413
47415
  const report = generateWeatherReport2({ includeAdaptive: true });
47414
47416
  const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
47415
47417
  if (!Array.isArray(mappings) || mappings.length === 0) return "";
@@ -47427,7 +47429,7 @@ ${lines}
47427
47429
  }
47428
47430
  async function getMemoryContext(task) {
47429
47431
  try {
47430
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-6BC5OGJS.js");
47432
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-UVFDZJMY.js");
47431
47433
  const { getLearningDir } = await import("./learning-persistence-TX2WE7Y7.js");
47432
47434
  const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
47433
47435
  const learnings = memory.searchLearnings(task.slice(0, 200));
@@ -47546,7 +47548,7 @@ ${contextBlock}`;
47546
47548
  const strategy = config.votingStrategy ?? "higher_order";
47547
47549
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47548
47550
  try {
47549
- const { executeVoting } = await import("./consensus-vote-AJ6SWE4U.js");
47551
+ const { executeVoting } = await import("./consensus-vote-3N2SXR57.js");
47550
47552
  const votingResult = await executeVoting(
47551
47553
  {
47552
47554
  proposal: buildVoteProposal(plan, research),
@@ -47977,7 +47979,7 @@ async function searchCodebaseForTask(task) {
47977
47979
  }
47978
47980
  async function queryResearchRegistry(task) {
47979
47981
  try {
47980
- const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-E4RMSBRM.js");
47982
+ const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-OZMVILW3.js");
47981
47983
  const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
47982
47984
  if (topic === void 0) return null;
47983
47985
  const result = await synthesizeResearch2(topic.slice(0, 50));
@@ -48048,7 +48050,7 @@ function createScanStageWrapper() {
48048
48050
  try {
48049
48051
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
48050
48052
  if (slug !== void 0) {
48051
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-RC4C3JTS.js");
48053
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-KYTPPI5M.js");
48052
48054
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
48053
48055
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
48054
48056
  return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
@@ -51286,7 +51288,7 @@ var GitHubTaskTracker = class {
51286
51288
  cachedProvider = null;
51287
51289
  async getProvider() {
51288
51290
  if (this.cachedProvider !== null) return this.cachedProvider;
51289
- const { createScmProvider } = await import("./factory-7RV4LG54.js");
51291
+ const { createScmProvider } = await import("./factory-DHGWNH7U.js");
51290
51292
  const result = await createScmProvider({ repo: this.config.repo ?? "" });
51291
51293
  if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
51292
51294
  this.cachedProvider = result.value;
@@ -52190,7 +52192,7 @@ async function probeSource(source, includeModelIds) {
52190
52192
  }
52191
52193
  }
52192
52194
  async function defaultSources(includeOpenRouter) {
52193
- const { createAllAdapters: createAllAdapters2 } = await import("./factory-ZQKRK46A.js");
52195
+ const { createAllAdapters: createAllAdapters2 } = await import("./factory-RZ67ZSKZ.js");
52194
52196
  const adapters = createAllAdapters2();
52195
52197
  return buildDefaultModelSources(adapters, { includeOpenRouter });
52196
52198
  }
@@ -56266,4 +56268,4 @@ export {
56266
56268
  shutdownFeedbackSubscriber,
56267
56269
  createEventBusBridge
56268
56270
  };
56269
- //# sourceMappingURL=chunk-RRI3M73Y.js.map
56271
+ //# sourceMappingURL=chunk-M34BWXLK.js.map