@juanbenjumea/pi-dynamic-footer

中文文档
0.1.11发布于 2026/11/01MITES Module构建来源已验证

Dynamic configurable footer for pi with live observability: context gauge, TPS, token/cost tracking, subscription usage bars, git status, and a full settings UI.

原始使用文档
文档目录7 节
  1. Install
  2. Commands
  3. Quota bars
  4. Configuration
  5. Development
  6. Privacy
  7. License

pi-dynamic-footer

A configurable live footer for pi. It replaces pi’s default footer with context usage, model/thinking level, TPS, token and cost tracking, cache ratio, git status, and subscription quota bars.

Install

pi install npm:@juanbenjumea/pi-dynamic-footer

Commands

CommandAction
/footer or /footer menuOpen the footer action menu
/footer toggleShow or hide the footer
/footer pathToggle folder name or full path
/footer settingsConfigure segments, presets, and context zones

The footer is enabled by default and replaces pi’s default footer. It adapts to narrow terminals by dropping lower-priority segments first.

Quota bars

Quota bars are shown when provider credentials are available. Supported providers:

  • Claude / Claude Max
  • OpenAI Codex
  • OpenCode Go
  • ClinePass
  • Umans
  • GitHub Copilot
  • Google Gemini
  • Kimi Coding
  • Synthetic
  • z.ai / GLM
  • Cursor
  • CommandCode
  • Openference

API keys normally come from pi’s auth.json; providers also support their documented environment variables. Cursor and CommandCode subscription usage requires a browser session cookie in quota-sessions.json, not an API key. OpenCode Go account rotation is provided by @juanbenjumea/pi-multi-opencode-go.

Configuration

Use /footer settings to configure these segments:

modelThink, provider, runtime, pwd, git, contextUsage, contextProgress, contextPercentage, contextNumbers, tokens, tps, cost, cache, turnCount, and usageBars.

Presets:

  • minimal — model and essential context information
  • standard — balanced default layout
  • verbose — all segments, including TPS and turn count
  • performance — model, context, TPS, and cost

Context thresholds default to 70% (expert) and 85% (warning). The expert threshold cannot exceed the warning threshold.

Set PI_OBS_SHOW_FULL_PATH=1 to start with the full home-relative working-directory path enabled.

Development

npm test
npm run typecheck

Privacy

Usage data stays in memory and is not written to disk. Only footer settings are stored under ~/.pi/agent/observability/ (or $PI_CODING_AGENT_DIR/observability/). Authenticated requests use fixed HTTPS provider endpoints.

License

MIT

版本与发布记录

@juanbenjumea/pi-dynamic-footer 共发布 10 个版本,首次发布于 2026/07/23;过去 12 个月发布了 10 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.1.11latest2026/11/012 天前
0.1.102026/09/111 个月前
0.1.92026/09/111 个月前
0.1.72026/08/023 个月前
0.1.62026/08/023 个月前
0.1.52026/08/023 个月前

关于 @juanbenjumea/pi-dynamic-footer 的常见问题

@juanbenjumea/pi-dynamic-footer 是什么?

动态配置页脚的pi与实时观察:上下文测量,TPS,令牌/成本跟踪,订阅使用栏,git状态,和一个完整的设置UI。

如何安装 @juanbenjumea/pi-dynamic-footer?

在项目目录运行 npm install @juanbenjumea/pi-dynamic-footer,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@earendil-works/pi-ai(*)、@earendil-works/pi-tui(*)、@earendil-works/pi-coding-agent(>=0.80.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@juanbenjumea/pi-dynamic-footer 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/juanbenjumea__pi-dynamic-footer 是否存在。

@juanbenjumea/pi-dynamic-footer 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@juanbenjumea/pi-dynamic-footer 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@juanbenjumea/pi-dynamic-footer 可以商用吗?

@juanbenjumea/pi-dynamic-footer 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@juanbenjumea/pi-dynamic-footer 还在维护吗?

最新版本 0.1.11 发布于 2026/11/01(2 天前);至今共发布 10 个版本,其中过去 12 个月发布了 10 个;首次发布于 2026/07/23。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。