pi-bar 0.3.12 → 0.3.14

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 CHANGED
@@ -3,23 +3,23 @@
3
3
  [![npm version](https://img.shields.io/npm/v/pi-bar.svg)](https://www.npmjs.com/package/pi-bar)
4
4
  [![npm downloads](https://img.shields.io/npm/dm/pi-bar.svg)](https://www.npmjs.com/package/pi-bar)
5
5
 
6
- **Never accidentally run Opus on a typo again.** pi-bar puts the active model, thinking level, context usage, live TLDR, and extension statuses in pi's footer so you catch wrong-model / wrong-reasoning / context-pressure problems before they cost you.
6
+ **Never accidentally run Opus on a typo again.** pi-bar keeps your model, thinking level, context pressure, extension status, and a live one-line TLDR visible in pi's footer.
7
7
 
8
8
  ```text
9
9
  ◈ claude-opus-4.7 ❯ ✦ think:med ❯ ◷ 2.6% / 1.0M ❯ Inspecting package structure ❯ ✧ plan:active
10
10
  ```
11
11
 
12
- ![pi-bar screenshot, three rows showing green, yellow, and red context usage](https://cdn.jsdelivr.net/npm/pi-bar@0.3.12/assets/screenshot.png)
12
+ ![pi-bar screenshot, three rows showing green, yellow, and red context usage](https://cdn.jsdelivr.net/npm/pi-bar@0.3.14/assets/screenshot.png)
13
13
 
14
14
  ## Why use it?
15
15
 
16
16
  - **See the active model at a glance** — catch accidental model switches before an expensive or sensitive task starts.
17
17
  - **Track thinking level in place** — immediately notice when you are using the wrong reasoning setting.
18
18
  - **Watch context pressure early** — context usage turns green, yellow, then red as you approach the limit.
19
- - **Show live TLDR inline** — pi-bar can generate a compact live summary directly in the footer.
19
+ - **Follow what pi is doing** — a live TLDR keeps the current task visible without scrolling.
20
20
  - **Keep extension statuses visible** — statuses set with `ctx.ui.setStatus()` still appear in the custom footer.
21
21
 
22
- pi-bar is intentionally tiny: one small extension, no broad behavior changes, and no commands to learn. It replaces pi's built-in footer with a compact model / thinking / context / tldr / extension-status line that refreshes when model, thinking level, context usage, generated TLDR, or extension statuses change.
22
+ pi-bar is intentionally tiny: one small extension, no broad behavior changes, and no commands to learn. It replaces pi's built-in footer with a compact model / thinking / context / TLDR / extension-status line.
23
23
 
24
24
  ## Install
25
25
 
@@ -48,15 +48,15 @@ Allowed segments are `model`, `thinking`, `context`, `tldr`, and `extensions`. T
48
48
 
49
49
  ### Configure live TLDR
50
50
 
51
- pi-bar generates live footer TLDRs from recent prompt, assistant, tool, and result activity. TLDR state resets when you navigate the session tree so stale summaries do not follow you across branches. It uses a fast authenticated model and stays quiet when none is available. Set `PI_BAR_SHOW` without `tldr` to hide it.
51
+ pi-bar shows a concise live TLDR of the current task in the footer. It resets when you navigate the session tree so stale summaries do not follow you across branches. Set `PI_BAR_SHOW` without `tldr` to hide it.
52
52
 
53
- By default, pi-bar uses the first authenticated fast model from its fallback list. Override with:
53
+ Override the TLDR model with:
54
54
 
55
55
  ```bash
56
56
  PI_BAR_TLDR_MODEL=anthropic/claude-haiku-4-5 pi
57
57
  ```
58
58
 
59
- You can also set `bar.tldrModel` in pi settings; `tldr.model` is accepted for compatibility with existing settings.
59
+ You can also set `bar.tldrModel` in pi settings.
60
60
 
61
61
  ### Configure extension statuses
62
62
 
@@ -111,4 +111,4 @@ PI_BAR_ICONS=plain pi
111
111
 
112
112
  Pi extensions run with your local user permissions. Review any pi package source before installing it.
113
113
 
114
- Live TLDR generation sends short snippets from recent prompt, assistant, tool, and result activity to the selected TLDR model provider. Disable the `tldr` segment with `PI_BAR_SHOW` if that is unacceptable.
114
+ Live TLDR generation sends short activity snippets to the selected TLDR model provider. Disable the `tldr` segment with `PI_BAR_SHOW` if that is unacceptable.
@@ -82,7 +82,7 @@ const MAX_CONTEXT_CHECKPOINTS = 8;
82
82
  const TLDR_MAX_TOKENS = 120;
83
83
  const TLDR_REQUEST_TIMEOUT_MS = 2_000;
84
84
  const TLDR_DISPLAY_UPDATE_INTERVAL_MS = 1_200;
85
- const TLDR_TARGET_SUMMARY_CHARS = 80;
85
+ const TLDR_TARGET_SUMMARY_CHARS = 60;
86
86
  const CONFIG_PATH =
87
87
  process.env.PI_BAR_CONFIG ?? join(homedir(), ".pi", "agent", "pi-bar.json");
88
88
 
@@ -745,8 +745,10 @@ Use the prior TLDRs for context and the new activity for the update.
745
745
  Summarize only activity up to the requested index.
746
746
  If context is sparse, still summarize the available activity.
747
747
  Never ask for more information or say there is not enough context.
748
- Return exactly one complete sentence under ${TLDR_TARGET_SUMMARY_CHARS} characters.
749
- Use third person. Do not address the user.
748
+ Return one concise status fragment under ${TLDR_TARGET_SUMMARY_CHARS} characters.
749
+ Omit subjects like "the agent" or "it".
750
+ Prefer verb + direct object. Include outcome only if important.
751
+ Do not address the user.
750
752
  Plain text only; no markdown, JSON, code, bullets, quotes, or file/tool names.
751
753
  ${tenseInstruction}`;
752
754
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-bar",
3
- "version": "0.3.12",
4
- "description": "Never accidentally run Opus on a typo. Pi footer/statusline showing active model, thinking level, context usage, live TLDR, and extension statuses.",
3
+ "version": "0.3.14",
4
+ "description": "Pi footer/statusline showing active model, thinking level, context pressure, live TLDR, and extension statuses.",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "pi-package",
@@ -51,6 +51,6 @@
51
51
  "extensions": [
52
52
  "./extensions/status-footer.ts"
53
53
  ],
54
- "image": "https://cdn.jsdelivr.net/npm/pi-bar@0.3.12/assets/screenshot.png"
54
+ "image": "https://cdn.jsdelivr.net/npm/pi-bar@0.3.14/assets/screenshot.png"
55
55
  }
56
56
  }