Skip to content

Releases

stagetui 1.0.1

Choose a tag to compare

@artisanv artisanv released this 28 Nov 18:18
pip install -U "stagetui[3d,video,web]"

stagetui 1.0.1 and stagetui-web 1.0.2: fixes found by going through every example.
pip install -U "stagetui[web]" gets both; stagetui-3d and stagetui-video stay at 1.0.0.

Fixed

  • Tab reaches every widget, also those scrolled out of view: it scrolls them into
    view (before, Tab went round only what was visible).
  • Ctrl+PgDn / Ctrl+PgUp switch tabs from anywhere: a focused table, tree, log or
    code view took them for a plain PgDn / PgUp.
  • Removing an open dialog from code gives the focus back to where it was (as
    hiding it does). Before, nothing had the focus, so typing a "q" next quit the app —
    after answering ask_permission(), for one.
  • The last pane fills the screen again: closing panes until one is left kept it
    in its split, instead of shrinking it into a small card (and the split keeps its id).
  • app.query("#id") answers with what is on screen: a pane closed with its × raises
    a clear error instead of giving an object whose content is gone, and a new pane can
    take the id. Writing to a chat message after its chat was closed does nothing.
  • Toasts grow to fit their message (up to 4 lines) instead of cutting it off.
  • An add-on pane's status line (a file name, a page title) shows Arabic joined and
    in reading order
    .
  • Markdown: a document given at the start opens at its top (it opened scrolled to
    the end); text streamed in still keeps the end in view. A link keeps the
    punctuation stuck to it on its line — no line starts with "),".
  • In pictures of text (Kitty, Ghostty, WezTerm, PNGs), "…", "—", « » and ✓ next to
    Arabic are drawn where they belong ("اكتب هنا…" drew the "…" between the words).
  • In a tree, → on an open folder goes to its first item; on a file (and ← at the top)
    the arrow stays in the tree instead of jumping to another widget.
  • Web add-on 1.0.2: an address that can't be opened isn't reported as a page titled
    with its host's name (Chrome's error page); the status line says why it failed.

Examples

  • New: examples/14_helmet.py, the Damaged Helmet, a real glTF model with pictures
    on its surface. It downloads the free Khronos sample once (it is not part of
    stagetui), or takes a path to it.
  • 07 (harness): after answering a permission question, typing goes back to the prompt;
    closing the Chat, Changes or Terminal pane no longer crashes /run, /diff or a
    question — the agent opens the pane again.
  • 08 (workspaces): a saved layout comes back for every tab, not only the first.
  • 09 (detach): closing the Log pane no longer crashes it; the Ctrl+Shift+D shortcut is
    gone (the shell has the focus and took it as Ctrl+D, ending the shell).
  • 05, 11, 13, 14: key names are lowercase (a capital means Shift); every theme keeps
    its own, readable accent; a clear message when the video example can't make its clip.
  • 10: the pulse add-on runs on Windows too (stagetui-plugin-pulse.cmd).

PyPI: https://pypi.org/project/stagetui/1.0.1/ · https://pypi.org/project/stagetui-web/1.0.2/

stagetui 1.0.0

Choose a tag to compare

@artisanv artisanv released this 28 Nov 11:05

stagetui 1.0: the first stable release. Everything in the docs works today on
Linux, macOS and Windows, and code written for 1.0 keeps working in every 1.x
version. New in this release: keys you can rename or turn off, and the 3D add-on
(pip install stagetui-3d, or pip install "stagetui[3d]").

Added — keys you can rename

  • Customizable keys. Every key stagetui itself answers to has a name (quit,
    prefix, close_pane, split_right…). An app renames them or turns them off with
    KEYS = {"quit": "ctrl+q", "close_pane": "w", "pane_menu": None}. It stays safe:
    there is always a quit key, the prefix key can't be turned off, and one key never
    does two jobs — a mistake is explained (what, why, how to fix it) when the app
    starts. Your BINDINGS still come first: ("q", "save") makes q save.
  • CONFIRM_QUIT = True asks "Quit this app?" before a quit key (or × on the last
    pane) quits.
  • Your own keys for every app, in keys.json in the stagetui settings folder
    (~/.config/stagetui/, or %APPDATA%\stagetui\ on Windows) or wherever
    STAGETUI_KEYS points. A mistake there never stops an app: that entry is skipped
    and one message says so. Tests and agents (headless) read only STAGETUI_KEYS.
  • See every key: stagetui keys [app.py] [--json], ts.keys(), app.keys() /
    Driver.keys(), and the keys tool in stagetui mcp (and drive).
  • Add-on pane keys: every add-on's keys can be renamed or turned off, per pane —
    StagePane("video", keys={"play_pause": "k", "mute": None}). The line at the
    bottom of the pane shows the keys in effect.
  • Docs: Keys.

Added — Milestone 6d: 3D

  • stagetui-3d, the 3D add-on (its own package): StagePane("3d", path="model.glb")
    shows glTF (.glb, .gltf), OBJ (with .mtl colors and pictures) and STL models.
    Drag to turn, right-drag to move, the wheel zooms; Space spins, W shows the wires,
    G the floor grid, R starts over. From code: load, view, spin, wireframe,
    grid, reset, save (a PNG of the view) and state; the loaded event.
    It draws on the computer's processor (every core) — no graphics card or driver —
    with smooth edges once the model holds still. No new libraries.
  • examples/13_3d.py: a model viewer; with no file it makes a colorful knot.
  • Drag for tests and agents: d.drag("#id" or (x, y), (x, y)), the step
    {"drag": {"from": …, "to": …}}, and the drag tool in stagetui mcp / drive.

Changed

  • The 3D add-on is on PyPI: pip install stagetui-3d or pip install "stagetui[3d]".
    Picking 3D in a pane's menu now offers to install it (it no longer says "coming
    soon"), and so does stagetui plugins install 3d. The video, web and 3d
    extras ask for version 1.0.0 of those add-ons, and each add-on asks for stagetui
    1.0.0 or newer.
  • Clicking × on the last pane closes the app. In a window attached to a running
    session it asks Detach or Quit first; in a pane's own pop-out window it puts the
    pane back where it came from. Ctrl+Space then x on the last pane does the same.
    (Before, the last pane stayed and a message said "This is the last pane".)
  • Hidden panes pause. When an add-on's pane is switched to another type, or sits in
    a tab you aren't looking at, the add-on is told with a new shown message: video
    pauses its sound and picture (and plays on when you come back, if it was playing),
    a hidden web page is frozen, so it makes no sound at all and sends no pictures,
    and 3D stops drawing. Older add-ons simply ignore the message and keep going as before.
  • Add-on API (stagetui-plugin-api): PaneSource::shown(bool) and the
    {"t": "shown", "shown": true | false} message; serve() asks for no frames while
    the pane is hidden. Python add-ons get Plugin.shown(shown) the same way.

Fixed

  • Closing a pane stops what runs in it right away — an add-on (video, web, 3D) or a
    shell — instead of when the app quits. The screen doesn't wait for it, and no
    finished process is left behind.
  • An add-on that isn't published yet can never be installed by name, from any path.

Install

pip install stagetui                    # the library
pip install "stagetui[3d,video,web]"    # with every add-on

PyPI: https://pypi.org/project/stagetui/1.0.0/ · Docs: https://github.com/artisanv/stagetui/tree/main/docs

stagetui-web 1.0.2

Choose a tag to compare

@artisanv artisanv released this 28 Nov 18:18

A fix for the web add-on (with stagetui 1.0.1). The 3D and video add-ons stay at 1.0.0.

pip install -U stagetui-web        # or: pip install -U "stagetui[web]"

Fixed

  • An address that can't be opened isn't reported as a page titled with its host's name (Chrome's error page); the status line says why it failed.

PyPI: https://pypi.org/project/stagetui-web/1.0.2/

stagetui-web 1.0.1

Choose a tag to compare

@artisanv artisanv released this 28 Nov 17:24

A fix for the web add-on. Only this package changes: stagetui, stagetui-3d and stagetui-video stay at 1.0.0.

pip install -U stagetui-web        # or: pip install -U "stagetui[web]"

Fixed

  • A page that is slow to finish loading (a picture or frame still coming) no longer holds up the pane. Pictures, keys and clicks keep working, a new address goes at once, and a page whose load signal was missed no longer stays blank for 30 seconds before showing a wrong "couldn't open" message.

PyPI: https://pypi.org/project/stagetui-web/1.0.1/

stagetui-web 1.0.0

Choose a tag to compare

@artisanv artisanv released this 28 Nov 11:05

A real web page in a pane, from the Chrome or Chromium on your computer.

Part of stagetui 1.0 — see the stagetui 1.0.0 release for everything that's new (hidden panes rest, renameable keys, and more).

pip install stagetui-web            # or: pip install "stagetui[web]"

PyPI: https://pypi.org/project/stagetui-web/1.0.0/ · Source: https://github.com/artisanv/stagetui/tree/main/crates/stagetui-web · Docs: https://github.com/artisanv/stagetui/blob/main/docs/plugins.md

stagetui-video 1.0.0

Choose a tag to compare

@artisanv artisanv released this 28 Nov 11:05

Video files and links in a pane, with sound.

Part of stagetui 1.0 — see the stagetui 1.0.0 release for everything that's new (hidden panes rest, renameable keys, and more).

pip install stagetui-video            # or: pip install "stagetui[video]"

PyPI: https://pypi.org/project/stagetui-video/1.0.0/ · Source: https://github.com/artisanv/stagetui/tree/main/crates/stagetui-video · Docs: https://github.com/artisanv/stagetui/blob/main/docs/plugins.md

stagetui-3d 1.0.0

Choose a tag to compare

@artisanv artisanv released this 28 Nov 11:05

3D models in a pane — glTF, OBJ and STL, turned with the mouse; drawn on the processor, no GPU needed.

Part of stagetui 1.0 — see the stagetui 1.0.0 release for everything that's new (hidden panes rest, renameable keys, and more).

pip install stagetui-3d            # or: pip install "stagetui[3d]"

PyPI: https://pypi.org/project/stagetui-3d/1.0.0/ · Source: https://github.com/artisanv/stagetui/tree/main/crates/stagetui-3d · Docs: https://github.com/artisanv/stagetui/blob/main/docs/plugins.md