From 09e0c522bda372c27daed5c6b9e42ab822943595 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Sun, 5 Apr 2026 11:10:13 +0200 Subject: [PATCH] fix(client): split PowerProfile enum to fix last gdlint warning gdformat collapsed enum + 3 inline comments into one 300-char line. Split to multi-line enum with doc comments. Co-Authored-By: Claude Opus 4.6 (1M context) --- client/scripts/autoloads/platform_info.gd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/scripts/autoloads/platform_info.gd b/client/scripts/autoloads/platform_info.gd index 65df526bd..7a50632b6 100644 --- a/client/scripts/autoloads/platform_info.gd +++ b/client/scripts/autoloads/platform_info.gd @@ -22,7 +22,11 @@ extends Node signal power_profile_changed(old_profile: int, new_profile: int) ## High-level power classification. POWER_SAVER reserved for future OS API. -enum PowerProfile { FULL = 0, BATTERY = 1, POWER_SAVER = 2 } # Plugged in (charged, charging, or no battery) — no restrictions # On battery — AI inference should be suspended per D-138 §8 Layer 3 # System-level power-saver mode (future: no cross-platform API yet) +enum PowerProfile { + FULL = 0, ## Plugged in — no restrictions + BATTERY = 1, ## On battery — suspend AI inference per D-138 §8 Layer 3 + POWER_SAVER = 2, ## System-level power-saver mode (future) +} ## How often (seconds) to re-poll OS for power state changes. const POWER_POLL_INTERVAL := 30.0