fix(workflows): expose workflow/step catalog add metadata options
Description
workflow catalog add and workflow step catalog add only exposed url and optional --name, even though the underlying workflow/step catalog config already supports priority, install_allowed, and description, and the sibling preset/extension catalog commands already expose those knobs.
This change keeps the fix narrow:
- add
--priority,--install-allowed/--no-install-allowed, and--descriptionto both workflow catalog add commands - extend
WorkflowCatalog.add_catalog()andStepCatalog.add_catalog()with backward-compatible optional overrides - preserve existing workflow/step defaults when callers do not pass overrides:
- priority still defaults to
max + 1 install_allowedstill defaults totruedescriptionstill defaults to an empty string
- priority still defaults to
Testing
uv run specify --help.venv/bin/python -m pytest tests/test_workflows.py -k "WorkflowCatalog or StepCatalog" -vā 37 passed.venv/bin/specify workflow catalog add --help.venv/bin/specify workflow step catalog add --help
Addressed the priority validation feedback in the latest commit. Workflow and step catalog priority overrides are now normalized before persistence, and I added regression coverage for both add and load paths.
Addressed the remaining Copilot feedback by widening WorkflowCatalog.add_catalog and StepCatalog.add_catalog priority annotations to int | str | None, matching the existing numeric-string normalization behavior.
Updated the branch with latest main and addressed the Copilot feedback around catalog metadata argument passing, priority normalization, bool rejection, and priority type annotations.
Please address Copilot feedback
Addressed the remaining Copilot docs feedback for workflow catalog add.
Updated docs/reference/workflows.md to document:
--priority <N>--install-allowed / --no-install-allowed--description <text>
This keeps the workflow reference aligned with the current CLI and with the existing catalog option tables in the presets/extensions docs.
Please address Copilot feedback
Closing this because #3419 superseded the workflow catalog metadata CLI option portion of this PR.
The remaining catalog priority validation concern is now covered separately in #3526, so Iām not going to keep this broader PR open.