nexus-agents 7.0.2 → 8.0.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 (165) hide show
  1. package/dist/{child-mcp-config-ORXLS5HP.js → child-mcp-config-V2ESGPZ4.js} +7 -7
  2. package/dist/{chunk-RBF64DXJ.js → chunk-2S7Q7GHX.js} +5 -5
  3. package/dist/{chunk-AGFXJUTS.js → chunk-3GMYW66U.js} +14 -14
  4. package/dist/{chunk-4OW67KT2.js → chunk-4HXPNLZS.js} +6 -6
  5. package/dist/{chunk-W4Q5NZYZ.js → chunk-4QHAMZLU.js} +3 -3
  6. package/dist/{chunk-KSQSWEFH.js → chunk-54Z2II7G.js} +21 -11
  7. package/dist/chunk-54Z2II7G.js.map +1 -0
  8. package/dist/{chunk-WLIXCNZ6.js → chunk-5FBPGOKA.js} +24 -24
  9. package/dist/chunk-5FBPGOKA.js.map +1 -0
  10. package/dist/{chunk-RSMG2DPB.js → chunk-64GMIUM5.js} +5 -5
  11. package/dist/{chunk-RLBJTZHA.js → chunk-AHTOZ2UR.js} +2 -2
  12. package/dist/{chunk-JNZ3D5B5.js → chunk-AL5E5T3O.js} +4 -4
  13. package/dist/{chunk-3CGUPSBW.js → chunk-BKAUGBSF.js} +2 -2
  14. package/dist/{chunk-XREG2HTQ.js → chunk-BSWLRSOG.js} +4 -4
  15. package/dist/{chunk-JJT7NVNY.js → chunk-CHU7NTUR.js} +4 -4
  16. package/dist/{chunk-UVO673OY.js → chunk-DBDXS7PE.js} +3 -3
  17. package/dist/{chunk-VYAXMVI5.js → chunk-DEYXS6IZ.js} +5 -5
  18. package/dist/{chunk-VYAXMVI5.js.map → chunk-DEYXS6IZ.js.map} +1 -1
  19. package/dist/{chunk-HFOQKCD2.js → chunk-DGWT7DXX.js} +3 -3
  20. package/dist/{chunk-HFOQKCD2.js.map → chunk-DGWT7DXX.js.map} +1 -1
  21. package/dist/{chunk-LVYRGNOC.js → chunk-DWUF5YWG.js} +2 -2
  22. package/dist/{chunk-VVXHIUFQ.js → chunk-EGWPONTU.js} +6 -6
  23. package/dist/{chunk-OHULIRP6.js → chunk-EXAULYXZ.js} +19 -19
  24. package/dist/{chunk-K2AWJGQO.js → chunk-FSY2TYFX.js} +8 -8
  25. package/dist/{chunk-6GYTTWNM.js → chunk-FVHUWXM2.js} +2 -2
  26. package/dist/{chunk-ZGEDIKAM.js → chunk-FW2FBZBD.js} +4 -4
  27. package/dist/{chunk-ZD4VEHEG.js → chunk-H6BUSSTF.js} +2 -2
  28. package/dist/{chunk-D6TL5GZV.js → chunk-HKKLVWRO.js} +5 -5
  29. package/dist/{chunk-GBHJ37V3.js → chunk-ITCKXMOH.js} +4 -4
  30. package/dist/{chunk-Y742U2YM.js → chunk-J7SPTP2E.js} +119 -104
  31. package/dist/chunk-J7SPTP2E.js.map +1 -0
  32. package/dist/{chunk-KJWD2V4K.js → chunk-JFE3JT5Q.js} +7 -7
  33. package/dist/chunk-KRG23W3T.js +7 -0
  34. package/dist/{chunk-33FI7W3G.js → chunk-L2PDPA23.js} +3 -3
  35. package/dist/{chunk-XZEYSIGG.js → chunk-LOKTE5WE.js} +4 -4
  36. package/dist/{chunk-KUYKSKPV.js → chunk-LOYIV3HG.js} +214 -219
  37. package/dist/chunk-LOYIV3HG.js.map +1 -0
  38. package/dist/{chunk-Q6IODDEA.js → chunk-LVSKLVYC.js} +12 -12
  39. package/dist/{chunk-Q6IODDEA.js.map → chunk-LVSKLVYC.js.map} +1 -1
  40. package/dist/{chunk-JEAKVUWM.js → chunk-M6E5E7QV.js} +3 -3
  41. package/dist/{chunk-OGHEKPLD.js → chunk-MM223CVS.js} +10 -10
  42. package/dist/{chunk-6Q3KSZVI.js → chunk-MWS56UFF.js} +2 -2
  43. package/dist/{chunk-GAYSJGKD.js → chunk-OYWFWMLH.js} +13 -13
  44. package/dist/{chunk-S2Z7CME3.js → chunk-PXJ6CB5V.js} +2 -2
  45. package/dist/{chunk-Y5GYBP52.js → chunk-QTDUIXOJ.js} +4 -4
  46. package/dist/{chunk-7U7HAYPB.js → chunk-R4B4UJ6F.js} +25 -59
  47. package/dist/chunk-R4B4UJ6F.js.map +1 -0
  48. package/dist/{chunk-QAHGHWC7.js → chunk-WIJ5J7AH.js} +23 -23
  49. package/dist/{chunk-BTWKDT4F.js → chunk-YJ7Q2NHE.js} +20 -20
  50. package/dist/{chunk-IWTK6FDT.js → chunk-ZTPBXWA7.js} +4 -4
  51. package/dist/{cli-circuit-breaker-5FYJDS5O.js → cli-circuit-breaker-YFHX4FN2.js} +5 -5
  52. package/dist/cli.js +378 -379
  53. package/dist/cli.js.map +1 -1
  54. package/dist/{codebase-search-RHBGEWXK.js → codebase-search-3D4TW3KR.js} +2 -2
  55. package/dist/{composite-router-GE24MYPP.js → composite-router-224FZMI2.js} +4 -4
  56. package/dist/{consensus-vote-62FAN4ZN.js → consensus-vote-57SKG3EN.js} +22 -22
  57. package/dist/{context-retriever-3OO6N4V6.js → context-retriever-CCVDD7TO.js} +12 -12
  58. package/dist/{dist-IKZ53APZ.js → dist-JK32DFHT.js} +2 -2
  59. package/dist/doctor-deep-37II5V7H.js +13 -0
  60. package/dist/{doctor-live-J7JIZH3T.js → doctor-live-VXQOZW37.js} +13 -13
  61. package/dist/{expert-bridge-PWRVRFDG.js → expert-bridge-7LGHU7IL.js} +6 -6
  62. package/dist/factory-5URERSHK.js +25 -0
  63. package/dist/factory-SF6ZPN6D.js +15 -0
  64. package/dist/{improvement-review-QUU5HR7Z.js → improvement-review-2AFBFUQX.js} +8 -8
  65. package/dist/index.d.ts +58 -56
  66. package/dist/index.js +65 -76
  67. package/dist/index.js.map +1 -1
  68. package/dist/{init-opencode-GDPE4U65.js → init-opencode-ZFCKUI2N.js} +10 -10
  69. package/dist/issue-triage-IVYGGNB4.js +17 -0
  70. package/dist/{learning-persistence-7O5QYDM7.js → learning-persistence-7N5SZHNX.js} +3 -3
  71. package/dist/{pr-reviewer-helpers-KBOP72XG.js → pr-reviewer-helpers-TS2HJMZR.js} +6 -6
  72. package/dist/{registry-command-ZK4NQ2MX.js → registry-command-M6LXKNEY.js} +7 -7
  73. package/dist/{repo-analyze-UJOWFGNM.js → repo-analyze-DI65XOTQ.js} +2 -2
  74. package/dist/{repo-security-plan-SZU4O2TN.js → repo-security-plan-LS5GCASE.js} +6 -6
  75. package/dist/research-helpers-synthesize-NQMSFDMD.js +14 -0
  76. package/dist/{routing-memory-2SMMUPTB.js → routing-memory-BBHAEJUL.js} +4 -4
  77. package/dist/{session-memory-YQQVPLKM.js → session-memory-GYIEP7MM.js} +5 -5
  78. package/dist/setup-config-YIQ7ZZT3.js +11 -0
  79. package/dist/{setup-custom-api-ZSBUIJID.js → setup-custom-api-CHISHJZV.js} +7 -7
  80. package/dist/setup-data-dir-KQKFLBKQ.js +29 -0
  81. package/dist/tool-memory-TGNVGKUT.js +22 -0
  82. package/dist/tool-memory-registry-adapters-35IPCJLV.js +12 -0
  83. package/dist/unified-registry-D4QCQ36Z.js +26 -0
  84. package/dist/{weather-report-6AVPMHHM.js → weather-report-ZLQGZUDL.js} +4 -4
  85. package/package.json +4 -8
  86. package/dist/chunk-37JIYDVH.js +0 -7
  87. package/dist/chunk-7U7HAYPB.js.map +0 -1
  88. package/dist/chunk-KSQSWEFH.js.map +0 -1
  89. package/dist/chunk-KUYKSKPV.js.map +0 -1
  90. package/dist/chunk-WLIXCNZ6.js.map +0 -1
  91. package/dist/chunk-Y742U2YM.js.map +0 -1
  92. package/dist/doctor-deep-6WHVRRVQ.js +0 -13
  93. package/dist/factory-3BZDQQYM.js +0 -25
  94. package/dist/factory-UFKRSADE.js +0 -15
  95. package/dist/issue-triage-2LNYGQRJ.js +0 -17
  96. package/dist/research-helpers-synthesize-QY3DDHTD.js +0 -14
  97. package/dist/setup-config-LMZE4IRV.js +0 -11
  98. package/dist/setup-data-dir-ZEH7TFA6.js +0 -29
  99. package/dist/tool-memory-GUPG2M25.js +0 -22
  100. package/dist/tool-memory-registry-adapters-IMRSOAAV.js +0 -12
  101. package/dist/unified-registry-RPT4O3XB.js +0 -26
  102. package/scripts/postinstall.js +0 -12
  103. /package/dist/{child-mcp-config-ORXLS5HP.js.map → child-mcp-config-V2ESGPZ4.js.map} +0 -0
  104. /package/dist/{chunk-RBF64DXJ.js.map → chunk-2S7Q7GHX.js.map} +0 -0
  105. /package/dist/{chunk-AGFXJUTS.js.map → chunk-3GMYW66U.js.map} +0 -0
  106. /package/dist/{chunk-4OW67KT2.js.map → chunk-4HXPNLZS.js.map} +0 -0
  107. /package/dist/{chunk-W4Q5NZYZ.js.map → chunk-4QHAMZLU.js.map} +0 -0
  108. /package/dist/{chunk-RSMG2DPB.js.map → chunk-64GMIUM5.js.map} +0 -0
  109. /package/dist/{chunk-RLBJTZHA.js.map → chunk-AHTOZ2UR.js.map} +0 -0
  110. /package/dist/{chunk-JNZ3D5B5.js.map → chunk-AL5E5T3O.js.map} +0 -0
  111. /package/dist/{chunk-3CGUPSBW.js.map → chunk-BKAUGBSF.js.map} +0 -0
  112. /package/dist/{chunk-XREG2HTQ.js.map → chunk-BSWLRSOG.js.map} +0 -0
  113. /package/dist/{chunk-JJT7NVNY.js.map → chunk-CHU7NTUR.js.map} +0 -0
  114. /package/dist/{chunk-UVO673OY.js.map → chunk-DBDXS7PE.js.map} +0 -0
  115. /package/dist/{chunk-LVYRGNOC.js.map → chunk-DWUF5YWG.js.map} +0 -0
  116. /package/dist/{chunk-VVXHIUFQ.js.map → chunk-EGWPONTU.js.map} +0 -0
  117. /package/dist/{chunk-OHULIRP6.js.map → chunk-EXAULYXZ.js.map} +0 -0
  118. /package/dist/{chunk-K2AWJGQO.js.map → chunk-FSY2TYFX.js.map} +0 -0
  119. /package/dist/{chunk-6GYTTWNM.js.map → chunk-FVHUWXM2.js.map} +0 -0
  120. /package/dist/{chunk-ZGEDIKAM.js.map → chunk-FW2FBZBD.js.map} +0 -0
  121. /package/dist/{chunk-ZD4VEHEG.js.map → chunk-H6BUSSTF.js.map} +0 -0
  122. /package/dist/{chunk-D6TL5GZV.js.map → chunk-HKKLVWRO.js.map} +0 -0
  123. /package/dist/{chunk-GBHJ37V3.js.map → chunk-ITCKXMOH.js.map} +0 -0
  124. /package/dist/{chunk-KJWD2V4K.js.map → chunk-JFE3JT5Q.js.map} +0 -0
  125. /package/dist/{chunk-37JIYDVH.js.map → chunk-KRG23W3T.js.map} +0 -0
  126. /package/dist/{chunk-33FI7W3G.js.map → chunk-L2PDPA23.js.map} +0 -0
  127. /package/dist/{chunk-XZEYSIGG.js.map → chunk-LOKTE5WE.js.map} +0 -0
  128. /package/dist/{chunk-JEAKVUWM.js.map → chunk-M6E5E7QV.js.map} +0 -0
  129. /package/dist/{chunk-OGHEKPLD.js.map → chunk-MM223CVS.js.map} +0 -0
  130. /package/dist/{chunk-6Q3KSZVI.js.map → chunk-MWS56UFF.js.map} +0 -0
  131. /package/dist/{chunk-GAYSJGKD.js.map → chunk-OYWFWMLH.js.map} +0 -0
  132. /package/dist/{chunk-S2Z7CME3.js.map → chunk-PXJ6CB5V.js.map} +0 -0
  133. /package/dist/{chunk-Y5GYBP52.js.map → chunk-QTDUIXOJ.js.map} +0 -0
  134. /package/dist/{chunk-QAHGHWC7.js.map → chunk-WIJ5J7AH.js.map} +0 -0
  135. /package/dist/{chunk-BTWKDT4F.js.map → chunk-YJ7Q2NHE.js.map} +0 -0
  136. /package/dist/{chunk-IWTK6FDT.js.map → chunk-ZTPBXWA7.js.map} +0 -0
  137. /package/dist/{cli-circuit-breaker-5FYJDS5O.js.map → cli-circuit-breaker-YFHX4FN2.js.map} +0 -0
  138. /package/dist/{codebase-search-RHBGEWXK.js.map → codebase-search-3D4TW3KR.js.map} +0 -0
  139. /package/dist/{composite-router-GE24MYPP.js.map → composite-router-224FZMI2.js.map} +0 -0
  140. /package/dist/{consensus-vote-62FAN4ZN.js.map → consensus-vote-57SKG3EN.js.map} +0 -0
  141. /package/dist/{context-retriever-3OO6N4V6.js.map → context-retriever-CCVDD7TO.js.map} +0 -0
  142. /package/dist/{dist-IKZ53APZ.js.map → dist-JK32DFHT.js.map} +0 -0
  143. /package/dist/{doctor-deep-6WHVRRVQ.js.map → doctor-deep-37II5V7H.js.map} +0 -0
  144. /package/dist/{doctor-live-J7JIZH3T.js.map → doctor-live-VXQOZW37.js.map} +0 -0
  145. /package/dist/{expert-bridge-PWRVRFDG.js.map → expert-bridge-7LGHU7IL.js.map} +0 -0
  146. /package/dist/{factory-3BZDQQYM.js.map → factory-5URERSHK.js.map} +0 -0
  147. /package/dist/{factory-UFKRSADE.js.map → factory-SF6ZPN6D.js.map} +0 -0
  148. /package/dist/{improvement-review-QUU5HR7Z.js.map → improvement-review-2AFBFUQX.js.map} +0 -0
  149. /package/dist/{init-opencode-GDPE4U65.js.map → init-opencode-ZFCKUI2N.js.map} +0 -0
  150. /package/dist/{issue-triage-2LNYGQRJ.js.map → issue-triage-IVYGGNB4.js.map} +0 -0
  151. /package/dist/{learning-persistence-7O5QYDM7.js.map → learning-persistence-7N5SZHNX.js.map} +0 -0
  152. /package/dist/{pr-reviewer-helpers-KBOP72XG.js.map → pr-reviewer-helpers-TS2HJMZR.js.map} +0 -0
  153. /package/dist/{registry-command-ZK4NQ2MX.js.map → registry-command-M6LXKNEY.js.map} +0 -0
  154. /package/dist/{repo-analyze-UJOWFGNM.js.map → repo-analyze-DI65XOTQ.js.map} +0 -0
  155. /package/dist/{repo-security-plan-SZU4O2TN.js.map → repo-security-plan-LS5GCASE.js.map} +0 -0
  156. /package/dist/{research-helpers-synthesize-QY3DDHTD.js.map → research-helpers-synthesize-NQMSFDMD.js.map} +0 -0
  157. /package/dist/{routing-memory-2SMMUPTB.js.map → routing-memory-BBHAEJUL.js.map} +0 -0
  158. /package/dist/{session-memory-YQQVPLKM.js.map → session-memory-GYIEP7MM.js.map} +0 -0
  159. /package/dist/{setup-config-LMZE4IRV.js.map → setup-config-YIQ7ZZT3.js.map} +0 -0
  160. /package/dist/{setup-custom-api-ZSBUIJID.js.map → setup-custom-api-CHISHJZV.js.map} +0 -0
  161. /package/dist/{setup-data-dir-ZEH7TFA6.js.map → setup-data-dir-KQKFLBKQ.js.map} +0 -0
  162. /package/dist/{tool-memory-GUPG2M25.js.map → tool-memory-TGNVGKUT.js.map} +0 -0
  163. /package/dist/{tool-memory-registry-adapters-IMRSOAAV.js.map → tool-memory-registry-adapters-35IPCJLV.js.map} +0 -0
  164. /package/dist/{unified-registry-RPT4O3XB.js.map → unified-registry-D4QCQ36Z.js.map} +0 -0
  165. /package/dist/{weather-report-6AVPMHHM.js.map → weather-report-ZLQGZUDL.js.map} +0 -0
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createGitHubProvider,
3
3
  createScmProvider
4
- } from "./chunk-XREG2HTQ.js";
4
+ } from "./chunk-BSWLRSOG.js";
5
5
  import {
6
6
  ALLOWED_COMMANDS,
7
7
  ARTIFACT_TYPES,
@@ -553,7 +553,7 @@ import {
553
553
  withLogging,
554
554
  withRetry,
555
555
  withRetryWrapper
556
- } from "./chunk-KUYKSKPV.js";
556
+ } from "./chunk-LOYIV3HG.js";
557
557
  import {
558
558
  FALLBACK_SCANNER_DATA,
559
559
  buildPlanFromAnalysis,
@@ -561,29 +561,29 @@ import {
561
561
  generateSecurityPlan,
562
562
  getRegistryManifest,
563
563
  resolveScannerData
564
- } from "./chunk-VYAXMVI5.js";
564
+ } from "./chunk-DEYXS6IZ.js";
565
565
  import {
566
566
  analyzeGitHubRepo,
567
567
  analyzeRepo,
568
568
  normalizeRepoId
569
- } from "./chunk-HFOQKCD2.js";
570
- import "./chunk-RSMG2DPB.js";
569
+ } from "./chunk-DGWT7DXX.js";
570
+ import "./chunk-64GMIUM5.js";
571
571
  import "./chunk-BYUVLVN7.js";
572
572
  import {
573
573
  closeServer,
574
574
  connectTransport,
575
575
  createServer,
576
576
  startStdioServer
577
- } from "./chunk-WLIXCNZ6.js";
577
+ } from "./chunk-5FBPGOKA.js";
578
578
  import {
579
579
  OPENAI_MODELS,
580
580
  OPENAI_MODEL_ALIASES,
581
581
  OpenAIAdapter,
582
582
  createOpenAIAdapter
583
- } from "./chunk-VVXHIUFQ.js";
583
+ } from "./chunk-EGWPONTU.js";
584
584
  import {
585
585
  executeExpert
586
- } from "./chunk-KJWD2V4K.js";
586
+ } from "./chunk-JFE3JT5Q.js";
587
587
  import {
588
588
  AgentFindingSchema,
589
589
  ConsensusEngine,
@@ -632,12 +632,12 @@ import {
632
632
  generateProposalId,
633
633
  parseAgentPairKey,
634
634
  registerConsensusVoteTool
635
- } from "./chunk-OHULIRP6.js";
636
- import "./chunk-RBF64DXJ.js";
635
+ } from "./chunk-EXAULYXZ.js";
636
+ import "./chunk-2S7Q7GHX.js";
637
637
  import {
638
638
  allOf
639
639
  } from "./chunk-OQB3XC5O.js";
640
- import "./chunk-UVO673OY.js";
640
+ import "./chunk-DBDXS7PE.js";
641
641
  import {
642
642
  AgentActionSchema,
643
643
  GitHubReviewer,
@@ -660,11 +660,11 @@ import {
660
660
  requiresHumanApproval,
661
661
  validateAgentAction,
662
662
  validateCorroboration
663
- } from "./chunk-Q6IODDEA.js";
663
+ } from "./chunk-LVSKLVYC.js";
664
664
  import {
665
665
  GitHubProvider,
666
666
  ScmError
667
- } from "./chunk-IWTK6FDT.js";
667
+ } from "./chunk-ZTPBXWA7.js";
668
668
  import {
669
669
  GitHubUserRoleSchema,
670
670
  InjectionFlagSchema,
@@ -679,11 +679,11 @@ import {
679
679
  assessReputation,
680
680
  reconcileTrustTier,
681
681
  sanitizeInput
682
- } from "./chunk-RLBJTZHA.js";
682
+ } from "./chunk-AHTOZ2UR.js";
683
683
  import {
684
684
  ImprovementReviewInputSchema,
685
685
  registerImprovementReviewTool
686
- } from "./chunk-AGFXJUTS.js";
686
+ } from "./chunk-3GMYW66U.js";
687
687
  import {
688
688
  AgentPerformanceSchema,
689
689
  ConsensusAlgorithmSchema,
@@ -719,10 +719,10 @@ import {
719
719
  toolSuccess,
720
720
  toolSuccessStructured,
721
721
  validateToolInput
722
- } from "./chunk-GAYSJGKD.js";
722
+ } from "./chunk-OYWFWMLH.js";
723
723
  import {
724
724
  VERSION
725
- } from "./chunk-37JIYDVH.js";
725
+ } from "./chunk-KRG23W3T.js";
726
726
  import {
727
727
  AuditTrail,
728
728
  MAX_STRIPPED_ELEMENTS_PER_EVENT,
@@ -734,13 +734,13 @@ import {
734
734
  emitReputationEvent,
735
735
  emitSanitizationEvent,
736
736
  emitTrustEvent
737
- } from "./chunk-6Q3KSZVI.js";
737
+ } from "./chunk-MWS56UFF.js";
738
738
  import {
739
739
  UnifiedAdapterRegistry,
740
740
  createUnifiedRegistry,
741
741
  getGlobalRegistry,
742
742
  resetGlobalRegistry
743
- } from "./chunk-D6TL5GZV.js";
743
+ } from "./chunk-HKKLVWRO.js";
744
744
  import {
745
745
  PersistentStrategyDistiller,
746
746
  RulesSnapshotSchema,
@@ -748,18 +748,18 @@ import {
748
748
  TokenCounter,
749
749
  TokenCounterProvider,
750
750
  createTokenCounter
751
- } from "./chunk-QAHGHWC7.js";
752
- import "./chunk-K2AWJGQO.js";
751
+ } from "./chunk-WIJ5J7AH.js";
752
+ import "./chunk-FSY2TYFX.js";
753
753
  import {
754
754
  getTokenEnvVars,
755
755
  hasToken,
756
756
  resolveToken
757
- } from "./chunk-XZEYSIGG.js";
757
+ } from "./chunk-LOKTE5WE.js";
758
758
  import {
759
759
  MemoryError
760
- } from "./chunk-7U7HAYPB.js";
760
+ } from "./chunk-R4B4UJ6F.js";
761
761
  import "./chunk-6T3EPABN.js";
762
- import "./chunk-JNZ3D5B5.js";
762
+ import "./chunk-AL5E5T3O.js";
763
763
  import {
764
764
  BUILT_IN_EXPERTS,
765
765
  BuiltInExpertTypeSchema,
@@ -769,8 +769,8 @@ import {
769
769
  safeValidateExpertConfig,
770
770
  validateExpertConfig
771
771
  } from "./chunk-43SVUIPL.js";
772
- import "./chunk-JEAKVUWM.js";
773
- import "./chunk-KSQSWEFH.js";
772
+ import "./chunk-M6E5E7QV.js";
773
+ import "./chunk-54Z2II7G.js";
774
774
  import {
775
775
  BaseCliAdapter,
776
776
  CLAUDE_MODELS,
@@ -804,7 +804,7 @@ import {
804
804
  isCliAvailable,
805
805
  isRetryableError,
806
806
  sleep
807
- } from "./chunk-BTWKDT4F.js";
807
+ } from "./chunk-YJ7Q2NHE.js";
808
808
  import {
809
809
  AdapterModelError,
810
810
  BaseAdapter,
@@ -826,12 +826,12 @@ import {
826
826
  tapStream,
827
827
  transformStream,
828
828
  withTimeout
829
- } from "./chunk-LVYRGNOC.js";
830
- import "./chunk-ZD4VEHEG.js";
829
+ } from "./chunk-DWUF5YWG.js";
830
+ import "./chunk-H6BUSSTF.js";
831
831
  import {
832
832
  PROVIDER_ENV_KEYS
833
- } from "./chunk-ZGEDIKAM.js";
834
- import "./chunk-4OW67KT2.js";
833
+ } from "./chunk-FW2FBZBD.js";
834
+ import "./chunk-4HXPNLZS.js";
835
835
  import {
836
836
  AvailabilityCache,
837
837
  filterAvailableModels,
@@ -840,13 +840,13 @@ import {
840
840
  getFallbackChain,
841
841
  resetAvailabilityCache,
842
842
  resolveFallback
843
- } from "./chunk-6GYTTWNM.js";
843
+ } from "./chunk-FVHUWXM2.js";
844
844
  import "./chunk-QZUG667L.js";
845
- import "./chunk-33FI7W3G.js";
845
+ import "./chunk-L2PDPA23.js";
846
846
  import {
847
847
  CliCircuitBreakerIntegration,
848
848
  createCliCircuitBreakerIntegration
849
- } from "./chunk-S2Z7CME3.js";
849
+ } from "./chunk-PXJ6CB5V.js";
850
850
  import {
851
851
  AgentCapability,
852
852
  AgentError,
@@ -914,6 +914,7 @@ import {
914
914
  map,
915
915
  mapErr,
916
916
  ok,
917
+ openSqliteDatabase,
917
918
  sanitize,
918
919
  setDefaultAvailableModelsCache,
919
920
  setDefaultRegistry,
@@ -921,15 +922,11 @@ import {
921
922
  toError,
922
923
  unwrap,
923
924
  unwrapOr
924
- } from "./chunk-Y742U2YM.js";
925
- import "./chunk-GBHJ37V3.js";
926
- import "./chunk-OGHEKPLD.js";
925
+ } from "./chunk-J7SPTP2E.js";
926
+ import "./chunk-ITCKXMOH.js";
927
+ import "./chunk-MM223CVS.js";
927
928
  import "./chunk-ZPWHCABL.js";
928
929
 
929
- // src/context/session-journal.ts
930
- import * as fs from "fs";
931
- import * as path from "path";
932
-
933
930
  // src/context/session-journal-types.ts
934
931
  import { z } from "zod";
935
932
  var JournalEventTypeSchema = z.enum([
@@ -1154,21 +1151,13 @@ var SQLiteOutcomeStorage = class {
1154
1151
  });
1155
1152
  return this.initPromise;
1156
1153
  }
1154
+ // Stays async: this is a published Promise-returning API and its callers
1155
+ // await it. The only await was the dynamic `better-sqlite3` import, which
1156
+ // #5388 removed because `node:sqlite` is a synchronous builtin.
1157
+ // eslint-disable-next-line @typescript-eslint/require-await
1157
1158
  async doInitialize() {
1158
1159
  try {
1159
- const betterSqlite3Module = await import("better-sqlite3").catch((error) => {
1160
- this.logger.debug("Failed to import better-sqlite3", { error: String(error) });
1161
- return null;
1162
- });
1163
- if (betterSqlite3Module === null) {
1164
- return wrapStorageError(
1165
- new Error("better-sqlite3 not installed"),
1166
- "better-sqlite3 not installed. Install: npm install better-sqlite3",
1167
- { dbPath: this.dbPath }
1168
- );
1169
- }
1170
- const Database = betterSqlite3Module.default;
1171
- this.db = new Database(this.dbPath);
1160
+ this.db = openSqliteDatabase(this.dbPath);
1172
1161
  this.createTables();
1173
1162
  this.initialized = true;
1174
1163
  this.logger.info("SQLiteOutcomeStorage initialized", { dbPath: this.dbPath });
@@ -2936,10 +2925,10 @@ function createGitHubAdapter() {
2936
2925
  }
2937
2926
 
2938
2927
  // src/security/ast-rule-runner.ts
2939
- import { existsSync as existsSync2 } from "fs";
2940
- import { readdir, readFile, stat } from "fs/promises";
2941
- import { dirname, extname, join as join2, relative, resolve as resolve2, sep } from "path";
2942
- import { fileURLToPath } from "url";
2928
+ import { existsSync } from "node:fs";
2929
+ import { readdir, readFile, stat } from "node:fs/promises";
2930
+ import { dirname, extname, join, relative, resolve, sep } from "node:path";
2931
+ import { fileURLToPath } from "node:url";
2943
2932
  import { parse, registerDynamicLanguage } from "@ast-grep/napi";
2944
2933
  import goLangRegistration from "@ast-grep/lang-go";
2945
2934
  import pythonLangRegistration from "@ast-grep/lang-python";
@@ -2978,21 +2967,21 @@ async function loadRules(dir) {
2978
2967
  }
2979
2968
  const rules = [];
2980
2969
  for (const file of entries) {
2981
- const path2 = join2(dir, file);
2982
- const raw = await readFile(path2, "utf8");
2970
+ const path = join(dir, file);
2971
+ const raw = await readFile(path, "utf8");
2983
2972
  let parsed;
2984
2973
  try {
2985
2974
  parsed = parseYaml(raw);
2986
2975
  } catch (caught) {
2987
2976
  const e = caught instanceof Error ? caught : new Error(String(caught));
2988
- throw new ValidationError(`ast-rule-runner: malformed YAML in ${path2}: ${e.message}`, {
2977
+ throw new ValidationError(`ast-rule-runner: malformed YAML in ${path}: ${e.message}`, {
2989
2978
  cause: e
2990
2979
  });
2991
2980
  }
2992
2981
  const result = RuleFileSchema.safeParse(parsed);
2993
2982
  if (!result.success) {
2994
2983
  throw new ValidationError(
2995
- `ast-rule-runner: invalid rule file ${path2}: ${formatZodError(result.error)}`
2984
+ `ast-rule-runner: invalid rule file ${path}: ${formatZodError(result.error)}`
2996
2985
  );
2997
2986
  }
2998
2987
  rules.push(result.data);
@@ -3006,25 +2995,25 @@ function getBuiltInAstRulesPath() {
3006
2995
  const distIndex = currentFile.lastIndexOf(`${sep}dist${sep}`);
3007
2996
  if (distIndex !== -1) {
3008
2997
  const distDir = currentFile.substring(0, distIndex + 5);
3009
- const bundledPath = join2(distDir, "security", "ast-rules");
3010
- if (existsSync2(bundledPath)) return bundledPath;
2998
+ const bundledPath = join(distDir, "security", "ast-rules");
2999
+ if (existsSync(bundledPath)) return bundledPath;
3011
3000
  }
3012
3001
  }
3013
3002
  const possiblePaths = [
3014
- join2(currentDir, "ast-rules"),
3003
+ join(currentDir, "ast-rules"),
3015
3004
  // Unbundled: sibling of this file in src/security/
3016
- join2(currentDir, "security", "ast-rules"),
3005
+ join(currentDir, "security", "ast-rules"),
3017
3006
  // Bundled chunk: dist/security sibling
3018
- join2(dirname(currentDir), "security", "ast-rules")
3007
+ join(dirname(currentDir), "security", "ast-rules")
3019
3008
  ];
3020
- for (const path2 of possiblePaths) {
3021
- if (existsSync2(path2)) return path2;
3009
+ for (const path of possiblePaths) {
3010
+ if (existsSync(path)) return path;
3022
3011
  }
3023
- return join2(currentDir, "ast-rules");
3012
+ return join(currentDir, "ast-rules");
3024
3013
  }
3025
3014
  function resolveWithinCwd(target) {
3026
- const resolved = resolve2(target);
3027
- const cwdRoot = resolve2(".");
3015
+ const resolved = resolve(target);
3016
+ const cwdRoot = resolve(".");
3028
3017
  if (resolved !== cwdRoot && !resolved.startsWith(cwdRoot + sep)) {
3029
3018
  return { error: `Path traversal denied: scope must be within ${cwdRoot}` };
3030
3019
  }
@@ -3050,7 +3039,7 @@ async function findPolyglotFiles(dir, maxDepth) {
3050
3039
  return out;
3051
3040
  }
3052
3041
  for (const entry of entries) {
3053
- const fullPath = join2(dir, entry.name);
3042
+ const fullPath = join(dir, entry.name);
3054
3043
  if (entry.isDirectory() && !SKIP_DIRS.has(entry.name)) {
3055
3044
  out.push(...await findPolyglotFiles(fullPath, maxDepth - 1));
3056
3045
  } else if (entry.isFile() && inferRuleLang(entry.name) !== null) {
@@ -3484,7 +3473,7 @@ function calculateTokenCost(tokens, ratePerThousand) {
3484
3473
  }
3485
3474
 
3486
3475
  // src/benchmarks/memory-benchmarks-helpers.ts
3487
- import { randomUUID } from "crypto";
3476
+ import { randomUUID } from "node:crypto";
3488
3477
  var BENCHMARK_WORDS = ["memory", "test", "benchmark", "data", "entry", "performance", "latency"];
3489
3478
  function generateContent(sizeBytes, words = BENCHMARK_WORDS) {
3490
3479
  const parts = [];
@@ -3597,7 +3586,7 @@ var DEFAULT_BENCHMARK_CONFIG = {
3597
3586
  };
3598
3587
 
3599
3588
  // src/benchmarks/benchmark-runner.ts
3600
- import { cpus, totalmem, platform, arch } from "os";
3589
+ import { cpus, totalmem, platform, arch } from "node:os";
3601
3590
  var logger5 = createLogger({ component: "benchmark-runner" });
3602
3591
  var LatencySampler = class {
3603
3592
  samples = [];
@@ -4755,7 +4744,7 @@ function buildVotingInput(plan, config) {
4755
4744
  }
4756
4745
  async function executeSingleVote(plan, config, log) {
4757
4746
  try {
4758
- const { executeVoting } = await import("./consensus-vote-62FAN4ZN.js");
4747
+ const { executeVoting } = await import("./consensus-vote-57SKG3EN.js");
4759
4748
  const input = buildVotingInput(plan, config);
4760
4749
  const result = await executeVoting(input, log);
4761
4750
  return parseVotingResult(result);