Copy core command templates into .specify/templates/commands on init - #4506
Copy core command templates into .specify/templates/commands on init#4506gyanu2507 wants to merge 1 commit into
Conversation
specify init only copied top-level template files, so wrap presets had no core base layer after a fresh install. The wheel maps commands to core_pack/commands, which that loop could not see. Fixes github#3086
|
Thanks @gyanu2507 — clean, well-tested, focused change, and the disclosure is exactly right. But I think this may be fixing a problem that isn't actually present on current The Copying the tree into Could you share a concrete reproduction on current |
|
You're right. I re-checked wrap on current main with an empty
Copying the tree into |
Description
specify initcopied only top-level files fromtemplates/, so.specify/templates/commands/never existed after install. Wrap presets then had no core base layer andregistered_commandsstayed empty.The wheel maps
templates/commandstocore_pack/commands, which that file loop could not see.install_shared_infraandrefresh_shared_templatesnow copy that tree with the same overwrite and manifest policy as the other shared templates.Testing
uv sync && uv run pytestuv run pytest tests/test_shared_infra_commands.py tests/test_shared_infra_gitignore.py tests/test_command_template_py_scripts.pyAI Disclosure
LLM-assisted implementation. I chose the issue, wrote the tests, and ran them locally.
Fixes #3086