@jshookmcp/jshook 0.2.9 → 0.3.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 (187) hide show
  1. package/README.md +2 -2
  2. package/README.zh.md +2 -2
  3. package/dist/{AntiCheatDetector-BNk-EoBt.mjs → AntiCheatDetector-CqGDXmfc.mjs} +159 -53
  4. package/dist/{CodeInjector-Cq8q01kp.mjs → CodeInjector-BdjRfNx7.mjs} +5 -5
  5. package/dist/{ConsoleMonitor-CPVQW1Y-.mjs → ConsoleMonitor-DykL3IAw.mjs} +85 -17
  6. package/dist/{DetailedDataManager-BQQcxh64.mjs → DetailedDataManager-HT49OrvF.mjs} +1 -1
  7. package/dist/{ExtensionManager-CWYgw0YW.mjs → ExtensionManager-BDMsY2Dz.mjs} +15 -8
  8. package/dist/{HardwareBreakpoint-B9gZCdFP.mjs → HardwareBreakpoint-Cc2AFq1Y.mjs} +3 -3
  9. package/dist/{HeapAnalyzer-BLDH0dCv.mjs → HeapAnalyzer-DruMgsgj.mjs} +20 -20
  10. package/dist/{HookGeneratorBuilders.core.generators.storage-CtcdK78Q.mjs → HookGeneratorBuilders.core.generators.storage-CTbB4Lcx.mjs} +1 -74
  11. package/dist/{InstrumentationSession-CvPC7Jwy.mjs → InstrumentationSession-DLH0vd-z.mjs} +2 -2
  12. package/dist/{MemoryController-CbVdCIJF.mjs → MemoryController-CMtviNW_.mjs} +3 -3
  13. package/dist/{MemoryScanSession-BsDZbLYm.mjs → MemoryScanSession-ITgb_NMi.mjs} +2 -2
  14. package/dist/{MemoryScanner-Bcpml6II.mjs → MemoryScanner-CiL7Z3ey.mjs} +12 -9
  15. package/dist/{NativeMemoryManager.impl-dZtA1ZGn.mjs → NativeMemoryManager.impl-D9Lkovvn.mjs} +13 -10
  16. package/dist/{NativeMemoryManager.utils-B-FjA2mJ.mjs → NativeMemoryManager.utils-BBlAixF5.mjs} +1 -1
  17. package/dist/{PEAnalyzer-D1lzJ_VG.mjs → PEAnalyzer-DMQ44gen.mjs} +15 -15
  18. package/dist/{PageController-Bqm2kZ_X.mjs → PageController-BPJNqqBN.mjs} +18 -4
  19. package/dist/{PointerChainEngine-BOhyVsjx.mjs → PointerChainEngine-K7wN8Z-w.mjs} +10 -7
  20. package/dist/ProcessRegistry-zGg12QbE.mjs +74 -0
  21. package/dist/{ResponseBuilder-D3iFYx2N.mjs → ResponseBuilder-CJXWmWNw.mjs} +10 -10
  22. package/dist/{ScriptManager-aHHq0X7U.mjs → ScriptManager-ZuWD-0Jg.mjs} +195 -192
  23. package/dist/{Speedhack-CqdIFlQl.mjs → Speedhack-D-z0umeT.mjs} +2 -2
  24. package/dist/{StructureAnalyzer-DhFaPvRO.mjs → StructureAnalyzer-Cav5AVSL.mjs} +9 -6
  25. package/dist/{ToolCatalog-C0JGZoOm.mjs → ToolCatalog-5OJdMiF0.mjs} +81 -81
  26. package/dist/{ToolProbe-oC7aPrkv.mjs → ToolProbe-DbCFGyrg.mjs} +1 -1
  27. package/dist/{ToolRegistry-BjaF4oNz.mjs → ToolRegistry-B9krbTtI.mjs} +51 -2
  28. package/dist/{ToolRouter.policy-BWV67ZK-.mjs → ToolRouter.policy-BGDAGyeH.mjs} +60 -20
  29. package/dist/TraceRecorder-B41Z5XBj.mjs +1286 -0
  30. package/dist/{Win32API-CePkipZY.mjs → Win32API-C2kjj0ze.mjs} +18 -12
  31. package/dist/{Win32Debug-BvKs-gxc.mjs → Win32Debug-CKrGOTpo.mjs} +2 -2
  32. package/dist/{WorkflowEngine-CuvkZtWu.mjs → WorkflowEngine-DJ6M4opp.mjs} +226 -255
  33. package/dist/analysis-BHeJW2Nb.mjs +1234 -0
  34. package/dist/{antidebug-CqDTB_uk.mjs → antidebug-BRKeyt27.mjs} +3 -3
  35. package/dist/{artifactRetention-CFEprwPw.mjs → artifactRetention-CPXkUJXp.mjs} +13 -6
  36. package/dist/{artifacts-Bk2-_uPq.mjs → artifacts-DkfosXH3.mjs} +1 -1
  37. package/dist/authorization-schema-DRqyJMSk.mjs +31 -0
  38. package/dist/{binary-instrument-CXfpx6fT.mjs → binary-instrument--V3MAhJ4.mjs} +19 -27
  39. package/dist/bind-helpers-ClV34xdn.mjs +42 -0
  40. package/dist/{boringssl-inspector-BH2D3VKc.mjs → boringssl-inspector-Bo_LOLaS.mjs} +1 -1
  41. package/dist/{browser-BpOr5PEx.mjs → browser-Dx3_S2cG.mjs} +324 -37
  42. package/dist/capabilities-CcHlvWgK.mjs +33 -0
  43. package/dist/{constants-B0OANIBL.mjs → constants-CDZLOoVv.mjs} +18 -3
  44. package/dist/{coordination-qUbyF8KU.mjs → coordination-DgItD9DL.mjs} +2 -2
  45. package/dist/{debugger-gnKxRSN0.mjs → debugger-RS3RSAqs.mjs} +30 -13
  46. package/dist/definitions-BEoYofW5.mjs +47 -0
  47. package/dist/{definitions-bAhHQJq9.mjs → definitions-BRaefg3u.mjs} +11 -5
  48. package/dist/{definitions-DVGfrn7y.mjs → definitions-BbkvZkiv.mjs} +2 -2
  49. package/dist/definitions-BtWSHJ3o.mjs +17 -0
  50. package/dist/{definitions-BMfYXoNC.mjs → definitions-C1gCHO0i.mjs} +1 -1
  51. package/dist/{definitions-C1UvM5Iy.mjs → definitions-CDOg_b-l.mjs} +14 -2
  52. package/dist/definitions-CVPD9hzZ.mjs +54 -0
  53. package/dist/{definitions-Cke7zEb8.mjs → definitions-Cea8Lgl7.mjs} +1 -1
  54. package/dist/definitions-DAgIyjxM.mjs +10 -0
  55. package/dist/{definitions-B4rAvHNZ.mjs → definitions-DJA27nsL.mjs} +12 -9
  56. package/dist/{definitions-ClJLzsJQ.mjs → definitions-DKPFU3LW.mjs} +1 -1
  57. package/dist/{definitions-D3VsGcvz.mjs → definitions-DPRpZQ96.mjs} +7 -7
  58. package/dist/{definitions-B18eyf0B.mjs → definitions-DUE5gmdn.mjs} +1 -1
  59. package/dist/definitions-DYVjOtxa.mjs +26 -0
  60. package/dist/{definitions-BB_4jnmy.mjs → definitions-DcYLVLCo.mjs} +1 -1
  61. package/dist/{definitions-Beid2EB3.mjs → definitions-Pp5LI2H4.mjs} +1 -1
  62. package/dist/definitions-j9KdHVNR.mjs +14 -0
  63. package/dist/definitions-uzkjBwa7.mjs +258 -0
  64. package/dist/{definitions-Cq-zroAU.mjs → definitions-va-AnLuQ.mjs} +4 -4
  65. package/dist/{encoding-Bvz5jLRv.mjs → encoding-DJeqHmpd.mjs} +18 -4
  66. package/dist/{evidence-graph-bridge-C_fv9PuC.mjs → evidence-graph-bridge-DcYizFk2.mjs} +1 -0
  67. package/dist/{factory-DxlGh9Xf.mjs → factory-C90tBff6.mjs} +6 -6
  68. package/dist/flat-target-session-Dgax2Cy3.mjs +29 -0
  69. package/dist/{graphql-DYWzJ29s.mjs → graphql-CoHrhweh.mjs} +205 -34
  70. package/dist/{handlers-C67ktuRN.mjs → handlers-4jmR0nMs.mjs} +220 -32
  71. package/dist/{handlers-DlCJN4Td.mjs → handlers-BAHPxcch.mjs} +122 -90
  72. package/dist/{handlers-9sAbfIg-.mjs → handlers-BOs9b907.mjs} +849 -801
  73. package/dist/{handlers-DxGIq15_2.mjs → handlers-BWXEy6ef.mjs} +16 -16
  74. package/dist/{handlers-tB9Mp9ZK.mjs → handlers-Bndn6QvE.mjs} +31 -4
  75. package/dist/{handlers-CTsDAO6p.mjs → handlers-BqC4bD4s.mjs} +1 -1
  76. package/dist/{handlers-C87g8oCe.mjs → handlers-BtYq60bM2.mjs} +1 -1
  77. package/dist/{handlers-DeLOCd5m.mjs → handlers-BzgcB4iv.mjs} +17 -17
  78. package/dist/{handlers-Cgyg6c0U.mjs → handlers-CRyRWj2b.mjs} +237 -23
  79. package/dist/{handlers-U6L4xhuF.mjs → handlers-CVv2H1uq.mjs} +24 -17
  80. package/dist/{handlers-tiy7EIBp.mjs → handlers-Dl5a7JS4.mjs} +3 -3
  81. package/dist/{handlers-D6j6yka7.mjs → handlers-Dx2d7jt7.mjs} +1893 -1480
  82. package/dist/{handlers-Bl8zkwz1.mjs → handlers-Dz9PYsCa.mjs} +95 -6
  83. package/dist/handlers-HujRKC3b.mjs +661 -0
  84. package/dist/{handlers.impl-DS0d9fUw.mjs → handlers.impl-XWXkQfyi.mjs} +70 -24
  85. package/dist/{hooks-CzCWByww.mjs → hooks-B1B8NRHL.mjs} +3 -3
  86. package/dist/index.mjs +154 -144
  87. package/dist/{maintenance-P7ePRXQC.mjs → maintenance-PRMkLVRW.mjs} +35 -30
  88. package/dist/manifest-67Bok-Si.mjs +58 -0
  89. package/dist/{manifest-B3QVVeBS.mjs → manifest-6lNTMZAB2.mjs} +33 -28
  90. package/dist/manifest-B2duEHiH.mjs +90 -0
  91. package/dist/manifest-B6EY9Vm8.mjs +57 -0
  92. package/dist/{manifest-gZ4s_UtG.mjs → manifest-B6nKSbyY.mjs} +32 -33
  93. package/dist/{manifest-2ToTpjv8.mjs → manifest-BL8AQNPF.mjs} +31 -31
  94. package/dist/{manifest-DzwvxPJX.mjs → manifest-BSZvJJmV.mjs} +23 -14
  95. package/dist/{manifest-Sc_0JQ13.mjs → manifest-BU7qzUyX.mjs} +23 -23
  96. package/dist/{manifest-CT7zZBV1.mjs → manifest-Bl62e8WK.mjs} +24 -23
  97. package/dist/manifest-Bo5cXjdt.mjs +82 -0
  98. package/dist/manifest-BpS4gtUK.mjs +1347 -0
  99. package/dist/manifest-Bv65_e2W.mjs +101 -0
  100. package/dist/manifest-BytNIF4Z.mjs +117 -0
  101. package/dist/{manifest-BqrQ4Tpj.mjs → manifest-C-xtsjS3.mjs} +23 -23
  102. package/dist/{manifest-NXctwWQq.mjs → manifest-CDYl7OhA.mjs} +36 -38
  103. package/dist/manifest-CRZ3xmkD.mjs +61 -0
  104. package/dist/manifest-CoW6u4Tp.mjs +132 -0
  105. package/dist/manifest-Cq5zN_8A.mjs +50 -0
  106. package/dist/{manifest-CAhOuvSl.mjs → manifest-D7YZM_2e.mjs} +75 -85
  107. package/dist/{manifest-DCyjf4n2.mjs → manifest-DE_VrAeQ.mjs} +27 -7
  108. package/dist/manifest-DGsXSCpT.mjs +39 -0
  109. package/dist/{manifest-BB2J8IMJ.mjs → manifest-DJ2vfEuW.mjs} +48 -41
  110. package/dist/{manifest-3g71z6Bg.mjs → manifest-DPXDYhEu.mjs} +26 -25
  111. package/dist/manifest-Dd4fQb0a.mjs +322 -0
  112. package/dist/{manifest-CXsRWjjI.mjs → manifest-Deq6opGg.mjs} +95 -96
  113. package/dist/{manifest-C9RT5nk32.mjs → manifest-DfJTafJK.mjs} +14 -11
  114. package/dist/manifest-DgOdgN_j.mjs +50 -0
  115. package/dist/{manifest-BmtZzQiQ2.mjs → manifest-DlbMW4v4.mjs} +17 -15
  116. package/dist/{manifest-DrbmZcFl2.mjs → manifest-DmVfbH0w.mjs} +212 -91
  117. package/dist/manifest-Dog6Ddjr.mjs +109 -0
  118. package/dist/manifest-DvgU5FWb.mjs +58 -0
  119. package/dist/manifest-HsfDBs7j.mjs +50 -0
  120. package/dist/manifest-I8oQHvCG.mjs +186 -0
  121. package/dist/manifest-NvH_a-av.mjs +786 -0
  122. package/dist/{manifest-Dh8WBmEW.mjs → manifest-cEJU1v0Z.mjs} +24 -24
  123. package/dist/manifest-wOl5XLB12.mjs +112 -0
  124. package/dist/{modules-C184v-S9.mjs → modules-tZozf0LQ.mjs} +130 -860
  125. package/dist/{mojo-ipc-B_H61Afw.mjs → mojo-ipc-DXNEXEqb.mjs} +141 -26
  126. package/dist/{network-671Cw6hV.mjs → network-CPVvwvFg.mjs} +1329 -823
  127. package/dist/{outputPaths-B1uGmrWZ.mjs → outputPaths-um7lCRY3.mjs} +4 -8
  128. package/dist/{platform-WmNn8Sxb.mjs → platform-CYeFoTWp.mjs} +101 -10
  129. package/dist/{process-QcbIy5Zq.mjs → process-BTbgcVc6.mjs} +251 -346
  130. package/dist/{proxy-DqNs0bAd.mjs → proxy-r8YN6nP1.mjs} +30 -8
  131. package/dist/{registry-D-6e18lB.mjs → registry-Bl8ZQW61.mjs} +3 -3
  132. package/dist/{response-BQVP-xUn.mjs → response-CWhh2aLo.mjs} +7 -1
  133. package/dist/{shared-state-board-DV-dpHFJ.mjs → shared-state-board-BoZnSoj-.mjs} +2 -2
  134. package/dist/{sourcemap-Dq8ez8vS.mjs → sourcemap-BIDHUVXy.mjs} +350 -66
  135. package/dist/{streaming-BUQ0VJsg.mjs → streaming-Dal6utPp.mjs} +13 -13
  136. package/dist/{tool-builder-DCbIC5Eo.mjs → tool-builder-BHJp32mV.mjs} +1 -1
  137. package/dist/{transform-CiYJfNX0.mjs → transform-DRVgGG90.mjs} +18 -14
  138. package/dist/wasm-BYx5UOeG.mjs +1044 -0
  139. package/dist/webcrack-Be0_FccV.mjs +747 -0
  140. package/dist/{workflow-f3xJOcjx.mjs → workflow-BpuKEtvn.mjs} +8 -8
  141. package/package.json +76 -43
  142. package/dist/TraceRecorder-DgxyVbdQ.mjs +0 -519
  143. package/dist/analysis-CL9uACt9.mjs +0 -463
  144. package/dist/bind-helpers-xFfRF-qm.mjs +0 -22
  145. package/dist/definitions-6M-eejaT.mjs +0 -53
  146. package/dist/definitions-B3QdlrHv.mjs +0 -34
  147. package/dist/definitions-CXEI7QC72.mjs +0 -216
  148. package/dist/definitions-C_4r7Fo-2.mjs +0 -14
  149. package/dist/definitions-CkFDALoa.mjs +0 -26
  150. package/dist/definitions-Cy3Sl6gV.mjs +0 -34
  151. package/dist/definitions-LKpC3-nL.mjs +0 -9
  152. package/dist/handlers-DdFzXLvF.mjs +0 -446
  153. package/dist/manifest-82baTv4U.mjs +0 -45
  154. package/dist/manifest-BKbgbSiY.mjs +0 -60
  155. package/dist/manifest-Bcf-TJzH.mjs +0 -848
  156. package/dist/manifest-Bnd7kqEY.mjs +0 -55
  157. package/dist/manifest-BqQX6OQC2.mjs +0 -65
  158. package/dist/manifest-Br4RPFt5.mjs +0 -370
  159. package/dist/manifest-C5qDjysN.mjs +0 -107
  160. package/dist/manifest-CBYWCUBJ.mjs +0 -51
  161. package/dist/manifest-CFADCRa1.mjs +0 -37
  162. package/dist/manifest-CQVhavRF.mjs +0 -114
  163. package/dist/manifest-CV12bcrF.mjs +0 -121
  164. package/dist/manifest-CZLUCfG02.mjs +0 -95
  165. package/dist/manifest-D6phHKFd.mjs +0 -131
  166. package/dist/manifest-DHsnKgP6.mjs +0 -60
  167. package/dist/manifest-Df_dliIe.mjs +0 -55
  168. package/dist/manifest-DhKRAT8_.mjs +0 -92
  169. package/dist/manifest-DlpTj4ic2.mjs +0 -193
  170. package/dist/manifest-DuwHjUa5.mjs +0 -70
  171. package/dist/manifest-qSleDqdO.mjs +0 -1023
  172. package/dist/wasm-DQTnHDs4.mjs +0 -531
  173. /package/dist/{CacheAdapters-CDe5WPSV.mjs → CacheAdapters-jJFy20G-.mjs} +0 -0
  174. /package/dist/{DarwinAPI-BNPxu0RH.mjs → DarwinAPI-ETyy0xyo.mjs} +0 -0
  175. /package/dist/{EventBus-DgPmwpeu.mjs → EventBus-DFKvADm3.mjs} +0 -0
  176. /package/dist/{EvidenceGraphBridge-SFesNera.mjs → EvidenceGraphBridge-318Oi0Lf.mjs} +0 -0
  177. /package/dist/{FingerprintManager-gzWtkKuf.mjs → FingerprintManager-BN4UQWnX.mjs} +0 -0
  178. /package/dist/{PrerequisiteError-Dl33Svkz.mjs → PrerequisiteError-TuyZIs6n.mjs} +0 -0
  179. /package/dist/{ReverseEvidenceGraph-Dlsk94LC.mjs → ReverseEvidenceGraph-C02-gXOh.mjs} +0 -0
  180. /package/dist/{StealthVerifier-Bo4T3bz8.mjs → StealthVerifier-BWmPgQsv.mjs} +0 -0
  181. /package/dist/{VersionDetector-CwVLVdDM.mjs → VersionDetector-K3V4vGsw.mjs} +0 -0
  182. /package/dist/{betterSqlite3-0pqusHHH.mjs → betterSqlite3-DLSBZodi.mjs} +0 -0
  183. /package/dist/{concurrency-Bt0yv1kJ.mjs → concurrency-Drev_Vz9.mjs} +0 -0
  184. /package/dist/{formatAddress-DVkj9kpI.mjs → formatAddress-nnMvEohD.mjs} +0 -0
  185. /package/dist/{parse-args-BlRjqlkL.mjs → parse-args-B4cY5Vx5.mjs} +0 -0
  186. /package/dist/{ssrf-policy-ZaUfvhq7.mjs → ssrf-policy-Dsqd-DTX.mjs} +0 -0
  187. /package/dist/{types-CPhOReNX.mjs → types-DDBWs9UP.mjs} +0 -0
@@ -0,0 +1,322 @@
1
+ import { n as toolLookup, t as ensureBrowserCore } from "./registry-Bl8ZQW61.mjs";
2
+ import { n as defineMethodRegistrations } from "./bind-helpers-ClV34xdn.mjs";
3
+ import { n as advancedBrowserToolDefinitions, t as browserTools } from "./definitions-BRaefg3u.mjs";
4
+ //#region src/server/domains/browser/manifest.ts
5
+ const DOMAIN = "browser";
6
+ const DEP_KEY = "browserHandlers";
7
+ const registrations = defineMethodRegistrations({
8
+ domain: DOMAIN,
9
+ depKey: DEP_KEY,
10
+ lookup: toolLookup([...browserTools, ...advancedBrowserToolDefinitions]),
11
+ entries: [
12
+ {
13
+ tool: "get_detailed_data",
14
+ method: "handleGetDetailedData"
15
+ },
16
+ {
17
+ tool: "browser_attach",
18
+ method: "handleBrowserAttach"
19
+ },
20
+ {
21
+ tool: "browser_list_tabs",
22
+ method: "handleBrowserListTabs"
23
+ },
24
+ {
25
+ tool: "browser_list_cdp_targets",
26
+ method: "handleBrowserListCdpTargets"
27
+ },
28
+ {
29
+ tool: "browser_select_tab",
30
+ method: "handleBrowserSelectTab"
31
+ },
32
+ {
33
+ tool: "browser_attach_cdp_target",
34
+ method: "handleBrowserAttachCdpTarget"
35
+ },
36
+ {
37
+ tool: "browser_detach_cdp_target",
38
+ method: "handleBrowserDetachCdpTarget"
39
+ },
40
+ {
41
+ tool: "browser_evaluate_cdp_target",
42
+ method: "handleBrowserEvaluateCdpTarget"
43
+ },
44
+ {
45
+ tool: "browser_launch",
46
+ method: "handleBrowserLaunch"
47
+ },
48
+ {
49
+ tool: "browser_close",
50
+ method: "handleBrowserClose"
51
+ },
52
+ {
53
+ tool: "browser_status",
54
+ method: "handleBrowserStatus"
55
+ },
56
+ {
57
+ tool: "page_navigate",
58
+ method: "handlePageNavigate"
59
+ },
60
+ {
61
+ tool: "page_reload",
62
+ method: "handlePageReload"
63
+ },
64
+ {
65
+ tool: "page_back",
66
+ method: "handlePageBack"
67
+ },
68
+ {
69
+ tool: "page_forward",
70
+ method: "handlePageForward"
71
+ },
72
+ {
73
+ tool: "page_click",
74
+ method: "handlePageClick"
75
+ },
76
+ {
77
+ tool: "page_type",
78
+ method: "handlePageType"
79
+ },
80
+ {
81
+ tool: "page_select",
82
+ method: "handlePageSelect"
83
+ },
84
+ {
85
+ tool: "page_hover",
86
+ method: "handlePageHover"
87
+ },
88
+ {
89
+ tool: "page_scroll",
90
+ method: "handlePageScroll"
91
+ },
92
+ {
93
+ tool: "page_wait_for_selector",
94
+ method: "handlePageWaitForSelector"
95
+ },
96
+ {
97
+ tool: "page_evaluate",
98
+ method: "handlePageEvaluate"
99
+ },
100
+ {
101
+ tool: "page_screenshot",
102
+ method: "handlePageScreenshot"
103
+ },
104
+ {
105
+ tool: "get_all_scripts",
106
+ method: "handleGetAllScripts"
107
+ },
108
+ {
109
+ tool: "get_script_source",
110
+ method: "handleGetScriptSource"
111
+ },
112
+ {
113
+ tool: "console_monitor",
114
+ method: "handleConsoleMonitor"
115
+ },
116
+ {
117
+ tool: "console_get_logs",
118
+ method: "handleConsoleGetLogs"
119
+ },
120
+ {
121
+ tool: "console_execute",
122
+ method: "handleConsoleExecute"
123
+ },
124
+ {
125
+ tool: "page_inject_script",
126
+ method: "handlePageInjectScript"
127
+ },
128
+ {
129
+ tool: "page_cookies",
130
+ method: "handlePageCookiesDispatch"
131
+ },
132
+ {
133
+ tool: "page_set_viewport",
134
+ method: "handlePageSetViewport"
135
+ },
136
+ {
137
+ tool: "page_emulate_device",
138
+ method: "handlePageEmulateDevice"
139
+ },
140
+ {
141
+ tool: "page_local_storage",
142
+ method: "handlePageLocalStorageDispatch"
143
+ },
144
+ {
145
+ tool: "page_press_key",
146
+ method: "handlePagePressKey"
147
+ },
148
+ {
149
+ tool: "captcha_detect",
150
+ method: "handleCaptchaDetect"
151
+ },
152
+ {
153
+ tool: "captcha_wait",
154
+ method: "handleCaptchaWait"
155
+ },
156
+ {
157
+ tool: "captcha_config",
158
+ method: "handleCaptchaConfig"
159
+ },
160
+ {
161
+ tool: "stealth_inject",
162
+ method: "handleStealthInject"
163
+ },
164
+ {
165
+ tool: "stealth_set_user_agent",
166
+ method: "handleStealthSetUserAgent"
167
+ },
168
+ {
169
+ tool: "stealth_configure_jitter",
170
+ method: "handleStealthConfigureJitter"
171
+ },
172
+ {
173
+ tool: "stealth_generate_fingerprint",
174
+ method: "handleStealthGenerateFingerprint"
175
+ },
176
+ {
177
+ tool: "stealth_verify",
178
+ method: "handleStealthVerify"
179
+ },
180
+ {
181
+ tool: "camoufox_geolocation",
182
+ method: "handleCamoufoxGeolocation"
183
+ },
184
+ {
185
+ tool: "camoufox_server",
186
+ method: "handleCamoufoxServerDispatch"
187
+ },
188
+ {
189
+ tool: "framework_state_extract",
190
+ method: "handleFrameworkStateExtract"
191
+ },
192
+ {
193
+ tool: "indexeddb_dump",
194
+ method: "handleIndexedDBDump"
195
+ },
196
+ {
197
+ tool: "js_heap_search",
198
+ method: "handleJSHeapSearch"
199
+ },
200
+ {
201
+ tool: "tab_workflow",
202
+ method: "handleTabWorkflow"
203
+ },
204
+ {
205
+ tool: "human_mouse",
206
+ method: "handleHumanMouse"
207
+ },
208
+ {
209
+ tool: "human_scroll",
210
+ method: "handleHumanScroll"
211
+ },
212
+ {
213
+ tool: "human_typing",
214
+ method: "handleHumanTyping"
215
+ },
216
+ {
217
+ tool: "captcha_solver_capabilities",
218
+ method: "handleCaptchaSolverCapabilities"
219
+ },
220
+ {
221
+ tool: "captcha_vision_solve",
222
+ method: "handleCaptchaVisionSolve"
223
+ },
224
+ {
225
+ tool: "widget_challenge_solve",
226
+ method: "handleWidgetChallengeSolve"
227
+ },
228
+ {
229
+ tool: "browser_jsdom_parse",
230
+ method: "handleJsdomParse"
231
+ },
232
+ {
233
+ tool: "browser_jsdom_query",
234
+ method: "handleJsdomQuery"
235
+ },
236
+ {
237
+ tool: "browser_jsdom_execute",
238
+ method: "handleJsdomExecute"
239
+ },
240
+ {
241
+ tool: "browser_jsdom_serialize",
242
+ method: "handleJsdomSerialize"
243
+ },
244
+ {
245
+ tool: "browser_jsdom_cookies",
246
+ method: "handleJsdomCookies"
247
+ }
248
+ ]
249
+ });
250
+ async function ensure(ctx) {
251
+ const { BrowserToolHandlers } = await import("./browser-Dx3_S2cG.mjs");
252
+ await ensureBrowserCore(ctx);
253
+ if (!ctx.browserHandlers) ctx.browserHandlers = new BrowserToolHandlers(ctx.collector, ctx.pageController, ctx.scriptManager, ctx.consoleMonitor, ctx.eventBus);
254
+ return ctx.browserHandlers;
255
+ }
256
+ const manifest = {
257
+ kind: "domain-manifest",
258
+ version: 1,
259
+ domain: DOMAIN,
260
+ depKey: DEP_KEY,
261
+ profiles: ["workflow", "full"],
262
+ ensure,
263
+ workflowRule: {
264
+ patterns: [/(browser|page|navigate|screenshot|click|type|scrape)/i, /(浏览器|页面|导航|截图|点击|输入|爬取)/i],
265
+ priority: 90,
266
+ tools: [
267
+ "page_navigate",
268
+ "page_evaluate",
269
+ "browser_jsdom_parse",
270
+ "console_get_logs",
271
+ "page_click",
272
+ "page_type",
273
+ "page_screenshot"
274
+ ],
275
+ hint: "Browser automation workflow: bootstrap browser/page state -> inspect page state -> interact -> capture visual evidence only when needed"
276
+ },
277
+ prerequisites: {
278
+ page_navigate: [{
279
+ condition: "Browser must be launched",
280
+ fix: "Call browser_launch or browser_attach first"
281
+ }],
282
+ page_click: [{
283
+ condition: "Browser must be launched",
284
+ fix: "Call browser_launch or browser_attach first"
285
+ }],
286
+ page_type: [{
287
+ condition: "Browser must be launched",
288
+ fix: "Call browser_launch or browser_attach first"
289
+ }],
290
+ page_screenshot: [{
291
+ condition: "Browser must be launched",
292
+ fix: "Call browser_launch or browser_attach first"
293
+ }],
294
+ page_evaluate: [{
295
+ condition: "Browser must be launched",
296
+ fix: "Call browser_launch or browser_attach first"
297
+ }],
298
+ page_hover: [{
299
+ condition: "Browser must be launched",
300
+ fix: "Call browser_launch or browser_attach first"
301
+ }],
302
+ page_back: [{
303
+ condition: "Browser must be launched",
304
+ fix: "Call browser_launch or browser_attach first"
305
+ }],
306
+ page_forward: [{
307
+ condition: "Browser must be launched",
308
+ fix: "Call browser_launch or browser_attach first"
309
+ }],
310
+ page_reload: [{
311
+ condition: "Browser must be launched",
312
+ fix: "Call browser_launch or browser_attach first"
313
+ }],
314
+ page_scroll: [{
315
+ condition: "Browser must be launched",
316
+ fix: "Call browser_launch or browser_attach first"
317
+ }]
318
+ },
319
+ registrations
320
+ };
321
+ //#endregion
322
+ export { manifest as default };
@@ -1,89 +1,90 @@
1
- import { n as toolLookup } from "./registry-D-6e18lB.mjs";
2
- import { t as bindByDepKey } from "./bind-helpers-xFfRF-qm.mjs";
3
- import { t as tool } from "./tool-builder-DCbIC5Eo.mjs";
1
+ import { n as toolLookup } from "./registry-Bl8ZQW61.mjs";
2
+ import { n as defineMethodRegistrations } from "./bind-helpers-ClV34xdn.mjs";
3
+ import { t as tool } from "./tool-builder-BHJp32mV.mjs";
4
4
  //#region src/server/domains/cross-domain/definitions.ts
5
5
  const crossDomainToolDefinitions = [
6
- tool("cross_domain_capabilities", (t) => t.desc("List cross-domain capabilities, supported v5.0 domains, and available mission workflows.").query()),
7
- tool("cross_domain_suggest_workflow", (t) => t.desc("Suggest the best cross-domain workflow for a reverse-engineering goal.").string("goal", "High-level task goal or problem statement to classify").boolean("preferAvailableOnly", "Prefer workflows whose dependent domains are currently enabled", { default: true }).required("goal").query()),
8
- tool("cross_domain_health", (t) => t.desc("Report cross-domain health, enabled v5.0 domains, and evidence-graph availability.").query()),
9
- tool("cross_domain_correlate_all", (t) => t.desc("Ingest artifacts from V8, network, canvas, syscall, mojo, and binary domains into one shared evidence graph with optional cross-links.").array("v8Objects", {
6
+ tool("cross_domain_capabilities", (t) => t.desc("List cross-domain capabilities and workflows.").query()),
7
+ tool("cross_domain_suggest_workflow", (t) => t.desc("Suggest a cross-domain workflow for a goal.").string("goal", "High-level task goal or problem statement to classify").boolean("preferAvailableOnly", "Prefer workflows whose dependent domains are currently enabled", { default: true }).required("goal").query()),
8
+ tool("cross_domain_health", (t) => t.desc("Report cross-domain health.").query()),
9
+ tool("cross_domain_correlate_all", (t) => t.desc("Run the built-in skia, mojo, syscall, and binary correlators and merge the results into the shared evidence graph.").prop("sceneTree", {
10
+ type: "object",
11
+ description: "Skia scene tree with layers and drawCommands",
12
+ additionalProperties: true
13
+ }).array("jsObjects", {
14
+ type: "object",
15
+ additionalProperties: true
16
+ }, "JS object descriptors for Skia correlation").array("mojoMessages", {
10
17
  type: "object",
11
18
  properties: {
12
- address: { type: "string" },
13
- size: { type: "number" },
14
- type: { type: "string" },
15
- name: { type: "string" }
19
+ interface: { type: "string" },
20
+ method: { type: "string" },
21
+ timestamp: { type: "number" },
22
+ messageId: { type: "string" }
16
23
  },
17
24
  required: [
18
- "address",
19
- "size",
20
- "type",
21
- "name"
25
+ "interface",
26
+ "method",
27
+ "timestamp",
28
+ "messageId"
22
29
  ]
23
- }, "Optional V8 heap objects to import first").array("networkRequests", {
30
+ }, "Mojo messages for MOJO-03 correlation").array("cdpEvents", {
24
31
  type: "object",
25
32
  properties: {
26
- url: { type: "string" },
27
- method: { type: "string" },
28
- headers: {
29
- type: "object",
30
- additionalProperties: { type: "string" }
31
- },
32
- initiatorHeapIndex: { type: "number" }
33
- },
34
- required: ["url", "method"]
35
- }, "Optional network requests. Use initiatorHeapIndex to link a request to v8Objects[index].").array("canvasNodes", {
36
- type: "object",
37
- properties: {
38
- nodeId: { type: "string" },
39
- type: { type: "string" },
40
- label: { type: "string" },
41
- creatorHeapIndex: { type: "number" }
33
+ eventType: { type: "string" },
34
+ timestamp: { type: "number" },
35
+ url: { type: "string" }
42
36
  },
43
- required: [
44
- "nodeId",
45
- "type",
46
- "label"
47
- ]
48
- }, "Optional canvas nodes. Use creatorHeapIndex to link to v8Objects[index].").array("binarySymbols", {
37
+ required: ["eventType", "timestamp"]
38
+ }, "CDP events for MOJO-03 correlation").array("networkRequests", {
49
39
  type: "object",
50
40
  properties: {
51
- name: { type: "string" },
52
- address: { type: "string" },
53
- module: { type: "string" }
41
+ requestId: { type: "string" },
42
+ url: { type: "string" },
43
+ timestamp: { type: "number" }
54
44
  },
55
45
  required: [
56
- "name",
57
- "address",
58
- "module"
46
+ "requestId",
47
+ "url",
48
+ "timestamp"
59
49
  ]
60
- }, "Optional binary symbols to import before syscall correlation.").array("syscallEvents", {
50
+ }, "Network requests for MOJO-03 correlation").array("syscallEvents", {
61
51
  type: "object",
62
52
  properties: {
63
- syscall: { type: "string" },
64
53
  pid: { type: "number" },
65
- timestamp: { type: "number" },
66
- jsFunctionSymbolIndex: { type: "number" }
54
+ tid: { type: "number" },
55
+ syscallName: { type: "string" },
56
+ timestamp: { type: "number" }
67
57
  },
68
58
  required: [
69
- "syscall",
70
59
  "pid",
60
+ "tid",
61
+ "syscallName",
71
62
  "timestamp"
72
63
  ]
73
- }, "Optional syscall events. Use jsFunctionSymbolIndex to link to binarySymbols[index].").array("mojoMessages", {
64
+ }, "Syscall events for SYSCALL-02 correlation").array("jsStacks", {
74
65
  type: "object",
75
66
  properties: {
76
- interfaceName: { type: "string" },
77
- messageType: { type: "string" },
78
- payload: { description: "Any JSON-serializable payload object" },
79
- sourceRequestIndex: { type: "number" }
67
+ threadId: { type: "number" },
68
+ timestamp: { type: "number" },
69
+ frames: {
70
+ type: "array",
71
+ items: {
72
+ type: "object",
73
+ properties: { functionName: { type: "string" } },
74
+ required: ["functionName"]
75
+ }
76
+ }
80
77
  },
81
78
  required: [
82
- "interfaceName",
83
- "messageType",
84
- "payload"
79
+ "threadId",
80
+ "timestamp",
81
+ "frames"
85
82
  ]
86
- }, "Optional Mojo IPC messages. Use sourceRequestIndex to link to networkRequests[index].")),
83
+ }, "JS stacks for SYSCALL-02 correlation").prop("ghidraOutput", {
84
+ type: "object",
85
+ description: "Binary analysis output with moduleName and functions",
86
+ additionalProperties: true
87
+ })),
87
88
  tool("cross_domain_evidence_export", (t) => t.desc("Export the shared cross-domain evidence graph as JSON.").query()),
88
89
  tool("cross_domain_evidence_stats", (t) => t.desc("Get node and edge statistics for the shared cross-domain evidence graph.").query())
89
90
  ];
@@ -91,12 +92,41 @@ const crossDomainToolDefinitions = [
91
92
  //#region src/server/domains/cross-domain/manifest.ts
92
93
  const DOMAIN = "cross-domain";
93
94
  const DEP_KEY = "crossDomainHandlers";
94
- const lookupTool = toolLookup(crossDomainToolDefinitions);
95
- const bindTool = (invoke) => bindByDepKey(DEP_KEY, invoke);
95
+ const registrations = defineMethodRegistrations({
96
+ domain: DOMAIN,
97
+ depKey: DEP_KEY,
98
+ lookup: toolLookup(crossDomainToolDefinitions),
99
+ entries: [
100
+ {
101
+ tool: "cross_domain_capabilities",
102
+ method: "handleCapabilities"
103
+ },
104
+ {
105
+ tool: "cross_domain_suggest_workflow",
106
+ method: "handleSuggestWorkflow"
107
+ },
108
+ {
109
+ tool: "cross_domain_health",
110
+ method: "handleHealth"
111
+ },
112
+ {
113
+ tool: "cross_domain_correlate_all",
114
+ method: "handleCorrelateAll"
115
+ },
116
+ {
117
+ tool: "cross_domain_evidence_export",
118
+ method: "handleEvidenceExport"
119
+ },
120
+ {
121
+ tool: "cross_domain_evidence_stats",
122
+ method: "handleEvidenceStats"
123
+ }
124
+ ]
125
+ });
96
126
  async function ensure(ctx) {
97
- const { ReverseEvidenceGraph } = await import("./ReverseEvidenceGraph-Dlsk94LC.mjs").then((n) => n.t);
98
- const { CrossDomainEvidenceBridge } = await import("./evidence-graph-bridge-C_fv9PuC.mjs");
99
- const { CrossDomainWorkflowClassifier, CrossDomainHandlers } = await import("./handlers-DlCJN4Td.mjs");
127
+ const { ReverseEvidenceGraph } = await import("./ReverseEvidenceGraph-C02-gXOh.mjs").then((n) => n.t);
128
+ const { CrossDomainEvidenceBridge } = await import("./evidence-graph-bridge-DcYizFk2.mjs");
129
+ const { CrossDomainWorkflowClassifier, CrossDomainHandlers } = await import("./handlers-BAHPxcch.mjs");
100
130
  const existing = ctx.getDomainInstance(DEP_KEY);
101
131
  if (existing) return existing;
102
132
  let graph = ctx.getDomainInstance("evidenceGraph");
@@ -182,43 +212,12 @@ const manifest = {
182
212
  },
183
213
  {
184
214
  from: "cross_domain_correlate_all",
185
- to: "evidence_export_json",
215
+ to: "evidence_export",
186
216
  relation: "precedes",
187
217
  weight: .7
188
218
  }
189
219
  ],
190
- registrations: [
191
- {
192
- tool: lookupTool("cross_domain_capabilities"),
193
- domain: DOMAIN,
194
- bind: bindTool((handlers, args) => handlers.handleCapabilities(args))
195
- },
196
- {
197
- tool: lookupTool("cross_domain_suggest_workflow"),
198
- domain: DOMAIN,
199
- bind: bindTool((handlers, args) => handlers.handleSuggestWorkflow(args))
200
- },
201
- {
202
- tool: lookupTool("cross_domain_health"),
203
- domain: DOMAIN,
204
- bind: bindTool((handlers) => handlers.handleHealth())
205
- },
206
- {
207
- tool: lookupTool("cross_domain_correlate_all"),
208
- domain: DOMAIN,
209
- bind: bindTool((handlers, args) => handlers.handleCorrelateAll(args))
210
- },
211
- {
212
- tool: lookupTool("cross_domain_evidence_export"),
213
- domain: DOMAIN,
214
- bind: bindTool((handlers) => handlers.handleEvidenceExport())
215
- },
216
- {
217
- tool: lookupTool("cross_domain_evidence_stats"),
218
- domain: DOMAIN,
219
- bind: bindTool((handlers) => handlers.handleEvidenceStats())
220
- }
221
- ]
220
+ registrations
222
221
  };
223
222
  //#endregion
224
223
  export { manifest as default };
@@ -1,16 +1,23 @@
1
- import { n as toolLookup } from "./registry-D-6e18lB.mjs";
2
- import { t as bindByDepKey } from "./bind-helpers-xFfRF-qm.mjs";
3
- import { t as tool } from "./tool-builder-DCbIC5Eo.mjs";
1
+ import { n as toolLookup } from "./registry-Bl8ZQW61.mjs";
2
+ import { n as defineMethodRegistrations } from "./bind-helpers-ClV34xdn.mjs";
3
+ import { t as tool } from "./tool-builder-BHJp32mV.mjs";
4
4
  //#region src/server/domains/sandbox/definitions.ts
5
5
  const sandboxTools = [tool("execute_sandbox_script", (t) => t.desc("Execute JavaScript in a WASM-isolated QuickJS sandbox with optional tool brid...").string("code", "JavaScript source code to execute inside the sandbox").string("sessionId", "Session ID for scratchpad persistence across executions").number("timeoutMs", "Execution timeout in ms", { default: 1e3 }).boolean("autoCorrect", "Retry failed scripts up to 2 times with error context", { default: false }).required("code"))];
6
6
  //#endregion
7
7
  //#region src/server/domains/sandbox/manifest.ts
8
8
  const DOMAIN = "sandbox";
9
9
  const DEP_KEY = "sandboxHandlers";
10
- const t = toolLookup(sandboxTools);
11
- const b = (invoke) => bindByDepKey(DEP_KEY, invoke);
10
+ const registrations = defineMethodRegistrations({
11
+ domain: DOMAIN,
12
+ depKey: DEP_KEY,
13
+ lookup: toolLookup(sandboxTools),
14
+ entries: [{
15
+ tool: "execute_sandbox_script",
16
+ method: "handleExecuteSandboxScript"
17
+ }]
18
+ });
12
19
  async function ensure(ctx) {
13
- const { SandboxToolHandlers } = await import("./handlers-DxGIq15_2.mjs");
20
+ const { SandboxToolHandlers } = await import("./handlers-BWXEy6ef.mjs");
14
21
  const existing = ctx.getDomainInstance(DEP_KEY);
15
22
  if (existing) return existing;
16
23
  const handlers = new SandboxToolHandlers(ctx);
@@ -24,11 +31,7 @@ const manifest = {
24
31
  depKey: DEP_KEY,
25
32
  profiles: ["full"],
26
33
  ensure,
27
- registrations: [{
28
- tool: t("execute_sandbox_script"),
29
- domain: DOMAIN,
30
- bind: b((h, a) => h.handleExecuteSandboxScript(a))
31
- }]
34
+ registrations
32
35
  };
33
36
  //#endregion
34
37
  export { manifest as default };
@@ -0,0 +1,50 @@
1
+ import { n as toolLookup, t as ensureBrowserCore } from "./registry-Bl8ZQW61.mjs";
2
+ import { n as defineMethodRegistrations } from "./bind-helpers-ClV34xdn.mjs";
3
+ import { t as streamingTools } from "./definitions-DcYLVLCo.mjs";
4
+ //#region src/server/domains/streaming/manifest.ts
5
+ const DOMAIN = "streaming";
6
+ const DEP_KEY = "streamingHandlers";
7
+ const registrations = defineMethodRegistrations({
8
+ domain: DOMAIN,
9
+ depKey: DEP_KEY,
10
+ lookup: toolLookup(streamingTools),
11
+ entries: [
12
+ {
13
+ tool: "ws_monitor",
14
+ method: "handleWsMonitorDispatch"
15
+ },
16
+ {
17
+ tool: "ws_get_frames",
18
+ method: "handleWsGetFrames"
19
+ },
20
+ {
21
+ tool: "ws_get_connections",
22
+ method: "handleWsGetConnections"
23
+ },
24
+ {
25
+ tool: "sse_monitor_enable",
26
+ method: "handleSseMonitorEnable"
27
+ },
28
+ {
29
+ tool: "sse_get_events",
30
+ method: "handleSseGetEvents"
31
+ }
32
+ ]
33
+ });
34
+ async function ensure(ctx) {
35
+ const { StreamingToolHandlers } = await import("./streaming-Dal6utPp.mjs");
36
+ await ensureBrowserCore(ctx);
37
+ if (!ctx.streamingHandlers) ctx.streamingHandlers = new StreamingToolHandlers(ctx.collector);
38
+ return ctx.streamingHandlers;
39
+ }
40
+ const manifest = {
41
+ kind: "domain-manifest",
42
+ version: 1,
43
+ domain: DOMAIN,
44
+ depKey: DEP_KEY,
45
+ profiles: ["workflow", "full"],
46
+ ensure,
47
+ registrations
48
+ };
49
+ //#endregion
50
+ export { manifest as default };