Skip to content

chore(flue): upgrade @flue to 0.11.1 and bump wrangler so the reviewer deploys#1501

Merged
ascorbic merged 3 commits into
mainfrom
chore/flue-upgrade-0.11
Jun 16, 2026
Merged

chore(flue): upgrade @flue to 0.11.1 and bump wrangler so the reviewer deploys#1501
ascorbic merged 3 commits into
mainfrom
chore/flue-upgrade-0.11

Conversation

@ascorbic

@ascorbic ascorbic commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Unblocks deploying the automated PR reviewer (emdash-flue-review). The build was broken by a @flue/cli 0.10 / @flue/runtime 0.8.1 version skew (introduced by the dependabot CLI bump in #1412): the 0.10-generated entry imports closeFlueSocket, 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.

  • 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 own wrangler to ^4.100.0).
  • Migrate app.ts off the removed @flue/runtime/app entry: flue() -> createDefaultFlueApp() from @flue/runtime/internal, which still mounts the /workflows/:name admission route the webhook handler fetches internally.
  • Drop the cwd argument from the sandbox createSessionEnv factory — 0.11 no longer passes it; the session cwd matches the agent's cwd: "/workspace".

@cloudflare/sandbox is intentionally left at 0.10.3 to stay in lockstep with the pinned Dockerfile base image.

Verified: flue build + tsc --noEmit both pass in infra/flue-review and .flue.

Note: the .flue (GitHub Actions investigate/classify) changes take effect on the next workflow run automatically; infra/flue-review still needs a manual pnpm deploy to go live.

Closes #

Type of change

  • Bug fix
  • Feature (requires maintainer-approved Discussion)
  • Refactor (no behavior change)
  • Translation
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • I have read CONTRIBUTING.md
  • pnpm typecheck passes
  • pnpm lint passes
  • pnpm test passes (or targeted tests for my change)
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable)
  • User-visible strings in the admin UI are wrapped for translation (if applicable)
  • I have added a changeset (if this PR changes a published package)
  • New features link to an approved Discussion

AI-generated code disclosure

  • This PR includes AI-generated code — model/tool: Claude Opus 4.8 (opencode)

Screenshots / test output

flue build --target cloudflare (flue-review) and flue build --target node (.flue) both succeed; tsc --noEmit clean 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.

…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.
@changeset-bot

changeset-bot Bot commented Jun 16, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 3263719

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

Scope check

This 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.

@github-actions github-actions Bot added the review/needs-review No maintainer or bot review yet label Jun 16, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 16, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
docs 3263719 Jun 16 2026, 10:28 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 16, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
emdash-demo-cache 3263719 Jun 16 2026, 10:29 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 16, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
emdash-playground 3263719 Jun 16 2026, 10:29 AM

@pkg-pr-new

pkg-pr-new Bot commented Jun 16, 2026

Copy link
Copy Markdown

Open in StackBlitz

@emdash-cms/admin

npm i https://pkg.pr.new/@emdash-cms/admin@1501

@emdash-cms/auth

npm i https://pkg.pr.new/@emdash-cms/auth@1501

@emdash-cms/auth-atproto

npm i https://pkg.pr.new/@emdash-cms/auth-atproto@1501

@emdash-cms/blocks

npm i https://pkg.pr.new/@emdash-cms/blocks@1501

@emdash-cms/cloudflare

npm i https://pkg.pr.new/@emdash-cms/cloudflare@1501

@emdash-cms/contentful-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/contentful-to-portable-text@1501

emdash

npm i https://pkg.pr.new/emdash@1501

create-emdash

npm i https://pkg.pr.new/create-emdash@1501

@emdash-cms/gutenberg-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/gutenberg-to-portable-text@1501

@emdash-cms/plugin-cli

npm i https://pkg.pr.new/@emdash-cms/plugin-cli@1501

@emdash-cms/plugin-types

npm i https://pkg.pr.new/@emdash-cms/plugin-types@1501

@emdash-cms/registry-client

npm i https://pkg.pr.new/@emdash-cms/registry-client@1501

@emdash-cms/registry-lexicons

npm i https://pkg.pr.new/@emdash-cms/registry-lexicons@1501

@emdash-cms/sandbox-workerd

npm i https://pkg.pr.new/@emdash-cms/sandbox-workerd@1501

@emdash-cms/x402

npm i https://pkg.pr.new/@emdash-cms/x402@1501

@emdash-cms/plugin-ai-moderation

npm i https://pkg.pr.new/@emdash-cms/plugin-ai-moderation@1501

@emdash-cms/plugin-atproto

npm i https://pkg.pr.new/@emdash-cms/plugin-atproto@1501

@emdash-cms/plugin-audit-log

npm i https://pkg.pr.new/@emdash-cms/plugin-audit-log@1501

@emdash-cms/plugin-color

npm i https://pkg.pr.new/@emdash-cms/plugin-color@1501

@emdash-cms/plugin-embeds

npm i https://pkg.pr.new/@emdash-cms/plugin-embeds@1501

@emdash-cms/plugin-field-kit

npm i https://pkg.pr.new/@emdash-cms/plugin-field-kit@1501

@emdash-cms/plugin-forms

npm i https://pkg.pr.new/@emdash-cms/plugin-forms@1501

@emdash-cms/plugin-webhook-notifier

npm i https://pkg.pr.new/@emdash-cms/plugin-webhook-notifier@1501

commit: 3263719

ascorbic and others added 2 commits June 16, 2026 11:03
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).
@ascorbic ascorbic merged commit 11d3c56 into main Jun 16, 2026
44 of 45 checks passed
@ascorbic ascorbic deleted the chore/flue-upgrade-0.11 branch June 16, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review/needs-review No maintainer or bot review yet size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant