feat(doorbell): add staged boot sequence and refactor main loop

This commit is contained in:
2026-02-18 00:35:48 -08:00
parent 6cff6d4bf4
commit cd74b501db
16 changed files with 285 additions and 134 deletions

30
hk.pkl Normal file
View File

@@ -0,0 +1,30 @@
amends "package://github.com/jdx/hk/releases/download/v1.36.0/hk@1.36.0#/Config.pkl"
import "package://github.com/jdx/hk/releases/download/v1.36.0/hk@1.36.0#/Builtins.pkl"
// Only process files in sketches/ directory (excluding vendor/)
glob = List("sketches/**", "!sketches/**/vendor/**")
local linters = new Mapping<String, Step> {
["format"] = Builtins.clang_format
["trailing-whitespace"] = Builtins.trailing_whitespace
["mixed-line-ending"] = Builtins.mixed_line_ending
["check-merge-conflict"] = Builtins.check_merge_conflict
}
hooks {
["pre-commit"] {
fix = true
stash = "git"
steps = linters
}
["fix"] {
fix = true
steps = linters
}
["check"] {
steps = linters
}
}