@vforsh/argus-watcher 0.1.2 → 0.1.3
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.
- package/README.md +66 -14
- package/dist/.tsbuildinfo +1 -1
- package/dist/artifacts.d.ts +13 -0
- package/dist/artifacts.d.ts.map +1 -0
- package/dist/artifacts.js +27 -0
- package/dist/artifacts.js.map +1 -0
- package/dist/buffer/LogBuffer.d.ts +8 -3
- package/dist/buffer/LogBuffer.d.ts.map +1 -1
- package/dist/buffer/LogBuffer.js +9 -1
- package/dist/buffer/LogBuffer.js.map +1 -1
- package/dist/buffer/NetBuffer.d.ts +29 -0
- package/dist/buffer/NetBuffer.d.ts.map +1 -0
- package/dist/buffer/NetBuffer.js +85 -0
- package/dist/buffer/NetBuffer.js.map +1 -0
- package/dist/cdp/accessibility.d.ts +18 -0
- package/dist/cdp/accessibility.d.ts.map +1 -0
- package/dist/cdp/accessibility.js +300 -0
- package/dist/cdp/accessibility.js.map +1 -0
- package/dist/cdp/connection.d.ts +24 -0
- package/dist/cdp/connection.d.ts.map +1 -0
- package/dist/cdp/connection.js +131 -0
- package/dist/cdp/connection.js.map +1 -0
- package/dist/cdp/dom/fill.d.ts +22 -0
- package/dist/cdp/dom/fill.d.ts.map +1 -0
- package/dist/cdp/dom/fill.js +59 -0
- package/dist/cdp/dom/fill.js.map +1 -0
- package/dist/cdp/dom/info.d.ts +14 -0
- package/dist/cdp/dom/info.d.ts.map +1 -0
- package/dist/cdp/dom/info.js +52 -0
- package/dist/cdp/dom/info.js.map +1 -0
- package/dist/cdp/dom/insert.d.ts +19 -0
- package/dist/cdp/dom/insert.d.ts.map +1 -0
- package/dist/cdp/dom/insert.js +30 -0
- package/dist/cdp/dom/insert.js.map +1 -0
- package/dist/cdp/dom/modify.d.ts +50 -0
- package/dist/cdp/dom/modify.d.ts.map +1 -0
- package/dist/cdp/dom/modify.js +100 -0
- package/dist/cdp/dom/modify.js.map +1 -0
- package/dist/cdp/dom/remove.d.ts +17 -0
- package/dist/cdp/dom/remove.d.ts.map +1 -0
- package/dist/cdp/dom/remove.js +27 -0
- package/dist/cdp/dom/remove.js.map +1 -0
- package/dist/cdp/dom/selector.d.ts +19 -0
- package/dist/cdp/dom/selector.d.ts.map +1 -0
- package/dist/cdp/dom/selector.js +64 -0
- package/dist/cdp/dom/selector.js.map +1 -0
- package/dist/cdp/dom/setFile.d.ts +21 -0
- package/dist/cdp/dom/setFile.d.ts.map +1 -0
- package/dist/cdp/dom/setFile.js +82 -0
- package/dist/cdp/dom/setFile.js.map +1 -0
- package/dist/cdp/dom/submit.d.ts +15 -0
- package/dist/cdp/dom/submit.d.ts.map +1 -0
- package/dist/cdp/dom/submit.js +130 -0
- package/dist/cdp/dom/submit.js.map +1 -0
- package/dist/cdp/dom/tree.d.ts +16 -0
- package/dist/cdp/dom/tree.d.ts.map +1 -0
- package/dist/cdp/dom/tree.js +100 -0
- package/dist/cdp/dom/tree.js.map +1 -0
- package/dist/cdp/dom/types.d.ts +16 -0
- package/dist/cdp/dom/types.d.ts.map +1 -0
- package/dist/cdp/dom/types.js +2 -0
- package/dist/cdp/dom/types.js.map +1 -0
- package/dist/cdp/dom.d.ts +17 -0
- package/dist/cdp/dom.d.ts.map +1 -0
- package/dist/cdp/dom.js +10 -0
- package/dist/cdp/dom.js.map +1 -0
- package/dist/cdp/emulation.d.ts +16 -0
- package/dist/cdp/emulation.d.ts.map +1 -0
- package/dist/cdp/emulation.js +40 -0
- package/dist/cdp/emulation.js.map +1 -0
- package/dist/cdp/eval.d.ts +10 -0
- package/dist/cdp/eval.d.ts.map +1 -0
- package/dist/cdp/eval.js +34 -0
- package/dist/cdp/eval.js.map +1 -0
- package/dist/cdp/keyboard.d.ts +38 -0
- package/dist/cdp/keyboard.d.ts.map +1 -0
- package/dist/cdp/keyboard.js +148 -0
- package/dist/cdp/keyboard.js.map +1 -0
- package/dist/cdp/mouse.d.ts +49 -0
- package/dist/cdp/mouse.d.ts.map +1 -0
- package/dist/cdp/mouse.js +199 -0
- package/dist/cdp/mouse.js.map +1 -0
- package/dist/cdp/networkCapture.d.ts +11 -0
- package/dist/cdp/networkCapture.d.ts.map +1 -0
- package/dist/cdp/networkCapture.js +99 -0
- package/dist/cdp/networkCapture.js.map +1 -0
- package/dist/cdp/pageIndicator.d.ts +41 -0
- package/dist/cdp/pageIndicator.d.ts.map +1 -0
- package/dist/cdp/pageIndicator.js +395 -0
- package/dist/cdp/pageIndicator.js.map +1 -0
- package/dist/cdp/redaction.d.ts +3 -0
- package/dist/cdp/redaction.d.ts.map +1 -0
- package/dist/cdp/redaction.js +35 -0
- package/dist/cdp/redaction.js.map +1 -0
- package/dist/cdp/remoteObject.d.ts +6 -0
- package/dist/cdp/remoteObject.d.ts.map +1 -0
- package/dist/cdp/remoteObject.js +94 -0
- package/dist/cdp/remoteObject.js.map +1 -0
- package/dist/cdp/screenshot.d.ts +10 -0
- package/dist/cdp/screenshot.d.ts.map +1 -0
- package/dist/cdp/screenshot.js +87 -0
- package/dist/cdp/screenshot.js.map +1 -0
- package/dist/cdp/storageLocal.d.ts +8 -0
- package/dist/cdp/storageLocal.d.ts.map +1 -0
- package/dist/cdp/storageLocal.js +70 -0
- package/dist/cdp/storageLocal.js.map +1 -0
- package/dist/cdp/text-filter.d.ts +19 -0
- package/dist/cdp/text-filter.d.ts.map +1 -0
- package/dist/cdp/text-filter.js +54 -0
- package/dist/cdp/text-filter.js.map +1 -0
- package/dist/cdp/throttle.d.ts +6 -0
- package/dist/cdp/throttle.d.ts.map +1 -0
- package/dist/cdp/throttle.js +9 -0
- package/dist/cdp/throttle.js.map +1 -0
- package/dist/cdp/tracing.d.ts +14 -0
- package/dist/cdp/tracing.d.ts.map +1 -0
- package/dist/cdp/tracing.js +115 -0
- package/dist/cdp/tracing.js.map +1 -0
- package/dist/cdp/watcher.d.ts +17 -2
- package/dist/cdp/watcher.d.ts.map +1 -1
- package/dist/cdp/watcher.js +124 -175
- package/dist/cdp/watcher.js.map +1 -1
- package/dist/emulation/EmulationController.d.ts +12 -0
- package/dist/emulation/EmulationController.d.ts.map +1 -0
- package/dist/emulation/EmulationController.js +83 -0
- package/dist/emulation/EmulationController.js.map +1 -0
- package/dist/events.d.ts +86 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +2 -0
- package/dist/events.js.map +1 -0
- package/dist/fileLogs/WatcherFileLogger.d.ts +5 -2
- package/dist/fileLogs/WatcherFileLogger.d.ts.map +1 -1
- package/dist/fileLogs/WatcherFileLogger.js +30 -12
- package/dist/fileLogs/WatcherFileLogger.js.map +1 -1
- package/dist/http/httpUtils.d.ts +25 -0
- package/dist/http/httpUtils.d.ts.map +1 -0
- package/dist/http/httpUtils.js +170 -0
- package/dist/http/httpUtils.js.map +1 -0
- package/dist/http/router.d.ts +5 -0
- package/dist/http/router.d.ts.map +1 -0
- package/dist/http/router.js +81 -0
- package/dist/http/router.js.map +1 -0
- package/dist/http/routes/getEmulation.d.ts +3 -0
- package/dist/http/routes/getEmulation.d.ts.map +1 -0
- package/dist/http/routes/getEmulation.js +8 -0
- package/dist/http/routes/getEmulation.js.map +1 -0
- package/dist/http/routes/getLogs.d.ts +3 -0
- package/dist/http/routes/getLogs.d.ts.map +1 -0
- package/dist/http/routes/getLogs.js +28 -0
- package/dist/http/routes/getLogs.js.map +1 -0
- package/dist/http/routes/getNet.d.ts +3 -0
- package/dist/http/routes/getNet.d.ts.map +1 -0
- package/dist/http/routes/getNet.js +17 -0
- package/dist/http/routes/getNet.js.map +1 -0
- package/dist/http/routes/getNetTail.d.ts +3 -0
- package/dist/http/routes/getNetTail.d.ts.map +1 -0
- package/dist/http/routes/getNetTail.js +18 -0
- package/dist/http/routes/getNetTail.js.map +1 -0
- package/dist/http/routes/getStatus.d.ts +3 -0
- package/dist/http/routes/getStatus.d.ts.map +1 -0
- package/dist/http/routes/getStatus.js +21 -0
- package/dist/http/routes/getStatus.js.map +1 -0
- package/dist/http/routes/getTail.d.ts +3 -0
- package/dist/http/routes/getTail.d.ts.map +1 -0
- package/dist/http/routes/getTail.js +28 -0
- package/dist/http/routes/getTail.js.map +1 -0
- package/dist/http/routes/getTargets.d.ts +3 -0
- package/dist/http/routes/getTargets.d.ts.map +1 -0
- package/dist/http/routes/getTargets.js +16 -0
- package/dist/http/routes/getTargets.js.map +1 -0
- package/dist/http/routes/getThrottle.d.ts +3 -0
- package/dist/http/routes/getThrottle.d.ts.map +1 -0
- package/dist/http/routes/getThrottle.js +8 -0
- package/dist/http/routes/getThrottle.js.map +1 -0
- package/dist/http/routes/postAttach.d.ts +3 -0
- package/dist/http/routes/postAttach.d.ts.map +1 -0
- package/dist/http/routes/postAttach.js +23 -0
- package/dist/http/routes/postAttach.js.map +1 -0
- package/dist/http/routes/postDetach.d.ts +3 -0
- package/dist/http/routes/postDetach.d.ts.map +1 -0
- package/dist/http/routes/postDetach.js +23 -0
- package/dist/http/routes/postDetach.js.map +1 -0
- package/dist/http/routes/postDomAdd.d.ts +7 -0
- package/dist/http/routes/postDomAdd.d.ts.map +1 -0
- package/dist/http/routes/postDomAdd.js +97 -0
- package/dist/http/routes/postDomAdd.js.map +1 -0
- package/dist/http/routes/postDomClick.d.ts +3 -0
- package/dist/http/routes/postDomClick.d.ts.map +1 -0
- package/dist/http/routes/postDomClick.js +85 -0
- package/dist/http/routes/postDomClick.js.map +1 -0
- package/dist/http/routes/postDomFill.d.ts +3 -0
- package/dist/http/routes/postDomFill.d.ts.map +1 -0
- package/dist/http/routes/postDomFill.js +58 -0
- package/dist/http/routes/postDomFill.js.map +1 -0
- package/dist/http/routes/postDomFocus.d.ts +3 -0
- package/dist/http/routes/postDomFocus.d.ts.map +1 -0
- package/dist/http/routes/postDomFocus.js +40 -0
- package/dist/http/routes/postDomFocus.js.map +1 -0
- package/dist/http/routes/postDomHover.d.ts +3 -0
- package/dist/http/routes/postDomHover.d.ts.map +1 -0
- package/dist/http/routes/postDomHover.js +40 -0
- package/dist/http/routes/postDomHover.js.map +1 -0
- package/dist/http/routes/postDomInfo.d.ts +3 -0
- package/dist/http/routes/postDomInfo.d.ts.map +1 -0
- package/dist/http/routes/postDomInfo.js +40 -0
- package/dist/http/routes/postDomInfo.js.map +1 -0
- package/dist/http/routes/postDomKeydown.d.ts +3 -0
- package/dist/http/routes/postDomKeydown.d.ts.map +1 -0
- package/dist/http/routes/postDomKeydown.js +36 -0
- package/dist/http/routes/postDomKeydown.js.map +1 -0
- package/dist/http/routes/postDomModify.d.ts +3 -0
- package/dist/http/routes/postDomModify.d.ts.map +1 -0
- package/dist/http/routes/postDomModify.js +45 -0
- package/dist/http/routes/postDomModify.js.map +1 -0
- package/dist/http/routes/postDomRemove.d.ts +3 -0
- package/dist/http/routes/postDomRemove.d.ts.map +1 -0
- package/dist/http/routes/postDomRemove.js +39 -0
- package/dist/http/routes/postDomRemove.js.map +1 -0
- package/dist/http/routes/postDomScroll.d.ts +3 -0
- package/dist/http/routes/postDomScroll.d.ts.map +1 -0
- package/dist/http/routes/postDomScroll.js +75 -0
- package/dist/http/routes/postDomScroll.js.map +1 -0
- package/dist/http/routes/postDomScrollTo.d.ts +3 -0
- package/dist/http/routes/postDomScrollTo.d.ts.map +1 -0
- package/dist/http/routes/postDomScrollTo.js +69 -0
- package/dist/http/routes/postDomScrollTo.js.map +1 -0
- package/dist/http/routes/postDomSetFile.d.ts +3 -0
- package/dist/http/routes/postDomSetFile.d.ts.map +1 -0
- package/dist/http/routes/postDomSetFile.js +67 -0
- package/dist/http/routes/postDomSetFile.js.map +1 -0
- package/dist/http/routes/postDomSubmit.d.ts +3 -0
- package/dist/http/routes/postDomSubmit.d.ts.map +1 -0
- package/dist/http/routes/postDomSubmit.js +49 -0
- package/dist/http/routes/postDomSubmit.js.map +1 -0
- package/dist/http/routes/postDomTree.d.ts +3 -0
- package/dist/http/routes/postDomTree.d.ts.map +1 -0
- package/dist/http/routes/postDomTree.js +41 -0
- package/dist/http/routes/postDomTree.js.map +1 -0
- package/dist/http/routes/postEmulation.d.ts +3 -0
- package/dist/http/routes/postEmulation.d.ts.map +1 -0
- package/dist/http/routes/postEmulation.js +70 -0
- package/dist/http/routes/postEmulation.js.map +1 -0
- package/dist/http/routes/postEval.d.ts +3 -0
- package/dist/http/routes/postEval.d.ts.map +1 -0
- package/dist/http/routes/postEval.js +26 -0
- package/dist/http/routes/postEval.js.map +1 -0
- package/dist/http/routes/postReload.d.ts +3 -0
- package/dist/http/routes/postReload.d.ts.map +1 -0
- package/dist/http/routes/postReload.js +20 -0
- package/dist/http/routes/postReload.js.map +1 -0
- package/dist/http/routes/postScreenshot.d.ts +3 -0
- package/dist/http/routes/postScreenshot.d.ts.map +1 -0
- package/dist/http/routes/postScreenshot.js +17 -0
- package/dist/http/routes/postScreenshot.js.map +1 -0
- package/dist/http/routes/postShutdown.d.ts +3 -0
- package/dist/http/routes/postShutdown.d.ts.map +1 -0
- package/dist/http/routes/postShutdown.js +13 -0
- package/dist/http/routes/postShutdown.js.map +1 -0
- package/dist/http/routes/postSnapshot.d.ts +3 -0
- package/dist/http/routes/postSnapshot.d.ts.map +1 -0
- package/dist/http/routes/postSnapshot.js +28 -0
- package/dist/http/routes/postSnapshot.js.map +1 -0
- package/dist/http/routes/postStorageLocal.d.ts +3 -0
- package/dist/http/routes/postStorageLocal.d.ts.map +1 -0
- package/dist/http/routes/postStorageLocal.js +31 -0
- package/dist/http/routes/postStorageLocal.js.map +1 -0
- package/dist/http/routes/postThrottle.d.ts +3 -0
- package/dist/http/routes/postThrottle.d.ts.map +1 -0
- package/dist/http/routes/postThrottle.js +38 -0
- package/dist/http/routes/postThrottle.js.map +1 -0
- package/dist/http/routes/postTraceStart.d.ts +3 -0
- package/dist/http/routes/postTraceStart.d.ts.map +1 -0
- package/dist/http/routes/postTraceStart.js +17 -0
- package/dist/http/routes/postTraceStart.js.map +1 -0
- package/dist/http/routes/postTraceStop.d.ts +3 -0
- package/dist/http/routes/postTraceStop.d.ts.map +1 -0
- package/dist/http/routes/postTraceStop.js +17 -0
- package/dist/http/routes/postTraceStop.js.map +1 -0
- package/dist/http/routes/types.d.ts +9 -0
- package/dist/http/routes/types.d.ts.map +1 -0
- package/dist/http/routes/types.js +10 -0
- package/dist/http/routes/types.js.map +1 -0
- package/dist/http/server.d.ts +40 -1
- package/dist/http/server.d.ts.map +1 -1
- package/dist/http/server.js +3 -82
- package/dist/http/server.js.map +1 -1
- package/dist/index.d.ts +117 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +330 -44
- package/dist/index.js.map +1 -1
- package/dist/native-messaging/messaging.d.ts +18 -0
- package/dist/native-messaging/messaging.d.ts.map +1 -0
- package/dist/native-messaging/messaging.js +94 -0
- package/dist/native-messaging/messaging.js.map +1 -0
- package/dist/native-messaging/session-manager.d.ts +105 -0
- package/dist/native-messaging/session-manager.d.ts.map +1 -0
- package/dist/native-messaging/session-manager.js +259 -0
- package/dist/native-messaging/session-manager.js.map +1 -0
- package/dist/native-messaging/types.d.ts +79 -0
- package/dist/native-messaging/types.d.ts.map +1 -0
- package/dist/native-messaging/types.js +6 -0
- package/dist/native-messaging/types.js.map +1 -0
- package/dist/registry/registry.d.ts +9 -2
- package/dist/registry/registry.d.ts.map +1 -1
- package/dist/registry/registry.js +53 -9
- package/dist/registry/registry.js.map +1 -1
- package/dist/scripts/install-host.d.ts +10 -0
- package/dist/scripts/install-host.d.ts.map +1 -0
- package/dist/scripts/install-host.js +189 -0
- package/dist/scripts/install-host.js.map +1 -0
- package/dist/sources/cdp-source.d.ts +24 -0
- package/dist/sources/cdp-source.d.ts.map +1 -0
- package/dist/sources/cdp-source.js +48 -0
- package/dist/sources/cdp-source.js.map +1 -0
- package/dist/sources/extension-source.d.ts +15 -0
- package/dist/sources/extension-source.d.ts.map +1 -0
- package/dist/sources/extension-source.js +256 -0
- package/dist/sources/extension-source.js.map +1 -0
- package/dist/sources/types.d.ts +92 -0
- package/dist/sources/types.d.ts.map +1 -0
- package/dist/sources/types.js +7 -0
- package/dist/sources/types.js.map +1 -0
- package/dist/throttle/ThrottleController.d.ts +12 -0
- package/dist/throttle/ThrottleController.d.ts.map +1 -0
- package/dist/throttle/ThrottleController.js +67 -0
- package/dist/throttle/ThrottleController.js.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screenshot.js","sourceRoot":"","sources":["../../src/cdp/screenshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAGjC,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAa1F,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAA4D,EAAiB,EAAE;IAClH,MAAM,OAAO,GAAG,KAAK,EAAE,OAA0B,EAA+B,EAAE;QACjF,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,KAAK,CAAA;QACtC,IAAI,MAAM,KAAK,KAAK,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CAAC,kCAAkC,MAAM,EAAE,CAAC,CAAA;QAC5D,CAAC;QAED,MAAM,kBAAkB,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;QAC9C,MAAM,WAAW,GAAG,eAAe,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAA;QACvF,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,mBAAmB,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,OAAO,EAAE,WAAW,CAAC,CAAA;QAC7G,MAAM,eAAe,CAAC,YAAY,CAAC,CAAA;QAEnC,MAAM,MAAM,GAAG,MAAM,iBAAiB,CAAC,OAAO,CAAC,OAAO,EAAE;YACvD,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,MAAM;SACN,CAAC,CAAA;QAEF,MAAM,EAAE,CAAC,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ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B,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,KAAK;QACjB,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,KAAK;KACL,CAAA;AACF,CAAC,CAAA;AAED,MAAM,UAAU,GAAG,CAAC,IAAc,EAA2D,EAAE;IAC9F,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/C,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/C,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAA;IAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAA;IAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAA;IAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAA;IAE5B,OAAO;QACN,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,KAAK,EAAE,IAAI,GAAG,IAAI;QAClB,MAAM,EAAE,IAAI,GAAG,IAAI;KACnB,CAAA;AACF,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StorageLocalRequest, StorageLocalResponse } from '@vforsh/argus-core';
|
|
2
|
+
import type { CdpSessionHandle } from './connection.js';
|
|
3
|
+
/**
|
|
4
|
+
* Execute a localStorage operation in the attached page.
|
|
5
|
+
* Throws an Error on CDP failures or origin mismatch.
|
|
6
|
+
*/
|
|
7
|
+
export declare const executeStorageLocal: (session: CdpSessionHandle, request: StorageLocalRequest) => Promise<StorageLocalResponse>;
|
|
8
|
+
//# sourceMappingURL=storageLocal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageLocal.d.ts","sourceRoot":"","sources":["../../src/cdp/storageLocal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AACnF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAEvD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAU,SAAS,gBAAgB,EAAE,SAAS,mBAAmB,KAAG,OAAO,CAAC,oBAAoB,CA2B/H,CAAA"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Execute a localStorage operation in the attached page.
|
|
3
|
+
* Throws an Error on CDP failures or origin mismatch.
|
|
4
|
+
*/
|
|
5
|
+
export const executeStorageLocal = async (session, request) => {
|
|
6
|
+
const { action, key, value, origin } = request;
|
|
7
|
+
// Build the JS expression based on action
|
|
8
|
+
const expression = buildExpression(action, key, value, origin);
|
|
9
|
+
const result = await session.sendAndWait('Runtime.evaluate', {
|
|
10
|
+
expression,
|
|
11
|
+
awaitPromise: false,
|
|
12
|
+
returnByValue: true,
|
|
13
|
+
}, { timeoutMs: 5000 });
|
|
14
|
+
const payload = result;
|
|
15
|
+
if (payload.exceptionDetails) {
|
|
16
|
+
const message = payload.exceptionDetails.exception?.description ?? payload.exceptionDetails.text ?? 'Unknown error';
|
|
17
|
+
throw new Error(message);
|
|
18
|
+
}
|
|
19
|
+
return payload.result?.value;
|
|
20
|
+
};
|
|
21
|
+
const buildExpression = (action, key, value, origin) => {
|
|
22
|
+
// IIFE to execute and return JSON-serializable result
|
|
23
|
+
return `(() => {
|
|
24
|
+
const currentOrigin = (() => {
|
|
25
|
+
try {
|
|
26
|
+
return new URL(location.href).origin
|
|
27
|
+
} catch {
|
|
28
|
+
throw new Error('Cannot determine origin: page is on a non-http URL (e.g., about:blank)')
|
|
29
|
+
}
|
|
30
|
+
})()
|
|
31
|
+
|
|
32
|
+
${origin ? `if (currentOrigin !== ${JSON.stringify(origin)}) { throw new Error('Origin mismatch: page is on ' + currentOrigin + ', requested ' + ${JSON.stringify(origin)}) }` : ''}
|
|
33
|
+
|
|
34
|
+
${buildActionCode(action, key, value)}
|
|
35
|
+
})()`;
|
|
36
|
+
};
|
|
37
|
+
const buildActionCode = (action, key, value) => {
|
|
38
|
+
switch (action) {
|
|
39
|
+
case 'get':
|
|
40
|
+
return `
|
|
41
|
+
const val = localStorage.getItem(${JSON.stringify(key)})
|
|
42
|
+
return { ok: true, origin: currentOrigin, key: ${JSON.stringify(key)}, exists: val !== null, value: val }
|
|
43
|
+
`;
|
|
44
|
+
case 'set':
|
|
45
|
+
return `
|
|
46
|
+
localStorage.setItem(${JSON.stringify(key)}, ${JSON.stringify(value)})
|
|
47
|
+
return { ok: true, origin: currentOrigin, key: ${JSON.stringify(key)} }
|
|
48
|
+
`;
|
|
49
|
+
case 'remove':
|
|
50
|
+
return `
|
|
51
|
+
localStorage.removeItem(${JSON.stringify(key)})
|
|
52
|
+
return { ok: true, origin: currentOrigin, key: ${JSON.stringify(key)} }
|
|
53
|
+
`;
|
|
54
|
+
case 'list':
|
|
55
|
+
return `
|
|
56
|
+
const keys = Object.keys(localStorage).sort()
|
|
57
|
+
return { ok: true, origin: currentOrigin, keys }
|
|
58
|
+
`;
|
|
59
|
+
case 'clear':
|
|
60
|
+
return `
|
|
61
|
+
const count = localStorage.length
|
|
62
|
+
localStorage.clear()
|
|
63
|
+
return { ok: true, origin: currentOrigin, cleared: count }
|
|
64
|
+
`;
|
|
65
|
+
default:
|
|
66
|
+
// Should never happen due to type safety, but include for robustness
|
|
67
|
+
return `throw new Error('Unknown action: ' + ${JSON.stringify(action)})`;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=storageLocal.js.map
|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AC;MACjC,CAAA;AACN,CAAC,CAAA;AAED,MAAM,eAAe,GAAG,CAAC,MAAqC,EAAE,GAAuB,EAAE,KAAyB,EAAU,EAAE;IAC7H,QAAQ,MAAM,EAAE,CAAC;QAChB,KAAK,KAAK;YACT,OAAO;uCAC6B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC;qDACL,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC;IACpE,CAAA;QACF,KAAK,KAAK;YACT,OAAO;2BACiB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;qDACnB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC;IACpE,CAAA;QACF,KAAK,QAAQ;YACZ,OAAO;8BACoB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC;qDACI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC;IACpE,CAAA;QACF,KAAK,MAAM;YACV,OAAO;;;IAGN,CAAA;QACF,KAAK,OAAO;YACX,OAAO;;;;IAIN,CAAA;QACF;YACC,qEAAqE;YACrE,OAAO,wCAAwC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAA;IAC1E,CAAC;AACF,CAAC,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { CdpSessionHandle } from './connection.js';
|
|
2
|
+
type TextPattern = {
|
|
3
|
+
type: 'exact';
|
|
4
|
+
value: string;
|
|
5
|
+
} | {
|
|
6
|
+
type: 'regex';
|
|
7
|
+
regex: RegExp;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Parse a text filter string into either an exact match or a regex pattern.
|
|
11
|
+
* `/pattern/flags` syntax is treated as regex; everything else is exact match.
|
|
12
|
+
*/
|
|
13
|
+
export declare const parseTextPattern: (text: string) => TextPattern;
|
|
14
|
+
/**
|
|
15
|
+
* Filter CDP node IDs by textContent, supporting exact match and /regex/flags.
|
|
16
|
+
*/
|
|
17
|
+
export declare const filterNodesByText: (session: CdpSessionHandle, nodeIds: number[], text: string) => Promise<number[]>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=text-filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-filter.d.ts","sourceRoot":"","sources":["../../src/cdp/text-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAEvD,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAItF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,KAAG,WAa/C,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAU,SAAS,gBAAgB,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,MAAM,KAAG,OAAO,CAAC,MAAM,EAAE,CA6BpH,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const REGEX_PATTERN = /^\/(.+)\/([imsu]*)$/;
|
|
2
|
+
/**
|
|
3
|
+
* Parse a text filter string into either an exact match or a regex pattern.
|
|
4
|
+
* `/pattern/flags` syntax is treated as regex; everything else is exact match.
|
|
5
|
+
*/
|
|
6
|
+
export const parseTextPattern = (text) => {
|
|
7
|
+
const match = REGEX_PATTERN.exec(text);
|
|
8
|
+
if (!match) {
|
|
9
|
+
return { type: 'exact', value: text };
|
|
10
|
+
}
|
|
11
|
+
const [, pattern, flags] = match;
|
|
12
|
+
try {
|
|
13
|
+
return { type: 'regex', regex: new RegExp(pattern, flags) };
|
|
14
|
+
}
|
|
15
|
+
catch (error) {
|
|
16
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
17
|
+
throw new Error(`Invalid regex in --text "${text}": ${msg}`);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Filter CDP node IDs by textContent, supporting exact match and /regex/flags.
|
|
22
|
+
*/
|
|
23
|
+
export const filterNodesByText = async (session, nodeIds, text) => {
|
|
24
|
+
const pattern = parseTextPattern(text);
|
|
25
|
+
const filtered = [];
|
|
26
|
+
for (const nodeId of nodeIds) {
|
|
27
|
+
const resolved = (await session.sendAndWait('DOM.resolveNode', { nodeId }));
|
|
28
|
+
const objectId = resolved.object?.objectId;
|
|
29
|
+
if (!objectId) {
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
const evalResult = (await session.sendAndWait('Runtime.callFunctionOn', {
|
|
33
|
+
objectId,
|
|
34
|
+
functionDeclaration: 'function() { return this.textContent?.trim(); }',
|
|
35
|
+
returnByValue: true,
|
|
36
|
+
}));
|
|
37
|
+
const trimmedText = evalResult.result?.value;
|
|
38
|
+
if (typeof trimmedText !== 'string') {
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
if (pattern.type === 'exact') {
|
|
42
|
+
if (trimmedText === pattern.value) {
|
|
43
|
+
filtered.push(nodeId);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
if (pattern.regex.test(trimmedText)) {
|
|
48
|
+
filtered.push(nodeId);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return filtered;
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=text-filter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-filter.js","sourceRoot":"","sources":["../../src/cdp/text-filter.ts"],"names":[],"mappings":"AAIA,MAAM,aAAa,GAAG,qBAAqB,CAAA;AAE3C;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAe,EAAE;IAC7D,MAAM,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACtC,IAAI,CAAC,KAAK,EAAE,CAA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AAU,CAAC,MAAM,EAAE,KAAK,CAAA;QAC5C,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;YACrC,SAAQ;QACT,CAAC;QACD,IAAI,OAAO,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;YAC9B,IAAI,WAAW,KAAK,OAAO,CAAC,KAAK,EAAE,CAAC;gBACnC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;YACtB,CAAC;QACF,CAAC;aAAM,CAAC;YACP,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;gBACrC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;YACtB,CAAC;QACF,CAAC;IACF,CAAC;IACD,OAAO,QAAQ,CAAA;AAChB,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CdpSessionHandle } from './connection.js';
|
|
2
|
+
/** Apply CPU throttle rate to a CDP session. */
|
|
3
|
+
export declare const applyThrottle: (session: CdpSessionHandle, rate: number) => Promise<void>;
|
|
4
|
+
/** Clear CPU throttle (reset to rate 1). */
|
|
5
|
+
export declare const clearThrottle: (session: CdpSessionHandle) => Promise<void>;
|
|
6
|
+
//# sourceMappingURL=throttle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"throttle.d.ts","sourceRoot":"","sources":["../../src/cdp/throttle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAEvD,gDAAgD;AAChD,eAAO,MAAM,aAAa,GAAU,SAAS,gBAAgB,EAAE,MAAM,MAAM,KAAG,OAAO,CAAC,IAAI,CAEzF,CAAA;AAED,4CAA4C;AAC5C,eAAO,MAAM,aAAa,GAAU,SAAS,gBAAgB,KAAG,OAAO,CAAC,IAAI,CAE3E,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Apply CPU throttle rate to a CDP session. */
|
|
2
|
+
export const applyThrottle = async (session, rate) => {
|
|
3
|
+
await session.sendAndWait('Emulation.setCPUThrottlingRate', { rate });
|
|
4
|
+
};
|
|
5
|
+
/** Clear CPU throttle (reset to rate 1). */
|
|
6
|
+
export const clearThrottle = async (session) => {
|
|
7
|
+
await session.sendAndWait('Emulation.setCPUThrottlingRate', { rate: 1 });
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=throttle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"throttle.js","sourceRoot":"","sources":["../../src/cdp/throttle.ts"],"names":[],"mappings":"AAEA,gDAAgD;AAChD,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAAE,OAAyB,EAAE,IAAY,EAAiB,EAAE;IAC7F,MAAM,OAAO,CAAC,WAAW,CAAC,gCAAgC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA;AACtE,CAAC,CAAA;AAED,4CAA4C;AAC5C,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAAE,OAAyB,EAAiB,EAAE;IAC/E,MAAM,OAAO,CAAC,WAAW,CAAC,gCAAgC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAA;AACzE,CAAC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TraceStartRequest, TraceStartResponse, TraceStopResponse } from '@vforsh/argus-core';
|
|
2
|
+
import type { CdpSessionHandle } from './connection.js';
|
|
3
|
+
export type TraceRecorder = {
|
|
4
|
+
start: (options: TraceStartRequest) => Promise<TraceStartResponse>;
|
|
5
|
+
stop: (options: {
|
|
6
|
+
traceId?: string;
|
|
7
|
+
}) => Promise<TraceStopResponse>;
|
|
8
|
+
onDetached: (reason?: string) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const createTraceRecorder: (options: {
|
|
11
|
+
session: CdpSessionHandle;
|
|
12
|
+
artifactsDir: string;
|
|
13
|
+
}) => TraceRecorder;
|
|
14
|
+
//# sourceMappingURL=tracing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../src/cdp/tracing.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAClG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAcvD,MAAM,MAAM,aAAa,GAAG;IAC3B,KAAK,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAA;IAClE,IAAI,EAAE,CAAC,OAAO,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAA;IACnE,UAAU,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CACrC,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,SAAS;IAAE,OAAO,EAAE,gBAAgB,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,KAAG,aA0HlG,CAAA"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import crypto from 'node:crypto';
|
|
4
|
+
import { ensureArtifactsDir, ensureParentDir, resolveArtifactPath } from '../artifacts.js';
|
|
5
|
+
export const createTraceRecorder = (options) => {
|
|
6
|
+
let active = null;
|
|
7
|
+
const createDeferred = () => {
|
|
8
|
+
let resolveCompletion;
|
|
9
|
+
let rejectCompletion;
|
|
10
|
+
const completion = new Promise((resolve, reject) => {
|
|
11
|
+
resolveCompletion = resolve;
|
|
12
|
+
rejectCompletion = reject;
|
|
13
|
+
});
|
|
14
|
+
return { completion, resolveCompletion, rejectCompletion };
|
|
15
|
+
};
|
|
16
|
+
const finalizeTraceFile = async (state) => {
|
|
17
|
+
if (state.stream.closed) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
state.stream.write(']}');
|
|
21
|
+
await new Promise((resolve) => state.stream.end(resolve));
|
|
22
|
+
};
|
|
23
|
+
options.session.onEvent('Tracing.dataCollected', (params) => {
|
|
24
|
+
if (!active) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const payload = params;
|
|
28
|
+
if (!Array.isArray(payload.value) || payload.value.length === 0) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
for (const event of payload.value) {
|
|
32
|
+
const json = JSON.stringify(event);
|
|
33
|
+
if (active.hasWritten) {
|
|
34
|
+
active.stream.write(`,${json}`);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
active.stream.write(json);
|
|
38
|
+
active.hasWritten = true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
options.session.onEvent('Tracing.tracingComplete', () => {
|
|
43
|
+
if (!active) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
void finalizeTraceFile(active)
|
|
47
|
+
.then(() => {
|
|
48
|
+
active?.resolveCompletion();
|
|
49
|
+
})
|
|
50
|
+
.catch((error) => {
|
|
51
|
+
active?.rejectCompletion(error instanceof Error ? error : new Error(String(error)));
|
|
52
|
+
})
|
|
53
|
+
.finally(() => {
|
|
54
|
+
active = null;
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
const start = async (request) => {
|
|
58
|
+
if (active) {
|
|
59
|
+
throw new Error('Tracing already active');
|
|
60
|
+
}
|
|
61
|
+
await ensureArtifactsDir(options.artifactsDir);
|
|
62
|
+
const traceId = crypto.randomUUID();
|
|
63
|
+
const defaultName = `traces/trace-${new Date().toISOString().replace(/[:.]/g, '-')}.json`;
|
|
64
|
+
const { absolutePath, displayPath } = resolveArtifactPath(options.artifactsDir, request.outFile, defaultName);
|
|
65
|
+
await ensureParentDir(absolutePath);
|
|
66
|
+
const stream = fs.createWriteStream(path.resolve(absolutePath), { encoding: 'utf8' });
|
|
67
|
+
stream.write('{"traceEvents":[', 'utf8');
|
|
68
|
+
const deferred = createDeferred();
|
|
69
|
+
active = {
|
|
70
|
+
traceId,
|
|
71
|
+
outFile: displayPath,
|
|
72
|
+
stream,
|
|
73
|
+
hasWritten: false,
|
|
74
|
+
state: 'recording',
|
|
75
|
+
completion: deferred.completion,
|
|
76
|
+
resolveCompletion: deferred.resolveCompletion,
|
|
77
|
+
rejectCompletion: deferred.rejectCompletion,
|
|
78
|
+
};
|
|
79
|
+
await options.session.sendAndWait('Tracing.start', {
|
|
80
|
+
categories: request.categories,
|
|
81
|
+
options: request.options,
|
|
82
|
+
transferMode: 'ReportEvents',
|
|
83
|
+
});
|
|
84
|
+
return { ok: true, traceId, outFile: displayPath };
|
|
85
|
+
};
|
|
86
|
+
const stop = async ({ traceId }) => {
|
|
87
|
+
if (!active) {
|
|
88
|
+
throw new Error('No active trace to stop');
|
|
89
|
+
}
|
|
90
|
+
if (traceId && traceId !== active.traceId) {
|
|
91
|
+
throw new Error('Trace id does not match active trace');
|
|
92
|
+
}
|
|
93
|
+
const current = active;
|
|
94
|
+
if (current.state === 'stopping') {
|
|
95
|
+
await current.completion;
|
|
96
|
+
return { ok: true, outFile: current.outFile };
|
|
97
|
+
}
|
|
98
|
+
current.state = 'stopping';
|
|
99
|
+
await options.session.sendAndWait('Tracing.end', {}, { timeoutMs: 15_000 });
|
|
100
|
+
await current.completion;
|
|
101
|
+
return { ok: true, outFile: current.outFile };
|
|
102
|
+
};
|
|
103
|
+
const onDetached = (reason) => {
|
|
104
|
+
if (!active) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
const error = new Error(reason ?? 'CDP detached while tracing');
|
|
108
|
+
active.rejectCompletion(error);
|
|
109
|
+
void finalizeTraceFile(active).finally(() => {
|
|
110
|
+
active = null;
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
return { start, stop, onDetached };
|
|
114
|
+
};
|
|
115
|
+
//# sourceMappingURL=trac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AAE,IAAI,EAAE,UAAU,EAAE,CAAA;AACnC,CAAC,CAAA"}
|
package/dist/cdp/watcher.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { LogEvent, WatcherMatch, WatcherChrome } from '@vforsh/argus-core';
|
|
2
2
|
import type { IgnoreMatcher } from './ignoreList.js';
|
|
3
|
+
import type { CdpSessionController, CdpSessionHandle } from './connection.js';
|
|
3
4
|
/** Minimal CDP target metadata needed for attachment. */
|
|
4
5
|
export type CdpTarget = {
|
|
5
6
|
/** CDP target id (from Chrome `/json` endpoint). */
|
|
@@ -10,6 +11,10 @@ export type CdpTarget = {
|
|
|
10
11
|
url: string;
|
|
11
12
|
/** WebSocket URL used to connect to the target via the Chrome DevTools Protocol. */
|
|
12
13
|
webSocketDebuggerUrl: string;
|
|
14
|
+
/** Target type (e.g., 'page', 'iframe', 'worker', 'service_worker'). */
|
|
15
|
+
type: string;
|
|
16
|
+
/** Parent target ID for nested targets (e.g., iframes within pages). Null for top-level pages. */
|
|
17
|
+
parentId: string | null;
|
|
13
18
|
};
|
|
14
19
|
/** Current CDP attachment status. */
|
|
15
20
|
export type CdpStatus = {
|
|
@@ -17,7 +22,11 @@ export type CdpStatus = {
|
|
|
17
22
|
target: {
|
|
18
23
|
title: string | null;
|
|
19
24
|
url: string | null;
|
|
25
|
+
type: string | null;
|
|
26
|
+
parentId: string | null;
|
|
20
27
|
} | null;
|
|
28
|
+
/** Best-effort reason for detachment. Null when attached. */
|
|
29
|
+
reason?: string | null;
|
|
21
30
|
};
|
|
22
31
|
type PageIntlInfo = {
|
|
23
32
|
timezone: string | null;
|
|
@@ -33,13 +42,19 @@ export type CdpWatcherOptions = {
|
|
|
33
42
|
url: string;
|
|
34
43
|
title: string | null;
|
|
35
44
|
}) => void;
|
|
45
|
+
onPageLoad?: () => void;
|
|
36
46
|
onPageIntl?: (info: PageIntlInfo) => void;
|
|
47
|
+
onAttach?: (session: CdpSessionHandle, target: CdpTarget) => Promise<void> | void;
|
|
48
|
+
onDetach?: (reason: string) => void;
|
|
49
|
+
sessionHandle?: CdpSessionController;
|
|
37
50
|
ignoreMatcher?: IgnoreMatcher | null;
|
|
38
51
|
stripUrlPrefixes?: string[];
|
|
39
52
|
};
|
|
40
|
-
|
|
41
|
-
|
|
53
|
+
export type CdpWatcherHandle = {
|
|
54
|
+
session: CdpSessionHandle;
|
|
42
55
|
stop: () => Promise<void>;
|
|
43
56
|
};
|
|
57
|
+
/** Start CDP polling + websocket subscriptions for console/exception events. */
|
|
58
|
+
export declare const startCdpWatcher: (options: CdpWatcherOptions) => CdpWatcherHandle;
|
|
44
59
|
export {};
|
|
45
60
|
//# sourceMappingURL=watcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watcher.d.ts","sourceRoot":"","sources":["../../src/cdp/watcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"watcher.d.ts","sourceRoot":"","sources":["../../src/cdp/watcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAEzF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAMpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAG7E,yDAAyD;AACzD,MAAM,MAAM,SAAS,GAAG;IACvB,oDAAoD;IACpD,EAAE,EAAE,MAAM,CAAA;IAEV,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAA;IAEb,+BAA+B;IAC/B,GAAG,EAAE,MAAM,CAAA;IAEX,oFAAoF;IACpF,oBAAoB,EAAE,MAAM,CAAA;IAE5B,wEAAwE;IACxE,IAAI,EAAE,MAAM,CAAA;IAEZ,kGAAkG;IAClG,QAAQ,EAAE,MA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