refactor(resources): move artifact failure translation into resources and declare JavaScript reconstruction's artifact entries (#11558)

refactor(resources): give artifact failure translation to resources and declare JavaScript reconstruction's artifact entries

translateArtifactFailure projects ArtifactReaderFailure, which src/resources owns, and depends only on resources and domain, so it moves to src/resources and is exported from its index. JavaScript reconstruction drives the canonical inventory scan, the format reader and the source read inside one resource scope; those three artifacts files are declared entry files. application -> artifacts past-entry imports go from 7 to 1 (the ZIP reader, moved by #11525).

Refs #11359
This commit is contained in:
morluto authored and GitHub committed 2026-11-16 06:42:44 +08:00
1 parent e77793e09a
commit c965d2346b
25 files changed
+44 -34

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@
"native -> artifacts": 2
},
"entry": {
"application -> artifacts": 7,
"application -> artifacts": 1,
"application -> browser": 2,
"application -> desktop": 41,
"application -> frida": 2,
+5
View File
@@ -245,6 +245,11 @@ export const ENTRY_FILES = Object.freeze(
"ArtifactProviderMetadata.ts",
"DesktopApplicationReader.ts",
"ReleaseExposureReader.ts",
// JavaScript reconstruction owns one resource scope across the
// inventory scan, the format reader and the source read.
"inventory/scanCanonical.ts",
"javascript/JavaScriptArtifactFiles.ts",
"javascript/JavaScriptArtifactReader.ts",
],
browser: [
"CdpBrowserProvider.ts",
@@ -18,7 +18,6 @@
"src/application/desktop/DesktopTaskReaderCleanup.ts": 2,
"src/application/ntfs/NtfsJournalService.ts": 1,
"src/application/process/ProcessCli.ts": 1,
"src/artifacts/ArtifactOperationFailure.ts": 1,
"src/artifacts/ReleaseExposureReader.ts": 1,
"src/browser/BrowserScenarioPartialObservation.ts": 1,
"src/browser/CdpBrowserProvider.ts": 1,
@@ -60,6 +59,7 @@
"src/providers/AnalysisClientFailure.ts": 1,
"src/providers/OwnedCommandCleanup.ts": 2,
"src/providers/runOwned.ts": 1,
"src/resources/ArtifactOperationFailure.ts": 1,
"src/resources/StableArtifactFailure.ts": 2,
"src/rust/RustBinaryProvider.ts": 1
}