refactor(process): build provider captured output through one owner (#11330)

* refactor(process): build provider captured output through one owner

* fix(process): report only declared diagnostics on successful provider results
This commit is contained in:
morluto authored and GitHub committed 2026-11-16 03:46:35 +08:00
1 parent 264dcd5fee
commit 0d35ea065d
25 files changed
+198 -147

No files matched your search

+11
View File
@@ -347,6 +347,17 @@ const checkCounted = (label, key, selected, pattern, owners) => {
);
};
// A provider failure's captured output comes from one owner,
// capturedProviderOutput in src/process; local copies drift on byte counts
// (retained or written) and on how output loss marks truncation.
checkCounted(
"captured output copied from a process snapshot (use capturedProviderOutput from src/process/capturedProviderOutput)",
"captured-output-copy",
files,
/\bstdout: [\w.]+\.stdout\.text\b/gu,
["src/process/capturedProviderOutput.ts"],
);
// Pushed effect invalidation (docs/adr/javascript/pushed-effect-invalidation.md).
// Recorded effects belong to the effect log. A reader that reads an effect
// index itself decides on its own which effect kinds and proofs apply; new
@@ -0,0 +1,19 @@
{
"src/apktool/ApktoolProvider.ts": 1,
"src/application/reverse/ReverseEngineeringService.ts": 3,
"src/browser/history/CaptureFailures.ts": 2,
"src/captures/TsharkCaptureProvider.ts": 1,
"src/desktop/TaskReaderProcess.ts": 1,
"src/evm/EvmoleInterfaceProvider.ts": 1,
"src/firmware/FirmwareCommand.ts": 4,
"src/firmware/FirmwareProvider.ts": 1,
"src/gdb/GdbSessionManager.ts": 1,
"src/javascript/recovery/WakaruCommand.ts": 1,
"src/javascript/sourceMaps/SourceMapCommand.ts": 1,
"src/native/CommandRunner.ts": 1,
"src/native/pwntools/PwntoolsDecoder.ts": 1,
"src/pcap/PcapCommand.ts": 1,
"src/signals/SigrokRecordingProvider.ts": 1,
"src/wasm/WabtArtifactProvider.ts": 2,
"src/wasm/WabtFailures.ts": 1
}