feat(cli): add alarm suggest to recommend thresholds from meat profiles#279
Open
jongio wants to merge 1 commit into
Open
feat(cli): add alarm suggest to recommend thresholds from meat profiles#279jongio wants to merge 1 commit into
alarm suggest to recommend thresholds from meat profiles#279jongio wants to merge 1 commit into
Conversation
…iles `alarm suggest <meat>` reads the built-in meat profiles and prints suggested alarm thresholds: a meat-probe high alarm at the profile's pull temperature and a pit band centered on the reference pit temperature. By-feel cuts like ribs have no numeric target, so only a pit-band suggestion is shown. The command is offline (no login or network) and suggestion-only; it never writes to a device. It prints ready-to-edit `alarm set` commands, and `--serial`, `--meat-channel`, and `--pit-channel` fill those in. `--pit-band` tunes the band half-width (default 25). `--json` emits a structured object for scripting. Closes #274 Co-authored-by: Copilot App <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
thermoworks alarm suggest <meat>, a one-shot command that recommends alarm thresholds for a cut of meat from the built-in meat profiles.--pit-banddegrees (default 25).The command is offline (no login or network) and suggestion-only. It never writes to a device. It prints ready-to-edit
alarm setcommands, and--serial,--meat-channel, and--pit-channelfill those commands in with real values.Why
The SDK already ships the meat profiles used by
donenessandplan, but there was no quick way to turn a cut into concrete alarm thresholds. This closes that gap: pick a meat, get the numbers plus the exact commands to arm them.Usage
Testing
pnpm --dir packages/cli typecheck- cleanpnpm --dir packages/cli test- 890 passing (14 new)pnpm lint- cleanNew tests cover the pure
buildAlarmSuggestionhelper (pit band math, pull-temp alarm, by-feel cuts, custom band, placeholders vs filled commands) and thealarmSuggestcommand (human output, aliases, JSON, flag parsing, error paths).Closes #274