@vforsh/argus-watcher 0.1.2 → 0.1.4

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 (355) hide show
  1. package/README.md +67 -14
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/artifacts.d.ts +13 -0
  4. package/dist/artifacts.d.ts.map +1 -0
  5. package/dist/artifacts.js +27 -0
  6. package/dist/artifacts.js.map +1 -0
  7. package/dist/buffer/LogBuffer.d.ts +8 -3
  8. package/dist/buffer/LogBuffer.d.ts.map +1 -1
  9. package/dist/buffer/LogBuffer.js +9 -1
  10. package/dist/buffer/LogBuffer.js.map +1 -1
  11. package/dist/buffer/NetBuffer.d.ts +29 -0
  12. package/dist/buffer/NetBuffer.d.ts.map +1 -0
  13. package/dist/buffer/NetBuffer.js +85 -0
  14. package/dist/buffer/NetBuffer.js.map +1 -0
  15. package/dist/cdp/accessibility.d.ts +18 -0
  16. package/dist/cdp/accessibility.d.ts.map +1 -0
  17. package/dist/cdp/accessibility.js +300 -0
  18. package/dist/cdp/accessibility.js.map +1 -0
  19. package/dist/cdp/connection.d.ts +39 -0
  20. package/dist/cdp/connection.d.ts.map +1 -0
  21. package/dist/cdp/connection.js +131 -0
  22. package/dist/cdp/connection.js.map +1 -0
  23. package/dist/cdp/dom/fill.d.ts +22 -0
  24. package/dist/cdp/dom/fill.d.ts.map +1 -0
  25. package/dist/cdp/dom/fill.js +59 -0
  26. package/dist/cdp/dom/fill.js.map +1 -0
  27. package/dist/cdp/dom/info.d.ts +14 -0
  28. package/dist/cdp/dom/info.d.ts.map +1 -0
  29. package/dist/cdp/dom/info.js +52 -0
  30. package/dist/cdp/dom/info.js.map +1 -0
  31. package/dist/cdp/dom/insert.d.ts +19 -0
  32. package/dist/cdp/dom/insert.d.ts.map +1 -0
  33. package/dist/cdp/dom/insert.js +30 -0
  34. package/dist/cdp/dom/insert.js.map +1 -0
  35. package/dist/cdp/dom/modify.d.ts +50 -0
  36. package/dist/cdp/dom/modify.d.ts.map +1 -0
  37. package/dist/cdp/dom/modify.js +100 -0
  38. package/dist/cdp/dom/modify.js.map +1 -0
  39. package/dist/cdp/dom/remove.d.ts +17 -0
  40. package/dist/cdp/dom/remove.d.ts.map +1 -0
  41. package/dist/cdp/dom/remove.js +27 -0
  42. package/dist/cdp/dom/remove.js.map +1 -0
  43. package/dist/cdp/dom/selector.d.ts +19 -0
  44. package/dist/cdp/dom/selector.d.ts.map +1 -0
  45. package/dist/cdp/dom/selector.js +86 -0
  46. package/dist/cdp/dom/selector.js.map +1 -0
  47. package/dist/cdp/dom/setFile.d.ts +21 -0
  48. package/dist/cdp/dom/setFile.d.ts.map +1 -0
  49. package/dist/cdp/dom/setFile.js +25 -0
  50. package/dist/cdp/dom/setFile.js.map +1 -0
  51. package/dist/cdp/dom/submit.d.ts +15 -0
  52. package/dist/cdp/dom/submit.d.ts.map +1 -0
  53. package/dist/cdp/dom/submit.js +130 -0
  54. package/dist/cdp/dom/submit.js.map +1 -0
  55. package/dist/cdp/dom/tree.d.ts +16 -0
  56. package/dist/cdp/dom/tree.d.ts.map +1 -0
  57. package/dist/cdp/dom/tree.js +100 -0
  58. package/dist/cdp/dom/tree.js.map +1 -0
  59. package/dist/cdp/dom/types.d.ts +15 -0
  60. package/dist/cdp/dom/types.d.ts.map +1 -0
  61. package/dist/cdp/dom/types.js +2 -0
  62. package/dist/cdp/dom/types.js.map +1 -0
  63. package/dist/cdp/dom.d.ts +15 -0
  64. package/dist/cdp/dom.d.ts.map +1 -0
  65. package/dist/cdp/dom.js +9 -0
  66. package/dist/cdp/dom.js.map +1 -0
  67. package/dist/cdp/editor.d.ts +23 -0
  68. package/dist/cdp/editor.d.ts.map +1 -0
  69. package/dist/cdp/editor.js +266 -0
  70. package/dist/cdp/editor.js.map +1 -0
  71. package/dist/cdp/emulation.d.ts +16 -0
  72. package/dist/cdp/emulation.d.ts.map +1 -0
  73. package/dist/cdp/emulation.js +40 -0
  74. package/dist/cdp/emulation.js.map +1 -0
  75. package/dist/cdp/eval.d.ts +11 -0
  76. package/dist/cdp/eval.d.ts.map +1 -0
  77. package/dist/cdp/eval.js +79 -0
  78. package/dist/cdp/eval.js.map +1 -0
  79. package/dist/cdp/keyboard.d.ts +38 -0
  80. package/dist/cdp/keyboard.d.ts.map +1 -0
  81. package/dist/cdp/keyboard.js +148 -0
  82. package/dist/cdp/keyboard.js.map +1 -0
  83. package/dist/cdp/mouse.d.ts +49 -0
  84. package/dist/cdp/mouse.d.ts.map +1 -0
  85. package/dist/cdp/mouse.js +203 -0
  86. package/dist/cdp/mouse.js.map +1 -0
  87. package/dist/cdp/networkCapture.d.ts +11 -0
  88. package/dist/cdp/networkCapture.d.ts.map +1 -0
  89. package/dist/cdp/networkCapture.js +99 -0
  90. package/dist/cdp/networkCapture.js.map +1 -0
  91. package/dist/cdp/pageIndicator.d.ts +41 -0
  92. package/dist/cdp/pageIndicator.d.ts.map +1 -0
  93. package/dist/cdp/pageIndicator.js +395 -0
  94. package/dist/cdp/pageIndicator.js.map +1 -0
  95. package/dist/cdp/redaction.d.ts +3 -0
  96. package/dist/cdp/redaction.d.ts.map +1 -0
  97. package/dist/cdp/redaction.js +35 -0
  98. package/dist/cdp/redaction.js.map +1 -0
  99. package/dist/cdp/remoteObject.d.ts +6 -0
  100. package/dist/cdp/remoteObject.d.ts.map +1 -0
  101. package/dist/cdp/remoteObject.js +94 -0
  102. package/dist/cdp/remoteObject.js.map +1 -0
  103. package/dist/cdp/screenshot.d.ts +10 -0
  104. package/dist/cdp/screenshot.d.ts.map +1 -0
  105. package/dist/cdp/screenshot.js +83 -0
  106. package/dist/cdp/screenshot.js.map +1 -0
  107. package/dist/cdp/storageLocal.d.ts +8 -0
  108. package/dist/cdp/storageLocal.d.ts.map +1 -0
  109. package/dist/cdp/storageLocal.js +70 -0
  110. package/dist/cdp/storageLocal.js.map +1 -0
  111. package/dist/cdp/text-filter.d.ts +6 -0
  112. package/dist/cdp/text-filter.d.ts.map +1 -0
  113. package/dist/cdp/text-filter.js +36 -0
  114. package/dist/cdp/text-filter.js.map +1 -0
  115. package/dist/cdp/throttle.d.ts +6 -0
  116. package/dist/cdp/throttle.d.ts.map +1 -0
  117. package/dist/cdp/throttle.js +9 -0
  118. package/dist/cdp/throttle.js.map +1 -0
  119. package/dist/cdp/tracing.d.ts +15 -0
  120. package/dist/cdp/tracing.d.ts.map +1 -0
  121. package/dist/cdp/tracing.js +159 -0
  122. package/dist/cdp/tracing.js.map +1 -0
  123. package/dist/cdp/watcher.d.ts +17 -2
  124. package/dist/cdp/watcher.d.ts.map +1 -1
  125. package/dist/cdp/watcher.js +124 -175
  126. package/dist/cdp/watcher.js.map +1 -1
  127. package/dist/emulation/EmulationController.d.ts +12 -0
  128. package/dist/emulation/EmulationController.d.ts.map +1 -0
  129. package/dist/emulation/EmulationController.js +83 -0
  130. package/dist/emulation/EmulationController.js.map +1 -0
  131. package/dist/events.d.ts +86 -0
  132. package/dist/events.d.ts.map +1 -0
  133. package/dist/events.js +2 -0
  134. package/dist/events.js.map +1 -0
  135. package/dist/fileLogs/WatcherFileLogger.d.ts +5 -2
  136. package/dist/fileLogs/WatcherFileLogger.d.ts.map +1 -1
  137. package/dist/fileLogs/WatcherFileLogger.js +30 -12
  138. package/dist/fileLogs/WatcherFileLogger.js.map +1 -1
  139. package/dist/http/httpUtils.d.ts +25 -0
  140. package/dist/http/httpUtils.d.ts.map +1 -0
  141. package/dist/http/httpUtils.js +170 -0
  142. package/dist/http/httpUtils.js.map +1 -0
  143. package/dist/http/router.d.ts +5 -0
  144. package/dist/http/router.d.ts.map +1 -0
  145. package/dist/http/router.js +85 -0
  146. package/dist/http/router.js.map +1 -0
  147. package/dist/http/routes/getEmulation.d.ts +3 -0
  148. package/dist/http/routes/getEmulation.d.ts.map +1 -0
  149. package/dist/http/routes/getEmulation.js +8 -0
  150. package/dist/http/routes/getEmulation.js.map +1 -0
  151. package/dist/http/routes/getLogs.d.ts +3 -0
  152. package/dist/http/routes/getLogs.d.ts.map +1 -0
  153. package/dist/http/routes/getLogs.js +28 -0
  154. package/dist/http/routes/getLogs.js.map +1 -0
  155. package/dist/http/routes/getNet.d.ts +3 -0
  156. package/dist/http/routes/getNet.d.ts.map +1 -0
  157. package/dist/http/routes/getNet.js +17 -0
  158. package/dist/http/routes/getNet.js.map +1 -0
  159. package/dist/http/routes/getNetTail.d.ts +3 -0
  160. package/dist/http/routes/getNetTail.d.ts.map +1 -0
  161. package/dist/http/routes/getNetTail.js +18 -0
  162. package/dist/http/routes/getNetTail.js.map +1 -0
  163. package/dist/http/routes/getStatus.d.ts +3 -0
  164. package/dist/http/routes/getStatus.d.ts.map +1 -0
  165. package/dist/http/routes/getStatus.js +21 -0
  166. package/dist/http/routes/getStatus.js.map +1 -0
  167. package/dist/http/routes/getTail.d.ts +3 -0
  168. package/dist/http/routes/getTail.d.ts.map +1 -0
  169. package/dist/http/routes/getTail.js +28 -0
  170. package/dist/http/routes/getTail.js.map +1 -0
  171. package/dist/http/routes/getTargets.d.ts +3 -0
  172. package/dist/http/routes/getTargets.d.ts.map +1 -0
  173. package/dist/http/routes/getTargets.js +16 -0
  174. package/dist/http/routes/getTargets.js.map +1 -0
  175. package/dist/http/routes/getThrottle.d.ts +3 -0
  176. package/dist/http/routes/getThrottle.d.ts.map +1 -0
  177. package/dist/http/routes/getThrottle.js +8 -0
  178. package/dist/http/routes/getThrottle.js.map +1 -0
  179. package/dist/http/routes/postAttach.d.ts +3 -0
  180. package/dist/http/routes/postAttach.d.ts.map +1 -0
  181. package/dist/http/routes/postAttach.js +24 -0
  182. package/dist/http/routes/postAttach.js.map +1 -0
  183. package/dist/http/routes/postCodeEdit.d.ts +3 -0
  184. package/dist/http/routes/postCodeEdit.d.ts.map +1 -0
  185. package/dist/http/routes/postCodeEdit.js +32 -0
  186. package/dist/http/routes/postCodeEdit.js.map +1 -0
  187. package/dist/http/routes/postCodeGrep.d.ts +3 -0
  188. package/dist/http/routes/postCodeGrep.d.ts.map +1 -0
  189. package/dist/http/routes/postCodeGrep.js +26 -0
  190. package/dist/http/routes/postCodeGrep.js.map +1 -0
  191. package/dist/http/routes/postCodeList.d.ts +3 -0
  192. package/dist/http/routes/postCodeList.d.ts.map +1 -0
  193. package/dist/http/routes/postCodeList.js +20 -0
  194. package/dist/http/routes/postCodeList.js.map +1 -0
  195. package/dist/http/routes/postCodeRead.d.ts +3 -0
  196. package/dist/http/routes/postCodeRead.d.ts.map +1 -0
  197. package/dist/http/routes/postCodeRead.js +30 -0
  198. package/dist/http/routes/postCodeRead.js.map +1 -0
  199. package/dist/http/routes/postDetach.d.ts +3 -0
  200. package/dist/http/routes/postDetach.d.ts.map +1 -0
  201. package/dist/http/routes/postDetach.js +24 -0
  202. package/dist/http/routes/postDetach.js.map +1 -0
  203. package/dist/http/routes/postDomAdd.d.ts +7 -0
  204. package/dist/http/routes/postDomAdd.d.ts.map +1 -0
  205. package/dist/http/routes/postDomAdd.js +97 -0
  206. package/dist/http/routes/postDomAdd.js.map +1 -0
  207. package/dist/http/routes/postDomClick.d.ts +3 -0
  208. package/dist/http/routes/postDomClick.d.ts.map +1 -0
  209. package/dist/http/routes/postDomClick.js +85 -0
  210. package/dist/http/routes/postDomClick.js.map +1 -0
  211. package/dist/http/routes/postDomFill.d.ts +3 -0
  212. package/dist/http/routes/postDomFill.d.ts.map +1 -0
  213. package/dist/http/routes/postDomFill.js +58 -0
  214. package/dist/http/routes/postDomFill.js.map +1 -0
  215. package/dist/http/routes/postDomFocus.d.ts +3 -0
  216. package/dist/http/routes/postDomFocus.d.ts.map +1 -0
  217. package/dist/http/routes/postDomFocus.js +40 -0
  218. package/dist/http/routes/postDomFocus.js.map +1 -0
  219. package/dist/http/routes/postDomHover.d.ts +3 -0
  220. package/dist/http/routes/postDomHover.d.ts.map +1 -0
  221. package/dist/http/routes/postDomHover.js +40 -0
  222. package/dist/http/routes/postDomHover.js.map +1 -0
  223. package/dist/http/routes/postDomInfo.d.ts +3 -0
  224. package/dist/http/routes/postDomInfo.d.ts.map +1 -0
  225. package/dist/http/routes/postDomInfo.js +40 -0
  226. package/dist/http/routes/postDomInfo.js.map +1 -0
  227. package/dist/http/routes/postDomKeydown.d.ts +3 -0
  228. package/dist/http/routes/postDomKeydown.d.ts.map +1 -0
  229. package/dist/http/routes/postDomKeydown.js +36 -0
  230. package/dist/http/routes/postDomKeydown.js.map +1 -0
  231. package/dist/http/routes/postDomModify.d.ts +3 -0
  232. package/dist/http/routes/postDomModify.d.ts.map +1 -0
  233. package/dist/http/routes/postDomModify.js +45 -0
  234. package/dist/http/routes/postDomModify.js.map +1 -0
  235. package/dist/http/routes/postDomRemove.d.ts +3 -0
  236. package/dist/http/routes/postDomRemove.d.ts.map +1 -0
  237. package/dist/http/routes/postDomRemove.js +39 -0
  238. package/dist/http/routes/postDomRemove.js.map +1 -0
  239. package/dist/http/routes/postDomScroll.d.ts +3 -0
  240. package/dist/http/routes/postDomScroll.d.ts.map +1 -0
  241. package/dist/http/routes/postDomScroll.js +75 -0
  242. package/dist/http/routes/postDomScroll.js.map +1 -0
  243. package/dist/http/routes/postDomScrollTo.d.ts +3 -0
  244. package/dist/http/routes/postDomScrollTo.d.ts.map +1 -0
  245. package/dist/http/routes/postDomScrollTo.js +69 -0
  246. package/dist/http/routes/postDomScrollTo.js.map +1 -0
  247. package/dist/http/routes/postDomSetFile.d.ts +3 -0
  248. package/dist/http/routes/postDomSetFile.d.ts.map +1 -0
  249. package/dist/http/routes/postDomSetFile.js +58 -0
  250. package/dist/http/routes/postDomSetFile.js.map +1 -0
  251. package/dist/http/routes/postDomSubmit.d.ts +3 -0
  252. package/dist/http/routes/postDomSubmit.d.ts.map +1 -0
  253. package/dist/http/routes/postDomSubmit.js +49 -0
  254. package/dist/http/routes/postDomSubmit.js.map +1 -0
  255. package/dist/http/routes/postDomTree.d.ts +3 -0
  256. package/dist/http/routes/postDomTree.d.ts.map +1 -0
  257. package/dist/http/routes/postDomTree.js +41 -0
  258. package/dist/http/routes/postDomTree.js.map +1 -0
  259. package/dist/http/routes/postEmulation.d.ts +3 -0
  260. package/dist/http/routes/postEmulation.d.ts.map +1 -0
  261. package/dist/http/routes/postEmulation.js +70 -0
  262. package/dist/http/routes/postEmulation.js.map +1 -0
  263. package/dist/http/routes/postEval.d.ts +3 -0
  264. package/dist/http/routes/postEval.d.ts.map +1 -0
  265. package/dist/http/routes/postEval.js +27 -0
  266. package/dist/http/routes/postEval.js.map +1 -0
  267. package/dist/http/routes/postReload.d.ts +3 -0
  268. package/dist/http/routes/postReload.d.ts.map +1 -0
  269. package/dist/http/routes/postReload.js +20 -0
  270. package/dist/http/routes/postReload.js.map +1 -0
  271. package/dist/http/routes/postScreenshot.d.ts +3 -0
  272. package/dist/http/routes/postScreenshot.d.ts.map +1 -0
  273. package/dist/http/routes/postScreenshot.js +17 -0
  274. package/dist/http/routes/postScreenshot.js.map +1 -0
  275. package/dist/http/routes/postShutdown.d.ts +3 -0
  276. package/dist/http/routes/postShutdown.d.ts.map +1 -0
  277. package/dist/http/routes/postShutdown.js +13 -0
  278. package/dist/http/routes/postShutdown.js.map +1 -0
  279. package/dist/http/routes/postSnapshot.d.ts +3 -0
  280. package/dist/http/routes/postSnapshot.d.ts.map +1 -0
  281. package/dist/http/routes/postSnapshot.js +28 -0
  282. package/dist/http/routes/postSnapshot.js.map +1 -0
  283. package/dist/http/routes/postStorageLocal.d.ts +3 -0
  284. package/dist/http/routes/postStorageLocal.d.ts.map +1 -0
  285. package/dist/http/routes/postStorageLocal.js +31 -0
  286. package/dist/http/routes/postStorageLocal.js.map +1 -0
  287. package/dist/http/routes/postThrottle.d.ts +3 -0
  288. package/dist/http/routes/postThrottle.d.ts.map +1 -0
  289. package/dist/http/routes/postThrottle.js +38 -0
  290. package/dist/http/routes/postThrottle.js.map +1 -0
  291. package/dist/http/routes/postTraceStart.d.ts +3 -0
  292. package/dist/http/routes/postTraceStart.d.ts.map +1 -0
  293. package/dist/http/routes/postTraceStart.js +17 -0
  294. package/dist/http/routes/postTraceStart.js.map +1 -0
  295. package/dist/http/routes/postTraceStop.d.ts +3 -0
  296. package/dist/http/routes/postTraceStop.d.ts.map +1 -0
  297. package/dist/http/routes/postTraceStop.js +17 -0
  298. package/dist/http/routes/postTraceStop.js.map +1 -0
  299. package/dist/http/routes/types.d.ts +9 -0
  300. package/dist/http/routes/types.d.ts.map +1 -0
  301. package/dist/http/routes/types.js +10 -0
  302. package/dist/http/routes/types.js.map +1 -0
  303. package/dist/http/server.d.ts +42 -1
  304. package/dist/http/server.d.ts.map +1 -1
  305. package/dist/http/server.js +3 -82
  306. package/dist/http/server.js.map +1 -1
  307. package/dist/index.d.ts +117 -14
  308. package/dist/index.d.ts.map +1 -1
  309. package/dist/index.js +349 -44
  310. package/dist/index.js.map +1 -1
  311. package/dist/native-messaging/messaging.d.ts +18 -0
  312. package/dist/native-messaging/messaging.d.ts.map +1 -0
  313. package/dist/native-messaging/messaging.js +94 -0
  314. package/dist/native-messaging/messaging.js.map +1 -0
  315. package/dist/native-messaging/session-manager.d.ts +108 -0
  316. package/dist/native-messaging/session-manager.d.ts.map +1 -0
  317. package/dist/native-messaging/session-manager.js +267 -0
  318. package/dist/native-messaging/session-manager.js.map +1 -0
  319. package/dist/native-messaging/types.d.ts +112 -0
  320. package/dist/native-messaging/types.d.ts.map +1 -0
  321. package/dist/native-messaging/types.js +6 -0
  322. package/dist/native-messaging/types.js.map +1 -0
  323. package/dist/registry/registry.d.ts +9 -2
  324. package/dist/registry/registry.d.ts.map +1 -1
  325. package/dist/registry/registry.js +53 -9
  326. package/dist/registry/registry.js.map +1 -1
  327. package/dist/scripts/install-host.d.ts +10 -0
  328. package/dist/scripts/install-host.d.ts.map +1 -0
  329. package/dist/scripts/install-host.js +189 -0
  330. package/dist/scripts/install-host.js.map +1 -0
  331. package/dist/sources/cdp-source.d.ts +24 -0
  332. package/dist/sources/cdp-source.d.ts.map +1 -0
  333. package/dist/sources/cdp-source.js +49 -0
  334. package/dist/sources/cdp-source.js.map +1 -0
  335. package/dist/sources/extension-frame-state.d.ts +64 -0
  336. package/dist/sources/extension-frame-state.d.ts.map +1 -0
  337. package/dist/sources/extension-frame-state.js +117 -0
  338. package/dist/sources/extension-frame-state.js.map +1 -0
  339. package/dist/sources/extension-log-events.d.ts +15 -0
  340. package/dist/sources/extension-log-events.d.ts.map +1 -0
  341. package/dist/sources/extension-log-events.js +101 -0
  342. package/dist/sources/extension-log-events.js.map +1 -0
  343. package/dist/sources/extension-source.d.ts +15 -0
  344. package/dist/sources/extension-source.d.ts.map +1 -0
  345. package/dist/sources/extension-source.js +487 -0
  346. package/dist/sources/extension-source.js.map +1 -0
  347. package/dist/sources/types.d.ts +109 -0
  348. package/dist/sources/types.d.ts.map +1 -0
  349. package/dist/sources/types.js +7 -0
  350. package/dist/sources/types.js.map +1 -0
  351. package/dist/throttle/ThrottleController.d.ts +12 -0
  352. package/dist/throttle/ThrottleController.d.ts.map +1 -0
  353. package/dist/throttle/ThrottleController.js +67 -0
  354. package/dist/throttle/ThrottleController.js.map +1 -0
  355. package/package.json +3 -2
@@ -0,0 +1,28 @@
1
+ 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
+ };
28
+ //# sourceMappingURL=getLogs.js.map
@@ -0,0 +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,G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EAAE,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;IACtF,MAAM,QAAQ,GAAiB,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,CAAA;IAC9D,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;AAC3B,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { RouteHandler } from './types.js';
2
+ export declare const handle: RouteHandler;
3
+ //# sourceMappingURL=getNet.d.ts.map
@@ -0,0 +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;AAI9C,eAAO,MAAM,MAAM,EAAE,YAgBpB,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { emitRequest } from './types.js';
2
+ import { respondJson, clampNumber, normalizeQueryValue } from '../httpUtils.js';
3
+ export const handle = (_req, res, url, ctx) => {
4
+ if (!ctx.netBuffer) {
5
+ return respondJson(res, { ok: false, error: { code: 'net_disabled', message: 'Network capture is disabled for this watcher' } }, 400);
6
+ }
7
+ const after = clampNumber(url.searchParams.get('after'), 0);
8
+ const limit = clampNumber(url.searchParams.get('limit'), 500, 1, 5000);
9
+ const sinceTs = clampNumber(url.searchParams.get('sinceTs'), undefined);
10
+ const grep = normalizeQueryValue(url.searchParams.get('grep'));
11
+ emitRequest(ctx, res, 'net', { after, limit, sinceTs, grep });
12
+ const requests = ctx.netBuffer.listAfter(after, { sinceTs, grep }, limit);
13
+ const nextAfter = requests.length > 0 ? (requests[requests.length - 1]?.id ?? after) : after;
14
+ const response = { ok: true, requests, nextAfter };
15
+ respondJson(res, response);
16
+ };
17
+ //# sourceMappingURL=getNet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNet.js","sourceRoot":"","sources":["../../../src/http/routes/getNet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAA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GAAG,CAAC,CAAC,EAAE,EAAE,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;IAC5F,MAAM,QAAQ,GAAgB,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAA;IAC/D,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;AAC3B,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { RouteHandler } from './types.js';
2
+ export declare const handle: RouteHandler;
3
+ //# sourceMappingURL=getNetTail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNetTail.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getNetTail.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI9C,eAAO,MAAM,MAAM,EAAE,YAiBpB,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { emitRequest } from './types.js';
2
+ import { respondJson, clampNumber, normalizeQueryValue } from '../httpUtils.js';
3
+ export const handle = async (_req, res, url, ctx) => {
4
+ if (!ctx.netBuffer) {
5
+ return respondJson(res, { ok: false, error: { code: 'net_disabled', message: 'Network capture is disabled for this watcher' } }, 400);
6
+ }
7
+ const after = clampNumber(url.searchParams.get('after'), 0);
8
+ const limit = clampNumber(url.searchParams.get('limit'), 500, 1, 5000);
9
+ const timeoutMs = clampNumber(url.searchParams.get('timeoutMs'), 25_000, 1000, 120_000);
10
+ const sinceTs = clampNumber(url.searchParams.get('sinceTs'), undefined);
11
+ const grep = normalizeQueryValue(url.searchParams.get('grep'));
12
+ emitRequest(ctx, res, 'net/tail', { after, limit, sinceTs, timeoutMs, grep });
13
+ const requests = await ctx.netBuffer.waitForAfter(after, { sinceTs, grep }, limit, timeoutMs);
14
+ const nextAfter = requests.length > 0 ? (requests[requests.length - 1]?.id ?? after) : after;
15
+ const response = { ok: true, requests, nextAfter, timedOut: requests.length === 0 };
16
+ respondJson(res, response);
17
+ };
18
+ //# source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AE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IAE7E,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,CAAA;IAC7F,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;IAC5F,MAAM,QAAQ,GAAoB,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAA;IACpG,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;AAC3B,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { RouteHandler } from './types.js';
2
+ export declare const handle: RouteHandler;
3
+ //# sourceMappingURL=getStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getStatus.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getStatus.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAgB,MAAM,YAAY,CAAA;AAG5D,eAAO,MAAM,MAAM,EAAE,YAEpB,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { ARGUS_PROTOCOL_VERSION } from '@vforsh/argus-core';
2
+ import { respondJson } from '../httpUtils.js';
3
+ export const handle = (_req, res, _url, ctx) => {
4
+ respondJson(res, buildStatus(ctx));
5
+ };
6
+ const buildStatus = (ctx) => {
7
+ const watcher = ctx.getWatcher();
8
+ const buffer = ctx.buffer.getStats();
9
+ const cdpStatus = ctx.getCdpStatus();
10
+ return {
11
+ ok: true,
12
+ id: watcher.id,
13
+ pid: watcher.pid,
14
+ attached: cdpStatus.attached,
15
+ target: cdpStatus.target,
16
+ buffer,
17
+ watcher,
18
+ protocolVersion: ARGUS_PROTOCOL_VERSION,
19
+ };
20
+ };
21
+ //# sourceMappingURL=getStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getStatus.js","sourceRoot":"","sources":["../../../src/http/routes/getStatus.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAE3D,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,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;AACnC,CAAC,CAAA;AAED,MAAM,WAAW,GAAG,CAAC,GAAiB,EAAkB,EAAE;IACzD,MAAM,OAAO,GAAG,GAAG,CAAC,UAAU,EAAE,CAAA;IAChC,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAA;IACpC,MAAM,SAAS,GAAG,GAAG,CAAC,YAAY,EAAE,CAAA;IAEpC,OAAO;QACN,EAAE,EAAE,IAAI;QACR,EAAE,EAAE,OAAO,CAAC,EAAE;QACd,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,QAAQ,EAAE,SAAS,CAAC,QAAQ;QAC5B,MAAM,EAAE,SAAS,CAAC,MAAM;QACxB,MAAM;QACN,OAAO;QACP,eAAe,EAAE,sBAAsB;KACvC,CAAA;AACF,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { RouteHandler } from './types.js';
2
+ export declare const handle: RouteHandler;
3
+ //# sourceMappingURL=getTail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTail.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getTail.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAc9C,eAAO,MAAM,MAAM,EAAE,YA2BpB,CAAA"}
@@ -0,0 +1,28 @@
1
+ import { emitRequest } from './types.js';
2
+ import { respondJson, respondInvalidMatch, respondInvalidMatchCase, clampNumber, parseLevels, resolveMatchCase, normalizeMatchPatterns, compileMatchPatterns, normalizeQueryValue, } from '../httpUtils.js';
3
+ export const handle = async (_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 timeoutMs = clampNumber(url.searchParams.get('timeoutMs'), 25_000, 1000, 120_000);
7
+ const levels = parseLevels(url.searchParams.get('levels'));
8
+ const match = url.searchParams.getAll('match');
9
+ const matchCase = resolveMatchCase(url.searchParams.get('matchCase'));
10
+ if (!matchCase) {
11
+ return respondInvalidMatchCase(res);
12
+ }
13
+ const source = normalizeQueryValue(url.searchParams.get('source'));
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, 'tail', { after, limit, levels, match: matchPatterns.patterns, matchCase, source, timeoutMs });
23
+ const events = await ctx.buffer.waitForAfter(after, { levels, match: compiledMatch.match, source }, limit, timeoutMs);
24
+ const nextAfter = events.length > 0 ? (events[events.length - 1]?.id ?? after) : after;
25
+ const response = { ok: true, events, nextAfter, timedOut: events.length === 0 };
26
+ respondJson(res, response);
27
+ };
28
+ //# sourceMappingURL=getTail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTail.js","sourceRoot":"","sources":["../../../src/http/routes/getTail.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EACN,WAAW,EACX,mBAAmB,EACn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rD,CAAC;IACD,MAAM,aAAa,GAAG,oBAAoB,CAAC,aAAa,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;IAC7E,IAAI,aAAa,CAAC,KAAK,EAAE,CAAC;QACzB,OAAO,mBAAmB,CAAC,GAAG,EAAE,aAAa,CAAC,KAAK,CAAC,CAAA;IACrD,CAAC;IAED,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAA;IAEpH,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,CAAA;IACrH,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;IACtF,MAAM,QAAQ,GAAiB,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAA;IAC7F,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;AAC3B,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { RouteHandler } from './types.js';
2
+ export declare const handle: RouteHandler;
3
+ //# sourceMappingURL=getTargets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTargets.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getTargets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI9C,eAAO,MAAM,MAAM,EAAE,YAapB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { emitRequest } from './types.js';
2
+ import { respondJson, respondError } from '../httpUtils.js';
3
+ export const handle = async (_req, res, _url, ctx) => {
4
+ if (!ctx.sourceHandle?.listTargets) {
5
+ return respondJson(res, { ok: false, error: { message: 'Not available', code: 'not_available' } }, 400);
6
+ }
7
+ emitRequest(ctx, res, 'targets');
8
+ try {
9
+ const targets = await ctx.sourceHandle.listTargets();
10
+ respondJson(res, { ok: true, targets });
11
+ }
12
+ catch (error) {
13
+ respondError(res, error);
14
+ }
15
+ };
16
+ //# sourceMappingURL=getTargets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTargets.js","sourceRoot":"","sources":["../../../src/http/routes/getTargets.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE3D,MAAM,CAAC,MAAM,MAAM,GAAiB,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;IAClE,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,CAAC;QACpC,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,SAAS,CAAC,CAAA;IAEhC,IAAI,CAAC;QACJ,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,YAAY,CAAC,WAAW,EAAE,CAAA;QACpD,WAAW,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAA;IACxC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IACzB,CAAC;AACF,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { RouteHandler } from './types.js';
2
+ export declare const handle: RouteHandler;
3
+ //# sourceMappingURL=getThrottle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getThrottle.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getThrottle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI9C,eAAO,MAAM,MAAM,EAAE,YAIpB,CAAA"}
@@ -0,0 +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, 'throttle');
5
+ const status = ctx.throttleController.getStatus({ attached: ctx.getCdpStatus().attached });
6
+ respondJson(res, status);
7
+ };
8
+ //# sourceMappingURL=getThrottle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getThrottle.js","sourceRoot":"","sources":["../../../src/http/routes/getThrottle.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,UAAU,CAAC,CAAA;IACjC,MAAM,MAAM,GAAG,GAAG,CAAC,kBAAkB,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,GAAG,CAAC,YAAY,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAA;IAC1F,WAAW,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;AACzB,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { RouteHandler } from './types.js';
2
+ export declare const handle: RouteHandler;
3
+ //# sourceMappingURL=postAttach.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postAttach.d.ts","sourceRoot":"","sources":["../../../src/http/routes/postAttach.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI9C,eAAO,MAAM,MAAM,EAAE,YAuBpB,CAAA"}
@@ -0,0 +1,24 @@
1
+ import { emitRequest } from './types.js';
2
+ import { respondJson, respondInvalidBody, respondError, readJsonBody } from '../httpUtils.js';
3
+ export const handle = async (req, res, _url, ctx) => {
4
+ if (!ctx.sourceHandle?.attachTarget) {
5
+ return respondJson(res, { ok: false, error: { message: 'Not available', code: 'not_available' } }, 400);
6
+ }
7
+ const payload = await readJsonBody(req, res);
8
+ if (!payload) {
9
+ return;
10
+ }
11
+ const targetId = typeof payload.targetId === 'string' ? payload.targetId : typeof payload.tabId === 'number' ? String(payload.tabId) : null;
12
+ if (!targetId) {
13
+ return respondInvalidBody(res, 'targetId is required');
14
+ }
15
+ emitRequest(ctx, res, 'attach');
16
+ try {
17
+ ctx.sourceHandle.attachTarget(targetId);
18
+ respondJson(res, { ok: true, message: 'Attach request sent' });
19
+ }
20
+ catch (error) {
21
+ respondError(res, error);
22
+ }
23
+ };
24
+ //# sourceMappingURL=postAttach.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postAttach.js","sourceRoot":"","sources":["../../../src/http/routes/postAttach.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE7F,MAAM,CAAC,MAAM,MAAM,GAAiB,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;IACjE,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,YAAY,EAAE,CAAC;QACrC,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,MAAM,OAAO,GAAG,MAAM,YAAY,CAAwC,GAAG,EAAE,GAAG,CAAC,CAAA;IACnF,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,OAAM;IACP,CAAC;IAED,MAAM,QAAQ,GAAG,OAAO,OAAO,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,OAAO,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IAC3I,IAAI,CAAC,QAAQ,EAAE,CAAC;QACf,OAAO,kBAAkB,CAAC,GAAG,EAAE,sBAAsB,CAAC,CAAA;IACvD,CAAC;IAED,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAA;IAE/B,IAAI,CAAC;QACJ,GAAG,CAAC,YAAY,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAA;QACvC,WAAW,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,qBAAqB,EAAE,CAAC,CAAA;IAC/D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IACzB,CAAC;AACF,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { RouteHandler } from './types.js';
2
+ export declare const handle: RouteHandler;
3
+ //# sourceMappingURL=postCodeEdit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postCodeEdit.d.ts","sourceRoot":"","sources":["../../../src/http/routes/postCodeEdit.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI9C,eAAO,MAAM,MAAM,EAAE,YA8BpB,CAAA"}
@@ -0,0 +1,32 @@
1
+ import { emitRequest } from './types.js';
2
+ import { readJsonBody, respondError, respondInvalidBody, respondJson } from '../httpUtils.js';
3
+ export const handle = async (req, res, _url, ctx) => {
4
+ const payload = await readJsonBody(req, res);
5
+ if (!payload) {
6
+ return;
7
+ }
8
+ if (typeof payload.url !== 'string' || payload.url.trim() === '') {
9
+ return respondInvalidBody(res, 'url must be a non-empty string');
10
+ }
11
+ if (typeof payload.oldString !== 'string' || payload.oldString === '') {
12
+ return respondInvalidBody(res, 'oldString must be a non-empty string');
13
+ }
14
+ if (typeof payload.newString !== 'string') {
15
+ return respondInvalidBody(res, 'newString must be a string');
16
+ }
17
+ emitRequest(ctx, res, 'code/edit');
18
+ try {
19
+ const response = await ctx.runtimeEditor.edit({
20
+ url: payload.url,
21
+ oldString: payload.oldString,
22
+ newString: payload.newString,
23
+ dryRun: payload.dryRun ?? false,
24
+ replaceAll: payload.replaceAll ?? false,
25
+ });
26
+ respondJson(res, response);
27
+ }
28
+ catch (error) {
29
+ respondError(res, error);
30
+ }
31
+ };
32
+ //# sourceMappingURL=postCodeEdit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postCodeEdit.js","sourceRoot":"","sources":["../../../src/http/routes/postCodeEdit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE7F,MAAM,CAAC,MAAM,MAAM,GAAiB,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;IACjE,MAAM,OAAO,GAAG,MAAM,YAAY,CAAkB,GAAG,EAAE,GAAG,CAAC,CAAA;IAC7D,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,OAAM;IACP,CAAC;IAED,IAAI,OAAO,OAAO,CAAC,GAAG,KAAK,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QAClE,OAAO,kBAAkB,CAAC,GAAG,EAAE,gCAAgC,CAAC,CAAA;IACjE,CAAC;IACD,IAAI,OAAO,OAAO,CAAC,SAAS,KAAK,QAAQ,IAAI,OAAO,CAAC,SAAS,KAAK,EAAE,EAAE,CAAC;QACvE,OAAO,kBAAkB,CAAC,GAAG,EAAE,sCAAsC,CAAC,CAAA;IACvE,CAAC;IACD,IAAI,OAAO,OAAO,CAAC,SAAS,KAAK,QAAQ,EAAE,CAAC;QAC3C,OAAO,kBAAkB,CAAC,GAAG,EAAE,4BAA4B,CAAC,CAAA;IAC7D,CAAC;IAED,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,WAAW,CAAC,CAAA;IAElC,IAAI,CAAC;QACJ,MAAM,QAAQ,GAAqB,MAAM,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC;YAC/D,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,KAAK;YAC/B,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,KAAK;SACvC,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"}
@@ -0,0 +1,3 @@
1
+ import type { RouteHandler } from './types.js';
2
+ export declare const handle: RouteHandler;
3
+ //# sourceMappingURL=postCodeGrep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postCodeGrep.d.ts","sourceRoot":"","sources":["../../../src/http/routes/postCodeGrep.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI9C,eAAO,MAAM,MAAM,EAAE,YAwBpB,CAAA"}
@@ -0,0 +1,26 @@
1
+ import { emitRequest } from './types.js';
2
+ import { readJsonBody, respondError, respondInvalidBody, respondJson } from '../httpUtils.js';
3
+ export const handle = async (req, res, _url, ctx) => {
4
+ const payload = await readJsonBody(req, res);
5
+ if (!payload) {
6
+ return;
7
+ }
8
+ if (typeof payload.pattern !== 'string' || payload.pattern.trim() === '') {
9
+ return respondInvalidBody(res, 'pattern must be a non-empty string');
10
+ }
11
+ if (payload.urlPattern != null && (typeof payload.urlPattern !== 'string' || payload.urlPattern.trim() === '')) {
12
+ return respondInvalidBody(res, 'urlPattern must be a non-empty string');
13
+ }
14
+ emitRequest(ctx, res, 'code/grep');
15
+ try {
16
+ const response = await ctx.runtimeEditor.grep({
17
+ pattern: payload.pattern,
18
+ urlPattern: payload.urlPattern,
19
+ });
20
+ respondJson(res, response);
21
+ }
22
+ catch (error) {
23
+ respondError(res, error);
24
+ }
25
+ };
26
+ //# sourceMappingURL=postCodeGrep.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postCodeGrep.js","sourceRoot":"","sources":["../../../src/http/routes/postCodeGrep.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE7F,MAAM,CAAC,MAAM,MAAM,GAAiB,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;IACjE,MAAM,OAAO,GAAG,MAAM,YAAY,CAAkB,GAAG,EAAE,GAAG,CAAC,CAAA;IAC7D,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,OAAM;IACP,CAAC;IAED,IAAI,OAAO,OAAO,CAAC,OAAO,KAAK,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QAC1E,OAAO,kBAAkB,CAAC,GAAG,EAAE,oCAAoC,CAAC,CAAA;IACrE,CAAC;IACD,IAAI,OAAO,CAAC,UAAU,IAAI,IAAI,IAAI,CAAC,OAAO,OAAO,CAAC,UAAU,KAAK,QAAQ,IAAI,OAAO,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QAChH,OAAO,kBAAkB,CAAC,GAAG,EAAE,uCAAuC,CAAC,CAAA;IACxE,CAAC;IAED,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,WAAW,CAAC,CAAA;IAElC,IAAI,CAAC;QACJ,MAAM,QAAQ,GAAqB,MAAM,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC;YAC/D,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,UAAU,EAAE,OAAO,CAAC,UAAU;SAC9B,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"}
@@ -0,0 +1,3 @@
1
+ import type { RouteHandler } from './types.js';
2
+ export declare const handle: RouteHandler;
3
+ //# sourceMappingURL=postCodeList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postCodeList.d.ts","sourceRoot":"","sources":["../../../src/http/routes/postCodeList.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI9C,eAAO,MAAM,MAAM,EAAE,YAkBpB,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { emitRequest } from './types.js';
2
+ import { readJsonBody, respondError, respondInvalidBody, respondJson } from '../httpUtils.js';
3
+ export const handle = async (req, res, _url, ctx) => {
4
+ const payload = await readJsonBody(req, res);
5
+ if (!payload) {
6
+ return;
7
+ }
8
+ if (payload.pattern != null && (typeof payload.pattern !== 'string' || payload.pattern.trim() === '')) {
9
+ return respondInvalidBody(res, 'pattern must be a non-empty string');
10
+ }
11
+ emitRequest(ctx, res, 'code/list');
12
+ try {
13
+ const response = await ctx.runtimeEditor.list({ pattern: payload.pattern });
14
+ respondJson(res, response);
15
+ }
16
+ catch (error) {
17
+ respondError(res, error);
18
+ }
19
+ };
20
+ //# sourceMappingURL=postCodeList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postCodeList.js","sourceRoot":"","sources":["../../../src/http/routes/postCodeList.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE7F,MAAM,CAAC,MAAM,MAAM,GAAiB,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;IACjE,MAAM,OAAO,GAAG,MAAM,YAAY,CAAkB,GAAG,EAAE,GAAG,CAAC,CAAA;IAC7D,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,OAAM;IACP,CAAC;IAED,IAAI,OAAO,CAAC,OAAO,IAAI,IAAI,IAAI,CAAC,OAAO,OAAO,CAAC,OAAO,KAAK,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACvG,OAAO,kBAAkB,CAAC,GAAG,EAAE,oCAAoC,CAAC,CAAA;IACrE,CAAC;IAED,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,WAAW,CAAC,CAAA;IAElC,IAAI,CAAC;QACJ,MAAM,QAAQ,GAAqB,MAAM,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAA;QAC7F,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"}
@@ -0,0 +1,3 @@
1
+ import type { RouteHandler } from './types.js';
2
+ export declare const handle: RouteHandler;
3
+ //# sourceMappingURL=postCodeRead.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postCodeRead.d.ts","sourceRoot":"","sources":["../../../src/http/routes/postCodeRead.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI9C,eAAO,MAAM,MAAM,EAAE,YA4BpB,CAAA"}
@@ -0,0 +1,30 @@
1
+ import { emitRequest } from './types.js';
2
+ import { readJsonBody, respondError, respondInvalidBody, respondJson } from '../httpUtils.js';
3
+ export const handle = async (req, res, _url, ctx) => {
4
+ const payload = await readJsonBody(req, res);
5
+ if (!payload) {
6
+ return;
7
+ }
8
+ if (typeof payload.url !== 'string' || payload.url.trim() === '') {
9
+ return respondInvalidBody(res, 'url must be a non-empty string');
10
+ }
11
+ if (payload.offset != null && (!Number.isInteger(payload.offset) || payload.offset < 0)) {
12
+ return respondInvalidBody(res, 'offset must be a non-negative integer');
13
+ }
14
+ if (payload.limit != null && (!Number.isInteger(payload.limit) || payload.limit <= 0)) {
15
+ return respondInvalidBody(res, 'limit must be a positive integer');
16
+ }
17
+ emitRequest(ctx, res, 'code/read');
18
+ try {
19
+ const response = await ctx.runtimeEditor.read({
20
+ url: payload.url,
21
+ offset: payload.offset,
22
+ limit: payload.limit,
23
+ });
24
+ respondJson(res, response);
25
+ }
26
+ catch (error) {
27
+ respondError(res, error);
28
+ }
29
+ };
30
+ //# sourceMappingURL=postCodeRead.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postCodeRead.js","sourceRoot":"","sources":["../../../src/http/routes/postCodeRead.ts"],"names":[],"mappings":"AAEA,OAAO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YACtB,KAAK,EAAE,OAAO,CAAC,KAAK;SACpB,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"}
@@ -0,0 +1,3 @@
1
+ import type { RouteHandler } from './types.js';
2
+ export declare const handle: RouteHandler;
3
+ //# sourceMappingURL=postDetach.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postDetach.d.ts","sourceRoot":"","sources":["../../../src/http/routes/postDetach.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI9C,eAAO,MAAM,MAAM,EAAE,YAuBpB,CAAA"}
@@ -0,0 +1,24 @@
1
+ import { emitRequest } from './types.js';
2
+ import { respondJson, respondInvalidBody, respondError, readJsonBody } from '../httpUtils.js';
3
+ export const handle = async (req, res, _url, ctx) => {
4
+ if (!ctx.sourceHandle?.detachTarget) {
5
+ return respondJson(res, { ok: false, error: { message: 'Not available', code: 'not_available' } }, 400);
6
+ }
7
+ const payload = await readJsonBody(req, res);
8
+ if (!payload) {
9
+ return;
10
+ }
11
+ const targetId = typeof payload.targetId === 'string' ? payload.targetId : typeof payload.tabId === 'number' ? String(payload.tabId) : null;
12
+ if (!targetId) {
13
+ return respondInvalidBody(res, 'targetId is required');
14
+ }
15
+ emitRequest(ctx, res, 'detach');
16
+ try {
17
+ ctx.sourceHandle.detachTarget(targetId);
18
+ respondJson(res, { ok: true, message: 'Detach request sent' });
19
+ }
20
+ catch (error) {
21
+ respondError(res, error);
22
+ }
23
+ };
24
+ //# sourceMappingURL=postDetach.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postDetach.js","sourceRoot":"","sources":["../../../src/http/routes/postDetach.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM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KAAK,CAAC,CAAA;IACzB,CAAC;AACF,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { RouteHandler } from './types.js';
2
+ export declare const handle: RouteHandler;
3
+ export declare const selectDomAddNodeIds: (allNodeIds: number[], options: {
4
+ all: boolean;
5
+ nth?: number;
6
+ }) => number[];
7
+ //# sourceMappingURL=postDomAdd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postDomAdd.d.ts","sourceRoot":"","sources":["../../../src/http/routes/postDomAdd.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAM9C,eAAO,MAAM,MAAM,EAAE,YA4GpB,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,YAAY,MAAM,EAAE,EAAE,SAAS;IAAE,GAAG,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,KAAG,MAAM,EAWzG,CAAA"}
@@ -0,0 +1,97 @@
1
+ import { emitRequest } from './types.js';
2
+ import { insertAdjacentHtml } from '../../cdp/dom.js';
3
+ import { resolveDomSelectorMatches } from '../../cdp/mouse.js';
4
+ import { respondJson, respondInvalidBody, respondError, readJsonBody } from '../httpUtils.js';
5
+ export const handle = async (req, res, _url, ctx) => {
6
+ const payload = await readJsonBody(req, res);
7
+ if (!payload) {
8
+ return;
9
+ }
10
+ if (!payload.selector || typeof payload.selector !== 'string') {
11
+ return respondInvalidBody(res, 'selector is required');
12
+ }
13
+ if (!payload.html || typeof payload.html !== 'string') {
14
+ return respondInvalidBody(res, 'html is required');
15
+ }
16
+ const validPositions = ['beforebegin', 'afterbegin', 'beforeend', 'afterend'];
17
+ if (payload.position && !validPositions.includes(payload.position)) {
18
+ return respondInvalidBody(res, `position must be one of: ${validPositions.join(', ')}`);
19
+ }
20
+ const all = payload.all ?? false;
21
+ if (typeof all !== 'boolean') {
22
+ return respondInvalidBody(res, 'all must be a boolean');
23
+ }
24
+ const nth = payload.nth;
25
+ if (nth != null && (!Number.isFinite(nth) || !Number.isInteger(nth) || nth < 0)) {
26
+ return respondInvalidBody(res, 'nth must be a non-negative integer');
27
+ }
28
+ const expect = payload.expect;
29
+ if (expect != null && (!Number.isFinite(expect) || !Number.isInteger(expect) || expect < 0)) {
30
+ return respondInvalidBody(res, 'expect must be a non-negative integer');
31
+ }
32
+ const text = payload.text ?? false;
33
+ if (typeof text !== 'boolean') {
34
+ return respondInvalidBody(res, 'text must be a boolean');
35
+ }
36
+ if (all && nth != null) {
37
+ return respondInvalidBody(res, 'nth cannot be combined with all=true');
38
+ }
39
+ emitRequest(ctx, res, 'dom/add');
40
+ try {
41
+ const { allNodeIds } = await resolveDomSelectorMatches(ctx.cdpSession, payload.selector, true);
42
+ if (expect != null && allNodeIds.length !== expect) {
43
+ return respondJson(res, {
44
+ ok: false,
45
+ error: {
46
+ message: `Expected ${expect} matches for selector "${payload.selector}", found ${allNodeIds.length}`,
47
+ code: 'unexpected_matches',
48
+ },
49
+ }, 400);
50
+ }
51
+ if (nth != null && nth >= allNodeIds.length) {
52
+ return respondJson(res, {
53
+ ok: false,
54
+ error: {
55
+ message: `nth index ${nth} is out of range for ${allNodeIds.length} matches`,
56
+ code: 'nth_out_of_range',
57
+ },
58
+ }, 400);
59
+ }
60
+ if (!all && nth == null && allNodeIds.length > 1) {
61
+ return respondJson(res, {
62
+ ok: false,
63
+ error: {
64
+ message: `Selector matched ${allNodeIds.length} elements; pass --all to insert at all matches (or use --nth/--first)`,
65
+ code: 'multiple_matches',
66
+ },
67
+ }, 400);
68
+ }
69
+ if (allNodeIds.length === 0) {
70
+ const response = { ok: true, matches: 0, inserted: 0 };
71
+ return respondJson(res, response);
72
+ }
73
+ const nodeIds = selectDomAddNodeIds(allNodeIds, { all, nth });
74
+ const { insertedCount } = await insertAdjacentHtml(ctx.cdpSession, {
75
+ nodeIds,
76
+ html: payload.html,
77
+ position: payload.position,
78
+ text,
79
+ });
80
+ const response = { ok: true, matches: allNodeIds.length, inserted: insertedCount };
81
+ respondJson(res, response);
82
+ }
83
+ catch (error) {
84
+ respondError(res, error);
85
+ }
86
+ };
87
+ export const selectDomAddNodeIds = (allNodeIds, options) => {
88
+ if (options.all) {
89
+ return allNodeIds;
90
+ }
91
+ if (options.nth != null) {
92
+ const nodeId = allNodeIds[options.nth];
93
+ return nodeId == null ? [] : [nodeId];
94
+ }
95
+ return allNodeIds.slice(0, 1);
96
+ };
97
+ //# sourceMappingURL=postDomAdd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postDomAdd.js","sourceRoot":"","sources":["../../../src/http/routes/postDomAdd.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE7F,MAAM,CAAC,MAAM,MAAM,GAAiB,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;IACjE,MAAM,OAAO,GAAG,MAAM,YAAY,CAAgB,GAAG,EAAE,GAAG,CAAC,CAAA;IAC3D,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,OAAM;IACP,CAAC;IAED,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAC/D,OAAO,kBAAkB,CAAC,GAAG,EAAE,sBAAsB,CAAC,CAAA;IACvD,CAAC;IAED,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,OAAO,OAAO,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACvD,OAAO,kBAAkB,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAA;IACnD,CAAC;IAED,MAAM,cAAc,GAAG,CAAC,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