Skip to content

feat(commands): on-demand framework commands across UI, CLI, and MCP#363

Merged
geodro merged 2 commits into
mainfrom
feat/commands-feature
May 17, 2026
Merged

feat(commands): on-demand framework commands across UI, CLI, and MCP#363
geodro merged 2 commits into
mainfrom
feat/commands-feature

Conversation

@geodro
Copy link
Copy Markdown
Owner

@geodro geodro commented May 17, 2026

Adds a new commands feature that surfaces one-shot admin actions (cache clears, migrations, login URL generation, etc) for every registered site. The dashboard exposes a Commands dropdown in the site controls
band, the CLI exposes lerd run , and the command palette aggregates commands across all sites with a single multi-term search. MCP gains four tools so AI assistants can list, run, add, and remove commands without hand-editing yaml.

The Go side introduces a FrameworkCommand schema (yaml-defined or inline in a project's .lerd.yaml), a ResolveCommands merge function that lets projects override or disable framework defaults by name, a streaming run endpoint that interleaves stdout and stderr over SSE with per-site mutual exclusion and loopback gating, and an output: terminal mode that spawns the user's terminal emulator instead of streaming. lerd check validates the schema. Built-in Laravel and Symfony come with the same command set hardcoded so sites work before
the framework store fetch lands.

The frontend introduces a generalized Dropdown component (object options, keyboard navigation with arrow keys and type-ahead, ARIA roles, mobile-aware popover sizing) that replaces every native select in the UI for visual consistency. The commands feature uses it for both the per-site Commands menu and the inline run modal, which
renders streamed output with ANSI color support and distinguishes stderr from stdout. Run state is global so the palette and the dropdown share the same modal; finished runs are kept in localStorage so users can review previous output without re-running, and long runs that finish while the tab is hidden trigger a desktop notification
when permitted.

Two unrelated races in the dumps stream and mailpit webhook test helpers are fixed in the same change because the new race-clean commands path made go test -race viable and the failures showed up immediately.

Documentation lands in docs/features/commands.md and the MCP skill gets updated tool descriptions.

Pairs with lerd-frameworks #10, which adds the canonical commands yaml blocks for non-built-in frameworks (WordPress, Drupal, CakePHP, Statamic). Laravel and Symfony work without it because their built-ins ship in this PR.

geodro added 2 commits May 17, 2026 11:32
Adds a new commands feature that surfaces one-shot admin actions (cache
clears, migrations, login URL generation, etc) for every registered site.
The dashboard exposes a Commands dropdown in the site controls band, the
CLI exposes lerd run <name>, and the command palette aggregates commands
across all sites with a single multi-term search. MCP gains four tools so
AI assistants can list, run, add, and remove commands without hand-editing
yaml.

The Go side introduces a FrameworkCommand schema (yaml-defined or inline
in a project's .lerd.yaml), a ResolveCommands merge function that lets
projects override or disable framework defaults by name, a streaming run
endpoint that interleaves stdout and stderr over SSE with per-site mutual
exclusion and loopback gating, and an output: terminal mode that spawns
the user's terminal emulator instead of streaming. lerd check validates
the schema. Built-in Laravel and Symfony come with the same command set
hardcoded so sites work before the framework store fetch lands.

The frontend introduces a generalized Dropdown component (object options,
keyboard navigation with arrow keys and type-ahead, ARIA roles,
mobile-aware popover sizing) that replaces every native select in the UI
for visual consistency. The commands feature uses it for both the per-site
Commands menu and the inline run modal, which renders streamed output
with ANSI color support and distinguishes stderr from stdout. Run state
is global so the palette and the dropdown share the same modal; finished
runs are kept in localStorage so users can review previous output without
re-running, and long runs that finish while the tab is hidden trigger a
desktop notification when permitted.

Two unrelated test races in the dumps stream and mailpit webhook suites
are fixed in the same change because the new race-clean commands path made
go test -race viable and the failures showed up immediately.

Documentation lands in docs/features/commands.md and the MCP skill gets
updated tool descriptions.
@geodro geodro merged commit 9197e23 into main May 17, 2026
3 checks passed
@geodro geodro mentioned this pull request May 18, 2026
geodro added a commit that referenced this pull request May 18, 2026
First beta of the 1.21.0 line. The headline is desktop notifications via Web Push (#353), with a per-category settings page polished alongside a dashboard health row (#354). The PHP-FPM image grows a real shell environment, zsh plus starship plus eza, bat, fzf, zoxide, isolated from the host (#358), then loses around 800 MB of build toolchain in a multi-stage split that drops the image from 1.36 GB to 535 MB without losing any of its 68 PHP modules (#364). A new on-demand commands feature surfaces one-shot framework actions across the dashboard, the lerd run CLI, the command palette, and four new MCP tools, all backed by a generalised Dropdown component that replaces every native select in the UI (#363). The site detail header gets a browser-style address bar with the favicon, TLS lock, LAN-share chip, and worktrees promoted from a dropdown to tabs (#365), an Env tab joins Overview, Tinker, and Dumps to show the project .env verbatim (#366), and the tray menu picks up Dump bridge and Notifications toggles that update live via a new KindDumpsStatus event (#373). Postgres grows 17 and 18 alternates alongside a new MySQL 9.7 LTS line, all gated by a canonical-version pin so flipping the yaml canonical no longer silently major-jumps existing installs (#361). Türkçe joins the dashboard languages (#355), a public_dir override lands in .lerd.yaml for projects with a non-standard document root (#370), every git invocation in the tree now flows through internal/git (#356), and worker-failure pushes are batched so a systemd cascade no longer fires six near-identical notifications back to back (#372). Plus the post-1.20.2 fix queue covers the worktree-manager button rendering on non-git sites (#357), TLS certs not refreshing when a secured site's domain set changed (#367), streamed worktree install and a wave of audit follow-ups (#368), and tinker swallowing bare-expression results when the dump bridge was on (#371).
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