@jshookmcp/jshook 0.3.0 → 0.3.2

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 (346) hide show
  1. package/LICENSE +661 -661
  2. package/README.md +32 -49
  3. package/README.zh.md +32 -47
  4. package/dist/AntiCheatDetector-B6d4Qe9D.mjs +1 -0
  5. package/dist/BrowserSessionCoordinator-BJ-HOxo0.mjs +1 -0
  6. package/dist/CacheAdapters-CsNtQIR8.mjs +1 -0
  7. package/dist/CodeInjector-Cll_7bLJ.mjs +1 -0
  8. package/dist/ConsoleMonitor-CxDJV15E.mjs +306 -0
  9. package/dist/DOMInspector-C19J4zeq.mjs +95 -0
  10. package/dist/DarwinAPI-ZfQdpLNI.mjs +1 -0
  11. package/dist/DetailedDataManager-DmQ1LT-W.mjs +1 -0
  12. package/dist/EventBus-DL8iLA09.mjs +1 -0
  13. package/dist/EvidenceGraphBridge-BtbwXsLC.mjs +1 -0
  14. package/dist/ExtensionManager-BD724zkO.mjs +1 -0
  15. package/dist/ExtensionManager.tools-oVMJgPcN.mjs +1 -0
  16. package/dist/FingerprintManager-DT0EAUEo.mjs +1 -0
  17. package/dist/HardwareBreakpoint-BUfPdp0f.mjs +1 -0
  18. package/dist/HeapAnalyzer-B_aqY8oj.mjs +1 -0
  19. package/dist/{HookGeneratorBuilders.core.generators.storage-CTbB4Lcx.mjs → HookGeneratorBuilders.core.generators.storage-DzD6dIJd.mjs} +66 -101
  20. package/dist/InstrumentationSession-D_G1ZPyd.mjs +1 -0
  21. package/dist/MCPServer.search.handlers.domain-BbS-6LnX.mjs +1 -0
  22. package/dist/MemoryController-X1XNSn1n.mjs +2 -0
  23. package/dist/MemoryScanSession-DG_F-PjE.mjs +1 -0
  24. package/dist/MemoryScanner-g1_L1ub5.mjs +1 -0
  25. package/dist/NativeMemoryManager.impl-DniBe2wf.mjs +1 -0
  26. package/dist/NativeMemoryManager.utils-BHy1P_jM.mjs +1 -0
  27. package/dist/NetworkMonitor-B_-au6aV.mjs +185 -0
  28. package/dist/PEAnalyzer-yWQaGrcx.mjs +1 -0
  29. package/dist/PageController-Dfsm1_o7.mjs +1 -0
  30. package/dist/PointerChainEngine-BhCUkmxY.mjs +1 -0
  31. package/dist/PrerequisiteError-BjCQA-gK.mjs +1 -0
  32. package/dist/ProcessRegistry-C-bN48oR.mjs +1 -0
  33. package/dist/ResponseBuilder-BfWP-uaT.mjs +1 -0
  34. package/dist/ReverseEvidenceGraph-BhSYYdiI.mjs +2 -0
  35. package/dist/RingBuffer-Dm54ELKT.mjs +1 -0
  36. package/dist/ScriptManager-LWGPTdvD.mjs +7 -0
  37. package/dist/ServerRuntimeState-D2bWHqEE.mjs +1 -0
  38. package/dist/Speedhack-yseDPSZ9.mjs +1 -0
  39. package/dist/StealthVerifier-BmcxfwSF.mjs +1 -0
  40. package/dist/StructureAnalyzer-C5lpuZkg.mjs +2 -0
  41. package/dist/ToolCatalog-CYdD9F5f.mjs +1 -0
  42. package/dist/ToolError-DWU_z7gp.mjs +1 -0
  43. package/dist/ToolProbe-C7ZU2x7M.mjs +1 -0
  44. package/dist/ToolRegistry-C5oB8KP8.mjs +1 -0
  45. package/dist/ToolRouter.policy-CfhJczkt.mjs +4 -0
  46. package/dist/TraceRecorder-BiJWBXHX.mjs +272 -0
  47. package/dist/VersionDetector-CHT36Az0.mjs +9 -0
  48. package/dist/Win32API-eUCF57l_.mjs +1 -0
  49. package/dist/Win32Debug-CYrIQBvr.mjs +1 -0
  50. package/dist/WorkflowEngine-D876meOO.mjs +1 -0
  51. package/dist/analysis-D4swdMvq.mjs +6 -0
  52. package/dist/{antidebug-BRKeyt27.mjs → antidebug-7L3ygj_9.mjs} +8 -259
  53. package/dist/apk-packer-BqXcInnX.mjs +1 -0
  54. package/dist/artifactRetention-BCPQASm7.mjs +1 -0
  55. package/dist/artifacts-CkodUM4j.mjs +1 -0
  56. package/dist/authorization-schema-BOFwSXUN.mjs +1 -0
  57. package/dist/betterSqlite3-Brtq-SIQ.mjs +1 -0
  58. package/dist/binary-instrument-DU7V6TUM.mjs +7 -0
  59. package/dist/binary-secrets-PdMVoyt0.mjs +1 -0
  60. package/dist/bind-helpers-m2U8glkF.mjs +1 -0
  61. package/dist/boringssl-inspector-BBaJwwkU.mjs +2 -0
  62. package/dist/browser-Qqco2rOT.mjs +11 -0
  63. package/dist/capabilities-CyXuKUl1.mjs +1 -0
  64. package/dist/chunk-C_pMuVsO.mjs +1 -0
  65. package/dist/collector-Bpl6qy2L.mjs +1 -0
  66. package/dist/concurrency-DCr8WQ2M.mjs +1 -0
  67. package/dist/constants-BYj8Xek8.mjs +1 -0
  68. package/dist/coordination-CWXW1o8K.mjs +1 -0
  69. package/dist/dart-inspector-7AkPeZ_Q.mjs +0 -0
  70. package/dist/debugger-DyALjYMk.mjs +1 -0
  71. package/dist/definitions-BWxBke3r.mjs +1 -0
  72. package/dist/definitions-BYwATKc-.mjs +1 -0
  73. package/dist/definitions-B_83XfNQ.mjs +1 -0
  74. package/dist/definitions-Bf3H1EwV.mjs +1 -0
  75. package/dist/definitions-BftdXgXI.mjs +1 -0
  76. package/dist/definitions-Bio5XJYy.mjs +1 -0
  77. package/dist/definitions-C3qNgSn1.mjs +1 -0
  78. package/dist/definitions-CB6vmOer.mjs +1 -0
  79. package/dist/definitions-CMZRSy3k.mjs +1 -0
  80. package/dist/definitions-CQd7yCQH.mjs +1 -0
  81. package/dist/definitions-CT8ln6GQ.mjs +1 -0
  82. package/dist/definitions-Cenu6mxo.mjs +1 -0
  83. package/dist/definitions-D4g-MS10.mjs +1 -0
  84. package/dist/definitions-D5wl_8HN.mjs +1 -0
  85. package/dist/definitions-DAQm1Xar.mjs +1 -0
  86. package/dist/definitions-DP1vgxEY.mjs +1 -0
  87. package/dist/definitions-DxFNRQNK2.mjs +1 -0
  88. package/dist/definitions-Ibci7e_L.mjs +1 -0
  89. package/dist/definitions-OeLvmlQy.mjs +1 -0
  90. package/dist/definitions-RZYGD_Ey.mjs +1 -0
  91. package/dist/definitions-Tls8c0A0.mjs +1 -0
  92. package/dist/definitions-bybDvnG0.mjs +26 -0
  93. package/dist/definitions-l7TjdE6V.mjs +1 -0
  94. package/dist/encoding-ycOaz8Vr.mjs +2 -0
  95. package/dist/ensure-browser-core-DxWC-NTp.mjs +1 -0
  96. package/dist/evidence-graph-bridge-CV_UdYqj.mjs +1 -0
  97. package/dist/factory-CKr4fAE1.mjs +1 -0
  98. package/dist/flat-target-session-DvcQX7J5.mjs +1 -0
  99. package/dist/formatAddress-vLA_hOJt.mjs +1 -0
  100. package/dist/graphql-B2TiPEow.mjs +62 -0
  101. package/dist/handlers-0yKLRIfo.mjs +2 -0
  102. package/dist/handlers-8zN_vBIz.mjs +1 -0
  103. package/dist/handlers-B62K4FTc.mjs +1 -0
  104. package/dist/handlers-BpDlVVVU.mjs +1 -0
  105. package/dist/handlers-CMJK7m1c.mjs +31 -0
  106. package/dist/handlers-D2ZOul9p.mjs +54 -0
  107. package/dist/handlers-D5E40ssn.mjs +5 -0
  108. package/dist/handlers-DGbdQAgD.mjs +4 -0
  109. package/dist/handlers-DHO3rjsW.mjs +1 -0
  110. package/dist/handlers-FJ80VzUI.mjs +2 -0
  111. package/dist/handlers-VHWrxbM_.mjs +1 -0
  112. package/dist/handlers-l8QIKqBj.mjs +2 -0
  113. package/dist/handlers-mPFiNPe8.mjs +302 -0
  114. package/dist/{handlers-Dz9PYsCa.mjs → handlers-yo_xYzT8.mjs} +118 -904
  115. package/dist/handlers.impl-D9Hh8Bgl.mjs +1 -0
  116. package/dist/hooks-D4XLfgtV.mjs +600 -0
  117. package/dist/index.mjs +13 -5240
  118. package/dist/jadx-search-B_Yse0Zh.mjs +5 -0
  119. package/dist/logger-sBC6IdRT.mjs +1 -0
  120. package/dist/maintenance-BUpIukhg.mjs +1 -0
  121. package/dist/manifest-0Jpt_AQa.mjs +1 -0
  122. package/dist/manifest-B3fZbSWR.mjs +1 -0
  123. package/dist/manifest-B7NB2rh2.mjs +1 -0
  124. package/dist/manifest-BDi4nbH1.mjs +1 -0
  125. package/dist/manifest-BLDfkE7n.mjs +1 -0
  126. package/dist/manifest-BcXbB4gf.mjs +1 -0
  127. package/dist/manifest-Bdnc_vrc.mjs +1 -0
  128. package/dist/manifest-BuYKgCnp.mjs +1 -0
  129. package/dist/manifest-CBfNnGPV.mjs +1 -0
  130. package/dist/manifest-CPS1Xv69.mjs +1 -0
  131. package/dist/manifest-CQH9FhwI.mjs +1 -0
  132. package/dist/manifest-CRryuZF4.mjs +1 -0
  133. package/dist/manifest-CctIumog.mjs +1 -0
  134. package/dist/manifest-CvTe5ZGV2.mjs +1 -0
  135. package/dist/manifest-D-5GH0DV.mjs +1 -0
  136. package/dist/manifest-D3Ssf3IC.mjs +1 -0
  137. package/dist/manifest-D5ck3NvC.mjs +1 -0
  138. package/dist/manifest-D9jUUJAu.mjs +1 -0
  139. package/dist/manifest-DCx6w2XV.mjs +1 -0
  140. package/dist/manifest-DG19q-Ld.mjs +1 -0
  141. package/dist/manifest-DLMlD0Zc.mjs +1 -0
  142. package/dist/manifest-DYpn8w_h.mjs +1 -0
  143. package/dist/manifest-DYzWI8Xs.mjs +1 -0
  144. package/dist/manifest-D_obs5F4.mjs +1 -0
  145. package/dist/manifest-DujQqEQR.mjs +2 -0
  146. package/dist/manifest-DwL2ik8P.mjs +1 -0
  147. package/dist/manifest-ItF5P8A12.mjs +1 -0
  148. package/dist/manifest-KZphqIyX.mjs +1 -0
  149. package/dist/manifest-LG42zPLY2.mjs +1 -0
  150. package/dist/manifest-LLdI5m4T.mjs +1 -0
  151. package/dist/manifest-QYbQXJn0.mjs +1 -0
  152. package/dist/manifest-RcpX_MyZ.mjs +123 -0
  153. package/dist/manifest-YgVd8Sgz.mjs +1 -0
  154. package/dist/manifest-Zy7Odg5J.mjs +1 -0
  155. package/dist/manifest-ff1H7Pdp.mjs +1 -0
  156. package/dist/manifest-iuhF6pTL2.mjs +1 -0
  157. package/dist/manifest-nXHmtMSp2.mjs +1 -0
  158. package/dist/manifest-xWfu6iLo.mjs +1 -0
  159. package/dist/manifest-yC16OhL2.mjs +1 -0
  160. package/dist/manifest-ztWJoXy4.mjs +1 -0
  161. package/dist/matchesWildcardPattern-BAG6LvX5.mjs +1 -0
  162. package/dist/modules-BPBcSaM-.mjs +333 -0
  163. package/dist/mojo-ipc-BhwsdVUW.mjs +9 -0
  164. package/dist/native/scripts/linux/enum-windows.sh +12 -12
  165. package/dist/native/scripts/macos/enum-windows.applescript +22 -22
  166. package/dist/native-j8l473zn.mjs +961 -0
  167. package/dist/network-T0VRwNPd.mjs +7 -0
  168. package/dist/outputPaths-B4Ic4RZh.mjs +2 -0
  169. package/dist/parse-args-Bw413PlW.mjs +1 -0
  170. package/dist/platform-CzaQtISh.mjs +93 -0
  171. package/dist/playwright-cdp-fallback-DqFdx9-s.mjs +1 -0
  172. package/dist/process-CWhsCWrf.mjs +2 -0
  173. package/dist/proxy-DZFlDsG3.mjs +2 -0
  174. package/dist/registry-DH4sc1dt.mjs +1 -0
  175. package/dist/renderer-pid-9tJnZ_9N.mjs +1 -0
  176. package/dist/response-C7rKQst4.mjs +1 -0
  177. package/dist/search-defaults-lYBVn_3L.mjs +1 -0
  178. package/dist/server/plugin-api.d.mts +19 -36
  179. package/dist/server/plugin-api.mjs +1 -293
  180. package/dist/shared-state-board-BSjXLUV1.mjs +1 -0
  181. package/dist/sourcemap-Dh3Ai_ur.mjs +1 -0
  182. package/dist/ssrf-policy-CsIJGkpd.mjs +1 -0
  183. package/dist/streaming-BcJ0B6ao.mjs +1 -0
  184. package/dist/tool-builder-qif8M9-K.mjs +1 -0
  185. package/dist/transform-DOxzeWPB.mjs +103 -0
  186. package/dist/types-D9EiE5o9.mjs +1 -0
  187. package/dist/types-Fz69RzbZ.mjs +1 -0
  188. package/dist/wasm-CZ_HTfKR.mjs +174 -0
  189. package/dist/webcrack-C1iYG_EX.mjs +46 -0
  190. package/dist/workflow-BdwQmARn.mjs +101 -0
  191. package/package.json +55 -82
  192. package/src/native/scripts/linux/enum-windows.sh +12 -12
  193. package/src/native/scripts/macos/enum-windows.applescript +22 -22
  194. package/dist/AntiCheatDetector-CqGDXmfc.mjs +0 -350
  195. package/dist/CacheAdapters-jJFy20G-.mjs +0 -80
  196. package/dist/CodeInjector-BdjRfNx7.mjs +0 -150
  197. package/dist/ConsoleMonitor-DykL3IAw.mjs +0 -2269
  198. package/dist/DarwinAPI-ETyy0xyo.mjs +0 -363
  199. package/dist/DetailedDataManager-HT49OrvF.mjs +0 -217
  200. package/dist/EventBus-DFKvADm3.mjs +0 -141
  201. package/dist/EvidenceGraphBridge-318Oi0Lf.mjs +0 -153
  202. package/dist/ExtensionManager-BDMsY2Dz.mjs +0 -721
  203. package/dist/FingerprintManager-BN4UQWnX.mjs +0 -96
  204. package/dist/HardwareBreakpoint-Cc2AFq1Y.mjs +0 -239
  205. package/dist/HeapAnalyzer-DruMgsgj.mjs +0 -284
  206. package/dist/InstrumentationSession-DLH0vd-z.mjs +0 -244
  207. package/dist/MemoryController-CMtviNW_.mjs +0 -167
  208. package/dist/MemoryScanSession-ITgb_NMi.mjs +0 -278
  209. package/dist/MemoryScanner-CiL7Z3ey.mjs +0 -428
  210. package/dist/NativeMemoryManager.impl-D9Lkovvn.mjs +0 -485
  211. package/dist/NativeMemoryManager.utils-BBlAixF5.mjs +0 -165
  212. package/dist/PEAnalyzer-DMQ44gen.mjs +0 -385
  213. package/dist/PageController-BPJNqqBN.mjs +0 -431
  214. package/dist/PointerChainEngine-K7wN8Z-w.mjs +0 -325
  215. package/dist/PrerequisiteError-TuyZIs6n.mjs +0 -20
  216. package/dist/ProcessRegistry-zGg12QbE.mjs +0 -74
  217. package/dist/ResponseBuilder-CJXWmWNw.mjs +0 -143
  218. package/dist/ReverseEvidenceGraph-C02-gXOh.mjs +0 -269
  219. package/dist/ScriptManager-ZuWD-0Jg.mjs +0 -3003
  220. package/dist/Speedhack-D-z0umeT.mjs +0 -156
  221. package/dist/StealthVerifier-BWmPgQsv.mjs +0 -135
  222. package/dist/StructureAnalyzer-Cav5AVSL.mjs +0 -429
  223. package/dist/ToolCatalog-5OJdMiF0.mjs +0 -582
  224. package/dist/ToolError-jh9whhMd.mjs +0 -15
  225. package/dist/ToolProbe-DbCFGyrg.mjs +0 -45
  226. package/dist/ToolRegistry-B9krbTtI.mjs +0 -180
  227. package/dist/ToolRouter.policy-BGDAGyeH.mjs +0 -344
  228. package/dist/TraceRecorder-B41Z5XBj.mjs +0 -1286
  229. package/dist/VersionDetector-K3V4vGsw.mjs +0 -104
  230. package/dist/Win32API-C2kjj0ze.mjs +0 -346
  231. package/dist/Win32Debug-CKrGOTpo.mjs +0 -274
  232. package/dist/WorkflowEngine-DJ6M4opp.mjs +0 -569
  233. package/dist/analysis-BHeJW2Nb.mjs +0 -1234
  234. package/dist/artifactRetention-CPXkUJXp.mjs +0 -598
  235. package/dist/artifacts-DkfosXH3.mjs +0 -59
  236. package/dist/authorization-schema-DRqyJMSk.mjs +0 -31
  237. package/dist/betterSqlite3-DLSBZodi.mjs +0 -74
  238. package/dist/binary-instrument--V3MAhJ4.mjs +0 -971
  239. package/dist/bind-helpers-ClV34xdn.mjs +0 -42
  240. package/dist/boringssl-inspector-Bo_LOLaS.mjs +0 -180
  241. package/dist/browser-Dx3_S2cG.mjs +0 -4369
  242. package/dist/capabilities-CcHlvWgK.mjs +0 -33
  243. package/dist/chunk-CjcI7cDX.mjs +0 -15
  244. package/dist/concurrency-Drev_Vz9.mjs +0 -41
  245. package/dist/constants-CDZLOoVv.mjs +0 -534
  246. package/dist/coordination-DgItD9DL.mjs +0 -259
  247. package/dist/debugger-RS3RSAqs.mjs +0 -1288
  248. package/dist/definitions-BEoYofW5.mjs +0 -47
  249. package/dist/definitions-BRaefg3u.mjs +0 -365
  250. package/dist/definitions-BbkvZkiv.mjs +0 -96
  251. package/dist/definitions-BtWSHJ3o.mjs +0 -17
  252. package/dist/definitions-C1gCHO0i.mjs +0 -43
  253. package/dist/definitions-CDOg_b-l.mjs +0 -138
  254. package/dist/definitions-CVPD9hzZ.mjs +0 -54
  255. package/dist/definitions-Cea8Lgl7.mjs +0 -94
  256. package/dist/definitions-DAgIyjxM.mjs +0 -10
  257. package/dist/definitions-DJA27nsL.mjs +0 -66
  258. package/dist/definitions-DKPFU3LW.mjs +0 -25
  259. package/dist/definitions-DPRpZQ96.mjs +0 -47
  260. package/dist/definitions-DUE5gmdn.mjs +0 -18
  261. package/dist/definitions-DYVjOtxa.mjs +0 -26
  262. package/dist/definitions-DcYLVLCo.mjs +0 -37
  263. package/dist/definitions-Pp5LI2H4.mjs +0 -27
  264. package/dist/definitions-j9KdHVNR.mjs +0 -14
  265. package/dist/definitions-uzkjBwa7.mjs +0 -258
  266. package/dist/definitions-va-AnLuQ.mjs +0 -28
  267. package/dist/encoding-DJeqHmpd.mjs +0 -1079
  268. package/dist/evidence-graph-bridge-DcYizFk2.mjs +0 -136
  269. package/dist/factory-C90tBff6.mjs +0 -575
  270. package/dist/flat-target-session-Dgax2Cy3.mjs +0 -29
  271. package/dist/formatAddress-nnMvEohD.mjs +0 -17
  272. package/dist/graphql-CoHrhweh.mjs +0 -1197
  273. package/dist/handlers-4jmR0nMs.mjs +0 -898
  274. package/dist/handlers-BAHPxcch.mjs +0 -789
  275. package/dist/handlers-BOs9b907.mjs +0 -2600
  276. package/dist/handlers-BWXEy6ef.mjs +0 -917
  277. package/dist/handlers-Bndn6QvE.mjs +0 -111
  278. package/dist/handlers-BqC4bD4s.mjs +0 -681
  279. package/dist/handlers-BtYq60bM2.mjs +0 -276
  280. package/dist/handlers-BzgcB4iv.mjs +0 -799
  281. package/dist/handlers-CRyRWj2b.mjs +0 -859
  282. package/dist/handlers-CVv2H1uq.mjs +0 -592
  283. package/dist/handlers-Dl5a7JS4.mjs +0 -572
  284. package/dist/handlers-Dx2d7jt7.mjs +0 -2537
  285. package/dist/handlers-HujRKC3b.mjs +0 -661
  286. package/dist/handlers.impl-XWXkQfyi.mjs +0 -807
  287. package/dist/hooks-B1B8NRHL.mjs +0 -898
  288. package/dist/logger-Dh_xb7_2.mjs +0 -93
  289. package/dist/maintenance-PRMkLVRW.mjs +0 -835
  290. package/dist/manifest-67Bok-Si.mjs +0 -58
  291. package/dist/manifest-6lNTMZAB2.mjs +0 -87
  292. package/dist/manifest-B2duEHiH.mjs +0 -90
  293. package/dist/manifest-B6EY9Vm8.mjs +0 -57
  294. package/dist/manifest-B6nKSbyY.mjs +0 -95
  295. package/dist/manifest-BL8AQNPF.mjs +0 -106
  296. package/dist/manifest-BSZvJJmV.mjs +0 -47
  297. package/dist/manifest-BU7qzUyX.mjs +0 -418
  298. package/dist/manifest-Bl62e8WK.mjs +0 -49
  299. package/dist/manifest-Bo5cXjdt.mjs +0 -82
  300. package/dist/manifest-BpS4gtUK.mjs +0 -1347
  301. package/dist/manifest-Bv65_e2W.mjs +0 -101
  302. package/dist/manifest-BytNIF4Z.mjs +0 -117
  303. package/dist/manifest-C-xtsjS3.mjs +0 -81
  304. package/dist/manifest-CDYl7OhA.mjs +0 -66
  305. package/dist/manifest-CRZ3xmkD.mjs +0 -61
  306. package/dist/manifest-CoW6u4Tp.mjs +0 -132
  307. package/dist/manifest-Cq5zN_8A.mjs +0 -50
  308. package/dist/manifest-D7YZM_2e.mjs +0 -194
  309. package/dist/manifest-DE_VrAeQ.mjs +0 -314
  310. package/dist/manifest-DGsXSCpT.mjs +0 -39
  311. package/dist/manifest-DJ2vfEuW.mjs +0 -156
  312. package/dist/manifest-DPXDYhEu.mjs +0 -80
  313. package/dist/manifest-Dd4fQb0a.mjs +0 -322
  314. package/dist/manifest-Deq6opGg.mjs +0 -223
  315. package/dist/manifest-DfJTafJK.mjs +0 -37
  316. package/dist/manifest-DgOdgN_j.mjs +0 -50
  317. package/dist/manifest-DlbMW4v4.mjs +0 -47
  318. package/dist/manifest-DmVfbH0w.mjs +0 -374
  319. package/dist/manifest-Dog6Ddjr.mjs +0 -109
  320. package/dist/manifest-DvgU5FWb.mjs +0 -58
  321. package/dist/manifest-HsfDBs7j.mjs +0 -50
  322. package/dist/manifest-I8oQHvCG.mjs +0 -186
  323. package/dist/manifest-NvH_a-av.mjs +0 -786
  324. package/dist/manifest-cEJU1v0Z.mjs +0 -129
  325. package/dist/manifest-wOl5XLB12.mjs +0 -112
  326. package/dist/modules-tZozf0LQ.mjs +0 -10635
  327. package/dist/mojo-ipc-DXNEXEqb.mjs +0 -640
  328. package/dist/network-CPVvwvFg.mjs +0 -3852
  329. package/dist/outputPaths-um7lCRY3.mjs +0 -1141
  330. package/dist/parse-args-B4cY5Vx5.mjs +0 -39
  331. package/dist/platform-CYeFoTWp.mjs +0 -2161
  332. package/dist/process-BTbgcVc6.mjs +0 -1306
  333. package/dist/proxy-r8YN6nP1.mjs +0 -192
  334. package/dist/registry-Bl8ZQW61.mjs +0 -34
  335. package/dist/response-CWhh2aLo.mjs +0 -34
  336. package/dist/shared-state-board-BoZnSoj-.mjs +0 -586
  337. package/dist/sourcemap-BIDHUVXy.mjs +0 -934
  338. package/dist/ssrf-policy-Dsqd-DTX.mjs +0 -166
  339. package/dist/streaming-Dal6utPp.mjs +0 -725
  340. package/dist/tool-builder-BHJp32mV.mjs +0 -186
  341. package/dist/transform-DRVgGG90.mjs +0 -1011
  342. package/dist/types-Bx92KJfT.mjs +0 -4
  343. package/dist/types-DDBWs9UP.mjs +0 -37
  344. package/dist/wasm-BYx5UOeG.mjs +0 -1044
  345. package/dist/webcrack-Be0_FccV.mjs +0 -747
  346. package/dist/workflow-BpuKEtvn.mjs +0 -725
@@ -1,325 +0,0 @@
1
- import { Qt as POINTER_CHAIN_SCAN_CHUNK_SIZE, Xt as POINTER_CHAIN_MAX_OFFSET, Yt as POINTER_CHAIN_MAX_DEPTH, Zt as POINTER_CHAIN_MAX_RESULTS } from "./constants-CDZLOoVv.mjs";
2
- import { t as createPlatformProvider } from "./factory-C90tBff6.mjs";
3
- import { t as nativeMemoryManager } from "./NativeMemoryManager.impl-D9Lkovvn.mjs";
4
- import { n as parseAddress, t as formatAddress } from "./formatAddress-nnMvEohD.mjs";
5
- import { randomUUID } from "node:crypto";
6
- //#region src/native/PointerChainEngine.ts
7
- /**
8
- * Pointer Chain Engine — multi-level BFS pointer scanning.
9
- *
10
- * Finds stable pointer chains: [base_module+offset] → [+off1] → [+off2] → ... → target
11
- * Supports chain validation, resolution, and persistence.
12
- *
13
- * Uses PlatformMemoryAPI for cross-platform memory operations.
14
- *
15
- * @module PointerChainEngine
16
- */
17
- var PointerChainEngine = class {
18
- providerCache = null;
19
- get provider() {
20
- if (!this.providerCache) this.providerCache = createPlatformProvider();
21
- return this.providerCache;
22
- }
23
- set provider(value) {
24
- this.providerCache = value;
25
- }
26
- /**
27
- * Multi-level BFS pointer scan.
28
- *
29
- * Algorithm:
30
- * Level 0: Find pointers P where *P ∈ [target - maxOffset, target + maxOffset]
31
- * Level 1: Find pointers Q where *Q ∈ [P - maxOffset, P + maxOffset] for each P
32
- * ... repeat up to maxDepth
33
- * Construct chains backward from target to base.
34
- */
35
- async scan(pid, targetAddress, options) {
36
- const start = performance.now();
37
- const maxDepth = Math.min(options?.maxDepth ?? 4, POINTER_CHAIN_MAX_DEPTH);
38
- const maxOffset = options?.maxOffset ?? POINTER_CHAIN_MAX_OFFSET;
39
- const maxResults = options?.maxResults ?? POINTER_CHAIN_MAX_RESULTS;
40
- const alignment = options?.alignment ?? 8;
41
- const staticOnly = options?.staticOnly ?? false;
42
- const targetAddr = parseAddress(targetAddress);
43
- const handle = this.provider.openProcess(pid, false);
44
- try {
45
- const modules = await this.getModuleMap(pid);
46
- const levelResults = [];
47
- let currentTargets = new Set([targetAddr]);
48
- for (let depth = 0; depth < maxDepth; depth++) {
49
- if (currentTargets.size === 0) break;
50
- const matches = this.scanLevel(handle, currentTargets, maxOffset, alignment, options?.modules ? { modules: options.modules } : void 0);
51
- if (matches.length === 0) break;
52
- levelResults.push(matches);
53
- currentTargets = /* @__PURE__ */ new Set();
54
- for (const m of matches) {
55
- currentTargets.add(m.pointerAddress);
56
- if (currentTargets.size > 5e4) break;
57
- }
58
- }
59
- const chains = this.buildChains(levelResults, targetAddr, modules, maxResults, staticOnly);
60
- const elapsed = `${(performance.now() - start).toFixed(1)}ms`;
61
- return {
62
- pid,
63
- targetAddress: formatAddress(targetAddr),
64
- chains,
65
- totalFound: chains.length,
66
- maxDepth,
67
- elapsed
68
- };
69
- } finally {
70
- this.provider.closeProcess(handle);
71
- }
72
- }
73
- /**
74
- * Validate a pointer chain by re-dereferencing each link.
75
- */
76
- async validateChain(pid, chain) {
77
- const handle = this.provider.openProcess(pid, false);
78
- try {
79
- let currentAddr = parseAddress(chain.baseAddress);
80
- for (let i = 0; i < chain.links.length; i++) {
81
- const link = chain.links[i];
82
- let ptrValue;
83
- try {
84
- ptrValue = this.provider.readMemory(handle, currentAddr, 8).data.readBigUInt64LE(0);
85
- } catch {
86
- return {
87
- chainId: chain.id,
88
- isValid: false,
89
- resolvedAddress: null,
90
- expectedAddress: chain.targetAddress,
91
- brokenAt: i
92
- };
93
- }
94
- currentAddr = ptrValue + BigInt(link.offset);
95
- }
96
- const resolvedStr = formatAddress(currentAddr);
97
- const expectedAddr = parseAddress(chain.targetAddress);
98
- const isValid = currentAddr === expectedAddr;
99
- return {
100
- chainId: chain.id,
101
- isValid,
102
- resolvedAddress: resolvedStr,
103
- expectedAddress: chain.targetAddress,
104
- brokenAt: isValid ? void 0 : chain.links.length - 1
105
- };
106
- } finally {
107
- this.provider.closeProcess(handle);
108
- }
109
- }
110
- /**
111
- * Validate multiple chains in batch.
112
- */
113
- async validateChains(pid, chains) {
114
- const results = [];
115
- for (const chain of chains) results.push(await this.validateChain(pid, chain));
116
- return results;
117
- }
118
- /**
119
- * Resolve a pointer chain to its current target address.
120
- */
121
- async resolveChain(pid, chain) {
122
- const handle = this.provider.openProcess(pid, false);
123
- try {
124
- let currentAddr = parseAddress(chain.baseAddress);
125
- for (const link of chain.links) {
126
- let ptrValue;
127
- try {
128
- ptrValue = this.provider.readMemory(handle, currentAddr, 8).data.readBigUInt64LE(0);
129
- } catch {
130
- return null;
131
- }
132
- currentAddr = ptrValue + BigInt(link.offset);
133
- }
134
- return formatAddress(currentAddr);
135
- } finally {
136
- this.provider.closeProcess(handle);
137
- }
138
- }
139
- /**
140
- * Export chains to JSON for persistence.
141
- */
142
- exportChains(chains) {
143
- return JSON.stringify(chains, null, 2);
144
- }
145
- /**
146
- * Import chains from JSON.
147
- */
148
- importChains(data) {
149
- const parsed = JSON.parse(data);
150
- if (!Array.isArray(parsed)) throw new Error("Invalid chain data: expected array");
151
- return parsed;
152
- }
153
- /**
154
- * Get module info map for resolving module-relative addresses.
155
- */
156
- async getModuleMap(pid) {
157
- const modules = /* @__PURE__ */ new Map();
158
- try {
159
- const result = await nativeMemoryManager.enumerateModules(pid);
160
- if (result.success && result.modules) for (const mod of result.modules) {
161
- const base = parseAddress(mod.baseAddress);
162
- modules.set(mod.name.toLowerCase(), {
163
- name: mod.name,
164
- base,
165
- size: mod.size
166
- });
167
- }
168
- } catch {}
169
- return modules;
170
- }
171
- /**
172
- * Resolve an address to module+offset notation.
173
- */
174
- resolveToModule(address, moduleMap) {
175
- for (const entry of moduleMap.values()) if (address >= entry.base && address < entry.base + BigInt(entry.size)) return {
176
- module: entry.name,
177
- offset: Number(address - entry.base)
178
- };
179
- return null;
180
- }
181
- /**
182
- * BFS scan for one level: find all addresses whose pointer-sized value
183
- * points within ±maxOffset of any target address.
184
- */
185
- scanLevel(handle, targetAddresses, maxOffset, alignment, _filter) {
186
- const matches = [];
187
- const chunkSize = POINTER_CHAIN_SCAN_CHUNK_SIZE;
188
- const targets = Array.from(targetAddresses).toSorted((a, b) => a < b ? -1 : a > b ? 1 : 0);
189
- if (targets.length === 0) return matches;
190
- const maxOffsetBig = BigInt(maxOffset);
191
- const globalMin = targets[0] - maxOffsetBig;
192
- const globalMax = targets[targets.length - 1] + maxOffsetBig;
193
- let address = 0n;
194
- const maxAddress = BigInt("0x7FFFFFFF0000");
195
- while (address < maxAddress) {
196
- const regionInfo = this.provider.queryRegion(handle, address);
197
- if (!regionInfo) break;
198
- const regionSize = regionInfo.size;
199
- if (regionInfo.isReadable && regionSize > 0 && regionSize <= Number.MAX_SAFE_INTEGER) {
200
- const regionBase = regionInfo.baseAddress;
201
- for (let offset = 0; offset < regionSize && matches.length < 1e5; offset += chunkSize) {
202
- const readSize = Math.min(chunkSize, regionSize - offset);
203
- const chunkAddr = regionBase + BigInt(offset);
204
- let chunk;
205
- try {
206
- chunk = this.provider.readMemory(handle, chunkAddr, readSize).data;
207
- } catch {
208
- break;
209
- }
210
- for (let i = 0; i <= chunk.length - 8; i += alignment) {
211
- const ptrValue = chunk.readBigUInt64LE(i);
212
- if (ptrValue < globalMin || ptrValue > globalMax) continue;
213
- const searchMin = ptrValue - maxOffsetBig;
214
- const searchMax = ptrValue + maxOffsetBig;
215
- let lo = 0;
216
- let hi = targets.length;
217
- while (lo < hi) {
218
- const mid = lo + hi >>> 1;
219
- if (targets[mid] < searchMin) lo = mid + 1;
220
- else hi = mid;
221
- }
222
- for (let t = lo; t < targets.length && targets[t] <= searchMax; t++) {
223
- const target = targets[t];
224
- if ((ptrValue > target ? Number(ptrValue - target) : Number(target - ptrValue)) <= maxOffset) {
225
- const pointerAddr = chunkAddr + BigInt(i);
226
- const matchOffset = Number(target - ptrValue);
227
- matches.push({
228
- pointerAddress: pointerAddr,
229
- pointsTo: ptrValue,
230
- offset: matchOffset
231
- });
232
- break;
233
- }
234
- }
235
- }
236
- }
237
- }
238
- address = regionInfo.baseAddress + BigInt(regionInfo.size);
239
- }
240
- return matches;
241
- }
242
- /**
243
- * Build pointer chains from level results (backward: deepest level = base).
244
- */
245
- buildChains(levelResults, targetAddr, modules, maxResults, staticOnly) {
246
- if (levelResults.length === 0) return [];
247
- const chains = [];
248
- const targetAddrStr = formatAddress(targetAddr);
249
- for (let depth = 0; depth < levelResults.length && chains.length < maxResults; depth++) {
250
- const level = levelResults[depth];
251
- if (depth === 0) for (const match of level) {
252
- if (chains.length >= maxResults) break;
253
- const baseAddrStr = formatAddress(match.pointerAddress);
254
- const modInfo = this.resolveToModule(match.pointerAddress, modules);
255
- const isStatic = modInfo !== null;
256
- if (staticOnly && !isStatic) continue;
257
- const link = {
258
- address: baseAddrStr,
259
- module: modInfo?.module,
260
- moduleOffset: modInfo?.offset,
261
- offset: match.offset
262
- };
263
- chains.push({
264
- id: randomUUID(),
265
- links: [link],
266
- targetAddress: targetAddrStr,
267
- baseAddress: baseAddrStr,
268
- isStatic,
269
- depth: 1,
270
- lastValidated: Date.now(),
271
- isValid: true
272
- });
273
- }
274
- else {
275
- const prevLevel = levelResults[depth - 1];
276
- const prevByAddr = /* @__PURE__ */ new Map();
277
- for (const pm of prevLevel) prevByAddr.set(pm.pointerAddress, pm);
278
- const maxOff = BigInt(POINTER_CHAIN_MAX_OFFSET);
279
- for (const match of level) {
280
- if (chains.length >= maxResults) break;
281
- let prevMatch;
282
- prevMatch = prevByAddr.get(match.pointsTo);
283
- if (!prevMatch) {
284
- for (const pm of prevLevel) if ((match.pointsTo > pm.pointerAddress ? match.pointsTo - pm.pointerAddress : pm.pointerAddress - match.pointsTo) <= maxOff) {
285
- prevMatch = pm;
286
- break;
287
- }
288
- }
289
- if (!prevMatch) continue;
290
- const baseAddrStr = formatAddress(match.pointerAddress);
291
- const modInfo = this.resolveToModule(match.pointerAddress, modules);
292
- const isStatic = modInfo !== null;
293
- if (staticOnly && !isStatic) continue;
294
- const links = [{
295
- address: baseAddrStr,
296
- module: modInfo?.module,
297
- moduleOffset: modInfo?.offset,
298
- offset: Number(prevMatch.pointerAddress - match.pointsTo)
299
- }, {
300
- address: formatAddress(prevMatch.pointerAddress),
301
- offset: prevMatch.offset
302
- }];
303
- chains.push({
304
- id: randomUUID(),
305
- links,
306
- targetAddress: targetAddrStr,
307
- baseAddress: baseAddrStr,
308
- isStatic,
309
- depth: links.length,
310
- lastValidated: Date.now(),
311
- isValid: true
312
- });
313
- }
314
- }
315
- }
316
- chains.sort((a, b) => {
317
- if (a.isStatic !== b.isStatic) return a.isStatic ? -1 : 1;
318
- return a.depth - b.depth;
319
- });
320
- return chains.slice(0, maxResults);
321
- }
322
- };
323
- const pointerChainEngine = new PointerChainEngine();
324
- //#endregion
325
- export { PointerChainEngine, pointerChainEngine };
@@ -1,20 +0,0 @@
1
- import { t as ToolError } from "./ToolError-jh9whhMd.mjs";
2
- //#region src/errors/PrerequisiteError.ts
3
- /**
4
- * Thrown when a tool's prerequisite is not met (e.g. debugger not enabled,
5
- * browser not connected, profiling not started).
6
- *
7
- * The MCP server catches this and returns a graceful
8
- * `{ success: false, message }` response instead of `isError: true`.
9
- *
10
- * Extends ToolError with code 'PREREQUISITE' for unified error classification.
11
- * Constructor signature unchanged — backward-compatible with all existing callers.
12
- */
13
- var PrerequisiteError = class extends ToolError {
14
- constructor(message) {
15
- super("PREREQUISITE", message);
16
- this.name = "PrerequisiteError";
17
- }
18
- };
19
- //#endregion
20
- export { PrerequisiteError as t };
@@ -1,74 +0,0 @@
1
- import { t as logger } from "./logger-Dh_xb7_2.mjs";
2
- import { G as EXTERNAL_TOOL_FORCE_KILL_GRACE_MS } from "./constants-CDZLOoVv.mjs";
3
- //#region src/utils/ProcessRegistry.ts
4
- /**
5
- * Global singleton registry to track and safely terminate orphaned child
6
- * processes and worker threads upon server shutdown.
7
- */
8
- var ProcessRegistrySingleton = class {
9
- processes = /* @__PURE__ */ new Set();
10
- /**
11
- * Register a ChildProcess or Worker for automatic cleanup on shutdown.
12
- */
13
- register(proc) {
14
- if (!proc) return;
15
- this.processes.add(proc);
16
- if ("kill" in proc) proc.once("close", () => this.unregister(proc));
17
- else if ("terminate" in proc) {
18
- if (typeof proc.once === "function") proc.once("exit", () => this.unregister(proc));
19
- else if (typeof proc.on === "function") proc.on("exit", () => this.unregister(proc));
20
- }
21
- }
22
- /**
23
- * Unregister a process/worker.
24
- */
25
- unregister(proc) {
26
- if (!proc) return;
27
- this.processes.delete(proc);
28
- }
29
- /**
30
- * Terminate all tracked processes and workers.
31
- * Sends SIGTERM, then after a grace period sends SIGKILL.
32
- */
33
- async terminateAll() {
34
- if (this.processes.size === 0) return;
35
- logger.debug(`[ProcessRegistry] Attempting to terminate ${this.processes.size} active processes/workers...`);
36
- const terminationPromises = [];
37
- for (const proc of this.processes) if ("terminate" in proc) terminationPromises.push(proc.terminate().then(() => {
38
- this.processes.delete(proc);
39
- }).catch((err) => {
40
- logger.warn(`[ProcessRegistry] Error terminating worker: ${err.message}`);
41
- }));
42
- else if ("kill" in proc) terminationPromises.push(new Promise((resolve) => {
43
- if (proc.killed || proc.exitCode !== null || proc.signalCode !== null) {
44
- this.processes.delete(proc);
45
- return resolve();
46
- }
47
- proc.kill("SIGTERM");
48
- let settled = false;
49
- const handleExit = () => {
50
- if (settled) return;
51
- settled = true;
52
- this.processes.delete(proc);
53
- resolve();
54
- };
55
- proc.once("exit", handleExit);
56
- proc.once("close", handleExit);
57
- setTimeout(() => {
58
- if (!settled && !proc.killed && proc.exitCode === null) {
59
- logger.debug(`[ProcessRegistry] Force killing child process PID ${proc.pid}`);
60
- try {
61
- proc.kill("SIGKILL");
62
- } catch {}
63
- handleExit();
64
- }
65
- }, EXTERNAL_TOOL_FORCE_KILL_GRACE_MS).unref();
66
- }));
67
- await Promise.race([Promise.all(terminationPromises), new Promise((resolve) => setTimeout(resolve, EXTERNAL_TOOL_FORCE_KILL_GRACE_MS + 1e3).unref())]);
68
- this.processes.clear();
69
- logger.debug(`[ProcessRegistry] Termination sweep complete.`);
70
- }
71
- };
72
- const ProcessRegistry = new ProcessRegistrySingleton();
73
- //#endregion
74
- export { ProcessRegistry as t };
@@ -1,143 +0,0 @@
1
- //#region src/server/domains/shared/ResponseBuilder.ts
2
- /**
3
- * Fluent builder for MCP tool responses.
4
- *
5
- * Replaces the verbose 14-line deep-nesting pattern:
6
- * ```
7
- * return { content: [{ type: 'text', text: JSON.stringify({...}, null, 2) }] };
8
- * ```
9
- *
10
- * With a chainable API:
11
- * ```
12
- * return R.ok().set('driver', 'chrome').json();
13
- * ```
14
- */
15
- var ResponseBuilder = class {
16
- payload = {};
17
- hasMcpError = false;
18
- additionalContent = [];
19
- useStructuredContent = false;
20
- /** Mark as success (sets `success: true`). */
21
- ok() {
22
- this.payload.success = true;
23
- return this;
24
- }
25
- /** Mark as failure (sets `success: false, error: <message>, message: <message>`). */
26
- fail(error) {
27
- this.payload.success = false;
28
- const msg = error instanceof Error ? error.message : String(error);
29
- this.payload.error = msg;
30
- this.payload.message = msg;
31
- return this;
32
- }
33
- /** Set a single key-value pair. */
34
- set(key, value) {
35
- this.payload[key] = value;
36
- return this;
37
- }
38
- /** Merge multiple fields at once. */
39
- merge(fields) {
40
- Object.assign(this.payload, fields);
41
- return this;
42
- }
43
- /** Set MCP-level `isError: true` on the response envelope. */
44
- mcpError() {
45
- this.hasMcpError = true;
46
- return this;
47
- }
48
- /** Push an image block to the final response. */
49
- image(base64, mimeType) {
50
- this.additionalContent.push({
51
- type: "image",
52
- data: base64,
53
- mimeType
54
- });
55
- return this;
56
- }
57
- /** Push an embedded resource block to the final response. */
58
- embeddedResource(uri, text, mimeType = "text/plain") {
59
- this.additionalContent.push({
60
- type: "resource",
61
- resource: {
62
- uri,
63
- text,
64
- mimeType
65
- }
66
- });
67
- return this;
68
- }
69
- /** Send output payload natively as `structuredContent` in the MCP envelope instead of stringifying inside text block. */
70
- structured() {
71
- this.useStructuredContent = true;
72
- return this;
73
- }
74
- /**
75
- * Build the ToolResponse. Handles text vs structured plus extra blocks.
76
- * Optionally merges extra fields before building.
77
- */
78
- json(fields) {
79
- if (fields) this.merge(fields);
80
- return {
81
- content: [{
82
- type: "text",
83
- text: JSON.stringify(this.payload, null, 2)
84
- }, ...this.additionalContent],
85
- ...this.hasMcpError ? { isError: true } : {},
86
- ...this.useStructuredContent ? { structuredContent: this.payload } : {}
87
- };
88
- }
89
- /** Alias for json(). */
90
- build(fields) {
91
- return this.json(fields);
92
- }
93
- /** Build a ToolResponse from an arbitrary value (no success/error wrapper). */
94
- static raw(data) {
95
- return { content: [{
96
- type: "text",
97
- text: JSON.stringify(data, null, 2)
98
- }] };
99
- }
100
- /**
101
- * Build a ToolResponse from a plain text string.
102
- * Setting `isError = true` returns a soft error for macro compatibility
103
- * without triggering a JSON-RPC ErrorCode.
104
- */
105
- static text(text, isError = false) {
106
- return {
107
- content: [{
108
- type: "text",
109
- text
110
- }],
111
- ...isError ? { isError: true } : {}
112
- };
113
- }
114
- /**
115
- * Safely extract and parse JSON from an MCP ToolResponse.
116
- * Useful for consuming tool results in workflow/orchestration logic.
117
- */
118
- static parse(response) {
119
- if (!response.content || response.content.length === 0) throw new Error("ToolResponse has no content");
120
- const textBlock = response.content.find((c) => c.type === "text");
121
- if (!textBlock || !("text" in textBlock)) throw new Error("ToolResponse has no text content block");
122
- try {
123
- return JSON.parse(textBlock.text);
124
- } catch (e) {
125
- throw new Error(`Failed to parse tool result as JSON: ${String(e)}\nRaw text: ${textBlock.text.substring(0, 500)}`, { cause: e });
126
- }
127
- }
128
- };
129
- /** Shorthand factory — the primary entry point for building responses. */
130
- const R = {
131
- /** Start a success response (`{ success: true, ... }`). */
132
- ok: () => new ResponseBuilder().ok(),
133
- /** Start a failure response (`{ success: false, error: "..." }`). */
134
- fail: (error) => new ResponseBuilder().fail(error),
135
- /** Wrap an existing object as-is (no success/error wrapper). */
136
- raw: (data) => ResponseBuilder.raw(data),
137
- /** Wrap a plain text string. */
138
- text: (text, isError = false) => ResponseBuilder.text(text, isError),
139
- /** Parse a response back into an object. */
140
- parse: (response) => ResponseBuilder.parse(response)
141
- };
142
- //#endregion
143
- export { R as t };