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:
RRFZ authored and GitHub committed 2026-11-06 14:33:56 +08:00
1 parent 34b954ec8a
commit 415ddb74c0
2 files changed
+34 -4

No files matched your search

+4 -4
View File
@@ -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()