feat: expand cross-platform investigation workflows

This commit is contained in:
morluto
2026-07-20 08:08:39 +00:00
parent b537ebfa34
commit dffc81c865
672 changed files with 13013 additions and 2302 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import {
AnalysisCancelledError,
BrowserObservationError,
type BrowserObservationOperation,
} from "../domain/errors.js";
@@ -30,11 +31,11 @@ export const openCdpTargetSession = async (
);
if (webSocket.scope === "page") return { connection, sessionId: undefined };
try {
if (signal?.aborted === true) throw new AnalysisCancelledError(operation);
const attached = await connection.send(
"Target.attachToTarget",
{ targetId: target.id, flatten: true },
undefined,
signal,
);
return { connection, sessionId: attachedSessionId(attached, operation) };
} catch (cause: unknown) {