nexus-agents 2.96.0 → 2.97.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 (117) hide show
  1. package/dist/{child-mcp-config-HZUEFKXB.js → child-mcp-config-WVPJIK2J.js} +2 -2
  2. package/dist/{chunk-3ZROPKLV.js → chunk-5LGAPYX7.js} +2 -2
  3. package/dist/{chunk-SSHL5TAX.js → chunk-65LE457J.js} +2 -2
  4. package/dist/{chunk-EUUWRNDZ.js → chunk-674NONPG.js} +2 -2
  5. package/dist/{chunk-NJN5SGU2.js → chunk-6IN4MKDA.js} +7 -7
  6. package/dist/{chunk-7P3UIYJH.js → chunk-76FTBRUS.js} +30 -30
  7. package/dist/{chunk-THVTU2UG.js → chunk-7BLBXITB.js} +3 -3
  8. package/dist/{chunk-23NNSR45.js → chunk-APLZRTYC.js} +7 -7
  9. package/dist/{chunk-P7Y3KLKG.js → chunk-D3OT7TOA.js} +3 -3
  10. package/dist/{chunk-FHZUOIVC.js → chunk-E43RUPLP.js} +3 -3
  11. package/dist/{chunk-MVCJEIUU.js → chunk-EY7LL4F4.js} +2 -2
  12. package/dist/{chunk-OHGKVMT3.js → chunk-FDTIRCSL.js} +2 -2
  13. package/dist/{chunk-Z7PILY4E.js → chunk-GAIUXYF4.js} +15 -12
  14. package/dist/chunk-GAIUXYF4.js.map +1 -0
  15. package/dist/{chunk-AW3HJHJT.js → chunk-GERVGPTF.js} +2 -2
  16. package/dist/{chunk-Z3XF5LRT.js → chunk-HIWO2WWP.js} +2 -2
  17. package/dist/{chunk-AJMHTC4J.js → chunk-HWCMNFIS.js} +3 -3
  18. package/dist/{chunk-AREIPUCD.js → chunk-HZGHPBTV.js} +2 -2
  19. package/dist/{chunk-ANH2A44T.js → chunk-IHKPGTF3.js} +4 -4
  20. package/dist/{chunk-2KHD2ANY.js → chunk-JTQLV374.js} +69 -5
  21. package/dist/chunk-JTQLV374.js.map +1 -0
  22. package/dist/{chunk-YSYBVLYS.js → chunk-JX6VL7JF.js} +3 -3
  23. package/dist/{chunk-ONIHS7K7.js → chunk-KKVH3PDK.js} +4 -4
  24. package/dist/{chunk-XMYJWMWN.js → chunk-ML4IF3PS.js} +4 -4
  25. package/dist/{chunk-YWIZ3UQ6.js → chunk-N5656LE3.js} +2 -2
  26. package/dist/{chunk-DTFM37IG.js → chunk-NTBVUWU4.js} +2 -2
  27. package/dist/{chunk-FPAUF3YB.js → chunk-OKRTOMKX.js} +2 -2
  28. package/dist/{chunk-ZBQXPP7M.js → chunk-OSHCOBDK.js} +2 -2
  29. package/dist/{chunk-SRSAMAPP.js → chunk-P2BKWVKF.js} +3 -3
  30. package/dist/{chunk-INFJH4JX.js → chunk-SAUBPHQ7.js} +4 -4
  31. package/dist/{chunk-ICOHLRHT.js → chunk-SWNOQW7Y.js} +5 -5
  32. package/dist/{chunk-R2KJ22LX.js → chunk-SZNNT2DH.js} +2 -2
  33. package/dist/{chunk-2472O6HR.js → chunk-T5TYWM5S.js} +2 -2
  34. package/dist/{chunk-MMW4KIBH.js → chunk-UNOOL6EN.js} +2 -2
  35. package/dist/{chunk-JEK5CHK2.js → chunk-WXDWDGVL.js} +2 -2
  36. package/dist/{cli-circuit-breaker-L6SWUVOP.js → cli-circuit-breaker-STKW4DTL.js} +4 -4
  37. package/dist/cli.js +84 -39
  38. package/dist/cli.js.map +1 -1
  39. package/dist/{composite-router-HFBOUCXD.js → composite-router-POFAM7T4.js} +2 -2
  40. package/dist/{consensus-vote-YEZIP2JQ.js → consensus-vote-EQAYX53Z.js} +13 -13
  41. package/dist/{context-retriever-PTRDEBBH.js → context-retriever-H22L3WFV.js} +6 -6
  42. package/dist/{doctor-deep-WHCDAV3Z.js → doctor-deep-HGAC6N5Y.js} +3 -3
  43. package/dist/{expert-bridge-N4L47MHU.js → expert-bridge-IAQPOJAQ.js} +4 -4
  44. package/dist/{factory-ZKGYCGDT.js → factory-P2SQS7UM.js} +5 -5
  45. package/dist/{factory-EFLOKY32.js → factory-ZIZYUDKH.js} +5 -5
  46. package/dist/{improvement-review-4MTIYCOZ.js → improvement-review-G2HAMGZP.js} +4 -4
  47. package/dist/index.d.ts +8 -1
  48. package/dist/index.js +28 -28
  49. package/dist/{init-opencode-42GKRQDA.js → init-opencode-RHCYZDZW.js} +5 -5
  50. package/dist/{issue-triage-TEPE6VMA.js → issue-triage-VVNQIQW5.js} +5 -5
  51. package/dist/{pr-reviewer-helpers-G4O22XF6.js → pr-reviewer-helpers-UN7RDPDN.js} +4 -4
  52. package/dist/{registry-command-32PUZNNG.js → registry-command-OVRRKYHO.js} +2 -2
  53. package/dist/{repo-security-plan-XWUDQB34.js → repo-security-plan-X74TBYOV.js} +3 -3
  54. package/dist/{research-helpers-synthesize-YI6S7SN6.js → research-helpers-synthesize-OSP6FGNV.js} +3 -3
  55. package/dist/{routing-memory-Z3ZCTPFM.js → routing-memory-5T5QJF47.js} +2 -2
  56. package/dist/{session-memory-5ZZ2SXDE.js → session-memory-X7CJ6X4A.js} +3 -3
  57. package/dist/{setup-command-U3ILRY5H.js → setup-command-ZWJCGPJ5.js} +11 -11
  58. package/dist/{setup-config-WZYLXPDO.js → setup-config-YVIKUNOB.js} +3 -3
  59. package/dist/{setup-custom-api-K4EN47CP.js → setup-custom-api-FLV4SELI.js} +4 -4
  60. package/dist/{tool-memory-53Y2TUR3.js → tool-memory-QNEAKRKV.js} +5 -5
  61. package/dist/{weather-report-JOBWXWQ3.js → weather-report-SUVIXWKI.js} +2 -2
  62. package/package.json +1 -1
  63. package/dist/chunk-2KHD2ANY.js.map +0 -1
  64. package/dist/chunk-Z7PILY4E.js.map +0 -1
  65. /package/dist/{child-mcp-config-HZUEFKXB.js.map → child-mcp-config-WVPJIK2J.js.map} +0 -0
  66. /package/dist/{chunk-3ZROPKLV.js.map → chunk-5LGAPYX7.js.map} +0 -0
  67. /package/dist/{chunk-SSHL5TAX.js.map → chunk-65LE457J.js.map} +0 -0
  68. /package/dist/{chunk-EUUWRNDZ.js.map → chunk-674NONPG.js.map} +0 -0
  69. /package/dist/{chunk-NJN5SGU2.js.map → chunk-6IN4MKDA.js.map} +0 -0
  70. /package/dist/{chunk-7P3UIYJH.js.map → chunk-76FTBRUS.js.map} +0 -0
  71. /package/dist/{chunk-THVTU2UG.js.map → chunk-7BLBXITB.js.map} +0 -0
  72. /package/dist/{chunk-23NNSR45.js.map → chunk-APLZRTYC.js.map} +0 -0
  73. /package/dist/{chunk-P7Y3KLKG.js.map → chunk-D3OT7TOA.js.map} +0 -0
  74. /package/dist/{chunk-FHZUOIVC.js.map → chunk-E43RUPLP.js.map} +0 -0
  75. /package/dist/{chunk-MVCJEIUU.js.map → chunk-EY7LL4F4.js.map} +0 -0
  76. /package/dist/{chunk-OHGKVMT3.js.map → chunk-FDTIRCSL.js.map} +0 -0
  77. /package/dist/{chunk-AW3HJHJT.js.map → chunk-GERVGPTF.js.map} +0 -0
  78. /package/dist/{chunk-Z3XF5LRT.js.map → chunk-HIWO2WWP.js.map} +0 -0
  79. /package/dist/{chunk-AJMHTC4J.js.map → chunk-HWCMNFIS.js.map} +0 -0
  80. /package/dist/{chunk-AREIPUCD.js.map → chunk-HZGHPBTV.js.map} +0 -0
  81. /package/dist/{chunk-ANH2A44T.js.map → chunk-IHKPGTF3.js.map} +0 -0
  82. /package/dist/{chunk-YSYBVLYS.js.map → chunk-JX6VL7JF.js.map} +0 -0
  83. /package/dist/{chunk-ONIHS7K7.js.map → chunk-KKVH3PDK.js.map} +0 -0
  84. /package/dist/{chunk-XMYJWMWN.js.map → chunk-ML4IF3PS.js.map} +0 -0
  85. /package/dist/{chunk-YWIZ3UQ6.js.map → chunk-N5656LE3.js.map} +0 -0
  86. /package/dist/{chunk-DTFM37IG.js.map → chunk-NTBVUWU4.js.map} +0 -0
  87. /package/dist/{chunk-FPAUF3YB.js.map → chunk-OKRTOMKX.js.map} +0 -0
  88. /package/dist/{chunk-ZBQXPP7M.js.map → chunk-OSHCOBDK.js.map} +0 -0
  89. /package/dist/{chunk-SRSAMAPP.js.map → chunk-P2BKWVKF.js.map} +0 -0
  90. /package/dist/{chunk-INFJH4JX.js.map → chunk-SAUBPHQ7.js.map} +0 -0
  91. /package/dist/{chunk-ICOHLRHT.js.map → chunk-SWNOQW7Y.js.map} +0 -0
  92. /package/dist/{chunk-R2KJ22LX.js.map → chunk-SZNNT2DH.js.map} +0 -0
  93. /package/dist/{chunk-2472O6HR.js.map → chunk-T5TYWM5S.js.map} +0 -0
  94. /package/dist/{chunk-MMW4KIBH.js.map → chunk-UNOOL6EN.js.map} +0 -0
  95. /package/dist/{chunk-JEK5CHK2.js.map → chunk-WXDWDGVL.js.map} +0 -0
  96. /package/dist/{cli-circuit-breaker-L6SWUVOP.js.map → cli-circuit-breaker-STKW4DTL.js.map} +0 -0
  97. /package/dist/{composite-router-HFBOUCXD.js.map → composite-router-POFAM7T4.js.map} +0 -0
  98. /package/dist/{consensus-vote-YEZIP2JQ.js.map → consensus-vote-EQAYX53Z.js.map} +0 -0
  99. /package/dist/{context-retriever-PTRDEBBH.js.map → context-retriever-H22L3WFV.js.map} +0 -0
  100. /package/dist/{doctor-deep-WHCDAV3Z.js.map → doctor-deep-HGAC6N5Y.js.map} +0 -0
  101. /package/dist/{expert-bridge-N4L47MHU.js.map → expert-bridge-IAQPOJAQ.js.map} +0 -0
  102. /package/dist/{factory-EFLOKY32.js.map → factory-P2SQS7UM.js.map} +0 -0
  103. /package/dist/{factory-ZKGYCGDT.js.map → factory-ZIZYUDKH.js.map} +0 -0
  104. /package/dist/{improvement-review-4MTIYCOZ.js.map → improvement-review-G2HAMGZP.js.map} +0 -0
  105. /package/dist/{init-opencode-42GKRQDA.js.map → init-opencode-RHCYZDZW.js.map} +0 -0
  106. /package/dist/{issue-triage-TEPE6VMA.js.map → issue-triage-VVNQIQW5.js.map} +0 -0
  107. /package/dist/{pr-reviewer-helpers-G4O22XF6.js.map → pr-reviewer-helpers-UN7RDPDN.js.map} +0 -0
  108. /package/dist/{registry-command-32PUZNNG.js.map → registry-command-OVRRKYHO.js.map} +0 -0
  109. /package/dist/{repo-security-plan-XWUDQB34.js.map → repo-security-plan-X74TBYOV.js.map} +0 -0
  110. /package/dist/{research-helpers-synthesize-YI6S7SN6.js.map → research-helpers-synthesize-OSP6FGNV.js.map} +0 -0
  111. /package/dist/{routing-memory-Z3ZCTPFM.js.map → routing-memory-5T5QJF47.js.map} +0 -0
  112. /package/dist/{session-memory-5ZZ2SXDE.js.map → session-memory-X7CJ6X4A.js.map} +0 -0
  113. /package/dist/{setup-command-U3ILRY5H.js.map → setup-command-ZWJCGPJ5.js.map} +0 -0
  114. /package/dist/{setup-config-WZYLXPDO.js.map → setup-config-YVIKUNOB.js.map} +0 -0
  115. /package/dist/{setup-custom-api-K4EN47CP.js.map → setup-custom-api-FLV4SELI.js.map} +0 -0
  116. /package/dist/{tool-memory-53Y2TUR3.js.map → tool-memory-QNEAKRKV.js.map} +0 -0
  117. /package/dist/{weather-report-JOBWXWQ3.js.map → weather-report-SUVIXWKI.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createLogger
3
- } from "./chunk-2KHD2ANY.js";
3
+ } from "./chunk-JTQLV374.js";
4
4
  import "./chunk-CH7QIDHQ.js";
5
5
  import "./chunk-PR4QN5HX.js";
6
6
 
@@ -59,4 +59,4 @@ export {
59
59
  generateMcpConfig,
60
60
  getDefaultAllowedTools
61
61
  };
62
- //# sourceMappingURL=child-mcp-config-HZUEFKXB.js.map
62
+ //# sourceMappingURL=child-mcp-config-WVPJIK2J.js.map
@@ -11,7 +11,7 @@ import {
11
11
  getErrorMessage,
12
12
  getTimeProvider,
13
13
  ok
14
- } from "./chunk-2KHD2ANY.js";
14
+ } from "./chunk-JTQLV374.js";
15
15
  import {
16
16
  getNexusDataDir
17
17
  } from "./chunk-CH7QIDHQ.js";
@@ -2130,4 +2130,4 @@ export {
2130
2130
  toSdkCallbackWithBudgetCheck,
2131
2131
  getToolAnnotations
2132
2132
  };
2133
- //# sourceMappingURL=chunk-3ZROPKLV.js.map
2133
+ //# sourceMappingURL=chunk-5LGAPYX7.js.map
@@ -2,7 +2,7 @@ import {
2
2
  ConfigError,
3
3
  err,
4
4
  ok
5
- } from "./chunk-2KHD2ANY.js";
5
+ } from "./chunk-JTQLV374.js";
6
6
 
7
7
  // src/adapters/sdk/types.ts
8
8
  var PROVIDER_ENV_KEYS = {
@@ -117,4 +117,4 @@ export {
117
117
  CUSTOM_API_ALLOW_PRIVATE_ENV,
118
118
  validateCustomApiBaseUrl
119
119
  };
120
- //# sourceMappingURL=chunk-SSHL5TAX.js.map
120
+ //# sourceMappingURL=chunk-65LE457J.js.map
@@ -5,7 +5,7 @@ import {
5
5
  getErrorMessage,
6
6
  getTimeProvider,
7
7
  ok
8
- } from "./chunk-2KHD2ANY.js";
8
+ } from "./chunk-JTQLV374.js";
9
9
 
10
10
  // src/cli-adapters/circuit-breaker-types.ts
11
11
  var CircuitErrorCode = {
@@ -354,4 +354,4 @@ export {
354
354
  CircuitBreakerRegistry,
355
355
  mapCliErrorToCategory
356
356
  };
357
- //# sourceMappingURL=chunk-EUUWRNDZ.js.map
357
+ //# sourceMappingURL=chunk-674NONPG.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveCliSlot
3
- } from "./chunk-YWIZ3UQ6.js";
3
+ } from "./chunk-N5656LE3.js";
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider,
7
7
  isRateLimitText
8
- } from "./chunk-2KHD2ANY.js";
8
+ } from "./chunk-JTQLV374.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-HZUEFKXB.js");
24
+ const { generateMcpConfig } = await import("./child-mcp-config-WVPJIK2J.js");
25
25
  const config = await generateMcpConfig();
26
26
  cachedMcpConfigPath = config.configPath;
27
27
  cachedMcpConfigCleanup = config.cleanup;
@@ -71,8 +71,8 @@ var routerInitPromise = null;
71
71
  async function getRouter() {
72
72
  if (cachedRouter !== null) return cachedRouter;
73
73
  routerInitPromise ??= (async () => {
74
- const { createAllAdapters } = await import("./factory-EFLOKY32.js");
75
- const { createCompositeRouter } = await import("./composite-router-HFBOUCXD.js");
74
+ const { createAllAdapters } = await import("./factory-ZIZYUDKH.js");
75
+ const { createCompositeRouter } = await import("./composite-router-POFAM7T4.js");
76
76
  const adapters = createAllAdapters();
77
77
  if (adapters.size === 0) {
78
78
  routerInitPromise = null;
@@ -80,7 +80,7 @@ async function getRouter() {
80
80
  }
81
81
  cachedRouter = adaptCompositeRouter(createCompositeRouter(adapters));
82
82
  try {
83
- const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-L6SWUVOP.js");
83
+ const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-STKW4DTL.js");
84
84
  cachedCircuitBreaker = createCliCircuitBreakerIntegration([...adapters.values()]);
85
85
  } catch (error) {
86
86
  const msg = error instanceof Error ? error.message : String(error);
@@ -185,4 +185,4 @@ export {
185
185
  shutdownExpertBridge,
186
186
  executeExpert
187
187
  };
188
- //# sourceMappingURL=chunk-NJN5SGU2.js.map
188
+ //# sourceMappingURL=chunk-6IN4MKDA.js.map
@@ -6,10 +6,10 @@ import {
6
6
  import {
7
7
  getTokenEnvVars,
8
8
  resolveToken
9
- } from "./chunk-OHGKVMT3.js";
9
+ } from "./chunk-FDTIRCSL.js";
10
10
  import {
11
11
  executeExpert
12
- } from "./chunk-NJN5SGU2.js";
12
+ } from "./chunk-6IN4MKDA.js";
13
13
  import {
14
14
  EventTopics,
15
15
  JobStatusSchema,
@@ -30,7 +30,7 @@ import {
30
30
  writeJobComplete,
31
31
  writeJobFailed,
32
32
  writeJobPending
33
- } from "./chunk-Z7PILY4E.js";
33
+ } from "./chunk-GAIUXYF4.js";
34
34
  import {
35
35
  REGISTRY_PATH,
36
36
  getProjectRoot,
@@ -39,19 +39,19 @@ import {
39
39
  normalizeTopicToCanonical,
40
40
  savePapersRegistry,
41
41
  synthesizeResearch
42
- } from "./chunk-2472O6HR.js";
42
+ } from "./chunk-T5TYWM5S.js";
43
43
  import {
44
44
  IssueTriage,
45
45
  createAuditTrail,
46
46
  createGraphAuditBridge
47
- } from "./chunk-ONIHS7K7.js";
47
+ } from "./chunk-KKVH3PDK.js";
48
48
  import {
49
49
  resolveEnvMode,
50
50
  sanitizeInput
51
- } from "./chunk-R2KJ22LX.js";
51
+ } from "./chunk-SZNNT2DH.js";
52
52
  import {
53
53
  withPrerequisite
54
- } from "./chunk-SRSAMAPP.js";
54
+ } from "./chunk-P2BKWVKF.js";
55
55
  import {
56
56
  NOOP_NOTIFIER,
57
57
  RateLimiter,
@@ -70,10 +70,10 @@ import {
70
70
  withAccessPolicy,
71
71
  withProgressHeartbeat,
72
72
  wrapToolWithTimeout
73
- } from "./chunk-3ZROPKLV.js";
73
+ } from "./chunk-5LGAPYX7.js";
74
74
  import {
75
75
  generateSecurityPlan
76
- } from "./chunk-JEK5CHK2.js";
76
+ } from "./chunk-WXDWDGVL.js";
77
77
  import {
78
78
  analyzeGitHubRepo
79
79
  } from "./chunk-HFOQKCD2.js";
@@ -81,26 +81,26 @@ import {
81
81
  getContextForTask,
82
82
  inferTaskCategory,
83
83
  summarizeContextForPrompt
84
- } from "./chunk-P7Y3KLKG.js";
84
+ } from "./chunk-D3OT7TOA.js";
85
85
  import {
86
86
  DEFAULT_RELEVANCE_CONFIG,
87
87
  MemoryImportance,
88
88
  calculateTextJaccardSimilarity,
89
89
  getToolMemory
90
- } from "./chunk-ANH2A44T.js";
90
+ } from "./chunk-IHKPGTF3.js";
91
91
  import {
92
92
  DEFAULT_TASK_TTL_MS,
93
93
  DEFAULT_TOOL_RATE_LIMITS,
94
94
  clampTaskTtl
95
- } from "./chunk-23NNSR45.js";
95
+ } from "./chunk-APLZRTYC.js";
96
96
  import {
97
97
  getAvailabilityCache,
98
98
  getCliForModelId,
99
99
  resolveFallback
100
- } from "./chunk-YWIZ3UQ6.js";
100
+ } from "./chunk-N5656LE3.js";
101
101
  import {
102
102
  DEFAULTS
103
- } from "./chunk-MMW4KIBH.js";
103
+ } from "./chunk-UNOOL6EN.js";
104
104
  import {
105
105
  resolveInsideRoot
106
106
  } from "./chunk-NUBSJGQZ.js";
@@ -116,11 +116,11 @@ import {
116
116
  getAvailableClis,
117
117
  sleep,
118
118
  withTimeout
119
- } from "./chunk-XMYJWMWN.js";
119
+ } from "./chunk-ML4IF3PS.js";
120
120
  import {
121
121
  generateHyphenId,
122
122
  generateUUID
123
- } from "./chunk-AREIPUCD.js";
123
+ } from "./chunk-HZGHPBTV.js";
124
124
  import {
125
125
  BUILT_IN_EXPERTS,
126
126
  BuiltInExpertTypeSchema,
@@ -132,7 +132,7 @@ import {
132
132
  } from "./chunk-PQHVC4BD.js";
133
133
  import {
134
134
  createSessionMemory
135
- } from "./chunk-Z3XF5LRT.js";
135
+ } from "./chunk-HIWO2WWP.js";
136
136
  import {
137
137
  AGENT_ROUTER_TIMEOUTS,
138
138
  API_TIMEOUTS,
@@ -204,7 +204,7 @@ import {
204
204
  resolveModelIdentitySync,
205
205
  toExpertTaskAnalysisResult,
206
206
  withStep
207
- } from "./chunk-2KHD2ANY.js";
207
+ } from "./chunk-JTQLV374.js";
208
208
  import {
209
209
  nexusDataPath,
210
210
  nexusDataPathEnsure
@@ -27005,7 +27005,7 @@ async function populateUnifiedContextOnState(state) {
27005
27005
  try {
27006
27006
  const taskCandidate = state["task"];
27007
27007
  if (typeof taskCandidate !== "string" || taskCandidate === "") return;
27008
- const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-PTRDEBBH.js");
27008
+ const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-H22L3WFV.js");
27009
27009
  const ctx = await getContextForTask2({
27010
27010
  task: taskCandidate,
27011
27011
  category: inferTaskCategory2(taskCandidate),
@@ -42408,7 +42408,7 @@ async function tryIssueTriage(task) {
42408
42408
  try {
42409
42409
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
42410
42410
  if (issueMatch === null) return null;
42411
- const { createIssueTriage } = await import("./issue-triage-TEPE6VMA.js");
42411
+ const { createIssueTriage } = await import("./issue-triage-VVNQIQW5.js");
42412
42412
  const triage = createIssueTriage();
42413
42413
  const owner = issueMatch[1] ?? "";
42414
42414
  const num = issueMatch[2] ?? "";
@@ -42436,7 +42436,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
42436
42436
  ]);
42437
42437
  async function classifyWithLLM(task) {
42438
42438
  try {
42439
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-N4L47MHU.js");
42439
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-IAQPOJAQ.js");
42440
42440
  const prompt = [
42441
42441
  "Classify this task into exactly one pipeline template.",
42442
42442
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -43218,7 +43218,7 @@ var memoryInitPromise = null;
43218
43218
  async function initPipelineMemory() {
43219
43219
  if (cachedMemory !== null) return cachedMemory;
43220
43220
  try {
43221
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-5ZZ2SXDE.js");
43221
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-X7CJ6X4A.js");
43222
43222
  const { getLearningDir } = await import("./learning-persistence-UKPO7RYK.js");
43223
43223
  const mem = createSessionMemory2(getLearningDir());
43224
43224
  mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
@@ -43275,7 +43275,7 @@ function recordRoutingExperience(category, success, durationMs) {
43275
43275
  callRecord(routingMemoryCache);
43276
43276
  return;
43277
43277
  }
43278
- routingMemoryInitPromise ??= import("./routing-memory-Z3ZCTPFM.js").then(({ createRoutingMemory }) => {
43278
+ routingMemoryInitPromise ??= import("./routing-memory-5T5QJF47.js").then(({ createRoutingMemory }) => {
43279
43279
  routingMemoryCache ??= createRoutingMemory();
43280
43280
  return routingMemoryCache;
43281
43281
  }).catch((error) => {
@@ -43309,7 +43309,7 @@ ${text}` : "";
43309
43309
  }
43310
43310
  async function getWeatherContext() {
43311
43311
  try {
43312
- const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-JOBWXWQ3.js");
43312
+ const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-SUVIXWKI.js");
43313
43313
  const report = generateWeatherReport2({ includeAdaptive: true });
43314
43314
  const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
43315
43315
  if (!Array.isArray(mappings) || mappings.length === 0) return "";
@@ -43327,7 +43327,7 @@ ${lines}
43327
43327
  }
43328
43328
  async function getMemoryContext(task) {
43329
43329
  try {
43330
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-5ZZ2SXDE.js");
43330
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-X7CJ6X4A.js");
43331
43331
  const { getLearningDir } = await import("./learning-persistence-UKPO7RYK.js");
43332
43332
  const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
43333
43333
  const learnings = memory.searchLearnings(task.slice(0, 200));
@@ -43433,7 +43433,7 @@ ${contextBlock}`;
43433
43433
  const strategy = config.votingStrategy ?? "higher_order";
43434
43434
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
43435
43435
  try {
43436
- const { executeVoting } = await import("./consensus-vote-YEZIP2JQ.js");
43436
+ const { executeVoting } = await import("./consensus-vote-EQAYX53Z.js");
43437
43437
  const votingResult = await executeVoting(
43438
43438
  {
43439
43439
  proposal: plan.slice(0, 4e3),
@@ -44360,7 +44360,7 @@ async function searchCodebaseForTask(task) {
44360
44360
  }
44361
44361
  async function queryResearchRegistry(task) {
44362
44362
  try {
44363
- const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-YI6S7SN6.js");
44363
+ const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-OSP6FGNV.js");
44364
44364
  const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
44365
44365
  if (topic === void 0) return null;
44366
44366
  const result = await synthesizeResearch2(topic.slice(0, 50));
@@ -44431,7 +44431,7 @@ function createScanStageWrapper() {
44431
44431
  try {
44432
44432
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
44433
44433
  if (slug !== void 0) {
44434
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-XWUDQB34.js");
44434
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-X74TBYOV.js");
44435
44435
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
44436
44436
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
44437
44437
  return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
@@ -50161,7 +50161,7 @@ var GitHubTaskTracker = class {
50161
50161
  cachedProvider = null;
50162
50162
  async getProvider() {
50163
50163
  if (this.cachedProvider !== null) return this.cachedProvider;
50164
- const { createScmProvider } = await import("./factory-ZKGYCGDT.js");
50164
+ const { createScmProvider } = await import("./factory-P2SQS7UM.js");
50165
50165
  const result = await createScmProvider({ repo: this.config.repo ?? "" });
50166
50166
  if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
50167
50167
  this.cachedProvider = result.value;
@@ -50864,4 +50864,4 @@ export {
50864
50864
  detectBackend,
50865
50865
  createTaskTracker
50866
50866
  };
50867
- //# sourceMappingURL=chunk-7P3UIYJH.js.map
50867
+ //# sourceMappingURL=chunk-76FTBRUS.js.map
@@ -9,11 +9,11 @@ import {
9
9
  gateWithReputation,
10
10
  resolveReputationGatingMode,
11
11
  sanitizeInput
12
- } from "./chunk-R2KJ22LX.js";
12
+ } from "./chunk-SZNNT2DH.js";
13
13
  import {
14
14
  createLogger,
15
15
  getTimeProvider
16
- } from "./chunk-2KHD2ANY.js";
16
+ } from "./chunk-JTQLV374.js";
17
17
 
18
18
  // src/dogfooding/pr-reviewer-helpers.ts
19
19
  import { randomUUID } from "crypto";
@@ -288,4 +288,4 @@ export {
288
288
  formatReviewComment,
289
289
  createFailedReview
290
290
  };
291
- //# sourceMappingURL=chunk-THVTU2UG.js.map
291
+ //# sourceMappingURL=chunk-7BLBXITB.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULTS
3
- } from "./chunk-MMW4KIBH.js";
3
+ } from "./chunk-UNOOL6EN.js";
4
4
  import {
5
5
  resolveInsideRoot
6
6
  } from "./chunk-NUBSJGQZ.js";
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  createAllAdapters,
12
12
  probeCli
13
- } from "./chunk-XMYJWMWN.js";
13
+ } from "./chunk-ML4IF3PS.js";
14
14
  import {
15
15
  CliNameSchema,
16
16
  DEFAULT_CAPABILITIES,
@@ -26,7 +26,7 @@ import {
26
26
  ok,
27
27
  symbols,
28
28
  writeLine
29
- } from "./chunk-2KHD2ANY.js";
29
+ } from "./chunk-JTQLV374.js";
30
30
  import {
31
31
  detectSandbox,
32
32
  getLearningDir,
@@ -40,7 +40,7 @@ import {
40
40
  } from "./chunk-CH7QIDHQ.js";
41
41
 
42
42
  // src/version.ts
43
- var VERSION = true ? "2.96.0" : "dev";
43
+ var VERSION = true ? "2.97.0" : "dev";
44
44
 
45
45
  // src/config/schemas-core.ts
46
46
  import { z } from "zod";
@@ -2096,7 +2096,7 @@ async function runDoctorFix(result) {
2096
2096
  writeLine2("\u2500".repeat(40));
2097
2097
  let fixCount = 0;
2098
2098
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2099
- const { runSetup } = await import("./setup-command-U3ILRY5H.js");
2099
+ const { runSetup } = await import("./setup-command-ZWJCGPJ5.js");
2100
2100
  const setupResult = runSetup({
2101
2101
  skipMcp: true,
2102
2102
  skipRules: true,
@@ -2110,7 +2110,7 @@ async function runDoctorFix(result) {
2110
2110
  }
2111
2111
  }
2112
2112
  if (!result.configFile.found) {
2113
- const { runConfigInitSync } = await import("./setup-config-WZYLXPDO.js");
2113
+ const { runConfigInitSync } = await import("./setup-config-YVIKUNOB.js");
2114
2114
  const configResult = runConfigInitSync(process.cwd(), false, false);
2115
2115
  if (configResult.success && configResult.created) {
2116
2116
  writeLine2(`\u2713 Generated config: ${configResult.path}`);
@@ -2208,4 +2208,4 @@ export {
2208
2208
  startStdioServer,
2209
2209
  closeServer
2210
2210
  };
2211
- //# sourceMappingURL=chunk-23NNSR45.js.map
2211
+ //# sourceMappingURL=chunk-APLZRTYC.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  getToolMemory
3
- } from "./chunk-ANH2A44T.js";
3
+ } from "./chunk-IHKPGTF3.js";
4
4
  import {
5
5
  CLI_NAMES,
6
6
  StrategyDistiller,
7
7
  createLogger,
8
8
  getOutcomeStore,
9
9
  registerPersistentDistillerFactory
10
- } from "./chunk-2KHD2ANY.js";
10
+ } from "./chunk-JTQLV374.js";
11
11
  import {
12
12
  ensureLearningDir,
13
13
  getRulesFile
@@ -273,4 +273,4 @@ export {
273
273
  inferTaskCategory,
274
274
  summarizeContextForPrompt
275
275
  };
276
- //# sourceMappingURL=chunk-P7Y3KLKG.js.map
276
+ //# sourceMappingURL=chunk-D3OT7TOA.js.map
@@ -2,14 +2,14 @@ import {
2
2
  CircuitBreakerRegistry,
3
3
  CircuitError,
4
4
  mapCliErrorToCategory
5
- } from "./chunk-EUUWRNDZ.js";
5
+ } from "./chunk-674NONPG.js";
6
6
  import {
7
7
  createLogger,
8
8
  err,
9
9
  getFallbackChainForCategory,
10
10
  getTimeProvider,
11
11
  ok
12
- } from "./chunk-2KHD2ANY.js";
12
+ } from "./chunk-JTQLV374.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-FHZUOIVC.js.map
155
+ //# sourceMappingURL=chunk-E43RUPLP.js.map
@@ -3,7 +3,7 @@ import {
3
3
  err,
4
4
  getErrorMessage,
5
5
  ok
6
- } from "./chunk-2KHD2ANY.js";
6
+ } from "./chunk-JTQLV374.js";
7
7
 
8
8
  // src/scm/types.ts
9
9
  var ScmError = class extends Error {
@@ -258,4 +258,4 @@ export {
258
258
  ScmError,
259
259
  GitHubProvider
260
260
  };
261
- //# sourceMappingURL=chunk-MVCJEIUU.js.map
261
+ //# sourceMappingURL=chunk-EY7LL4F4.js.map
@@ -2,7 +2,7 @@ import {
2
2
  createLogger,
3
3
  err,
4
4
  ok
5
- } from "./chunk-2KHD2ANY.js";
5
+ } from "./chunk-JTQLV374.js";
6
6
 
7
7
  // src/scm/token-resolver.ts
8
8
  import { execFile } from "child_process";
@@ -87,4 +87,4 @@ export {
87
87
  hasToken,
88
88
  getTokenEnvVars
89
89
  };
90
- //# sourceMappingURL=chunk-OHGKVMT3.js.map
90
+ //# sourceMappingURL=chunk-FDTIRCSL.js.map
@@ -4,12 +4,12 @@ import {
4
4
  createStream,
5
5
  requireApiKey,
6
6
  validateApiKeyPresence
7
- } from "./chunk-AW3HJHJT.js";
7
+ } from "./chunk-GERVGPTF.js";
8
8
  import {
9
9
  CUSTOM_API_BASE_URL_ENV,
10
10
  PROVIDER_ENV_KEYS,
11
11
  validateCustomApiBaseUrl
12
- } from "./chunk-SSHL5TAX.js";
12
+ } from "./chunk-65LE457J.js";
13
13
  import {
14
14
  NOOP_NOTIFIER,
15
15
  createMcpNotifier,
@@ -21,16 +21,16 @@ import {
21
21
  toolSuccess,
22
22
  withProgressHeartbeat,
23
23
  wrapToolWithTimeout
24
- } from "./chunk-3ZROPKLV.js";
24
+ } from "./chunk-5LGAPYX7.js";
25
25
  import {
26
26
  getToolMemory
27
- } from "./chunk-ANH2A44T.js";
27
+ } from "./chunk-IHKPGTF3.js";
28
28
  import {
29
29
  getDefaultAvailableModelsCache
30
- } from "./chunk-ZBQXPP7M.js";
30
+ } from "./chunk-OSHCOBDK.js";
31
31
  import {
32
32
  CUSTOM_API_DEFAULT_MODEL
33
- } from "./chunk-MMW4KIBH.js";
33
+ } from "./chunk-UNOOL6EN.js";
34
34
  import {
35
35
  createCliAdapter,
36
36
  createCliDetectionCache,
@@ -39,7 +39,7 @@ import {
39
39
  isCliAvailable,
40
40
  sanitizeOutput,
41
41
  withTimeout
42
- } from "./chunk-XMYJWMWN.js";
42
+ } from "./chunk-ML4IF3PS.js";
43
43
  import {
44
44
  AgentError,
45
45
  CLI_NAMES,
@@ -78,7 +78,7 @@ import {
78
78
  resolveCliAlias,
79
79
  resolveVoteTimeout,
80
80
  toRateLimitError
81
- } from "./chunk-2KHD2ANY.js";
81
+ } from "./chunk-JTQLV374.js";
82
82
  import {
83
83
  ensureLearningDir,
84
84
  getOutcomesFile,
@@ -6067,6 +6067,9 @@ var VotingStrategySchema = z7.enum([
6067
6067
  "higher_order",
6068
6068
  "opinion_wise"
6069
6069
  ]);
6070
+ function isHigherOrderStrategy(strategy) {
6071
+ return strategy === "higher_order" || strategy === "opinion_wise";
6072
+ }
6070
6073
  var ErrorPolicySchema = z7.enum(["reduce_denominator", "count_as_abstain", "fail_closed"]);
6071
6074
  var VoteThresholdSchema = z7.enum(["majority", "supermajority", "unanimous"]);
6072
6075
  var ERROR_FLOOR_FRACTION = 0.5;
@@ -6171,7 +6174,7 @@ function buildResponse(input, result) {
6171
6174
  if (result.policyReason !== void 0) {
6172
6175
  response.policyReason = result.policyReason;
6173
6176
  }
6174
- if (result.strategy === "higher_order" && result.higherOrderResult) {
6177
+ if (isHigherOrderStrategy(result.strategy) && result.higherOrderResult) {
6175
6178
  response.higherOrderMetadata = {
6176
6179
  posteriorApproval: result.higherOrderResult.posteriorApproval,
6177
6180
  posteriorRejection: result.higherOrderResult.posteriorRejection,
@@ -6909,7 +6912,7 @@ async function processVotesThroughEngine(engineVotes, proposal, algorithm) {
6909
6912
  return resultRes.value;
6910
6913
  }
6911
6914
  function runHigherOrderVoting(strategy, voteMap, logger11) {
6912
- if (strategy !== "higher_order") return void 0;
6915
+ if (!isHigherOrderStrategy(strategy)) return void 0;
6913
6916
  const hovStrategy = new HigherOrderVotingStrategy();
6914
6917
  const tracker = getOrCreateCorrelationTracker();
6915
6918
  const result = hovStrategy.aggregate(voteMap, tracker);
@@ -6968,7 +6971,7 @@ async function processVotesWithCascade(engineVotes, opts) {
6968
6971
  var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
6969
6972
  async function runContrarianCheck(proposal, log) {
6970
6973
  try {
6971
- const { executeExpert } = await import("./expert-bridge-N4L47MHU.js");
6974
+ const { executeExpert } = await import("./expert-bridge-IAQPOJAQ.js");
6972
6975
  const prompt = [
6973
6976
  "You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
6974
6977
  "Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
@@ -7459,4 +7462,4 @@ export {
7459
7462
  CONSENSUS_VOTE_OUTPUT_SCHEMA,
7460
7463
  registerConsensusVoteTool
7461
7464
  };
7462
- //# sourceMappingURL=chunk-Z7PILY4E.js.map
7465
+ //# sourceMappingURL=chunk-GAIUXYF4.js.map