Skip to content

Migrate the remaining console apps onto the shared route tree - #955

Merged
RhysSullivan merged 1 commit into
mainfrom
claude/shared-console-routes
Jun 11, 2026
Merged

Migrate the remaining console apps onto the shared route tree#955
RhysSullivan merged 1 commit into
mainfrom
claude/shared-console-routes

Conversation

@RhysSullivan

@RhysSullivan RhysSullivan commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Builds on #954: packages/app (local + desktop), host-selfhost, and cloud now compose consoleRoutes() into their TanStack virtualRouteConfig — cloud through Start's router option — instead of re-declaring the shared route files. Each app keeps its own __root and moves its app-specific routes under routes/app/.

Intentional divergence becomes explicit via exclude:

  • packages/app excludes /secrets (the local variant shows credential-provider info).
  • cloud excludes /secrets (redirects to /), /resume/$executionId (the cloud variant), and /plugins/$pluginId/$ (client plugin pages aren't wired up on cloud).

The legacy /sources/* redirect stubs are dropped rather than carried forward — pre-rename bookmarks now 404 instead of redirecting.

Incidental drift the shared files erase: local/desktop pick up the integration-add namespace search param the other apps already had. Net −326 lines.

A contract test in packages/react locks consoleRoutes() to the generated console tree, so a route file added without a helper entry (or vice versa) fails in CI.

All four apps build; repo-wide format/lint/typecheck/test gates pass.

Stack

  1. Share the console route tree across hosts via TanStack virtual file routes #954
  2. Migrate the remaining console apps onto the shared route tree #955 👈 current

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 11, 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 Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing 2fd8c44 Commit Preview URL

Branch Preview URL
Jun 11 2026, 11:19 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 11, 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
executor-cloud 2fd8c44 Jun 11 2026, 11:19 PM

@RhysSullivan
RhysSullivan force-pushed the claude/shared-console-routes branch from c5764fa to 69ba79e Compare June 11, 2026 22:38
@RhysSullivan
RhysSullivan force-pushed the claude/console-route-contract branch 2 times, most recently from 0ea4fd0 to 4c7fa3a Compare June 11, 2026 22:38
@RhysSullivan
RhysSullivan force-pushed the claude/shared-console-routes branch from 69ba79e to b7bc241 Compare June 11, 2026 22:38
@RhysSullivan
RhysSullivan force-pushed the claude/console-route-contract branch from 4c7fa3a to a43a19c Compare June 11, 2026 22:45
@RhysSullivan
RhysSullivan force-pushed the claude/shared-console-routes branch from b7bc241 to a40fc87 Compare June 11, 2026 22:45
@RhysSullivan
RhysSullivan force-pushed the claude/console-route-contract branch from a43a19c to 44ee726 Compare June 11, 2026 22:46
@RhysSullivan
RhysSullivan force-pushed the claude/shared-console-routes branch 2 times, most recently from 9c7ba75 to b065ccc Compare June 11, 2026 23:00
@RhysSullivan
RhysSullivan force-pushed the claude/console-route-contract branch from 44ee726 to a50c721 Compare June 11, 2026 23:00
@pkg-pr-new

pkg-pr-new Bot commented Jun 11, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@955

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@955

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@955

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@955

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@955

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@955

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@955

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@955

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@955

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@955

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@955

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@955

executor

npm i https://pkg.pr.new/executor@955

commit: 93c6e74

@RhysSullivan
RhysSullivan force-pushed the claude/console-route-contract branch from a50c721 to 9321b63 Compare June 11, 2026 23:10
@RhysSullivan
RhysSullivan force-pushed the claude/shared-console-routes branch from b065ccc to 93c6e74 Compare June 11, 2026 23:10
@RhysSullivan
RhysSullivan changed the base branch from claude/console-route-contract to main June 11, 2026 23:16
packages/app (local + desktop), host-selfhost, and cloud now compose
consoleRoutes() from @executor-js/react into their TanStack
virtualRouteConfig instead of re-declaring the shared route files —
host-cloudflare already did in the previous commit. Each app keeps its
own __root and its app-specific routes under a routes/app directory.
Intentional divergence is now explicit via exclude:

- packages/app excludes /secrets (the local variant shows
  credential-provider info).
- cloud excludes /secrets (redirects to /), /resume/$executionId (the
  cloud variant), and /plugins/$pluginId/$ (client plugin pages are not
  wired up on cloud).

The legacy /sources/* redirect stubs are dropped rather than carried
forward — pre-rename bookmarks now 404 instead of redirecting.

Incidental drift the shared files erase: local/desktop pick up the
integration-add namespace search param the other apps already had.

A contract test in packages/react locks consoleRoutes() to the
generated console tree, so a route file added without a helper entry
(or vice versa) fails in CI.

cloud's build wrapper additionally pre-builds @executor-js/react: its vite
config imports @executor-js/react/console-routes, which vite's config
loader externalizes, so under Node it must resolve to the built dist.
@RhysSullivan
RhysSullivan force-pushed the claude/shared-console-routes branch from 93c6e74 to 2fd8c44 Compare June 11, 2026 23:16
@RhysSullivan
RhysSullivan merged commit 7162793 into main Jun 11, 2026
10 of 12 checks passed
@github-actions

github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Cloudflare preview

Torn down — the PR is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant