omp packages

@pi-unipi/app-bridge3.0.3

Live bridge between a pi TUI session and the UniPi phone app — streaming chat, prompts, steering and dialogs from the phone

neuron-mr-white Published 1 month ago MIT ~1.1K 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

@pi-unipi/app-bridge

Lets the UniPi phone app mirror a pi session that runs in a herdr pane, live, and talk to it: what you type on the phone shows in the TUI as a normal message, and everything pi streams in the TUI streams on the phone.

  • TUI mode only. Each pi listens on ~/.unipi/bridge/<pid>.sock (owner-only) and writes ~/.unipi/bridge/<pid>.json (session file, cwd, herdr pane), so unipi-host can find the pi behind a herdr pane.
  • Sending while pi works steers it (like Enter in the TUI); the app can also queue a follow-up.
  • Dialogs (ctx.ui.select / confirm / input / editor) and ask_user can be answered from the phone; the first answer wins and the other side closes.
  • /model, /thinking and /compact are mapped to bridge calls.
  • Off switch: UNIPI_APP_BRIDGE=0. Subagent children never open a bridge.

Protocol: unipi-app/docs/m5/PROTOCOL.md.