refactor(desktop): declare the desktop inventory's use of the Electron fuse reader (#11494)

* refactor(desktop): declare the desktop inventory's use of the Electron fuse reader

* docs(architecture): list the captures to pcap provider dependency
This commit is contained in:
morluto authored and GitHub committed 2026-11-16 08:11:09 +08:00
1 parent 6fa58b0ec8
commit e03185429f
3 files changed
+12 -2

No files matched your search

+2 -1
View File
@@ -13,7 +13,8 @@ graph TD
%% imports inner layers, including the shared provider core (src/providers/,
%% which may not import a provider folder), and its own files. Importing another provider folder is recorded debt
%% unless PROVIDER_DEPENDENCIES declares the file (inspector -> browser CDP
%% client, browser -> electron fuse reader); shared pieces belong in
%% client, browser and desktop -> electron fuse reader, captures -> pcap
%% tshark configuration); shared pieces belong in
%% ports, foundation or the provider core. Application, composition and
%% adapters reach a provider through the entry files it declares in
%% scripts/lib/module-layers.mjs (ENTRY_FILES; no per-provider barrel).
-1
View File
@@ -8,7 +8,6 @@
"main <-> server"
],
"crossProvider": {
"desktop -> electron": 1,
"gpu -> artifacts": 1,
"model -> artifacts": 1
},
+10
View File
@@ -451,6 +451,16 @@ export const PROVIDER_DEPENDENCIES = Object.freeze([
reason:
"active Electron capture checks the inspect-arguments fuse with the electron provider's fuse reader",
}),
Object.freeze({
from: "desktop",
to: "electron",
files: Object.freeze(["ElectronFuseReader.ts"]),
// The Linux application inventory marks an executable as Electron when
// it carries a fuse sentinel. It locates the sentinel with the electron
// provider's fuse reader instead of searching the fuse wire again.
reason:
"the Linux application inventory detects Electron executables with the electron provider's fuse reader",
}),
Object.freeze({
from: "captures",
to: "pcap",