From 2a0a45d2f2e63431903c81c9fd8a35cc36d4b3a6 Mon Sep 17 00:00:00 2001 From: WilliamK112 <164879897+WilliamK112@users.noreply.github.com> Date: Sat, 25 Apr 2026 01:51:54 -0500 Subject: [PATCH] docs(compile): clarify target routing docstring --- src/apm_cli/commands/compile/cli.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/apm_cli/commands/compile/cli.py b/src/apm_cli/commands/compile/cli.py index f18074bec..362e0d813 100644 --- a/src/apm_cli/commands/compile/cli.py +++ b/src/apm_cli/commands/compile/cli.py @@ -164,10 +164,14 @@ def _get_validation_suggestion(error_msg): def _resolve_compile_target(target): - """Map CLI target input to compiler-understood target string. + """Map CLI target input to a compiler/detection target string. - The compiler only understands ``"vscode"``, ``"claude"``, and ``"all"``. - Multi-target lists are mapped to the narrowest equivalent. + Single targets are passed through unchanged. Multi-target lists are mapped + to the narrowest equivalent routing target: + + - any AGENTS-family target only -> ``"vscode"`` + - ``"claude"`` only -> ``"claude"`` + - AGENTS-family target(s) plus ``"claude"`` -> ``"all"`` Args: target: A single target string, a list of target strings, or ``None``.