@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
@@ -1,55 +0,0 @@
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 graphqlTools } from "./definitions-Beid2EB3.mjs";
4
- //#region src/server/domains/graphql/manifest.ts
5
- const DOMAIN = "graphql";
6
- const DEP_KEY = "graphqlHandlers";
7
- const t = toolLookup(graphqlTools);
8
- const b = (invoke) => bindByDepKey(DEP_KEY, invoke);
9
- async function ensure(ctx) {
10
- const { CodeCollector } = await import("./modules-C184v-S9.mjs").then((n) => n.t);
11
- const { GraphQLToolHandlers } = await import("./graphql-DYWzJ29s.mjs");
12
- if (!ctx.collector) {
13
- ctx.collector = new CodeCollector(ctx.config.puppeteer);
14
- ctx.registerCaches();
15
- }
16
- if (!ctx.graphqlHandlers) ctx.graphqlHandlers = new GraphQLToolHandlers(ctx.collector);
17
- return ctx.graphqlHandlers;
18
- }
19
- const manifest = {
20
- kind: "domain-manifest",
21
- version: 1,
22
- domain: DOMAIN,
23
- depKey: DEP_KEY,
24
- profiles: ["workflow", "full"],
25
- ensure,
26
- registrations: [
27
- {
28
- tool: t("call_graph_analyze"),
29
- domain: DOMAIN,
30
- bind: b((h, a) => h.handleCallGraphAnalyze(a))
31
- },
32
- {
33
- tool: t("script_replace_persist"),
34
- domain: DOMAIN,
35
- bind: b((h, a) => h.handleScriptReplacePersist(a))
36
- },
37
- {
38
- tool: t("graphql_introspect"),
39
- domain: DOMAIN,
40
- bind: b((h, a) => h.handleGraphqlIntrospect(a))
41
- },
42
- {
43
- tool: t("graphql_extract_queries"),
44
- domain: DOMAIN,
45
- bind: b((h, a) => h.handleGraphqlExtractQueries(a))
46
- },
47
- {
48
- tool: t("graphql_replay"),
49
- domain: DOMAIN,
50
- bind: b((h, a) => h.handleGraphqlReplay(a))
51
- }
52
- ]
53
- };
54
- //#endregion
55
- export { manifest as default };
@@ -1,65 +0,0 @@
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 PROXY_TOOLS } from "./definitions-C_4r7Fo-2.mjs";
4
- //#region src/server/domains/proxy/manifest.ts
5
- const DOMAIN = "proxy";
6
- const DEP_KEY = "proxyHandlers";
7
- const t = toolLookup(PROXY_TOOLS);
8
- const b = (invoke) => bindByDepKey(DEP_KEY, invoke);
9
- async function ensure(ctx) {
10
- const { ProxyHandlers } = await import("./proxy-DqNs0bAd.mjs");
11
- if (!ctx.proxyHandlers) ctx.proxyHandlers = new ProxyHandlers();
12
- return ctx.proxyHandlers;
13
- }
14
- const manifest = {
15
- kind: "domain-manifest",
16
- version: 1,
17
- domain: DOMAIN,
18
- depKey: DEP_KEY,
19
- profiles: ["full"],
20
- ensure,
21
- registrations: [
22
- {
23
- tool: t("proxy_start"),
24
- domain: DOMAIN,
25
- bind: b((h, a) => h.handleProxyStart(a))
26
- },
27
- {
28
- tool: t("proxy_stop"),
29
- domain: DOMAIN,
30
- bind: b((h, a) => h.handleProxyStop(a))
31
- },
32
- {
33
- tool: t("proxy_status"),
34
- domain: DOMAIN,
35
- bind: b((h, a) => h.handleProxyStatus(a))
36
- },
37
- {
38
- tool: t("proxy_export_ca"),
39
- domain: DOMAIN,
40
- bind: b((h, a) => h.handleProxyExportCa(a))
41
- },
42
- {
43
- tool: t("proxy_add_rule"),
44
- domain: DOMAIN,
45
- bind: b((h, a) => h.handleProxyAddRule(a))
46
- },
47
- {
48
- tool: t("proxy_get_requests"),
49
- domain: DOMAIN,
50
- bind: b((h, a) => h.handleProxyGetRequests(a))
51
- },
52
- {
53
- tool: t("proxy_clear_logs"),
54
- domain: DOMAIN,
55
- bind: b((h, a) => h.handleProxyClearLogs(a))
56
- },
57
- {
58
- tool: t("proxy_setup_adb_device"),
59
- domain: DOMAIN,
60
- bind: b((h, a) => h.handleProxySetupAdbDevice(a))
61
- }
62
- ]
63
- };
64
- //#endregion
65
- export { manifest as default };
@@ -1,370 +0,0 @@
1
- import { n as toolLookup, t as ensureBrowserCore } from "./registry-D-6e18lB.mjs";
2
- import { t as bindByDepKey } from "./bind-helpers-xFfRF-qm.mjs";
3
- import { n as advancedBrowserToolDefinitions, t as browserTools } from "./definitions-bAhHQJq9.mjs";
4
- //#region src/server/domains/browser/manifest.ts
5
- const DOMAIN = "browser";
6
- const DEP_KEY = "browserHandlers";
7
- const t = toolLookup([...browserTools, ...advancedBrowserToolDefinitions]);
8
- const b = (invoke) => bindByDepKey(DEP_KEY, invoke);
9
- async function ensure(ctx) {
10
- const { BrowserToolHandlers } = await import("./browser-BpOr5PEx.mjs");
11
- await ensureBrowserCore(ctx);
12
- if (!ctx.browserHandlers) ctx.browserHandlers = new BrowserToolHandlers(ctx.collector, ctx.pageController, ctx.scriptManager, ctx.consoleMonitor, ctx.eventBus);
13
- return ctx.browserHandlers;
14
- }
15
- const manifest = {
16
- kind: "domain-manifest",
17
- version: 1,
18
- domain: DOMAIN,
19
- depKey: DEP_KEY,
20
- profiles: ["workflow", "full"],
21
- ensure,
22
- workflowRule: {
23
- patterns: [/(browser|page|navigate|screenshot|click|type|scrape)/i, /(浏览器|页面|导航|截图|点击|输入|爬取)/i],
24
- priority: 90,
25
- tools: [
26
- "page_navigate",
27
- "page_screenshot",
28
- "page_click",
29
- "page_type",
30
- "page_evaluate"
31
- ],
32
- hint: "Browser automation workflow: bootstrap browser/page state -> navigate -> interact -> extract data"
33
- },
34
- prerequisites: {
35
- page_navigate: [{
36
- condition: "Browser must be launched",
37
- fix: "Call browser_launch or browser_attach first"
38
- }],
39
- page_click: [{
40
- condition: "Browser must be launched",
41
- fix: "Call browser_launch or browser_attach first"
42
- }],
43
- page_type: [{
44
- condition: "Browser must be launched",
45
- fix: "Call browser_launch or browser_attach first"
46
- }],
47
- page_screenshot: [{
48
- condition: "Browser must be launched",
49
- fix: "Call browser_launch or browser_attach first"
50
- }],
51
- page_evaluate: [{
52
- condition: "Browser must be launched",
53
- fix: "Call browser_launch or browser_attach first"
54
- }],
55
- page_hover: [{
56
- condition: "Browser must be launched",
57
- fix: "Call browser_launch or browser_attach first"
58
- }],
59
- page_back: [{
60
- condition: "Browser must be launched",
61
- fix: "Call browser_launch or browser_attach first"
62
- }],
63
- page_forward: [{
64
- condition: "Browser must be launched",
65
- fix: "Call browser_launch or browser_attach first"
66
- }],
67
- page_reload: [{
68
- condition: "Browser must be launched",
69
- fix: "Call browser_launch or browser_attach first"
70
- }],
71
- page_scroll: [{
72
- condition: "Browser must be launched",
73
- fix: "Call browser_launch or browser_attach first"
74
- }]
75
- },
76
- registrations: [
77
- {
78
- tool: t("get_detailed_data"),
79
- domain: DOMAIN,
80
- bind: b((h, a) => h.handleGetDetailedData(a))
81
- },
82
- {
83
- tool: t("browser_attach"),
84
- domain: DOMAIN,
85
- bind: b((h, a) => h.handleBrowserAttach(a))
86
- },
87
- {
88
- tool: t("browser_list_tabs"),
89
- domain: DOMAIN,
90
- bind: b((h, a) => h.handleBrowserListTabs(a))
91
- },
92
- {
93
- tool: t("browser_list_cdp_targets"),
94
- domain: DOMAIN,
95
- bind: b((h, a) => h.handleBrowserListCdpTargets(a))
96
- },
97
- {
98
- tool: t("browser_select_tab"),
99
- domain: DOMAIN,
100
- bind: b((h, a) => h.handleBrowserSelectTab(a))
101
- },
102
- {
103
- tool: t("browser_attach_cdp_target"),
104
- domain: DOMAIN,
105
- bind: b((h, a) => h.handleBrowserAttachCdpTarget(a))
106
- },
107
- {
108
- tool: t("browser_detach_cdp_target"),
109
- domain: DOMAIN,
110
- bind: b((h, a) => h.handleBrowserDetachCdpTarget(a))
111
- },
112
- {
113
- tool: t("browser_evaluate_cdp_target"),
114
- domain: DOMAIN,
115
- bind: b((h, a) => h.handleBrowserEvaluateCdpTarget(a))
116
- },
117
- {
118
- tool: t("browser_launch"),
119
- domain: DOMAIN,
120
- bind: b((h, a) => h.handleBrowserLaunch(a))
121
- },
122
- {
123
- tool: t("browser_close"),
124
- domain: DOMAIN,
125
- bind: b((h, a) => h.handleBrowserClose(a))
126
- },
127
- {
128
- tool: t("browser_status"),
129
- domain: DOMAIN,
130
- bind: b((h, a) => h.handleBrowserStatus(a))
131
- },
132
- {
133
- tool: t("page_navigate"),
134
- domain: DOMAIN,
135
- bind: b((h, a) => h.handlePageNavigate(a))
136
- },
137
- {
138
- tool: t("page_reload"),
139
- domain: DOMAIN,
140
- bind: b((h, a) => h.handlePageReload(a))
141
- },
142
- {
143
- tool: t("page_back"),
144
- domain: DOMAIN,
145
- bind: b((h, a) => h.handlePageBack(a))
146
- },
147
- {
148
- tool: t("page_forward"),
149
- domain: DOMAIN,
150
- bind: b((h, a) => h.handlePageForward(a))
151
- },
152
- {
153
- tool: t("page_click"),
154
- domain: DOMAIN,
155
- bind: b((h, a) => h.handlePageClick(a))
156
- },
157
- {
158
- tool: t("page_type"),
159
- domain: DOMAIN,
160
- bind: b((h, a) => h.handlePageType(a))
161
- },
162
- {
163
- tool: t("page_select"),
164
- domain: DOMAIN,
165
- bind: b((h, a) => h.handlePageSelect(a))
166
- },
167
- {
168
- tool: t("page_hover"),
169
- domain: DOMAIN,
170
- bind: b((h, a) => h.handlePageHover(a))
171
- },
172
- {
173
- tool: t("page_scroll"),
174
- domain: DOMAIN,
175
- bind: b((h, a) => h.handlePageScroll(a))
176
- },
177
- {
178
- tool: t("page_wait_for_selector"),
179
- domain: DOMAIN,
180
- bind: b((h, a) => h.handlePageWaitForSelector(a))
181
- },
182
- {
183
- tool: t("page_evaluate"),
184
- domain: DOMAIN,
185
- bind: b((h, a) => h.handlePageEvaluate(a))
186
- },
187
- {
188
- tool: t("page_screenshot"),
189
- domain: DOMAIN,
190
- bind: b((h, a) => h.handlePageScreenshot(a))
191
- },
192
- {
193
- tool: t("get_all_scripts"),
194
- domain: DOMAIN,
195
- bind: b((h, a) => h.handleGetAllScripts(a))
196
- },
197
- {
198
- tool: t("get_script_source"),
199
- domain: DOMAIN,
200
- bind: b((h, a) => h.handleGetScriptSource(a))
201
- },
202
- {
203
- tool: t("console_monitor"),
204
- domain: DOMAIN,
205
- bind: b((h, a) => h.handleConsoleMonitor(a))
206
- },
207
- {
208
- tool: t("console_get_logs"),
209
- domain: DOMAIN,
210
- bind: b((h, a) => h.handleConsoleGetLogs(a))
211
- },
212
- {
213
- tool: t("console_execute"),
214
- domain: DOMAIN,
215
- bind: b((h, a) => h.handleConsoleExecute(a))
216
- },
217
- {
218
- tool: t("page_inject_script"),
219
- domain: DOMAIN,
220
- bind: b((h, a) => h.handlePageInjectScript(a))
221
- },
222
- {
223
- tool: t("page_cookies"),
224
- domain: DOMAIN,
225
- bind: b((h, a) => h.handlePageCookiesDispatch(a))
226
- },
227
- {
228
- tool: t("page_set_viewport"),
229
- domain: DOMAIN,
230
- bind: b((h, a) => h.handlePageSetViewport(a))
231
- },
232
- {
233
- tool: t("page_emulate_device"),
234
- domain: DOMAIN,
235
- bind: b((h, a) => h.handlePageEmulateDevice(a))
236
- },
237
- {
238
- tool: t("page_local_storage"),
239
- domain: DOMAIN,
240
- bind: b((h, a) => h.handlePageLocalStorageDispatch(a))
241
- },
242
- {
243
- tool: t("page_press_key"),
244
- domain: DOMAIN,
245
- bind: b((h, a) => h.handlePagePressKey(a))
246
- },
247
- {
248
- tool: t("captcha_detect"),
249
- domain: DOMAIN,
250
- bind: b((h, a) => h.handleCaptchaDetect(a))
251
- },
252
- {
253
- tool: t("captcha_wait"),
254
- domain: DOMAIN,
255
- bind: b((h, a) => h.handleCaptchaWait(a))
256
- },
257
- {
258
- tool: t("captcha_config"),
259
- domain: DOMAIN,
260
- bind: b((h, a) => h.handleCaptchaConfig(a))
261
- },
262
- {
263
- tool: t("stealth_inject"),
264
- domain: DOMAIN,
265
- bind: b((h, a) => h.handleStealthInject(a))
266
- },
267
- {
268
- tool: t("stealth_set_user_agent"),
269
- domain: DOMAIN,
270
- bind: b((h, a) => h.handleStealthSetUserAgent(a))
271
- },
272
- {
273
- tool: t("stealth_configure_jitter"),
274
- domain: DOMAIN,
275
- bind: b((h, a) => h.handleStealthConfigureJitter(a))
276
- },
277
- {
278
- tool: t("stealth_generate_fingerprint"),
279
- domain: DOMAIN,
280
- bind: b((h, a) => h.handleStealthGenerateFingerprint(a))
281
- },
282
- {
283
- tool: t("stealth_verify"),
284
- domain: DOMAIN,
285
- bind: b((h, a) => h.handleStealthVerify(a))
286
- },
287
- {
288
- tool: t("camoufox_geolocation"),
289
- domain: DOMAIN,
290
- bind: b((h, a) => h.handleCamoufoxGeolocation(a))
291
- },
292
- {
293
- tool: t("camoufox_server"),
294
- domain: DOMAIN,
295
- bind: b((h, a) => h.handleCamoufoxServerDispatch(a))
296
- },
297
- {
298
- tool: t("framework_state_extract"),
299
- domain: DOMAIN,
300
- bind: b((h, a) => h.handleFrameworkStateExtract(a))
301
- },
302
- {
303
- tool: t("indexeddb_dump"),
304
- domain: DOMAIN,
305
- bind: b((h, a) => h.handleIndexedDBDump(a))
306
- },
307
- {
308
- tool: t("js_heap_search"),
309
- domain: DOMAIN,
310
- bind: b((h, a) => h.handleJSHeapSearch(a))
311
- },
312
- {
313
- tool: t("tab_workflow"),
314
- domain: DOMAIN,
315
- bind: b((h, a) => h.handleTabWorkflow(a))
316
- },
317
- {
318
- tool: t("human_mouse"),
319
- domain: DOMAIN,
320
- bind: b((h, a) => h.handleHumanMouse(a))
321
- },
322
- {
323
- tool: t("human_scroll"),
324
- domain: DOMAIN,
325
- bind: b((h, a) => h.handleHumanScroll(a))
326
- },
327
- {
328
- tool: t("human_typing"),
329
- domain: DOMAIN,
330
- bind: b((h, a) => h.handleHumanTyping(a))
331
- },
332
- {
333
- tool: t("captcha_vision_solve"),
334
- domain: DOMAIN,
335
- bind: b((h, a) => h.handleCaptchaVisionSolve(a))
336
- },
337
- {
338
- tool: t("widget_challenge_solve"),
339
- domain: DOMAIN,
340
- bind: b((h, a) => h.handleWidgetChallengeSolve(a))
341
- },
342
- {
343
- tool: t("browser_jsdom_parse"),
344
- domain: DOMAIN,
345
- bind: b((h, a) => h.handleJsdomParse(a))
346
- },
347
- {
348
- tool: t("browser_jsdom_query"),
349
- domain: DOMAIN,
350
- bind: b((h, a) => h.handleJsdomQuery(a))
351
- },
352
- {
353
- tool: t("browser_jsdom_execute"),
354
- domain: DOMAIN,
355
- bind: b((h, a) => h.handleJsdomExecute(a))
356
- },
357
- {
358
- tool: t("browser_jsdom_serialize"),
359
- domain: DOMAIN,
360
- bind: b((h, a) => h.handleJsdomSerialize(a))
361
- },
362
- {
363
- tool: t("browser_jsdom_cookies"),
364
- domain: DOMAIN,
365
- bind: b((h, a) => h.handleJsdomCookies(a))
366
- }
367
- ]
368
- };
369
- //#endregion
370
- export { manifest as default };
@@ -1,107 +0,0 @@
1
- import { n as toolLookup } from "./registry-D-6e18lB.mjs";
2
- import { t as bindByDepKey } from "./bind-helpers-xFfRF-qm.mjs";
3
- import { i as tokenBudgetTools, n as cacheTools, r as extensionTools, t as artifactTools } from "./definitions-ClJLzsJQ.mjs";
4
- //#region src/server/domains/maintenance/manifest.ts
5
- const DOMAIN = "maintenance";
6
- const DEP_KEY = "coreMaintenanceHandlers";
7
- const EXT_DEP_KEY = "extensionManagementHandlers";
8
- const t = toolLookup([
9
- ...tokenBudgetTools,
10
- ...cacheTools,
11
- ...artifactTools,
12
- ...extensionTools
13
- ]);
14
- const b = (invoke) => bindByDepKey(DEP_KEY, invoke);
15
- const be = (invoke) => bindByDepKey(EXT_DEP_KEY, invoke);
16
- async function ensure(ctx) {
17
- const { CoreMaintenanceHandlers, ExtensionManagementHandlers } = await import("./maintenance-P7ePRXQC.mjs");
18
- if (!ctx.coreMaintenanceHandlers || !ctx.extensionManagementHandlers) {
19
- if (!ctx.coreMaintenanceHandlers) ctx.coreMaintenanceHandlers = new CoreMaintenanceHandlers({
20
- tokenBudget: ctx.tokenBudget,
21
- unifiedCache: ctx.unifiedCache
22
- });
23
- if (!ctx.extensionManagementHandlers) ctx.extensionManagementHandlers = new ExtensionManagementHandlers(ctx);
24
- }
25
- return ctx.coreMaintenanceHandlers;
26
- }
27
- const manifest = {
28
- kind: "domain-manifest",
29
- version: 1,
30
- domain: DOMAIN,
31
- depKey: DEP_KEY,
32
- secondaryDepKeys: ["extensionManagementHandlers"],
33
- profiles: ["workflow", "full"],
34
- ensure,
35
- registrations: [
36
- {
37
- tool: t("get_token_budget_stats"),
38
- domain: DOMAIN,
39
- bind: b((h) => h.handleGetTokenBudgetStats()),
40
- profiles: ["workflow", "full"]
41
- },
42
- {
43
- tool: t("manual_token_cleanup"),
44
- domain: DOMAIN,
45
- bind: b((h) => h.handleManualTokenCleanup())
46
- },
47
- {
48
- tool: t("reset_token_budget"),
49
- domain: DOMAIN,
50
- bind: b((h) => h.handleResetTokenBudget())
51
- },
52
- {
53
- tool: t("get_cache_stats"),
54
- domain: DOMAIN,
55
- bind: b((h) => h.handleGetCacheStats()),
56
- profiles: ["workflow", "full"]
57
- },
58
- {
59
- tool: t("smart_cache_cleanup"),
60
- domain: DOMAIN,
61
- bind: b((h, a) => h.handleSmartCacheCleanup(a.targetSize))
62
- },
63
- {
64
- tool: t("clear_all_caches"),
65
- domain: DOMAIN,
66
- bind: b((h) => h.handleClearAllCaches())
67
- },
68
- {
69
- tool: t("cleanup_artifacts"),
70
- domain: DOMAIN,
71
- bind: b((h, a) => h.handleCleanupArtifacts({
72
- retentionDays: a.retentionDays,
73
- maxTotalBytes: a.maxTotalBytes,
74
- dryRun: a.dryRun
75
- }))
76
- },
77
- {
78
- tool: t("doctor_environment"),
79
- domain: DOMAIN,
80
- bind: b((h, a) => h.handleEnvironmentDoctor({ includeBridgeHealth: a.includeBridgeHealth }))
81
- },
82
- {
83
- tool: t("list_extensions"),
84
- domain: DOMAIN,
85
- bind: be((h) => h.handleListExtensions()),
86
- profiles: ["workflow", "full"]
87
- },
88
- {
89
- tool: t("reload_extensions"),
90
- domain: DOMAIN,
91
- bind: be((h) => h.handleReloadExtensions())
92
- },
93
- {
94
- tool: t("browse_extension_registry"),
95
- domain: DOMAIN,
96
- bind: be((h, a) => h.handleBrowseExtensionRegistry(a.kind ?? "all")),
97
- profiles: ["workflow", "full"]
98
- },
99
- {
100
- tool: t("install_extension"),
101
- domain: DOMAIN,
102
- bind: be((h, a) => h.handleInstallExtension(a.slug, a.targetDir))
103
- }
104
- ]
105
- };
106
- //#endregion
107
- export { manifest as default };
@@ -1,51 +0,0 @@
1
- import { n as toolLookup, t as ensureBrowserCore } from "./registry-D-6e18lB.mjs";
2
- import { t as bindByDepKey } from "./bind-helpers-xFfRF-qm.mjs";
3
- import { t as streamingTools } from "./definitions-BB_4jnmy.mjs";
4
- //#region src/server/domains/streaming/manifest.ts
5
- const DOMAIN = "streaming";
6
- const DEP_KEY = "streamingHandlers";
7
- const t = toolLookup(streamingTools);
8
- const b = (invoke) => bindByDepKey(DEP_KEY, invoke);
9
- async function ensure(ctx) {
10
- const { StreamingToolHandlers } = await import("./streaming-BUQ0VJsg.mjs");
11
- await ensureBrowserCore(ctx);
12
- if (!ctx.streamingHandlers) ctx.streamingHandlers = new StreamingToolHandlers(ctx.collector);
13
- return ctx.streamingHandlers;
14
- }
15
- const manifest = {
16
- kind: "domain-manifest",
17
- version: 1,
18
- domain: DOMAIN,
19
- depKey: DEP_KEY,
20
- profiles: ["workflow", "full"],
21
- ensure,
22
- registrations: [
23
- {
24
- tool: t("ws_monitor"),
25
- domain: DOMAIN,
26
- bind: b((h, a) => h.handleWsMonitorDispatch(a))
27
- },
28
- {
29
- tool: t("ws_get_frames"),
30
- domain: DOMAIN,
31
- bind: b((h, a) => h.handleWsGetFrames(a))
32
- },
33
- {
34
- tool: t("ws_get_connections"),
35
- domain: DOMAIN,
36
- bind: b((h, a) => h.handleWsGetConnections(a))
37
- },
38
- {
39
- tool: t("sse_monitor_enable"),
40
- domain: DOMAIN,
41
- bind: b((h, a) => h.handleSseMonitorEnable(a))
42
- },
43
- {
44
- tool: t("sse_get_events"),
45
- domain: DOMAIN,
46
- bind: b((h, a) => h.handleSseGetEvents(a))
47
- }
48
- ]
49
- };
50
- //#endregion
51
- export { manifest as default };
@@ -1,37 +0,0 @@
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 antidebugTools } from "./definitions-B18eyf0B.mjs";
4
- //#region src/server/domains/antidebug/manifest.ts
5
- const DOMAIN = "antidebug";
6
- const DEP_KEY = "antidebugHandlers";
7
- const t = toolLookup(antidebugTools);
8
- const b = (invoke) => bindByDepKey(DEP_KEY, invoke);
9
- async function ensure(ctx) {
10
- const { CodeCollector } = await import("./modules-C184v-S9.mjs").then((n) => n.t);
11
- const { AntiDebugToolHandlers } = await import("./antidebug-CqDTB_uk.mjs");
12
- if (!ctx.collector) {
13
- ctx.collector = new CodeCollector(ctx.config.puppeteer);
14
- ctx.registerCaches();
15
- }
16
- if (!ctx.antidebugHandlers) ctx.antidebugHandlers = new AntiDebugToolHandlers(ctx.collector);
17
- return ctx.antidebugHandlers;
18
- }
19
- const manifest = {
20
- kind: "domain-manifest",
21
- version: 1,
22
- domain: DOMAIN,
23
- depKey: DEP_KEY,
24
- profiles: ["full"],
25
- ensure,
26
- registrations: [{
27
- tool: t("antidebug_bypass"),
28
- domain: DOMAIN,
29
- bind: b((h, a) => h.handleAntidebugBypass(a))
30
- }, {
31
- tool: t("antidebug_detect_protections"),
32
- domain: DOMAIN,
33
- bind: b((h, a) => h.handleAntiDebugDetectProtections(a))
34
- }]
35
- };
36
- //#endregion
37
- export { manifest as default };