feat: add web and Electron reverse-engineering workflows

This commit is contained in:
N0zoM1z0
2026-07-14 20:24:12 +09:00
committed by N0zoM1z0
parent c2e64a42c8
commit be76f8090b
106 changed files with 11893 additions and 404 deletions
+3 -6
View File
@@ -1,10 +1,9 @@
import { createHash } from "node:crypto";
import {
AnalysisCancelledError,
BrowserObservationError,
} from "../domain/errors.js";
import { sanitizeBrowserUrl } from "../domain/browserObservation.js";
import { createWebTextArtifact } from "../domain/webContentArtifact.js";
export type UnknownRecord = Readonly<Record<string, unknown>>;
@@ -64,11 +63,9 @@ export const allowedSanitizedUrl = (
export const sourceResult = (
source: string,
): { included: true; sha256: string; bytes: number; content: string } => ({
): { included: true; artifact: ReturnType<typeof createWebTextArtifact> } => ({
included: true,
sha256: createHash("sha256").update(source).digest("hex"),
bytes: Buffer.byteLength(source),
content: source,
artifact: createWebTextArtifact(source, "text/javascript"),
});
export const sourceExcluded = (