From cf92303f317decfccc163c909022e541e94a844d Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Mon, 7 Jul 2025 14:05:57 +0200 Subject: [PATCH] api/hw: rename 'describe_machine_hardware' into 'get_machine_hardware_summary' --- .../ui-2d/src/routes/machines/install/hardware-step.tsx | 2 +- pkgs/clan-cli/clan_lib/machines/hardware.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/clan-app/ui-2d/src/routes/machines/install/hardware-step.tsx b/pkgs/clan-app/ui-2d/src/routes/machines/install/hardware-step.tsx index 0b9bb4ab3..dfd7b1b95 100644 --- a/pkgs/clan-app/ui-2d/src/routes/machines/install/hardware-step.tsx +++ b/pkgs/clan-app/ui-2d/src/routes/machines/install/hardware-step.tsx @@ -71,7 +71,7 @@ export const HWStep = (props: StepProps) => { const hwReportQuery = useQuery(() => ({ queryKey: [props.dir, props.machine_id, "hw_report"], queryFn: async () => { - const result = await callApi("describe_machine_hardware", { + const result = await callApi("get_machine_hardware_summary", { machine: { flake: { identifier: props.dir, diff --git a/pkgs/clan-cli/clan_lib/machines/hardware.py b/pkgs/clan-cli/clan_lib/machines/hardware.py index 1119a6c08..08c50e0ac 100644 --- a/pkgs/clan-cli/clan_lib/machines/hardware.py +++ b/pkgs/clan-cli/clan_lib/machines/hardware.py @@ -157,7 +157,7 @@ class MachineHardwareBrief(TypedDict): @API.register -def describe_machine_hardware(machine: Machine) -> MachineHardwareBrief: +def get_machine_hardware_summary(machine: Machine) -> MachineHardwareBrief: """ Return a high-level summary of hardware config and platform type. """