@vforsh/argus-watcher 0.1.11 → 0.1.13

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 (329) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/cdp/mouse.d.ts +19 -3
  3. package/dist/cdp/mouse.d.ts.map +1 -1
  4. package/dist/cdp/mouse.js +57 -9
  5. package/dist/cdp/mouse.js.map +1 -1
  6. package/dist/cdp/pageIndicator.d.ts +5 -0
  7. package/dist/cdp/pageIndicator.d.ts.map +1 -1
  8. package/dist/cdp/pageIndicator.js +22 -254
  9. package/dist/cdp/pageIndicator.js.map +1 -1
  10. package/dist/cdp/pageIndicatorScript.d.ts +20 -0
  11. package/dist/cdp/pageIndicatorScript.d.ts.map +1 -0
  12. package/dist/cdp/pageIndicatorScript.js +405 -0
  13. package/dist/cdp/pageIndicatorScript.js.map +1 -0
  14. package/dist/cdp/recording.d.ts +15 -0
  15. package/dist/cdp/recording.d.ts.map +1 -0
  16. package/dist/cdp/recording.js +389 -0
  17. package/dist/cdp/recording.js.map +1 -0
  18. package/dist/cdp/screenshot.d.ts.map +1 -1
  19. package/dist/cdp/screenshot.js +2 -133
  20. package/dist/cdp/screenshot.js.map +1 -1
  21. package/dist/cdp/visualCapture.d.ts +38 -0
  22. package/dist/cdp/visualCapture.d.ts.map +1 -0
  23. package/dist/cdp/visualCapture.js +156 -0
  24. package/dist/cdp/visualCapture.js.map +1 -0
  25. package/dist/events.d.ts +1 -1
  26. package/dist/events.d.ts.map +1 -1
  27. package/dist/http/routes/authCookies.d.ts +5 -10
  28. package/dist/http/routes/authCookies.d.ts.map +1 -1
  29. package/dist/http/routes/authCookies.js +17 -30
  30. package/dist/http/routes/authCookies.js.map +1 -1
  31. package/dist/http/routes/defineDomTargetRoute.d.ts +14 -5
  32. package/dist/http/routes/defineDomTargetRoute.d.ts.map +1 -1
  33. package/dist/http/routes/defineDomTargetRoute.js +27 -33
  34. package/dist/http/routes/defineDomTargetRoute.js.map +1 -1
  35. package/dist/http/routes/defineRoute.d.ts +9 -0
  36. package/dist/http/routes/defineRoute.d.ts.map +1 -1
  37. package/dist/http/routes/defineRoute.js +9 -9
  38. package/dist/http/routes/defineRoute.js.map +1 -1
  39. package/dist/http/routes/domSelectorRoute.d.ts +4 -11
  40. package/dist/http/routes/domSelectorRoute.d.ts.map +1 -1
  41. package/dist/http/routes/domSelectorRoute.js +9 -17
  42. package/dist/http/routes/domSelectorRoute.js.map +1 -1
  43. package/dist/http/routes/getAuthCookies.d.ts +1 -2
  44. package/dist/http/routes/getAuthCookies.d.ts.map +1 -1
  45. package/dist/http/routes/getAuthCookies.js +14 -14
  46. package/dist/http/routes/getAuthCookies.js.map +1 -1
  47. package/dist/http/routes/getAuthState.d.ts +1 -2
  48. package/dist/http/routes/getAuthState.d.ts.map +1 -1
  49. package/dist/http/routes/getAuthState.js +13 -13
  50. package/dist/http/routes/getAuthState.js.map +1 -1
  51. package/dist/http/routes/getDialog.d.ts +1 -2
  52. package/dist/http/routes/getDialog.d.ts.map +1 -1
  53. package/dist/http/routes/getDialog.js +7 -10
  54. package/dist/http/routes/getDialog.js.map +1 -1
  55. package/dist/http/routes/getEmulation.d.ts +1 -2
  56. package/dist/http/routes/getEmulation.d.ts.map +1 -1
  57. package/dist/http/routes/getEmulation.js +7 -7
  58. package/dist/http/routes/getEmulation.js.map +1 -1
  59. package/dist/http/routes/getExtensionDiagnostics.d.ts +2 -0
  60. package/dist/http/routes/getExtensionDiagnostics.d.ts.map +1 -0
  61. package/dist/http/routes/getExtensionDiagnostics.js +16 -0
  62. package/dist/http/routes/getExtensionDiagnostics.js.map +1 -0
  63. package/dist/http/routes/getExtensionTabs.d.ts +1 -2
  64. package/dist/http/routes/getExtensionTabs.d.ts.map +1 -1
  65. package/dist/http/routes/getExtensionTabs.js +18 -16
  66. package/dist/http/routes/getExtensionTabs.js.map +1 -1
  67. package/dist/http/routes/getLogs.d.ts +1 -2
  68. package/dist/http/routes/getLogs.d.ts.map +1 -1
  69. package/dist/http/routes/getLogs.js +31 -26
  70. package/dist/http/routes/getLogs.js.map +1 -1
  71. package/dist/http/routes/getNet.d.ts +1 -2
  72. package/dist/http/routes/getNet.d.ts.map +1 -1
  73. package/dist/http/routes/getNet.js +19 -21
  74. package/dist/http/routes/getNet.js.map +1 -1
  75. package/dist/http/routes/getNetRequest.d.ts +1 -2
  76. package/dist/http/routes/getNetRequest.d.ts.map +1 -1
  77. package/dist/http/routes/getNetRequest.js +22 -20
  78. package/dist/http/routes/getNetRequest.js.map +1 -1
  79. package/dist/http/routes/getNetRequestBody.d.ts +1 -2
  80. package/dist/http/routes/getNetRequestBody.d.ts.map +1 -1
  81. package/dist/http/routes/getNetRequestBody.js +53 -51
  82. package/dist/http/routes/getNetRequestBody.js.map +1 -1
  83. package/dist/http/routes/getNetRequests.d.ts +1 -2
  84. package/dist/http/routes/getNetRequests.d.ts.map +1 -1
  85. package/dist/http/routes/getNetRequests.js +19 -21
  86. package/dist/http/routes/getNetRequests.js.map +1 -1
  87. package/dist/http/routes/getNetSse.d.ts +1 -2
  88. package/dist/http/routes/getNetSse.d.ts.map +1 -1
  89. package/dist/http/routes/getNetSse.js +19 -21
  90. package/dist/http/routes/getNetSse.js.map +1 -1
  91. package/dist/http/routes/getNetTail.d.ts +1 -2
  92. package/dist/http/routes/getNetTail.d.ts.map +1 -1
  93. package/dist/http/routes/getNetTail.js +21 -30
  94. package/dist/http/routes/getNetTail.js.map +1 -1
  95. package/dist/http/routes/getNetWebSocketConnection.d.ts +1 -2
  96. package/dist/http/routes/getNetWebSocketConnection.d.ts.map +1 -1
  97. package/dist/http/routes/getNetWebSocketConnection.js +22 -17
  98. package/dist/http/routes/getNetWebSocketConnection.js.map +1 -1
  99. package/dist/http/routes/getNetWebSockets.d.ts +1 -2
  100. package/dist/http/routes/getNetWebSockets.d.ts.map +1 -1
  101. package/dist/http/routes/getNetWebSockets.js +19 -21
  102. package/dist/http/routes/getNetWebSockets.js.map +1 -1
  103. package/dist/http/routes/getStatus.d.ts +1 -2
  104. package/dist/http/routes/getStatus.d.ts.map +1 -1
  105. package/dist/http/routes/getStatus.js +6 -4
  106. package/dist/http/routes/getStatus.js.map +1 -1
  107. package/dist/http/routes/getTail.d.ts +1 -2
  108. package/dist/http/routes/getTail.d.ts.map +1 -1
  109. package/dist/http/routes/getTail.js +31 -26
  110. package/dist/http/routes/getTail.js.map +1 -1
  111. package/dist/http/routes/getTargets.d.ts +1 -2
  112. package/dist/http/routes/getTargets.d.ts.map +1 -1
  113. package/dist/http/routes/getTargets.js +14 -13
  114. package/dist/http/routes/getTargets.js.map +1 -1
  115. package/dist/http/routes/getThrottle.d.ts +1 -2
  116. package/dist/http/routes/getThrottle.d.ts.map +1 -1
  117. package/dist/http/routes/getThrottle.js +7 -7
  118. package/dist/http/routes/getThrottle.js.map +1 -1
  119. package/dist/http/routes/index.d.ts +5 -1
  120. package/dist/http/routes/index.d.ts.map +1 -1
  121. package/dist/http/routes/index.js +121 -114
  122. package/dist/http/routes/index.js.map +1 -1
  123. package/dist/http/routes/netFilters.d.ts +10 -0
  124. package/dist/http/routes/netFilters.d.ts.map +1 -1
  125. package/dist/http/routes/netFilters.js +23 -1
  126. package/dist/http/routes/netFilters.js.map +1 -1
  127. package/dist/http/routes/netMock.d.ts +3 -0
  128. package/dist/http/routes/netMock.d.ts.map +1 -0
  129. package/dist/http/routes/netMock.js +141 -0
  130. package/dist/http/routes/netMock.js.map +1 -0
  131. package/dist/http/routes/postAttach.d.ts +1 -2
  132. package/dist/http/routes/postAttach.d.ts.map +1 -1
  133. package/dist/http/routes/postAttach.js +23 -22
  134. package/dist/http/routes/postAttach.js.map +1 -1
  135. package/dist/http/routes/postAuthStateLoad.d.ts +1 -2
  136. package/dist/http/routes/postAuthStateLoad.d.ts.map +1 -1
  137. package/dist/http/routes/postAuthStateLoad.js +29 -34
  138. package/dist/http/routes/postAuthStateLoad.js.map +1 -1
  139. package/dist/http/routes/postCodeEdit.d.ts +1 -2
  140. package/dist/http/routes/postCodeEdit.d.ts.map +1 -1
  141. package/dist/http/routes/postCodeEdit.js +20 -25
  142. package/dist/http/routes/postCodeEdit.js.map +1 -1
  143. package/dist/http/routes/postCodeGrep.d.ts +1 -2
  144. package/dist/http/routes/postCodeGrep.d.ts.map +1 -1
  145. package/dist/http/routes/postCodeGrep.js +20 -25
  146. package/dist/http/routes/postCodeGrep.js.map +1 -1
  147. package/dist/http/routes/postCodeList.d.ts +1 -2
  148. package/dist/http/routes/postCodeList.d.ts.map +1 -1
  149. package/dist/http/routes/postCodeList.js +14 -19
  150. package/dist/http/routes/postCodeList.js.map +1 -1
  151. package/dist/http/routes/postCodeRead.d.ts +1 -2
  152. package/dist/http/routes/postCodeRead.d.ts.map +1 -1
  153. package/dist/http/routes/postCodeRead.js +24 -29
  154. package/dist/http/routes/postCodeRead.js.map +1 -1
  155. package/dist/http/routes/postDetach.d.ts +1 -2
  156. package/dist/http/routes/postDetach.d.ts.map +1 -1
  157. package/dist/http/routes/postDetach.js +23 -22
  158. package/dist/http/routes/postDetach.js.map +1 -1
  159. package/dist/http/routes/postDialog.d.ts +1 -2
  160. package/dist/http/routes/postDialog.d.ts.map +1 -1
  161. package/dist/http/routes/postDialog.js +30 -29
  162. package/dist/http/routes/postDialog.js.map +1 -1
  163. package/dist/http/routes/postDomAdd.d.ts +1 -2
  164. package/dist/http/routes/postDomAdd.d.ts.map +1 -1
  165. package/dist/http/routes/postDomAdd.js +44 -48
  166. package/dist/http/routes/postDomAdd.js.map +1 -1
  167. package/dist/http/routes/postDomClick.d.ts +0 -1
  168. package/dist/http/routes/postDomClick.d.ts.map +1 -1
  169. package/dist/http/routes/postDomClick.js +12 -21
  170. package/dist/http/routes/postDomClick.js.map +1 -1
  171. package/dist/http/routes/postDomDrag.d.ts +2 -0
  172. package/dist/http/routes/postDomDrag.d.ts.map +1 -0
  173. package/dist/http/routes/postDomDrag.js +54 -0
  174. package/dist/http/routes/postDomDrag.js.map +1 -0
  175. package/dist/http/routes/postDomFill.d.ts +1 -2
  176. package/dist/http/routes/postDomFill.d.ts.map +1 -1
  177. package/dist/http/routes/postDomFill.js +17 -49
  178. package/dist/http/routes/postDomFill.js.map +1 -1
  179. package/dist/http/routes/postDomInfo.d.ts +1 -2
  180. package/dist/http/routes/postDomInfo.d.ts.map +1 -1
  181. package/dist/http/routes/postDomInfo.js +14 -20
  182. package/dist/http/routes/postDomInfo.js.map +1 -1
  183. package/dist/http/routes/postDomKeydown.d.ts +1 -2
  184. package/dist/http/routes/postDomKeydown.d.ts.map +1 -1
  185. package/dist/http/routes/postDomKeydown.js +26 -30
  186. package/dist/http/routes/postDomKeydown.js.map +1 -1
  187. package/dist/http/routes/postDomModify.d.ts +1 -2
  188. package/dist/http/routes/postDomModify.d.ts.map +1 -1
  189. package/dist/http/routes/postDomModify.js +30 -41
  190. package/dist/http/routes/postDomModify.js.map +1 -1
  191. package/dist/http/routes/postDomRemove.d.ts +1 -2
  192. package/dist/http/routes/postDomRemove.d.ts.map +1 -1
  193. package/dist/http/routes/postDomRemove.js +13 -18
  194. package/dist/http/routes/postDomRemove.js.map +1 -1
  195. package/dist/http/routes/postDomScroll.d.ts +1 -2
  196. package/dist/http/routes/postDomScroll.d.ts.map +1 -1
  197. package/dist/http/routes/postDomScroll.js +37 -42
  198. package/dist/http/routes/postDomScroll.js.map +1 -1
  199. package/dist/http/routes/postDomScrollTo.d.ts +1 -2
  200. package/dist/http/routes/postDomScrollTo.d.ts.map +1 -1
  201. package/dist/http/routes/postDomScrollTo.js +42 -48
  202. package/dist/http/routes/postDomScrollTo.js.map +1 -1
  203. package/dist/http/routes/postDomSetFile.d.ts +1 -2
  204. package/dist/http/routes/postDomSetFile.d.ts.map +1 -1
  205. package/dist/http/routes/postDomSetFile.js +29 -32
  206. package/dist/http/routes/postDomSetFile.js.map +1 -1
  207. package/dist/http/routes/postDomTree.d.ts +1 -2
  208. package/dist/http/routes/postDomTree.d.ts.map +1 -1
  209. package/dist/http/routes/postDomTree.js +13 -17
  210. package/dist/http/routes/postDomTree.js.map +1 -1
  211. package/dist/http/routes/postEmulation.d.ts +1 -2
  212. package/dist/http/routes/postEmulation.d.ts.map +1 -1
  213. package/dist/http/routes/postEmulation.js +29 -39
  214. package/dist/http/routes/postEmulation.js.map +1 -1
  215. package/dist/http/routes/postEval.d.ts +1 -2
  216. package/dist/http/routes/postEval.d.ts.map +1 -1
  217. package/dist/http/routes/postEval.js +22 -26
  218. package/dist/http/routes/postEval.js.map +1 -1
  219. package/dist/http/routes/postLocate.d.ts +2 -4
  220. package/dist/http/routes/postLocate.d.ts.map +1 -1
  221. package/dist/http/routes/postLocate.js +40 -60
  222. package/dist/http/routes/postLocate.js.map +1 -1
  223. package/dist/http/routes/postNetClear.d.ts +1 -2
  224. package/dist/http/routes/postNetClear.d.ts.map +1 -1
  225. package/dist/http/routes/postNetClear.js +14 -13
  226. package/dist/http/routes/postNetClear.js.map +1 -1
  227. package/dist/http/routes/postRecord.d.ts +3 -0
  228. package/dist/http/routes/postRecord.d.ts.map +1 -0
  229. package/dist/http/routes/postRecord.js +88 -0
  230. package/dist/http/routes/postRecord.js.map +1 -0
  231. package/dist/http/routes/postReload.d.ts +1 -2
  232. package/dist/http/routes/postReload.d.ts.map +1 -1
  233. package/dist/http/routes/postReload.js +10 -16
  234. package/dist/http/routes/postReload.js.map +1 -1
  235. package/dist/http/routes/postScreenshot.d.ts +1 -2
  236. package/dist/http/routes/postScreenshot.d.ts.map +1 -1
  237. package/dist/http/routes/postScreenshot.js +11 -22
  238. package/dist/http/routes/postScreenshot.js.map +1 -1
  239. package/dist/http/routes/postShutdown.d.ts +1 -2
  240. package/dist/http/routes/postShutdown.d.ts.map +1 -1
  241. package/dist/http/routes/postShutdown.js +15 -11
  242. package/dist/http/routes/postShutdown.js.map +1 -1
  243. package/dist/http/routes/postSnapshot.d.ts +1 -2
  244. package/dist/http/routes/postSnapshot.d.ts.map +1 -1
  245. package/dist/http/routes/postSnapshot.js +21 -26
  246. package/dist/http/routes/postSnapshot.js.map +1 -1
  247. package/dist/http/routes/postThrottle.d.ts +1 -2
  248. package/dist/http/routes/postThrottle.d.ts.map +1 -1
  249. package/dist/http/routes/postThrottle.js +26 -35
  250. package/dist/http/routes/postThrottle.js.map +1 -1
  251. package/dist/http/routes/postTraceStart.d.ts +1 -2
  252. package/dist/http/routes/postTraceStart.d.ts.map +1 -1
  253. package/dist/http/routes/postTraceStart.js +8 -16
  254. package/dist/http/routes/postTraceStart.js.map +1 -1
  255. package/dist/http/routes/postTraceStop.d.ts +1 -2
  256. package/dist/http/routes/postTraceStop.d.ts.map +1 -1
  257. package/dist/http/routes/postTraceStop.js +8 -16
  258. package/dist/http/routes/postTraceStop.js.map +1 -1
  259. package/dist/http/routes/postVisibility.d.ts +1 -2
  260. package/dist/http/routes/postVisibility.d.ts.map +1 -1
  261. package/dist/http/routes/postVisibility.js +21 -27
  262. package/dist/http/routes/postVisibility.js.map +1 -1
  263. package/dist/http/routes/storage.d.ts +2 -4
  264. package/dist/http/routes/storage.d.ts.map +1 -1
  265. package/dist/http/routes/storage.js +13 -25
  266. package/dist/http/routes/storage.js.map +1 -1
  267. package/dist/http/server.d.ts +6 -1
  268. package/dist/http/server.d.ts.map +1 -1
  269. package/dist/http/server.js.map +1 -1
  270. package/dist/index.d.ts +5 -5
  271. package/dist/index.d.ts.map +1 -1
  272. package/dist/index.js.map +1 -1
  273. package/dist/native-messaging/control-session-manager.d.ts +36 -0
  274. package/dist/native-messaging/control-session-manager.d.ts.map +1 -0
  275. package/dist/native-messaging/control-session-manager.js +96 -0
  276. package/dist/native-messaging/control-session-manager.js.map +1 -0
  277. package/dist/native-messaging/messaging.d.ts +4 -4
  278. package/dist/native-messaging/messaging.d.ts.map +1 -1
  279. package/dist/native-messaging/messaging.js.map +1 -1
  280. package/dist/native-messaging/session-manager.d.ts +2 -15
  281. package/dist/native-messaging/session-manager.d.ts.map +1 -1
  282. package/dist/native-messaging/session-manager.js +0 -34
  283. package/dist/native-messaging/session-manager.js.map +1 -1
  284. package/dist/native-messaging/types.d.ts +78 -2
  285. package/dist/native-messaging/types.d.ts.map +1 -1
  286. package/dist/net/NetMockController.d.ts +26 -0
  287. package/dist/net/NetMockController.d.ts.map +1 -0
  288. package/dist/net/NetMockController.js +264 -0
  289. package/dist/net/NetMockController.js.map +1 -0
  290. package/dist/runtime/watcherServices.d.ts +3 -0
  291. package/dist/runtime/watcherServices.d.ts.map +1 -1
  292. package/dist/runtime/watcherServices.js +14 -1
  293. package/dist/runtime/watcherServices.js.map +1 -1
  294. package/dist/runtime/watcherSetup.d.ts +3 -0
  295. package/dist/runtime/watcherSetup.d.ts.map +1 -1
  296. package/dist/runtime/watcherSetup.js +4 -0
  297. package/dist/runtime/watcherSetup.js.map +1 -1
  298. package/dist/scripts/install-host.js +58 -54
  299. package/dist/scripts/install-host.js.map +1 -1
  300. package/dist/sources/extension-control-source.d.ts +9 -0
  301. package/dist/sources/extension-control-source.d.ts.map +1 -0
  302. package/dist/sources/extension-control-source.js +109 -0
  303. package/dist/sources/extension-control-source.js.map +1 -0
  304. package/dist/sources/extension-frame-state.d.ts +5 -0
  305. package/dist/sources/extension-frame-state.d.ts.map +1 -1
  306. package/dist/sources/extension-frame-state.js +7 -0
  307. package/dist/sources/extension-frame-state.js.map +1 -1
  308. package/dist/sources/extension-source.d.ts +3 -1
  309. package/dist/sources/extension-source.d.ts.map +1 -1
  310. package/dist/sources/extension-source.js +50 -137
  311. package/dist/sources/extension-source.js.map +1 -1
  312. package/dist/sources/extension-target-recovery.d.ts +32 -0
  313. package/dist/sources/extension-target-recovery.d.ts.map +1 -0
  314. package/dist/sources/extension-target-recovery.js +114 -0
  315. package/dist/sources/extension-target-recovery.js.map +1 -0
  316. package/dist/sources/types.d.ts +8 -3
  317. package/dist/sources/types.d.ts.map +1 -1
  318. package/dist/startWatcherRuntime.d.ts.map +1 -1
  319. package/dist/startWatcherRuntime.js +12 -2
  320. package/dist/startWatcherRuntime.js.map +1 -1
  321. package/package.json +1 -1
  322. package/dist/http/routes/postStorageLocal.d.ts +0 -2
  323. package/dist/http/routes/postStorageLocal.d.ts.map +0 -1
  324. package/dist/http/routes/postStorageLocal.js +0 -3
  325. package/dist/http/routes/postStorageLocal.js.map +0 -1
  326. package/dist/http/routes/postStorageSession.d.ts +0 -2
  327. package/dist/http/routes/postStorageSession.d.ts.map +0 -1
  328. package/dist/http/routes/postStorageSession.js +0 -3
  329. package/dist/http/routes/postStorageSession.js.map +0 -1
@@ -1,28 +1,20 @@
1
- import { respondInvalidBody, respondJson, readJsonBody } from '../httpUtils.js';
1
+ import { respondJson } from '../httpUtils.js';
2
2
  /**
3
- * Shared parser for DOM routes that require a selector and optional `all` toggle.
4
- * Keeps route modules focused on the actual DOM operation.
3
+ * Validate the shared DOM target body shape (exactly one of selector/ref, plus
4
+ * an optional `all` toggle). Returns an error message, or null when valid.
5
+ * Used as the base `validate` step by DOM routes built on `defineJsonRoute`.
5
6
  */
6
- export const readDomTargetPayload = async (req, res) => {
7
- const payload = await readJsonBody(req, res);
8
- if (!payload) {
9
- return null;
10
- }
7
+ export const validateDomTargetBody = (payload) => {
11
8
  const hasSelector = typeof payload.selector === 'string' && payload.selector.trim() !== '';
12
9
  const hasRef = typeof payload.ref === 'string' && payload.ref.trim() !== '';
13
10
  if (hasSelector === hasRef) {
14
- respondInvalidBody(res, 'Exactly one of selector or ref is required');
15
- return null;
11
+ return 'Exactly one of selector or ref is required';
16
12
  }
17
- const all = payload.all ?? false;
18
- if (typeof all !== 'boolean') {
19
- respondInvalidBody(res, 'all must be a boolean');
20
- return null;
13
+ if (typeof (payload.all ?? false) !== 'boolean') {
14
+ return 'all must be a boolean';
21
15
  }
22
- return { payload, all };
16
+ return null;
23
17
  };
24
- /** Backwards-compatible alias used by selector-only routes while they migrate to ref support. */
25
- export const readDomSelectorPayload = readDomTargetPayload;
26
18
  export const respondMultipleMatches = (res, matches, action) => {
27
19
  respondJson(res, {
28
20
  ok: false,
@@ -1 +1 @@
1
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AAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACzC,OAAO,KAAK,CAAA;IACb,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,IAAI,KAAK,CAAC,CAAC,CAAE,KAA4B,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAA;IAC7E,IAAI,IAAI,KAAK,aAAa,EAAE,CAAC;QAC5B,OAAO,KAAK,CAAA;IACb,CAAC;IAED,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,mEAAmE,CAAA;IAC7I,WAAW,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;IAC7E,OAAO,IAAI,CAAA;AACZ,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=getAuthCookies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getAuthCookies.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getAuthCookies.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAK9C,eAAO,MAAM,MAAM,EAAE,YAepB,CAAA"}
1
+ {"version":3,"file":"getAuthCookies.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getAuthCookies.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK,mDAehB,CAAA"}
@@ -1,19 +1,19 @@
1
- import { emitRequest } from './types.js';
2
1
  import { inspectAuthCookies } from '../../cdp/auth.js';
3
- import { normalizeQueryValue, respondError, respondJson } from '../httpUtils.js';
4
- export const handle = async (_req, res, url, ctx) => {
5
- const domain = normalizeQueryValue(url.searchParams.get('domain'));
6
- const includeValues = url.searchParams.get('includeValues') === 'true';
7
- emitRequest(ctx, res, 'auth/cookies', { domain, includeValues });
8
- try {
9
- const response = await inspectAuthCookies(ctx.cdpSession, {
2
+ import { defineJsonRoute } from './defineRoute.js';
3
+ import { normalizeQueryValue } from '../httpUtils.js';
4
+ import { emitRequest } from './types.js';
5
+ export const route = defineJsonRoute({
6
+ method: 'GET',
7
+ path: '/auth/cookies',
8
+ handle: ({ res, url, ctx }) => {
9
+ const domain = normalizeQueryValue(url.searchParams.get('domain'));
10
+ const includeValues = url.searchParams.get('includeValues') === 'true';
11
+ // Emitted manually to include query metadata in the request event.
12
+ emitRequest(ctx, res, 'auth/cookies', { domain, includeValues });
13
+ return inspectAuthCookies(ctx.cdpSession, {
10
14
  domain: domain ?? undefined,
11
15
  includeValues,
12
16
  });
13
- respondJson(res, response);
14
- }
15
- catch (error) {
16
- respondError(res, error);
17
- }
18
- };
17
+ },
18
+ });
19
19
  //# sourceMappingURL=getAuthCookies.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getAuthCookies.js","sourceRoot":"","sources":["../../../src/http/routes/getAuthCookies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AACtD,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;IAClE,MAAM,aAAa,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,eAAe,CAAC,KAAK,MAAM,CAAA;IAEtE,WAAW,CAAC,GAAG,EAAE,GAAG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AAI,SAAS;YAC3B,aAAa;SACb,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=getAuthState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getAuthState.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getAuthState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAK9C,eAAO,MAAM,MAAM,EAAE,YAoBpB,CAAA"}
1
+ {"version":3,"file":"getAuthState.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getAuthState.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK,mDAoBhB,CAAA"}
@@ -1,12 +1,16 @@
1
- import { emitRequest } from './types.js';
2
1
  import { inspectAuthState } from '../../cdp/auth.js';
3
- import { normalizeQueryValue, respondError, respondJson } from '../httpUtils.js';
4
- export const handle = async (_req, res, url, ctx) => {
5
- const domain = normalizeQueryValue(url.searchParams.get('domain'));
6
- emitRequest(ctx, res, 'auth/state', { domain });
7
- try {
2
+ import { defineJsonRoute } from './defineRoute.js';
3
+ import { normalizeQueryValue } from '../httpUtils.js';
4
+ import { emitRequest } from './types.js';
5
+ export const route = defineJsonRoute({
6
+ method: 'GET',
7
+ path: '/auth/state',
8
+ handle: ({ res, url, ctx }) => {
9
+ const domain = normalizeQueryValue(url.searchParams.get('domain'));
10
+ // Emitted manually to include query metadata in the request event.
11
+ emitRequest(ctx, res, 'auth/state', { domain });
8
12
  const watcher = ctx.getWatcher();
9
- const response = await inspectAuthState(ctx.cdpSession, {
13
+ return inspectAuthState(ctx.cdpSession, {
10
14
  domain: domain ?? undefined,
11
15
  readBrowserCookies: ctx.readBrowserCookies,
12
16
  metadata: {
@@ -15,10 +19,6 @@ export const handle = async (_req, res, url, ctx) => {
15
19
  watcherSource: watcher.source ?? null,
16
20
  },
17
21
  });
18
- respondJson(res, response);
19
- }
20
- catch (error) {
21
- respondError(res, error);
22
- }
23
- };
22
+ },
23
+ });
24
24
  //# sourceMappingURL=getAuthState.js.map
@@ -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,CAAC,GAAG,CAAC,UAAU,EAAE;YAC1E,MAAM,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;QACF,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;IAC3B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IACzB,CAAC;AACF,CAAC,CAAA"}
1
+ {"version":3,"file":"getAuthState.js","sourceRoot":"","sources":["../../../src/http/routes/getAuthState.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAExC,MAAM,CAAC,MAAM,KAAK,GAAG,eAAe,CAA+B;IAClE,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE;QAC7B,MAAM,MAAM,GAAG,mBAAmB,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAA;QAElE,mEAAmE;QACnE,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,CAAA;QAE/C,MAAM,OAAO,GAAG,GAAG,CAAC,UAAU,EAAE,CAAA;QAChC,OAAO,gBAAgB,CAAC,GAAG,CAAC,UAAU,EAAE;YACvC,MAAM,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"}
@@ -0,0 +1,2 @@
1
+ export declare const route: import("./defineRoute.js").WatcherRouteDefinition;
2
+ //# sourceMappingURL=getExtensionDiagnostics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getExtensionDiagnostics.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getExtensionDiagnostics.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK,mDAYhB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { defineJsonRoute } from './defineRoute.js';
2
+ import { respondJson } from '../httpUtils.js';
3
+ import { emitRequest } from './types.js';
4
+ export const route = defineJsonRoute({
5
+ method: 'GET',
6
+ path: '/extension/diagnostics',
7
+ extensionOnly: true,
8
+ handle: async ({ res, ctx }) => {
9
+ if (!ctx.sourceHandle?.getExtensionDiagnostics) {
10
+ return respondJson(res, { ok: false, error: { message: 'Not available', code: 'not_available' } }, 400);
11
+ }
12
+ emitRequest(ctx, res, 'extension/diagnostics');
13
+ return await ctx.sourceHandle.getExtensionDiagnostics();
14
+ },
15
+ });
16
+ //# sourceMappingURL=getExtensionDiagnostics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getExtensionDiagnostics.js","sourceRoot":"","sources":["../../../src/http/routes/getExtensionDiagnostics.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAExC,MAAM,CAAC,MAAM,KAAK,GAAG,eAAe,CAA0C;IAC7E,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,wBAAwB;IAC9B,aAAa,EAAE,IAAI;IACnB,MAAM,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE;QAC9B,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,uBAAuB,EAAE,CAAC;YAChD,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;QACxG,CAAC;QAED,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,uBAAuB,CAAC,CAAA;QAC9C,OAAO,MAAM,GAAG,CAAC,YAAY,CAAC,uBAAuB,EAAE,CAAA;IACxD,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=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,GAAG,MAAM,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAC;YAC5C,GAAG,EAAE,mBAAmB,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG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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,SAAS,GAAG,gBAAgB,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAA;IACrE,IAAI,CAAC,SAAS,EAAE,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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,CAAC,YAAY,EAAE;QACxD,KAAK,EAAE,WAAW,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;Q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 +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,KAAK,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,oCAAoC,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;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,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"}