Skip to content

feat: route tooling through core's recipe toolingRoutes - #229

Merged
AaronFeledy merged 4 commits into
mainfrom
feat/core-tooling-routes-main
Nov 17, 2026
Merged

AaronFeledy merged 4 commits into
mainfrom
feat/core-tooling-routes-main

Conversation

@AaronFeledy

@AaronFeledy AaronFeledy commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Moves per-directory tooling routing onto core's recipe toolingRoutes contract (lando/core#502, lando/core#515), and keeps today's behavior on cores that don't support it yet.

  • The builder always passes routes to super() as options.toolingRoutes, without stripping Landofile-owned names. Cores that copy the key ('toolingRoutes' in this.config after super()) apply the closest route on both the live and warm paths and merge Landofile tooling last. Landofile commands then win in every app directory, with no lando --clear needed.
  • On those cores, app.js no longer routes at post-init 4 or writes <app>.tooling.router at 9, and it removes the router file that older versions left behind. Core now handles stripping disabled commands and replacing whole commands.
  • Older cores, including the published 3.26.x, ignore toolingRoutes, so the builder still sets the stripped app.upsun.toolingRouter and app.js behaves exactly as before.
  • Docs (AGENTS.md, architecture, lifecycle, tooling) describe both modes. The "refresh before using it in another app's directory" note now applies only to older cores.

Verified with npm test (lint, typecheck, 797 passing) plus a one-off run of the core PR's get-tasks against the builder's routes for a two-app fixture, from the non-default app's directory: the Landofile override won, that app's own commands were used, and an old router file was ignored. Cursor Bugbot found no bugs.


Note

Medium Risk
Changes how tooling is resolved per directory across init and warm cache paths, with a compatibility fallback for older cores but new behavior depending on core version pairing.

Overview
Routes multi-app tooling through Lando core's recipe toolingRoutes when the installed core supports it, instead of relying only on the plugin's masked router cache.

The builder now always passes unmasked per-directory routes to the parent recipe as options.toolingRoutes (Landofile names kept), while still building a masked toolingRouter for older cores. After super(), it sets app.upsun.coreToolingRoutes when 'toolingRoutes' appears on this.config; otherwise it stashes the legacy router on app.upsun.toolingRouter.

On modern cores, app.js skips post-init @4 routing and stops writing <app>.tooling.router at @9, only removing a stale router cache. Core is expected to pick the cwd route and merge Landofile tooling last, so overrides win everywhere without lando --clear. Legacy cores keep the previous shallow-merge and double-JSON router cache behavior.

Documentation (AGENTS.md, architecture, lifecycle, tooling) and CHANGELOG describe both modes; tests cover the new core path and unmasked vs masked builder output.

Reviewed by Cursor Bugbot for commit ade713d. Bugbot is set up for automated code reviews on this repo. Configure here.

@netlify

netlify Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for lando-platformsh ready!

Name Link
🔨 Latest commit ade713d
🔍 Latest deploy log https://app.netlify.com/projects/lando-platformsh/deploys/6afbd451b0e938889358b5f9
😎 Deploy Preview https://deploy-preview-229--lando-platformsh.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 84 (🔴 down 7 from production)
Accessibility: 98 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@AaronFeledy
AaronFeledy force-pushed the feat/core-tooling-routes-main branch from 00a1e43 to ade713d Compare November 17, 2026 04:13
@AaronFeledy
AaronFeledy merged commit a8ab92d into main Nov 17, 2026
27 checks passed
@AaronFeledy
AaronFeledy deleted the feat/core-tooling-routes-main branch November 17, 2026 05:28
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