nexus-agents 2.115.1 → 2.117.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 (112) hide show
  1. package/dist/{child-mcp-config-FIXBPOVD.js → child-mcp-config-XSVFK3FL.js} +2 -2
  2. package/dist/{chunk-TBVXG63Q.js → chunk-2EEC45RJ.js} +3 -3
  3. package/dist/{chunk-5DOIZUPE.js → chunk-2WISJ7ZA.js} +2 -2
  4. package/dist/{chunk-6DHDXNOO.js → chunk-574PH6QX.js} +7 -7
  5. package/dist/{chunk-ILGRBYX6.js → chunk-5JWZWQS4.js} +2 -2
  6. package/dist/{chunk-7VD5UJCF.js → chunk-5KGOKGHC.js} +7 -7
  7. package/dist/{chunk-24L6ETFP.js → chunk-6Y5MRWJF.js} +3 -3
  8. package/dist/{chunk-E4K4PLSJ.js → chunk-CGKONOF2.js} +2 -2
  9. package/dist/{chunk-NF6ZY2XT.js → chunk-DEOQPYW4.js} +2 -2
  10. package/dist/{chunk-KHGBV3ZL.js → chunk-E34YOFTW.js} +69 -37
  11. package/dist/{chunk-KHGBV3ZL.js.map → chunk-E34YOFTW.js.map} +1 -1
  12. package/dist/{chunk-CVGJKTO4.js → chunk-EMBNRWYQ.js} +3 -3
  13. package/dist/{chunk-WBE5HPPW.js → chunk-ESGADHVN.js} +7 -7
  14. package/dist/{chunk-LFX7W2QN.js → chunk-H7J5SQ42.js} +2 -2
  15. package/dist/{chunk-PKKV2ZAT.js → chunk-HHYGTGWI.js} +2 -2
  16. package/dist/{chunk-2JXELXS3.js → chunk-HOEXJHAM.js} +2 -2
  17. package/dist/{chunk-NEBMJARV.js → chunk-INSR4OES.js} +4 -4
  18. package/dist/{chunk-XKK55K2H.js → chunk-KLQALBIU.js} +2 -2
  19. package/dist/{chunk-EQLXZKMD.js → chunk-KVVV2WR6.js} +2 -2
  20. package/dist/{chunk-NGE7HWKP.js → chunk-LFRFOMSY.js} +3 -3
  21. package/dist/{chunk-AXKGNVHM.js → chunk-LVKYXDCF.js} +2 -2
  22. package/dist/{chunk-GHMFOI3H.js → chunk-LYAF5UZ7.js} +2 -2
  23. package/dist/{chunk-KEZZWT4W.js → chunk-NCN76D4U.js} +3 -3
  24. package/dist/{chunk-QTMZCTB6.js → chunk-O72WIQDK.js} +2 -2
  25. package/dist/{chunk-KP77F65U.js → chunk-OFJIT7C5.js} +4 -4
  26. package/dist/{chunk-SJZZQCZE.js → chunk-QBSSQENN.js} +5 -5
  27. package/dist/{chunk-OGJ6Z6T5.js → chunk-RABYDES4.js} +2 -2
  28. package/dist/{chunk-5JWBFZEO.js → chunk-SCGPKBGN.js} +3 -3
  29. package/dist/{chunk-Z7OI5YXE.js → chunk-SFRHSC37.js} +2 -2
  30. package/dist/{chunk-NWMWL6MD.js → chunk-SO6A3PCX.js} +2 -2
  31. package/dist/{chunk-NZHV7GEK.js → chunk-UK7TXSMJ.js} +7 -7
  32. package/dist/{chunk-2XEX5PM4.js → chunk-WXBLFLC3.js} +4 -4
  33. package/dist/{chunk-Y2QMFZQG.js → chunk-XZV6565Y.js} +20 -6
  34. package/dist/{chunk-Y2QMFZQG.js.map → chunk-XZV6565Y.js.map} +1 -1
  35. package/dist/{cli-circuit-breaker-PIBTMQZS.js → cli-circuit-breaker-KJGFBOOQ.js} +4 -4
  36. package/dist/cli.js +38 -38
  37. package/dist/{composite-router-MDQ6V7DS.js → composite-router-QN3PTQOT.js} +2 -2
  38. package/dist/{consensus-vote-T576X4MI.js → consensus-vote-GDDLW4LT.js} +12 -12
  39. package/dist/{context-retriever-7SVNDBAF.js → context-retriever-SZVZSFLK.js} +10 -8
  40. package/dist/{doctor-deep-EFTG4336.js → doctor-deep-D24CDSPS.js} +3 -3
  41. package/dist/{expert-bridge-66RX5OL4.js → expert-bridge-KYGBOFSM.js} +4 -4
  42. package/dist/factory-JBAJJ5VC.js +21 -0
  43. package/dist/{factory-UE3K5WPQ.js → factory-VS775SS2.js} +5 -5
  44. package/dist/{improvement-review-5HVBJSXJ.js → improvement-review-EHX2VPII.js} +4 -4
  45. package/dist/index.js +27 -27
  46. package/dist/{init-opencode-VUPL5LMH.js → init-opencode-FWSDPPNA.js} +5 -5
  47. package/dist/{issue-triage-TNIWVBLP.js → issue-triage-2BSWLTIF.js} +5 -5
  48. package/dist/{pr-reviewer-helpers-BXNWNYRF.js → pr-reviewer-helpers-L7AX6TJH.js} +4 -4
  49. package/dist/{registry-command-CKZUUPO7.js → registry-command-MRDSZDP5.js} +2 -2
  50. package/dist/{repo-security-plan-FASDE3WF.js → repo-security-plan-2ALBLESV.js} +3 -3
  51. package/dist/{research-helpers-synthesize-53UJEEYZ.js → research-helpers-synthesize-5YGUR5DR.js} +4 -4
  52. package/dist/{routing-memory-XB6HE6ZY.js → routing-memory-B3OW277N.js} +2 -2
  53. package/dist/{session-memory-YSSKNSAI.js → session-memory-C7NUVBEY.js} +3 -3
  54. package/dist/{setup-command-BVMZQHKM.js → setup-command-VP55YH25.js} +11 -11
  55. package/dist/{setup-config-MPHZ4MWR.js → setup-config-73VCEGC7.js} +3 -3
  56. package/dist/{setup-custom-api-OTD7KVPR.js → setup-custom-api-AYWRJ7CT.js} +3 -3
  57. package/dist/{tool-memory-UWRRPM7C.js → tool-memory-HLLXFBXV.js} +5 -5
  58. package/dist/{weather-report-6ARKPGO7.js → weather-report-CEGAAPAQ.js} +2 -2
  59. package/package.json +1 -1
  60. package/dist/factory-HRG64OID.js +0 -21
  61. /package/dist/{child-mcp-config-FIXBPOVD.js.map → child-mcp-config-XSVFK3FL.js.map} +0 -0
  62. /package/dist/{chunk-TBVXG63Q.js.map → chunk-2EEC45RJ.js.map} +0 -0
  63. /package/dist/{chunk-5DOIZUPE.js.map → chunk-2WISJ7ZA.js.map} +0 -0
  64. /package/dist/{chunk-6DHDXNOO.js.map → chunk-574PH6QX.js.map} +0 -0
  65. /package/dist/{chunk-ILGRBYX6.js.map → chunk-5JWZWQS4.js.map} +0 -0
  66. /package/dist/{chunk-7VD5UJCF.js.map → chunk-5KGOKGHC.js.map} +0 -0
  67. /package/dist/{chunk-24L6ETFP.js.map → chunk-6Y5MRWJF.js.map} +0 -0
  68. /package/dist/{chunk-E4K4PLSJ.js.map → chunk-CGKONOF2.js.map} +0 -0
  69. /package/dist/{chunk-NF6ZY2XT.js.map → chunk-DEOQPYW4.js.map} +0 -0
  70. /package/dist/{chunk-CVGJKTO4.js.map → chunk-EMBNRWYQ.js.map} +0 -0
  71. /package/dist/{chunk-WBE5HPPW.js.map → chunk-ESGADHVN.js.map} +0 -0
  72. /package/dist/{chunk-LFX7W2QN.js.map → chunk-H7J5SQ42.js.map} +0 -0
  73. /package/dist/{chunk-PKKV2ZAT.js.map → chunk-HHYGTGWI.js.map} +0 -0
  74. /package/dist/{chunk-2JXELXS3.js.map → chunk-HOEXJHAM.js.map} +0 -0
  75. /package/dist/{chunk-NEBMJARV.js.map → chunk-INSR4OES.js.map} +0 -0
  76. /package/dist/{chunk-XKK55K2H.js.map → chunk-KLQALBIU.js.map} +0 -0
  77. /package/dist/{chunk-EQLXZKMD.js.map → chunk-KVVV2WR6.js.map} +0 -0
  78. /package/dist/{chunk-NGE7HWKP.js.map → chunk-LFRFOMSY.js.map} +0 -0
  79. /package/dist/{chunk-AXKGNVHM.js.map → chunk-LVKYXDCF.js.map} +0 -0
  80. /package/dist/{chunk-GHMFOI3H.js.map → chunk-LYAF5UZ7.js.map} +0 -0
  81. /package/dist/{chunk-KEZZWT4W.js.map → chunk-NCN76D4U.js.map} +0 -0
  82. /package/dist/{chunk-QTMZCTB6.js.map → chunk-O72WIQDK.js.map} +0 -0
  83. /package/dist/{chunk-KP77F65U.js.map → chunk-OFJIT7C5.js.map} +0 -0
  84. /package/dist/{chunk-SJZZQCZE.js.map → chunk-QBSSQENN.js.map} +0 -0
  85. /package/dist/{chunk-OGJ6Z6T5.js.map → chunk-RABYDES4.js.map} +0 -0
  86. /package/dist/{chunk-5JWBFZEO.js.map → chunk-SCGPKBGN.js.map} +0 -0
  87. /package/dist/{chunk-Z7OI5YXE.js.map → chunk-SFRHSC37.js.map} +0 -0
  88. /package/dist/{chunk-NWMWL6MD.js.map → chunk-SO6A3PCX.js.map} +0 -0
  89. /package/dist/{chunk-NZHV7GEK.js.map → chunk-UK7TXSMJ.js.map} +0 -0
  90. /package/dist/{chunk-2XEX5PM4.js.map → chunk-WXBLFLC3.js.map} +0 -0
  91. /package/dist/{cli-circuit-breaker-PIBTMQZS.js.map → cli-circuit-breaker-KJGFBOOQ.js.map} +0 -0
  92. /package/dist/{composite-router-MDQ6V7DS.js.map → composite-router-QN3PTQOT.js.map} +0 -0
  93. /package/dist/{consensus-vote-T576X4MI.js.map → consensus-vote-GDDLW4LT.js.map} +0 -0
  94. /package/dist/{context-retriever-7SVNDBAF.js.map → context-retriever-SZVZSFLK.js.map} +0 -0
  95. /package/dist/{doctor-deep-EFTG4336.js.map → doctor-deep-D24CDSPS.js.map} +0 -0
  96. /package/dist/{expert-bridge-66RX5OL4.js.map → expert-bridge-KYGBOFSM.js.map} +0 -0
  97. /package/dist/{factory-HRG64OID.js.map → factory-JBAJJ5VC.js.map} +0 -0
  98. /package/dist/{factory-UE3K5WPQ.js.map → factory-VS775SS2.js.map} +0 -0
  99. /package/dist/{improvement-review-5HVBJSXJ.js.map → improvement-review-EHX2VPII.js.map} +0 -0
  100. /package/dist/{init-opencode-VUPL5LMH.js.map → init-opencode-FWSDPPNA.js.map} +0 -0
  101. /package/dist/{issue-triage-TNIWVBLP.js.map → issue-triage-2BSWLTIF.js.map} +0 -0
  102. /package/dist/{pr-reviewer-helpers-BXNWNYRF.js.map → pr-reviewer-helpers-L7AX6TJH.js.map} +0 -0
  103. /package/dist/{registry-command-CKZUUPO7.js.map → registry-command-MRDSZDP5.js.map} +0 -0
  104. /package/dist/{repo-security-plan-FASDE3WF.js.map → repo-security-plan-2ALBLESV.js.map} +0 -0
  105. /package/dist/{research-helpers-synthesize-53UJEEYZ.js.map → research-helpers-synthesize-5YGUR5DR.js.map} +0 -0
  106. /package/dist/{routing-memory-XB6HE6ZY.js.map → routing-memory-B3OW277N.js.map} +0 -0
  107. /package/dist/{session-memory-YSSKNSAI.js.map → session-memory-C7NUVBEY.js.map} +0 -0
  108. /package/dist/{setup-command-BVMZQHKM.js.map → setup-command-VP55YH25.js.map} +0 -0
  109. /package/dist/{setup-config-MPHZ4MWR.js.map → setup-config-73VCEGC7.js.map} +0 -0
  110. /package/dist/{setup-custom-api-OTD7KVPR.js.map → setup-custom-api-AYWRJ7CT.js.map} +0 -0
  111. /package/dist/{tool-memory-UWRRPM7C.js.map → tool-memory-HLLXFBXV.js.map} +0 -0
  112. /package/dist/{weather-report-6ARKPGO7.js.map → weather-report-CEGAAPAQ.js.map} +0 -0
@@ -9,11 +9,11 @@ import {
9
9
  gateWithReputation,
10
10
  resolveReputationGatingMode,
11
11
  sanitizeInput
12
- } from "./chunk-NF6ZY2XT.js";
12
+ } from "./chunk-DEOQPYW4.js";
13
13
  import {
14
14
  createLogger,
15
15
  getTimeProvider
16
- } from "./chunk-E4K4PLSJ.js";
16
+ } from "./chunk-CGKONOF2.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-CVGJKTO4.js.map
291
+ //# sourceMappingURL=chunk-EMBNRWYQ.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveCliSlot
3
- } from "./chunk-ILGRBYX6.js";
3
+ } from "./chunk-5JWZWQS4.js";
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider,
7
7
  isRateLimitText
8
- } from "./chunk-E4K4PLSJ.js";
8
+ } from "./chunk-CGKONOF2.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-FIXBPOVD.js");
24
+ const { generateMcpConfig } = await import("./child-mcp-config-XSVFK3FL.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-HRG64OID.js");
97
- const { createCompositeRouter } = await import("./composite-router-MDQ6V7DS.js");
96
+ const { createAllAdapters } = await import("./factory-JBAJJ5VC.js");
97
+ const { createCompositeRouter } = await import("./composite-router-QN3PTQOT.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-PIBTMQZS.js");
105
+ const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-KJGFBOOQ.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-WBE5HPPW.js.map
216
+ //# sourceMappingURL=chunk-ESGADHVN.js.map
@@ -5,7 +5,7 @@ import {
5
5
  getErrorMessage,
6
6
  getTimeProvider,
7
7
  ok
8
- } from "./chunk-E4K4PLSJ.js";
8
+ } from "./chunk-CGKONOF2.js";
9
9
 
10
10
  // src/cli-adapters/circuit-breaker-types.ts
11
11
  var CircuitErrorCode = {
@@ -372,4 +372,4 @@ export {
372
372
  mapCliErrorToCategory,
373
373
  mapModelErrorToCategory
374
374
  };
375
- //# sourceMappingURL=chunk-LFX7W2QN.js.map
375
+ //# sourceMappingURL=chunk-H7J5SQ42.js.map
@@ -4,7 +4,7 @@ import {
4
4
  getErrorMessage,
5
5
  getTimeProvider,
6
6
  ok
7
- } from "./chunk-E4K4PLSJ.js";
7
+ } from "./chunk-CGKONOF2.js";
8
8
 
9
9
  // src/context/session-memory.ts
10
10
  import * as fs from "fs";
@@ -351,4 +351,4 @@ export {
351
351
  SessionMemory,
352
352
  createSessionMemory
353
353
  };
354
- //# sourceMappingURL=chunk-PKKV2ZAT.js.map
354
+ //# sourceMappingURL=chunk-HHYGTGWI.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getRandomProvider,
3
3
  getTimeProvider
4
- } from "./chunk-E4K4PLSJ.js";
4
+ } from "./chunk-CGKONOF2.js";
5
5
 
6
6
  // src/utils/id-utils.ts
7
7
  import { randomUUID } from "crypto";
@@ -24,4 +24,4 @@ export {
24
24
  generateHyphenId,
25
25
  generateUUID
26
26
  };
27
- //# sourceMappingURL=chunk-2JXELXS3.js.map
27
+ //# sourceMappingURL=chunk-HOEXJHAM.js.map
@@ -5,13 +5,13 @@ import {
5
5
  } from "./chunk-6T3EPABN.js";
6
6
  import {
7
7
  generateId
8
- } from "./chunk-2JXELXS3.js";
8
+ } from "./chunk-HOEXJHAM.js";
9
9
  import {
10
10
  getMemoryRegistry
11
11
  } from "./chunk-PQHVC4BD.js";
12
12
  import {
13
13
  SessionMemory
14
- } from "./chunk-PKKV2ZAT.js";
14
+ } from "./chunk-HHYGTGWI.js";
15
15
  import {
16
16
  ErrorCode,
17
17
  NexusError,
@@ -24,7 +24,7 @@ import {
24
24
  getTimeProvider,
25
25
  ok,
26
26
  setSharedMobiMemDbPathResolver
27
- } from "./chunk-E4K4PLSJ.js";
27
+ } from "./chunk-CGKONOF2.js";
28
28
  import {
29
29
  nexusDataPath
30
30
  } from "./chunk-CH7QIDHQ.js";
@@ -5612,4 +5612,4 @@ export {
5612
5612
  reinitializeMemoryBackends,
5613
5613
  ToolMemoryManager
5614
5614
  };
5615
- //# sourceMappingURL=chunk-NEBMJARV.js.map
5615
+ //# sourceMappingURL=chunk-INSR4OES.js.map
@@ -11,7 +11,7 @@ import {
11
11
  getErrorMessage,
12
12
  getTimeProvider,
13
13
  ok
14
- } from "./chunk-E4K4PLSJ.js";
14
+ } from "./chunk-CGKONOF2.js";
15
15
  import {
16
16
  getNexusDataDir
17
17
  } from "./chunk-CH7QIDHQ.js";
@@ -2588,4 +2588,4 @@ export {
2588
2588
  VOTING_THRESHOLDS,
2589
2589
  ConsensusMetricsSchema
2590
2590
  };
2591
- //# sourceMappingURL=chunk-XKK55K2H.js.map
2591
+ //# sourceMappingURL=chunk-KLQALBIU.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider
7
- } from "./chunk-E4K4PLSJ.js";
7
+ } from "./chunk-CGKONOF2.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-EQLXZKMD.js.map
724
+ //# sourceMappingURL=chunk-KVVV2WR6.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  loadPapersRegistry
3
- } from "./chunk-5DOIZUPE.js";
3
+ } from "./chunk-2WISJ7ZA.js";
4
4
  import {
5
5
  getErrorMessage
6
- } from "./chunk-E4K4PLSJ.js";
6
+ } from "./chunk-CGKONOF2.js";
7
7
 
8
8
  // src/cli/research-helpers-synthesize.ts
9
9
  import { z } from "zod";
@@ -876,4 +876,4 @@ export {
876
876
  AttributedInsightSchema,
877
877
  synthesizeResearch
878
878
  };
879
- //# sourceMappingURL=chunk-NGE7HWKP.js.map
879
+ //# sourceMappingURL=chunk-LFRFOMSY.js.map
@@ -2,7 +2,7 @@ import {
2
2
  TASK_CATEGORIES,
3
3
  getAdaptiveBonus,
4
4
  getOutcomeStore
5
- } from "./chunk-E4K4PLSJ.js";
5
+ } from "./chunk-CGKONOF2.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-AXKGNVHM.js.map
109
+ //# sourceMappingURL=chunk-LVKYXDCF.js.map
@@ -10,7 +10,7 @@ import {
10
10
  getTokenEstimator,
11
11
  isRateLimitLikeError,
12
12
  ok
13
- } from "./chunk-E4K4PLSJ.js";
13
+ } from "./chunk-CGKONOF2.js";
14
14
 
15
15
  // src/adapters/base-adapter.ts
16
16
  var AdapterModelError = class extends ModelError {
@@ -707,4 +707,4 @@ export {
707
707
  DEFAULT_COLLECT_STREAM_MAX_CHUNKS,
708
708
  collectStream
709
709
  };
710
- //# sourceMappingURL=chunk-GHMFOI3H.js.map
710
+ //# sourceMappingURL=chunk-LYAF5UZ7.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OpenAIAdapter
3
- } from "./chunk-TBVXG63Q.js";
3
+ } from "./chunk-2EEC45RJ.js";
4
4
  import {
5
5
  ConfigError,
6
6
  createLogger,
@@ -9,7 +9,7 @@ import {
9
9
  getTimeProvider,
10
10
  lookupInTreeCapability,
11
11
  ok
12
- } from "./chunk-E4K4PLSJ.js";
12
+ } from "./chunk-CGKONOF2.js";
13
13
  import {
14
14
  getNexusDataDir
15
15
  } from "./chunk-CH7QIDHQ.js";
@@ -307,4 +307,4 @@ export {
307
307
  discoverModels,
308
308
  buildOpenAICompatAdapters
309
309
  };
310
- //# sourceMappingURL=chunk-KEZZWT4W.js.map
310
+ //# sourceMappingURL=chunk-NCN76D4U.js.map
@@ -2,7 +2,7 @@ import {
2
2
  createLogger,
3
3
  err,
4
4
  ok
5
- } from "./chunk-E4K4PLSJ.js";
5
+ } from "./chunk-CGKONOF2.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-QTMZCTB6.js.map
90
+ //# sourceMappingURL=chunk-O72WIQDK.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-OGJ6Z6T5.js";
4
+ } from "./chunk-RABYDES4.js";
5
5
  import {
6
6
  resolveToken
7
- } from "./chunk-QTMZCTB6.js";
7
+ } from "./chunk-O72WIQDK.js";
8
8
  import {
9
9
  err,
10
10
  ok
11
- } from "./chunk-E4K4PLSJ.js";
11
+ } from "./chunk-CGKONOF2.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-KP77F65U.js.map
44
+ //# sourceMappingURL=chunk-OFJIT7C5.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runConfigInitSync
3
- } from "./chunk-Z7OI5YXE.js";
3
+ } from "./chunk-SFRHSC37.js";
4
4
  import {
5
5
  VERSION,
6
6
  checkApiKeys,
@@ -8,10 +8,10 @@ import {
8
8
  checkSqlite,
9
9
  defaultConfig,
10
10
  initDataDirectories
11
- } from "./chunk-6DHDXNOO.js";
11
+ } from "./chunk-574PH6QX.js";
12
12
  import {
13
13
  probeAllClis
14
- } from "./chunk-7VD5UJCF.js";
14
+ } from "./chunk-5KGOKGHC.js";
15
15
  import {
16
16
  BUILT_IN_EXPERTS
17
17
  } from "./chunk-ZM4O442V.js";
@@ -25,7 +25,7 @@ import {
25
25
  getErrorMessage,
26
26
  getTimeProvider,
27
27
  symbols
28
- } from "./chunk-E4K4PLSJ.js";
28
+ } from "./chunk-CGKONOF2.js";
29
29
  import {
30
30
  ensureGitignored,
31
31
  findRepoRoot
@@ -1987,4 +1987,4 @@ export {
1987
1987
  setupCommand,
1988
1988
  setupCommandAsync
1989
1989
  };
1990
- //# sourceMappingURL=chunk-SJZZQCZE.js.map
1990
+ //# sourceMappingURL=chunk-QBSSQENN.js.map
@@ -3,7 +3,7 @@ import {
3
3
  err,
4
4
  getErrorMessage,
5
5
  ok
6
- } from "./chunk-E4K4PLSJ.js";
6
+ } from "./chunk-CGKONOF2.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-OGJ6Z6T5.js.map
261
+ //# sourceMappingURL=chunk-RABYDES4.js.map
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-XKK55K2H.js";
10
+ } from "./chunk-KLQALBIU.js";
11
11
  import {
12
12
  createLogger,
13
13
  formatZodError,
@@ -15,7 +15,7 @@ import {
15
15
  getOutcomeStore,
16
16
  getPipelineEventBus,
17
17
  getTimeProvider
18
- } from "./chunk-E4K4PLSJ.js";
18
+ } from "./chunk-CGKONOF2.js";
19
19
  import {
20
20
  getNexusDataDir
21
21
  } from "./chunk-CH7QIDHQ.js";
@@ -1138,4 +1138,4 @@ export {
1138
1138
  runImprovementReview,
1139
1139
  registerImprovementReviewTool
1140
1140
  };
1141
- //# sourceMappingURL=chunk-5JWBFZEO.js.map
1141
+ //# sourceMappingURL=chunk-SCGPKBGN.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getErrorMessage
3
- } from "./chunk-E4K4PLSJ.js";
3
+ } from "./chunk-CGKONOF2.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-Z7OI5YXE.js.map
80
+ //# sourceMappingURL=chunk-SFRHSC37.js.map
@@ -15,7 +15,7 @@ import {
15
15
  createLogger,
16
16
  err,
17
17
  ok
18
- } from "./chunk-E4K4PLSJ.js";
18
+ } from "./chunk-CGKONOF2.js";
19
19
 
20
20
  // src/config/defaults.ts
21
21
  var CUSTOM_API_DEFAULT_MODEL = "gpt-4o";
@@ -396,4 +396,4 @@ export {
396
396
  validateCustomApiBaseUrl,
397
397
  assertCustomApiHostResolvesPublic
398
398
  };
399
- //# sourceMappingURL=chunk-NWMWL6MD.js.map
399
+ //# sourceMappingURL=chunk-SO6A3PCX.js.map
@@ -14,20 +14,20 @@ import {
14
14
  toolSuccess,
15
15
  withProgressHeartbeat,
16
16
  wrapToolWithTimeout
17
- } from "./chunk-XKK55K2H.js";
17
+ } from "./chunk-KLQALBIU.js";
18
18
  import {
19
19
  getToolMemory
20
- } from "./chunk-NEBMJARV.js";
20
+ } from "./chunk-INSR4OES.js";
21
21
  import {
22
22
  authRemediation,
23
23
  createAutoAdapter,
24
24
  delay,
25
25
  getAvailableClis,
26
26
  withTimeout
27
- } from "./chunk-7VD5UJCF.js";
27
+ } from "./chunk-5KGOKGHC.js";
28
28
  import {
29
29
  mapModelErrorToCategory
30
- } from "./chunk-LFX7W2QN.js";
30
+ } from "./chunk-H7J5SQ42.js";
31
31
  import {
32
32
  AgentError,
33
33
  CLI_NAMES,
@@ -62,7 +62,7 @@ import {
62
62
  registerPersistentOutcomeStoreFactory,
63
63
  resolveVoteTimeout,
64
64
  toRateLimitError
65
- } from "./chunk-E4K4PLSJ.js";
65
+ } from "./chunk-CGKONOF2.js";
66
66
  import {
67
67
  ensureLearningDir,
68
68
  getOutcomesFile,
@@ -5985,7 +5985,7 @@ async function processVotesWithCascade(engineVotes, opts) {
5985
5985
  var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
5986
5986
  async function runContrarianCheck(proposal, log) {
5987
5987
  try {
5988
- const { executeExpert } = await import("./expert-bridge-66RX5OL4.js");
5988
+ const { executeExpert } = await import("./expert-bridge-KYGBOFSM.js");
5989
5989
  const prompt = [
5990
5990
  "You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
5991
5991
  "Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
@@ -6457,4 +6457,4 @@ export {
6457
6457
  CONSENSUS_VOTE_OUTPUT_SCHEMA,
6458
6458
  registerConsensusVoteTool
6459
6459
  };
6460
- //# sourceMappingURL=chunk-NZHV7GEK.js.map
6460
+ //# sourceMappingURL=chunk-UK7TXSMJ.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-OGJ6Z6T5.js";
4
+ } from "./chunk-RABYDES4.js";
5
5
  import {
6
6
  ROLE_DEFAULT_TRUST,
7
7
  ReputationCache,
@@ -11,13 +11,13 @@ import {
11
11
  gateWithReputation,
12
12
  resolveReputationGatingMode,
13
13
  sanitizeInput
14
- } from "./chunk-NF6ZY2XT.js";
14
+ } from "./chunk-DEOQPYW4.js";
15
15
  import {
16
16
  createLogger,
17
17
  err,
18
18
  getTimeProvider,
19
19
  ok
20
- } from "./chunk-E4K4PLSJ.js";
20
+ } from "./chunk-CGKONOF2.js";
21
21
 
22
22
  // src/security/trust-classifier.ts
23
23
  function mapAuthorAssociation(association) {
@@ -1390,4 +1390,4 @@ export {
1390
1390
  IssueTriage,
1391
1391
  createIssueTriage
1392
1392
  };
1393
- //# sourceMappingURL=chunk-2XEX5PM4.js.map
1393
+ //# sourceMappingURL=chunk-WXBLFLC3.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  resolveToken
3
- } from "./chunk-QTMZCTB6.js";
3
+ } from "./chunk-O72WIQDK.js";
4
4
  import {
5
5
  REGISTRY_PATH,
6
6
  getProjectRoot,
7
7
  loadPapersRegistry,
8
8
  loadTechniquesRegistry,
9
9
  savePapersRegistry
10
- } from "./chunk-5DOIZUPE.js";
10
+ } from "./chunk-2WISJ7ZA.js";
11
11
  import {
12
12
  getToolMemory
13
- } from "./chunk-NEBMJARV.js";
13
+ } from "./chunk-INSR4OES.js";
14
14
  import {
15
15
  resolveInsideRoot
16
16
  } from "./chunk-NUBSJGQZ.js";
@@ -27,7 +27,7 @@ import {
27
27
  getOutcomeStore,
28
28
  getTimeProvider,
29
29
  registerPersistentDistillerFactory
30
- } from "./chunk-E4K4PLSJ.js";
30
+ } from "./chunk-CGKONOF2.js";
31
31
  import {
32
32
  ensureLearningDir,
33
33
  getRulesFile
@@ -2437,6 +2437,19 @@ ${lines.join("\n")}`);
2437
2437
  return sections.length === 0 ? "" : `## Prior Context (Nexus Memory)
2438
2438
  ${sections.join("\n\n")}`;
2439
2439
  }
2440
+ var CONTEXT_INJECT_FLAG = "NEXUS_CONTEXT_RETRIEVER_INJECT";
2441
+ async function getContextPromptPrefix(task, logger) {
2442
+ if (process.env[CONTEXT_INJECT_FLAG] !== "1") return void 0;
2443
+ const log = logger ?? createLogger({ component: "ContextRetriever" });
2444
+ try {
2445
+ const ctx = await getContextForTask({ task, category: inferTaskCategory(task), logger: log });
2446
+ const summary = summarizeContextForPrompt(ctx);
2447
+ return summary === "" ? void 0 : summary;
2448
+ } catch (error) {
2449
+ log.debug("context prompt prefix failed", { error: formatError(error) });
2450
+ return void 0;
2451
+ }
2452
+ }
2440
2453
 
2441
2454
  export {
2442
2455
  RulesSnapshotSchema,
@@ -2475,6 +2488,7 @@ export {
2475
2488
  selectRelevantResearch,
2476
2489
  getResearchInsightsForTask,
2477
2490
  inferTaskCategory,
2478
- summarizeContextForPrompt
2491
+ summarizeContextForPrompt,
2492
+ getContextPromptPrefix
2479
2493
  };
2480
- //# sourceMappingURL=chunk-Y2QMFZQG.js.map
2494
+ //# sourceMappingURL=chunk-XZV6565Y.js.map