feat(cli): add preset create and delete commands - #317
Open
admin86888 wants to merge 2 commits into
Open
Conversation
Share preset persistence and deletion in scenario_service so GUI and CLI use the same delete replacement behavior. Keep CLI create inactive for headless composition, document the explicit apply step, and reject blank preset names.
Treat a complete empty scenario metadata snapshot as intentional state instead of bootstrapping a new Default preset. Add reopen and reindex regression coverage.
admin86888
force-pushed
the
feat/cli-presets-crud
branch
from
July 15, 2026 03:44
c2f965c to
062ad69
Compare
|
Glad this feature is coming, will be on the lookout! |
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.
Summary
Adds the missing preset CRUD operations to
skills-manager-cli:presets create <name> [--description ...] [--icon ...]presets delete <reference>This resubmission is intentionally limited to CLI preset create/delete and the shared core logic required by the GUI and CLI.
Implementation
scenario_service::create_preset.scenario_service::delete_preset.Behavior
Create
The GUI continues to activate a newly created preset immediately.
CLI creation intentionally leaves the new preset inactive. This allows automation to create a preset, populate it with
presets add-skill, and explicitly activate it when ready: