Skip to content

feat(content): pages written, authors for every role, and a role's sync reads only changes - #7

Merged
leemour merged 7 commits into
mainfrom
feat/pages-and-authors
Nov 21, 2026
Merged

leemour merged 7 commits into
mainfrom
feat/pages-and-authors

Conversation

@leemour

@leemour leemour commented Nov 21, 2026

Copy link
Copy Markdown
Member

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

  • FIND-2816: pages are written. writes.page in wirecat.config.ts sends posts create|update|publish|unpublish|delete --type page through 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 in src/config.ts, so --dry-run says when each applies.
  • FIND-2815: an Editor or Author gets the authors. An optional.fallback lists the users with context=view when context=edit is refused: the authors with published posts, without e-mail. The sync names the gap.
  • DEBT-372: an Author or Contributor syncs by changes after the first sync, and a post deleted for good is marked deleted only after a direct read answers 404.
  • FIND-2822: src/commands/content.ts opens the store with openContentStore, so the profile lock reaches content commands.
  • FIND-2813, FIND-2823: a - list marker is kept; schedule-past names --at-time (both from cli-core).
  • cli-core 0.716.0, cli-base 0.125.3. cli-base marks a new application password as secret, so the api group drops the calls whose answers hold one; the hand-written exclusion in scripts/spec-model.ts goes, and users-application-passwords-delete-all is back (asks first).
  • Review fixes: api pages-delete also carries posts.delete; the posts route keys a content write names apply only when the post is not a page.
  • lint/audit-differences.json declares account-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 publish and posts unpublish still ask posts.update a 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 on contentManifestFake, the authors fallback, an author the fallback leaves out stays in the copy, the application-password calls dropped and kept.
  • release:check steps all pass locally (the family audit after cli-base 0.125.3's retry fix).
  • Live on a throwaway WordPress 6.9.4 in Docker (no plugins, https through a local proxy; never a real site): scripts/live.sh as an Editor, recorded in docs/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-time message.
  • A fresh-agent review ran; its findings are fixed in 60cde46, or in cli-core#3193.

🤖 Generated with Claude Code

leemour and others added 7 commits November 21, 2026 02:06
…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>
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​wirecat/​cli-base@​0.124.0 ⏵ 0.125.398 +1100100 +19670
Updated@​wirecat/​cli-core@​0.710.0 ⏵ 0.716.098 +1100100 +19670

View full report

@leemour
leemour merged commit fabf051 into main Nov 21, 2026
16 checks passed
@leemour
leemour deleted the feat/pages-and-authors branch November 21, 2026 02:51
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