Repository navigation
Backlog
Labels
t-buildersIssues owned by the Builders team.
Description
size S · waits for: nothing
Context
Three comments in Apify CLI name Console's template wizard as the original the CLI copies. Once Console drops templates, the CLI ranking is the only copy and nothing mirrors Console.
To do
-
src/lib/templates/getTemplateRecommendation.ts: rewrite the doc comment abovegetTemplateRecommendationso it no longer citesactor_new_wizard/get_template_recommendation.tsand says this is now the only copy of the ranking. In the first bullet, drop "rather than the upstream aggregate{ templates, isExactMatch }" and say the result is a flat, priority-ordered list with a per-templateisExactMatchflag. Keep the second bullet and the closing paragraph. -
src/commands/create.ts: in the comment abovesource ??= isInteractive ? await promptGitSource() : 'apify', drop "matching the Console". -
src/lib/git-source/gitSource.ts: in the doc comment ofpromptGitSource, drop "mirroring the Console". - Leave the header of
src/lib/templates/consts.tsalone: apify-core keepssrc/packages/consts/src/templates.ts, so "ported from" stays true.
Done when
git grep -n -i -e actor_new_wizard -e "upstream aggregate" -e "matching the Console" -e "mirroring the Console"in apify-cli returns nothing.pnpm run lintandpnpm run formatpass. The pull request stays a draft until the Console change is in production.
Exact lines and code
Line numbers are from apify-cli master 0110e206 (December 2) and shift as other issues merge.
src/lib/templates/getTemplateRecommendation.ts:16-29: the stale path is on line 18, the "upstream aggregate" wording on lines 21-22.src/commands/create.ts:292:// Last wizard step, matching the Console. A run that cannot be asked keeps the previous behaviour.src/lib/git-source/gitSource.ts:150:/** Final wizard step, mirroring the Console. Skipped when--sourceis passed. */
Starter text for the first comment:
/**
* Ranks templates for the `apify create` wizard. Apify Console had the original of this ranking
* until it dropped its template wizard; this is now the only copy.
*
* - The return shape is a flat, priority-ordered `Array<{ template, isExactMatch }>`, with a
* per-template `isExactMatch` flag.
* (keep the second bullet and the closing paragraph as they are)
*/Comment-only diff: no import or symbol changes. CI on any create change can fail at random (open draft apify-cli#1650); rerun before reading a red check as real.
Metadata
Metadata
Assignees
Labels
t-buildersIssues owned by the Builders team.
Activity