@vforsh/argus-watcher 0.1.11 → 0.1.12

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 (300) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/cdp/pageIndicator.d.ts.map +1 -1
  3. package/dist/cdp/pageIndicator.js +1 -249
  4. package/dist/cdp/pageIndicator.js.map +1 -1
  5. package/dist/cdp/pageIndicatorScript.d.ts +19 -0
  6. package/dist/cdp/pageIndicatorScript.d.ts.map +1 -0
  7. package/dist/cdp/pageIndicatorScript.js +351 -0
  8. package/dist/cdp/pageIndicatorScript.js.map +1 -0
  9. package/dist/events.d.ts +1 -1
  10. package/dist/events.d.ts.map +1 -1
  11. package/dist/http/routes/authCookies.d.ts +5 -10
  12. package/dist/http/routes/authCookies.d.ts.map +1 -1
  13. package/dist/http/routes/authCookies.js +17 -30
  14. package/dist/http/routes/authCookies.js.map +1 -1
  15. package/dist/http/routes/defineDomTargetRoute.d.ts +14 -5
  16. package/dist/http/routes/defineDomTargetRoute.d.ts.map +1 -1
  17. package/dist/http/routes/defineDomTargetRoute.js +27 -33
  18. package/dist/http/routes/defineDomTargetRoute.js.map +1 -1
  19. package/dist/http/routes/defineRoute.d.ts +9 -0
  20. package/dist/http/routes/defineRoute.d.ts.map +1 -1
  21. package/dist/http/routes/defineRoute.js +9 -9
  22. package/dist/http/routes/defineRoute.js.map +1 -1
  23. package/dist/http/routes/domSelectorRoute.d.ts +4 -11
  24. package/dist/http/routes/domSelectorRoute.d.ts.map +1 -1
  25. package/dist/http/routes/domSelectorRoute.js +9 -17
  26. package/dist/http/routes/domSelectorRoute.js.map +1 -1
  27. package/dist/http/routes/getAuthCookies.d.ts +1 -2
  28. package/dist/http/routes/getAuthCookies.d.ts.map +1 -1
  29. package/dist/http/routes/getAuthCookies.js +14 -14
  30. package/dist/http/routes/getAuthCookies.js.map +1 -1
  31. package/dist/http/routes/getAuthState.d.ts +1 -2
  32. package/dist/http/routes/getAuthState.d.ts.map +1 -1
  33. package/dist/http/routes/getAuthState.js +13 -13
  34. package/dist/http/routes/getAuthState.js.map +1 -1
  35. package/dist/http/routes/getDialog.d.ts +1 -2
  36. package/dist/http/routes/getDialog.d.ts.map +1 -1
  37. package/dist/http/routes/getDialog.js +7 -10
  38. package/dist/http/routes/getDialog.js.map +1 -1
  39. package/dist/http/routes/getEmulation.d.ts +1 -2
  40. package/dist/http/routes/getEmulation.d.ts.map +1 -1
  41. package/dist/http/routes/getEmulation.js +7 -7
  42. package/dist/http/routes/getEmulation.js.map +1 -1
  43. package/dist/http/routes/getExtensionTabs.d.ts +1 -2
  44. package/dist/http/routes/getExtensionTabs.d.ts.map +1 -1
  45. package/dist/http/routes/getExtensionTabs.js +18 -16
  46. package/dist/http/routes/getExtensionTabs.js.map +1 -1
  47. package/dist/http/routes/getLogs.d.ts +1 -2
  48. package/dist/http/routes/getLogs.d.ts.map +1 -1
  49. package/dist/http/routes/getLogs.js +31 -26
  50. package/dist/http/routes/getLogs.js.map +1 -1
  51. package/dist/http/routes/getNet.d.ts +1 -2
  52. package/dist/http/routes/getNet.d.ts.map +1 -1
  53. package/dist/http/routes/getNet.js +19 -21
  54. package/dist/http/routes/getNet.js.map +1 -1
  55. package/dist/http/routes/getNetRequest.d.ts +1 -2
  56. package/dist/http/routes/getNetRequest.d.ts.map +1 -1
  57. package/dist/http/routes/getNetRequest.js +22 -20
  58. package/dist/http/routes/getNetRequest.js.map +1 -1
  59. package/dist/http/routes/getNetRequestBody.d.ts +1 -2
  60. package/dist/http/routes/getNetRequestBody.d.ts.map +1 -1
  61. package/dist/http/routes/getNetRequestBody.js +53 -51
  62. package/dist/http/routes/getNetRequestBody.js.map +1 -1
  63. package/dist/http/routes/getNetRequests.d.ts +1 -2
  64. package/dist/http/routes/getNetRequests.d.ts.map +1 -1
  65. package/dist/http/routes/getNetRequests.js +19 -21
  66. package/dist/http/routes/getNetRequests.js.map +1 -1
  67. package/dist/http/routes/getNetSse.d.ts +1 -2
  68. package/dist/http/routes/getNetSse.d.ts.map +1 -1
  69. package/dist/http/routes/getNetSse.js +19 -21
  70. package/dist/http/routes/getNetSse.js.map +1 -1
  71. package/dist/http/routes/getNetTail.d.ts +1 -2
  72. package/dist/http/routes/getNetTail.d.ts.map +1 -1
  73. package/dist/http/routes/getNetTail.js +21 -30
  74. package/dist/http/routes/getNetTail.js.map +1 -1
  75. package/dist/http/routes/getNetWebSocketConnection.d.ts +1 -2
  76. package/dist/http/routes/getNetWebSocketConnection.d.ts.map +1 -1
  77. package/dist/http/routes/getNetWebSocketConnection.js +22 -17
  78. package/dist/http/routes/getNetWebSocketConnection.js.map +1 -1
  79. package/dist/http/routes/getNetWebSockets.d.ts +1 -2
  80. package/dist/http/routes/getNetWebSockets.d.ts.map +1 -1
  81. package/dist/http/routes/getNetWebSockets.js +19 -21
  82. package/dist/http/routes/getNetWebSockets.js.map +1 -1
  83. package/dist/http/routes/getStatus.d.ts +1 -2
  84. package/dist/http/routes/getStatus.d.ts.map +1 -1
  85. package/dist/http/routes/getStatus.js +6 -4
  86. package/dist/http/routes/getStatus.js.map +1 -1
  87. package/dist/http/routes/getTail.d.ts +1 -2
  88. package/dist/http/routes/getTail.d.ts.map +1 -1
  89. package/dist/http/routes/getTail.js +31 -26
  90. package/dist/http/routes/getTail.js.map +1 -1
  91. package/dist/http/routes/getTargets.d.ts +1 -2
  92. package/dist/http/routes/getTargets.d.ts.map +1 -1
  93. package/dist/http/routes/getTargets.js +14 -13
  94. package/dist/http/routes/getTargets.js.map +1 -1
  95. package/dist/http/routes/getThrottle.d.ts +1 -2
  96. package/dist/http/routes/getThrottle.d.ts.map +1 -1
  97. package/dist/http/routes/getThrottle.js +7 -7
  98. package/dist/http/routes/getThrottle.js.map +1 -1
  99. package/dist/http/routes/index.d.ts +5 -1
  100. package/dist/http/routes/index.d.ts.map +1 -1
  101. package/dist/http/routes/index.js +115 -114
  102. package/dist/http/routes/index.js.map +1 -1
  103. package/dist/http/routes/netFilters.d.ts +10 -0
  104. package/dist/http/routes/netFilters.d.ts.map +1 -1
  105. package/dist/http/routes/netFilters.js +23 -1
  106. package/dist/http/routes/netFilters.js.map +1 -1
  107. package/dist/http/routes/netMock.d.ts +3 -0
  108. package/dist/http/routes/netMock.d.ts.map +1 -0
  109. package/dist/http/routes/netMock.js +141 -0
  110. package/dist/http/routes/netMock.js.map +1 -0
  111. package/dist/http/routes/postAttach.d.ts +1 -2
  112. package/dist/http/routes/postAttach.d.ts.map +1 -1
  113. package/dist/http/routes/postAttach.js +19 -21
  114. package/dist/http/routes/postAttach.js.map +1 -1
  115. package/dist/http/routes/postAuthStateLoad.d.ts +1 -2
  116. package/dist/http/routes/postAuthStateLoad.d.ts.map +1 -1
  117. package/dist/http/routes/postAuthStateLoad.js +29 -34
  118. package/dist/http/routes/postAuthStateLoad.js.map +1 -1
  119. package/dist/http/routes/postCodeEdit.d.ts +1 -2
  120. package/dist/http/routes/postCodeEdit.d.ts.map +1 -1
  121. package/dist/http/routes/postCodeEdit.js +20 -25
  122. package/dist/http/routes/postCodeEdit.js.map +1 -1
  123. package/dist/http/routes/postCodeGrep.d.ts +1 -2
  124. package/dist/http/routes/postCodeGrep.d.ts.map +1 -1
  125. package/dist/http/routes/postCodeGrep.js +20 -25
  126. package/dist/http/routes/postCodeGrep.js.map +1 -1
  127. package/dist/http/routes/postCodeList.d.ts +1 -2
  128. package/dist/http/routes/postCodeList.d.ts.map +1 -1
  129. package/dist/http/routes/postCodeList.js +14 -19
  130. package/dist/http/routes/postCodeList.js.map +1 -1
  131. package/dist/http/routes/postCodeRead.d.ts +1 -2
  132. package/dist/http/routes/postCodeRead.d.ts.map +1 -1
  133. package/dist/http/routes/postCodeRead.js +24 -29
  134. package/dist/http/routes/postCodeRead.js.map +1 -1
  135. package/dist/http/routes/postDetach.d.ts +1 -2
  136. package/dist/http/routes/postDetach.d.ts.map +1 -1
  137. package/dist/http/routes/postDetach.js +19 -21
  138. package/dist/http/routes/postDetach.js.map +1 -1
  139. package/dist/http/routes/postDialog.d.ts +1 -2
  140. package/dist/http/routes/postDialog.d.ts.map +1 -1
  141. package/dist/http/routes/postDialog.js +30 -29
  142. package/dist/http/routes/postDialog.js.map +1 -1
  143. package/dist/http/routes/postDomAdd.d.ts +1 -2
  144. package/dist/http/routes/postDomAdd.d.ts.map +1 -1
  145. package/dist/http/routes/postDomAdd.js +44 -48
  146. package/dist/http/routes/postDomAdd.js.map +1 -1
  147. package/dist/http/routes/postDomClick.d.ts +0 -1
  148. package/dist/http/routes/postDomClick.d.ts.map +1 -1
  149. package/dist/http/routes/postDomClick.js +0 -1
  150. package/dist/http/routes/postDomClick.js.map +1 -1
  151. package/dist/http/routes/postDomFill.d.ts +1 -2
  152. package/dist/http/routes/postDomFill.d.ts.map +1 -1
  153. package/dist/http/routes/postDomFill.js +17 -49
  154. package/dist/http/routes/postDomFill.js.map +1 -1
  155. package/dist/http/routes/postDomInfo.d.ts +1 -2
  156. package/dist/http/routes/postDomInfo.d.ts.map +1 -1
  157. package/dist/http/routes/postDomInfo.js +14 -20
  158. package/dist/http/routes/postDomInfo.js.map +1 -1
  159. package/dist/http/routes/postDomKeydown.d.ts +1 -2
  160. package/dist/http/routes/postDomKeydown.d.ts.map +1 -1
  161. package/dist/http/routes/postDomKeydown.js +26 -30
  162. package/dist/http/routes/postDomKeydown.js.map +1 -1
  163. package/dist/http/routes/postDomModify.d.ts +1 -2
  164. package/dist/http/routes/postDomModify.d.ts.map +1 -1
  165. package/dist/http/routes/postDomModify.js +30 -41
  166. package/dist/http/routes/postDomModify.js.map +1 -1
  167. package/dist/http/routes/postDomRemove.d.ts +1 -2
  168. package/dist/http/routes/postDomRemove.d.ts.map +1 -1
  169. package/dist/http/routes/postDomRemove.js +13 -18
  170. package/dist/http/routes/postDomRemove.js.map +1 -1
  171. package/dist/http/routes/postDomScroll.d.ts +1 -2
  172. package/dist/http/routes/postDomScroll.d.ts.map +1 -1
  173. package/dist/http/routes/postDomScroll.js +37 -42
  174. package/dist/http/routes/postDomScroll.js.map +1 -1
  175. package/dist/http/routes/postDomScrollTo.d.ts +1 -2
  176. package/dist/http/routes/postDomScrollTo.d.ts.map +1 -1
  177. package/dist/http/routes/postDomScrollTo.js +42 -48
  178. package/dist/http/routes/postDomScrollTo.js.map +1 -1
  179. package/dist/http/routes/postDomSetFile.d.ts +1 -2
  180. package/dist/http/routes/postDomSetFile.d.ts.map +1 -1
  181. package/dist/http/routes/postDomSetFile.js +29 -32
  182. package/dist/http/routes/postDomSetFile.js.map +1 -1
  183. package/dist/http/routes/postDomTree.d.ts +1 -2
  184. package/dist/http/routes/postDomTree.d.ts.map +1 -1
  185. package/dist/http/routes/postDomTree.js +13 -17
  186. package/dist/http/routes/postDomTree.js.map +1 -1
  187. package/dist/http/routes/postEmulation.d.ts +1 -2
  188. package/dist/http/routes/postEmulation.d.ts.map +1 -1
  189. package/dist/http/routes/postEmulation.js +29 -39
  190. package/dist/http/routes/postEmulation.js.map +1 -1
  191. package/dist/http/routes/postEval.d.ts +1 -2
  192. package/dist/http/routes/postEval.d.ts.map +1 -1
  193. package/dist/http/routes/postEval.js +22 -26
  194. package/dist/http/routes/postEval.js.map +1 -1
  195. package/dist/http/routes/postLocate.d.ts +2 -4
  196. package/dist/http/routes/postLocate.d.ts.map +1 -1
  197. package/dist/http/routes/postLocate.js +40 -60
  198. package/dist/http/routes/postLocate.js.map +1 -1
  199. package/dist/http/routes/postNetClear.d.ts +1 -2
  200. package/dist/http/routes/postNetClear.d.ts.map +1 -1
  201. package/dist/http/routes/postNetClear.js +14 -13
  202. package/dist/http/routes/postNetClear.js.map +1 -1
  203. package/dist/http/routes/postReload.d.ts +1 -2
  204. package/dist/http/routes/postReload.d.ts.map +1 -1
  205. package/dist/http/routes/postReload.js +10 -16
  206. package/dist/http/routes/postReload.js.map +1 -1
  207. package/dist/http/routes/postScreenshot.d.ts +1 -2
  208. package/dist/http/routes/postScreenshot.d.ts.map +1 -1
  209. package/dist/http/routes/postScreenshot.js +11 -22
  210. package/dist/http/routes/postScreenshot.js.map +1 -1
  211. package/dist/http/routes/postShutdown.d.ts +1 -2
  212. package/dist/http/routes/postShutdown.d.ts.map +1 -1
  213. package/dist/http/routes/postShutdown.js +15 -11
  214. package/dist/http/routes/postShutdown.js.map +1 -1
  215. package/dist/http/routes/postSnapshot.d.ts +1 -2
  216. package/dist/http/routes/postSnapshot.d.ts.map +1 -1
  217. package/dist/http/routes/postSnapshot.js +21 -26
  218. package/dist/http/routes/postSnapshot.js.map +1 -1
  219. package/dist/http/routes/postThrottle.d.ts +1 -2
  220. package/dist/http/routes/postThrottle.d.ts.map +1 -1
  221. package/dist/http/routes/postThrottle.js +26 -35
  222. package/dist/http/routes/postThrottle.js.map +1 -1
  223. package/dist/http/routes/postTraceStart.d.ts +1 -2
  224. package/dist/http/routes/postTraceStart.d.ts.map +1 -1
  225. package/dist/http/routes/postTraceStart.js +8 -16
  226. package/dist/http/routes/postTraceStart.js.map +1 -1
  227. package/dist/http/routes/postTraceStop.d.ts +1 -2
  228. package/dist/http/routes/postTraceStop.d.ts.map +1 -1
  229. package/dist/http/routes/postTraceStop.js +8 -16
  230. package/dist/http/routes/postTraceStop.js.map +1 -1
  231. package/dist/http/routes/postVisibility.d.ts +1 -2
  232. package/dist/http/routes/postVisibility.d.ts.map +1 -1
  233. package/dist/http/routes/postVisibility.js +21 -27
  234. package/dist/http/routes/postVisibility.js.map +1 -1
  235. package/dist/http/routes/storage.d.ts +2 -4
  236. package/dist/http/routes/storage.d.ts.map +1 -1
  237. package/dist/http/routes/storage.js +13 -25
  238. package/dist/http/routes/storage.js.map +1 -1
  239. package/dist/http/server.d.ts +4 -1
  240. package/dist/http/server.d.ts.map +1 -1
  241. package/dist/http/server.js.map +1 -1
  242. package/dist/index.d.ts +5 -5
  243. package/dist/index.d.ts.map +1 -1
  244. package/dist/index.js.map +1 -1
  245. package/dist/native-messaging/control-session-manager.d.ts +16 -0
  246. package/dist/native-messaging/control-session-manager.d.ts.map +1 -0
  247. package/dist/native-messaging/control-session-manager.js +50 -0
  248. package/dist/native-messaging/control-session-manager.js.map +1 -0
  249. package/dist/native-messaging/messaging.d.ts +4 -4
  250. package/dist/native-messaging/messaging.d.ts.map +1 -1
  251. package/dist/native-messaging/messaging.js.map +1 -1
  252. package/dist/native-messaging/session-manager.d.ts +2 -15
  253. package/dist/native-messaging/session-manager.d.ts.map +1 -1
  254. package/dist/native-messaging/session-manager.js +0 -34
  255. package/dist/native-messaging/session-manager.js.map +1 -1
  256. package/dist/native-messaging/types.d.ts +19 -2
  257. package/dist/native-messaging/types.d.ts.map +1 -1
  258. package/dist/net/NetMockController.d.ts +26 -0
  259. package/dist/net/NetMockController.d.ts.map +1 -0
  260. package/dist/net/NetMockController.js +264 -0
  261. package/dist/net/NetMockController.js.map +1 -0
  262. package/dist/runtime/watcherServices.d.ts.map +1 -1
  263. package/dist/runtime/watcherServices.js +2 -1
  264. package/dist/runtime/watcherServices.js.map +1 -1
  265. package/dist/runtime/watcherSetup.d.ts +3 -0
  266. package/dist/runtime/watcherSetup.d.ts.map +1 -1
  267. package/dist/runtime/watcherSetup.js +4 -0
  268. package/dist/runtime/watcherSetup.js.map +1 -1
  269. package/dist/scripts/install-host.js +58 -54
  270. package/dist/scripts/install-host.js.map +1 -1
  271. package/dist/sources/extension-control-source.d.ts +9 -0
  272. package/dist/sources/extension-control-source.d.ts.map +1 -0
  273. package/dist/sources/extension-control-source.js +88 -0
  274. package/dist/sources/extension-control-source.js.map +1 -0
  275. package/dist/sources/extension-frame-state.d.ts +5 -0
  276. package/dist/sources/extension-frame-state.d.ts.map +1 -1
  277. package/dist/sources/extension-frame-state.js +7 -0
  278. package/dist/sources/extension-frame-state.js.map +1 -1
  279. package/dist/sources/extension-source.d.ts +3 -1
  280. package/dist/sources/extension-source.d.ts.map +1 -1
  281. package/dist/sources/extension-source.js +35 -135
  282. package/dist/sources/extension-source.js.map +1 -1
  283. package/dist/sources/extension-target-recovery.d.ts +32 -0
  284. package/dist/sources/extension-target-recovery.d.ts.map +1 -0
  285. package/dist/sources/extension-target-recovery.js +114 -0
  286. package/dist/sources/extension-target-recovery.js.map +1 -0
  287. package/dist/sources/types.d.ts +1 -0
  288. package/dist/sources/types.d.ts.map +1 -1
  289. package/dist/startWatcherRuntime.d.ts.map +1 -1
  290. package/dist/startWatcherRuntime.js +5 -1
  291. package/dist/startWatcherRuntime.js.map +1 -1
  292. package/package.json +1 -1
  293. package/dist/http/routes/postStorageLocal.d.ts +0 -2
  294. package/dist/http/routes/postStorageLocal.d.ts.map +0 -1
  295. package/dist/http/routes/postStorageLocal.js +0 -3
  296. package/dist/http/routes/postStorageLocal.js.map +0 -1
  297. package/dist/http/routes/postStorageSession.d.ts +0 -2
  298. package/dist/http/routes/postStorageSession.d.ts.map +0 -1
  299. package/dist/http/routes/postStorageSession.js +0 -3
  300. package/dist/http/routes/postStorageSession.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"getAuthState.js","sourceRoot":"","sources":["../../../src/http/routes/getAuthState.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAEhF,MAAM,CAAC,MAAM,MAAM,GAAiB,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;IACjE,MAAM,MAAM,GAAG,mBAAmB,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAA;IAElE,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,CAAA;IAE/C,IAAI,CAAC;QACJ,MAAM,OAAO,GAAG,GAAG,CAAC,UAAU,EAAE,CAAA;QAChC,MAAM,QAAQ,GAAsB,MAAM,gBAAgB,CA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AAM,EAAE,MAAM,IAAI,SAAS;YAC3B,kBAAkB,EAAE,GAAG,CAAC,kBAAkB;YAC1C,QAAQ,EAAE;gBACT,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,SAAS,EAAE,OAAO,CAAC,EAAE;gBACrB,aAAa,EAAE,OAAO,CAAC,MAAM,IAAI,IAAI;aACrC;SACD,CAAC,CAAA;IACH,CAAC;CACD,CAAC,CAAA"}
@@ -1,3 +1,2 @@
1
- import type { RouteHandler } from './types.js';
2
- export declare const handle: RouteHandler;
1
+ export declare const route: import("./defineRoute.js").WatcherRouteDefinition;
3
2
  //# sourceMappingURL=getDialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDialog.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getDialog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI9C,eAAO,MAAM,MAAM,EAAE,YASpB,CAAA"}
1
+ {"version":3,"file":"getDialog.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getDialog.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,mDAKhB,CAAA"}
@@ -1,11 +1,8 @@
1
- import { emitRequest } from './types.js';
2
- import { respondJson } from '../httpUtils.js';
3
- export const handle = (_req, res, _url, ctx) => {
4
- emitRequest(ctx, res, 'dialog/status');
5
- const response = {
6
- ok: true,
7
- dialog: ctx.getDialog(),
8
- };
9
- respondJson(res, response);
10
- };
1
+ import { defineJsonRoute } from './defineRoute.js';
2
+ export const route = defineJsonRoute({
3
+ method: 'GET',
4
+ path: '/dialog',
5
+ endpoint: 'dialog/status',
6
+ handle: ({ ctx }) => ({ ok: true, dialog: ctx.getDialog() }),
7
+ });
11
8
  //# sourceMappingURL=getDialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDialog.js","sourceRoot":"","sources":["../../../src/http/routes/getDialog.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE7C,MAAM,CAAC,MAAM,MAAM,GAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;IAC5D,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,eAAe,CAAC,CAAA;IAEtC,MAAM,QAAQ,GAAyB;QACtC,EAAE,EAAE,IAAI;QACR,MAAM,EAAE,GAAG,CAAC,SAAS,EAAE;KACvB,CAAA;IAED,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;AAC3B,CAAC,CAAA"}
1
+ {"version":3,"file":"getDialog.js","sourceRoot":"","sources":["../../../src/http/routes/getDialog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,CAAC,MAAM,KAAK,GAAG,eAAe,CAAkC;IACrE,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,eAAe;IACzB,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,SAAS,EAAE,EAAE,CAAC;CAC5D,CAAC,CAAA"}
@@ -1,3 +1,2 @@
1
- import type { RouteHandler } from './types.js';
2
- export declare const handle: RouteHandler;
1
+ export declare const route: import("./defineRoute.js").WatcherRouteDefinition;
3
2
  //# sourceMappingURL=getEmulation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getEmulation.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getEmulation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI9C,eAAO,MAAM,MAAM,EAAE,YAIpB,CAAA"}
1
+ {"version":3,"file":"getEmulation.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getEmulation.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,mDAKhB,CAAA"}
@@ -1,8 +1,8 @@
1
- import { emitRequest } from './types.js';
2
- import { respondJson } from '../httpUtils.js';
3
- export const handle = (_req, res, _url, ctx) => {
4
- emitRequest(ctx, res, 'emulation');
5
- const status = ctx.emulationController.getStatus({ attached: ctx.getCdpStatus().attached });
6
- respondJson(res, status);
7
- };
1
+ import { defineJsonRoute } from './defineRoute.js';
2
+ export const route = defineJsonRoute({
3
+ method: 'GET',
4
+ path: '/emulation',
5
+ endpoint: 'emulation',
6
+ handle: ({ ctx }) => ctx.emulationController.getStatus({ attached: ctx.getCdpStatus().attached }),
7
+ });
8
8
  //# sourceMappingURL=getEmulation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getEmulation.js","sourceRoot":"","sources":["../../../src/http/routes/getEmulation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE7C,MAAM,CAAC,MAAM,MAAM,GAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;IAC5D,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,WAAW,CAAC,CAAA;IAClC,MAAM,MAAM,GAAG,GAAG,CAAC,mBAAmB,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,GAAG,CAAC,YAAY,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAA;IAC3F,WAAW,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;AACzB,CAAC,CAAA"}
1
+ {"version":3,"file":"getEmulation.js","sourceRoot":"","sources":["../../../src/http/routes/getEmulation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,CAAC,MAAM,KAAK,GAAG,eAAe,CAAC;IACpC,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,YAAY;IAClB,QAAQ,EAAE,WAAW;IACrB,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,mBAAmB,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,GAAG,CAAC,YAAY,EAAE,CAAC,QAAQ,EAAE,CAAC;CACjG,CAAC,CAAA"}
@@ -1,3 +1,2 @@
1
- import type { RouteHandler } from './types.js';
2
- export declare const handle: RouteHandler;
1
+ export declare const route: import("./defineRoute.js").WatcherRouteDefinition;
3
2
  //# sourceMappingURL=getExtensionTabs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getExtensionTabs.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getExtensionTabs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI9C,eAAO,MAAM,MAAM,EAAE,YAmBpB,CAAA"}
1
+ {"version":3,"file":"getExtensionTabs.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getExtensionTabs.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK,mDAqBhB,CAAA"}
@@ -1,22 +1,24 @@
1
+ import { defineJsonRoute } from './defineRoute.js';
2
+ import { normalizeQueryValue, respondJson } from '../httpUtils.js';
1
3
  import { emitRequest } from './types.js';
2
- import { normalizeQueryValue, respondError, respondJson } from '../httpUtils.js';
3
- export const handle = async (_req, res, url, ctx) => {
4
- if (!ctx.sourceHandle?.listTabs) {
5
- return respondJson(res, { ok: false, error: { message: 'Not available', code: 'not_available' } }, 400);
6
- }
7
- emitRequest(ctx, res, 'tabs', {
8
- url: url.searchParams.get('url') ?? undefined,
9
- title: url.searchParams.get('title') ?? undefined,
10
- });
11
- try {
4
+ export const route = defineJsonRoute({
5
+ method: 'GET',
6
+ path: '/tabs',
7
+ extensionOnly: true,
8
+ handle: async ({ res, url, ctx }) => {
9
+ if (!ctx.sourceHandle?.listTabs) {
10
+ return respondJson(res, { ok: false, error: { message: 'Not available', code: 'not_available' } }, 400);
11
+ }
12
+ // Emitted manually to include query metadata in the request event.
13
+ emitRequest(ctx, res, 'tabs', {
14
+ url: url.searchParams.get('url') ?? undefined,
15
+ title: url.searchParams.get('title') ?? undefined,
16
+ });
12
17
  const tabs = await ctx.sourceHandle.listTabs({
13
18
  url: normalizeQueryValue(url.searchParams.get('url')),
14
19
  title: normalizeQueryValue(url.searchParams.get('title')),
15
20
  });
16
- respondJson(res, { ok: true, tabs });
17
- }
18
- catch (error) {
19
- respondError(res, error);
20
- }
21
- };
21
+ return { ok: true, tabs };
22
+ },
23
+ });
22
24
  //# sourceMappingURL=getExtensionTabs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getExtensionTabs.js","sourceRoot":"","sources":["../../../src/http/routes/getExtensionTabs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAEhF,MAAM,CAAC,MAAM,MAAM,GAAiB,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;IACjE,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,QAAQ,EAAE,CAAC;QACjC,OAAO,WAAW,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;IACxG,CAAC;IAED,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE;QAC7B,GAAG,EAAE,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,SAAS;QAC7C,KAAK,EAAE,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,SAAS;KACjD,CAAC,CAAA;IAEF,IAAI,CAAC;QACJ,MAAM,IAAI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AC,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,SAAS;YAC7C,KAAK,EAAE,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,SAAS;SACjD,CAAC,CAAA;QAEF,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAC;YAC5C,GAAG,EAAE,mBAAmB,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACrD,KAAK,EAAE,mBAAmB,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;SACzD,CAAC,CAAA;QACF,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CACD,CAAC,CAAA"}
@@ -1,3 +1,2 @@
1
- import type { RouteHandler } from './types.js';
2
- export declare const handle: RouteHandler;
1
+ export declare const route: import("./defineRoute.js").WatcherRouteDefinition;
3
2
  //# sourceMappingURL=getLogs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getLogs.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getLogs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAc9C,eAAO,MAAM,MAAM,EAAE,YA2BpB,CAAA"}
1
+ {"version":3,"file":"getLogs.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getLogs.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,KAAK,mDA+BhB,CAAA"}
@@ -1,28 +1,33 @@
1
+ import { defineJsonRoute } from './defineRoute.js';
1
2
  import { emitRequest } from './types.js';
2
- import { respondJson, respondInvalidMatch, respondInvalidMatchCase, clampNumber, parseLevels, resolveMatchCase, normalizeMatchPatterns, compileMatchPatterns, normalizeQueryValue, } from '../httpUtils.js';
3
- export const handle = (_req, res, url, ctx) => {
4
- const after = clampNumber(url.searchParams.get('after'), 0);
5
- const limit = clampNumber(url.searchParams.get('limit'), 500, 1, 5000);
6
- const levels = parseLevels(url.searchParams.get('levels'));
7
- const match = url.searchParams.getAll('match');
8
- const matchCase = resolveMatchCase(url.searchParams.get('matchCase'));
9
- if (!matchCase) {
10
- return respondInvalidMatchCase(res);
11
- }
12
- const source = normalizeQueryValue(url.searchParams.get('source'));
13
- const sinceTs = clampNumber(url.searchParams.get('sinceTs'), undefined);
14
- const matchPatterns = normalizeMatchPatterns(match);
15
- if (matchPatterns.error) {
16
- return respondInvalidMatch(res, matchPatterns.error);
17
- }
18
- const compiledMatch = compileMatchPatterns(matchPatterns.patterns, matchCase);
19
- if (compiledMatch.error) {
20
- return respondInvalidMatch(res, compiledMatch.error);
21
- }
22
- emitRequest(ctx, res, 'logs', { after, limit, levels, match: matchPatterns.patterns, matchCase, source, sinceTs });
23
- const events = ctx.buffer.listAfter(after, { levels, match: compiledMatch.match, source, sinceTs }, limit);
24
- const nextAfter = events.length > 0 ? (events[events.length - 1]?.id ?? after) : after;
25
- const response = { ok: true, events, nextAfter };
26
- respondJson(res, response);
27
- };
3
+ import { respondInvalidMatch, respondInvalidMatchCase, clampNumber, parseLevels, resolveMatchCase, normalizeMatchPatterns, compileMatchPatterns, normalizeQueryValue, } from '../httpUtils.js';
4
+ export const route = defineJsonRoute({
5
+ method: 'GET',
6
+ path: '/logs',
7
+ handle: ({ res, url, ctx }) => {
8
+ const after = clampNumber(url.searchParams.get('after'), 0);
9
+ const limit = clampNumber(url.searchParams.get('limit'), 500, 1, 5000);
10
+ const levels = parseLevels(url.searchParams.get('levels'));
11
+ const match = url.searchParams.getAll('match');
12
+ const matchCase = resolveMatchCase(url.searchParams.get('matchCase'));
13
+ if (!matchCase) {
14
+ return respondInvalidMatchCase(res);
15
+ }
16
+ const source = normalizeQueryValue(url.searchParams.get('source'));
17
+ const sinceTs = clampNumber(url.searchParams.get('sinceTs'), undefined);
18
+ const matchPatterns = normalizeMatchPatterns(match);
19
+ if (matchPatterns.error) {
20
+ return respondInvalidMatch(res, matchPatterns.error);
21
+ }
22
+ const compiledMatch = compileMatchPatterns(matchPatterns.patterns, matchCase);
23
+ if (compiledMatch.error) {
24
+ return respondInvalidMatch(res, compiledMatch.error);
25
+ }
26
+ // Emitted manually to include query metadata in the request event.
27
+ emitRequest(ctx, res, 'logs', { after, limit, levels, match: matchPatterns.patterns, matchCase, source, sinceTs });
28
+ const events = ctx.buffer.listAfter(after, { levels, match: compiledMatch.match, source, sinceTs }, limit);
29
+ const nextAfter = events.length > 0 ? (events[events.length - 1]?.id ?? after) : after;
30
+ return { ok: true, events, nextAfter };
31
+ },
32
+ });
28
33
  //# sourceMappingURL=getLogs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getLogs.js","sourceRoot":"","sources":["../../../src/http/routes/getLogs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EACN,WAAW,EACX,mBAAmB,EACnB,uBAAuB,EACvB,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,GACnB,MAAM,iBAAiB,CAAA;AAExB,MAAM,CAAC,MAAM,MAAM,GAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;IAC3D,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAA;IAC3D,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC,CAAA;IACtE,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAA;IAC1D,MAAM,KAAK,GAAG,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IAC9C,MAAM,SAA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AAC,CAAC,CAAC,KAAK,CAAA;QACtF,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,CAAA;IACvC,CAAC;CACD,CAAC,CAAA"}
@@ -1,3 +1,2 @@
1
- import type { RouteHandler } from './types.js';
2
- export declare const handle: RouteHandler;
1
+ export declare const route: import("./defineRoute.js").WatcherRouteDefinition;
3
2
  //# sourceMappingURL=getNet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNet.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getNet.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAK9C,eAAO,MAAM,MAAM,EAAE,YAqBpB,CAAA"}
1
+ {"version":3,"file":"getNet.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getNet.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK,mDAmBhB,CAAA"}
@@ -1,23 +1,21 @@
1
+ import { defineJsonRoute } from './defineRoute.js';
1
2
  import { emitRequest } from './types.js';
2
- import { parseNetRequestFilters, toNetRequestEventQuery } from './netFilters.js';
3
- import { respondJson, clampNumber } from '../httpUtils.js';
4
- export const handle = (_req, res, url, ctx) => {
5
- if (!ctx.netBuffer) {
6
- return respondJson(res, { ok: false, error: { code: 'net_disabled', message: 'Network capture is disabled for this watcher' } }, 400);
7
- }
8
- const filters = parseNetRequestFilters(url.searchParams, {
9
- after: clampNumber(url.searchParams.get('after'), 0),
10
- limit: clampNumber(url.searchParams.get('limit'), 500, 1, 5000),
11
- sinceTs: clampNumber(url.searchParams.get('sinceTs'), undefined),
12
- context: ctx.getNetFilterContext?.() ?? null,
13
- });
14
- if (filters.error || !filters.value) {
15
- return respondJson(res, { ok: false, error: { code: 'invalid_net_filter', message: filters.error ?? 'Invalid network filter' } }, 400);
16
- }
17
- emitRequest(ctx, res, 'net', toNetRequestEventQuery(filters.value));
18
- const requests = ctx.netBuffer.listAfter(filters.value.after, filters.value, filters.value.limit);
19
- const nextAfter = requests.length > 0 ? (requests[requests.length - 1]?.id ?? filters.value.after) : filters.value.after;
20
- const response = { ok: true, requests, nextAfter };
21
- respondJson(res, response);
22
- };
3
+ import { readNetFiltersFromUrl, respondNetDisabled, toNetRequestEventQuery } from './netFilters.js';
4
+ export const route = defineJsonRoute({
5
+ method: 'GET',
6
+ path: '/net',
7
+ handle: ({ res, url, ctx }) => {
8
+ if (!ctx.netBuffer) {
9
+ return respondNetDisabled(res);
10
+ }
11
+ const filters = readNetFiltersFromUrl(url, ctx, res);
12
+ if (!filters) {
13
+ return;
14
+ }
15
+ emitRequest(ctx, res, 'net', toNetRequestEventQuery(filters));
16
+ const requests = ctx.netBuffer.listAfter(filters.after, filters, filters.limit);
17
+ const nextAfter = requests.length > 0 ? (requests[requests.length - 1]?.id ?? filters.after) : filters.after;
18
+ return { ok: true, requests, nextAfter };
19
+ },
20
+ });
23
21
  //# sourceMappingURL=getNet.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNet.js","sourceRoot":"","sources":["../../../src/http/routes/getNet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAChF,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE1D,MAAM,CAAC,MAAM,MAAM,GAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;IAC3D,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;QACpB,OAAO,WAAW,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,8CAA8C,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;IACtI,CAAC;IAED,MAAM,OAAO,GAAG,sBAAsB,CAAC,GAAG,CA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AC5G,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAA;IACzC,CAAC;CACD,CAAC,CAAA"}
@@ -1,3 +1,2 @@
1
- import type { RouteHandler } from './types.js';
2
- export declare const handle: RouteHandler;
1
+ export declare const route: import("./defineRoute.js").WatcherRouteDefinition;
3
2
  //# sourceMappingURL=getNetRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNetRequest.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getNetRequest.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAK9C,eAAO,MAAM,MAAM,EAAE,YAsBpB,CAAA"}
1
+ {"version":3,"file":"getNetRequest.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getNetRequest.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,KAAK,mDAsBhB,CAAA"}
@@ -1,23 +1,25 @@
1
+ import { defineJsonRoute } from './defineRoute.js';
1
2
  import { emitRequest } from './types.js';
2
- import { respondJson } from '../httpUtils.js';
3
+ import { respondNetDisabled } from './netFilters.js';
3
4
  import { parseNetRequestLookup, resolveNetRequestLookup } from './netRequestLookup.js';
4
- export const handle = (_req, res, url, ctx) => {
5
- if (!ctx.netBuffer) {
6
- return respondJson(res, { ok: false, error: { code: 'net_disabled', message: 'Network capture is disabled for this watcher' } }, 400);
7
- }
8
- const lookup = parseNetRequestLookup(url.searchParams);
9
- if (!lookup) {
10
- return respondJson(res, { ok: false, error: { code: 'invalid_request', message: 'Either id or requestId is required' } }, 400);
11
- }
12
- emitRequest(ctx, res, 'net/request', {
13
- id: lookup.id,
14
- requestId: lookup.requestId,
15
- });
16
- const request = resolveNetRequestLookup(ctx.netBuffer, lookup);
17
- if (!request) {
18
- return respondJson(res, { ok: false, error: { code: 'not_found', message: 'Network request not found' } }, 404);
19
- }
20
- const response = { ok: true, request };
21
- respondJson(res, response);
22
- };
5
+ import { respondJson } from '../httpUtils.js';
6
+ export const route = defineJsonRoute({
7
+ method: 'GET',
8
+ path: '/net/request',
9
+ handle: ({ res, url, ctx }) => {
10
+ if (!ctx.netBuffer) {
11
+ return respondNetDisabled(res);
12
+ }
13
+ const lookup = parseNetRequestLookup(url.searchParams);
14
+ if (!lookup) {
15
+ return respondJson(res, { ok: false, error: { code: 'invalid_request', message: 'Either id or requestId is required' } }, 400);
16
+ }
17
+ emitRequest(ctx, res, 'net/request', { id: lookup.id, requestId: lookup.requestId });
18
+ const request = resolveNetRequestLookup(ctx.netBuffer, lookup);
19
+ if (!request) {
20
+ return respondJson(res, { ok: false, error: { code: 'not_found', message: 'Network request not found' } }, 404);
21
+ }
22
+ return { ok: true, request };
23
+ },
24
+ });
23
25
  //# sourceMappingURL=getNetRequest.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNetRequest.js","sourceRoot":"","sources":["../../../src/http/routes/getNetRequest.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAEtF,MAAM,CAAC,MAAM,MAAM,GAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;IAC3D,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;QACpB,OAAO,WAAW,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,8CAA8C,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;IACtI,CAAC;IAED,MAAM,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;IACtD,IAAI,CAAC,MAAM,EAAE,CAAC;QACb,OAAO,WAAW,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,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E;QAC7B,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;YACpB,OAAO,kBAAkB,CAAC,GAAG,CAAC,CAAA;QAC/B,CAAC;QAED,MAAM,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;QACtD,IAAI,CAAC,MAAM,EAAE,CAAC;YACb,OAAO,WAAW,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,oCAAoC,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;QAC/H,CAAC;QAED,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,aAAa,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC,CAAA;QAEpF,MAAM,OAAO,GAAG,uBAAuB,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;QAC9D,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,OAAO,WAAW,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,2BAA2B,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;QAChH,CAAC;QAED,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;IAC7B,CAAC;CACD,CAAC,CAAA"}
@@ -1,3 +1,2 @@
1
- import type { RouteHandler } from './types.js';
2
- export declare const handle: RouteHandler;
1
+ export declare const route: import("./defineRoute.js").WatcherRouteDefinition;
3
2
  //# sourceMappingURL=getNetRequestBody.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNetRequestBody.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getNetRequestBody.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAgB,YAAY,EAAE,MAAM,YAAY,CAAA;AAM5D,eAAO,MAAM,MAAM,EAAE,YA4DpB,CAAA"}
1
+ {"version":3,"file":"getNetRequestBody.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getNetRequestBody.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,KAAK,mDA4DhB,CAAA"}
@@ -1,58 +1,60 @@
1
+ import { defineJsonRoute } from './defineRoute.js';
1
2
  import { emitRequest } from './types.js';
2
- import { respondError, respondJson } from '../httpUtils.js';
3
3
  import { normalizeNetBodyError, readNetworkBody } from '../../cdp/networkBody.js';
4
+ import { respondNetDisabled } from './netFilters.js';
4
5
  import { parseNetRequestLookup, resolveNetRequestLookupRecord } from './netRequestLookup.js';
5
- export const handle = async (_req, res, url, ctx) => {
6
- if (!ctx.netBuffer) {
7
- return respondJson(res, { ok: false, error: { code: 'net_disabled', message: 'Network capture is disabled for this watcher' } }, 400);
8
- }
9
- const lookup = parseNetRequestLookup(url.searchParams);
10
- if (!lookup) {
11
- return respondJson(res, { ok: false, error: { code: 'invalid_request', message: 'Either id or requestId is required' } }, 400);
12
- }
13
- const part = parseBodyPart(url.searchParams.get('part'));
14
- if (!part) {
15
- return respondJson(res, { ok: false, error: { code: 'invalid_request', message: 'part must be "request" or "response"' } }, 400);
16
- }
17
- emitRequest(ctx, res, 'net/request/body', {
18
- id: lookup.id,
19
- requestId: lookup.requestId,
20
- part,
21
- });
22
- const record = resolveNetRequestLookupRecord(ctx.netBuffer, lookup);
23
- if (!record) {
24
- return respondJson(res, { ok: false, error: { code: 'not_found', message: 'Network request not found' } }, 404);
25
- }
26
- const { detail: request, bodySessionId } = record;
27
- if (!request.body[part]) {
28
- return respondJson(res, { ok: false, error: { code: 'body_not_available', message: `${capitalizePart(part)} body not available for this request` } }, 404);
29
- }
30
- try {
31
- const body = await readNetworkBody({
32
- session: ctx.pageCdpSession,
33
- request,
34
- sessionId: resolveBodySessionId(ctx, request.frameId, bodySessionId),
35
- part,
36
- });
37
- const response = {
38
- ok: true,
39
- id: request.id,
40
- requestId: request.requestId,
41
- part,
42
- mimeType: body.mimeType,
43
- body: body.body,
44
- base64Encoded: body.base64Encoded,
45
- };
46
- respondJson(res, response);
47
- }
48
- catch (error) {
49
- const normalizedError = normalizeNetBodyError(error, part);
50
- if (normalizedError.code === 'body_not_available') {
51
- return respondJson(res, { ok: false, error: { code: 'body_not_available', message: normalizedError.message } }, 404);
6
+ import { respondJson } from '../httpUtils.js';
7
+ export const route = defineJsonRoute({
8
+ method: 'GET',
9
+ path: '/net/request/body',
10
+ handle: async ({ res, url, ctx }) => {
11
+ if (!ctx.netBuffer) {
12
+ return respondNetDisabled(res);
52
13
  }
53
- respondError(res, normalizedError);
54
- }
55
- };
14
+ const lookup = parseNetRequestLookup(url.searchParams);
15
+ if (!lookup) {
16
+ return respondJson(res, { ok: false, error: { code: 'invalid_request', message: 'Either id or requestId is required' } }, 400);
17
+ }
18
+ const part = parseBodyPart(url.searchParams.get('part'));
19
+ if (!part) {
20
+ return respondJson(res, { ok: false, error: { code: 'invalid_request', message: 'part must be "request" or "response"' } }, 400);
21
+ }
22
+ emitRequest(ctx, res, 'net/request/body', { id: lookup.id, requestId: lookup.requestId, part });
23
+ const record = resolveNetRequestLookupRecord(ctx.netBuffer, lookup);
24
+ if (!record) {
25
+ return respondJson(res, { ok: false, error: { code: 'not_found', message: 'Network request not found' } }, 404);
26
+ }
27
+ const { detail: request, bodySessionId } = record;
28
+ if (!request.body[part]) {
29
+ return respondJson(res, { ok: false, error: { code: 'body_not_available', message: `${capitalizePart(part)} body not available for this request` } }, 404);
30
+ }
31
+ try {
32
+ const body = await readNetworkBody({
33
+ session: ctx.pageCdpSession,
34
+ request,
35
+ sessionId: resolveBodySessionId(ctx, request.frameId, bodySessionId),
36
+ part,
37
+ });
38
+ return {
39
+ ok: true,
40
+ id: request.id,
41
+ requestId: request.requestId,
42
+ part,
43
+ mimeType: body.mimeType,
44
+ body: body.body,
45
+ base64Encoded: body.base64Encoded,
46
+ };
47
+ }
48
+ catch (error) {
49
+ // normalizeNetBodyError maps CDP failures onto stable codes; body_not_available stays a 404.
50
+ const normalizedError = normalizeNetBodyError(error, part);
51
+ if (normalizedError.code === 'body_not_available') {
52
+ return respondJson(res, { ok: false, error: { code: 'body_not_available', message: normalizedError.message } }, 404);
53
+ }
54
+ throw normalizedError;
55
+ }
56
+ },
57
+ });
56
58
  const parseBodyPart = (value) => {
57
59
  if (!value || value === 'response') {
58
60
  return 'response';
@@ -1 +1 @@
1
- {"version":3,"file":"getNetRequestBody.js","sourceRoot":"","sources":["../../../src/http/routes/getNetRequestBody.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AACjF,OAAO,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAA;AAE5F,MAAM,CAAC,MAAM,MAAM,GAAiB,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;IACjE,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;QACpB,OAAO,WAAW,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,8CAA8C,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;IACtI,CAAC;IAED,MAAM,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;IACtD,IAAI,CAAC,MAAM,EAAE,CAAC;QACb,OAAO,WAAW,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,oCAAoC,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;IAC/H,CAAC;IAED,MAAM,IAAI,G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AI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA;AAEhH;;;;GAIG;AACH,MAAM,oBAAoB,GAAG,CAAC,GAAiB,EAAE,OAAsB,EAAE,eAA8B,EAAiB,EAAE;IACzH,IAAI,eAAe,EAAE,CAAC;QACrB,OAAO,eAAe,CAAA;IACvB,CAAC;IAED,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,OAAO,IAAI,CAAA;IACZ,CAAC;IAED,OAAO,GAAG,CAAC,YAAY,EAAE,iBAAiB,EAAE,CAAC,OAAO,CAAC,IAAI,IAAI,CAAA;AAC9D,CAAC,CAAA"}
@@ -1,3 +1,2 @@
1
- import type { RouteHandler } from './types.js';
2
- export declare const handle: RouteHandler;
1
+ export declare const route: import("./defineRoute.js").WatcherRouteDefinition;
3
2
  //# sourceMappingURL=getNetRequests.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNetRequests.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getNetRequests.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAK9C,eAAO,MAAM,MAAM,EAAE,YAqBpB,CAAA"}
1
+ {"version":3,"file":"getNetRequests.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getNetRequests.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK,mDAmBhB,CAAA"}
@@ -1,23 +1,21 @@
1
+ import { defineJsonRoute } from './defineRoute.js';
1
2
  import { emitRequest } from './types.js';
2
- import { parseNetRequestFilters, toNetRequestEventQuery } from './netFilters.js';
3
- import { respondJson, clampNumber } from '../httpUtils.js';
4
- export const handle = (_req, res, url, ctx) => {
5
- if (!ctx.netBuffer) {
6
- return respondJson(res, { ok: false, error: { code: 'net_disabled', message: 'Network capture is disabled for this watcher' } }, 400);
7
- }
8
- const filters = parseNetRequestFilters(url.searchParams, {
9
- after: clampNumber(url.searchParams.get('after'), 0),
10
- limit: clampNumber(url.searchParams.get('limit'), 500, 1, 5000),
11
- sinceTs: clampNumber(url.searchParams.get('sinceTs'), undefined),
12
- context: ctx.getNetFilterContext?.() ?? null,
13
- });
14
- if (filters.error || !filters.value) {
15
- return respondJson(res, { ok: false, error: { code: 'invalid_net_filter', message: filters.error ?? 'Invalid network filter' } }, 400);
16
- }
17
- emitRequest(ctx, res, 'net/requests', toNetRequestEventQuery(filters.value));
18
- const requests = ctx.netBuffer.listDetailsAfter(filters.value.after, filters.value, filters.value.limit);
19
- const nextAfter = requests.length > 0 ? (requests[requests.length - 1]?.id ?? filters.value.after) : filters.value.after;
20
- const response = { ok: true, requests, nextAfter };
21
- respondJson(res, response);
22
- };
3
+ import { readNetFiltersFromUrl, respondNetDisabled, toNetRequestEventQuery } from './netFilters.js';
4
+ export const route = defineJsonRoute({
5
+ method: 'GET',
6
+ path: '/net/requests',
7
+ handle: ({ res, url, ctx }) => {
8
+ if (!ctx.netBuffer) {
9
+ return respondNetDisabled(res);
10
+ }
11
+ const filters = readNetFiltersFromUrl(url, ctx, res);
12
+ if (!filters) {
13
+ return;
14
+ }
15
+ emitRequest(ctx, res, 'net/requests', toNetRequestEventQuery(filters));
16
+ const requests = ctx.netBuffer.listDetailsAfter(filters.after, filters, filters.limit);
17
+ const nextAfter = requests.length > 0 ? (requests[requests.length - 1]?.id ?? filters.after) : filters.after;
18
+ return { ok: true, requests, nextAfter };
19
+ },
20
+ });
23
21
  //# sourceMappingURL=getNetRequests.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNetRequests.js","sourceRoot":"","sources":["../../../src/http/routes/getNetRequests.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAChF,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAA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