Show the `pylon` plugin settings menu in the `clai2` web UI

Merged
MP
2mo ago
+200-230

Part 21 of the clai2 web UI stack (… → #10320 → this PR). Based on #10320. No linked issue: requested by the CLAI maintainer.

Why. One PR per plugin: pylon now declares its settings menu (settings_menu(), #10312) instead of running termflow widgets in configure(). The same menu, sign-in and /keys steps included, opens in the terminal and in the web UI's plugins panel (#10315), where those steps show as dialogs.

What changes

  • Sign-in row → action: dialogs.choose, then sign_in_now(method, dialogs) when needed.
  • Key row → action using the shared choose_key. The prompt_toolkit PromptSession and its typed [y/N] confirmation are gone, and so is the _ChooseKey exception round trip.
  • /pylon still opens the menu, now the declared one, through the plugin's configure().
  • Its tests drive the actions with ScriptedDialogs (#10316) and the terminal path through plugin.configure() with scripted runners. Its PLUGINS.md section says the menu also opens in the web UI's plugins panel.

Verification.

  • Ported in its own herdr worktree and stacked here.
  • On the stacked branch (grain, linear, notion and pylon together): 308 tests pass across the four plugins' suites plus web, loader, keys, sign-in, reload and startup imports. Pyright is clean on the plugins and their tests.
  • Headed Playwright against an isolated clai2 --web -m test with all four enabled: the rows render, each action's first dialog opens, Esc backs out with the plugin's "unchanged" message, and there are no page errors. Screenshots are in /tmp/clai-web-shots/port-pylon-*.png.

What changes for existing users. The terminal menu keeps its rows, labels and messages. The /keys step uses the shared picker and confirmation from #10316. The menu now also works in the web UI.

  • No breaking changes in accordance with the version policy.
  • Any permitted compatibility impact has a label, warning, migration, release note, and exact API-check waiver.
  • PR title is fit for the release changelog.