omp packages

pi-lot-pack-super-footer0.1.1

Replaces Pi's footer with configurable rows, four looks, seventeen palettes, moving effects and a live browser settings page.

zephinel Published 2 days ago Apache-2.0 ~0 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

Super Footer

Replaces Pi's footer with configurable rows of built-in modules, custom text or command modules, four looks, seventeen palettes, moving effects, an inter-extension status protocol, and a live browser settings page.

What it shows · Custom modules · Looks & effects · Pages & presets · Settings · Protocol · Limits

The four presets of Super Footer, while Pi works

Install

pi install npm:pi-lot-pack-super-footer

Or every extension of Pi-lot Pack at once with pi install npm:pi-lot-pack. Install one or the other: with both, this extension loads twice.

What it shows

balanced, the default, has two rows with a blank line between them. The status texts of other extensions (such as permissions: balanced mode · sandbox on) and the items they send come at the right of the second row.

Module Shows
cwd The directory, with your home as ~
git.branch The branch, or detached
git.status + staged, ~ changed, ? new, ! in conflict, ⇡ to push, ⇣ to pull; nothing for a clean tree
session The session name, when it has one
activity The tools running, or what Pi does: waits for the model, thinks, writes, compacts
model The model
thinking The thinking level, for a model that can think
context How full the context is: yellow above 70%, red above 90%
context.bar The same as a bar of 10 cells, green to yellow to red
tokens Tokens sent and received in the session
cache Prompt cache reads and writes, and how much of the latest prompt it served
cost The cost of the session; sub when the provider signs in with OAuth
speed Tokens per second of Pi's answer: a guess from the characters while Pi writes (~62 tok/s), Pi's own count when it ends
* The status texts of other extensions that no row places, then the items they send
status.<key> The status text another extension sets with setStatus under that key, such as status.caveman: placed, moved and hidden as a module of its own

Not in the default rows; add them to a row to use them:

Module Shows
provider The model's provider
subscription sub when the provider signs in with OAuth
context.left Tokens left before Pi compacts by itself, from Pi's compaction settings
compactions How many times the session was compacted
cost.rate The session's cost per hour, after its first 5 minutes
turn How many messages you sent in the session
elapsed The time of the turn going on, then of the last one
session.time How long the session has been open
time The time of day
session.id The session's id, shortened
messages Your messages and Pi's in the session
version Pi's version
host The machine's name; ssh before it over SSH
container docker or podman when Pi runs in one
git.lines Lines added and removed since the last commit (trusted folders only)
git.state A rebase with its step, a merge, cherry-pick, revert or bisect going on
git.worktree The name of a linked worktree
pr The pull request of the branch and its checks, from gh, read each minute (trusted folders only)
runtime The project's Node, Python, Go or Rust version (trusted folders only)
custom.<name> A text or a command of your own (below)

The clock behind time, session.time and cost.rate wakes once a minute, and elapsed once a second while Pi works, only when a row shows them. A provider's prompt cache lifetime is not given to extensions, so there is no cache timer.

When a row is too narrow, every module first takes its short form. Then, from the lowest priority up, a module takes its shortest form and goes away before the next one gives up more. The status texts of other extensions do not give way to width, only get cut; the browser page can hide each one, except status.permissions, so a permission notice stays in view. Items sent through the protocol that do not fit are counted as +n.

Git status is read in the background after start, a branch change, and tools that change files (write, edit, bash); never while drawing. A project's own files can make git, gh and a runtime's version manager run other programs, so git.status, git.lines, pr and runtime run only in the folders you list in trusted. Even there git runs with fsmonitor off, the repository's own filters, text conversion and external diff switched off, submodules left alone and nothing fetched. It needs git 2.44 or newer; elsewhere those modules show nothing.

Modules of your own

{
  "custom": {
    "note": { "text": "prod", "tone": "warning" },
    "k8s": { "cmd": ["kubectl", "config", "current-context"], "every": 30 }
  },
  "use": "custom",
  "presets": { "custom": { "rows": [{ "left": ["cwd", "custom.k8s"], "right": ["custom.note", "*"] }] } }
}

A command runs as written, with no shell, every every seconds (5 to 86400, 60 by default), and shows its first line. It runs without a permission check, so a new command runs only after you allow it on the Commands page of /super-footer; until then it shows not allowed, and you get one notice with the command. Your choices are kept in super-footer-allowed.json next to the settings, so a write to the settings alone cannot allow a command. On the same page, Ask before a new command runs off makes a new command run at once with the notice instead; such a command is only noted as seen, so when you turn asking back on it waits again. Only commands a row shows run. When a command times out or Pi stops, the command is stopped, but programs it started itself can keep running.

Looks and effects

The four looks, plain, bracket, capsule and powerline, with every effect on

These are a preset's: each preset, and Custom, has its own.

Setting What it changes
skin How each item is drawn: plain, bracket, capsule or powerline (round ends and arrows need a Nerd Font; glyphs says whether there is one)
fill What stands behind the text: text, soft or solid
palette 17 color sets: seven of Super Footer's own and ten published terminal schemes, each dark and light
effects rainbow, flow, shimmer, breath and border, each on or off; the moving ones move only while Pi works
rowGap, padding A blank line between rows; spaces around each item's text
styles One module's own block, colors, bold, effect, format and thresholds

The moving effects: a light over a running tool, the thinking level flowing, a breath while Pi waits or compacts

Every text reads at 4.5:1 at least on what it is drawn on. How each one works, and every value: looks and effects.

The page and presets

/super-footer in the terminal holds only what the browser page does not, or cannot over SSH: the presets, minimal, balanced, detailed and dashboard, and Custom, with the one in use marked (Enter puts one in use; Custom, the first time, starts from a preset as it is then or empty with *), Open settings in browser, the Nerd Font switch, your commands and the check. Layout, modules, the look, colors, effects and formats are changed in the browser. Each preset keeps its own changes, also while another is in use. Each change is saved at once, and a preview of the footer, drawn from sample data with the status texts and items other extensions show now, stands under the title.

/super-footer preset <name> puts a preset in use, with its changes. Every preset shows the model's speed.

The browser settings page: a preset, a look and a color set picked with a click, a module dragged into a row

In the browser: Open settings in browser on the first page, or /super-footer web, opens a page that shows Pi with its footer, drawn by the same code as in the terminal, in the terminal's columns. Drag modules between rows, pick a look, a color set or a preset with a click, and open a module for its own choices; each change is saved at once, and Undo takes back the last one. The page is served on 127.0.0.1 under a one-time token, only while it is open, and is not offered over SSH. Everything it does: the settings page.

Preset As it comes
minimal One row: the directory, branch, speed, context and model. Plain, no effects.
balanced The defaults: two rows with the main modules. Plain; the rainbow and the moving border.
detailed Three rows, one above the input box: the defaults with lines changed, the PR, the context bar and cost per hour. Capsules; the rainbow, flowing, and the moving border.
dashboard Three rows, one above the input box, with everything. Capsules, every effect.

Settings

~/.pi/agent/pi-lot-pack/super-footer.json. Every key is optional; the full list is in skills/super-footer/references/settings.md.

{
  "use": "balanced",
  "presets": {
    "balanced": { "skin": "capsule", "hide": ["session"], "priority": { "cost": 55 } }
  },
  "glyphs": "nerd",
  "trusted": ["~/Development"]
}

The file is read again when you send a message and when Pi finishes a turn. A file that cannot be used is reported once, and the last good settings stay in use, also across /reload and new sessions.

For other extensions

Send items through Pi's event bus; there is nothing to import. The protocol, its limits and an example to copy are in skills/super-footer/references/protocol.md; the types are in protocol.ts.

The skill and the check

  • /skill:super-footer <what you want> asks the model to connect an extension or change the settings. The skill is never offered to the model on its own.
  • /super-footer check says what the footer reads and shows: whether the settings are in use, the items other extensions sent and which are hidden at the current width. The Check row of /super-footer shows the same as a page.

Limits

  • Pi shows one footer: the extension that sets it last wins. Super Footer tells you once when it finds another footer package, such as @narumitw/pi-statusline.
  • During /reload Pi shows its own footer for a moment.
  • Pi does not give extensions the routed model, the (auto) compaction mark or its own subscription check, so these differ from Pi's own footer.
  • The footer exists in the terminal view only.
  • The footer does not say when Pi waits for your answer. Pi tells extensions that a view opened, but not whether it asks a question or is a page you opened, so the footer could not say it truly.

The pictures on this page are drawn by Super Footer's own code from sample data, in Pi's dark theme with a Nerd Font (scripts/readme-images.mjs); the browser page is its real page, served with the same sample.