mirror of
https://github.com/morluto/rea.git
synced 2026-11-18 04:34:13 +00:00
refactor(kernel): eliminate remaining record predicate copies and compose cleanup dependencies through shared owner (#11799)
* refactor(kernel): eliminate remaining record predicate copies and compose cleanup dependencies through shared owner * fix(firmware,tests): remove unused cleanup import and align CI shard and CLI registration tests
This commit is contained in:
1 parent
4a6bee6cdb
commit
af062e7a2d
21 files changed
+65
-122
No files matched your search
@@ -247,22 +247,8 @@ check(
|
||||
);
|
||||
|
||||
// "Non-null object other than an array" has one owner: src/kernel/isRecord.ts.
|
||||
// A local predicate with that body, under any name, is a copy. The listed files
|
||||
// still hold one and may only be removed from the list; a listed file that no
|
||||
// longer matches fails so the list shrinks with the code.
|
||||
const RECORD_PREDICATE_COPIES = [
|
||||
// Exported under a module-specific name; importers still use that name.
|
||||
"src/browser/history/CaptureRedaction.ts",
|
||||
"src/contracts/compactJsonSchema.ts",
|
||||
"src/domain/analysisView/environmentStateRules.ts",
|
||||
// Owned by the advertised-schema workstream.
|
||||
"src/contracts/inputSchemaPresentation.ts",
|
||||
// Narrows a protocol-specific parameter type, not unknown.
|
||||
"src/browser/execution/CdpRuntimeInitiator.ts",
|
||||
// Named `object`, which also spells the typeof result in these files.
|
||||
"src/pcap/PcapDnsWire.ts",
|
||||
"src/pcap/PcapOutput.ts",
|
||||
];
|
||||
// A local predicate with that body, under any name, is a copy.
|
||||
const RECORD_PREDICATE_COPIES = [];
|
||||
const mismatchedRecordCopies = files.filter(({ path, content }) => {
|
||||
if (path === "src/kernel/isRecord.ts") return false;
|
||||
const { named, bodies } = recordPredicateCounts(content);
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
"src/application/JsonFiles.ts": 1,
|
||||
"src/application/SetupCleanupOwner.ts": 2,
|
||||
"src/application/binary/AnalysisProviderRegistry.ts": 2,
|
||||
"src/application/binary/BinarySession.ts": 1,
|
||||
"src/application/binary/CompositeProvider.ts": 1,
|
||||
"src/application/closeOwnedWebResources.ts": 1,
|
||||
"src/application/desktop/DesktopApplicationExport.ts": 2,
|
||||
@@ -14,21 +13,17 @@
|
||||
"src/browser/CdpElectronProvider.ts": 1,
|
||||
"src/browser/CdpTargetSessionOwner.ts": 2,
|
||||
"src/browser/PlaywrightBrowserScenarioProvider.ts": 2,
|
||||
"src/browser/PlaywrightElectronActiveActions.ts": 1,
|
||||
"src/browser/PlaywrightElectronActiveProvider.ts": 1,
|
||||
"src/browser/WebSourceMapFetcher.ts": 2,
|
||||
"src/browser/history/HistoricalCaptureDecoder.ts": 1,
|
||||
"src/cli/desktopCaptureCommands.ts": 1,
|
||||
"src/cutter/CutterBridgeClient.ts": 1,
|
||||
"src/desktop/ScreenJudgeProcess.ts": 1,
|
||||
"src/domain/explicitSensitiveFailure.ts": 1,
|
||||
"src/evm/EvmoleInterfaceProvider.ts": 6,
|
||||
"src/firmware/FirmwareFailures.ts": 1,
|
||||
"src/evm/EvmoleInterfaceProvider.ts": 3,
|
||||
"src/firmware/FirmwareProvider.ts": 1,
|
||||
"src/flutter/FlutterBuildProvider.ts": 1,
|
||||
"src/frida/FridaInstrumentationManager.ts": 1,
|
||||
"src/gdb/GdbSessionManager.ts": 2,
|
||||
"src/ghidra/GhidraFileArtifacts.ts": 1,
|
||||
"src/hopper/BridgeLauncher.ts": 3,
|
||||
"src/hopper/HopperAnalysisProfile.ts": 1,
|
||||
"src/hopper/HopperClient.ts": 1,
|
||||
@@ -38,19 +33,18 @@
|
||||
"src/inspector/V8InspectorProvider.ts": 1,
|
||||
"src/javascript/sourceMaps/SourceMapCommand.ts": 4,
|
||||
"src/jeb/JebMcpConnectionOwner.ts": 1,
|
||||
"src/jeb/JebProvider.ts": 2,
|
||||
"src/jeb/JebProvider.ts": 1,
|
||||
"src/kuna/KunaProjectCache.ts": 1,
|
||||
"src/kuna/KunaSessionClient.ts": 1,
|
||||
"src/kuna/KunaTargetCommands.ts": 1,
|
||||
"src/native/LldbCallTracer.ts": 3,
|
||||
"src/native/NativeCommandAnalysisError.ts": 1,
|
||||
"src/native/NativeMacOSProvider.ts": 2,
|
||||
"src/pcap/PcapProvider.ts": 7,
|
||||
"src/pcap/PcapProvider.ts": 6,
|
||||
"src/pcap/PcapSnapshot.ts": 1,
|
||||
"src/process/ArtifactAnalysisResources.ts": 3,
|
||||
"src/process/ArtifactAnalysisResources.ts": 1,
|
||||
"src/process/OwnedDebuggerSessionRegistry.ts": 1,
|
||||
"src/process/capture/ProcessCaptureError.ts": 3,
|
||||
"src/providers/AnalysisClientFailure.ts": 1,
|
||||
"src/sqlite/SqliteDatabaseProvider.ts": 8,
|
||||
"src/sqlite/SqliteDatabaseWorkerExecution.ts": 2
|
||||
"src/sqlite/SqliteDatabaseProvider.ts": 8
|
||||
}
|
||||
Reference in new issue
Block a user