Repository navigation
feat(content): pages written, authors for every role, and a role's sync reads only changes - #7
Merged
Merged
Conversation
…eads only changes - writes.page in wirecat.config.ts: posts create --type page and every page write go through the pages routes; --dry-run names the pages keys (FIND-2816) - the users read falls back to context=view, so an Editor or Author gets the authors by name (FIND-2815) - openContentStore instead of the CRM's store helper (FIND-2822) - docs: what each role gets, page writes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… when page keys apply Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-written application-password exclusion cli-base now marks a new application password in an answer as secret, so the api group no longer offers a call whose answer can hold one (create, list, get, update, introspect-list); the manual exclude in scripts/spec-model.ts goes and api users-application-passwords-delete-all comes back, asking first. A test pins which of those calls the group offers. The family audit now reports account-remove.unknown-profile and account-rename.unknown-profile, one failure under two names that every CLI of the family prints from cli-core 0.716.0; lint/audit-differences.json declares it until 2026-12-05 (FIND-2855). The help snapshot gains Linear in the family list; the test matrix and the generated files follow the new route list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… 6.9.4 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… page names no posts route keys; review - `api pages-delete` now carries posts.delete too, so `posts.delete: deny` also stops it; the comment said deletes needed no entry, which held for posts only. - The posts route keys a content write names (api.posts-create and the rest) apply when the post is not a page. - docs/permissions.md: pages.delete applies to every page delete, pages.publish to an update of a published page, and publish and unpublish still ask posts.update a second time until the next cli-core release (cli-core #3193). - Tests: the application-password calls the api group drops and keeps, and an author that the context=view fallback leaves out stays in the copy, not deleted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… WordPress 6.9.4 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The WordPress pilot found content-category gaps in cli-core (section 12 of the cli-factory source-manifest plan). cli-core 0.716.0 (WireCatLabs/cli-core#3183) closes them in general; this wires them into wordpress-cli's config and docs.
What
writes.pageinwirecat.config.tssendsposts create|update|publish|unpublish|delete --type pagethrough the pages routes. A page takes no tags (content.write-unsupported). Page keys (pages.publish,pages.delete,pages.delete.force,api.pages-*) are conditional keys insrc/config.ts, so--dry-runsays when each applies.optional.fallbacklists the users withcontext=viewwhencontext=editis refused: the authors with published posts, without e-mail. The sync names the gap.src/commands/content.tsopens the store withopenContentStore, so the profile lock reaches content commands.-list marker is kept;schedule-pastnames--at-time(both from cli-core).scripts/spec-model.tsgoes, andusers-application-passwords-delete-allis back (asks first).api pages-deletealso carriesposts.delete; the posts route keys a content write names apply only when the post is not a page.lint/audit-differences.jsondeclaresaccount-remove.unknown-profile=account-rename.unknown-profile, one failure under two names that every CLI of the family prints from cli-core 0.716.0 (until 2026-12-05).Known and documented in
docs/permissions.md:posts publishandposts unpublishstill askposts.updatea second time (also on main for posts). Fixed in WireCatLabs/cli-core#3193, picked up at the next bump.Testing
pnpm test:coverage: 403 tests pass. New: page writes end to end oncontentManifestFake, the authors fallback, an author the fallback leaves out stays in the copy, the application-password calls dropped and kept.release:checksteps all pass locally (the family audit after cli-base 0.125.3's retry fix).scripts/live.shas an Editor, recorded indocs/dev/live-checks.txt. Earlier, on the packed cli-core: page writes, the Editor's authors through the fallback, an Author and a Contributor syncing by changes, deletions for good marked by a direct 404, the profile lock, the-marker and the--at-timemessage.🤖 Generated with Claude Code