Repository navigation
Conversation
Spacefast replaced POST/GET /builds/wordpress with POST /builds
{source: "wordpress"} and GET /builds/preflight, and renamed
/uploads/resume to /uploads/refresh. 0.5.8 still called the removed
routes, so headless rebuilds never started. Static publishing only kept
working through a server-side alias.
The behavior suite now pins exact method, URL, query, and body for the
preflight, trigger, and upload refresh calls. The old suffix checks let
the drift pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No issues found.
All CI checks passed on
Select any unchecked box below to run or rerun that agent. Full resultsIndent Review Agent
|
Walkthrough
Merge Risk:
|
Why
Headless mode can't trigger a build today. Spacefast's API retired the routes this plugin calls:
GET /v1/spaces/{id}/builds/wordpress?sourceUrl=…GET /v1/spaces/{id}/builds/preflight?source=wordpress&sourceUrl=…POST /v1/spaces/{id}/builds/wordpress{sourceUrl}POST /v1/spaces/{id}/builds{source: "wordpress", sourceUrl}POST …/versions/{v}/uploads/resumePOST …/versions/{v}/uploads/refreshI checked this against the live API's published
https://api.spacefast.com/openapi.json. The two/builds/wordpressroutes anduploads/resumeare absent, the replacements are present, andGET /builds/wordpressreturns404 not_found. Every headless rebuild fails at the preflight, so publishing in WordPress never updates the site. Static mode still works only because the server keeps a hiddenuploads/resumealias marked for removal.What
Spacefast_Client::repository_health()andtrigger_build()callbuilds/preflightandPOST /buildswithsource: "wordpress".resume_static_upload()is nowrefresh_static_upload()and callsuploads/refresh.tests/behavior.phpused to check onlystr_ends_with( $url, '/builds/wordpress' ), which is how this drift got through. It now pins the exact method, URL, query, and body for preflight, trigger, and upload refresh. Fixturelinksuse the currentrefreshkey.Overlap: #15 touches the same publisher file but no route. #13 is conflicting and still calls
uploads/resume; whichever lands second needs a rebase.Proof
I haven't run a real WordPress against production yet. That needs this release cut and a connected Space.
Release
Merge, then tag
v0.5.9.release.ymlpublishes the zip the dashboard's Download WordPress plugin button links to (releases/latest/download/spacefast-wordpress.zip).Retries across OAuth token refreshes are safe only after spacefast/monorepo#4689 deploys. Before that, a retry after a refresh can queue a second build.
This action is being done autonomously.
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit