Skip to content

[cli-consistency] Fix CLI/docs inconsistencies from 2026-05-06 consistency report#1174

Merged
danielmeppiel merged 4 commits into
mainfrom
copilot/cli-consistency-fix-target-value
May 8, 2026
Merged

[cli-consistency] Fix CLI/docs inconsistencies from 2026-05-06 consistency report#1174
danielmeppiel merged 4 commits into
mainfrom
copilot/cli-consistency-fix-target-value

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 6, 2026

Five CLI help text inconsistencies from the 2026-05-06 CLI Consistency Report — windsurf missing from two --target/--runtime flags, undocumented copilot-cowork target, and two commands missing their (experimental) label.

Changes

Medium severity

  • apm deps update --target: added windsurf and copilot-cowork (experimental) to help text — now matches apm install --target
  • apm install --runtime: added windsurf to the valid runtimes list (copilot, codex, vscode, cursor, opencode, gemini, claude, windsurf)
  • apm install --target: added a note that copilot-cowork is accepted when the experimental flag is enabled (apm experimental enable copilot-cowork)

Low severity

  • apm run: help text updated to "Run a script with parameters (experimental)" — aligns with docs
  • apm runtime: group help text updated to "Manage AI runtimes (experimental)" — aligns with docs

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

Copilot AI and others added 2 commits May 6, 2026 21:57
…target help, add experimental labels

Agent-Logs-Url: https://github.com/microsoft/apm/sessions/448beb91-8a53-49c9-b138-dbe506134e86

Co-authored-by: sergio-sisternes-epam <207026618+sergio-sisternes-epam@users.noreply.github.com>
…p text

Agent-Logs-Url: https://github.com/microsoft/apm/sessions/448beb91-8a53-49c9-b138-dbe506134e86

Co-authored-by: sergio-sisternes-epam <207026618+sergio-sisternes-epam@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix missing windsurf value in deps update command [cli-consistency] Fix CLI/docs inconsistencies from 2026-05-06 consistency report May 6, 2026
@danielmeppiel danielmeppiel marked this pull request as ready for review May 8, 2026 19:50
@danielmeppiel danielmeppiel self-requested a review as a code owner May 8, 2026 19:50
Copilot AI review requested due to automatic review settings May 8, 2026 19:50
@danielmeppiel danielmeppiel merged commit bc81497 into main May 8, 2026
9 checks passed
@danielmeppiel danielmeppiel deleted the copilot/cli-consistency-fix-target-value branch May 8, 2026 19:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses CLI help-text consistency gaps identified in the 2026-05-06 CLI Consistency Report by updating Click help strings to reflect the current set of supported targets/runtimes and experimental labeling.

Changes:

  • Mark apm runtime and apm run help text as experimental to align with existing documentation.
  • Update apm install --runtime help text to include windsurf in the supported runtime list.
  • Update --target help text for apm install and apm deps update to mention copilot-cowork when the experimental flag is enabled.
Show a summary per file
File Description
src/apm_cli/commands/runtime.py Updates the apm runtime group help label to include (experimental).
src/apm_cli/commands/run.py Updates the apm run command help label to include (experimental).
src/apm_cli/commands/install.py Updates --runtime help to include windsurf; updates --target help to mention copilot-cowork behind an experimental flag.
src/apm_cli/commands/deps/cli.py Updates apm deps update --target help to include windsurf and mention copilot-cowork behind an experimental flag.

Copilot's findings

Comments suppressed due to low confidence (1)

src/apm_cli/commands/install.py:843

  • The help text introduces copilot-cowork but does not mention the enforced constraint that it is user-scope only (the install pipeline errors if --target copilot-cowork is used without --global). Please add that --global requirement to the copilot-cowork note so the CLI help matches actual behavior.
    "-t",
    "target",
    type=TargetParamType(),
    default=None,
    help="Target harness(es) to deploy to. Comma-separated for multiple: --target claude,cursor. Highest-priority entry in the resolution chain (--target > apm.yml targets: > auto-detect). Values: copilot, claude, cursor, opencode, codex, gemini, windsurf, agent-skills, all. 'agent-skills' deploys to .agents/skills/ (cross-client). 'all' = copilot+claude+cursor+opencode+codex+gemini+windsurf (excludes agent-skills); combine with 'agent-skills' for both. 'copilot-cowork' is also accepted when the copilot-cowork experimental flag is enabled (run 'apm experimental enable copilot-cowork'). Note: '--target all' on 'apm compile' is deprecated; use 'apm compile --all' instead.",
  • Files reviewed: 4/4 changed files
  • Comments generated: 2

Comment on lines 799 to 803
@click.option(
"--runtime",
help=(
"Target specific runtime only (copilot, codex, vscode, cursor, opencode, gemini, claude)"
"Target specific runtime only (copilot, codex, vscode, cursor, opencode, gemini, claude, windsurf)"
),
type=TargetParamType(),
default=None,
help="Target platform (comma-separated). Values: copilot, claude, cursor, opencode, codex, gemini, agent-skills, all. 'agent-skills' deploys to .agents/skills/ (cross-client). 'all' = copilot+claude+cursor+opencode+codex+gemini (excludes agent-skills); combine with 'agent-skills' for both.",
help="Target platform (comma-separated). Values: copilot, claude, cursor, opencode, codex, gemini, windsurf, agent-skills, all. 'agent-skills' deploys to .agents/skills/ (cross-client). 'all' = copilot+claude+cursor+opencode+codex+gemini+windsurf (excludes agent-skills); combine with 'agent-skills' for both. 'copilot-cowork' is also accepted when the copilot-cowork experimental flag is enabled (run 'apm experimental enable copilot-cowork').",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[cli-consistency] CLI Consistency Report -- 2026-05-06

4 participants