Skip to content

Drop the references to Console's old create wizard from CLI comments #1660

Backlog

Description

@DaveHanns

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 above getTemplateRecommendation so it no longer cites actor_new_wizard/get_template_recommendation.ts and 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-template isExactMatch flag. Keep the second bullet and the closing paragraph.
  • src/commands/create.ts: in the comment above source ??= isInteractive ? await promptGitSource() : 'apify', drop "matching the Console".
  • src/lib/git-source/gitSource.ts: in the doc comment of promptGitSource, drop "mirroring the Console".
  • Leave the header of src/lib/templates/consts.ts alone: apify-core keeps src/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 lint and pnpm run format pass. 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 --source is 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.

Activity

  1. added theissue type on Dec 4, 2026
  2. added
    t-builders
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-builders

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions