mirror of
https://github.com/morluto/rea.git
synced 2026-11-13 10:12:50 +00:00
fix(cli): publish the GPU inventory digest format in the CLI schema (#9062)
inspect-gpu-code-objects declared --expected_sha256 as any string. The CLI schema accepted an upper-case digest, as PowerShell's Get-FileHash prints it, and the command then refused it as invalid_request. Reuse the shared lowercase SHA-256 field so argument parsing refuses it with the CLI field name.
This commit is contained in:
2 files changed
+34
-4
No files matched your search
@@ -39,10 +39,10 @@ export const registerGpuCommands = (cli: CliInstance, logger: Logger): void => {
|
||||
.enum(["inventory", "kernels"])
|
||||
.default("inventory")
|
||||
.describe("Inventory GPU targets or decode selected kernel metadata"),
|
||||
expected_sha256: z
|
||||
.string()
|
||||
.optional()
|
||||
.describe("Inventory SHA-256; required with --object_ids"),
|
||||
expected_sha256:
|
||||
inspectGpuCodeObjectsInputSchema.shape.expected_sha256.describe(
|
||||
"Inventory SHA-256 as 64 lowercase hex digits; required with --object_ids",
|
||||
),
|
||||
object_ids: z
|
||||
.string()
|
||||
.optional()
|
||||
|
||||
Reference in new issue
Block a user