pi-hud 0.1.2 → 0.1.3
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 +12 -2
- package/extensions/hud.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ It shows the current session, model/context usage, subagent activity, project pa
|
|
|
29
29
|
- token/context count when available.
|
|
30
30
|
- Session context usage and cost.
|
|
31
31
|
- Project path and current git branch.
|
|
32
|
-
- MCP server names when `pi-mcp-adapter` is installed.
|
|
32
|
+
- Configured MCP server names when `pi-mcp-adapter` is installed.
|
|
33
33
|
|
|
34
34
|
## Install
|
|
35
35
|
|
|
@@ -108,11 +108,21 @@ Shortcut changes require `/reload` because shortcuts are registered when the ext
|
|
|
108
108
|
|
|
109
109
|
## Notes
|
|
110
110
|
|
|
111
|
-
- MCP servers are shown only when Pi has [`pi-mcp-adapter`](https://pi.dev/packages/pi-mcp-adapter?name=pi-mcp-adap) installed; config files alone do not enable the section.
|
|
111
|
+
- Configured MCP servers are shown only when Pi has [`pi-mcp-adapter`](https://pi.dev/packages/pi-mcp-adapter?name=pi-mcp-adap) installed; config files alone do not enable the section.
|
|
112
112
|
- Subagent status is based on Pi extension events and `pi-subagents` tool/result shapes when available.
|
|
113
113
|
- The HUD auto-compacts for the full assistant turn and expands when the turn ends, instead of changing state on each reasoning update.
|
|
114
114
|
- The overlay is hidden on narrow terminals under the configured `minTerminalWidth`.
|
|
115
115
|
|
|
116
|
+
## Known limitations
|
|
117
|
+
|
|
118
|
+
### MCP connection status
|
|
119
|
+
|
|
120
|
+
The HUD shows configured MCP server names, not live connection status. It reads global and project MCP config paths and renders the configured names when `pi-mcp-adapter` is installed.
|
|
121
|
+
|
|
122
|
+
For example, a project-local `.mcp.json` can make a server appear in the HUD even when that server is not currently connected. Use `mcp({})` or `/mcp` for live MCP status.
|
|
123
|
+
|
|
124
|
+
`pi-mcp-adapter` does not currently expose a public cross-extension status API for `pi-hud` to consume. If such an API becomes available, `pi-hud` can show live states such as connected, cached, failed, needs-auth, or not connected.
|
|
125
|
+
|
|
116
126
|
## Inspiration
|
|
117
127
|
|
|
118
128
|
`pi-hud` is inspired by [sub-agent-statusline](https://github.com/Joaquinvesapa/sub-agent-statusline).
|
package/extensions/hud.ts
CHANGED
|
@@ -347,7 +347,7 @@ class HudComponent implements Component {
|
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
if (mcpAdapter.available) {
|
|
350
|
-
this.pushSection(lines, innerWidth, "
|
|
350
|
+
this.pushSection(lines, innerWidth, "Configured MCPs");
|
|
351
351
|
if (mcpAdapter.servers.length === 0) {
|
|
352
352
|
this.pushLine(lines, innerWidth, this.theme.fg("dim", "adapter installed"));
|
|
353
353
|
} else {
|