Skip to content

feat(cli): cherry-pick PR #15402 — use alias name for template id#15407

Merged
tecton merged 2 commits intodevfrom
copilot/cherry-pick-pr-15402-branches
Mar 4, 2026
Merged

feat(cli): cherry-pick PR #15402 — use alias name for template id#15407
tecton merged 2 commits intodevfrom
copilot/cherry-pick-pr-15402-branches

Conversation

Copy link
Contributor

Copilot AI commented Mar 4, 2026

Cherry-pick of PR #15402 to dev. Adds user-friendly alias names for template IDs in the CLI, so users can use short, readable names (e.g., declarative-agent, bot, tab) instead of internal template names like copilot-gpt-basic.

Template metadata

  • Added optional alias field to Template interface (templates/src/metadata/interface.ts, packages/fx-core/.../interface.ts)
  • Added TemplateAlias enum to templates/src/templateNames.ts
  • Populated alias on templates across declarativeAgent.ts, graphConnector.ts, teams.ts, allTemplates.json, defaultGeneratorTemplates.json
  • Renamed foundry-agentfoundry-agent-to-m365 (id and name)

CLI logic (create.ts, listTemplates.ts)

  • Capability choices now include both alias and name for backward compatibility: [alias, name]
  • Non-interactive mode resolves alias → canonical name before passing to core:
    atk new -c declarative-agent -n myapp -i false   # previously required: copilot-gpt-basic
    
  • Language preset logic now also triggers when alias is matched (not just name)
  • listTemplates table displays alias as the Capability(Id) column when available
  • Extracted groupTemplatesByName as a named export for testability

Other

  • advancedDASettingUrl updated to https://aka.ms/atk-da-share
  • launch.json updated to use declarative-agent in default debug args
Original prompt

This section details on the original issue you should resolve

<issue_title>[Cherry-pick] PR #15402 needs to be synchronized to other branches</issue_title>
<issue_description>

Cherry-pick Reminder

@tecton Hello!

This is an automatically created reminder. Your PR #15402 (fix(cli): use alias name for template id) is being merged into the release/6.5 branch.

Please ensure to cherry-pick these changes to the following branches:

Steps to Follow:

  1. Wait for the current PR to be merged.
  2. Execute the following commands locally:
    git fetch origin
    git checkout <target_branch>
    git cherry-pick <commit_hash>
    git push origin <target_branch>
  3. Or create a new PR to merge these changes into the above branches.

After completion, please check the items above ✓

Note: This is an automatically created issue. You can close this issue after completing all the operations.
</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: tecton <886116+tecton@users.noreply.github.com>
Copilot AI changed the title [WIP] Cherry-pick changes from PR #15402 to other branches feat(cli): cherry-pick PR #15402 — use alias name for template id Mar 4, 2026
@tecton tecton marked this pull request as ready for review March 4, 2026 05:34
@codecov
Copy link

codecov bot commented Mar 4, 2026

Codecov Report

❌ Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 89.30%. Comparing base (f58aefa) to head (45d9f11).
⚠️ Report is 9 commits behind head on dev.

Files with missing lines Patch % Lines
packages/cli/src/commands/models/create.ts 83.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##              dev   #15407    +/-   ##
========================================
  Coverage   89.29%   89.30%            
========================================
  Files         620      620            
  Lines       38084    38089     +5     
  Branches     7561     7778   +217     
========================================
+ Hits        34009    34017     +8     
+ Misses       1973     1972     -1     
+ Partials     2102     2100     -2     
Files with missing lines Coverage Δ
packages/cli/src/commands/models/listTemplates.ts 98.14% <100.00%> (+2.14%) ⬆️
packages/fx-core/src/component/m365/constants.ts 100.00% <100.00%> (ø)
packages/cli/src/commands/models/create.ts 93.18% <83.33%> (+4.80%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tecton tecton merged commit 5e96d3e into dev Mar 4, 2026
61 of 65 checks passed
@tecton tecton deleted the copilot/cherry-pick-pr-15402-branches branch March 4, 2026 05:58
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.

[Cherry-pick] PR #15402 needs to be synchronized to other branches

4 participants