@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/package.json
CHANGED
|
@@ -1,6 +1,59 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bypane/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A companion terminal pane beside your coding agent for interactive plans, checklists, QuickLook files/images, tables, charts, decisions, and one-key feedback push-back.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Vlad Arbatov",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/vladzima/bypane.git"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/vladzima/bypane#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/vladzima/bypane/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"tui",
|
|
18
|
+
"terminal",
|
|
19
|
+
"cli",
|
|
20
|
+
"mcp",
|
|
21
|
+
"ai-agents",
|
|
22
|
+
"claude-code",
|
|
23
|
+
"codex",
|
|
24
|
+
"opencode",
|
|
25
|
+
"rex",
|
|
26
|
+
"tmux",
|
|
27
|
+
"tui-sdk"
|
|
28
|
+
],
|
|
29
|
+
"bin": {
|
|
30
|
+
"bypane": "dist/cli.js"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist",
|
|
34
|
+
"skills",
|
|
35
|
+
"README.md",
|
|
36
|
+
"LICENSE"
|
|
37
|
+
],
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=24.0.0"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "tsc -p tsconfig.build.json && chmod +x dist/cli.js",
|
|
43
|
+
"prepublishOnly": "npm run typecheck && npm run build && npm test",
|
|
44
|
+
"start": "node src/cli.ts",
|
|
45
|
+
"setup": "node src/cli.ts setup",
|
|
46
|
+
"demo": "node src/cli.ts --demo",
|
|
47
|
+
"test": "node --test test/*.test.ts",
|
|
48
|
+
"typecheck": "tsc --noEmit",
|
|
49
|
+
"build:native": "npx scriptc build src/cli.ts -o bypane",
|
|
50
|
+
"coverage:native": "npx scriptc coverage src/cli.ts"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"tui": "^0.2.1"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@types/node": "^24.0.0",
|
|
57
|
+
"typescript": "^5.8.0"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bypane
|
|
3
|
+
description: >
|
|
4
|
+
Use bypane to project interactive visual surfaces (Markdown plans with
|
|
5
|
+
checklists, QuickLook files and PNG images, filterable tables, braille charts,
|
|
6
|
+
live logs, and human-gated decisions) into a companion terminal pane beside
|
|
7
|
+
the user's chat. Use when sharing plans, screenshots, binary files, comparison
|
|
8
|
+
tables, metric series, or multi-option decisions that are easier to inspect or
|
|
9
|
+
act on spatially than in scrolling chat text.
|
|
10
|
+
license: MIT
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# bypane
|
|
14
|
+
|
|
15
|
+
`bypane` is a 2 ms companion terminal pane shared between you and the user.
|
|
16
|
+
Inside Rex or tmux, calling `bypane` auto-splits a companion pane beside the
|
|
17
|
+
active pane without stealing focus.
|
|
18
|
+
|
|
19
|
+
## When to use bypane
|
|
20
|
+
|
|
21
|
+
- **Plans & checklists (`markdown`):** Push multi-step plans with `- [ ]` tasks
|
|
22
|
+
instead of printing long walls of text in chat. The user can toggle tasks
|
|
23
|
+
directly and leave notes (`n`); read their edits back with `state`.
|
|
24
|
+
- **Files, screenshots & binaries (`show`):** Push code snippets with line
|
|
25
|
+
ranges (`path:start-end`), PNG screenshots (rendered inline via Kitty/Ghostty
|
|
26
|
+
or half-blocks), or binary files (PDFs, videos, archives) so the user can
|
|
27
|
+
press `o` to open them on their local host (`rex open` / `open`).
|
|
28
|
+
- **Comparisons & data (`table` / `chart` / `log`):** Push structured rows as a
|
|
29
|
+
filterable, sortable table, numeric series as a braille chart, or streaming
|
|
30
|
+
output as a live log surface.
|
|
31
|
+
- **Branching human decisions (`ask`):** Use `ask` for explicit select,
|
|
32
|
+
multiselect, text, or confirm prompts. `ask` is strictly human-gated—agents
|
|
33
|
+
can pre-highlight an option, never submit on the user's behalf.
|
|
34
|
+
|
|
35
|
+
Do not use `bypane` for short one-line replies or routine command noise.
|
|
36
|
+
|
|
37
|
+
## Using MCP vs. CLI
|
|
38
|
+
|
|
39
|
+
Prefer the `bypane_*` MCP tools when the `bypane` MCP server is attached;
|
|
40
|
+
otherwise call the `bypane` CLI directly over shell (both speak to the exact
|
|
41
|
+
same workspace socket).
|
|
42
|
+
|
|
43
|
+
### MCP tools (`bypane mcp`)
|
|
44
|
+
|
|
45
|
+
- `bypane_present` — show or update `markdown`, `file`, `image`, `table`, `chart`, or `log`
|
|
46
|
+
- `bypane_append_log` — append lines to an existing `log` surface
|
|
47
|
+
- `bypane_ask` — human-gated `select` | `multiselect` | `text` | `confirm` (blocks until submitted unless `wait: false`)
|
|
48
|
+
- `bypane_list` — list open tabs and active surface
|
|
49
|
+
- `bypane_state` — read checked tasks, human notes, selected rows, and `ask` answers
|
|
50
|
+
- `bypane_close` — close a surface tab
|
|
51
|
+
- `bypane_snapshot` / `bypane_act` — inspect live UI components or perform non-destructive actions (tab switch, scroll, filter, pre-highlight)
|
|
52
|
+
|
|
53
|
+
### CLI commands
|
|
54
|
+
|
|
55
|
+
If `bypane` is not on `PATH`, prefix commands with `npx -y @bypane/cli ...`.
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
# Show Markdown, code with highlighted lines, PNG images, or binary QuickLook
|
|
59
|
+
bypane show PLAN.md
|
|
60
|
+
bypane show src/server.ts:40-85
|
|
61
|
+
bypane show screenshot.png --caption "After layout fix"
|
|
62
|
+
bypane show report.pdf
|
|
63
|
+
|
|
64
|
+
# Push inline Markdown with interactive checkboxes
|
|
65
|
+
bypane md --id plan --title "Rollout Plan" <<'EOF'
|
|
66
|
+
# Rollout
|
|
67
|
+
- [x] Run unit tests
|
|
68
|
+
- [ ] Verify staging metrics
|
|
69
|
+
- [ ] Tag release
|
|
70
|
+
EOF
|
|
71
|
+
|
|
72
|
+
# Pipe JSON array or CSV/TSV into a filterable, sortable table
|
|
73
|
+
cat benchmarks.json | bypane table --id bench --title "Benchmarks"
|
|
74
|
+
|
|
75
|
+
# Render a braille chart
|
|
76
|
+
bypane chart --id latency --title "Latency" --unit ms \
|
|
77
|
+
--series p50:14,12,13,11 --series p99:41,38,34,29
|
|
78
|
+
|
|
79
|
+
# Present a human-gated decision (prints JSON answer when user submits)
|
|
80
|
+
bypane ask --id deploy --title "Deploy" --mode select \
|
|
81
|
+
--prompt "Pick rollout channel" --option canary --option prod
|
|
82
|
+
|
|
83
|
+
# Read back human edits (checked tasks, notes, selected table rows)
|
|
84
|
+
bypane state
|
|
85
|
+
bypane state plan
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Updating in place & reading feedback
|
|
89
|
+
|
|
90
|
+
- Reuse `--id <stable-id>` (or `id` in MCP) when updating an existing plan,
|
|
91
|
+
table, or chart so you refresh the same tab instead of spawning duplicates.
|
|
92
|
+
- When the user presses `s` in `bypane`, a compact `[bypane · <Title> (<kind>)]`
|
|
93
|
+
summary of their checked items, selected row, or notes is sent into your
|
|
94
|
+
pane—treat it as direct user feedback on that surface.
|