Repository navigation
Lab: describe_program and game_open commands - #504
Merged
Merged
Conversation
describe_program prints the selected program's id and the static contract of its options (keys, types, defaults, bounds, enum entries and which are enabled, nested groups) as one line of JSON; prechecks report unsupported until the precheck list reaches lab/tooling. game_open reports whether a game is in front (not Home, the user select or a black screen). Both read only. BatchOption gains keyed_options() so the contract can name each option by the key set takes.
dayfine
marked this pull request as ready for review
November 15, 2026 01:53
# Conflicts: # SerialPrograms/Source/ComputerPrograms/ComputerPrograms_UnitTestRunner.cpp
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.
Base:
lab/tooling; the diff shows only this change. Second PR of #131 Slice 4 (after #485).The lab server had no way to read what a program takes or whether a game is in front without running something. This adds two read-only lab channel commands.
describe_programprints the selected program's id and the static contract of its options as one line of JSON: each saved option's key (assettakes it), type, default (not the current value), bounds for numbers, entries and which are enabled for enums and selects, and nested groups.precheckssaysunsupportedfor now, because #485's precheck list is onupstream/frlg-free-party-slotsand has not reachedlab/tooling.game_open [image]printsgame_open yesorgame_open no home|user_select|black|no_video. It does not tell one game from another. To name each option by its key,BatchOptiongets a freekeyed_options()accessor (Common/Cpp, one function). The MCP tools for these live inlab/server/pa_labonagentsand are not part of this PR. Tested with new table-driven unit tests (CommonFramework::LabProgramContract, NintendoSwitch::CommandFileRunner game_open) run by the dispatched Ubuntu CI build (Fork Draft CI does not run on this base); the local compile was skipped because a console run held the heavy gate. No console run.