Skip to content

[CTX-0398] feat(plugin): remove the bundled statusline from the catalog - #680

Merged
Xuepoo merged 1 commit into
mainfrom
ctx-0398/feat-statusline-split
Sep 14, 2026
Merged

Xuepoo merged 1 commit into
mainfrom
ctx-0398/feat-statusline-split

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Priority: P2 | Area: plugins | Labels: feat,area:plugins,P2 | Milestone: v0.1.0 | RFC: OQ-053 | Task: CTX-0398

Closes #679

Summary

Splits bitty-terminal.statusline out of the bundled-disabled catalog per the accepted OQ-053
decision, so the id is installable through the external package path (CTX-0406 reserves bundled
ids). The plugin itself lives in bitty-terminal/statusline (PR bitty-terminal/statusline#2,
merged) and is registered in bitty-plugins (PR bitty-terminal/bitty-plugins#7).

Moved vs stayed

  • Moved out: the bundled statusline_manifest and its catalog wiring
    (all_bundled_manifests, bundled_ids, is_bundled, bundled_manifest_for). Together with the
    palette removal (bitty#678) the catalog now stages eight plugins. The plugin manifest,
    capabilities (terminal.semantic-read, ui.rich), and lazy events are unchanged (identity
    preserved).
  • Stayed bundled: the workspaceline claim (ordering, exclusive claim, close policy) and
    workspace lifecycle in bitty-terminal.workspace; shell integration as the OSC 7/133
    semantic-zone provider; and the Core Panel Runtime helpers in bitty-runtime::statusline.

Compatibility

  • Config: no statusline config keys existed; none are removed. The plugin id, capability
    identifiers, and grant identity are unchanged, so existing grant records and scripts keep
    resolving.
  • No plugin-specific Core API added: the independent Lua package uses the accepted Plugin API
    v1 statusline slot (bitty.ui.mount("statusline", ...)) instead of the bundled realization's
    lower-level Panel Runtime path.

Rebase / conflict resolution (stacked on bitty#678)

Rebased onto ctx-0397/feat-palette-split (556ca3a) and the base set to #678, so the two split
chains merge in order without a hand-merge. Seven files conflicted; resolved by keeping both
removals:

  • crates/bitty-plugin-host/src/bundled.rs — removed both palette_manifest/statusline_manifest
    and their catalog wiring; catalog count eight; doc and test expectations updated.
  • crates/bitty-app/src/list.rs, crates/bitty-app/tests/cli_list.rs — list count eight; both
    ids asserted absent.
  • crates/bitty-plugin-host/tests/bundled_dogfood.rs,
    crates/bitty-runtime/tests/bundled_dogfood_runtime.rs,
    crates/bitty-runtime/tests/palette_statusline_project_panel.rs — counts eight; palette and
    statusline now exercised through local plain-manifest fixtures instead of the removed bundled
    functions.
  • CHANGELOG.md — kept both extraction entries.

Gates on the rebased head (4e9b793)

  • cargo fmt --all --check — clean.
  • cargo clippy -p bitty-app -p bitty-plugin-host -p bitty-runtime --all-targets --locked -- -D warnings — clean.
  • cargo test -p bitty-app -p bitty-plugin-host -p bitty-runtime --locked — all green, including
    list_plugins_json_count_is_eight, plugins_lists_bundled_sorted_and_disabled,
    bundled_manifests_validate_and_have_expected_ids, and the dogfood/panel suites.

Merge order

bitty-terminal/statusline#2 (merged) -> bitty-terminal/bitty-plugins#7 -> this PR. Within bitty,
bitty#678 (palette) merges first; this PR is stacked on it and GitHub retargets it to main after
#678 merges.

Gaps (tracked, not fixed here)

  • The bitty Lua bridge does not implement bitty.ui.mount/update yet.
  • v1 has no StatusProvider/status.component provider contract (draft post-1.0 provider
    ecology); the package composes one host-owned Row as the v1 adapter.

@Xuepoo Xuepoo added this to the v0.1.0 milestone Sep 14, 2026
@Xuepoo Xuepoo added feat Feature P2 Priority: medium area:plugins labels Sep 14, 2026
@Xuepoo
Xuepoo force-pushed the ctx-0398/feat-statusline-split branch from d3655e2 to 4e9b793 Compare September 14, 2026 05:26
@Xuepoo
Xuepoo changed the base branch from main to ctx-0397/feat-palette-split September 14, 2026 05:26
@Xuepoo

Xuepoo commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto the palette split (ctx-0397/feat-palette-split, 556ca3a) and base set to #678, so the two removal chains merge in order with no hand-merge.

New head: 4e9b793. Seven files conflicted; resolved keeping both removals:

  • bundled.rs: removed both palette_manifest and statusline_manifest plus their catalog wiring; catalog is now eight; doc/tests updated.
  • bitty-app/src/list.rs, bitty-app/tests/cli_list.rs: count eight, both ids asserted absent.
  • bitty-plugin-host/tests/bundled_dogfood.rs, bitty-runtime/tests/bundled_dogfood_runtime.rs, bitty-runtime/tests/palette_statusline_project_panel.rs: counts eight; palette/statusline now use local plain-manifest fixtures instead of the removed bundled functions.
  • CHANGELOG.md: kept both extraction entries.

Gates on 4e9b793: cargo fmt --all --check clean; cargo clippy -p bitty-app -p bitty-plugin-host -p bitty-runtime --all-targets --locked -- -D warnings clean; cargo test -p bitty-app -p bitty-plugin-host -p bitty-runtime --locked green (0 failures).

Merge order: #678 first; this PR is stacked on it and GitHub retargets to main after #678 merges.

@Xuepoo
Xuepoo force-pushed the ctx-0398/feat-statusline-split branch from 4e9b793 to 5591216 Compare September 14, 2026 05:53
@Xuepoo
Xuepoo changed the base branch from ctx-0397/feat-palette-split to main September 14, 2026 05:53
Extract bitty-terminal.statusline to the independent bitty-terminal/statusline
package (OQ-053 split, bitty CTX-0398). Remove statusline_manifest from the
bundled-disabled catalog (ten -> nine), update the dogfood, app list, and CLI
count assertions, and keep the Panel Runtime suite on a local manifest fixture.

Boundaries unchanged: the workspaceline claim (ordering, exclusive claim, close
policy) and workspace lifecycle stay bundled in bitty-terminal.workspace; shell
integration stays bundled and remains the OSC 7/133 semantic-zone provider. The
plugin id, capabilities (terminal.semantic-read, ui.rich), and lazy events are
unchanged from the bundled manifest, and the Core Panel Runtime helpers in
bitty-runtime::statusline are unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:plugins feat Feature P2 Priority: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Split the bundled statusline plugin into an independent plugin repository

1 participant