feat: add WordPress schema deploy, bulk meta, schema status, and onboard#195
Merged
feat: add WordPress schema deploy, bulk meta, schema status, and onboard#195
Conversation
…ard commands Adds four new WordPress integration commands (schema deploy, schema status, bulk set-meta, and onboard) with full API, CLI, and integration-wordpress support. Fixes app.inject() route prefix so the onboard step correctly dispatches to Google/Bing indexing endpoints, wraps the onboard handler with withWordpressErrorHandling for consistency, and bumps version to 1.29.0. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Populate title/description in onboard set-meta entries from audit page titles instead of sending empty patches (was a no-op) - Use listPages() permalinks for URL submission instead of constructing URLs from slug (fixes hierarchical pages like /about/team/) - Fix schema status third-party under-reporting when canonry and a plugin emit the same @type (count-based subtraction instead of includes()) - Add staging/defaultEnv invariant guard to onboard route (matches connect) - Add tests for all four fixes Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
JSON.stringify does not escape </script> sequences, allowing user-supplied BusinessProfile fields to prematurely close the script block and inject arbitrary HTML into WordPress pages. Replace </ with <\/ in the serialized JSON before embedding in the script tag. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
schema deploy,schema status,set-meta --from <file>(bulk), andonboardonboardis a compound command that runs connect → audit → bulk meta → schema deploy → Google/Bing URL submission in sequence, reporting per-step resultsschema-templates.tstointegration-wordpresswith JSON-LD schema generation from a YAML profile fileapp.inject()URL paths in the onboard handler to include the route prefix, and wraps the handler withwithWordpressErrorHandlingfor consistency; bumps version to 1.29.0Test plan
pnpm run typecheck && pnpm run lint && pnpm run testall passcanonry wordpress schema deploy <project> --profile schema.yamlgenerates and deploys JSON-LD schema blockscanonry wordpress schema status <project>reports per-page canonry vs third-party schema presencecanonry wordpress set-meta <project> --from meta.jsonbulk-updates SEO meta across pagescanonry wordpress onboard <project> --url ... --user ... --app-password ...runs all steps and reports results as JSON with--format jsongoogle-submitandbing-submitsteps correctly dispatch to the indexed routes (not 404)🤖 Generated with Claude Code