@bypane/cli 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +133 -2
- package/dist/cli.js +676 -0
- package/dist/config.js +42 -0
- package/dist/demo.js +166 -0
- package/dist/ipc.js +201 -0
- package/dist/mcp.js +307 -0
- package/dist/multiplexer.js +279 -0
- package/dist/png.js +208 -0
- package/dist/setup.js +328 -0
- package/dist/skill.js +177 -0
- package/dist/state.js +720 -0
- package/dist/types.js +1 -0
- package/dist/ui.js +1020 -0
- package/package.json +57 -4
- package/skills/bypane/SKILL.md +94 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Vlad Arbatov
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,134 @@
|
|
|
1
|
-
#
|
|
1
|
+
# bypane
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A fast, lightweight side pane next to your terminal coding agent for everything that reads poorly in scrolling chat: plans, checklists, screenshots, files, tables, charts, and approval prompts.
|
|
4
|
+
|
|
5
|
+
Built on [`tui-sdk`](https://tui-sdk.dev) with zero extra runtime dependencies: **~2 ms startup**, **~4 MB RAM**, **~2 MB native binary** (via `scriptc`), and **60 fps differential rendering** so it feels instant like `fzf`, never like a heavy Electron or web sidecar.
|
|
6
|
+
|
|
7
|
+
When your agent has something visual or interactive to share, `bypane` opens beside your chat automatically. You review plans, check off tasks, filter data, add notes, or pick an option, then press `s` to send your structured feedback straight back into your agent's prompt.
|
|
8
|
+
|
|
9
|
+
## What you get
|
|
10
|
+
|
|
11
|
+
- **One-key feedback back to your agent (`s`):** Check off plan items, highlight a table row, or attach quick notes (`n`), then press `s`. `bypane` formats a compact summary of your exact choices and notes and injects it directly into the agent pane that sent the tab, ready for you to hit Enter. No copy-pasting or re-explaining line numbers.
|
|
12
|
+
- **Instant and tiny footprint:** Starts in ~2 ms with ~4 MB peak RAM as a ~2 MB native binary (or runs directly on Node.js 24 with sub-millisecond frame diffs). No Electron, no browser engine, no Virtual DOM, and live filtering scales smoothly to huge tables and logs.
|
|
13
|
+
- **Interactive plans and checklists:** Read Markdown plans without them scrolling off screen, toggle `- [ ]` tasks with `Space` or a click, and leave notes on any tab. Agents can also read your live state at any time with `bypane state`.
|
|
14
|
+
- **QuickLook for files, screenshots, and binaries (`o`):** View PNG screenshots right inside Kitty or Ghostty (with half-block fallback everywhere else), jump straight to highlighted lines of code, and press `o` on PDFs, videos, images, or archives to open them in your local desktop apps.
|
|
15
|
+
- **Live tables, charts, and logs:** Filter table rows as you type (`/`), sort columns (`r`), inspect braille line charts for metrics or benchmarks, and filter streaming logs without leaving the terminal.
|
|
16
|
+
- **Human-only decision prompts:** Answer single-choice, multi-choice, text, or confirmation prompts in a dedicated tab. Agents can pre-highlight a suggested default, while final submission stays strictly human-only.
|
|
17
|
+
|
|
18
|
+
## Smooth Rex Integration
|
|
19
|
+
|
|
20
|
+
`bypane` works in any terminal (and in tmux), and is tuned to feel native inside [Rex](https://superlogical.com/rex):
|
|
21
|
+
|
|
22
|
+
- **Zero-setup auto-docking:** The first time an agent pushes a plan, image, table, or prompt, `bypane` automatically splits a companion pane beside your chat (`rex split --focus=false`) without stealing your cursor.
|
|
23
|
+
- **One-key remote file open (`o`):** Working on a remote Linux devbox over Rex? Pressing `o` on a PDF, screenshot, or video runs `rex open`, transferring and opening it directly in your Mac's native app.
|
|
24
|
+
- **Direct push-back (`s`) and origin jump (`g`):** Each tab remembers which Rex block pushed it. Press `s` to send your feedback straight into that pane (`rex send`), or `g` to jump focus back to it (`rex focus`) when juggling multiple agents.
|
|
25
|
+
- **Automatic per-window isolation:** Each Rex window gets its own `bypane` workspace automatically, so separate projects stay separate.
|
|
26
|
+
|
|
27
|
+
## Quick Start
|
|
28
|
+
|
|
29
|
+
Requires Node.js 24+.
|
|
30
|
+
|
|
31
|
+
### Option 1: One command
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npx @bypane/cli setup
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
The inline setup wizard installs `bypane` permanently on your `PATH`, adds the `bypane` skill to your agent folders (all pre-checked), lets you pick how `bypane` auto-splits in Rex or tmux, prints optional MCP config, and offers to launch a live demo pane.
|
|
38
|
+
|
|
39
|
+
### Option 2: Let your coding agent set it up
|
|
40
|
+
|
|
41
|
+
Copy and paste this into Claude Code, Codex, OpenCode, or Antigravity:
|
|
42
|
+
|
|
43
|
+
> Run `npx -y @bypane/cli setup --yes` so `bypane` and its agent skill are installed and configured, then run `bypane demo` so I can try it.
|
|
44
|
+
|
|
45
|
+
### Try the demo without configuring anything
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
npx @bypane/cli --demo
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Keyboard Shortcuts
|
|
52
|
+
|
|
53
|
+
| Key | Action |
|
|
54
|
+
| :--- | :--- |
|
|
55
|
+
| `s` or `Ctrl+S` | Push your checklist, notes, or selected row straight into the agent pane |
|
|
56
|
+
| `o` or `Ctrl+O` | Open the current file or image on your local machine (`rex open` / `open`) |
|
|
57
|
+
| `n` or `Ctrl+E` | Add a note for the agent on the current tab |
|
|
58
|
+
| `g` | Jump focus back to the Rex or tmux pane that pushed the current tab |
|
|
59
|
+
| `1–9` / `[` `]` | Switch tabs (or click with mouse) |
|
|
60
|
+
| `Tab` | Move focus between document, checklist, filter, and tabs |
|
|
61
|
+
| `Space` / `Enter` | Toggle checklist items or submit a decision prompt |
|
|
62
|
+
| `/` or `Ctrl+F` | Filter table rows or log lines |
|
|
63
|
+
| `r` | Cycle column sort (tables) |
|
|
64
|
+
| `y` | Copy the selected row, file path, or feedback summary to clipboard |
|
|
65
|
+
| `w` or `Ctrl+W` | Close the current tab |
|
|
66
|
+
| `?` | Show or hide shortcuts |
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Technical Details
|
|
71
|
+
|
|
72
|
+
### Architecture & Performance
|
|
73
|
+
|
|
74
|
+
`bypane` is built with [`tui-sdk`](https://tui-sdk.dev) and has zero other runtime dependencies. The TUI pane, CLI commands, and MCP server talk over a per-window Unix domain socket (scoped by Rex window, tmux window, working directory, or `--session <name>`).
|
|
75
|
+
|
|
76
|
+
| Runtime | Startup | Peak RAM | Size |
|
|
77
|
+
| :--- | ---: | ---: | ---: |
|
|
78
|
+
| Native binary (`scriptc`) | ~2 ms | ~4 MB | ~2 MB |
|
|
79
|
+
| Node.js 24 (`npx @bypane/cli`) | ~90 ms | ~96 MB | Node runtime |
|
|
80
|
+
|
|
81
|
+
Every frame is diffed cell-by-cell so idle panes use zero CPU and scrolling/filtering stays crisp at 60 fps. To compile a standalone native binary locally (requires `clang` + `lld`):
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
npm run build:native
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### CLI Reference
|
|
88
|
+
|
|
89
|
+
Agents and shell scripts can push tabs directly from the command line (or `npx -y @bypane/cli ...` if not installed globally):
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
# Show Markdown, code with highlighted lines, PNG images, or binary QuickLook
|
|
93
|
+
bypane show PLAN.md
|
|
94
|
+
bypane show src/ui.ts:1-60
|
|
95
|
+
bypane show screenshot.png --caption "After layout polish"
|
|
96
|
+
bypane show report.pdf
|
|
97
|
+
|
|
98
|
+
# Pipe JSON, CSV, or TSV into a filterable, sortable table
|
|
99
|
+
cat rows.json | bypane table --title "Results"
|
|
100
|
+
|
|
101
|
+
# Render a braille chart
|
|
102
|
+
bypane chart --title "Latency" --unit ms --series p50:12,14,11,10 --series p99:42,38,31,29
|
|
103
|
+
|
|
104
|
+
# Stream lines into a filterable log surface
|
|
105
|
+
tail -n 200 app.log | bypane log --title "App Log"
|
|
106
|
+
|
|
107
|
+
# Present a human-only decision prompt (blocks until submitted)
|
|
108
|
+
bypane ask --title "Deploy" --prompt "Choose rollout" --option canary --option prod
|
|
109
|
+
|
|
110
|
+
# Read current tab state (checked items, notes, selected row, ask answers)
|
|
111
|
+
bypane state
|
|
112
|
+
|
|
113
|
+
# Manage installed agent skill files
|
|
114
|
+
bypane skill setup | status | show | remove
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### MCP Server (Optional)
|
|
118
|
+
|
|
119
|
+
Agents can use `bypane` via the installed skill and CLI alone, or connect over MCP (`bypane mcp` or `npx -y @bypane/cli mcp`) for structured tools:
|
|
120
|
+
|
|
121
|
+
- `bypane_present`: create or update `markdown`, `file`, `image`, `table`, `chart`, or `log` tabs
|
|
122
|
+
- `bypane_append_log`: append lines to an open log tab
|
|
123
|
+
- `bypane_ask`: show a human-gated `select`, `multiselect`, `text`, or `confirm` prompt
|
|
124
|
+
- `bypane_list`, `bypane_state`, `bypane_close`: inspect open tabs, read user edits, or close tabs
|
|
125
|
+
- `bypane_snapshot`, `bypane_act`: inspect live UI components or run non-destructive UI actions via `tui/agent`
|
|
126
|
+
|
|
127
|
+
### Development
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
npm install
|
|
131
|
+
npm run typecheck
|
|
132
|
+
npm run build
|
|
133
|
+
npm test
|
|
134
|
+
```
|