nexus-agents 4.12.0 → 4.12.1

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 (121) hide show
  1. package/dist/{child-mcp-config-SG5D6EHE.js → child-mcp-config-KNFWHR5B.js} +2 -2
  2. package/dist/{chunk-VNPF3XDJ.js → chunk-3F7XUEXM.js} +2 -2
  3. package/dist/{chunk-6YPUY4DX.js → chunk-3JJ3QSJ6.js} +2 -2
  4. package/dist/{chunk-CUSNJVQP.js → chunk-7H6AIQFC.js} +2 -2
  5. package/dist/{chunk-U3PXZWHJ.js → chunk-ADKJSLYH.js} +2 -2
  6. package/dist/{chunk-QAX4II24.js → chunk-AUFZGVPH.js} +2 -2
  7. package/dist/{chunk-5CN5DWZL.js → chunk-AVKA47WQ.js} +35 -35
  8. package/dist/{chunk-M6V7RJ4F.js → chunk-AZ4C5Z32.js} +8 -8
  9. package/dist/{chunk-J2ZVAPGA.js → chunk-BDJ5H6BY.js} +2 -2
  10. package/dist/{chunk-L47G4NGG.js → chunk-D7NQCYON.js} +2 -2
  11. package/dist/{chunk-WTZZ6TS4.js → chunk-GK4WP7OU.js} +5 -5
  12. package/dist/{chunk-4KMXUSDA.js → chunk-JDX7FSEE.js} +3 -3
  13. package/dist/{chunk-FR5WCGPG.js → chunk-JEOQU5YQ.js} +2 -2
  14. package/dist/{chunk-VCEDQOKA.js → chunk-JYXU7XFQ.js} +5 -5
  15. package/dist/{chunk-EAF3SUOQ.js → chunk-K6DDDK5U.js} +7 -7
  16. package/dist/{chunk-7ZCZDRTJ.js → chunk-MWJLA3SK.js} +3 -3
  17. package/dist/{chunk-XQES4XMS.js → chunk-OS6V6AUS.js} +2 -2
  18. package/dist/{chunk-OAVU4XW2.js → chunk-PIOQ22BI.js} +6 -6
  19. package/dist/{chunk-SZB4YAPS.js → chunk-Q6TVHHJS.js} +4 -4
  20. package/dist/{chunk-HG2SQFVP.js → chunk-QWKXEUR3.js} +2 -2
  21. package/dist/{chunk-SOZLET5T.js → chunk-R5HKFDMX.js} +4 -4
  22. package/dist/{chunk-WJZ2BV5H.js → chunk-RTLSASIG.js} +5 -5
  23. package/dist/{chunk-NMQSNJPT.js → chunk-SIDH6NYX.js} +4 -4
  24. package/dist/{chunk-7LDOGIIK.js → chunk-U3ULCRR5.js} +2 -2
  25. package/dist/{chunk-M5BG7NYZ.js → chunk-UGXR3FGB.js} +2 -2
  26. package/dist/{chunk-ACYC2MQ6.js → chunk-UUHVA3EP.js} +3 -3
  27. package/dist/{chunk-2FKHVC6A.js → chunk-VAKHNSKR.js} +3 -3
  28. package/dist/{chunk-4BHQDCIT.js → chunk-VXSEXHLF.js} +2 -2
  29. package/dist/{chunk-GCBJOTZL.js → chunk-WDICVPNC.js} +2 -2
  30. package/dist/{chunk-5ML6GHQX.js → chunk-WFZGUWWQ.js} +8 -8
  31. package/dist/{chunk-SIJBJRHO.js → chunk-XUHVOLBI.js} +3 -3
  32. package/dist/{chunk-KE3VSAM2.js → chunk-YBR5G3FR.js} +62 -4
  33. package/dist/chunk-YBR5G3FR.js.map +1 -0
  34. package/dist/{chunk-QDYDMKNY.js → chunk-Z3XRX5G6.js} +8 -8
  35. package/dist/{chunk-RGCNKORY.js → chunk-Z46NIT6Y.js} +2 -2
  36. package/dist/{cli-circuit-breaker-46QD5K4X.js → cli-circuit-breaker-O3SRTC2D.js} +3 -3
  37. package/dist/cli.js +41 -41
  38. package/dist/{composite-router-6UDWNWSG.js → composite-router-FGCCXTW7.js} +2 -2
  39. package/dist/{consensus-vote-BJTJBSAC.js → consensus-vote-6XPXNECR.js} +16 -16
  40. package/dist/{context-retriever-AF32AUWP.js → context-retriever-5ZTWDBOB.js} +8 -8
  41. package/dist/{doctor-deep-HDG27DON.js → doctor-deep-LMVPV2XK.js} +3 -3
  42. package/dist/{doctor-live-J4NKCAIC.js → doctor-live-I5EMLG2W.js} +9 -9
  43. package/dist/{expert-bridge-YL4XVDGZ.js → expert-bridge-XCOFEAAH.js} +4 -4
  44. package/dist/{factory-QHMJXPI7.js → factory-RO6WFMAM.js} +9 -9
  45. package/dist/{factory-HUZJENBV.js → factory-UWBH5S4U.js} +5 -5
  46. package/dist/{improvement-review-6TPXS3VW.js → improvement-review-4WOLRVMB.js} +5 -5
  47. package/dist/index.js +30 -30
  48. package/dist/{init-opencode-GVYBHTUJ.js → init-opencode-HDVB7A2E.js} +6 -6
  49. package/dist/issue-triage-HJQK7C6D.js +17 -0
  50. package/dist/{pr-reviewer-helpers-FAVURSBY.js → pr-reviewer-helpers-7ER77ZQO.js} +4 -4
  51. package/dist/{registry-command-MZF4QA7H.js → registry-command-DKJVYKGI.js} +2 -2
  52. package/dist/{repo-security-plan-BROJ243L.js → repo-security-plan-KTLCJNJ4.js} +3 -3
  53. package/dist/{research-helpers-synthesize-VIUVR626.js → research-helpers-synthesize-D4W5C27B.js} +4 -4
  54. package/dist/{routing-memory-TKRPQIOL.js → routing-memory-ZV5EBOKF.js} +2 -2
  55. package/dist/{session-memory-EFWXUVUY.js → session-memory-VOPXMUVU.js} +3 -3
  56. package/dist/{setup-command-DOQYI3SG.js → setup-command-FO5E3RTT.js} +14 -14
  57. package/dist/{setup-config-WL5FOPUX.js → setup-config-JUJWPZW3.js} +3 -3
  58. package/dist/{setup-custom-api-OP5BHA7S.js → setup-custom-api-WCVFLOCN.js} +4 -4
  59. package/dist/{tool-memory-AQMUNZUN.js → tool-memory-FSBMC4MW.js} +5 -5
  60. package/dist/{unified-registry-UQBZMGUH.js → unified-registry-QV2LXC45.js} +10 -10
  61. package/dist/{weather-report-5USEJKDB.js → weather-report-J6LIGRJ7.js} +2 -2
  62. package/package.json +1 -1
  63. package/dist/chunk-KE3VSAM2.js.map +0 -1
  64. package/dist/issue-triage-XHS65H3P.js +0 -17
  65. /package/dist/{child-mcp-config-SG5D6EHE.js.map → child-mcp-config-KNFWHR5B.js.map} +0 -0
  66. /package/dist/{chunk-VNPF3XDJ.js.map → chunk-3F7XUEXM.js.map} +0 -0
  67. /package/dist/{chunk-6YPUY4DX.js.map → chunk-3JJ3QSJ6.js.map} +0 -0
  68. /package/dist/{chunk-CUSNJVQP.js.map → chunk-7H6AIQFC.js.map} +0 -0
  69. /package/dist/{chunk-U3PXZWHJ.js.map → chunk-ADKJSLYH.js.map} +0 -0
  70. /package/dist/{chunk-QAX4II24.js.map → chunk-AUFZGVPH.js.map} +0 -0
  71. /package/dist/{chunk-5CN5DWZL.js.map → chunk-AVKA47WQ.js.map} +0 -0
  72. /package/dist/{chunk-M6V7RJ4F.js.map → chunk-AZ4C5Z32.js.map} +0 -0
  73. /package/dist/{chunk-J2ZVAPGA.js.map → chunk-BDJ5H6BY.js.map} +0 -0
  74. /package/dist/{chunk-L47G4NGG.js.map → chunk-D7NQCYON.js.map} +0 -0
  75. /package/dist/{chunk-WTZZ6TS4.js.map → chunk-GK4WP7OU.js.map} +0 -0
  76. /package/dist/{chunk-4KMXUSDA.js.map → chunk-JDX7FSEE.js.map} +0 -0
  77. /package/dist/{chunk-FR5WCGPG.js.map → chunk-JEOQU5YQ.js.map} +0 -0
  78. /package/dist/{chunk-VCEDQOKA.js.map → chunk-JYXU7XFQ.js.map} +0 -0
  79. /package/dist/{chunk-EAF3SUOQ.js.map → chunk-K6DDDK5U.js.map} +0 -0
  80. /package/dist/{chunk-7ZCZDRTJ.js.map → chunk-MWJLA3SK.js.map} +0 -0
  81. /package/dist/{chunk-XQES4XMS.js.map → chunk-OS6V6AUS.js.map} +0 -0
  82. /package/dist/{chunk-OAVU4XW2.js.map → chunk-PIOQ22BI.js.map} +0 -0
  83. /package/dist/{chunk-SZB4YAPS.js.map → chunk-Q6TVHHJS.js.map} +0 -0
  84. /package/dist/{chunk-HG2SQFVP.js.map → chunk-QWKXEUR3.js.map} +0 -0
  85. /package/dist/{chunk-SOZLET5T.js.map → chunk-R5HKFDMX.js.map} +0 -0
  86. /package/dist/{chunk-WJZ2BV5H.js.map → chunk-RTLSASIG.js.map} +0 -0
  87. /package/dist/{chunk-NMQSNJPT.js.map → chunk-SIDH6NYX.js.map} +0 -0
  88. /package/dist/{chunk-7LDOGIIK.js.map → chunk-U3ULCRR5.js.map} +0 -0
  89. /package/dist/{chunk-M5BG7NYZ.js.map → chunk-UGXR3FGB.js.map} +0 -0
  90. /package/dist/{chunk-ACYC2MQ6.js.map → chunk-UUHVA3EP.js.map} +0 -0
  91. /package/dist/{chunk-2FKHVC6A.js.map → chunk-VAKHNSKR.js.map} +0 -0
  92. /package/dist/{chunk-4BHQDCIT.js.map → chunk-VXSEXHLF.js.map} +0 -0
  93. /package/dist/{chunk-GCBJOTZL.js.map → chunk-WDICVPNC.js.map} +0 -0
  94. /package/dist/{chunk-5ML6GHQX.js.map → chunk-WFZGUWWQ.js.map} +0 -0
  95. /package/dist/{chunk-SIJBJRHO.js.map → chunk-XUHVOLBI.js.map} +0 -0
  96. /package/dist/{chunk-QDYDMKNY.js.map → chunk-Z3XRX5G6.js.map} +0 -0
  97. /package/dist/{chunk-RGCNKORY.js.map → chunk-Z46NIT6Y.js.map} +0 -0
  98. /package/dist/{cli-circuit-breaker-46QD5K4X.js.map → cli-circuit-breaker-O3SRTC2D.js.map} +0 -0
  99. /package/dist/{composite-router-6UDWNWSG.js.map → composite-router-FGCCXTW7.js.map} +0 -0
  100. /package/dist/{consensus-vote-BJTJBSAC.js.map → consensus-vote-6XPXNECR.js.map} +0 -0
  101. /package/dist/{context-retriever-AF32AUWP.js.map → context-retriever-5ZTWDBOB.js.map} +0 -0
  102. /package/dist/{doctor-deep-HDG27DON.js.map → doctor-deep-LMVPV2XK.js.map} +0 -0
  103. /package/dist/{doctor-live-J4NKCAIC.js.map → doctor-live-I5EMLG2W.js.map} +0 -0
  104. /package/dist/{expert-bridge-YL4XVDGZ.js.map → expert-bridge-XCOFEAAH.js.map} +0 -0
  105. /package/dist/{factory-HUZJENBV.js.map → factory-RO6WFMAM.js.map} +0 -0
  106. /package/dist/{factory-QHMJXPI7.js.map → factory-UWBH5S4U.js.map} +0 -0
  107. /package/dist/{improvement-review-6TPXS3VW.js.map → improvement-review-4WOLRVMB.js.map} +0 -0
  108. /package/dist/{init-opencode-GVYBHTUJ.js.map → init-opencode-HDVB7A2E.js.map} +0 -0
  109. /package/dist/{issue-triage-XHS65H3P.js.map → issue-triage-HJQK7C6D.js.map} +0 -0
  110. /package/dist/{pr-reviewer-helpers-FAVURSBY.js.map → pr-reviewer-helpers-7ER77ZQO.js.map} +0 -0
  111. /package/dist/{registry-command-MZF4QA7H.js.map → registry-command-DKJVYKGI.js.map} +0 -0
  112. /package/dist/{repo-security-plan-BROJ243L.js.map → repo-security-plan-KTLCJNJ4.js.map} +0 -0
  113. /package/dist/{research-helpers-synthesize-VIUVR626.js.map → research-helpers-synthesize-D4W5C27B.js.map} +0 -0
  114. /package/dist/{routing-memory-TKRPQIOL.js.map → routing-memory-ZV5EBOKF.js.map} +0 -0
  115. /package/dist/{session-memory-EFWXUVUY.js.map → session-memory-VOPXMUVU.js.map} +0 -0
  116. /package/dist/{setup-command-DOQYI3SG.js.map → setup-command-FO5E3RTT.js.map} +0 -0
  117. /package/dist/{setup-config-WL5FOPUX.js.map → setup-config-JUJWPZW3.js.map} +0 -0
  118. /package/dist/{setup-custom-api-OP5BHA7S.js.map → setup-custom-api-WCVFLOCN.js.map} +0 -0
  119. /package/dist/{tool-memory-AQMUNZUN.js.map → tool-memory-FSBMC4MW.js.map} +0 -0
  120. /package/dist/{unified-registry-UQBZMGUH.js.map → unified-registry-QV2LXC45.js.map} +0 -0
  121. /package/dist/{weather-report-5USEJKDB.js.map → weather-report-J6LIGRJ7.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-SOZLET5T.js";
4
+ } from "./chunk-R5HKFDMX.js";
5
5
  import {
6
6
  ALLOWED_COMMANDS,
7
7
  ARTIFACT_TYPES,
@@ -541,7 +541,7 @@ import {
541
541
  withLogging,
542
542
  withRetry,
543
543
  withRetryWrapper
544
- } from "./chunk-5CN5DWZL.js";
544
+ } from "./chunk-AVKA47WQ.js";
545
545
  import {
546
546
  FALLBACK_SCANNER_DATA,
547
547
  buildPlanFromAnalysis,
@@ -549,7 +549,7 @@ import {
549
549
  generateSecurityPlan,
550
550
  getRegistryManifest,
551
551
  resolveScannerData
552
- } from "./chunk-RGCNKORY.js";
552
+ } from "./chunk-Z46NIT6Y.js";
553
553
  import {
554
554
  analyzeGitHubRepo,
555
555
  analyzeRepo,
@@ -575,16 +575,16 @@ import {
575
575
  getKnownNexusVarNames,
576
576
  startStdioServer,
577
577
  validateNexusEnv
578
- } from "./chunk-M6V7RJ4F.js";
578
+ } from "./chunk-AZ4C5Z32.js";
579
579
  import {
580
580
  OPENAI_MODELS,
581
581
  OPENAI_MODEL_ALIASES,
582
582
  OpenAIAdapter,
583
583
  createOpenAIAdapter
584
- } from "./chunk-VCEDQOKA.js";
584
+ } from "./chunk-JYXU7XFQ.js";
585
585
  import {
586
586
  executeExpert
587
- } from "./chunk-EAF3SUOQ.js";
587
+ } from "./chunk-K6DDDK5U.js";
588
588
  import {
589
589
  AgentFindingSchema,
590
590
  ConsensusEngine,
@@ -633,12 +633,12 @@ import {
633
633
  generateProposalId,
634
634
  parseAgentPairKey,
635
635
  registerConsensusVoteTool
636
- } from "./chunk-QDYDMKNY.js";
637
- import "./chunk-L47G4NGG.js";
636
+ } from "./chunk-Z3XRX5G6.js";
637
+ import "./chunk-D7NQCYON.js";
638
638
  import {
639
639
  allOf
640
640
  } from "./chunk-OQB3XC5O.js";
641
- import "./chunk-ACYC2MQ6.js";
641
+ import "./chunk-UUHVA3EP.js";
642
642
  import {
643
643
  AgentActionSchema,
644
644
  GitHubReviewer,
@@ -661,11 +661,11 @@ import {
661
661
  requiresHumanApproval,
662
662
  validateAgentAction,
663
663
  validateCorroboration
664
- } from "./chunk-OAVU4XW2.js";
664
+ } from "./chunk-PIOQ22BI.js";
665
665
  import {
666
666
  GitHubProvider,
667
667
  ScmError
668
- } from "./chunk-7LDOGIIK.js";
668
+ } from "./chunk-U3ULCRR5.js";
669
669
  import {
670
670
  GitHubUserRoleSchema,
671
671
  InjectionFlagSchema,
@@ -680,11 +680,11 @@ import {
680
680
  assessReputation,
681
681
  reconcileTrustTier,
682
682
  sanitizeInput
683
- } from "./chunk-6YPUY4DX.js";
683
+ } from "./chunk-3JJ3QSJ6.js";
684
684
  import {
685
685
  ImprovementReviewInputSchema,
686
686
  registerImprovementReviewTool
687
- } from "./chunk-SIJBJRHO.js";
687
+ } from "./chunk-XUHVOLBI.js";
688
688
  import {
689
689
  AgentPerformanceSchema,
690
690
  ConsensusAlgorithmSchema,
@@ -720,7 +720,7 @@ import {
720
720
  toolSuccess,
721
721
  toolSuccessStructured,
722
722
  validateToolInput
723
- } from "./chunk-7ZCZDRTJ.js";
723
+ } from "./chunk-MWJLA3SK.js";
724
724
  import {
725
725
  AuditTrail,
726
726
  MAX_STRIPPED_ELEMENTS_PER_EVENT,
@@ -732,13 +732,13 @@ import {
732
732
  emitReputationEvent,
733
733
  emitSanitizationEvent,
734
734
  emitTrustEvent
735
- } from "./chunk-CUSNJVQP.js";
735
+ } from "./chunk-7H6AIQFC.js";
736
736
  import {
737
737
  UnifiedAdapterRegistry,
738
738
  createUnifiedRegistry,
739
739
  getGlobalRegistry,
740
740
  resetGlobalRegistry
741
- } from "./chunk-NMQSNJPT.js";
741
+ } from "./chunk-SIDH6NYX.js";
742
742
  import {
743
743
  PersistentStrategyDistiller,
744
744
  RulesSnapshotSchema,
@@ -746,19 +746,19 @@ import {
746
746
  TokenCounter,
747
747
  TokenCounterProvider,
748
748
  createTokenCounter
749
- } from "./chunk-WJZ2BV5H.js";
750
- import "./chunk-HG2SQFVP.js";
749
+ } from "./chunk-RTLSASIG.js";
750
+ import "./chunk-QWKXEUR3.js";
751
751
  import "./chunk-NUBSJGQZ.js";
752
752
  import {
753
753
  getTokenEnvVars,
754
754
  hasToken,
755
755
  resolveToken
756
- } from "./chunk-VNPF3XDJ.js";
756
+ } from "./chunk-3F7XUEXM.js";
757
757
  import {
758
758
  MemoryError
759
- } from "./chunk-SZB4YAPS.js";
759
+ } from "./chunk-Q6TVHHJS.js";
760
760
  import "./chunk-6T3EPABN.js";
761
- import "./chunk-GCBJOTZL.js";
761
+ import "./chunk-WDICVPNC.js";
762
762
  import {
763
763
  BUILT_IN_EXPERTS,
764
764
  BuiltInExpertTypeSchema,
@@ -803,7 +803,7 @@ import {
803
803
  isCliAvailable,
804
804
  isRetryableError,
805
805
  sleep
806
- } from "./chunk-5ML6GHQX.js";
806
+ } from "./chunk-WFZGUWWQ.js";
807
807
  import {
808
808
  AdapterModelError,
809
809
  BaseAdapter,
@@ -825,11 +825,11 @@ import {
825
825
  tapStream,
826
826
  transformStream,
827
827
  withTimeout
828
- } from "./chunk-QAX4II24.js";
829
- import "./chunk-FR5WCGPG.js";
828
+ } from "./chunk-AUFZGVPH.js";
829
+ import "./chunk-JEOQU5YQ.js";
830
830
  import {
831
831
  PROVIDER_ENV_KEYS
832
- } from "./chunk-KE3VSAM2.js";
832
+ } from "./chunk-YBR5G3FR.js";
833
833
  import "./chunk-SNJNRDKZ.js";
834
834
  import {
835
835
  AvailabilityCache,
@@ -839,13 +839,13 @@ import {
839
839
  getFallbackChain,
840
840
  resetAvailabilityCache,
841
841
  resolveFallback
842
- } from "./chunk-J2ZVAPGA.js";
842
+ } from "./chunk-BDJ5H6BY.js";
843
843
  import "./chunk-QZUG667L.js";
844
- import "./chunk-U3PXZWHJ.js";
844
+ import "./chunk-ADKJSLYH.js";
845
845
  import {
846
846
  CliCircuitBreakerIntegration,
847
847
  createCliCircuitBreakerIntegration
848
- } from "./chunk-M5BG7NYZ.js";
848
+ } from "./chunk-UGXR3FGB.js";
849
849
  import {
850
850
  AgentCapability,
851
851
  AgentError,
@@ -919,7 +919,7 @@ import {
919
919
  toError,
920
920
  unwrap,
921
921
  unwrapOr
922
- } from "./chunk-4KMXUSDA.js";
922
+ } from "./chunk-JDX7FSEE.js";
923
923
  import "./chunk-2HUC6NZN.js";
924
924
  import "./chunk-OQLFRJCW.js";
925
925
  import "./chunk-ZPWHCABL.js";
@@ -4728,7 +4728,7 @@ function buildVotingInput(plan, config) {
4728
4728
  }
4729
4729
  async function executeSingleVote(plan, config, log) {
4730
4730
  try {
4731
- const { executeVoting } = await import("./consensus-vote-BJTJBSAC.js");
4731
+ const { executeVoting } = await import("./consensus-vote-6XPXNECR.js");
4732
4732
  const input = buildVotingInput(plan, config);
4733
4733
  const result = await executeVoting(input, log);
4734
4734
  return parseVotingResult(result);
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  discoverModels,
3
3
  readOpencodeGateway
4
- } from "./chunk-VCEDQOKA.js";
5
- import "./chunk-L47G4NGG.js";
6
- import "./chunk-QAX4II24.js";
7
- import "./chunk-KE3VSAM2.js";
4
+ } from "./chunk-JYXU7XFQ.js";
5
+ import "./chunk-D7NQCYON.js";
6
+ import "./chunk-AUFZGVPH.js";
7
+ import "./chunk-YBR5G3FR.js";
8
8
  import {
9
9
  createLogger
10
- } from "./chunk-4KMXUSDA.js";
10
+ } from "./chunk-JDX7FSEE.js";
11
11
  import "./chunk-2HUC6NZN.js";
12
12
  import "./chunk-OQLFRJCW.js";
13
13
  import "./chunk-ZPWHCABL.js";
@@ -176,4 +176,4 @@ export {
176
176
  runInitOpencode,
177
177
  runOpencodeValidate
178
178
  };
179
- //# sourceMappingURL=init-opencode-GVYBHTUJ.js.map
179
+ //# sourceMappingURL=init-opencode-HDVB7A2E.js.map
@@ -0,0 +1,17 @@
1
+ import {
2
+ IssueTriage,
3
+ createIssueTriage
4
+ } from "./chunk-PIOQ22BI.js";
5
+ import "./chunk-U3ULCRR5.js";
6
+ import "./chunk-3JJ3QSJ6.js";
7
+ import "./chunk-7H6AIQFC.js";
8
+ import "./chunk-3F7XUEXM.js";
9
+ import "./chunk-JDX7FSEE.js";
10
+ import "./chunk-2HUC6NZN.js";
11
+ import "./chunk-OQLFRJCW.js";
12
+ import "./chunk-ZPWHCABL.js";
13
+ export {
14
+ IssueTriage,
15
+ createIssueTriage
16
+ };
17
+ //# sourceMappingURL=issue-triage-HJQK7C6D.js.map
@@ -17,11 +17,11 @@ import {
17
17
  parseFindings,
18
18
  parseSeverity,
19
19
  sumFindings
20
- } from "./chunk-2FKHVC6A.js";
20
+ } from "./chunk-VAKHNSKR.js";
21
21
  import "./chunk-CQ77TF4Y.js";
22
22
  import "./chunk-OQB3XC5O.js";
23
- import "./chunk-6YPUY4DX.js";
24
- import "./chunk-4KMXUSDA.js";
23
+ import "./chunk-3JJ3QSJ6.js";
24
+ import "./chunk-JDX7FSEE.js";
25
25
  import "./chunk-2HUC6NZN.js";
26
26
  import "./chunk-OQLFRJCW.js";
27
27
  import "./chunk-ZPWHCABL.js";
@@ -45,4 +45,4 @@ export {
45
45
  parseSeverity,
46
46
  sumFindings
47
47
  };
48
- //# sourceMappingURL=pr-reviewer-helpers-FAVURSBY.js.map
48
+ //# sourceMappingURL=pr-reviewer-helpers-7ER77ZQO.js.map
@@ -7,7 +7,7 @@ import {
7
7
  loadGeneratedRegistryEntries,
8
8
  loadUserManifestOverlay,
9
9
  reloadDefaultRegistry
10
- } from "./chunk-4KMXUSDA.js";
10
+ } from "./chunk-JDX7FSEE.js";
11
11
  import "./chunk-2HUC6NZN.js";
12
12
  import {
13
13
  nexusDataPath
@@ -249,4 +249,4 @@ export {
249
249
  isValidRegistrySubcommand,
250
250
  registryCommand
251
251
  };
252
- //# sourceMappingURL=registry-command-MZF4QA7H.js.map
252
+ //# sourceMappingURL=registry-command-DKJVYKGI.js.map
@@ -3,9 +3,9 @@ import {
3
3
  buildPlanFromAnalysis,
4
4
  generateSecurityPlan,
5
5
  resolveScannerData
6
- } from "./chunk-RGCNKORY.js";
6
+ } from "./chunk-Z46NIT6Y.js";
7
7
  import "./chunk-HFOQKCD2.js";
8
- import "./chunk-4KMXUSDA.js";
8
+ import "./chunk-JDX7FSEE.js";
9
9
  import "./chunk-2HUC6NZN.js";
10
10
  import "./chunk-OQLFRJCW.js";
11
11
  import "./chunk-ZPWHCABL.js";
@@ -15,4 +15,4 @@ export {
15
15
  generateSecurityPlan,
16
16
  resolveScannerData
17
17
  };
18
- //# sourceMappingURL=repo-security-plan-BROJ243L.js.map
18
+ //# sourceMappingURL=repo-security-plan-KTLCJNJ4.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  AttributedInsightSchema,
3
3
  synthesizeResearch
4
- } from "./chunk-ACYC2MQ6.js";
5
- import "./chunk-HG2SQFVP.js";
4
+ } from "./chunk-UUHVA3EP.js";
5
+ import "./chunk-QWKXEUR3.js";
6
6
  import "./chunk-NUBSJGQZ.js";
7
- import "./chunk-4KMXUSDA.js";
7
+ import "./chunk-JDX7FSEE.js";
8
8
  import "./chunk-2HUC6NZN.js";
9
9
  import "./chunk-OQLFRJCW.js";
10
10
  import "./chunk-ZPWHCABL.js";
@@ -12,4 +12,4 @@ export {
12
12
  AttributedInsightSchema,
13
13
  synthesizeResearch
14
14
  };
15
- //# sourceMappingURL=research-helpers-synthesize-VIUVR626.js.map
15
+ //# sourceMappingURL=research-helpers-synthesize-D4W5C27B.js.map
@@ -2,7 +2,7 @@ import {
2
2
  DEFAULT_ROUTING_MEMORY_CONFIG,
3
3
  RoutingMemory,
4
4
  createRoutingMemory
5
- } from "./chunk-4KMXUSDA.js";
5
+ } from "./chunk-JDX7FSEE.js";
6
6
  import "./chunk-2HUC6NZN.js";
7
7
  import "./chunk-OQLFRJCW.js";
8
8
  import "./chunk-ZPWHCABL.js";
@@ -11,4 +11,4 @@ export {
11
11
  RoutingMemory,
12
12
  createRoutingMemory
13
13
  };
14
- //# sourceMappingURL=routing-memory-TKRPQIOL.js.map
14
+ //# sourceMappingURL=routing-memory-ZV5EBOKF.js.map
@@ -6,8 +6,8 @@ import {
6
6
  SessionMemory,
7
7
  SessionMemoryError,
8
8
  createSessionMemory
9
- } from "./chunk-GCBJOTZL.js";
10
- import "./chunk-4KMXUSDA.js";
9
+ } from "./chunk-WDICVPNC.js";
10
+ import "./chunk-JDX7FSEE.js";
11
11
  import "./chunk-2HUC6NZN.js";
12
12
  import "./chunk-OQLFRJCW.js";
13
13
  import "./chunk-ZPWHCABL.js";
@@ -20,4 +20,4 @@ export {
20
20
  SessionMemoryError,
21
21
  createSessionMemory
22
22
  };
23
- //# sourceMappingURL=session-memory-EFWXUVUY.js.map
23
+ //# sourceMappingURL=session-memory-VOPXMUVU.js.map
@@ -8,26 +8,26 @@ import {
8
8
  runWizard,
9
9
  setupCommand,
10
10
  setupCommandAsync
11
- } from "./chunk-WTZZ6TS4.js";
11
+ } from "./chunk-GK4WP7OU.js";
12
12
  import "./chunk-WPLXWTUK.js";
13
- import "./chunk-XQES4XMS.js";
14
- import "./chunk-M6V7RJ4F.js";
15
- import "./chunk-VCEDQOKA.js";
16
- import "./chunk-L47G4NGG.js";
13
+ import "./chunk-OS6V6AUS.js";
14
+ import "./chunk-AZ4C5Z32.js";
15
+ import "./chunk-JYXU7XFQ.js";
16
+ import "./chunk-D7NQCYON.js";
17
17
  import "./chunk-OQB3XC5O.js";
18
18
  import "./chunk-NUBSJGQZ.js";
19
19
  import "./chunk-6T3EPABN.js";
20
20
  import "./chunk-YPNQPT2F.js";
21
- import "./chunk-5ML6GHQX.js";
22
- import "./chunk-QAX4II24.js";
23
- import "./chunk-FR5WCGPG.js";
24
- import "./chunk-KE3VSAM2.js";
21
+ import "./chunk-WFZGUWWQ.js";
22
+ import "./chunk-AUFZGVPH.js";
23
+ import "./chunk-JEOQU5YQ.js";
24
+ import "./chunk-YBR5G3FR.js";
25
25
  import "./chunk-SNJNRDKZ.js";
26
- import "./chunk-J2ZVAPGA.js";
26
+ import "./chunk-BDJ5H6BY.js";
27
27
  import "./chunk-QZUG667L.js";
28
- import "./chunk-U3PXZWHJ.js";
29
- import "./chunk-M5BG7NYZ.js";
30
- import "./chunk-4KMXUSDA.js";
28
+ import "./chunk-ADKJSLYH.js";
29
+ import "./chunk-UGXR3FGB.js";
30
+ import "./chunk-JDX7FSEE.js";
31
31
  import "./chunk-2HUC6NZN.js";
32
32
  import "./chunk-OQLFRJCW.js";
33
33
  import "./chunk-ZPWHCABL.js";
@@ -42,4 +42,4 @@ export {
42
42
  setupCommand,
43
43
  setupCommandAsync
44
44
  };
45
- //# sourceMappingURL=setup-command-DOQYI3SG.js.map
45
+ //# sourceMappingURL=setup-command-FO5E3RTT.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  runConfigInitSync
3
- } from "./chunk-XQES4XMS.js";
4
- import "./chunk-4KMXUSDA.js";
3
+ } from "./chunk-OS6V6AUS.js";
4
+ import "./chunk-JDX7FSEE.js";
5
5
  import "./chunk-2HUC6NZN.js";
6
6
  import "./chunk-OQLFRJCW.js";
7
7
  import "./chunk-ZPWHCABL.js";
8
8
  export {
9
9
  runConfigInitSync
10
10
  };
11
- //# sourceMappingURL=setup-config-WL5FOPUX.js.map
11
+ //# sourceMappingURL=setup-config-JUJWPZW3.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  CUSTOM_API_DEFAULT_MODEL
3
- } from "./chunk-FR5WCGPG.js";
3
+ } from "./chunk-JEOQU5YQ.js";
4
4
  import {
5
5
  CUSTOM_API_ALLOW_PRIVATE_ENV,
6
6
  CUSTOM_API_BASE_URL_ENV,
7
7
  validateCustomApiBaseUrl
8
- } from "./chunk-KE3VSAM2.js";
8
+ } from "./chunk-YBR5G3FR.js";
9
9
  import {
10
10
  err,
11
11
  ok
12
- } from "./chunk-4KMXUSDA.js";
12
+ } from "./chunk-JDX7FSEE.js";
13
13
  import "./chunk-2HUC6NZN.js";
14
14
  import "./chunk-OQLFRJCW.js";
15
15
  import "./chunk-ZPWHCABL.js";
@@ -107,4 +107,4 @@ function buildShellFragment(params) {
107
107
  export {
108
108
  configureCustomApi
109
109
  };
110
- //# sourceMappingURL=setup-custom-api-OP5BHA7S.js.map
110
+ //# sourceMappingURL=setup-custom-api-WCVFLOCN.js.map
@@ -3,13 +3,13 @@ import {
3
3
  getToolMemory,
4
4
  reinitializeMemoryBackends,
5
5
  shutdownToolMemory
6
- } from "./chunk-SZB4YAPS.js";
6
+ } from "./chunk-Q6TVHHJS.js";
7
7
  import "./chunk-6T3EPABN.js";
8
- import "./chunk-GCBJOTZL.js";
8
+ import "./chunk-WDICVPNC.js";
9
9
  import "./chunk-XIIUIBSX.js";
10
10
  import "./chunk-KSQSWEFH.js";
11
- import "./chunk-U3PXZWHJ.js";
12
- import "./chunk-4KMXUSDA.js";
11
+ import "./chunk-ADKJSLYH.js";
12
+ import "./chunk-JDX7FSEE.js";
13
13
  import "./chunk-2HUC6NZN.js";
14
14
  import "./chunk-OQLFRJCW.js";
15
15
  import "./chunk-ZPWHCABL.js";
@@ -19,4 +19,4 @@ export {
19
19
  reinitializeMemoryBackends,
20
20
  shutdownToolMemory
21
21
  };
22
- //# sourceMappingURL=tool-memory-AQMUNZUN.js.map
22
+ //# sourceMappingURL=tool-memory-FSBMC4MW.js.map
@@ -3,17 +3,17 @@ import {
3
3
  createUnifiedRegistry,
4
4
  getGlobalRegistry,
5
5
  resetGlobalRegistry
6
- } from "./chunk-NMQSNJPT.js";
7
- import "./chunk-5ML6GHQX.js";
8
- import "./chunk-QAX4II24.js";
9
- import "./chunk-FR5WCGPG.js";
10
- import "./chunk-KE3VSAM2.js";
6
+ } from "./chunk-SIDH6NYX.js";
7
+ import "./chunk-WFZGUWWQ.js";
8
+ import "./chunk-AUFZGVPH.js";
9
+ import "./chunk-JEOQU5YQ.js";
10
+ import "./chunk-YBR5G3FR.js";
11
11
  import "./chunk-SNJNRDKZ.js";
12
- import "./chunk-J2ZVAPGA.js";
12
+ import "./chunk-BDJ5H6BY.js";
13
13
  import "./chunk-QZUG667L.js";
14
- import "./chunk-U3PXZWHJ.js";
15
- import "./chunk-M5BG7NYZ.js";
16
- import "./chunk-4KMXUSDA.js";
14
+ import "./chunk-ADKJSLYH.js";
15
+ import "./chunk-UGXR3FGB.js";
16
+ import "./chunk-JDX7FSEE.js";
17
17
  import "./chunk-2HUC6NZN.js";
18
18
  import "./chunk-OQLFRJCW.js";
19
19
  import "./chunk-ZPWHCABL.js";
@@ -23,4 +23,4 @@ export {
23
23
  getGlobalRegistry,
24
24
  resetGlobalRegistry
25
25
  };
26
- //# sourceMappingURL=unified-registry-UQBZMGUH.js.map
26
+ //# sourceMappingURL=unified-registry-QV2LXC45.js.map
@@ -5,7 +5,7 @@ import {
5
5
  getModelWeatherSummary,
6
6
  queryWithLookback,
7
7
  shouldExplore
8
- } from "./chunk-4KMXUSDA.js";
8
+ } from "./chunk-JDX7FSEE.js";
9
9
  import "./chunk-2HUC6NZN.js";
10
10
  import "./chunk-OQLFRJCW.js";
11
11
  import "./chunk-ZPWHCABL.js";
@@ -17,4 +17,4 @@ export {
17
17
  queryWithLookback,
18
18
  shouldExplore
19
19
  };
20
- //# sourceMappingURL=weather-report-5USEJKDB.js.map
20
+ //# sourceMappingURL=weather-report-J6LIGRJ7.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexus-agents",
3
- "version": "4.12.0",
3
+ "version": "4.12.1",
4
4
  "description": "Governance substrate for AI coding agents — adversarial PR review, drift-detected rules, tamper-evident audit, and closed-loop outcome routing for Claude, Codex, Gemini, and OpenCode",
5
5
  "mcpName": "io.github.nexus-substrate/nexus-agents",
6
6
  "license": "MIT",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/adapters/sdk/types.ts","../src/adapters/sdk/custom-api-validation.ts"],"sourcesContent":["/**\n * nexus-agents/adapters/sdk - Shared Types\n *\n * Type definitions for AI SDK adapter layer.\n *\n * @module adapters/sdk/types\n * (Source: Issue #1123 — AI SDK provider layer)\n */\n\n/**\n * Supported AI SDK provider identifiers.\n *\n * `custom-openai` is for OpenAI-compatible gateways (multi-vendor proxies,\n * self-hosted LLM servers, corporate model gateways) — uses the same\n * @ai-sdk/openai package but with a configurable `baseURL`.\n */\nexport type SdkProviderId = 'anthropic' | 'openai' | 'google' | 'custom-openai';\n\n/**\n * Configuration for creating an AI SDK adapter.\n */\nexport interface SdkAdapterConfig {\n /** Provider identifier */\n providerId: SdkProviderId;\n /** Model to use (e.g., 'claude-sonnet-4-6', 'gpt-4o') */\n modelId: string;\n /** API key (falls back to environment variable) */\n apiKey?: string;\n /**\n * Base URL for OpenAI-compatible gateways. Required when\n * `providerId === 'custom-openai'`, ignored otherwise. Falls back to\n * the `NEXUS_CUSTOM_API_BASE_URL` environment variable.\n */\n baseUrl?: string;\n /** Request timeout in milliseconds */\n timeout?: number;\n /** Maximum retries on transient failures */\n maxRetries?: number;\n}\n\n/**\n * Maps provider IDs to their environment variable names.\n */\nexport const PROVIDER_ENV_KEYS: Record<SdkProviderId, string> = {\n anthropic: 'ANTHROPIC_API_KEY',\n openai: 'OPENAI_API_KEY',\n google: 'GOOGLE_AI_API_KEY',\n 'custom-openai': 'NEXUS_CUSTOM_API_KEY',\n};\n\n/**\n * Environment variable name for the custom gateway base URL.\n * Keep in sync with `SdkAdapterConfig.baseUrl`.\n */\nexport const CUSTOM_API_BASE_URL_ENV = 'NEXUS_CUSTOM_API_BASE_URL';\n\n/**\n * Escape hatch: set to `1`/`true` to allow the custom gateway base URL to\n * resolve to a loopback or RFC 1918 private address. Default is DENY —\n * SSRF defense. Only disable this when you know the gateway runs on a\n * trusted internal host and you accept the risk.\n */\nexport const CUSTOM_API_ALLOW_PRIVATE_ENV = 'NEXUS_CUSTOM_API_ALLOW_PRIVATE';\n","/**\n * Validation for the `custom-openai` SDK adapter's gateway URL.\n *\n * The base URL is user-provided, so without validation the adapter becomes\n * an SSRF vector: a malicious prompt that reshaped env vars, or a typo in\n * the config, could point nexus-agents at `http://169.254.169.254/` (AWS\n * metadata) or `http://localhost:5432/` (internal services). This module\n * rejects such URLs unless the user explicitly opts in via\n * `NEXUS_CUSTOM_API_ALLOW_PRIVATE=1`.\n *\n * Called out in the #2119 consensus vote by the Security Engineer role.\n *\n * @module adapters/sdk/custom-api-validation\n */\n\nimport { isIPv4, isIPv6 } from 'node:net';\nimport { lookup as dnsLookup } from 'node:dns/promises';\nimport { ConfigError, ok, err, createLogger, type Result } from '../../core/index.js';\nimport { CUSTOM_API_ALLOW_PRIVATE_ENV } from './types.js';\n\nconst logger = createLogger({ module: 'custom-api-validation' });\n\n/**\n * Why a given URL was rejected. Machine-readable so error messages can\n * distinguish root causes in downstream tooling.\n */\nexport type BaseUrlRejectionReason =\n | 'empty'\n | 'not_a_url'\n | 'not_http_https'\n | 'loopback'\n | 'link_local'\n | 'private_range'\n | 'reserved';\n\ninterface RejectionDetail {\n readonly reason: BaseUrlRejectionReason;\n readonly message: string;\n}\n\n/**\n * Validates a user-provided custom-gateway base URL. Returns the URL as an\n * `ok` Result if it passes, or a `ConfigError` with a machine-readable\n * reason if it fails.\n *\n * Pass `{ allowPrivate: true }` (or set the env var) to bypass the SSRF\n * checks — use this only when the gateway is on a trusted internal host\n * and you accept the risk.\n */\nexport function validateCustomApiBaseUrl(\n raw: string | undefined,\n opts: { readonly allowPrivate?: boolean } = {}\n): Result<URL, ConfigError> {\n if (raw === undefined || raw.trim() === '') {\n return err(\n new ConfigError(\n 'Custom API base URL is required but missing. Set NEXUS_CUSTOM_API_BASE_URL or pass `baseUrl` in config.'\n )\n );\n }\n\n let url: URL;\n try {\n url = new URL(raw);\n } catch {\n return err(new ConfigError(`Custom API base URL is not a valid URL: ${raw}`));\n }\n\n if (url.protocol !== 'http:' && url.protocol !== 'https:') {\n return err(\n new ConfigError(`Custom API base URL must use http or https, got \"${url.protocol}\" in ${raw}`)\n );\n }\n\n const allowPrivate = opts.allowPrivate === true || resolveAllowPrivateFromEnv();\n if (!allowPrivate) {\n const rejection = classifyPrivateHost(url.hostname);\n if (rejection !== null) {\n return err(\n new ConfigError(\n `Custom API base URL rejected (SSRF guard, reason=\"${rejection.reason}\"): ${rejection.message}. ` +\n `Set ${CUSTOM_API_ALLOW_PRIVATE_ENV}=1 to bypass if the gateway runs on a trusted internal host.`\n )\n );\n }\n }\n\n return ok(url);\n}\n\nfunction resolveAllowPrivateFromEnv(): boolean {\n // Deliberately strict (case-sensitive, not parseBoolEnv): this disables an\n // SSRF guard, so we don't want extra case variants (e.g. `TRUE`) to loosen\n // the control. Fail-closed on anything but exact `1`/`true` (#3297).\n const v = process.env[CUSTOM_API_ALLOW_PRIVATE_ENV];\n return v === '1' || v === 'true';\n}\n\n/**\n * Returns a rejection reason if the hostname resolves (by string form) to\n * a loopback, link-local, or RFC 1918 private address; `null` otherwise.\n *\n * Note: this is a string-level check. It does NOT perform DNS resolution,\n * so a public DNS name that secretly resolves to a private IP will pass.\n * For that level of defense, callers should additionally run\n * {@link assertCustomApiHostResolvesPublic}, which performs a DNS lookup\n * and classifies each resolved address with the same range tables below.\n */\nfunction classifyPrivateHost(hostname: string): RejectionDetail | null {\n const normalized = normalizeHost(hostname);\n\n // Literal IP addresses — classify directly against the range tables.\n const literal = classifyIpAddress(normalized);\n if (literal !== 'not_an_ip') {\n return literal;\n }\n\n // Hostname literals that resolve to loopback without needing DNS\n if (\n normalized === 'localhost' ||\n normalized.endsWith('.localhost') ||\n normalized.endsWith('.local') // mDNS\n ) {\n return {\n reason: 'loopback',\n message: `hostname \"${hostname}\" resolves to loopback/mDNS`,\n };\n }\n\n return null;\n}\n\n/**\n * Strips IPv6 bracket wrapping (URL.hostname yields \"[::1]\") and lowercases,\n * giving the bare form the `node:net` checks expect. Shared by the sync and\n * async guards so the normalization rule lives in one place.\n */\nfunction normalizeHost(hostname: string): string {\n const stripped =\n hostname.startsWith('[') && hostname.endsWith(']') ? hostname.slice(1, -1) : hostname;\n return stripped.toLowerCase();\n}\n\n/**\n * Classifies a single (already normalized, bracket-stripped) address string.\n * Returns:\n * - a {@link RejectionDetail} if it is a private/loopback/link-local/reserved IP,\n * - `null` if it is a public IP literal (safe),\n * - the sentinel `'not_an_ip'` if the string is not an IP literal at all.\n *\n * This is the shared per-address classifier reused by both the sync\n * string-level guard ({@link classifyPrivateHost}) and the async\n * DNS-resolve-time guard ({@link assertCustomApiHostResolvesPublic}), so the\n * IPv4/IPv6 range tables live in exactly one place.\n */\nfunction classifyIpAddress(normalized: string): RejectionDetail | null | 'not_an_ip' {\n if (isIPv4(normalized)) {\n return classifyIPv4(normalized);\n }\n if (isIPv6(normalized)) {\n return classifyIPv6(normalized);\n }\n return 'not_an_ip';\n}\n\n/**\n * DNS-resolve-time SSRF guard for the custom-openai gateway.\n *\n * The sync {@link validateCustomApiBaseUrl} only inspects the hostname as a\n * string, so a PUBLIC DNS name that resolves to a PRIVATE/loopback/link-local\n * IP (e.g. an attacker-controlled `gateway.evil.test` pointing at\n * `169.254.169.254`) slips past it. This function closes that gap: it resolves\n * the hostname and runs the EXISTING IP classification against every returned\n * address, failing closed if ANY of them is private.\n *\n * Behaviour:\n * - `allowPrivate` (opt or env) → bypass, returns `ok` (matches the sync guard).\n * - hostname is already an IP literal → no DNS needed; the sync guard already\n * classified literals at construction, so return `ok`.\n * - otherwise `dns.lookup(hostname, { all: true })` and classify each address.\n * If ANY resolves private → `err(ConfigError)`.\n * - on a `dns.lookup` THROW (transient/NXDOMAIN/network error) → log debug and\n * return `ok`. Failing closed here is too aggressive: it would break legit\n * gateways on a flaky resolver, and this is additive defense-in-depth layered\n * on top of the sync string guard that already ran at construction. We only\n * REJECT on a SUCCESSFUL resolution to a private address.\n *\n * Residual risk (TOCTOU): this is RESOLVE-time, not socket-connect-time. A name\n * that passes here could rebind to a private IP before the actual connect\n * (DNS rebinding). A full fix needs a custom `fetch` `lookup` hook validating\n * the peer address at the socket layer — out of scope for this LOW\n * defense-in-depth pass (#3426).\n */\nexport async function assertCustomApiHostResolvesPublic(\n hostname: string,\n opts: { readonly allowPrivate?: boolean } = {}\n): Promise<Result<void, ConfigError>> {\n const allowPrivate = opts.allowPrivate === true || resolveAllowPrivateFromEnv();\n if (allowPrivate) {\n return ok(undefined);\n }\n\n const normalized = normalizeHost(hostname);\n\n // IP literals are already handled by the sync guard at construction; no DNS.\n if (isIPv4(normalized) || isIPv6(normalized)) {\n return ok(undefined);\n }\n\n // Only `address` is read; the resolver's `family` is intentionally NOT\n // trusted — `classifyIpAddress` re-derives v4/v6 from the address string, so\n // a mislabeled family in the lookup result cannot let a private IP slip past.\n let addresses: ReadonlyArray<{ readonly address: string }>;\n try {\n addresses = await dnsLookup(hostname, { all: true });\n } catch (error) {\n // Fail OPEN: transient/NXDOMAIN/network errors must not break legit\n // gateways. The sync string guard already ran; this is additive only.\n logger.debug('custom-api SSRF resolve check: DNS lookup failed, skipping (fail-open)', {\n hostname,\n error: error instanceof Error ? error.message : String(error),\n });\n return ok(undefined);\n }\n\n const rejection = firstPrivateAddress(addresses);\n if (rejection !== null) {\n return err(\n new ConfigError(\n `Custom API base URL rejected (SSRF resolve guard, reason=\"${rejection.reason}\"): ` +\n `hostname \"${hostname}\" resolved to ${rejection.message}. ` +\n `Set ${CUSTOM_API_ALLOW_PRIVATE_ENV}=1 to bypass if the gateway runs on a trusted internal host.`\n )\n );\n }\n\n return ok(undefined);\n}\n\n/**\n * Returns the {@link RejectionDetail} for the first resolved address that\n * classifies as private/loopback/link-local/reserved, or `null` if every\n * address is public. Fail-closed: any single private hit trips the guard.\n */\nfunction firstPrivateAddress(\n addresses: ReadonlyArray<{ readonly address: string }>\n): RejectionDetail | null {\n for (const { address } of addresses) {\n const rejection = classifyIpAddress(address.toLowerCase());\n if (rejection !== null && rejection !== 'not_an_ip') {\n return rejection;\n }\n }\n return null;\n}\n\n/** IPv4 ranges the SSRF guard rejects, in order of specificity. */\nconst IPV4_RULES: ReadonlyArray<{\n readonly match: (a: number, b: number) => boolean;\n readonly reason: BaseUrlRejectionReason;\n readonly label: string;\n}> = [\n { match: (a) => a === 127, reason: 'loopback', label: 'IPv4 loopback' },\n { match: (a) => a === 10, reason: 'private_range', label: 'IPv4 private (10/8)' },\n {\n match: (a, b) => a === 172 && b >= 16 && b <= 31,\n reason: 'private_range',\n label: 'IPv4 private (172.16/12)',\n },\n {\n match: (a, b) => a === 192 && b === 168,\n reason: 'private_range',\n label: 'IPv4 private (192.168/16)',\n },\n {\n match: (a, b) => a === 169 && b === 254,\n reason: 'link_local',\n label: 'IPv4 link-local (169.254/16 — AWS IMDS)',\n },\n { match: (a) => a === 0, reason: 'reserved', label: 'IPv4 reserved (0/8)' },\n];\n\nfunction classifyIPv4(ip: string): RejectionDetail | null {\n const parts = ip.split('.').map((p) => Number.parseInt(p, 10));\n if (parts.length !== 4 || parts.some((n) => Number.isNaN(n))) return null;\n const [a, b] = parts as [number, number, number, number];\n for (const rule of IPV4_RULES) {\n if (rule.match(a, b)) {\n return { reason: rule.reason, message: `${rule.label} (${ip})` };\n }\n }\n return null;\n}\n\nfunction classifyIPv6(ip: string): RejectionDetail | null {\n const lower = ip.toLowerCase();\n if (lower === '::1') return { reason: 'loopback', message: `IPv6 loopback (${ip})` };\n if (lower.startsWith('fe80:'))\n return { reason: 'link_local', message: `IPv6 link-local (${ip})` };\n // Unique-local: fc00::/7 → first byte has high bit set and second-high bit set\n if (/^fc|^fd/.test(lower)) {\n return { reason: 'private_range', message: `IPv6 unique-local (${ip}, fc00::/7)` };\n }\n return null;\n}\n"],"mappings":";;;;;;;;AA2CO,IAAM,oBAAmD;AAAA,EAC9D,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,iBAAiB;AACnB;AAMO,IAAM,0BAA0B;AAQhC,IAAM,+BAA+B;;;AC/C5C,SAAS,QAAQ,cAAc;AAC/B,SAAS,UAAU,iBAAiB;AAIpC,IAAM,SAAS,aAAa,EAAE,QAAQ,wBAAwB,CAAC;AA6BxD,SAAS,yBACd,KACA,OAA4C,CAAC,GACnB;AAC1B,MAAI,QAAQ,UAAa,IAAI,KAAK,MAAM,IAAI;AAC1C,WAAO;AAAA,MACL,IAAI;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,MAAI;AACJ,MAAI;AACF,UAAM,IAAI,IAAI,GAAG;AAAA,EACnB,QAAQ;AACN,WAAO,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-6YPUY4DX.js";
7
- import "./chunk-CUSNJVQP.js";
8
- import "./chunk-VNPF3XDJ.js";
9
- import "./chunk-4KMXUSDA.js";
10
- import "./chunk-2HUC6NZN.js";
11
- import "./chunk-OQLFRJCW.js";
12
- import "./chunk-ZPWHCABL.js";
13
- export {
14
- IssueTriage,
15
- createIssueTriage
16
- };
17
- //# sourceMappingURL=issue-triage-XHS65H3P.js.map