chore(flue): upgrade @flue to 0.11.1 and bump wrangler so the reviewer deploys#1501
Conversation
…r deploys The @flue/cli 0.10 / @flue/runtime 0.8.1 skew (from the dependabot CLI bump in #1412) made the flue-review worker unbuildable: the generated entry imports closeFlueSocket, which runtime 0.8.1 doesn't export. That blocked deploying the kimi-k2.7-code + 429 handling fix. - Align @flue/cli and @flue/runtime at ^0.11.1 in both flue workspaces (infra/flue-review and .flue). - Bump the wrangler catalog to ^4.99.0 (and .flue's wrangler to ^4.100.0). - Migrate app.ts off the removed @flue/runtime/app entry: flue() -> createDefaultFlueApp() from @flue/runtime/internal (still mounts the /workflows/:name admission route). - Drop the cwd arg from the sandbox createSessionEnv factory; 0.11 no longer passes it (the agent cwd is /workspace). Both projects build and typecheck on 0.11.
|
Scope checkThis PR changes 911 lines across 7 files. Large PRs are harder to review and more likely to be closed without review. If this scope is intentional, no action needed. A maintainer will review it. If not, please consider splitting this into smaller PRs. See CONTRIBUTING.md for contribution guidelines. |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
docs | 3263719 | Jun 16 2026, 10:28 AM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-demo-cache | 3263719 | Jun 16 2026, 10:29 AM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-playground | 3263719 | Jun 16 2026, 10:29 AM |
@emdash-cms/admin
@emdash-cms/auth
@emdash-cms/auth-atproto
@emdash-cms/blocks
@emdash-cms/cloudflare
@emdash-cms/contentful-to-portable-text
emdash
create-emdash
@emdash-cms/gutenberg-to-portable-text
@emdash-cms/plugin-cli
@emdash-cms/plugin-types
@emdash-cms/registry-client
@emdash-cms/registry-lexicons
@emdash-cms/sandbox-workerd
@emdash-cms/x402
@emdash-cms/plugin-ai-moderation
@emdash-cms/plugin-atproto
@emdash-cms/plugin-audit-log
@emdash-cms/plugin-color
@emdash-cms/plugin-embeds
@emdash-cms/plugin-field-kit
@emdash-cms/plugin-forms
@emdash-cms/plugin-webhook-notifier
commit: |
0.11 stopped auto-wiring the @cloudflare/sandbox container class into the generated Worker bundle and renamed the workflow DO class ReviewWorkflow -> FlueReviewWorkflow. Deploying onto the live worker therefore failed twice (missing Sandbox export; lost migration cursor). - Add .flue/cloudflare.ts re-exporting Sandbox so the DO/container binding resolves to a real exported class. - Extend wrangler.jsonc migrations append-only: keep the applied tags so Cloudflare locates the deployed cursor, then rename ReviewWorkflow -> FlueReviewWorkflow (no class re-creation, no data reset).
What does this PR do?
Unblocks deploying the automated PR reviewer (
emdash-flue-review). The build was broken by a@flue/cli0.10 /@flue/runtime0.8.1 version skew (introduced by the dependabot CLI bump in #1412): the 0.10-generated entry importscloseFlueSocket, which runtime 0.8.1 doesn't export. That's why #1485/#1490 (kimi-k2.7-code + 429 handling) couldn't actually ship — the worker hasn't been deployable since the skew landed.@flue/cliand@flue/runtimeat^0.11.1in both flue workspaces (infra/flue-reviewand.flue).wranglercatalog to^4.99.0(and.flue's ownwranglerto^4.100.0).app.tsoff the removed@flue/runtime/appentry:flue()->createDefaultFlueApp()from@flue/runtime/internal, which still mounts the/workflows/:nameadmission route the webhook handler fetches internally.cwdargument from the sandboxcreateSessionEnvfactory — 0.11 no longer passes it; the session cwd matches the agent'scwd: "/workspace".@cloudflare/sandboxis intentionally left at 0.10.3 to stay in lockstep with the pinnedDockerfilebase image.Verified:
flue build+tsc --noEmitboth pass ininfra/flue-reviewand.flue.Note: the
.flue(GitHub Actions investigate/classify) changes take effect on the next workflow run automatically;infra/flue-reviewstill needs a manualpnpm deployto go live.Closes #
Type of change
Checklist
pnpm typecheckpassespnpm lintpassespnpm testpasses (or targeted tests for my change)pnpm formathas been runAI-generated code disclosure
Screenshots / test output
flue build --target cloudflare(flue-review) andflue build --target node(.flue) both succeed;tsc --noEmitclean in both.Try this PR
Open a fresh playground →
A full working EmDash site, deployed from this branch. Each visit gets its own session-scoped sandbox: no login needed and no shared state. Try the admin, edit content, hit the public site.
Tracks
chore/flue-upgrade-0.11. Updated automatically when the playground redeploys.