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) <noreply@anthropic.com>
This commit is contained in:
2026-04-05 11:10:13 +02:00
co-authored by Claude Opus 4.6
parent 88c7407cb6
commit 09e0c522bd
+5 -1
View File
@@ -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