Skip to content

fix(permissions): posts delete --dry-run names api.posts-delete - #2

Merged
leemour merged 1 commit into
mainfrom
fix/delete-dry-run
Nov 19, 2026
Merged

leemour merged 1 commit into
mainfrom
fix/delete-dry-run

Conversation

@leemour

@leemour leemour commented Nov 19, 2026

Copy link
Copy Markdown
Member

Why

posts delete sends through the api group's delete, whose own key api.posts-delete the run checks (default ask, as a destructive write). With posts.delete set to allow, posts delete --dry-run said allow while the real run still asked. Found by the review of the same wiring when it moved into cli-template.

What

  • src/config.ts: posts.delete also checks api.posts-delete, so the preview names it.
  • src/content-options.test.ts: --dry-run of posts create and posts delete --allow-delete names each key it checks. It fails without the fix.
  • A changes/ fragment under ### Fixed, for 0.1.1.

Conformance

  • Only the preview changes: the run already asked. No level loosens.

Testing

  • pnpm test: 400 passed. pnpm typecheck, pnpm lint, pnpm docs:check, the test matrix and the contracts pass.

🤖 Generated with Claude Code

The delete sends through the api group's delete, whose own key the run checks. With posts.delete
set to allow, the preview said allow while the run still asked. Found by the review of the same
wiring in cli-template.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit c513a10 into main Nov 19, 2026
16 checks passed
@leemour
leemour deleted the fix/delete-dry-run branch November 19, 2026 10:43
@leemour leemour mentioned this pull request Nov 19, 2026
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