agentic-qe 2.7.3 → 2.8.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 (620) hide show
  1. package/CHANGELOG.md +130 -0
  2. package/README.md +67 -2
  3. package/dist/agents/AccessibilityAllyAgent.d.ts +0 -7
  4. package/dist/agents/AccessibilityAllyAgent.d.ts.map +1 -1
  5. package/dist/agents/AccessibilityAllyAgent.js +0 -15
  6. package/dist/agents/AccessibilityAllyAgent.js.map +1 -1
  7. package/dist/agents/ApiContractValidatorAgent.js +4 -4
  8. package/dist/agents/ApiContractValidatorAgent.js.map +1 -1
  9. package/dist/agents/BaseAgent.d.ts +2 -0
  10. package/dist/agents/BaseAgent.d.ts.map +1 -1
  11. package/dist/agents/BaseAgent.js +43 -41
  12. package/dist/agents/BaseAgent.js.map +1 -1
  13. package/dist/agents/CodeComplexityAnalyzerAgent.d.ts +0 -8
  14. package/dist/agents/CodeComplexityAnalyzerAgent.d.ts.map +1 -1
  15. package/dist/agents/CodeComplexityAnalyzerAgent.js +0 -15
  16. package/dist/agents/CodeComplexityAnalyzerAgent.js.map +1 -1
  17. package/dist/agents/CodeIntelligenceAgent.d.ts +0 -1
  18. package/dist/agents/CodeIntelligenceAgent.d.ts.map +1 -1
  19. package/dist/agents/CodeIntelligenceAgent.js +0 -2
  20. package/dist/agents/CodeIntelligenceAgent.js.map +1 -1
  21. package/dist/agents/DeploymentReadinessAgent.d.ts.map +1 -1
  22. package/dist/agents/DeploymentReadinessAgent.js +30 -30
  23. package/dist/agents/DeploymentReadinessAgent.js.map +1 -1
  24. package/dist/agents/FlakyTestHunterAgent.d.ts +0 -10
  25. package/dist/agents/FlakyTestHunterAgent.d.ts.map +1 -1
  26. package/dist/agents/FlakyTestHunterAgent.js +10 -20
  27. package/dist/agents/FlakyTestHunterAgent.js.map +1 -1
  28. package/dist/agents/FleetCommanderAgent.d.ts.map +1 -1
  29. package/dist/agents/FleetCommanderAgent.js +28 -28
  30. package/dist/agents/FleetCommanderAgent.js.map +1 -1
  31. package/dist/agents/LearningAgent.js +1 -1
  32. package/dist/agents/LearningAgent.js.map +1 -1
  33. package/dist/agents/PerformanceTesterAgent.d.ts.map +1 -1
  34. package/dist/agents/PerformanceTesterAgent.js +25 -25
  35. package/dist/agents/PerformanceTesterAgent.js.map +1 -1
  36. package/dist/agents/ProductionIntelligenceAgent.d.ts.map +1 -1
  37. package/dist/agents/ProductionIntelligenceAgent.js +20 -20
  38. package/dist/agents/ProductionIntelligenceAgent.js.map +1 -1
  39. package/dist/agents/QXPartnerAgent.d.ts +0 -8
  40. package/dist/agents/QXPartnerAgent.d.ts.map +1 -1
  41. package/dist/agents/QXPartnerAgent.js +0 -15
  42. package/dist/agents/QXPartnerAgent.js.map +1 -1
  43. package/dist/agents/QualityAnalyzerAgent.d.ts +0 -7
  44. package/dist/agents/QualityAnalyzerAgent.d.ts.map +1 -1
  45. package/dist/agents/QualityAnalyzerAgent.js +0 -16
  46. package/dist/agents/QualityAnalyzerAgent.js.map +1 -1
  47. package/dist/agents/RegressionRiskAnalyzerAgent.d.ts.map +1 -1
  48. package/dist/agents/RegressionRiskAnalyzerAgent.js +18 -18
  49. package/dist/agents/RegressionRiskAnalyzerAgent.js.map +1 -1
  50. package/dist/agents/RequirementsValidatorAgent.d.ts.map +1 -1
  51. package/dist/agents/RequirementsValidatorAgent.js +21 -21
  52. package/dist/agents/RequirementsValidatorAgent.js.map +1 -1
  53. package/dist/agents/SecurityScannerAgent.d.ts.map +1 -1
  54. package/dist/agents/SecurityScannerAgent.js +38 -38
  55. package/dist/agents/SecurityScannerAgent.js.map +1 -1
  56. package/dist/agents/TestDataArchitectAgent.d.ts.map +1 -1
  57. package/dist/agents/TestDataArchitectAgent.js +29 -29
  58. package/dist/agents/TestDataArchitectAgent.js.map +1 -1
  59. package/dist/agents/TestExecutorAgent.d.ts +0 -7
  60. package/dist/agents/TestExecutorAgent.d.ts.map +1 -1
  61. package/dist/agents/TestExecutorAgent.js +35 -51
  62. package/dist/agents/TestExecutorAgent.js.map +1 -1
  63. package/dist/agents/TestGeneratorAgent.d.ts +0 -7
  64. package/dist/agents/TestGeneratorAgent.d.ts.map +1 -1
  65. package/dist/agents/TestGeneratorAgent.js +0 -16
  66. package/dist/agents/TestGeneratorAgent.js.map +1 -1
  67. package/dist/agents/adapters/AgentLLMAdapter.d.ts.map +1 -1
  68. package/dist/agents/adapters/AgentLLMAdapter.js +5 -4
  69. package/dist/agents/adapters/AgentLLMAdapter.js.map +1 -1
  70. package/dist/agents/adapters/CoordinatorAdapter.d.ts.map +1 -1
  71. package/dist/agents/adapters/CoordinatorAdapter.js +2 -1
  72. package/dist/agents/adapters/CoordinatorAdapter.js.map +1 -1
  73. package/dist/agents/n8n/N8nAPIClient.d.ts.map +1 -1
  74. package/dist/agents/n8n/N8nAPIClient.js +3 -2
  75. package/dist/agents/n8n/N8nAPIClient.js.map +1 -1
  76. package/dist/agents/n8n/N8nAuditPersistence.d.ts.map +1 -1
  77. package/dist/agents/n8n/N8nAuditPersistence.js +2 -1
  78. package/dist/agents/n8n/N8nAuditPersistence.js.map +1 -1
  79. package/dist/agents/n8n/N8nBaseAgent.js +1 -1
  80. package/dist/agents/n8n/N8nBaseAgent.js.map +1 -1
  81. package/dist/agents/n8n/N8nComplianceValidatorAgent.js +1 -1
  82. package/dist/agents/n8n/N8nComplianceValidatorAgent.js.map +1 -1
  83. package/dist/agents/n8n/N8nMonitoringValidatorAgent.js +1 -1
  84. package/dist/agents/n8n/N8nMonitoringValidatorAgent.js.map +1 -1
  85. package/dist/agents/n8n/N8nReplayabilityTesterAgent.js +1 -1
  86. package/dist/agents/n8n/N8nReplayabilityTesterAgent.js.map +1 -1
  87. package/dist/agents/n8n/N8nSecurityAuditorAgent.js +1 -1
  88. package/dist/agents/n8n/N8nSecurityAuditorAgent.js.map +1 -1
  89. package/dist/agents/pool/AgentPool.d.ts.map +1 -1
  90. package/dist/agents/pool/AgentPool.js +2 -1
  91. package/dist/agents/pool/AgentPool.js.map +1 -1
  92. package/dist/agents/pool/QEAgentPoolFactory.d.ts.map +1 -1
  93. package/dist/agents/pool/QEAgentPoolFactory.js +2 -1
  94. package/dist/agents/pool/QEAgentPoolFactory.js.map +1 -1
  95. package/dist/cli/commands/agent/spawn.d.ts +12 -1
  96. package/dist/cli/commands/agent/spawn.d.ts.map +1 -1
  97. package/dist/cli/commands/agent/spawn.js +95 -8
  98. package/dist/cli/commands/agent/spawn.js.map +1 -1
  99. package/dist/cli/index.js +91 -0
  100. package/dist/cli/index.js.map +1 -1
  101. package/dist/core/memory/HNSWVectorMemory.js +1 -1
  102. package/dist/edge/adapters/BrowserHNSWAdapter.d.ts +134 -0
  103. package/dist/edge/adapters/BrowserHNSWAdapter.d.ts.map +1 -0
  104. package/dist/edge/adapters/BrowserHNSWAdapter.js +484 -0
  105. package/dist/edge/adapters/BrowserHNSWAdapter.js.map +1 -0
  106. package/dist/edge/adapters/IndexedDBStorage.d.ts +114 -0
  107. package/dist/edge/adapters/IndexedDBStorage.d.ts.map +1 -0
  108. package/dist/edge/adapters/IndexedDBStorage.js +478 -0
  109. package/dist/edge/adapters/IndexedDBStorage.js.map +1 -0
  110. package/dist/edge/adapters/index.d.ts +12 -0
  111. package/dist/edge/adapters/index.d.ts.map +1 -0
  112. package/dist/edge/adapters/index.js +22 -0
  113. package/dist/edge/adapters/index.js.map +1 -0
  114. package/dist/edge/browser/BrowserAgent.d.ts +241 -0
  115. package/dist/edge/browser/BrowserAgent.d.ts.map +1 -0
  116. package/dist/edge/browser/BrowserAgent.js +743 -0
  117. package/dist/edge/browser/BrowserAgent.js.map +1 -0
  118. package/dist/edge/index.d.ts +34 -0
  119. package/dist/edge/index.d.ts.map +1 -0
  120. package/dist/edge/index.js +114 -0
  121. package/dist/edge/index.js.map +1 -0
  122. package/dist/edge/p2p/coordination/CoordinationManager.d.ts +181 -0
  123. package/dist/edge/p2p/coordination/CoordinationManager.d.ts.map +1 -0
  124. package/dist/edge/p2p/coordination/CoordinationManager.js +851 -0
  125. package/dist/edge/p2p/coordination/CoordinationManager.js.map +1 -0
  126. package/dist/edge/p2p/coordination/HealthMonitor.d.ts +143 -0
  127. package/dist/edge/p2p/coordination/HealthMonitor.d.ts.map +1 -0
  128. package/dist/edge/p2p/coordination/HealthMonitor.js +432 -0
  129. package/dist/edge/p2p/coordination/HealthMonitor.js.map +1 -0
  130. package/dist/edge/p2p/coordination/SyncOrchestrator.d.ts +146 -0
  131. package/dist/edge/p2p/coordination/SyncOrchestrator.d.ts.map +1 -0
  132. package/dist/edge/p2p/coordination/SyncOrchestrator.js +783 -0
  133. package/dist/edge/p2p/coordination/SyncOrchestrator.js.map +1 -0
  134. package/dist/edge/p2p/coordination/index.d.ts +70 -0
  135. package/dist/edge/p2p/coordination/index.d.ts.map +1 -0
  136. package/dist/edge/p2p/coordination/index.js +107 -0
  137. package/dist/edge/p2p/coordination/index.js.map +1 -0
  138. package/dist/edge/p2p/coordination/types.d.ts +572 -0
  139. package/dist/edge/p2p/coordination/types.d.ts.map +1 -0
  140. package/dist/edge/p2p/coordination/types.js +366 -0
  141. package/dist/edge/p2p/coordination/types.js.map +1 -0
  142. package/dist/edge/p2p/crdt/CRDTStore.d.ts +324 -0
  143. package/dist/edge/p2p/crdt/CRDTStore.d.ts.map +1 -0
  144. package/dist/edge/p2p/crdt/CRDTStore.js +839 -0
  145. package/dist/edge/p2p/crdt/CRDTStore.js.map +1 -0
  146. package/dist/edge/p2p/crdt/GCounter.d.ts +173 -0
  147. package/dist/edge/p2p/crdt/GCounter.d.ts.map +1 -0
  148. package/dist/edge/p2p/crdt/GCounter.js +394 -0
  149. package/dist/edge/p2p/crdt/GCounter.js.map +1 -0
  150. package/dist/edge/p2p/crdt/LWWRegister.d.ts +200 -0
  151. package/dist/edge/p2p/crdt/LWWRegister.d.ts.map +1 -0
  152. package/dist/edge/p2p/crdt/LWWRegister.js +456 -0
  153. package/dist/edge/p2p/crdt/LWWRegister.js.map +1 -0
  154. package/dist/edge/p2p/crdt/ORSet.d.ts +232 -0
  155. package/dist/edge/p2p/crdt/ORSet.d.ts.map +1 -0
  156. package/dist/edge/p2p/crdt/ORSet.js +723 -0
  157. package/dist/edge/p2p/crdt/ORSet.js.map +1 -0
  158. package/dist/edge/p2p/crdt/PatternCRDT.d.ts +366 -0
  159. package/dist/edge/p2p/crdt/PatternCRDT.d.ts.map +1 -0
  160. package/dist/edge/p2p/crdt/PatternCRDT.js +838 -0
  161. package/dist/edge/p2p/crdt/PatternCRDT.js.map +1 -0
  162. package/dist/edge/p2p/crdt/VectorClock.d.ts +274 -0
  163. package/dist/edge/p2p/crdt/VectorClock.d.ts.map +1 -0
  164. package/dist/edge/p2p/crdt/VectorClock.js +499 -0
  165. package/dist/edge/p2p/crdt/VectorClock.js.map +1 -0
  166. package/dist/edge/p2p/crdt/index.d.ts +87 -0
  167. package/dist/edge/p2p/crdt/index.d.ts.map +1 -0
  168. package/dist/edge/p2p/crdt/index.js +120 -0
  169. package/dist/edge/p2p/crdt/index.js.map +1 -0
  170. package/dist/edge/p2p/crdt/types.d.ts +667 -0
  171. package/dist/edge/p2p/crdt/types.d.ts.map +1 -0
  172. package/dist/edge/p2p/crdt/types.js +208 -0
  173. package/dist/edge/p2p/crdt/types.js.map +1 -0
  174. package/dist/edge/p2p/crypto/Identity.d.ts +139 -0
  175. package/dist/edge/p2p/crypto/Identity.d.ts.map +1 -0
  176. package/dist/edge/p2p/crypto/Identity.js +449 -0
  177. package/dist/edge/p2p/crypto/Identity.js.map +1 -0
  178. package/dist/edge/p2p/crypto/KeyManager.d.ts +196 -0
  179. package/dist/edge/p2p/crypto/KeyManager.d.ts.map +1 -0
  180. package/dist/edge/p2p/crypto/KeyManager.js +576 -0
  181. package/dist/edge/p2p/crypto/KeyManager.js.map +1 -0
  182. package/dist/edge/p2p/crypto/Signer.d.ts +164 -0
  183. package/dist/edge/p2p/crypto/Signer.d.ts.map +1 -0
  184. package/dist/edge/p2p/crypto/Signer.js +357 -0
  185. package/dist/edge/p2p/crypto/Signer.js.map +1 -0
  186. package/dist/edge/p2p/crypto/index.d.ts +90 -0
  187. package/dist/edge/p2p/crypto/index.d.ts.map +1 -0
  188. package/dist/edge/p2p/crypto/index.js +158 -0
  189. package/dist/edge/p2p/crypto/index.js.map +1 -0
  190. package/dist/edge/p2p/crypto/types.d.ts +217 -0
  191. package/dist/edge/p2p/crypto/types.d.ts.map +1 -0
  192. package/dist/edge/p2p/crypto/types.js +42 -0
  193. package/dist/edge/p2p/crypto/types.js.map +1 -0
  194. package/dist/edge/p2p/federated/FederatedCoordinator.d.ts +270 -0
  195. package/dist/edge/p2p/federated/FederatedCoordinator.d.ts.map +1 -0
  196. package/dist/edge/p2p/federated/FederatedCoordinator.js +824 -0
  197. package/dist/edge/p2p/federated/FederatedCoordinator.js.map +1 -0
  198. package/dist/edge/p2p/federated/FederatedRound.d.ts +295 -0
  199. package/dist/edge/p2p/federated/FederatedRound.d.ts.map +1 -0
  200. package/dist/edge/p2p/federated/FederatedRound.js +819 -0
  201. package/dist/edge/p2p/federated/FederatedRound.js.map +1 -0
  202. package/dist/edge/p2p/federated/GradientAggregator.d.ts +226 -0
  203. package/dist/edge/p2p/federated/GradientAggregator.d.ts.map +1 -0
  204. package/dist/edge/p2p/federated/GradientAggregator.js +826 -0
  205. package/dist/edge/p2p/federated/GradientAggregator.js.map +1 -0
  206. package/dist/edge/p2p/federated/ModelManager.d.ts +248 -0
  207. package/dist/edge/p2p/federated/ModelManager.d.ts.map +1 -0
  208. package/dist/edge/p2p/federated/ModelManager.js +724 -0
  209. package/dist/edge/p2p/federated/ModelManager.js.map +1 -0
  210. package/dist/edge/p2p/federated/index.d.ts +65 -0
  211. package/dist/edge/p2p/federated/index.d.ts.map +1 -0
  212. package/dist/edge/p2p/federated/index.js +110 -0
  213. package/dist/edge/p2p/federated/index.js.map +1 -0
  214. package/dist/edge/p2p/federated/types.d.ts +905 -0
  215. package/dist/edge/p2p/federated/types.d.ts.map +1 -0
  216. package/dist/edge/p2p/federated/types.js +339 -0
  217. package/dist/edge/p2p/federated/types.js.map +1 -0
  218. package/dist/edge/p2p/index.d.ts +156 -0
  219. package/dist/edge/p2p/index.d.ts.map +1 -0
  220. package/dist/edge/p2p/index.js +242 -0
  221. package/dist/edge/p2p/index.js.map +1 -0
  222. package/dist/edge/p2p/nat/ConnectivityTester.d.ts +128 -0
  223. package/dist/edge/p2p/nat/ConnectivityTester.d.ts.map +1 -0
  224. package/dist/edge/p2p/nat/ConnectivityTester.js +560 -0
  225. package/dist/edge/p2p/nat/ConnectivityTester.js.map +1 -0
  226. package/dist/edge/p2p/nat/HolePuncher.d.ts +159 -0
  227. package/dist/edge/p2p/nat/HolePuncher.d.ts.map +1 -0
  228. package/dist/edge/p2p/nat/HolePuncher.js +569 -0
  229. package/dist/edge/p2p/nat/HolePuncher.js.map +1 -0
  230. package/dist/edge/p2p/nat/NATDetector.d.ts +109 -0
  231. package/dist/edge/p2p/nat/NATDetector.d.ts.map +1 -0
  232. package/dist/edge/p2p/nat/NATDetector.js +472 -0
  233. package/dist/edge/p2p/nat/NATDetector.js.map +1 -0
  234. package/dist/edge/p2p/nat/TURNManager.d.ts +158 -0
  235. package/dist/edge/p2p/nat/TURNManager.d.ts.map +1 -0
  236. package/dist/edge/p2p/nat/TURNManager.js +547 -0
  237. package/dist/edge/p2p/nat/TURNManager.js.map +1 -0
  238. package/dist/edge/p2p/nat/index.d.ts +74 -0
  239. package/dist/edge/p2p/nat/index.d.ts.map +1 -0
  240. package/dist/edge/p2p/nat/index.js +104 -0
  241. package/dist/edge/p2p/nat/index.js.map +1 -0
  242. package/dist/edge/p2p/nat/types.d.ts +583 -0
  243. package/dist/edge/p2p/nat/types.d.ts.map +1 -0
  244. package/dist/edge/p2p/nat/types.js +267 -0
  245. package/dist/edge/p2p/nat/types.js.map +1 -0
  246. package/dist/edge/p2p/protocol/AgentChannel.d.ts +333 -0
  247. package/dist/edge/p2p/protocol/AgentChannel.d.ts.map +1 -0
  248. package/dist/edge/p2p/protocol/AgentChannel.js +914 -0
  249. package/dist/edge/p2p/protocol/AgentChannel.js.map +1 -0
  250. package/dist/edge/p2p/protocol/MessageEncoder.d.ts +147 -0
  251. package/dist/edge/p2p/protocol/MessageEncoder.d.ts.map +1 -0
  252. package/dist/edge/p2p/protocol/MessageEncoder.js +738 -0
  253. package/dist/edge/p2p/protocol/MessageEncoder.js.map +1 -0
  254. package/dist/edge/p2p/protocol/MessageRouter.d.ts +266 -0
  255. package/dist/edge/p2p/protocol/MessageRouter.d.ts.map +1 -0
  256. package/dist/edge/p2p/protocol/MessageRouter.js +808 -0
  257. package/dist/edge/p2p/protocol/MessageRouter.js.map +1 -0
  258. package/dist/edge/p2p/protocol/ProtocolHandler.d.ts +309 -0
  259. package/dist/edge/p2p/protocol/ProtocolHandler.d.ts.map +1 -0
  260. package/dist/edge/p2p/protocol/ProtocolHandler.js +930 -0
  261. package/dist/edge/p2p/protocol/ProtocolHandler.js.map +1 -0
  262. package/dist/edge/p2p/protocol/index.d.ts +114 -0
  263. package/dist/edge/p2p/protocol/index.d.ts.map +1 -0
  264. package/dist/edge/p2p/protocol/index.js +206 -0
  265. package/dist/edge/p2p/protocol/index.js.map +1 -0
  266. package/dist/edge/p2p/protocol/types.d.ts +737 -0
  267. package/dist/edge/p2p/protocol/types.d.ts.map +1 -0
  268. package/dist/edge/p2p/protocol/types.js +490 -0
  269. package/dist/edge/p2p/protocol/types.js.map +1 -0
  270. package/dist/edge/p2p/sharing/PatternBroadcaster.d.ts +284 -0
  271. package/dist/edge/p2p/sharing/PatternBroadcaster.d.ts.map +1 -0
  272. package/dist/edge/p2p/sharing/PatternBroadcaster.js +644 -0
  273. package/dist/edge/p2p/sharing/PatternBroadcaster.js.map +1 -0
  274. package/dist/edge/p2p/sharing/PatternIndex.d.ts +168 -0
  275. package/dist/edge/p2p/sharing/PatternIndex.d.ts.map +1 -0
  276. package/dist/edge/p2p/sharing/PatternIndex.js +781 -0
  277. package/dist/edge/p2p/sharing/PatternIndex.js.map +1 -0
  278. package/dist/edge/p2p/sharing/PatternSerializer.d.ts +163 -0
  279. package/dist/edge/p2p/sharing/PatternSerializer.d.ts.map +1 -0
  280. package/dist/edge/p2p/sharing/PatternSerializer.js +696 -0
  281. package/dist/edge/p2p/sharing/PatternSerializer.js.map +1 -0
  282. package/dist/edge/p2p/sharing/PatternSyncManager.d.ts +242 -0
  283. package/dist/edge/p2p/sharing/PatternSyncManager.d.ts.map +1 -0
  284. package/dist/edge/p2p/sharing/PatternSyncManager.js +859 -0
  285. package/dist/edge/p2p/sharing/PatternSyncManager.js.map +1 -0
  286. package/dist/edge/p2p/sharing/index.d.ts +90 -0
  287. package/dist/edge/p2p/sharing/index.d.ts.map +1 -0
  288. package/dist/edge/p2p/sharing/index.js +152 -0
  289. package/dist/edge/p2p/sharing/index.js.map +1 -0
  290. package/dist/edge/p2p/sharing/types.d.ts +796 -0
  291. package/dist/edge/p2p/sharing/types.d.ts.map +1 -0
  292. package/dist/edge/p2p/sharing/types.js +264 -0
  293. package/dist/edge/p2p/sharing/types.js.map +1 -0
  294. package/dist/edge/p2p/webrtc/ConnectionPool.d.ts +218 -0
  295. package/dist/edge/p2p/webrtc/ConnectionPool.d.ts.map +1 -0
  296. package/dist/edge/p2p/webrtc/ConnectionPool.js +562 -0
  297. package/dist/edge/p2p/webrtc/ConnectionPool.js.map +1 -0
  298. package/dist/edge/p2p/webrtc/ICEManager.d.ts +171 -0
  299. package/dist/edge/p2p/webrtc/ICEManager.d.ts.map +1 -0
  300. package/dist/edge/p2p/webrtc/ICEManager.js +490 -0
  301. package/dist/edge/p2p/webrtc/ICEManager.js.map +1 -0
  302. package/dist/edge/p2p/webrtc/PeerConnectionManager.d.ts +159 -0
  303. package/dist/edge/p2p/webrtc/PeerConnectionManager.d.ts.map +1 -0
  304. package/dist/edge/p2p/webrtc/PeerConnectionManager.js +735 -0
  305. package/dist/edge/p2p/webrtc/PeerConnectionManager.js.map +1 -0
  306. package/dist/edge/p2p/webrtc/SignalingClient.d.ts +191 -0
  307. package/dist/edge/p2p/webrtc/SignalingClient.d.ts.map +1 -0
  308. package/dist/edge/p2p/webrtc/SignalingClient.js +608 -0
  309. package/dist/edge/p2p/webrtc/SignalingClient.js.map +1 -0
  310. package/dist/edge/p2p/webrtc/index.d.ts +158 -0
  311. package/dist/edge/p2p/webrtc/index.d.ts.map +1 -0
  312. package/dist/edge/p2p/webrtc/index.js +164 -0
  313. package/dist/edge/p2p/webrtc/index.js.map +1 -0
  314. package/dist/edge/p2p/webrtc/types.d.ts +665 -0
  315. package/dist/edge/p2p/webrtc/types.d.ts.map +1 -0
  316. package/dist/edge/p2p/webrtc/types.js +245 -0
  317. package/dist/edge/p2p/webrtc/types.js.map +1 -0
  318. package/dist/edge/server/AgentSpawnAPI.d.ts +98 -0
  319. package/dist/edge/server/AgentSpawnAPI.d.ts.map +1 -0
  320. package/dist/edge/server/AgentSpawnAPI.js +264 -0
  321. package/dist/edge/server/AgentSpawnAPI.js.map +1 -0
  322. package/dist/edge/server/SignalingServer.d.ts +71 -0
  323. package/dist/edge/server/SignalingServer.d.ts.map +1 -0
  324. package/dist/edge/server/SignalingServer.js +429 -0
  325. package/dist/edge/server/SignalingServer.js.map +1 -0
  326. package/dist/edge/server/index.d.ts +64 -0
  327. package/dist/edge/server/index.d.ts.map +1 -0
  328. package/dist/edge/server/index.js +318 -0
  329. package/dist/edge/server/index.js.map +1 -0
  330. package/dist/edge/types/browser-agent.types.d.ts +455 -0
  331. package/dist/edge/types/browser-agent.types.d.ts.map +1 -0
  332. package/dist/edge/types/browser-agent.types.js +116 -0
  333. package/dist/edge/types/browser-agent.types.js.map +1 -0
  334. package/dist/edge/types/index.d.ts +11 -0
  335. package/dist/edge/types/index.d.ts.map +1 -0
  336. package/dist/edge/types/index.js +17 -0
  337. package/dist/edge/types/index.js.map +1 -0
  338. package/dist/edge/types/storage.types.d.ts +207 -0
  339. package/dist/edge/types/storage.types.d.ts.map +1 -0
  340. package/dist/edge/types/storage.types.js +47 -0
  341. package/dist/edge/types/storage.types.js.map +1 -0
  342. package/dist/edge/wasm/shims.d.ts +224 -0
  343. package/dist/edge/wasm/shims.d.ts.map +1 -0
  344. package/dist/edge/wasm/shims.js +667 -0
  345. package/dist/edge/wasm/shims.js.map +1 -0
  346. package/dist/mcp/handlers/NewDomainToolsHandler.d.ts +33 -0
  347. package/dist/mcp/handlers/NewDomainToolsHandler.d.ts.map +1 -0
  348. package/dist/mcp/handlers/NewDomainToolsHandler.js +305 -0
  349. package/dist/mcp/handlers/NewDomainToolsHandler.js.map +1 -0
  350. package/dist/mcp/handlers/filtered/index.d.ts +15 -19
  351. package/dist/mcp/handlers/filtered/index.d.ts.map +1 -1
  352. package/dist/mcp/handlers/filtered/index.js +16 -27
  353. package/dist/mcp/handlers/filtered/index.js.map +1 -1
  354. package/dist/mcp/handlers/integration/index.d.ts +5 -4
  355. package/dist/mcp/handlers/integration/index.d.ts.map +1 -1
  356. package/dist/mcp/handlers/integration/index.js +7 -7
  357. package/dist/mcp/handlers/integration/index.js.map +1 -1
  358. package/dist/mcp/server-instructions.d.ts +1 -1
  359. package/dist/mcp/server-instructions.js +1 -1
  360. package/dist/mcp/server.d.ts.map +1 -1
  361. package/dist/mcp/server.js +14 -0
  362. package/dist/mcp/server.js.map +1 -1
  363. package/dist/mcp/tools.d.ts +8 -0
  364. package/dist/mcp/tools.d.ts.map +1 -1
  365. package/dist/mcp/tools.js +412 -1
  366. package/dist/mcp/tools.js.map +1 -1
  367. package/dist/persistence/migrations/all-migrations.d.ts.map +1 -1
  368. package/dist/persistence/migrations/all-migrations.js +44 -1
  369. package/dist/persistence/migrations/all-migrations.js.map +1 -1
  370. package/dist/planning/GOAPPlanner.d.ts +1 -0
  371. package/dist/planning/GOAPPlanner.d.ts.map +1 -1
  372. package/dist/planning/GOAPPlanner.js +15 -2
  373. package/dist/planning/GOAPPlanner.js.map +1 -1
  374. package/dist/planning/PlanLearning.d.ts.map +1 -1
  375. package/dist/planning/PlanLearning.js +2 -1
  376. package/dist/planning/PlanLearning.js.map +1 -1
  377. package/dist/planning/PlanSimilarity.d.ts.map +1 -1
  378. package/dist/planning/PlanSimilarity.js +2 -1
  379. package/dist/planning/PlanSimilarity.js.map +1 -1
  380. package/package.json +29 -8
  381. package/dist/alerting/AlertManager.d.ts +0 -120
  382. package/dist/alerting/AlertManager.d.ts.map +0 -1
  383. package/dist/alerting/AlertManager.js +0 -345
  384. package/dist/alerting/AlertManager.js.map +0 -1
  385. package/dist/alerting/FeedbackRouter.d.ts +0 -98
  386. package/dist/alerting/FeedbackRouter.d.ts.map +0 -1
  387. package/dist/alerting/FeedbackRouter.js +0 -331
  388. package/dist/alerting/FeedbackRouter.js.map +0 -1
  389. package/dist/alerting/StrategyApplicator.d.ts +0 -120
  390. package/dist/alerting/StrategyApplicator.d.ts.map +0 -1
  391. package/dist/alerting/StrategyApplicator.js +0 -299
  392. package/dist/alerting/StrategyApplicator.js.map +0 -1
  393. package/dist/alerting/index.d.ts +0 -68
  394. package/dist/alerting/index.d.ts.map +0 -1
  395. package/dist/alerting/index.js +0 -112
  396. package/dist/alerting/index.js.map +0 -1
  397. package/dist/alerting/types.d.ts +0 -118
  398. package/dist/alerting/types.d.ts.map +0 -1
  399. package/dist/alerting/types.js +0 -11
  400. package/dist/alerting/types.js.map +0 -1
  401. package/dist/cli/commands/fleet/backup.d.ts +0 -49
  402. package/dist/cli/commands/fleet/backup.d.ts.map +0 -1
  403. package/dist/cli/commands/fleet/backup.js +0 -88
  404. package/dist/cli/commands/fleet/backup.js.map +0 -1
  405. package/dist/cli/commands/fleet/health.d.ts +0 -154
  406. package/dist/cli/commands/fleet/health.d.ts.map +0 -1
  407. package/dist/cli/commands/fleet/health.js +0 -483
  408. package/dist/cli/commands/fleet/health.js.map +0 -1
  409. package/dist/cli/commands/fleet/init.d.ts +0 -11
  410. package/dist/cli/commands/fleet/init.d.ts.map +0 -1
  411. package/dist/cli/commands/fleet/init.js +0 -91
  412. package/dist/cli/commands/fleet/init.js.map +0 -1
  413. package/dist/cli/commands/fleet/logs.d.ts +0 -21
  414. package/dist/cli/commands/fleet/logs.d.ts.map +0 -1
  415. package/dist/cli/commands/fleet/logs.js +0 -267
  416. package/dist/cli/commands/fleet/logs.js.map +0 -1
  417. package/dist/cli/commands/fleet/metrics.d.ts +0 -27
  418. package/dist/cli/commands/fleet/metrics.d.ts.map +0 -1
  419. package/dist/cli/commands/fleet/metrics.js +0 -369
  420. package/dist/cli/commands/fleet/metrics.js.map +0 -1
  421. package/dist/cli/commands/fleet/monitor.d.ts +0 -18
  422. package/dist/cli/commands/fleet/monitor.d.ts.map +0 -1
  423. package/dist/cli/commands/fleet/monitor.js +0 -237
  424. package/dist/cli/commands/fleet/monitor.js.map +0 -1
  425. package/dist/cli/commands/fleet/optimize.d.ts +0 -42
  426. package/dist/cli/commands/fleet/optimize.d.ts.map +0 -1
  427. package/dist/cli/commands/fleet/optimize.js +0 -135
  428. package/dist/cli/commands/fleet/optimize.js.map +0 -1
  429. package/dist/cli/commands/fleet/recover.d.ts +0 -22
  430. package/dist/cli/commands/fleet/recover.d.ts.map +0 -1
  431. package/dist/cli/commands/fleet/recover.js +0 -99
  432. package/dist/cli/commands/fleet/recover.js.map +0 -1
  433. package/dist/cli/commands/fleet/restart.d.ts +0 -18
  434. package/dist/cli/commands/fleet/restart.d.ts.map +0 -1
  435. package/dist/cli/commands/fleet/restart.js +0 -290
  436. package/dist/cli/commands/fleet/restart.js.map +0 -1
  437. package/dist/cli/commands/fleet/scale.d.ts +0 -9
  438. package/dist/cli/commands/fleet/scale.d.ts.map +0 -1
  439. package/dist/cli/commands/fleet/scale.js +0 -77
  440. package/dist/cli/commands/fleet/scale.js.map +0 -1
  441. package/dist/cli/commands/fleet/shutdown.d.ts +0 -19
  442. package/dist/cli/commands/fleet/shutdown.d.ts.map +0 -1
  443. package/dist/cli/commands/fleet/shutdown.js +0 -307
  444. package/dist/cli/commands/fleet/shutdown.js.map +0 -1
  445. package/dist/cli/commands/fleet/status.d.ts +0 -10
  446. package/dist/cli/commands/fleet/status.d.ts.map +0 -1
  447. package/dist/cli/commands/fleet/status.js +0 -97
  448. package/dist/cli/commands/fleet/status.js.map +0 -1
  449. package/dist/cli/commands/fleet/topology.d.ts +0 -23
  450. package/dist/cli/commands/fleet/topology.d.ts.map +0 -1
  451. package/dist/cli/commands/fleet/topology.js +0 -376
  452. package/dist/cli/commands/fleet/topology.js.map +0 -1
  453. package/dist/cli/commands/monitor/alerts.d.ts +0 -45
  454. package/dist/cli/commands/monitor/alerts.d.ts.map +0 -1
  455. package/dist/cli/commands/monitor/alerts.js +0 -168
  456. package/dist/cli/commands/monitor/alerts.js.map +0 -1
  457. package/dist/cli/commands/monitor/analyze.d.ts +0 -49
  458. package/dist/cli/commands/monitor/analyze.d.ts.map +0 -1
  459. package/dist/cli/commands/monitor/analyze.js +0 -209
  460. package/dist/cli/commands/monitor/analyze.js.map +0 -1
  461. package/dist/cli/commands/monitor/compare.d.ts +0 -38
  462. package/dist/cli/commands/monitor/compare.d.ts.map +0 -1
  463. package/dist/cli/commands/monitor/compare.js +0 -177
  464. package/dist/cli/commands/monitor/compare.js.map +0 -1
  465. package/dist/cli/commands/monitor/dashboard.d.ts +0 -34
  466. package/dist/cli/commands/monitor/dashboard.d.ts.map +0 -1
  467. package/dist/cli/commands/monitor/dashboard.js +0 -157
  468. package/dist/cli/commands/monitor/dashboard.js.map +0 -1
  469. package/dist/cli/commands/monitor/export.d.ts +0 -36
  470. package/dist/cli/commands/monitor/export.d.ts.map +0 -1
  471. package/dist/cli/commands/monitor/export.js +0 -157
  472. package/dist/cli/commands/monitor/export.js.map +0 -1
  473. package/dist/cli/commands/monitor/index.d.ts +0 -11
  474. package/dist/cli/commands/monitor/index.d.ts.map +0 -1
  475. package/dist/cli/commands/monitor/index.js +0 -14
  476. package/dist/cli/commands/monitor/index.js.map +0 -1
  477. package/dist/cli/commands/quality/baseline.d.ts +0 -27
  478. package/dist/cli/commands/quality/baseline.d.ts.map +0 -1
  479. package/dist/cli/commands/quality/baseline.js +0 -124
  480. package/dist/cli/commands/quality/baseline.js.map +0 -1
  481. package/dist/cli/commands/quality/compare.d.ts +0 -36
  482. package/dist/cli/commands/quality/compare.d.ts.map +0 -1
  483. package/dist/cli/commands/quality/compare.js +0 -136
  484. package/dist/cli/commands/quality/compare.js.map +0 -1
  485. package/dist/cli/commands/quality/decision.d.ts +0 -81
  486. package/dist/cli/commands/quality/decision.d.ts.map +0 -1
  487. package/dist/cli/commands/quality/decision.js +0 -319
  488. package/dist/cli/commands/quality/decision.js.map +0 -1
  489. package/dist/cli/commands/quality/gate.d.ts +0 -47
  490. package/dist/cli/commands/quality/gate.d.ts.map +0 -1
  491. package/dist/cli/commands/quality/gate.js +0 -205
  492. package/dist/cli/commands/quality/gate.js.map +0 -1
  493. package/dist/cli/commands/quality/index.d.ts +0 -17
  494. package/dist/cli/commands/quality/index.d.ts.map +0 -1
  495. package/dist/cli/commands/quality/index.js +0 -41
  496. package/dist/cli/commands/quality/index.js.map +0 -1
  497. package/dist/cli/commands/quality/policy.d.ts +0 -57
  498. package/dist/cli/commands/quality/policy.d.ts.map +0 -1
  499. package/dist/cli/commands/quality/policy.js +0 -359
  500. package/dist/cli/commands/quality/policy.js.map +0 -1
  501. package/dist/cli/commands/quality/risk.d.ts +0 -41
  502. package/dist/cli/commands/quality/risk.d.ts.map +0 -1
  503. package/dist/cli/commands/quality/risk.js +0 -255
  504. package/dist/cli/commands/quality/risk.js.map +0 -1
  505. package/dist/cli/commands/quality/trends.d.ts +0 -40
  506. package/dist/cli/commands/quality/trends.d.ts.map +0 -1
  507. package/dist/cli/commands/quality/trends.js +0 -122
  508. package/dist/cli/commands/quality/trends.js.map +0 -1
  509. package/dist/cli/commands/quality/validate.d.ts +0 -44
  510. package/dist/cli/commands/quality/validate.d.ts.map +0 -1
  511. package/dist/cli/commands/quality/validate.js +0 -234
  512. package/dist/cli/commands/quality/validate.js.map +0 -1
  513. package/dist/cli/commands/test/analyze-failures.d.ts +0 -39
  514. package/dist/cli/commands/test/analyze-failures.d.ts.map +0 -1
  515. package/dist/cli/commands/test/analyze-failures.js +0 -113
  516. package/dist/cli/commands/test/analyze-failures.js.map +0 -1
  517. package/dist/cli/commands/test/clean.d.ts +0 -3
  518. package/dist/cli/commands/test/clean.d.ts.map +0 -1
  519. package/dist/cli/commands/test/clean.js +0 -148
  520. package/dist/cli/commands/test/clean.js.map +0 -1
  521. package/dist/cli/commands/test/debug.d.ts +0 -3
  522. package/dist/cli/commands/test/debug.d.ts.map +0 -1
  523. package/dist/cli/commands/test/debug.js +0 -167
  524. package/dist/cli/commands/test/debug.js.map +0 -1
  525. package/dist/cli/commands/test/diff.d.ts +0 -3
  526. package/dist/cli/commands/test/diff.d.ts.map +0 -1
  527. package/dist/cli/commands/test/diff.js +0 -195
  528. package/dist/cli/commands/test/diff.js.map +0 -1
  529. package/dist/cli/commands/test/flakiness.d.ts +0 -32
  530. package/dist/cli/commands/test/flakiness.d.ts.map +0 -1
  531. package/dist/cli/commands/test/flakiness.js +0 -121
  532. package/dist/cli/commands/test/flakiness.js.map +0 -1
  533. package/dist/cli/commands/test/index.d.ts +0 -17
  534. package/dist/cli/commands/test/index.d.ts.map +0 -1
  535. package/dist/cli/commands/test/index.js +0 -45
  536. package/dist/cli/commands/test/index.js.map +0 -1
  537. package/dist/cli/commands/test/mutate.d.ts +0 -29
  538. package/dist/cli/commands/test/mutate.d.ts.map +0 -1
  539. package/dist/cli/commands/test/mutate.js +0 -163
  540. package/dist/cli/commands/test/mutate.js.map +0 -1
  541. package/dist/cli/commands/test/parallel.d.ts +0 -3
  542. package/dist/cli/commands/test/parallel.d.ts.map +0 -1
  543. package/dist/cli/commands/test/parallel.js +0 -117
  544. package/dist/cli/commands/test/parallel.js.map +0 -1
  545. package/dist/cli/commands/test/profile.d.ts +0 -3
  546. package/dist/cli/commands/test/profile.d.ts.map +0 -1
  547. package/dist/cli/commands/test/profile.js +0 -156
  548. package/dist/cli/commands/test/profile.js.map +0 -1
  549. package/dist/cli/commands/test/queue.d.ts +0 -3
  550. package/dist/cli/commands/test/queue.d.ts.map +0 -1
  551. package/dist/cli/commands/test/queue.js +0 -140
  552. package/dist/cli/commands/test/queue.js.map +0 -1
  553. package/dist/cli/commands/test/retry.d.ts +0 -3
  554. package/dist/cli/commands/test/retry.d.ts.map +0 -1
  555. package/dist/cli/commands/test/retry.js +0 -105
  556. package/dist/cli/commands/test/retry.js.map +0 -1
  557. package/dist/cli/commands/test/snapshot.d.ts +0 -3
  558. package/dist/cli/commands/test/snapshot.d.ts.map +0 -1
  559. package/dist/cli/commands/test/snapshot.js +0 -176
  560. package/dist/cli/commands/test/snapshot.js.map +0 -1
  561. package/dist/cli/commands/test/trace.d.ts +0 -3
  562. package/dist/cli/commands/test/trace.d.ts.map +0 -1
  563. package/dist/cli/commands/test/trace.js +0 -137
  564. package/dist/cli/commands/test/trace.js.map +0 -1
  565. package/dist/cli/commands/test/watch.d.ts +0 -3
  566. package/dist/cli/commands/test/watch.d.ts.map +0 -1
  567. package/dist/cli/commands/test/watch.js +0 -130
  568. package/dist/cli/commands/test/watch.js.map +0 -1
  569. package/dist/cli/index-spec.d.ts +0 -3
  570. package/dist/cli/index-spec.d.ts.map +0 -1
  571. package/dist/cli/index-spec.js +0 -154
  572. package/dist/cli/index-spec.js.map +0 -1
  573. package/dist/cli/index-working.d.ts +0 -7
  574. package/dist/cli/index-working.d.ts.map +0 -1
  575. package/dist/cli/index-working.js +0 -617
  576. package/dist/cli/index-working.js.map +0 -1
  577. package/dist/mcp/handlers/filtered/coverage-analyzer-filtered.d.ts +0 -83
  578. package/dist/mcp/handlers/filtered/coverage-analyzer-filtered.d.ts.map +0 -1
  579. package/dist/mcp/handlers/filtered/coverage-analyzer-filtered.js +0 -130
  580. package/dist/mcp/handlers/filtered/coverage-analyzer-filtered.js.map +0 -1
  581. package/dist/mcp/handlers/filtered/flaky-detector-filtered.d.ts +0 -58
  582. package/dist/mcp/handlers/filtered/flaky-detector-filtered.d.ts.map +0 -1
  583. package/dist/mcp/handlers/filtered/flaky-detector-filtered.js +0 -84
  584. package/dist/mcp/handlers/filtered/flaky-detector-filtered.js.map +0 -1
  585. package/dist/mcp/handlers/filtered/security-scanner-filtered.d.ts +0 -54
  586. package/dist/mcp/handlers/filtered/security-scanner-filtered.d.ts.map +0 -1
  587. package/dist/mcp/handlers/filtered/security-scanner-filtered.js +0 -73
  588. package/dist/mcp/handlers/filtered/security-scanner-filtered.js.map +0 -1
  589. package/dist/mcp/handlers/integration/contract-validate.d.ts +0 -10
  590. package/dist/mcp/handlers/integration/contract-validate.d.ts.map +0 -1
  591. package/dist/mcp/handlers/integration/contract-validate.js +0 -348
  592. package/dist/mcp/handlers/integration/contract-validate.js.map +0 -1
  593. package/dist/reporting/ResultAggregator.d.ts +0 -107
  594. package/dist/reporting/ResultAggregator.d.ts.map +0 -1
  595. package/dist/reporting/ResultAggregator.js +0 -435
  596. package/dist/reporting/ResultAggregator.js.map +0 -1
  597. package/dist/reporting/index.d.ts +0 -48
  598. package/dist/reporting/index.d.ts.map +0 -1
  599. package/dist/reporting/index.js +0 -154
  600. package/dist/reporting/index.js.map +0 -1
  601. package/dist/reporting/reporters/ControlLoopReporter.d.ts +0 -128
  602. package/dist/reporting/reporters/ControlLoopReporter.d.ts.map +0 -1
  603. package/dist/reporting/reporters/ControlLoopReporter.js +0 -417
  604. package/dist/reporting/reporters/ControlLoopReporter.js.map +0 -1
  605. package/dist/reporting/reporters/HumanReadableReporter.d.ts +0 -140
  606. package/dist/reporting/reporters/HumanReadableReporter.d.ts.map +0 -1
  607. package/dist/reporting/reporters/HumanReadableReporter.js +0 -524
  608. package/dist/reporting/reporters/HumanReadableReporter.js.map +0 -1
  609. package/dist/reporting/reporters/JSONReporter.d.ts +0 -251
  610. package/dist/reporting/reporters/JSONReporter.d.ts.map +0 -1
  611. package/dist/reporting/reporters/JSONReporter.js +0 -325
  612. package/dist/reporting/reporters/JSONReporter.js.map +0 -1
  613. package/dist/reporting/reporters/index.d.ts +0 -14
  614. package/dist/reporting/reporters/index.d.ts.map +0 -1
  615. package/dist/reporting/reporters/index.js +0 -19
  616. package/dist/reporting/reporters/index.js.map +0 -1
  617. package/dist/reporting/types.d.ts +0 -427
  618. package/dist/reporting/types.d.ts.map +0 -1
  619. package/dist/reporting/types.js +0 -12
  620. package/dist/reporting/types.js.map +0 -1
@@ -0,0 +1,242 @@
1
+ "use strict";
2
+ /**
3
+ * P2P Module for @ruvector/edge
4
+ *
5
+ * Provides peer-to-peer communication infrastructure for browser agents.
6
+ * Built on Ed25519 cryptographic identities for secure agent communication.
7
+ *
8
+ * Modules:
9
+ * - crypto: Ed25519 cryptographic identity system (P2-001)
10
+ * - webrtc: WebRTC peer connection management (P2-002)
11
+ * - protocol: Agent-to-agent communication protocol (P2-003)
12
+ * - sharing: Pattern sharing protocol (P2-004)
13
+ * - federated: Federated learning infrastructure (P2-005)
14
+ * - crdt: CRDT-based conflict resolution (P2-006)
15
+ * - coordination: Two-machine coordination (P2-007)
16
+ * - nat: NAT traversal and TURN fallback (P2-008)
17
+ *
18
+ * @module edge/p2p
19
+ * @version 1.0.0
20
+ *
21
+ * @example
22
+ * ```typescript
23
+ * import {
24
+ * // Crypto (P2-001)
25
+ * IdentityManager,
26
+ * KeyManager,
27
+ * Signer,
28
+ *
29
+ * // WebRTC (P2-002)
30
+ * PeerConnectionManager,
31
+ * SignalingClient,
32
+ *
33
+ * // Protocol (P2-003)
34
+ * AgentChannel,
35
+ * ProtocolHandler,
36
+ * MessageEncoder,
37
+ *
38
+ * // NAT Traversal (P2-008)
39
+ * NATDetector,
40
+ * TURNManager,
41
+ * HolePuncher,
42
+ * ConnectivityTester,
43
+ * } from '@ruvector/edge/p2p';
44
+ *
45
+ * // Create identity
46
+ * const identity = await IdentityManager.create({
47
+ * displayName: 'My Agent',
48
+ * password: 'secure-password'
49
+ * });
50
+ *
51
+ * // Detect NAT type
52
+ * const detector = new NATDetector();
53
+ * const natResult = await detector.detect();
54
+ *
55
+ * // Setup WebRTC with NAT-aware configuration
56
+ * const manager = new PeerConnectionManager({
57
+ * localPeerId: identity.agentId,
58
+ * });
59
+ *
60
+ * // Create communication channel
61
+ * const channel = new AgentChannel({
62
+ * localIdentity: identity,
63
+ * localKeyPair: keyPair,
64
+ * remoteAgentId: 'remote-agent',
65
+ * connectionManager: manager,
66
+ * });
67
+ *
68
+ * await channel.open();
69
+ * ```
70
+ */
71
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
72
+ if (k2 === undefined) k2 = k;
73
+ var desc = Object.getOwnPropertyDescriptor(m, k);
74
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
75
+ desc = { enumerable: true, get: function() { return m[k]; } };
76
+ }
77
+ Object.defineProperty(o, k2, desc);
78
+ }) : (function(o, m, k, k2) {
79
+ if (k2 === undefined) k2 = k;
80
+ o[k2] = m[k];
81
+ }));
82
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
83
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
84
+ };
85
+ Object.defineProperty(exports, "__esModule", { value: true });
86
+ exports.P2P_CAPABILITIES = exports.P2P_PHASE = exports.P2P_VERSION = exports.generateCoordinationMessageId = exports.HEALTH_PACKET_LOSS_CRITICAL = exports.HEALTH_PACKET_LOSS_WARNING = exports.HEALTH_RTT_CRITICAL_THRESHOLD = exports.HEALTH_RTT_WARNING_THRESHOLD = exports.DEFAULT_SYNC_BATCH_SIZE = exports.MAX_RECONNECT_ATTEMPTS = exports.DEFAULT_RECONNECT_TIMEOUT = exports.DEFAULT_HEALTH_CHECK_INTERVAL = exports.DEFAULT_PING_INTERVAL = exports.COORDINATION_VERSION = exports.generateChallenge = exports.createDefaultHealthStatus = exports.createDefaultMetrics = exports.createDefaultSyncStatus = exports.createDefaultCapabilities = exports.CoordinationErrorCode = exports.CoordinationMessageType = exports.CoordinationEventType = exports.DEFAULT_COORDINATION_CONFIG = exports.HealthLevel = exports.CoordinationRole = exports.CoordinationState = exports.HealthMonitor = exports.SyncOrchestrator = exports.CoordinationManager = exports.MAX_MERGE_DEPTH = exports.DEFAULT_TOMBSTONE_TTL = exports.MAX_VECTOR_CLOCK_SIZE = exports.CRDT_PROTOCOL_VERSION = exports.CRDT_CAPABILITIES = exports.CRDT_VERSION = exports.VectorClockComparison = exports.CRDTErrorCode = exports.CRDTEventType = exports.DEFAULT_STORE_CONFIG = exports.DeltaOpType = exports.ResolutionStrategy = exports.ConflictType = exports.CRDTType = exports.CRDTStore = exports.VectorClock = exports.PatternCRDT = exports.ORSet = exports.LWWRegister = exports.GCounter = void 0;
87
+ // Cryptographic Identity System (P2-001)
88
+ __exportStar(require("./crypto"), exports);
89
+ // WebRTC Peer Connections (P2-002)
90
+ __exportStar(require("./webrtc"), exports);
91
+ // Agent-to-Agent Communication Protocol (P2-003)
92
+ __exportStar(require("./protocol"), exports);
93
+ // Pattern Sharing Protocol (P2-004)
94
+ __exportStar(require("./sharing"), exports);
95
+ // Federated Learning Infrastructure (P2-005)
96
+ __exportStar(require("./federated"), exports);
97
+ // CRDT-Based Conflict Resolution (P2-006)
98
+ // Note: Some types conflict with sharing module, re-export with namespace prefix
99
+ var crdt_1 = require("./crdt");
100
+ // Classes
101
+ Object.defineProperty(exports, "GCounter", { enumerable: true, get: function () { return crdt_1.GCounter; } });
102
+ Object.defineProperty(exports, "LWWRegister", { enumerable: true, get: function () { return crdt_1.LWWRegister; } });
103
+ Object.defineProperty(exports, "ORSet", { enumerable: true, get: function () { return crdt_1.ORSet; } });
104
+ Object.defineProperty(exports, "PatternCRDT", { enumerable: true, get: function () { return crdt_1.PatternCRDT; } });
105
+ Object.defineProperty(exports, "VectorClock", { enumerable: true, get: function () { return crdt_1.VectorClock; } });
106
+ Object.defineProperty(exports, "CRDTStore", { enumerable: true, get: function () { return crdt_1.CRDTStore; } });
107
+ // Types that don't conflict
108
+ Object.defineProperty(exports, "CRDTType", { enumerable: true, get: function () { return crdt_1.CRDTType; } });
109
+ Object.defineProperty(exports, "ConflictType", { enumerable: true, get: function () { return crdt_1.ConflictType; } });
110
+ Object.defineProperty(exports, "ResolutionStrategy", { enumerable: true, get: function () { return crdt_1.ResolutionStrategy; } });
111
+ Object.defineProperty(exports, "DeltaOpType", { enumerable: true, get: function () { return crdt_1.DeltaOpType; } });
112
+ Object.defineProperty(exports, "DEFAULT_STORE_CONFIG", { enumerable: true, get: function () { return crdt_1.DEFAULT_STORE_CONFIG; } });
113
+ Object.defineProperty(exports, "CRDTEventType", { enumerable: true, get: function () { return crdt_1.CRDTEventType; } });
114
+ Object.defineProperty(exports, "CRDTErrorCode", { enumerable: true, get: function () { return crdt_1.CRDTErrorCode; } });
115
+ Object.defineProperty(exports, "VectorClockComparison", { enumerable: true, get: function () { return crdt_1.VectorClockComparison; } });
116
+ // Constants
117
+ Object.defineProperty(exports, "CRDT_VERSION", { enumerable: true, get: function () { return crdt_1.CRDT_VERSION; } });
118
+ Object.defineProperty(exports, "CRDT_CAPABILITIES", { enumerable: true, get: function () { return crdt_1.CRDT_CAPABILITIES; } });
119
+ Object.defineProperty(exports, "CRDT_PROTOCOL_VERSION", { enumerable: true, get: function () { return crdt_1.CRDT_PROTOCOL_VERSION; } });
120
+ Object.defineProperty(exports, "MAX_VECTOR_CLOCK_SIZE", { enumerable: true, get: function () { return crdt_1.MAX_VECTOR_CLOCK_SIZE; } });
121
+ Object.defineProperty(exports, "DEFAULT_TOMBSTONE_TTL", { enumerable: true, get: function () { return crdt_1.DEFAULT_TOMBSTONE_TTL; } });
122
+ Object.defineProperty(exports, "MAX_MERGE_DEPTH", { enumerable: true, get: function () { return crdt_1.MAX_MERGE_DEPTH; } });
123
+ // Two-Machine Coordination (P2-007)
124
+ // Note: Some types conflict with sharing and protocol modules
125
+ var coordination_1 = require("./coordination");
126
+ // Classes/Functions
127
+ Object.defineProperty(exports, "CoordinationManager", { enumerable: true, get: function () { return coordination_1.CoordinationManager; } });
128
+ Object.defineProperty(exports, "SyncOrchestrator", { enumerable: true, get: function () { return coordination_1.SyncOrchestrator; } });
129
+ Object.defineProperty(exports, "HealthMonitor", { enumerable: true, get: function () { return coordination_1.HealthMonitor; } });
130
+ // Types that don't conflict
131
+ Object.defineProperty(exports, "CoordinationState", { enumerable: true, get: function () { return coordination_1.CoordinationState; } });
132
+ Object.defineProperty(exports, "CoordinationRole", { enumerable: true, get: function () { return coordination_1.CoordinationRole; } });
133
+ Object.defineProperty(exports, "HealthLevel", { enumerable: true, get: function () { return coordination_1.HealthLevel; } });
134
+ Object.defineProperty(exports, "DEFAULT_COORDINATION_CONFIG", { enumerable: true, get: function () { return coordination_1.DEFAULT_COORDINATION_CONFIG; } });
135
+ Object.defineProperty(exports, "CoordinationEventType", { enumerable: true, get: function () { return coordination_1.CoordinationEventType; } });
136
+ Object.defineProperty(exports, "CoordinationMessageType", { enumerable: true, get: function () { return coordination_1.CoordinationMessageType; } });
137
+ Object.defineProperty(exports, "CoordinationErrorCode", { enumerable: true, get: function () { return coordination_1.CoordinationErrorCode; } });
138
+ Object.defineProperty(exports, "createDefaultCapabilities", { enumerable: true, get: function () { return coordination_1.createDefaultCapabilities; } });
139
+ Object.defineProperty(exports, "createDefaultSyncStatus", { enumerable: true, get: function () { return coordination_1.createDefaultSyncStatus; } });
140
+ Object.defineProperty(exports, "createDefaultMetrics", { enumerable: true, get: function () { return coordination_1.createDefaultMetrics; } });
141
+ Object.defineProperty(exports, "createDefaultHealthStatus", { enumerable: true, get: function () { return coordination_1.createDefaultHealthStatus; } });
142
+ Object.defineProperty(exports, "generateChallenge", { enumerable: true, get: function () { return coordination_1.generateChallenge; } });
143
+ // Constants
144
+ Object.defineProperty(exports, "COORDINATION_VERSION", { enumerable: true, get: function () { return coordination_1.COORDINATION_VERSION; } });
145
+ Object.defineProperty(exports, "DEFAULT_PING_INTERVAL", { enumerable: true, get: function () { return coordination_1.DEFAULT_PING_INTERVAL; } });
146
+ Object.defineProperty(exports, "DEFAULT_HEALTH_CHECK_INTERVAL", { enumerable: true, get: function () { return coordination_1.DEFAULT_HEALTH_CHECK_INTERVAL; } });
147
+ Object.defineProperty(exports, "DEFAULT_RECONNECT_TIMEOUT", { enumerable: true, get: function () { return coordination_1.DEFAULT_RECONNECT_TIMEOUT; } });
148
+ Object.defineProperty(exports, "MAX_RECONNECT_ATTEMPTS", { enumerable: true, get: function () { return coordination_1.MAX_RECONNECT_ATTEMPTS; } });
149
+ Object.defineProperty(exports, "DEFAULT_SYNC_BATCH_SIZE", { enumerable: true, get: function () { return coordination_1.DEFAULT_SYNC_BATCH_SIZE; } });
150
+ Object.defineProperty(exports, "HEALTH_RTT_WARNING_THRESHOLD", { enumerable: true, get: function () { return coordination_1.HEALTH_RTT_WARNING_THRESHOLD; } });
151
+ Object.defineProperty(exports, "HEALTH_RTT_CRITICAL_THRESHOLD", { enumerable: true, get: function () { return coordination_1.HEALTH_RTT_CRITICAL_THRESHOLD; } });
152
+ Object.defineProperty(exports, "HEALTH_PACKET_LOSS_WARNING", { enumerable: true, get: function () { return coordination_1.HEALTH_PACKET_LOSS_WARNING; } });
153
+ Object.defineProperty(exports, "HEALTH_PACKET_LOSS_CRITICAL", { enumerable: true, get: function () { return coordination_1.HEALTH_PACKET_LOSS_CRITICAL; } });
154
+ // Re-export generateMessageId from coordination with prefix (conflicts with protocol)
155
+ var coordination_2 = require("./coordination");
156
+ Object.defineProperty(exports, "generateCoordinationMessageId", { enumerable: true, get: function () { return coordination_2.generateMessageId; } });
157
+ // NAT Traversal and TURN Fallback (P2-008)
158
+ __exportStar(require("./nat"), exports);
159
+ /**
160
+ * P2P Module version
161
+ */
162
+ exports.P2P_VERSION = '1.0.0';
163
+ /**
164
+ * P2P Module phase
165
+ */
166
+ exports.P2P_PHASE = 'P2-Foundation';
167
+ /**
168
+ * P2P module capabilities
169
+ */
170
+ exports.P2P_CAPABILITIES = {
171
+ // P2-001: Cryptographic Identity
172
+ ed25519KeyGeneration: true,
173
+ identityManagement: true,
174
+ messageSigning: true,
175
+ signatureVerification: true,
176
+ keyRotation: true,
177
+ seedPhraseRecovery: true,
178
+ // P2-002: WebRTC
179
+ peerConnections: true,
180
+ dataChannels: true,
181
+ iceNegotiation: true,
182
+ signalingProtocol: true,
183
+ connectionPooling: true,
184
+ autoReconnect: true,
185
+ // P2-003: Protocol
186
+ binaryMessageEncoding: true,
187
+ messageCompression: true,
188
+ requestResponse: true,
189
+ pubSub: true,
190
+ messageRouting: true,
191
+ reliableDelivery: true,
192
+ rateLimiting: true,
193
+ protocolVersionNegotiation: true,
194
+ heartbeat: true,
195
+ deadLetterQueue: true,
196
+ // P2-004: Pattern Sharing
197
+ patternSharing: true,
198
+ patternSerialization: true,
199
+ patternAnonymization: true,
200
+ differentialPrivacy: true,
201
+ vectorSimilaritySearch: true,
202
+ patternDeduplication: true,
203
+ vectorClockSync: true,
204
+ conflictResolution: true,
205
+ gossipProtocol: true,
206
+ subscriptionFiltering: true,
207
+ // P2-005: Federated Learning
208
+ federatedLearning: true,
209
+ fedAvgAggregation: true,
210
+ fedProxAggregation: true,
211
+ secureAggregation: true,
212
+ gradientClipping: true,
213
+ differentialPrivacyFL: true,
214
+ byzantineResilience: true,
215
+ modelCheckpointing: true,
216
+ convergenceMonitoring: true,
217
+ // P2-006: CRDT Conflict Resolution
218
+ crdtGCounter: true,
219
+ crdtLWWRegister: true,
220
+ crdtORSet: true,
221
+ crdtPatternCRDT: true,
222
+ crdtVectorClocks: true,
223
+ crdtDeltaSync: true,
224
+ crdtTombstoneGC: true,
225
+ crdtConflictTracking: true,
226
+ // P2-007: Two-Machine Coordination
227
+ peerCoordination: true,
228
+ authenticationHandshake: true,
229
+ healthMonitoring: true,
230
+ syncOrchestration: true,
231
+ incrementalSync: true,
232
+ reconnectionManagement: true,
233
+ // P2-008: NAT Traversal
234
+ natTypeDetection: true,
235
+ turnManagement: true,
236
+ turnCredentialRefresh: true,
237
+ holePunching: true,
238
+ portPrediction: true,
239
+ connectivityTesting: true,
240
+ fallbackEscalation: true,
241
+ };
242
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/edge/p2p/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;;;;;;;;;;;;;;;;;AAEH,yCAAyC;AACzC,2CAAyB;AAEzB,mCAAmC;AACnC,2CAAyB;AAEzB,iDAAiD;AACjD,6CAA2B;AAE3B,oCAAoC;AACpC,4CAA0B;AAE1B,6CAA6C;AAC7C,8CAA4B;AAE5B,0CAA0C;AAC1C,iFAAiF;AACjF,+BAiEgB;AAhEd,UAAU;AACV,gGAAA,QAAQ,OAAA;AACR,mGAAA,WAAW,OAAA;AACX,6FAAA,KAAK,OAAA;AACL,mGAAA,WAAW,OAAA;AACX,mGAAA,WAAW,OAAA;AACX,iGAAA,SAAS,OAAA;AACT,4BAA4B;AAC5B,gGAAA,QAAQ,OAAA;AAOR,oGAAA,YAAY,OAAA;AACZ,0GAAA,kBAAkB,OAAA;AAElB,mGAAA,WAAW,OAAA;AAkBX,4GAAA,oBAAoB,OAAA;AAEpB,qGAAA,aAAa,OAAA;AAGb,qGAAA,aAAa,OAAA;AAOb,6GAAA,qBAAqB,OAAA;AAKrB,YAAY;AACZ,oGAAA,YAAY,OAAA;AACZ,yGAAA,iBAAiB,OAAA;AACjB,6GAAA,qBAAqB,OAAA;AACrB,6GAAA,qBAAqB,OAAA;AACrB,6GAAA,qBAAqB,OAAA;AACrB,uGAAA,eAAe,OAAA;AAajB,oCAAoC;AACpC,8DAA8D;AAC9D,+CA2CwB;AA1CtB,oBAAoB;AACpB,mHAAA,mBAAmB,OAAA;AACnB,gHAAA,gBAAgB,OAAA;AAChB,6GAAA,aAAa,OAAA;AACb,4BAA4B;AAC5B,iHAAA,iBAAiB,OAAA;AACjB,gHAAA,gBAAgB,OAAA;AAEhB,2GAAA,WAAW,OAAA;AAMX,2HAAA,2BAA2B,OAAA;AAC3B,qHAAA,qBAAqB,OAAA;AAGrB,uHAAA,uBAAuB,OAAA;AAOvB,qHAAA,qBAAqB,OAAA;AACrB,yHAAA,yBAAyB,OAAA;AACzB,uHAAA,uBAAuB,OAAA;AACvB,oHAAA,oBAAoB,OAAA;AACpB,yHAAA,yBAAyB,OAAA;AACzB,iHAAA,iBAAiB,OAAA;AACjB,YAAY;AACZ,oHAAA,oBAAoB,OAAA;AACpB,qHAAA,qBAAqB,OAAA;AACrB,6HAAA,6BAA6B,OAAA;AAC7B,yHAAA,yBAAyB,OAAA;AACzB,sHAAA,sBAAsB,OAAA;AACtB,uHAAA,uBAAuB,OAAA;AACvB,4HAAA,4BAA4B,OAAA;AAC5B,6HAAA,6BAA6B,OAAA;AAC7B,0HAAA,0BAA0B,OAAA;AAC1B,2HAAA,2BAA2B,OAAA;AAS7B,sFAAsF;AACtF,+CAAoF;AAA3E,6HAAA,iBAAiB,OAAiC;AAE3D,2CAA2C;AAC3C,wCAAsB;AAEtB;;GAEG;AACU,QAAA,WAAW,GAAG,OAAO,CAAC;AAEnC;;GAEG;AACU,QAAA,SAAS,GAAG,eAAe,CAAC;AAEzC;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,iCAAiC;IACjC,oBAAoB,EAAE,IAAI;IAC1B,kBAAkB,EAAE,IAAI;IACxB,cAAc,EAAE,IAAI;IACpB,qBAAqB,EAAE,IAAI;IAC3B,WAAW,EAAE,IAAI;IACjB,kBAAkB,EAAE,IAAI;IAExB,iBAAiB;IACjB,eAAe,EAAE,IAAI;IACrB,YAAY,EAAE,IAAI;IAClB,cAAc,EAAE,IAAI;IACpB,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,IAAI;IACvB,aAAa,EAAE,IAAI;IAEnB,mBAAmB;IACnB,qBAAqB,EAAE,IAAI;IAC3B,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,IAAI;IACrB,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE,IAAI;IACpB,gBAAgB,EAAE,IAAI;IACtB,YAAY,EAAE,IAAI;IAClB,0BAA0B,EAAE,IAAI;IAChC,SAAS,EAAE,IAAI;IACf,eAAe,EAAE,IAAI;IAErB,0BAA0B;IAC1B,cAAc,EAAE,IAAI;IACpB,oBAAoB,EAAE,IAAI;IAC1B,oBAAoB,EAAE,IAAI;IAC1B,mBAAmB,EAAE,IAAI;IACzB,sBAAsB,EAAE,IAAI;IAC5B,oBAAoB,EAAE,IAAI;IAC1B,eAAe,EAAE,IAAI;IACrB,kBAAkB,EAAE,IAAI;IACxB,cAAc,EAAE,IAAI;IACpB,qBAAqB,EAAE,IAAI;IAE3B,6BAA6B;IAC7B,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,IAAI;IACvB,kBAAkB,EAAE,IAAI;IACxB,iBAAiB,EAAE,IAAI;IACvB,gBAAgB,EAAE,IAAI;IACtB,qBAAqB,EAAE,IAAI;IAC3B,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,qBAAqB,EAAE,IAAI;IAE3B,mCAAmC;IACnC,YAAY,EAAE,IAAI;IAClB,eAAe,EAAE,IAAI;IACrB,SAAS,EAAE,IAAI;IACf,eAAe,EAAE,IAAI;IACrB,gBAAgB,EAAE,IAAI;IACtB,aAAa,EAAE,IAAI;IACnB,eAAe,EAAE,IAAI;IACrB,oBAAoB,EAAE,IAAI;IAE1B,mCAAmC;IACnC,gBAAgB,EAAE,IAAI;IACtB,uBAAuB,EAAE,IAAI;IAC7B,gBAAgB,EAAE,IAAI;IACtB,iBAAiB,EAAE,IAAI;IACvB,eAAe,EAAE,IAAI;IACrB,sBAAsB,EAAE,IAAI;IAE5B,wBAAwB;IACxB,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE,IAAI;IACpB,qBAAqB,EAAE,IAAI;IAC3B,YAAY,EAAE,IAAI;IAClB,cAAc,EAAE,IAAI;IACpB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;CACzB,CAAC"}
@@ -0,0 +1,128 @@
1
+ /**
2
+ * Connectivity Tester for @ruvector/edge P2P
3
+ *
4
+ * Tests connectivity between peers, measures RTT, ranks connection candidates,
5
+ * and provides connectivity recommendations.
6
+ *
7
+ * @module edge/p2p/nat/ConnectivityTester
8
+ * @version 1.0.0
9
+ */
10
+ import { PeerId, ICECandidate } from '../webrtc/types';
11
+ import { ConnectivityTestResult, ConnectivityTesterConfig, CandidateRanking, ConnectivityRecommendation, NATClassification, TURNConfig, NATEventType, NATEventHandler } from './types';
12
+ /**
13
+ * Connectivity Tester - Tests and ranks peer connectivity
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ * const tester = new ConnectivityTester({
18
+ * timeout: 15000,
19
+ * pingCount: 10,
20
+ * maxAcceptableRtt: 500,
21
+ * });
22
+ *
23
+ * // Test connectivity to peer
24
+ * const result = await tester.test(peerId, {
25
+ * dataChannel: rtcDataChannel,
26
+ * candidates: [...],
27
+ * });
28
+ *
29
+ * console.log('Connected:', result.connected);
30
+ * console.log('RTT:', result.rttMs);
31
+ *
32
+ * // Get recommendations
33
+ * const recommendation = tester.getRecommendation(candidates, localNat, remoteNat);
34
+ * ```
35
+ */
36
+ export declare class ConnectivityTester {
37
+ private readonly config;
38
+ private eventHandlers;
39
+ private activeTests;
40
+ /**
41
+ * Create a new Connectivity Tester
42
+ *
43
+ * @param config - Tester configuration
44
+ */
45
+ constructor(config?: Partial<ConnectivityTesterConfig>);
46
+ /**
47
+ * Test connectivity to a peer
48
+ *
49
+ * @param peerId - Peer to test
50
+ * @param options - Test options
51
+ * @returns Promise resolving to test result
52
+ */
53
+ test(peerId: PeerId, options: {
54
+ dataChannel: RTCDataChannel;
55
+ candidates: ICECandidate[];
56
+ }): Promise<ConnectivityTestResult>;
57
+ /**
58
+ * Cancel an ongoing test
59
+ *
60
+ * @param peerId - Peer ID of test to cancel
61
+ */
62
+ cancelTest(peerId: PeerId): void;
63
+ /**
64
+ * Cancel all ongoing tests
65
+ */
66
+ cancelAllTests(): void;
67
+ /**
68
+ * Rank ICE candidates by quality
69
+ *
70
+ * @param candidates - Candidates to rank
71
+ * @param rttMeasurements - Optional RTT measurements per candidate
72
+ * @returns Ranked candidates
73
+ */
74
+ rankCandidates(candidates: ICECandidate[], rttMeasurements?: Map<string, number>): CandidateRanking[];
75
+ /**
76
+ * Get connectivity recommendation
77
+ *
78
+ * @param localCandidates - Local ICE candidates
79
+ * @param remoteCandidates - Remote ICE candidates
80
+ * @param localNat - Local NAT type
81
+ * @param remoteNat - Remote NAT type
82
+ * @param turnServers - Available TURN servers
83
+ * @returns Connectivity recommendation
84
+ */
85
+ getRecommendation(localCandidates: ICECandidate[], remoteCandidates: ICECandidate[], localNat: NATClassification, remoteNat: NATClassification, turnServers?: TURNConfig[]): ConnectivityRecommendation;
86
+ /**
87
+ * Test RTT to a specific endpoint
88
+ *
89
+ * @param dataChannel - Data channel to use
90
+ * @param pingCount - Number of pings
91
+ * @returns Promise resolving to average RTT
92
+ */
93
+ measureRtt(dataChannel: RTCDataChannel, pingCount?: number): Promise<number>;
94
+ /**
95
+ * Check if connectivity meets quality thresholds
96
+ *
97
+ * @param result - Test result to check
98
+ * @returns Whether connectivity is acceptable
99
+ */
100
+ isAcceptable(result: ConnectivityTestResult): boolean;
101
+ /**
102
+ * Register event handler
103
+ *
104
+ * @param type - Event type to handle
105
+ * @param handler - Event handler function
106
+ * @returns Unsubscribe function
107
+ */
108
+ on<T>(type: NATEventType, handler: NATEventHandler<T>): () => void;
109
+ /**
110
+ * Get current configuration
111
+ */
112
+ getConfig(): ConnectivityTesterConfig;
113
+ private waitForChannelOpen;
114
+ private performPingTests;
115
+ private sendPing;
116
+ private measureBandwidth;
117
+ private calculateStats;
118
+ private determineConnectionPath;
119
+ private calculateCandidateRanking;
120
+ private calculateRttScore;
121
+ private calculateReliabilityScore;
122
+ private calculatePathScore;
123
+ private estimateRtt;
124
+ private delay;
125
+ private emitEvent;
126
+ }
127
+ export default ConnectivityTester;
128
+ //# sourceMappingURL=ConnectivityTester.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConnectivityTester.d.ts","sourceRoot":"","sources":["../../../../src/edge/p2p/nat/ConnectivityTester.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,MAAM,EAAE,YAAY,EAAoB,MAAM,iBAAiB,CAAC;AACzE,OAAO,EACL,sBAAsB,EAEtB,wBAAwB,EACxB,gBAAgB,EAChB,0BAA0B,EAE1B,iBAAiB,EACjB,UAAU,EACV,YAAY,EAEZ,eAAe,EAGhB,MAAM,SAAS,CAAC;AA8BjB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAClD,OAAO,CAAC,aAAa,CAAsD;IAC3E,OAAO,CAAC,WAAW,CAA2C;IAE9D;;;;OAIG;gBACS,MAAM,GAAE,OAAO,CAAC,wBAAwB,CAAM;IAO1D;;;;;;OAMG;IACU,IAAI,CACf,MAAM,EAAE,MAAM,EACd,OAAO,EAAE;QACP,WAAW,EAAE,cAAc,CAAC;QAC5B,UAAU,EAAE,YAAY,EAAE,CAAC;KAC5B,GACA,OAAO,CAAC,sBAAsB,CAAC;IA0ElC;;;;OAIG;IACI,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAQvC;;OAEG;IACI,cAAc,IAAI,IAAI;IAO7B;;;;;;OAMG;IACI,cAAc,CACnB,UAAU,EAAE,YAAY,EAAE,EAC1B,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACpC,gBAAgB,EAAE;IAoBrB;;;;;;;;;OASG;IACI,iBAAiB,CACtB,eAAe,EAAE,YAAY,EAAE,EAC/B,gBAAgB,EAAE,YAAY,EAAE,EAChC,QAAQ,EAAE,iBAAiB,EAC3B,SAAS,EAAE,iBAAiB,EAC5B,WAAW,GAAE,UAAU,EAAO,GAC7B,0BAA0B;IAuD7B;;;;;;OAMG;IACU,UAAU,CACrB,WAAW,EAAE,cAAc,EAC3B,SAAS,GAAE,MAA8B,GACxC,OAAO,CAAC,MAAM,CAAC;IAWlB;;;;;OAKG;IACI,YAAY,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO;IAQ5D;;;;;;OAMG;IACI,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI;IAQzE;;OAEG;IACI,SAAS,IAAI,wBAAwB;YAQ9B,kBAAkB;YA+BlB,gBAAgB;YAqBhB,QAAQ;YAiFR,gBAAgB;IAyE9B,OAAO,CAAC,cAAc;IAqCtB,OAAO,CAAC,uBAAuB;IAgB/B,OAAO,CAAC,yBAAyB;IAsBjC,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,yBAAyB;IAsBjC,OAAO,CAAC,kBAAkB;IAgB1B,OAAO,CAAC,WAAW;IAgBnB,OAAO,CAAC,KAAK;IAIb,OAAO,CAAC,SAAS;CAiBlB;AAED,eAAe,kBAAkB,CAAC"}