mirror of
https://github.com/morluto/rea.git
synced 2026-11-14 18:52:48 +00:00
fix(cli): reject non-decimal web capture deadlines (#9167)
This commit is contained in:
3 files changed
+31
-4
No files matched your search
@@ -8,7 +8,7 @@ import { CLI_COMMANDS } from "../cliCommandNames.js";
|
||||
import { logCliCommand } from "../cliLogging.js";
|
||||
import type { Logger } from "pino";
|
||||
import type { CliInstance } from "./types.js";
|
||||
import { cliIntegerArgument } from "./options.js";
|
||||
import { cliDecimalField, cliIntegerArgument } from "./options.js";
|
||||
import { withCommandCancellation } from "./commandCancellation.js";
|
||||
import {
|
||||
analysisEvidenceDeliveryOptions,
|
||||
@@ -55,8 +55,10 @@ export const registerWebNetworkCaptureCommands = (
|
||||
.optional()
|
||||
.describe("Zero-based producer ordinals; repeat to select several"),
|
||||
...explicitSensitiveValueOptions,
|
||||
captureTimeoutMs:
|
||||
// Decimal tokens only: numeric coercion would read "0x1" as 1 ms.
|
||||
captureTimeoutMs: cliDecimalField(
|
||||
inspectWebNetworkCaptureInputSchema.shape.capture_timeout_ms,
|
||||
),
|
||||
}),
|
||||
run: ({ args, options }) =>
|
||||
withCommandCancellation((signal) =>
|
||||
|
||||
Reference in new issue
Block a user