Skip to content

Retire destroy and log from the composer command family - #253

Merged
wmadden-electric merged 2 commits into
mainfrom
claude/retire-destroy-log-commands-4c1e3e
Aug 22, 2026
Merged

wmadden-electric merged 2 commits into
mainfrom
claude/retire-destroy-log-commands-4c1e3e

Conversation

@wmadden-electric

@wmadden-electric wmadden-electric commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

The 2026-08-21 PM review dropped destroy and log from the surface the prisma bin mounts, and prisma-cli has been re-wrapping composer's family to filter them out (COMPOSER_DROPPED_COMMANDS). This makes the family stop shipping them, so hosts can mount it as-is — while prisma-composer itself keeps all four commands.

What changed

  • createComposerFamily() now mounts deploy and dev only, with no redirects — asserted in tests.
  • createComposerCli() mounts the destroy and log definitions on top of the family, so composer's own bin surface is unchanged: deploy, destroy, dev, log. The programmatic @prisma/composer/control operations are untouched.
  • dev's help no longer says "run log <entry>" — that command definition renders on the prisma surface too, where log doesn't exist.
  • Docs, examples, and CI teardown are untouched (the bin still ships destroy/log), except examples/cron's destroy script, which gains the --production target it was missing — a bare destroy was already an error.

Verification

  • Family tests: createComposerFamily().commands = ['deploy', 'dev'], redirects = []; a new test runs the real bin's --help and asserts all four usage lines.
  • @internal/cli: 256 tests pass. Process-level cli.engine-shell.test.ts: 7 pass (bin help lists all four).
  • pnpm lint, check:family-static-graph, check:skill-packaging pass. Full pnpm test is green except environment-dependent emulator/Next.js integration tests that fail identically on the clean baseline.

Out of scope

  • No version bump — the normal release train handles it; the @prisma/cli-engine pin is untouched.
  • Downstream: once published, prisma-cli bumps its pin and deletes COMPOSER_DROPPED_COMMANDS (ledger: "Upstream family cleanups" in .drive/projects/prisma-cli-v8/deferred.md).

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Aug 22, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 8eb46727-567a-4914-9709-4fea5d439c3d


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

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Aug 22, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@prisma/composer@253
npm i https://pkg.pr.new/@prisma/composer-cli@253
npm i https://pkg.pr.new/@prisma/composer-prisma-cloud@253

commit: 995931b

The 2026-08-21 PM review dropped destroy and log from the surface the
prisma bin mounts, and prisma-cli has been filtering them out of the family
(COMPOSER_DROPPED_COMMANDS). createComposerFamily() now ships deploy and
dev only, with no redirects, so hosts can mount it as-is.

The retirement applies to the family, not to prisma-composer itself:
createComposerCli mounts the destroy and log definitions on top of the
family, so the bin's surface is unchanged (deploy, destroy, dev, log).
dev's help drops its 'run `log <entry>`' pointer — that text also renders
under the prisma bin, where log doesn't exist.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…was missing

A bare destroy is an error — the script could never have succeeded; its
siblings all pass --production.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@wmadden-electric
wmadden-electric force-pushed the claude/retire-destroy-log-commands-4c1e3e branch from 38b98d5 to 995931b Compare August 22, 2026 08:44
@wmadden-electric
wmadden-electric merged commit 65bc630 into main Aug 22, 2026
22 checks passed
@wmadden-electric
wmadden-electric deleted the claude/retire-destroy-log-commands-4c1e3e branch August 22, 2026 08: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.

2 participants