@vforsh/argus-watcher 0.1.11 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/cdp/pageIndicator.d.ts.map +1 -1
  3. package/dist/cdp/pageIndicator.js +1 -249
  4. package/dist/cdp/pageIndicator.js.map +1 -1
  5. package/dist/cdp/pageIndicatorScript.d.ts +19 -0
  6. package/dist/cdp/pageIndicatorScript.d.ts.map +1 -0
  7. package/dist/cdp/pageIndicatorScript.js +351 -0
  8. package/dist/cdp/pageIndicatorScript.js.map +1 -0
  9. package/dist/events.d.ts +1 -1
  10. package/dist/events.d.ts.map +1 -1
  11. package/dist/http/routes/authCookies.d.ts +5 -10
  12. package/dist/http/routes/authCookies.d.ts.map +1 -1
  13. package/dist/http/routes/authCookies.js +17 -30
  14. package/dist/http/routes/authCookies.js.map +1 -1
  15. package/dist/http/routes/defineDomTargetRoute.d.ts +14 -5
  16. package/dist/http/routes/defineDomTargetRoute.d.ts.map +1 -1
  17. package/dist/http/routes/defineDomTargetRoute.js +27 -33
  18. package/dist/http/routes/defineDomTargetRoute.js.map +1 -1
  19. package/dist/http/routes/defineRoute.d.ts +9 -0
  20. package/dist/http/routes/defineRoute.d.ts.map +1 -1
  21. package/dist/http/routes/defineRoute.js +9 -9
  22. package/dist/http/routes/defineRoute.js.map +1 -1
  23. package/dist/http/routes/domSelectorRoute.d.ts +4 -11
  24. package/dist/http/routes/domSelectorRoute.d.ts.map +1 -1
  25. package/dist/http/routes/domSelectorRoute.js +9 -17
  26. package/dist/http/routes/domSelectorRoute.js.map +1 -1
  27. package/dist/http/routes/getAuthCookies.d.ts +1 -2
  28. package/dist/http/routes/getAuthCookies.d.ts.map +1 -1
  29. package/dist/http/routes/getAuthCookies.js +14 -14
  30. package/dist/http/routes/getAuthCookies.js.map +1 -1
  31. package/dist/http/routes/getAuthState.d.ts +1 -2
  32. package/dist/http/routes/getAuthState.d.ts.map +1 -1
  33. package/dist/http/routes/getAuthState.js +13 -13
  34. package/dist/http/routes/getAuthState.js.map +1 -1
  35. package/dist/http/routes/getDialog.d.ts +1 -2
  36. package/dist/http/routes/getDialog.d.ts.map +1 -1
  37. package/dist/http/routes/getDialog.js +7 -10
  38. package/dist/http/routes/getDialog.js.map +1 -1
  39. package/dist/http/routes/getEmulation.d.ts +1 -2
  40. package/dist/http/routes/getEmulation.d.ts.map +1 -1
  41. package/dist/http/routes/getEmulation.js +7 -7
  42. package/dist/http/routes/getEmulation.js.map +1 -1
  43. package/dist/http/routes/getExtensionTabs.d.ts +1 -2
  44. package/dist/http/routes/getExtensionTabs.d.ts.map +1 -1
  45. package/dist/http/routes/getExtensionTabs.js +18 -16
  46. package/dist/http/routes/getExtensionTabs.js.map +1 -1
  47. package/dist/http/routes/getLogs.d.ts +1 -2
  48. package/dist/http/routes/getLogs.d.ts.map +1 -1
  49. package/dist/http/routes/getLogs.js +31 -26
  50. package/dist/http/routes/getLogs.js.map +1 -1
  51. package/dist/http/routes/getNet.d.ts +1 -2
  52. package/dist/http/routes/getNet.d.ts.map +1 -1
  53. package/dist/http/routes/getNet.js +19 -21
  54. package/dist/http/routes/getNet.js.map +1 -1
  55. package/dist/http/routes/getNetRequest.d.ts +1 -2
  56. package/dist/http/routes/getNetRequest.d.ts.map +1 -1
  57. package/dist/http/routes/getNetRequest.js +22 -20
  58. package/dist/http/routes/getNetRequest.js.map +1 -1
  59. package/dist/http/routes/getNetRequestBody.d.ts +1 -2
  60. package/dist/http/routes/getNetRequestBody.d.ts.map +1 -1
  61. package/dist/http/routes/getNetRequestBody.js +53 -51
  62. package/dist/http/routes/getNetRequestBody.js.map +1 -1
  63. package/dist/http/routes/getNetRequests.d.ts +1 -2
  64. package/dist/http/routes/getNetRequests.d.ts.map +1 -1
  65. package/dist/http/routes/getNetRequests.js +19 -21
  66. package/dist/http/routes/getNetRequests.js.map +1 -1
  67. package/dist/http/routes/getNetSse.d.ts +1 -2
  68. package/dist/http/routes/getNetSse.d.ts.map +1 -1
  69. package/dist/http/routes/getNetSse.js +19 -21
  70. package/dist/http/routes/getNetSse.js.map +1 -1
  71. package/dist/http/routes/getNetTail.d.ts +1 -2
  72. package/dist/http/routes/getNetTail.d.ts.map +1 -1
  73. package/dist/http/routes/getNetTail.js +21 -30
  74. package/dist/http/routes/getNetTail.js.map +1 -1
  75. package/dist/http/routes/getNetWebSocketConnection.d.ts +1 -2
  76. package/dist/http/routes/getNetWebSocketConnection.d.ts.map +1 -1
  77. package/dist/http/routes/getNetWebSocketConnection.js +22 -17
  78. package/dist/http/routes/getNetWebSocketConnection.js.map +1 -1
  79. package/dist/http/routes/getNetWebSockets.d.ts +1 -2
  80. package/dist/http/routes/getNetWebSockets.d.ts.map +1 -1
  81. package/dist/http/routes/getNetWebSockets.js +19 -21
  82. package/dist/http/routes/getNetWebSockets.js.map +1 -1
  83. package/dist/http/routes/getStatus.d.ts +1 -2
  84. package/dist/http/routes/getStatus.d.ts.map +1 -1
  85. package/dist/http/routes/getStatus.js +6 -4
  86. package/dist/http/routes/getStatus.js.map +1 -1
  87. package/dist/http/routes/getTail.d.ts +1 -2
  88. package/dist/http/routes/getTail.d.ts.map +1 -1
  89. package/dist/http/routes/getTail.js +31 -26
  90. package/dist/http/routes/getTail.js.map +1 -1
  91. package/dist/http/routes/getTargets.d.ts +1 -2
  92. package/dist/http/routes/getTargets.d.ts.map +1 -1
  93. package/dist/http/routes/getTargets.js +14 -13
  94. package/dist/http/routes/getTargets.js.map +1 -1
  95. package/dist/http/routes/getThrottle.d.ts +1 -2
  96. package/dist/http/routes/getThrottle.d.ts.map +1 -1
  97. package/dist/http/routes/getThrottle.js +7 -7
  98. package/dist/http/routes/getThrottle.js.map +1 -1
  99. package/dist/http/routes/index.d.ts +5 -1
  100. package/dist/http/routes/index.d.ts.map +1 -1
  101. package/dist/http/routes/index.js +115 -114
  102. package/dist/http/routes/index.js.map +1 -1
  103. package/dist/http/routes/netFilters.d.ts +10 -0
  104. package/dist/http/routes/netFilters.d.ts.map +1 -1
  105. package/dist/http/routes/netFilters.js +23 -1
  106. package/dist/http/routes/netFilters.js.map +1 -1
  107. package/dist/http/routes/netMock.d.ts +3 -0
  108. package/dist/http/routes/netMock.d.ts.map +1 -0
  109. package/dist/http/routes/netMock.js +141 -0
  110. package/dist/http/routes/netMock.js.map +1 -0
  111. package/dist/http/routes/postAttach.d.ts +1 -2
  112. package/dist/http/routes/postAttach.d.ts.map +1 -1
  113. package/dist/http/routes/postAttach.js +19 -21
  114. package/dist/http/routes/postAttach.js.map +1 -1
  115. package/dist/http/routes/postAuthStateLoad.d.ts +1 -2
  116. package/dist/http/routes/postAuthStateLoad.d.ts.map +1 -1
  117. package/dist/http/routes/postAuthStateLoad.js +29 -34
  118. package/dist/http/routes/postAuthStateLoad.js.map +1 -1
  119. package/dist/http/routes/postCodeEdit.d.ts +1 -2
  120. package/dist/http/routes/postCodeEdit.d.ts.map +1 -1
  121. package/dist/http/routes/postCodeEdit.js +20 -25
  122. package/dist/http/routes/postCodeEdit.js.map +1 -1
  123. package/dist/http/routes/postCodeGrep.d.ts +1 -2
  124. package/dist/http/routes/postCodeGrep.d.ts.map +1 -1
  125. package/dist/http/routes/postCodeGrep.js +20 -25
  126. package/dist/http/routes/postCodeGrep.js.map +1 -1
  127. package/dist/http/routes/postCodeList.d.ts +1 -2
  128. package/dist/http/routes/postCodeList.d.ts.map +1 -1
  129. package/dist/http/routes/postCodeList.js +14 -19
  130. package/dist/http/routes/postCodeList.js.map +1 -1
  131. package/dist/http/routes/postCodeRead.d.ts +1 -2
  132. package/dist/http/routes/postCodeRead.d.ts.map +1 -1
  133. package/dist/http/routes/postCodeRead.js +24 -29
  134. package/dist/http/routes/postCodeRead.js.map +1 -1
  135. package/dist/http/routes/postDetach.d.ts +1 -2
  136. package/dist/http/routes/postDetach.d.ts.map +1 -1
  137. package/dist/http/routes/postDetach.js +19 -21
  138. package/dist/http/routes/postDetach.js.map +1 -1
  139. package/dist/http/routes/postDialog.d.ts +1 -2
  140. package/dist/http/routes/postDialog.d.ts.map +1 -1
  141. package/dist/http/routes/postDialog.js +30 -29
  142. package/dist/http/routes/postDialog.js.map +1 -1
  143. package/dist/http/routes/postDomAdd.d.ts +1 -2
  144. package/dist/http/routes/postDomAdd.d.ts.map +1 -1
  145. package/dist/http/routes/postDomAdd.js +44 -48
  146. package/dist/http/routes/postDomAdd.js.map +1 -1
  147. package/dist/http/routes/postDomClick.d.ts +0 -1
  148. package/dist/http/routes/postDomClick.d.ts.map +1 -1
  149. package/dist/http/routes/postDomClick.js +0 -1
  150. package/dist/http/routes/postDomClick.js.map +1 -1
  151. package/dist/http/routes/postDomFill.d.ts +1 -2
  152. package/dist/http/routes/postDomFill.d.ts.map +1 -1
  153. package/dist/http/routes/postDomFill.js +17 -49
  154. package/dist/http/routes/postDomFill.js.map +1 -1
  155. package/dist/http/routes/postDomInfo.d.ts +1 -2
  156. package/dist/http/routes/postDomInfo.d.ts.map +1 -1
  157. package/dist/http/routes/postDomInfo.js +14 -20
  158. package/dist/http/routes/postDomInfo.js.map +1 -1
  159. package/dist/http/routes/postDomKeydown.d.ts +1 -2
  160. package/dist/http/routes/postDomKeydown.d.ts.map +1 -1
  161. package/dist/http/routes/postDomKeydown.js +26 -30
  162. package/dist/http/routes/postDomKeydown.js.map +1 -1
  163. package/dist/http/routes/postDomModify.d.ts +1 -2
  164. package/dist/http/routes/postDomModify.d.ts.map +1 -1
  165. package/dist/http/routes/postDomModify.js +30 -41
  166. package/dist/http/routes/postDomModify.js.map +1 -1
  167. package/dist/http/routes/postDomRemove.d.ts +1 -2
  168. package/dist/http/routes/postDomRemove.d.ts.map +1 -1
  169. package/dist/http/routes/postDomRemove.js +13 -18
  170. package/dist/http/routes/postDomRemove.js.map +1 -1
  171. package/dist/http/routes/postDomScroll.d.ts +1 -2
  172. package/dist/http/routes/postDomScroll.d.ts.map +1 -1
  173. package/dist/http/routes/postDomScroll.js +37 -42
  174. package/dist/http/routes/postDomScroll.js.map +1 -1
  175. package/dist/http/routes/postDomScrollTo.d.ts +1 -2
  176. package/dist/http/routes/postDomScrollTo.d.ts.map +1 -1
  177. package/dist/http/routes/postDomScrollTo.js +42 -48
  178. package/dist/http/routes/postDomScrollTo.js.map +1 -1
  179. package/dist/http/routes/postDomSetFile.d.ts +1 -2
  180. package/dist/http/routes/postDomSetFile.d.ts.map +1 -1
  181. package/dist/http/routes/postDomSetFile.js +29 -32
  182. package/dist/http/routes/postDomSetFile.js.map +1 -1
  183. package/dist/http/routes/postDomTree.d.ts +1 -2
  184. package/dist/http/routes/postDomTree.d.ts.map +1 -1
  185. package/dist/http/routes/postDomTree.js +13 -17
  186. package/dist/http/routes/postDomTree.js.map +1 -1
  187. package/dist/http/routes/postEmulation.d.ts +1 -2
  188. package/dist/http/routes/postEmulation.d.ts.map +1 -1
  189. package/dist/http/routes/postEmulation.js +29 -39
  190. package/dist/http/routes/postEmulation.js.map +1 -1
  191. package/dist/http/routes/postEval.d.ts +1 -2
  192. package/dist/http/routes/postEval.d.ts.map +1 -1
  193. package/dist/http/routes/postEval.js +22 -26
  194. package/dist/http/routes/postEval.js.map +1 -1
  195. package/dist/http/routes/postLocate.d.ts +2 -4
  196. package/dist/http/routes/postLocate.d.ts.map +1 -1
  197. package/dist/http/routes/postLocate.js +40 -60
  198. package/dist/http/routes/postLocate.js.map +1 -1
  199. package/dist/http/routes/postNetClear.d.ts +1 -2
  200. package/dist/http/routes/postNetClear.d.ts.map +1 -1
  201. package/dist/http/routes/postNetClear.js +14 -13
  202. package/dist/http/routes/postNetClear.js.map +1 -1
  203. package/dist/http/routes/postReload.d.ts +1 -2
  204. package/dist/http/routes/postReload.d.ts.map +1 -1
  205. package/dist/http/routes/postReload.js +10 -16
  206. package/dist/http/routes/postReload.js.map +1 -1
  207. package/dist/http/routes/postScreenshot.d.ts +1 -2
  208. package/dist/http/routes/postScreenshot.d.ts.map +1 -1
  209. package/dist/http/routes/postScreenshot.js +11 -22
  210. package/dist/http/routes/postScreenshot.js.map +1 -1
  211. package/dist/http/routes/postShutdown.d.ts +1 -2
  212. package/dist/http/routes/postShutdown.d.ts.map +1 -1
  213. package/dist/http/routes/postShutdown.js +15 -11
  214. package/dist/http/routes/postShutdown.js.map +1 -1
  215. package/dist/http/routes/postSnapshot.d.ts +1 -2
  216. package/dist/http/routes/postSnapshot.d.ts.map +1 -1
  217. package/dist/http/routes/postSnapshot.js +21 -26
  218. package/dist/http/routes/postSnapshot.js.map +1 -1
  219. package/dist/http/routes/postThrottle.d.ts +1 -2
  220. package/dist/http/routes/postThrottle.d.ts.map +1 -1
  221. package/dist/http/routes/postThrottle.js +26 -35
  222. package/dist/http/routes/postThrottle.js.map +1 -1
  223. package/dist/http/routes/postTraceStart.d.ts +1 -2
  224. package/dist/http/routes/postTraceStart.d.ts.map +1 -1
  225. package/dist/http/routes/postTraceStart.js +8 -16
  226. package/dist/http/routes/postTraceStart.js.map +1 -1
  227. package/dist/http/routes/postTraceStop.d.ts +1 -2
  228. package/dist/http/routes/postTraceStop.d.ts.map +1 -1
  229. package/dist/http/routes/postTraceStop.js +8 -16
  230. package/dist/http/routes/postTraceStop.js.map +1 -1
  231. package/dist/http/routes/postVisibility.d.ts +1 -2
  232. package/dist/http/routes/postVisibility.d.ts.map +1 -1
  233. package/dist/http/routes/postVisibility.js +21 -27
  234. package/dist/http/routes/postVisibility.js.map +1 -1
  235. package/dist/http/routes/storage.d.ts +2 -4
  236. package/dist/http/routes/storage.d.ts.map +1 -1
  237. package/dist/http/routes/storage.js +13 -25
  238. package/dist/http/routes/storage.js.map +1 -1
  239. package/dist/http/server.d.ts +4 -1
  240. package/dist/http/server.d.ts.map +1 -1
  241. package/dist/http/server.js.map +1 -1
  242. package/dist/index.d.ts +5 -5
  243. package/dist/index.d.ts.map +1 -1
  244. package/dist/index.js.map +1 -1
  245. package/dist/native-messaging/control-session-manager.d.ts +16 -0
  246. package/dist/native-messaging/control-session-manager.d.ts.map +1 -0
  247. package/dist/native-messaging/control-session-manager.js +50 -0
  248. package/dist/native-messaging/control-session-manager.js.map +1 -0
  249. package/dist/native-messaging/messaging.d.ts +4 -4
  250. package/dist/native-messaging/messaging.d.ts.map +1 -1
  251. package/dist/native-messaging/messaging.js.map +1 -1
  252. package/dist/native-messaging/session-manager.d.ts +2 -15
  253. package/dist/native-messaging/session-manager.d.ts.map +1 -1
  254. package/dist/native-messaging/session-manager.js +0 -34
  255. package/dist/native-messaging/session-manager.js.map +1 -1
  256. package/dist/native-messaging/types.d.ts +19 -2
  257. package/dist/native-messaging/types.d.ts.map +1 -1
  258. package/dist/net/NetMockController.d.ts +26 -0
  259. package/dist/net/NetMockController.d.ts.map +1 -0
  260. package/dist/net/NetMockController.js +264 -0
  261. package/dist/net/NetMockController.js.map +1 -0
  262. package/dist/runtime/watcherServices.d.ts.map +1 -1
  263. package/dist/runtime/watcherServices.js +2 -1
  264. package/dist/runtime/watcherServices.js.map +1 -1
  265. package/dist/runtime/watcherSetup.d.ts +3 -0
  266. package/dist/runtime/watcherSetup.d.ts.map +1 -1
  267. package/dist/runtime/watcherSetup.js +4 -0
  268. package/dist/runtime/watcherSetup.js.map +1 -1
  269. package/dist/scripts/install-host.js +58 -54
  270. package/dist/scripts/install-host.js.map +1 -1
  271. package/dist/sources/extension-control-source.d.ts +9 -0
  272. package/dist/sources/extension-control-source.d.ts.map +1 -0
  273. package/dist/sources/extension-control-source.js +88 -0
  274. package/dist/sources/extension-control-source.js.map +1 -0
  275. package/dist/sources/extension-frame-state.d.ts +5 -0
  276. package/dist/sources/extension-frame-state.d.ts.map +1 -1
  277. package/dist/sources/extension-frame-state.js +7 -0
  278. package/dist/sources/extension-frame-state.js.map +1 -1
  279. package/dist/sources/extension-source.d.ts +3 -1
  280. package/dist/sources/extension-source.d.ts.map +1 -1
  281. package/dist/sources/extension-source.js +35 -135
  282. package/dist/sources/extension-source.js.map +1 -1
  283. package/dist/sources/extension-target-recovery.d.ts +32 -0
  284. package/dist/sources/extension-target-recovery.d.ts.map +1 -0
  285. package/dist/sources/extension-target-recovery.js +114 -0
  286. package/dist/sources/extension-target-recovery.js.map +1 -0
  287. package/dist/sources/types.d.ts +1 -0
  288. package/dist/sources/types.d.ts.map +1 -1
  289. package/dist/startWatcherRuntime.d.ts.map +1 -1
  290. package/dist/startWatcherRuntime.js +5 -1
  291. package/dist/startWatcherRuntime.js.map +1 -1
  292. package/package.json +1 -1
  293. package/dist/http/routes/postStorageLocal.d.ts +0 -2
  294. package/dist/http/routes/postStorageLocal.d.ts.map +0 -1
  295. package/dist/http/routes/postStorageLocal.js +0 -3
  296. package/dist/http/routes/postStorageLocal.js.map +0 -1
  297. package/dist/http/routes/postStorageSession.d.ts +0 -2
  298. package/dist/http/routes/postStorageSession.d.ts.map +0 -1
  299. package/dist/http/routes/postStorageSession.js +0 -3
  300. package/dist/http/routes/postStorageSession.js.map +0 -1
@@ -1,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=getNetSse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNetSse.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getNetSse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAK9C,eAAO,MAAM,MAAM,EAAE,YAqBpB,CAAA"}
1
+ {"version":3,"file":"getNetSse.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getNetSse.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 { clampNumber, respondJson } from '../httpUtils.js';
4
- export const handle = (_req, res, url, ctx) => {
5
- if (!ctx.realtimeNetBuffer) {
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/sse', toNetRequestEventQuery(filters.value));
18
- const streams = ctx.realtimeNetBuffer.listSseAfter(filters.value.after, filters.value, filters.value.limit);
19
- const nextAfter = streams.length > 0 ? (streams[streams.length - 1]?.id ?? filters.value.after) : filters.value.after;
20
- const response = { ok: true, streams, 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/sse',
7
+ handle: ({ res, url, ctx }) => {
8
+ if (!ctx.realtimeNetBuffer) {
9
+ return respondNetDisabled(res);
10
+ }
11
+ const filters = readNetFiltersFromUrl(url, ctx, res);
12
+ if (!filters) {
13
+ return;
14
+ }
15
+ emitRequest(ctx, res, 'net/sse', toNetRequestEventQuery(filters));
16
+ const streams = ctx.realtimeNetBuffer.listSseAfter(filters.after, filters, filters.limit);
17
+ const nextAfter = streams.length > 0 ? (streams[streams.length - 1]?.id ?? filters.after) : filters.after;
18
+ return { ok: true, streams, nextAfter };
19
+ },
20
+ });
23
21
  //# sourceMappingURL=getNetSse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNetSse.js","sourceRoot":"","sources":["../../../src/http/routes/getNetSse.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,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D,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,OAAM;QACP,CAAC;QAED,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAA;QAEjE,MAAM,OAAO,GAAG,GAAG,CAAC,iBAAiB,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,CAAA;QACzF,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAA;QACzG,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,CAAA;IACxC,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=getNetTail.d.ts.map
@@ -1 +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;AAM9C,eAAO,MAAM,MAAM,EAAE,YAiBpB,CAAA"}
1
+ {"version":3,"file":"getNetTail.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getNetTail.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,KAAK,mDAoBhB,CAAA"}
@@ -1,34 +1,25 @@
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 = async (_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 parsed = parseTailRequest(url, ctx);
9
- if (parsed.error || !parsed.value) {
10
- return respondJson(res, { ok: false, error: { code: 'invalid_net_filter', message: parsed.error ?? 'Invalid network filter' } }, 400);
11
- }
12
- const { filters, timeoutMs } = parsed.value;
13
- emitRequest(ctx, res, 'net/tail', toNetRequestEventQuery(filters, { timeoutMs }));
14
- const requests = await pollNetBuffer(ctx.netBuffer, filters.after, filters, filters.limit, timeoutMs);
15
- const nextAfter = requests.length > 0 ? (requests[requests.length - 1]?.id ?? filters.after) : filters.after;
16
- const response = { ok: true, requests, nextAfter, timedOut: requests.length === 0 };
17
- respondJson(res, response);
18
- };
19
- const parseTailRequest = (url, ctx) => {
20
- const filters = parseNetRequestFilters(url.searchParams, {
21
- after: clampNumber(url.searchParams.get('after'), 0),
22
- limit: clampNumber(url.searchParams.get('limit'), 500, 1, 5000),
23
- sinceTs: clampNumber(url.searchParams.get('sinceTs'), undefined),
24
- context: ctx.getNetFilterContext?.() ?? null,
25
- });
26
- if (filters.error || !filters.value) {
27
- return { error: filters.error ?? 'Invalid network filter' };
28
- }
29
- const timeoutMs = clampNumber(url.searchParams.get('timeoutMs'), 25_000, 1000, 120_000);
30
- return { value: { filters: filters.value, timeoutMs } };
31
- };
3
+ import { readNetFiltersFromUrl, respondNetDisabled, toNetRequestEventQuery } from './netFilters.js';
4
+ import { clampNumber } from '../httpUtils.js';
5
+ export const route = defineJsonRoute({
6
+ method: 'GET',
7
+ path: '/net/tail',
8
+ handle: async ({ res, url, ctx }) => {
9
+ if (!ctx.netBuffer) {
10
+ return respondNetDisabled(res);
11
+ }
12
+ const filters = readNetFiltersFromUrl(url, ctx, res);
13
+ if (!filters) {
14
+ return;
15
+ }
16
+ const timeoutMs = clampNumber(url.searchParams.get('timeoutMs'), 25_000, 1000, 120_000);
17
+ emitRequest(ctx, res, 'net/tail', toNetRequestEventQuery(filters, { timeoutMs }));
18
+ const requests = await pollNetBuffer(ctx.netBuffer, filters.after, filters, filters.limit, timeoutMs);
19
+ const nextAfter = requests.length > 0 ? (requests[requests.length - 1]?.id ?? filters.after) : filters.after;
20
+ return { ok: true, requests, nextAfter, timedOut: requests.length === 0 };
21
+ },
22
+ });
32
23
  const NET_TAIL_POLL_INTERVAL_MS = 100;
33
24
  /**
34
25
  * Poll the in-memory buffer until matching requests appear or the timeout expires.
@@ -1 +1 @@
1
- {"version":3,"file":"getNetTail.js","sourceRoot":"","sources":["../../../src/http/routes/getNetTail.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAyB,MAAM,iBAAiB,CAAA;AACvG,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAG1D,MAAM,CAAC,MAAM,MAAM,GAAiB,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;IACjE,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;QACpB,OAAO,WAAW,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,8CAA8C,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;IACtI,CAAC;IAED,MAAM,MAAM,GAAG,gBAAgB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;IACzC,IAAI,MAAM,CAAC,KAAK,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QACnC,OAAO,WAAW,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,KAAK,IAAI,wBAAwB,EAAE,EAAE,EAAE,GAAG,CAAC,CA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teHandler } from './types.js';
2
- export declare const handle: RouteHandler;
1
+ export declare const route: import("./defineRoute.js").WatcherRouteDefinition;
3
2
  //# sourceMappingURL=getNetWebSocketConnection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNetWebSocketConnection.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getNetWebSocketConnection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI9C,eAAO,MAAM,MAAM,EAAE,YAoBpB,CAAA"}
1
+ {"version":3,"file":"getNetWebSocketConnection.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getNetWebSocketConnection.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK,mDAuBhB,CAAA"}
@@ -1,20 +1,25 @@
1
+ import { defineJsonRoute } from './defineRoute.js';
1
2
  import { emitRequest } from './types.js';
3
+ import { respondNetDisabled } from './netFilters.js';
2
4
  import { clampNumber, normalizeQueryValue, respondJson } from '../httpUtils.js';
3
- export const handle = (_req, res, url, ctx) => {
4
- if (!ctx.realtimeNetBuffer) {
5
- return respondJson(res, { ok: false, error: { code: 'net_disabled', message: 'Network capture is disabled for this watcher' } }, 400);
6
- }
7
- const id = clampNumber(url.searchParams.get('id'), undefined, 1);
8
- const requestId = normalizeQueryValue(url.searchParams.get('requestId'));
9
- if (id == null && !requestId) {
10
- return respondJson(res, { ok: false, error: { code: 'invalid_net_request', message: 'Missing WebSocket connection id' } }, 400);
11
- }
12
- emitRequest(ctx, res, 'net/ws/connection', { id, requestId: requestId ?? undefined });
13
- const connection = id != null ? ctx.realtimeNetBuffer.getWebSocketById(id) : ctx.realtimeNetBuffer.getWebSocketByRequestId(requestId);
14
- if (!connection) {
15
- return respondJson(res, { ok: false, error: { code: 'net_request_not_found', message: 'WebSocket connection not found' } }, 404);
16
- }
17
- const response = { ok: true, connection };
18
- respondJson(res, response);
19
- };
5
+ export const route = defineJsonRoute({
6
+ method: 'GET',
7
+ path: '/net/ws/connection',
8
+ handle: ({ res, url, ctx }) => {
9
+ if (!ctx.realtimeNetBuffer) {
10
+ return respondNetDisabled(res);
11
+ }
12
+ const id = clampNumber(url.searchParams.get('id'), undefined, 1);
13
+ const requestId = normalizeQueryValue(url.searchParams.get('requestId'));
14
+ if (id == null && !requestId) {
15
+ return respondJson(res, { ok: false, error: { code: 'invalid_net_request', message: 'Missing WebSocket connection id' } }, 400);
16
+ }
17
+ emitRequest(ctx, res, 'net/ws/connection', { id, requestId: requestId ?? undefined });
18
+ const connection = id != null ? ctx.realtimeNetBuffer.getWebSocketById(id) : ctx.realtimeNetBuffer.getWebSocketByRequestId(requestId);
19
+ if (!connection) {
20
+ return respondJson(res, { ok: false, error: { code: 'net_request_not_found', message: 'WebSocket connection not found' } }, 404);
21
+ }
22
+ return { ok: true, connection };
23
+ },
24
+ });
20
25
  //# sourceMappingURL=getNetWebSocketConnection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNetWebSocketConnection.js","sourceRoot":"","sources":["../../../src/http/routes/getNetWebSocketConnection.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE/E,MAAM,CAAC,MAAM,MAAM,GAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;IAC3D,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC;QAC5B,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,EAAE,GAAG,WAAW,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC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G,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,EAAE,gCAAgC,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;QACjI,CAAC;QAED,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAA;IAChC,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=getNetWebSockets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNetWebSockets.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getNetWebSockets.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAK9C,eAAO,MAAM,MAAM,EAAE,YAqBpB,CAAA"}
1
+ {"version":3,"file":"getNetWebSockets.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getNetWebSockets.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 { clampNumber, respondJson } from '../httpUtils.js';
4
- export const handle = (_req, res, url, ctx) => {
5
- if (!ctx.realtimeNetBuffer) {
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/ws', toNetRequestEventQuery(filters.value));
18
- const connections = ctx.realtimeNetBuffer.listWebSocketsAfter(filters.value.after, filters.value, filters.value.limit);
19
- const nextAfter = connections.length > 0 ? (connections[connections.length - 1]?.id ?? filters.value.after) : filters.value.after;
20
- const response = { ok: true, connections, 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/ws',
7
+ handle: ({ res, url, ctx }) => {
8
+ if (!ctx.realtimeNetBuffer) {
9
+ return respondNetDisabled(res);
10
+ }
11
+ const filters = readNetFiltersFromUrl(url, ctx, res);
12
+ if (!filters) {
13
+ return;
14
+ }
15
+ emitRequest(ctx, res, 'net/ws', toNetRequestEventQuery(filters));
16
+ const connections = ctx.realtimeNetBuffer.listWebSocketsAfter(filters.after, filters, filters.limit);
17
+ const nextAfter = connections.length > 0 ? (connections[connections.length - 1]?.id ?? filters.after) : filters.after;
18
+ return { ok: true, connections, nextAfter };
19
+ },
20
+ });
23
21
  //# sourceMappingURL=getNetWebSockets.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNetWebSockets.js","sourceRoot":"","sources":["../../../src/http/routes/getNetWebSockets.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,iBAAiB,EAAE,CAAC;QAC5B,OAAO,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CAAC,CAAA;QACpG,MAAM,SAAS,GAAG,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAA;QACrH,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,CAAA;IAC5C,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=getStatus.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"getStatus.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getStatus.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK,mDAIhB,CAAA"}
@@ -1,8 +1,10 @@
1
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
- };
2
+ import { defineJsonRoute } from './defineRoute.js';
3
+ export const route = defineJsonRoute({
4
+ method: 'GET',
5
+ path: '/status',
6
+ handle: ({ ctx }) => buildStatus(ctx),
7
+ });
6
8
  const buildStatus = (ctx) => {
7
9
  const watcher = ctx.getWatcher();
8
10
  const buffer = ctx.buffer.getStats();
@@ -1 +1 @@
1
- {"version":3,"file":"getStatus.js","sourceRoot":"","sources":["../../../src/http/routes/getStatus.ts"],"names":[],"mappings":"AACA,O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CAAA;AAEF,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,WAAW,EAAE,SAAS,CAAC,WAAW,IAAI,IAAI;QAC1C,MAAM,EAAE,SAAS,CAAC,MAAM;QACxB,MAAM,EAAE,GAAG,CAAC,SAAS,EAAE;QACvB,MAAM;QACN,OAAO;QACP,eAAe,EAAE,sBAAsB;KACvC,CAAA;AACF,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=getTail.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"getTail.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getTail.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 = 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
- };
3
+ import { respondInvalidMatch, respondInvalidMatchCase, clampNumber, parseLevels, resolveMatchCase, normalizeMatchPatterns, compileMatchPatterns, normalizeQueryValue, } from '../httpUtils.js';
4
+ export const route = defineJsonRoute({
5
+ method: 'GET',
6
+ path: '/tail',
7
+ handle: async ({ 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 timeoutMs = clampNumber(url.searchParams.get('timeoutMs'), 25_000, 1000, 120_000);
11
+ const levels = parseLevels(url.searchParams.get('levels'));
12
+ const match = url.searchParams.getAll('match');
13
+ const matchCase = resolveMatchCase(url.searchParams.get('matchCase'));
14
+ if (!matchCase) {
15
+ return respondInvalidMatchCase(res);
16
+ }
17
+ const source = normalizeQueryValue(url.searchParams.get('source'));
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, 'tail', { after, limit, levels, match: matchPatterns.patterns, matchCase, source, timeoutMs });
28
+ const events = await ctx.buffer.waitForAfter(after, { levels, match: compiledMatch.match, source }, limit, timeoutMs);
29
+ const nextAfter = events.length > 0 ? (events[events.length - 1]?.id ?? after) : after;
30
+ return { ok: true, events, nextAfter, timedOut: events.length === 0 };
31
+ },
32
+ });
28
33
  //# sourceMappingURL=getTail.js.map
@@ -1 +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,EACnB,uBAAuB,EACvB,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,GACnB,MAAM,iBAAiB,CAAA;AAExB,MAAM,CAAC,MAAM,MAAM,GAAiB,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;IACjE,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,SAAS,GAAG,WAAW,CAAC,GAA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AE,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,CAAA;QACrH,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;QACtF,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAA;IACtE,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=getTargets.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"getTargets.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getTargets.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK,mDAahB,CAAA"}
@@ -1,16 +1,17 @@
1
+ import { defineJsonRoute } from './defineRoute.js';
2
+ import { respondJson } from '../httpUtils.js';
1
3
  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 {
4
+ export const route = defineJsonRoute({
5
+ method: 'GET',
6
+ path: '/targets',
7
+ extensionOnly: true,
8
+ handle: async ({ res, ctx }) => {
9
+ if (!ctx.sourceHandle?.listTargets) {
10
+ return respondJson(res, { ok: false, error: { message: 'Not available', code: 'not_available' } }, 400);
11
+ }
12
+ emitRequest(ctx, res, 'targets');
9
13
  const targets = await ctx.sourceHandle.listTargets();
10
- respondJson(res, { ok: true, targets });
11
- }
12
- catch (error) {
13
- respondError(res, error);
14
- }
15
- };
14
+ return { ok: true, targets };
15
+ },
16
+ });
16
17
  //# sourceMappingURL=getTargets.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"getTargets.js","sourceRoot":"","sources":["../../../src/http/routes/getTargets.ts"],"names":[],"mappings":"AAAA,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,CAAC;IACpC,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,UAAU;IAChB,aAAa,EAAE,IAAI;IACnB,MAAM,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE;QAC9B,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,CAAC;YACpC,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,SAAS,CAAC,CAAA;QAChC,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,YAAY,CAAC,WAAW,EAAE,CAAA;QACpD,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=getThrottle.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"getThrottle.d.ts","sourceRoot":"","sources":["../../../src/http/routes/getThrottle.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, 'throttle');
5
- const status = ctx.throttleController.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: '/throttle',
5
+ endpoint: 'throttle',
6
+ handle: ({ ctx }) => ctx.throttleController.getStatus({ attached: ctx.getCdpStatus().attached }),
7
+ });
8
8
  //# sourceMappingURL=getThrottle.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"getThrottle.js","sourceRoot":"","sources":["../../../src/http/routes/getThrottle.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,WAAW;IACjB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,kBAAkB,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,GAAG,CAAC,YAAY,EAAE,CAAC,QAAQ,EAAE,CAAC;CAChG,CAAC,CAAA"}
@@ -1,3 +1,7 @@
1
1
  import type { WatcherRouteDefinition } from './defineRoute.js';
2
- export declare const watcherRoutes: readonly [WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition, WatcherRouteDefinition];
2
+ /**
3
+ * Flat registry of all watcher HTTP routes. Each route file owns its method,
4
+ * path, and `extensionOnly` flag; this list only aggregates them for the router.
5
+ */
6
+ export declare const watcherRoutes: readonly WatcherRouteDefinition[];
3
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/routes/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AA2D9D,eAAO,MAAM,aAAa,m5CA4D4B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/routes/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAyD9D;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,sBAAsB,EA0D1D,CAAA"}