Skip to content

feat(api): /rpc, v8 draft pointer and publish; hosted routes - #7824

Closed
tlgimenes wants to merge 6 commits into
split/09-admin-backfillfrom
split/10-hosted-routes
Closed

tlgimenes wants to merge 6 commits into
split/09-admin-backfillfrom
split/10-hosted-routes

Conversation

@tlgimenes

@tlgimenes tlgimenes commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Part of the v8 Studio stack, split from #7728, #7770 and #7766 (closed). Base: #7796. The top of the stack, #7843, has the same code as those three PRs combined.

Wires the hosted modules into routes: the decofile /rpc endpoint, the v8 draft pointer and publish on the session routes, the hosted routes (releases, site tokens), all behind the site_editor_content_protocol flag and scoped to the org that owns the site.

What to look at: The flag gate runs before any work (404 when off); the session GET returns {draft, version} for v8; publish answers 409 when main moved; org-owns-site scoping.

Stack: API track 10/11 · previous: #7823 · next: #7825

Business-language copy (API side): POST releases/current { head: true } puts main's head live, writing its companion release when missing: the Publish toast's "Try again" for release: "created" | "none" (before, none had no way back).

🤖 Generated with Claude Code

https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig

Wires the hosted modules into routes: the decofile `/rpc` endpoint, the v8 draft pointer and publish on the session routes, the hosted routes (releases, site tokens), all behind the `site_editor_content_protocol` flag and scoped to the org that owns the site.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
Publish's "Try again" when its changes were committed but didn't go live
(release "created" or "none"): main's head gets its companion release
when it is missing and is made current. The head holds every published
change, so a retry never rolls back a newer Publish; its schema is main's
own, so there is nothing to confirm. Before this, a Publish whose release
write failed had no way back: Make current needs a companion, and the next
Publish with an empty draft is up to date and leaves latest.json alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
@tlgimenes

Copy link
Copy Markdown
Contributor Author

Folded into #7887 (API) / #7888 (web, stacked on #7887). The tree of #7888 equals this stack's top (split/51-v8-per-site). The branch is kept.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig

@tlgimenes tlgimenes closed this Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude PR authored by a coding agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant