This repository was archived by the owner on Oct 4, 2026. It is now read-only.
Repository navigation
[CTX-0001] feat(plugin): port the bundled statusline to pure Lua - #2
Merged
Merged
Conversation
Port the bundled bitty-terminal.statusline realization to a pure-Lua independent package for the OQ-053 split (bitty CTX-0398). - lua/statusline/format.lua: bounded, host-free component composition and code-point-safe truncation (8 components / 64-char values / 128-char total) over the read-only semantic snapshot (cwd/title/exit). - lua/statusline/scene.lua: declarative Row/Text statusline composition. - lua/statusline/init.lua: mount the statusline slot, subscribe terminal.cwd-changed/title-changed, recompose on event; degrades to observation-only when the host bridge lacks bitty.ui; a denied terminal.semantic-read fails closed. - bitty-plugin.toml: identity, capabilities (terminal.semantic-read, ui.rich), and lazy events unchanged from the bundled manifest. - tests: Lua 5.4 behavior suite with a fail-closed mock host, LuaLS conformance, and the SDK bitty-plugin-lint wrapper. - The workspaceline claim and workspace lifecycle stay bundled; the bundled plugin entry is removed from bitty in the linked PR so this package can install under the same id.
This was referenced Sep 14, 2026
Closed
Merged
Xuepoo
added a commit
to bitty-terminal/bitty-plugins
that referenced
this pull request
Sep 14, 2026
Statusline PR bitty-terminal/statusline#2 squash-merged to main at 3eab0f44b9bf76fc8c01a029176a9bd885f91d07; move the submodule pin off the feature branch (a722e7c) onto mainline. generated/registry.json is unchanged (registry payload identical).
Xuepoo
added a commit
to bitty-terminal/bitty-plugins
that referenced
this pull request
Sep 14, 2026
Stacked on ctx-0397/feat-register-palette (bitty-plugins#6) so the two registry-append changes merge in order without a hand-merge. - registry/official/statusline.toml identity entry. - plugins/statusline pinned at statusline mainline 3eab0f44b9bf76fc8c01a029176a9bd885f91d07 (bitty-terminal/statusline#2 squash merge). - generated/registry.json regenerated (3 plugins).
Xuepoo
added a commit
to bitty-terminal/bitty-plugins
that referenced
this pull request
Sep 14, 2026
…l plugin Stacked on ctx-0397/feat-register-palette (bitty-plugins#6) so the two registry-append changes merge in order without a hand-merge. - registry/official/statusline.toml identity entry. - plugins/statusline pinned at statusline mainline 3eab0f44b9bf76fc8c01a029176a9bd885f91d07 (bitty-terminal/statusline#2 squash merge). - generated/registry.json regenerated (3 plugins).
Xuepoo
added a commit
to bitty-terminal/bitty-plugins
that referenced
this pull request
Sep 14, 2026
…l plugin (#9) Stacked on ctx-0397/feat-register-palette (bitty-plugins#6) so the two registry-append changes merge in order without a hand-merge. - registry/official/statusline.toml identity entry. - plugins/statusline pinned at statusline mainline 3eab0f44b9bf76fc8c01a029176a9bd885f91d07 (bitty-terminal/statusline#2 squash merge). - generated/registry.json regenerated (3 plugins).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Priority: P2 | Area: plugins | Labels: feat,area:plugins,P2 | Milestone: v0.1.0 | RFC: OQ-053 | Task: CTX-0001 (bitty CTX-0398)
Closes #1
Summary
Ports the bundled
bitty-terminal.statuslinerealization to a pure-Lua independent package for theOQ-053 split. The statusline presentation moves; the workspaceline claim, workspace lifecycle, and
shell integration stay bundled in
bitty.lua/statusline/format.lua— bounded, host-free component composition and code-point-safetruncation (8 components / 64-char values / 128-char total) over the read-only semantic snapshot
(
cwd/title/exit).lua/statusline/scene.lua— declarativeRow/Textstatusline composition.lua/statusline/init.lua— mounts thestatuslineslot, subscribesterminal.cwd-changed/terminal.title-changed, recomposes on event; observation-only when thehost bridge lacks
bitty.ui; a deniedterminal.semantic-readfails closed.bitty-plugin.toml— identity, capabilities (terminal.semantic-read,ui.rich), and lazyevents unchanged from the bundled manifest.
bitty-plugin-lintwrapper.Gates
just check(markdownlint, prettier, manifest, luaparse, lua5.4 suite68assertions, LuaLSconformance). SDK
bitty-plugin-lintvalidates the manifest with 0 errors, 0 warnings.actionlintclean;
gitleaksno leaks;git diff --checkclean. CI: Quality gates, actionlint, CodeQL all pass.Related
bitty#679 (issue) / #680 (bundled catalog entry removal) —Closes #679.bitty-plugins[cmd] fix(ci): bump codeql-action v4.38.0 and group dependabot action updates #7 (official registry entry +plugins/statuslinesubmodule).bitty-plugins-docschore(release): realign version to 0.0.x line per DIR-019 #8 (split-decision implementation-status record).Known gaps (recorded, not fixed here)
bittyLua bridge lacksbitty.ui.mount/update; in-host activation observes snapshots butpresents no visible block until it lands (
bittyCTX-0428).StatusProvider/status.componentcontract in v1 (draft post-1.0 provider ecology); thepackage composes one host-owned
Rowas the v1 adapter (bittyCTX-0429).