nexus-agents 8.42.2 → 8.42.4

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 (129) hide show
  1. package/dist/{ast-rule-runner-XDNUUATJ.js → ast-rule-runner-2D4SCONP.js} +3 -3
  2. package/dist/{child-mcp-config-GVIE47AB.js → child-mcp-config-A7ILUJP6.js} +2 -2
  3. package/dist/{chunk-54VOT6BS.js → chunk-2R4O22JU.js} +3 -3
  4. package/dist/{chunk-5WMWO6FP.js → chunk-2WJBSFPH.js} +2 -2
  5. package/dist/{chunk-JELX34GE.js → chunk-2YXSH66Z.js} +2 -2
  6. package/dist/{chunk-DCDH2Y5M.js → chunk-3TDPO3Q4.js} +7 -7
  7. package/dist/{chunk-UZ7XL4OG.js → chunk-5ZYFO6TN.js} +4 -4
  8. package/dist/{chunk-K76FW2WI.js → chunk-66VYFQZO.js} +2 -2
  9. package/dist/{chunk-2YWZDKWU.js → chunk-CBQABK4Y.js} +3 -3
  10. package/dist/{chunk-AP2UGW5H.js → chunk-CE7IFP3L.js} +2 -2
  11. package/dist/{chunk-U4GAVGTT.js → chunk-CRWPONZV.js} +49 -37
  12. package/dist/chunk-CRWPONZV.js.map +1 -0
  13. package/dist/{chunk-V2OB4NGL.js → chunk-CWI5EK43.js} +2 -2
  14. package/dist/{chunk-WQIF4VDP.js → chunk-DBFFI6NM.js} +2 -2
  15. package/dist/{chunk-6KHUREWG.js → chunk-E67ENJWG.js} +4 -4
  16. package/dist/{chunk-ZOFQJNCS.js → chunk-ENMARUHB.js} +2 -2
  17. package/dist/{chunk-WKGKKQIM.js → chunk-FQ2ZEXLV.js} +9 -9
  18. package/dist/{chunk-VIXTMS4E.js → chunk-FVJ5QLWV.js} +2 -2
  19. package/dist/{chunk-MBZ4KBSM.js → chunk-FW3G54YA.js} +2 -2
  20. package/dist/{chunk-IUOV5HHS.js → chunk-HOU4NWRH.js} +8 -8
  21. package/dist/{chunk-UXQDDA2L.js → chunk-IFMOM4FX.js} +38 -43
  22. package/dist/{chunk-UXQDDA2L.js.map → chunk-IFMOM4FX.js.map} +1 -1
  23. package/dist/{chunk-4GSJ3VEK.js → chunk-ILKTFCC3.js} +2 -2
  24. package/dist/{chunk-JQIUIQNW.js → chunk-J2VFV7JJ.js} +3 -3
  25. package/dist/{chunk-UBMZB5LV.js → chunk-NV5YBG6R.js} +2 -2
  26. package/dist/{chunk-77LIYHB3.js → chunk-P742Y3JR.js} +2 -2
  27. package/dist/{chunk-Y7AKWQ32.js → chunk-PUVLA3GN.js} +2 -2
  28. package/dist/{chunk-RCVWWGD5.js → chunk-Q7KRPNY6.js} +4 -4
  29. package/dist/{chunk-Z7POHKXD.js → chunk-QF4F5L64.js} +4 -5
  30. package/dist/{chunk-Z7POHKXD.js.map → chunk-QF4F5L64.js.map} +1 -1
  31. package/dist/{chunk-U4MYND3S.js → chunk-QUM7WFYS.js} +2 -2
  32. package/dist/{chunk-FG5R43DC.js → chunk-S3O2OKGO.js} +2 -2
  33. package/dist/{chunk-BOQDD57B.js → chunk-SIIBPD6G.js} +5 -5
  34. package/dist/{chunk-3GEOJIOH.js → chunk-UOX2KWDX.js} +2 -2
  35. package/dist/{chunk-2QX52PCN.js → chunk-US4A55FY.js} +2 -2
  36. package/dist/{chunk-GC5P7ITJ.js → chunk-W3WIYJQL.js} +7 -7
  37. package/dist/{chunk-FFF55CF2.js → chunk-XJRAP2IU.js} +6 -6
  38. package/dist/{chunk-JMFEI2VQ.js → chunk-YITEBJJS.js} +2 -2
  39. package/dist/{chunk-KOC6XT7R.js → chunk-ZTJUHW6H.js} +12 -4
  40. package/dist/chunk-ZTJUHW6H.js.map +1 -0
  41. package/dist/{cli-circuit-breaker-BCLBBOS3.js → cli-circuit-breaker-3IP72JEP.js} +3 -3
  42. package/dist/cli.js +43 -43
  43. package/dist/{composite-router-ZL3R473T.js → composite-router-BEKRKLV7.js} +2 -2
  44. package/dist/{consensus-vote-AMIZFUPK.js → consensus-vote-344MQZ26.js} +17 -17
  45. package/dist/{context-retriever-Z6BHZKKG.js → context-retriever-UOBJPQPL.js} +8 -8
  46. package/dist/{doctor-deep-5NE7QKMY.js → doctor-deep-LQCMXPGF.js} +3 -3
  47. package/dist/{doctor-live-JXSTHE2Z.js → doctor-live-GXXVWRIR.js} +9 -9
  48. package/dist/{expert-bridge-PJQPAWZM.js → expert-bridge-THC5EYCW.js} +4 -4
  49. package/dist/{factory-25AA6KZD.js → factory-RMJHKNAM.js} +5 -5
  50. package/dist/{factory-VHNM2JBC.js → factory-YRO4BWY6.js} +9 -9
  51. package/dist/{improvement-review-VJUYFGPH.js → improvement-review-KZOAN246.js} +6 -6
  52. package/dist/index.d.ts +32 -2
  53. package/dist/index.js +34 -32
  54. package/dist/index.js.map +1 -1
  55. package/dist/{init-opencode-H2DKPOV4.js → init-opencode-NXOPYD7P.js} +6 -6
  56. package/dist/issue-triage-HEQGVBPF.js +17 -0
  57. package/dist/{pr-reviewer-helpers-LFFJ5XBW.js → pr-reviewer-helpers-T5R7EWVO.js} +4 -4
  58. package/dist/{registry-command-LVQC2JRE.js → registry-command-63V4Z4E7.js} +2 -2
  59. package/dist/{repo-security-plan-TOSB7SWB.js → repo-security-plan-L2NAKOCG.js} +3 -3
  60. package/dist/{research-helpers-synthesize-GOM3IWPN.js → research-helpers-synthesize-FJOZ6TIM.js} +4 -4
  61. package/dist/{routing-memory-4VJMGVM3.js → routing-memory-OTBEC6A3.js} +2 -2
  62. package/dist/{session-memory-G2OCK3Y3.js → session-memory-EVBXOWG7.js} +3 -3
  63. package/dist/{setup-config-3CTPCNPS.js → setup-config-SREI7DGK.js} +3 -3
  64. package/dist/{setup-custom-api-QKYNNWKU.js → setup-custom-api-WHW5GLJS.js} +4 -4
  65. package/dist/setup-data-dir-Y5FLJCF5.js +29 -0
  66. package/dist/{tool-memory-YBG63GON.js → tool-memory-45HFUB7I.js} +5 -5
  67. package/dist/{unified-registry-GYJ4TAAP.js → unified-registry-B2XBZZ73.js} +10 -10
  68. package/dist/{weather-report-DEQBWMMT.js → weather-report-NXSK5IWT.js} +2 -2
  69. package/package.json +1 -1
  70. package/dist/chunk-KOC6XT7R.js.map +0 -1
  71. package/dist/chunk-U4GAVGTT.js.map +0 -1
  72. package/dist/issue-triage-GQ2FBT57.js +0 -17
  73. package/dist/setup-data-dir-DZPYOR3M.js +0 -29
  74. /package/dist/{ast-rule-runner-XDNUUATJ.js.map → ast-rule-runner-2D4SCONP.js.map} +0 -0
  75. /package/dist/{child-mcp-config-GVIE47AB.js.map → child-mcp-config-A7ILUJP6.js.map} +0 -0
  76. /package/dist/{chunk-54VOT6BS.js.map → chunk-2R4O22JU.js.map} +0 -0
  77. /package/dist/{chunk-5WMWO6FP.js.map → chunk-2WJBSFPH.js.map} +0 -0
  78. /package/dist/{chunk-JELX34GE.js.map → chunk-2YXSH66Z.js.map} +0 -0
  79. /package/dist/{chunk-DCDH2Y5M.js.map → chunk-3TDPO3Q4.js.map} +0 -0
  80. /package/dist/{chunk-UZ7XL4OG.js.map → chunk-5ZYFO6TN.js.map} +0 -0
  81. /package/dist/{chunk-K76FW2WI.js.map → chunk-66VYFQZO.js.map} +0 -0
  82. /package/dist/{chunk-2YWZDKWU.js.map → chunk-CBQABK4Y.js.map} +0 -0
  83. /package/dist/{chunk-AP2UGW5H.js.map → chunk-CE7IFP3L.js.map} +0 -0
  84. /package/dist/{chunk-V2OB4NGL.js.map → chunk-CWI5EK43.js.map} +0 -0
  85. /package/dist/{chunk-WQIF4VDP.js.map → chunk-DBFFI6NM.js.map} +0 -0
  86. /package/dist/{chunk-6KHUREWG.js.map → chunk-E67ENJWG.js.map} +0 -0
  87. /package/dist/{chunk-ZOFQJNCS.js.map → chunk-ENMARUHB.js.map} +0 -0
  88. /package/dist/{chunk-WKGKKQIM.js.map → chunk-FQ2ZEXLV.js.map} +0 -0
  89. /package/dist/{chunk-VIXTMS4E.js.map → chunk-FVJ5QLWV.js.map} +0 -0
  90. /package/dist/{chunk-MBZ4KBSM.js.map → chunk-FW3G54YA.js.map} +0 -0
  91. /package/dist/{chunk-IUOV5HHS.js.map → chunk-HOU4NWRH.js.map} +0 -0
  92. /package/dist/{chunk-4GSJ3VEK.js.map → chunk-ILKTFCC3.js.map} +0 -0
  93. /package/dist/{chunk-JQIUIQNW.js.map → chunk-J2VFV7JJ.js.map} +0 -0
  94. /package/dist/{chunk-UBMZB5LV.js.map → chunk-NV5YBG6R.js.map} +0 -0
  95. /package/dist/{chunk-77LIYHB3.js.map → chunk-P742Y3JR.js.map} +0 -0
  96. /package/dist/{chunk-Y7AKWQ32.js.map → chunk-PUVLA3GN.js.map} +0 -0
  97. /package/dist/{chunk-RCVWWGD5.js.map → chunk-Q7KRPNY6.js.map} +0 -0
  98. /package/dist/{chunk-U4MYND3S.js.map → chunk-QUM7WFYS.js.map} +0 -0
  99. /package/dist/{chunk-FG5R43DC.js.map → chunk-S3O2OKGO.js.map} +0 -0
  100. /package/dist/{chunk-BOQDD57B.js.map → chunk-SIIBPD6G.js.map} +0 -0
  101. /package/dist/{chunk-3GEOJIOH.js.map → chunk-UOX2KWDX.js.map} +0 -0
  102. /package/dist/{chunk-2QX52PCN.js.map → chunk-US4A55FY.js.map} +0 -0
  103. /package/dist/{chunk-GC5P7ITJ.js.map → chunk-W3WIYJQL.js.map} +0 -0
  104. /package/dist/{chunk-FFF55CF2.js.map → chunk-XJRAP2IU.js.map} +0 -0
  105. /package/dist/{chunk-JMFEI2VQ.js.map → chunk-YITEBJJS.js.map} +0 -0
  106. /package/dist/{cli-circuit-breaker-BCLBBOS3.js.map → cli-circuit-breaker-3IP72JEP.js.map} +0 -0
  107. /package/dist/{composite-router-ZL3R473T.js.map → composite-router-BEKRKLV7.js.map} +0 -0
  108. /package/dist/{consensus-vote-AMIZFUPK.js.map → consensus-vote-344MQZ26.js.map} +0 -0
  109. /package/dist/{context-retriever-Z6BHZKKG.js.map → context-retriever-UOBJPQPL.js.map} +0 -0
  110. /package/dist/{doctor-deep-5NE7QKMY.js.map → doctor-deep-LQCMXPGF.js.map} +0 -0
  111. /package/dist/{doctor-live-JXSTHE2Z.js.map → doctor-live-GXXVWRIR.js.map} +0 -0
  112. /package/dist/{expert-bridge-PJQPAWZM.js.map → expert-bridge-THC5EYCW.js.map} +0 -0
  113. /package/dist/{factory-25AA6KZD.js.map → factory-RMJHKNAM.js.map} +0 -0
  114. /package/dist/{factory-VHNM2JBC.js.map → factory-YRO4BWY6.js.map} +0 -0
  115. /package/dist/{improvement-review-VJUYFGPH.js.map → improvement-review-KZOAN246.js.map} +0 -0
  116. /package/dist/{init-opencode-H2DKPOV4.js.map → init-opencode-NXOPYD7P.js.map} +0 -0
  117. /package/dist/{issue-triage-GQ2FBT57.js.map → issue-triage-HEQGVBPF.js.map} +0 -0
  118. /package/dist/{pr-reviewer-helpers-LFFJ5XBW.js.map → pr-reviewer-helpers-T5R7EWVO.js.map} +0 -0
  119. /package/dist/{registry-command-LVQC2JRE.js.map → registry-command-63V4Z4E7.js.map} +0 -0
  120. /package/dist/{repo-security-plan-TOSB7SWB.js.map → repo-security-plan-L2NAKOCG.js.map} +0 -0
  121. /package/dist/{research-helpers-synthesize-GOM3IWPN.js.map → research-helpers-synthesize-FJOZ6TIM.js.map} +0 -0
  122. /package/dist/{routing-memory-4VJMGVM3.js.map → routing-memory-OTBEC6A3.js.map} +0 -0
  123. /package/dist/{session-memory-G2OCK3Y3.js.map → session-memory-EVBXOWG7.js.map} +0 -0
  124. /package/dist/{setup-config-3CTPCNPS.js.map → setup-config-SREI7DGK.js.map} +0 -0
  125. /package/dist/{setup-custom-api-QKYNNWKU.js.map → setup-custom-api-WHW5GLJS.js.map} +0 -0
  126. /package/dist/{setup-data-dir-DZPYOR3M.js.map → setup-data-dir-Y5FLJCF5.js.map} +0 -0
  127. /package/dist/{tool-memory-YBG63GON.js.map → tool-memory-45HFUB7I.js.map} +0 -0
  128. /package/dist/{unified-registry-GYJ4TAAP.js.map → unified-registry-B2XBZZ73.js.map} +0 -0
  129. /package/dist/{weather-report-DEQBWMMT.js.map → weather-report-NXSK5IWT.js.map} +0 -0
@@ -9,8 +9,8 @@ import {
9
9
  getBuiltInAstRulesPath,
10
10
  loadRules,
11
11
  runAstQaRules
12
- } from "./chunk-U4MYND3S.js";
13
- import "./chunk-Z7POHKXD.js";
12
+ } from "./chunk-QUM7WFYS.js";
13
+ import "./chunk-QF4F5L64.js";
14
14
  import "./chunk-3HELETAQ.js";
15
15
  import "./chunk-JVNJJ2VL.js";
16
16
  import "./chunk-ZPWHCABL.js";
@@ -26,4 +26,4 @@ export {
26
26
  loadRules,
27
27
  runAstQaRules
28
28
  };
29
- //# sourceMappingURL=ast-rule-runner-XDNUUATJ.js.map
29
+ //# sourceMappingURL=ast-rule-runner-2D4SCONP.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-T5GVEXSA.js";
4
4
  import {
5
5
  createLogger
6
- } from "./chunk-Z7POHKXD.js";
6
+ } from "./chunk-QF4F5L64.js";
7
7
  import "./chunk-3HELETAQ.js";
8
8
  import "./chunk-JVNJJ2VL.js";
9
9
  import "./chunk-ZPWHCABL.js";
@@ -62,4 +62,4 @@ export {
62
62
  generateMcpConfig,
63
63
  getDefaultAllowedTools
64
64
  };
65
- //# sourceMappingURL=child-mcp-config-GVIE47AB.js.map
65
+ //# sourceMappingURL=child-mcp-config-A7ILUJP6.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  loadPapersRegistry
3
- } from "./chunk-4GSJ3VEK.js";
3
+ } from "./chunk-ILKTFCC3.js";
4
4
  import {
5
5
  getErrorMessage
6
- } from "./chunk-Z7POHKXD.js";
6
+ } from "./chunk-QF4F5L64.js";
7
7
 
8
8
  // src/cli/research-helpers-synthesize.ts
9
9
  import { z } from "zod";
@@ -886,4 +886,4 @@ export {
886
886
  AttributedInsightSchema,
887
887
  synthesizeResearch
888
888
  };
889
- //# sourceMappingURL=chunk-54VOT6BS.js.map
889
+ //# sourceMappingURL=chunk-2R4O22JU.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getTimeProvider
3
- } from "./chunk-Z7POHKXD.js";
3
+ } from "./chunk-QF4F5L64.js";
4
4
 
5
5
  // src/security/audit-trail.ts
6
6
  var MAX_EVENTS = 1e4;
@@ -214,4 +214,4 @@ export {
214
214
  createGraphAuditBridge,
215
215
  createAuditTrail
216
216
  };
217
- //# sourceMappingURL=chunk-5WMWO6FP.js.map
217
+ //# sourceMappingURL=chunk-2WJBSFPH.js.map
@@ -3,7 +3,7 @@ import {
3
3
  createLogger,
4
4
  getDefaultRegistry,
5
5
  roundToMicroUsd
6
- } from "./chunk-Z7POHKXD.js";
6
+ } from "./chunk-QF4F5L64.js";
7
7
  import {
8
8
  getNexusDataDir
9
9
  } from "./chunk-JVNJJ2VL.js";
@@ -196,4 +196,4 @@ export {
196
196
  loadUsageEvents,
197
197
  rollupByModel
198
198
  };
199
- //# sourceMappingURL=chunk-JELX34GE.js.map
199
+ //# sourceMappingURL=chunk-2YXSH66Z.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readOpenAICompatEnv
3
- } from "./chunk-BOQDD57B.js";
3
+ } from "./chunk-SIIBPD6G.js";
4
4
  import {
5
5
  allOf
6
6
  } from "./chunk-OQB3XC5O.js";
@@ -8,14 +8,14 @@ import {
8
8
  NODE_ENGINE_RANGE,
9
9
  VERSION,
10
10
  isNodeVersionSupported
11
- } from "./chunk-2QX52PCN.js";
11
+ } from "./chunk-US4A55FY.js";
12
12
  import {
13
13
  capitalize
14
14
  } from "./chunk-7LP6VJRP.js";
15
15
  import {
16
16
  createAllAdapters,
17
17
  probeCli
18
- } from "./chunk-IUOV5HHS.js";
18
+ } from "./chunk-HOU4NWRH.js";
19
19
  import {
20
20
  getNexusTmpDir
21
21
  } from "./chunk-T5GVEXSA.js";
@@ -30,7 +30,7 @@ import {
30
30
  ok,
31
31
  symbols,
32
32
  writeLine
33
- } from "./chunk-Z7POHKXD.js";
33
+ } from "./chunk-QF4F5L64.js";
34
34
  import {
35
35
  getLearningDir,
36
36
  getOutcomesFile,
@@ -1228,13 +1228,13 @@ async function runDoctorFix(result) {
1228
1228
  writeLine2("\u2500".repeat(40));
1229
1229
  let fixCount = 0;
1230
1230
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
1231
- const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-DZPYOR3M.js");
1231
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-Y5FLJCF5.js");
1232
1232
  const outcome = describeDataDirFix2(initDataDirectories2());
1233
1233
  writeLine2(outcome.line);
1234
1234
  if (outcome.counted) fixCount++;
1235
1235
  }
1236
1236
  if (!result.configFile.found) {
1237
- const { runConfigInitSync } = await import("./setup-config-3CTPCNPS.js");
1237
+ const { runConfigInitSync } = await import("./setup-config-SREI7DGK.js");
1238
1238
  const configResult = runConfigInitSync(process.cwd(), false, false);
1239
1239
  if (configResult.success && configResult.created) {
1240
1240
  writeLine2(`\u2713 Generated config: ${configResult.path}`);
@@ -1330,4 +1330,4 @@ export {
1330
1330
  startStdioServer,
1331
1331
  closeServer
1332
1332
  };
1333
- //# sourceMappingURL=chunk-DCDH2Y5M.js.map
1333
+ //# sourceMappingURL=chunk-3TDPO3Q4.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-UBMZB5LV.js";
4
+ } from "./chunk-NV5YBG6R.js";
5
5
  import {
6
6
  resolveToken
7
- } from "./chunk-Y7AKWQ32.js";
7
+ } from "./chunk-PUVLA3GN.js";
8
8
  import {
9
9
  err,
10
10
  ok
11
- } from "./chunk-Z7POHKXD.js";
11
+ } from "./chunk-QF4F5L64.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-UZ7XL4OG.js.map
44
+ //# sourceMappingURL=chunk-5ZYFO6TN.js.map
@@ -3,7 +3,7 @@ import {
3
3
  createLogger,
4
4
  err,
5
5
  ok
6
- } from "./chunk-Z7POHKXD.js";
6
+ } from "./chunk-QF4F5L64.js";
7
7
 
8
8
  // src/adapters/sdk/types.ts
9
9
  var PROVIDER_ENV_KEYS = {
@@ -260,4 +260,4 @@ export {
260
260
  validateCustomApiBaseUrl,
261
261
  assertCustomApiHostResolvesPublic
262
262
  };
263
- //# sourceMappingURL=chunk-K76FW2WI.js.map
263
+ //# sourceMappingURL=chunk-66VYFQZO.js.map
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-6KHUREWG.js";
10
+ } from "./chunk-E67ENJWG.js";
11
11
  import {
12
12
  JsonlStore,
13
13
  SECURITY_KEYWORDS,
@@ -20,7 +20,7 @@ import {
20
20
  getTimeProvider,
21
21
  isDeclaredNeverDeprecate,
22
22
  isRegisteredToolName
23
- } from "./chunk-Z7POHKXD.js";
23
+ } from "./chunk-QF4F5L64.js";
24
24
  import {
25
25
  getNexusDataDir,
26
26
  nexusDataPath
@@ -2173,4 +2173,4 @@ export {
2173
2173
  runImprovementReview,
2174
2174
  registerImprovementReviewTool
2175
2175
  };
2176
- //# sourceMappingURL=chunk-2YWZDKWU.js.map
2176
+ //# sourceMappingURL=chunk-CBQABK4Y.js.map
@@ -8,7 +8,7 @@ import {
8
8
  getTimeProvider,
9
9
  isRateLimitText,
10
10
  ok
11
- } from "./chunk-Z7POHKXD.js";
11
+ } from "./chunk-QF4F5L64.js";
12
12
 
13
13
  // src/cli-adapters/circuit-breaker-types.ts
14
14
  var CircuitErrorCode = {
@@ -541,4 +541,4 @@ export {
541
541
  CliCircuitBreakerIntegration,
542
542
  createCliCircuitBreakerIntegration
543
543
  };
544
- //# sourceMappingURL=chunk-AP2UGW5H.js.map
544
+ //# sourceMappingURL=chunk-CE7IFP3L.js.map
@@ -5,13 +5,13 @@ import {
5
5
  loadTechniquesRegistry,
6
6
  resolveInsideRoot,
7
7
  savePapersRegistry
8
- } from "./chunk-4GSJ3VEK.js";
8
+ } from "./chunk-ILKTFCC3.js";
9
9
  import {
10
10
  resolveToken
11
- } from "./chunk-Y7AKWQ32.js";
11
+ } from "./chunk-PUVLA3GN.js";
12
12
  import {
13
13
  getToolMemory
14
- } from "./chunk-KOC6XT7R.js";
14
+ } from "./chunk-ZTJUHW6H.js";
15
15
  import {
16
16
  capitalizeWords,
17
17
  tokenizeFiltered,
@@ -40,7 +40,7 @@ import {
40
40
  ok,
41
41
  registerPersistentDistillerFactory,
42
42
  sigmoidConfidence
43
- } from "./chunk-Z7POHKXD.js";
43
+ } from "./chunk-QF4F5L64.js";
44
44
  import {
45
45
  ensureLearningDir,
46
46
  getRulesFile
@@ -2404,7 +2404,7 @@ function rankMemories(ctx, task, options = {}) {
2404
2404
  });
2405
2405
  }
2406
2406
  function topRankedWithinBudget(items, maxTokens) {
2407
- if (maxTokens <= 0) return [];
2407
+ if (maxTokens <= 0) return { kept: [], omitted: items.length };
2408
2408
  const kept = [];
2409
2409
  let used = 0;
2410
2410
  for (const item of items) {
@@ -2413,7 +2413,7 @@ function topRankedWithinBudget(items, maxTokens) {
2413
2413
  used += cost;
2414
2414
  kept.push(item);
2415
2415
  }
2416
- return kept;
2416
+ return { kept, omitted: items.length - kept.length };
2417
2417
  }
2418
2418
  function sliceContextLines(lines, counter) {
2419
2419
  const estimated = lines.map((line) => ({ line, tokens: counter.estimate(line) }));
@@ -2435,6 +2435,14 @@ function renderDisclosedSection(heading, lines, counter) {
2435
2435
  return `${disclosedHeading(heading, slice)}
2436
2436
  ${slice.lines.join("\n")}`;
2437
2437
  }
2438
+ function renderLegacyResearchSection(ctx, counter, sanitize) {
2439
+ if (ctx.researchInsights.length === 0) return [];
2440
+ const lines = ctx.researchInsights.map((r) => {
2441
+ const evidence = r.evidenceTier !== void 0 ? `, evidence: ${sanitize(r.evidenceTier)}` : "";
2442
+ return `- ${sanitize(r.name)} (${sanitize(r.status)}${evidence}) \u2014 ${sanitize(r.topic)}`;
2443
+ });
2444
+ return [renderDisclosedSection("### Prior research on this topic", lines, counter)];
2445
+ }
2438
2446
  function renderLegacyLearningSections(ctx, counter, sanitize) {
2439
2447
  const sections = [];
2440
2448
  if (ctx.recentLearnings.length > 0) {
@@ -3945,7 +3953,7 @@ async function getResearchInsightsForTask(task, limit, logger) {
3945
3953
  function fetchPriorStrategies(category, limit, logger) {
3946
3954
  try {
3947
3955
  const all = loadPersistedRules();
3948
- return all.filter((r) => r.status === "active" && !r.tainted).filter((r) => r.category === category || r.category === "*").slice(0, limit);
3956
+ return all.filter((r) => r.status === "active").filter((r) => r.category === category || r.category === "*").slice(0, limit);
3949
3957
  } catch (error) {
3950
3958
  logger.debug("ContextRetriever: prior-strategies fetch failed", {
3951
3959
  error: formatError(error)
@@ -4081,27 +4089,36 @@ var CLIP_NOTICE_RESERVE_TOKENS = 30;
4081
4089
  function summarizeLegacyContext(ctx) {
4082
4090
  const sections = [];
4083
4091
  if (ctx.beliefs.length > 0) {
4084
- const slice = sliceContextLines(
4085
- ctx.beliefs.map(
4086
- (b) => `- ${oneLine3(b.subject)} ${oneLine3(b.predicate)} ${oneLine3(b.object)} (confidence: ${b.confidence})`
4087
- ),
4088
- contextTokenCounter
4092
+ sections.push(
4093
+ renderDisclosedSection(
4094
+ "### Beliefs",
4095
+ ctx.beliefs.map(
4096
+ (b) => `- ${oneLine3(b.subject)} ${oneLine3(b.predicate)} ${oneLine3(b.object)} (confidence: ${b.confidence})`
4097
+ ),
4098
+ contextTokenCounter
4099
+ )
4089
4100
  );
4090
- sections.push(`${disclosedHeading("### Beliefs", slice)}
4091
- ${slice.lines.join("\n")}`);
4092
4101
  }
4093
4102
  if (ctx.similarMemories.length > 0) {
4094
- const lines = ctx.similarMemories.slice(0, 3).map((m) => `- ${oneLine3(m.attributes.contextDescription)}`);
4095
- sections.push(`### Similar prior work
4096
- ${lines.join("\n")}`);
4103
+ sections.push(
4104
+ renderDisclosedSection(
4105
+ "### Similar prior work",
4106
+ ctx.similarMemories.map((m) => `- ${oneLine3(m.attributes.contextDescription)}`),
4107
+ contextTokenCounter
4108
+ )
4109
+ );
4097
4110
  }
4098
4111
  sections.push(...renderLegacyLearningSections(ctx, contextTokenCounter, oneLine3));
4099
4112
  if (ctx.experiencePatterns.length > 0) {
4100
- const lines = ctx.experiencePatterns.slice(0, 3).map(
4101
- (p) => `- ${oneLine3(p.taskType)}: ${(p.successRate * 100).toFixed(0)}% success over ${String(p.attemptCount)} attempts`
4113
+ sections.push(
4114
+ renderDisclosedSection(
4115
+ "### Observed patterns",
4116
+ ctx.experiencePatterns.map(
4117
+ (p) => `- ${oneLine3(p.taskType)}: ${(p.successRate * 100).toFixed(0)}% success over ${String(p.attemptCount)} attempts`
4118
+ ),
4119
+ contextTokenCounter
4120
+ )
4102
4121
  );
4103
- sections.push(`### Observed patterns
4104
- ${lines.join("\n")}`);
4105
4122
  }
4106
4123
  if (ctx.outcomes !== null && ctx.outcomes.totalTasks > 0) {
4107
4124
  sections.push(
@@ -4109,17 +4126,7 @@ ${lines.join("\n")}`);
4109
4126
  - ${String(ctx.outcomes.totalTasks)} prior tasks, ${(ctx.outcomes.successRate * 100).toFixed(0)}% success`
4110
4127
  );
4111
4128
  }
4112
- if (ctx.researchInsights.length > 0) {
4113
- const lines = ctx.researchInsights.map((r) => {
4114
- const evidence = r.evidenceTier !== void 0 ? `, evidence: ${oneLine3(r.evidenceTier)}` : "";
4115
- return `- ${oneLine3(r.name)} (${oneLine3(r.status)}${evidence}) \u2014 ${oneLine3(r.topic)}`;
4116
- });
4117
- const slice = sliceContextLines(lines, contextTokenCounter);
4118
- sections.push(
4119
- `${disclosedHeading("### Prior research on this topic", slice)}
4120
- ${slice.lines.join("\n")}`
4121
- );
4122
- }
4129
+ sections.push(...renderLegacyResearchSection(ctx, contextTokenCounter, oneLine3));
4123
4130
  return sections.length === 0 ? "" : `## Prior Context (Nexus Memory)
4124
4131
  ${sections.join("\n\n")}`;
4125
4132
  }
@@ -4135,14 +4142,19 @@ var RANKED_SOURCE_LABEL = {
4135
4142
  };
4136
4143
  function summarizeRankedContext(ctx) {
4137
4144
  const ranked = ctx.rankedMemories.length > 0 ? ctx.rankedMemories : rankMemories(ctx, deriveRankTask(ctx));
4138
- const top = topRankedWithinBudget(ranked, RANKED_PREFIX_TOKEN_BUDGET);
4139
- if (top.length === 0) return "";
4140
- const lines = top.map(
4145
+ const fit = topRankedWithinBudget(ranked, RANKED_PREFIX_TOKEN_BUDGET);
4146
+ if (fit.kept.length === 0) return "";
4147
+ const lines = fit.kept.map(
4141
4148
  (r) => `- [${RANKED_SOURCE_LABEL[r.source]}] ${oneLine3(r.text)} (relevance: ${r.relevanceScore.toFixed(2)})`
4142
4149
  );
4143
4150
  return `## Prior Context (Nexus Memory)
4144
4151
  ### Most relevant prior context
4145
- ${lines.join("\n")}`;
4152
+ ${lines.join("\n")}${rankedOmissionNotice(fit)}`;
4153
+ }
4154
+ function rankedOmissionNotice(fit) {
4155
+ if (fit.omitted === 0) return "";
4156
+ return `
4157
+ _(+${String(fit.omitted)} lower-ranked items omitted for the ~${String(RANKED_PREFIX_TOKEN_BUDGET)}-token prefix budget \u2014 #5851)_`;
4146
4158
  }
4147
4159
  function deriveRankTask(ctx) {
4148
4160
  const first = ctx.beliefs[0];
@@ -4216,4 +4228,4 @@ export {
4216
4228
  DEFAULT_CONTEXT_BUDGET_TOKENS,
4217
4229
  getContextPromptPrefix
4218
4230
  };
4219
- //# sourceMappingURL=chunk-U4GAVGTT.js.map
4231
+ //# sourceMappingURL=chunk-CRWPONZV.js.map