Repository navigation
Closed
Labels
Milestone
Description
Priority: P2 | Area: ui | Labels: feat,P2,area:ui,area:plugin | Milestone: v0.1.0 | RFC: ADR-0014 / OQ-056 | Task: bitty CTX-1431
Upstream half of bitty-terminal/bitty#2397. Core currently paints the help/which-key panel itself (paint_help_panel, help_rows, help_panel_*, ChromeAction::ToggleHelp); the accepted role split puts that presentation in an extension and keeps only the mechanism in Core. The canonical design is bitty-terminal-docs specifications/help-overlay-ownership-design.md.
Core prerequisites are done
The blocker named in bitty#2397 ("no bounded read-only keymap/action registry API") no longer holds on bitty main:
bitty.keymaps.list()- canonical resolved rows, 256-row pages,truncatedflag (bitty#2405).bitty.ui.present.show/bitty.ui.present.hideandbitty.ui.overlay.show/bitty.ui.overlay.hide- presentation-only overlay session (bitty#2406, bitty#2849), gated byui.present(withui.rich+ui.overlayfor mounting).- Plugin-suggested bindings are captured at activation and dispatched at
DispatchPriority::Plugin(bitty#2407).
Scope
- Publish the first-party help plugin as its own repository (candidate repository name
help, per the prefix-free plugin naming rule) and package, plugin identitybitty-terminal.help, with no private API and no extra authority. - Grants exactly
runtime.keymaps.read,ui.rich,ui.overlay,ui.present. No focus/capture, terminal, filesystem, process, network, clipboard, environment, platform, or debug grants. - Register command
toggle_help; suggest the four historical chords (alt+backtick,alt+?,alt+shift+?,alt+shift+/); the suggestion layer applies the Mod slot and a user binding wins. A manualcommand:bitty-terminal.help:toggle_helpbinding is the interim fallback until the suggestion layer is live. - On every show, call
bitty.keymaps.list(page whiletruncated), joincommand:rows withbitty.commands.listfor titles, render bounded rows, clip, and show a bounded+N moretail. No row cache across shows. - Dismiss on
Escthrough the presentation overlay'soverlay.dismissedobservation without consuming the press; stay non-modal and follow the focused view. - Show a bounded unavailable state when the read is denied or has no source; never fabricate rows.
- Parity tests: regeneration on every show,
Escwithout consumption, binding and chord aliases, bounded rows and clipping, non-modal dispatch, focus following, tiny views, unload teardown. - Document the plugin, its grants, and the manual binding fallback.
Dependencies
- Repository creation and registry entry (owner decision;
bitty-terminal/beaconfollowed the same path in bitty-plugins#64/[0.0.25] Implement beacon official plugin (Leader-key targeting demo) #103). - Core presentation-only overlay session (
ui.present, bitty#2406/#2849).
Acceptance criteria
- Enabling the plugin reproduces the current help/which-key behaviour over the public API only.
- Disabling the plugin leaves no help panel and no help chord bound by Core.
- The plugin holds no capability beyond the four named grants (
runtime.keymaps.read,ui.rich,ui.overlay,ui.present). - The plugin repository's gates and parity tests pass.
Out of scope
- Removing the Core paint path and closing bitty#2397; that stays with the Core issue once this plugin covers the surface.
Activity
[CTX-0043] feat(registry): onboard official help plugin (#122) (#131)