Repository navigation
docs(guides): add Cloudflare and PartyKit migration guides - #4389
NathanFlurry wants to merge 1 commit into
Conversation
|
🚅 Deployed to the rivet-pr-4389 environment in rivet-frontend
|
ReviewThis PR is mostly additive docs (Cloudflare/PartyKit migration cookbook guides, research docs) plus a rework of the Likely unintentional: generated eval scratch project committed to
Since Dead code left behind in
Potential unhandled rejection on the early-stop path In const winner = await Promise.race([
promptPromise.then((value) => ({ kind: "prompt" as const, value })),
readyPromise.then((ready) => ({ kind: "ready" as const, ready })),
scaffoldPromise.then((hasScaffold) => ({ kind: "scaffold" as const, hasScaffold })),
]);When Minor
Overall the harness improvements (structured session events, early-exit on scaffold readiness, richer judge diagnostics) are a reasonable direction; the main things worth fixing before merge are the accidental |
5e3b1d2 to
f9e9ea1
Compare
Add migration guides for Cloudflare Durable Objects, Agents, D1, Queues and PartyKit under the actors bundle's guides, with a Migrations group in the sidebar. Every Rivet sample is a type-checked file under examples/docs/<slug>/ and uses SQLite and c.vars only, avoiding actor state, queues and KV. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
f9e9ea1 to
22c8f91
Compare
|
The migration guides and examples look good; no high-confidence issues found. No Blocking, Should-fix, or Nit findings. Checked SDK API usage, snippet references, and Review was limited to the local checkout; GitHub metadata checks were unavailable because Copy prompt to fix all |
Description
Adds migration guides for moving from Cloudflare and PartyKit to Rivet Actors. This replaces the original cookbook version of this PR, which targeted the old
website/andscripts/skill-evals/layout that no longer exists onmain.New guides in
docs/actors/content/guides/, listed under a new Migrations group in the Guides sidebar:migrate-cloudflare-durable-objectsmigrate-cloudflare-agentsmigrate-cloudflare-d1migrate-cloudflare-queuesmigrate-partykitEvery Rivet code sample is a real file under
examples/docs/<slug>/, embedded with<CodeSnippet>and type-checked with the rest ofexamples/docs. Only the Cloudflare/PartyKit "before" samples are inline@nocheckblocks. The docs sync workflow already copiesexamples/docs/**, so no workflow changes are needed.Changes from the original PR
db()+c.db.execute) andc.varsonly. They do not usec.state,conn.state, queues (c.queue,queues,handle.send()), orc.kv, since those are deprecated or being deprecated. Cloudflare Queues maps to a SQLite jobs table drained by an actor.The guides also don't link to the
/actors/docs/deprecated/*pages, which aren't onmainyet for queues and KV.c.db.exec(...).toArray(),c.db.prepare().bind().first(),c.kv.list()), which@nocheckhad hidden./actors/docs/*paths.scripts/skill-evals/was removed onmain), the hand-written skill files (skills are now generated from the docs in the website repo), the cookbook icon/component changes (the website moved to its own repo), the strayexamples/skill-eval-cf-do-hello-*directory, and the internal research docs underdocs-internal/.Type of change
How Has This Been Tested?
pnpm exec tsc --noEmit -p .inexamples/docs: no errors in the newmigrate-*directories. The only errors are ones already onmainin React/blog examples.biome checkon the new example directories anddocs/actors/sidebar.json: clean.<CodeSnippet>file and region exists and every internal link resolves.Checklist:
🤖 Generated with Claude Code