Skip to content

feat(cli): add drx module list, search and info, and check a starter's commands - #5

Open
Decipher wants to merge 5 commits into
feature/02-init-and-infofrom
feature/03-modules-read
Open

Decipher wants to merge 5 commits into
feature/02-init-and-infofrom
feature/03-modules-read

Conversation

@Decipher

Copy link
Copy Markdown
Member

What changed

  • A starter entry can name the commands it needs. drx init looks for them on the path and warns about each one that is missing. The quickstart entry names its own.
  • drx module list, drx module search and drx module info read the Druxt module registry, with a copy kept on disk.
  • In a project, the module commands show which modules are installed and whether each module's Druxt range admits the Druxt version of its part. For that, an adapter can now report a part's Druxt version and one package.
  • The end-to-end test reads the published module registry.
  • The README, the package README and the changeset describe the new commands, the module registry and its cache.

Why

A site is made of modules on both sides, and finding one that fits the Druxt version in use means reading several READMEs. The module commands answer that from one registry. The command check tells a user what is missing from the machine before a step fails because a command is not there.

How it was checked

  • npm run lint and npm run typecheck pass
  • npm test passes, and coverage did not drop
  • A changeset is included, if a published package changed
  • Nothing that resolves only on a private network reached a tracked file

Run from a clean npm ci: each run: line of the workflow's lint and test jobs, yamllint, actionlint and npm run build. npm test ran 314 tests, above the floor. The pack step ran as the workflow has it, from the installed binaries.

Not covered yet

  • The end-to-end test was not run for this change, so the module commands were not run against the published registry.
  • drx module add, remove and configure answer "not available yet".

…s commands

- A starter entry can name the commands it needs. drx init looks for
  them on the path and warns about each one that is missing.
- drx module list, search and info read the Druxt module registry, and
  keep a copy on disk for when the network is away.
- In a project, the module commands show which modules are installed,
  and compare each module's Druxt range with the Druxt version of the
  part it belongs to.
- The end-to-end run reads the published module registry.
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 12 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3f09a4af-ec0b-4cf7-b753-44be00cb1f93
Commits

Reviewing files that changed from the base of the PR and between db979eb and 78c6d02.

Files ignored due to path filters: 1

  • package-lock.json is excluded by !**/package-lock.json
Files selected for processing: 38

  • .changeset/first-release-cli.md
  • README.md
  • package.json
  • packages/cli/README.md
  • packages/cli/package.json
  • packages/cli/src/adapters/adapter.ts
  • packages/cli/src/adapters/drupal.ts
  • packages/cli/src/adapters/index.ts
  • packages/cli/src/adapters/nuxt.ts
  • packages/cli/src/cli.ts
  • packages/cli/src/commands-on-path.ts
  • packages/cli/src/commands/init.ts
  • packages/cli/src/commands/module.ts
  • packages/cli/src/context.ts
  • packages/cli/src/errors.ts
  • packages/cli/src/fetch-json.ts
  • packages/cli/src/modules/compatibility.ts
  • packages/cli/src/modules/entry.ts
  • packages/cli/src/modules/project.ts
  • packages/cli/src/modules/registry.ts
  • packages/cli/src/registry/entry.ts
  • packages/cli/src/registry/registry.ts
  • packages/cli/src/user-config.ts
  • packages/cli/test/adapters/adapters.test.ts
  • packages/cli/test/commands-on-path.test.ts
  • packages/cli/test/commands/init.test.ts
  • packages/cli/test/commands/module.test.ts
  • packages/cli/test/e2e/modules.test.ts
  • packages/cli/test/helpers/modules.ts
  • packages/cli/test/helpers/run.ts
  • packages/cli/test/modules/compatibility.test.ts
  • packages/cli/test/modules/entry.test.ts
  • packages/cli/test/modules/registry.test.ts
  • packages/cli/test/registry/entry.test.ts
  • packages/cli/test/registry/registry.test.ts
  • packages/cli/test/sources.test.ts
  • packages/cli/test/user-config.test.ts
  • starters/quickstart.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Decipher
Decipher added this pull request to stack #9 November 18, 2026 03:31
@Decipher
Decipher force-pushed the feature/03-modules-read branch from 46e352a to 29518ae Compare November 18, 2026 06:51
Two of the fixes meet code this branch had moved. The lookup of an
installed package in a node_modules above the part is now in the one
function that reads an installed version, and the own-key check is in
the function both registry flags share.
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.

1 participant