Repository navigation
fix(cli): leftover algorithms run refusal recipes name --model and --base-url - #1292
Merged
Merged
Conversation
…base-url The demo --algorithm live-model refusal and the kind-mismatch one-file hint now name --model and --base-url, so a copied command can plan instead of exiting on placeholders. Closes #1291.
Collaborator
Author
|
Review (Birfy) Tip SHA: d30191c
|
Birfy
enabled auto-merge (squash)
November 26, 2026 16:37
Birfy
added a commit
that referenced
this pull request
Nov 26, 2026
…l and --base-url (#1294) Closes #1293 Base: d7dccf5 Tip SHA: eeb4342 ## What changed On tip `d7dccf5`, #1292 already named `--model <model> [--base-url <url>]` on leftover `algorithms run` refusal and kind-mismatch hints. The card a user or host looks at *before* running a method still did not: - `algorithms show NAME` (and `--json`) printed summary, kinds, params and docs, but no copyable `algorithms run` line. - MCP `describe_algorithm` (and `list_algorithms`, which already uses `describe()`) returned the same object, so a host that listed a card still had to invent the Path A verb and the flags `plan` requires. `Algorithm.describe()` now carries `run`, in the same recipe shape #1276 / #1292 already use, with a kind-aware target placeholder (`<your-prompt.txt>` for text-only cards, `<your-skill-library>` for a skill-library-only card, `<your-skill-dir>` when every kind is a directory, `<path>` when kinds mix text and directories). `_algorithm_card_text` prints it as a `run:` line. The `describe_algorithm` tool description names the field. No model name is guessed. `changelog.d/1293-show-run-recipe.md`. No change to the placeholder-refusal behaviour of `init` / `algorithms run` / `plan`. ## Verification Tip SHA: eeb4342 Ran: - `pytest -q -o addopts='' tests/test_algorithms.py tests/test_mcp.py tests/test_cli_algorithms_run.py tests/test_first_run_caps.py tests/test_demo.py` → 128 passed, 6 skipped - `python -m tools.changelog_fragments check` → 52 changelog fragment(s) OK - `python -m tools.gen_api_docs --check` → docs/api.md is up to date Not run: - Full offline suite locally — the CI test matrix is the line
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.
Closes #1291
Base: ffae7bc
Tip SHA: d30191c
What changed
On tip
ffae7bcd, #1276 already named--model <model> [--base-url <url>]on first-runalgorithms runrecipes, including the plugin-quickstart refusal line. Two live CLI refusal recipes a user would copy were left behind:demo --algorithm NAME(and MCPdemo, which uses the samedemo_payload) whenNAMEis registered but not an offline demo card now names those flags on the "run it for real" command.kind_mismatch_messagenow names the same flags on the one-file retarget hint (algorithms run … --kind textand theinitform).OFFLINE_ALGORITHMSso a built-in card takes it.changelog.d/1291-run-refusal-model-flags.md.No change to the placeholder-refusal behaviour of
init/algorithms run/plan. No model name is guessed.Verification
Tip SHA: d30191c
Ran:
pytest -q -o addopts='' tests/test_demo.py tests/test_cli_algorithms_run.py tests/test_mcp.py tests/test_first_run_caps.py→ 124 passed, 6 skippedpython -m tools.changelog_fragments check→ 51 changelog fragment(s) OKNot run: