Repository navigation
feat(swiss): ask for a variant's requires.inputs when deploying - #125
Open
aceforeverd wants to merge 6 commits into
Open
aceforeverd wants to merge 6 commits into
aceforeverd wants to merge 6 commits into
Conversation
Each input the catalog variant declares is a field on the deploy and upgrade forms. The site profile's features.inputs answer is prefilled, its template filled for the model; an upgrade shows the release's own answer. Only a typed answer is sent, as a typed override, so an untouched field keeps following the site profile. The type and pattern are checked as the deployer types. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011bWVCSybBZ1QmsL9gjrqxW
An input field now shows the answer swissd would use, in its order: the release's (on upgrade), the site profile's, then the variant's own value. Only an input with none of them is marked required. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011bWVCSybBZ1QmsL9gjrqxW
A row with no answer from the release, the site or the variant shows as unanswered, and "" counts as an answer, as swissd reads it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011bWVCSybBZ1QmsL9gjrqxW
An input field falls back to requires.inputs[].default, after the release's and the site's answers, the order swissd selects in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011bWVCSybBZ1QmsL9gjrqxW
Variant.inputs replaces requires.inputs, and SiteProfile.inputs replaces features.inputs, as swissd now serves them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011bWVCSybBZ1QmsL9gjrqxW
aceforeverd
marked this pull request as ready for review
November 10, 2026 04:54
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.
The deploy and upgrade forms in
modules/swissnow show each input the catalog variant declares in its top-levelinputs, by itskey.inputsanswer, with its template filled for the model, else the input's catalogdefault. An input with neither shows as unanswered. The input's example is the placeholder.Needs modelsphere/swiss#54.
Not covered yet:
modules/inferencesDeploySheet doesn't render inputs. A deploy there works only if the site profile answers every input; otherwise swissd refuses the plan and names the missing input.inputs.Related: modelsphere/model-catalog#103