@each1024/pi-mini-mode 1.3.1 → 1.3.2
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/README.md +11 -7
- package/extensions/footer-status.ts +620 -150
- package/lib/agent-view.ts +393 -26
- package/lib/footer-tidy.ts +122 -0
- package/lib/minimal-markdown.ts +103 -2
- package/lib/sticky-tool.ts +100 -0
- package/lib/title-plain.ts +57 -0
- package/lib/transcript-adapter.ts +448 -11
- package/package.json +8 -3
- package/themes/README.md +5 -0
- package/themes/cc-dark.json +91 -0
- package/themes/cc-light.json +91 -0
- package/README.zh-CN.md +0 -178
package/README.md
CHANGED
|
@@ -3,27 +3,27 @@
|
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
-
<a href="
|
|
6
|
+
<a href="#install">Install</a> · <a href="#make-it-yours">Settings</a> · <a href="https://github.com/user-attachments/assets/5f2f4816-45ed-4759-b035-d9ee59e8a763">Watch demo</a>
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
A compact, configurable footer for [Pi](https://pi.dev). Your model, usage, cost estimate, context, and generation speed — at a glance.
|
|
10
10
|
|
|
11
11
|
## Minimal output
|
|
12
12
|
|
|
13
|
-
`/mini-lens-settings` now has **Lens** and
|
|
13
|
+
`/mini-lens-settings` now has **Lens**, a separate **Collapse replies** switch, and **Minimal output**. Collapsed replies are off by default, so Pi's conversation history stays native until you turn them on. While the switch is off, Minimal output options stay disabled.
|
|
14
14
|
|
|
15
15
|
- `/mini-lens-minimal on` shows the user's Markdown on an accent-tinted surface, a background-free process summary, and the final reply without a heading or extra background. No duplicate dock panel.
|
|
16
|
-
- Each turn uses one shared tree showing the latest **
|
|
16
|
+
- Each turn uses one shared tree showing the latest **ten summary entries**: available thinking, tool calls, streaming tool output, and skill reads. `Ctrl+O` expands the full Markdown process and toggles it closed again; new questions start collapsed; tools without output show an elapsed wait counter, and empty progress events never overwrite existing content; there are no section headings, collapsed counts, or completion labels. Original session messages remain intact.
|
|
17
17
|
- Agent/subagent calls share the same chronological tree as tools and skills; `Ctrl+O` reveals tasks and Markdown output. A returned call does not imply background completion.
|
|
18
18
|
- The pi-subagents `async subagent` / `Async agents` widget uses a background-free status tree, retaining native detail shortcuts and output paths. This adapter is active only in minimal mode, restores on disable, and passes unknown formats through. Grouping design reference: [pi-cc-extensions](https://github.com/minuque/pi-cc-extensions).
|
|
19
19
|
- `/mini-lens-history` browses complete process entries, five at a time.
|
|
20
20
|
- Final Markdown streams as text events arrive; failures and interruptions are indicated.
|
|
21
21
|
- `/reload` remounts the transcript, including history created in native mode. Expanded tree rails continue through paragraphs, blank lines and code blocks.
|
|
22
|
-
- `/mini-lens-minimal off` restores
|
|
22
|
+
- `/mini-lens-minimal off` restores Pi's default conversation history.
|
|
23
23
|
|
|
24
24
|
The user surface blends the active Pi accent with its user background. Process and answer text have no background. User padding is two terminal columns horizontally and one row vertically. Markdown, highlighted code, tables and Mermaid terminal diagrams work in light/dark themes; incomplete, unsupported or over-wide diagrams retain their source. **Minimal mode uses a private Pi 0.85.x layout adapter**, without patching the Pi installation. Unknown layouts refuse activation and retain native output. Recheck compatibility after Pi upgrades; another extension replacing the transcript may conflict.
|
|
25
25
|
|
|
26
|
-
Checks: `npm run check && npm test`. Real terminal smoke test: `python3 test/minimal-pty.py` (Python 3, Node, and the installed dependency's bundled Pi CLI). It uses temporary fixtures, tests regular/fullscreen, toggling,
|
|
26
|
+
Checks: `npm run check && npm test`. Real terminal smoke test: `python3 test/minimal-pty.py` (Python 3, Node, and the installed dependency's bundled Pi CLI). It uses temporary fixtures, tests regular/fullscreen, toggling, ten-entry process and Ctrl+O expand/collapse, restored results, and narrow terminals, without model calls.
|
|
27
27
|
|
|
28
28
|
## Install
|
|
29
29
|
|
|
@@ -76,6 +76,9 @@ Customize with `/mini-lens-settings`. Changes take effect immediately.
|
|
|
76
76
|
|
|
77
77
|
**Fits your terminal.** Follows your Pi theme and adapts to narrow widths. Only the footer changes; Pi's built-in tool and thinking views stay intact.
|
|
78
78
|
|
|
79
|
+
Bundled themes `cc-light` / `cc-dark` are vendored from [pi-cc-extensions](https://github.com/minuque/pi-cc-extensions) (MIT).
|
|
80
|
+
|
|
81
|
+
|
|
79
82
|
## Reference
|
|
80
83
|
|
|
81
84
|
<details>
|
|
@@ -87,7 +90,7 @@ On the first interactive TUI session, Mini Lens shows a preview with every field
|
|
|
87
90
|
deepseek-v4-flash high Total 45K Cached 25K CH 40.0% $0.012 500/1.0M █░░░░░░░░░ 1% 120 tok/s
|
|
88
91
|
```
|
|
89
92
|
|
|
90
|
-
The first-run picker offers **Keep defaults** and **Configure now**. Keeping defaults persists
|
|
93
|
+
The first-run picker offers **Keep defaults** and **Configure now**. Keeping defaults persists footer fields as enabled, leaves collapsed replies off, and prevents the prompt from appearing again; configuring opens the same settings list immediately. Print, JSON, and other non-interactive modes never prompt.
|
|
91
94
|
|
|
92
95
|
Open that settings UI any time with:
|
|
93
96
|
|
|
@@ -130,7 +133,8 @@ Settings are stored globally at Pi's agent directory (normally `~/.pi/agent/mini
|
|
|
130
133
|
| `mini-lens-context-dots-show` | `false` | Use a single-line dot-matrix bar instead of the default solid bar |
|
|
131
134
|
| `mini-lens-context-percent-show` | `true` | Context-use percentage |
|
|
132
135
|
| `mini-lens-speed-show` | `true` | Generation speed at the far right |
|
|
133
|
-
|
|
|
136
|
+
| `mini-lens-speed-unit-show` | `true` | Generation-speed sub-setting: append `tok/s` to the numeric value |
|
|
137
|
+
| `mini-lens-minimal-show` | `false` | Collapse replies; off keeps Pi's default conversation history |
|
|
134
138
|
| `onboardingCompleted` | `false` initially | Internal marker that prevents another first-run prompt |
|
|
135
139
|
|
|
136
140
|
- **Generation speed**
|