mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 21:23:45 +00:00
refactor(cli): bind web capture caller paths through the CLI delivery owner (#11322)
WebNetworkCaptureService.inspect took a CLI-only callerPaths argument and bound caller_input_path and caller_input_paths itself, with its own copy of the sensitive-literal filter. deliverCliAnalysisEvidence already binds caller paths for one-shot commands, so the service no longer takes them. The CLI delivery now omits a caller path, or a named caller-path choice, that contains a declared sensitive literal, using the same predicate as bundle receipts. environment-build binds its HAR spelling with finishCliEvidenceCommand.
This commit is contained in:
1 parent
0d35ea065d
commit
5c5c87d0fe
6 files changed
+54
-56
No files matched your search
@@ -73,16 +73,12 @@ export const registerWebNetworkCaptureCommands = (
|
||||
const service = createWebNetworkCaptureService(environment);
|
||||
const descriptor = callerInputs[DESCRIPTOR_PATH] as string | undefined;
|
||||
return deliverCliAnalysisEvidence({
|
||||
run: () => service.inspect(input, { signal }),
|
||||
// Evidence keeps each caller path as the caller spelled it.
|
||||
run: () =>
|
||||
service.inspect(
|
||||
input,
|
||||
{ signal },
|
||||
{
|
||||
capture: callerInputs.capture_path as string,
|
||||
...(descriptor === undefined ? {} : { descriptor }),
|
||||
},
|
||||
),
|
||||
callerInputPath: callerInputs.capture_path as string,
|
||||
...(descriptor === undefined
|
||||
? {}
|
||||
: { callerInputPaths: { descriptor_set_path: descriptor } }),
|
||||
service,
|
||||
providerId: "web-network-capture",
|
||||
operation: "inspect_web_network_capture",
|
||||
|
||||
Reference in new issue
Block a user