Repository navigation
v2.0.0 — Component composition
Component composition
Build a status line from independent component instances. Repeat a metric with different labels, icons, formats, colors, visibility, priority and width; add literal text and a flexible spacer to align an explicit main row or the subagent template. Existing default display content remains unchanged. The Left and right and Repeated metrics presets provide editable examples.
Both editors show configured instances, including disabled entries. Native A/D/X and external Ctrl+A/Ctrl+D/Ctrl+X add, copy and remove instances. The searchable type picker, instance forms, ordering, preview and import review share the same configuration model. The CLI provides scoped config instance operations and config layout --by-instance; legacy type commands reject ambiguous matches. See the composition guide and CLI reference.
pipx install --force fbincon-claude-code-statusline==2.0.0
claude-statusline install --dry-run
claude-statusline install
claude-statusline doctor
Restart Claude Code after updating its integration. Stable installation requests both supported editor entries by default and retains explicit disablement. Interface language, output language, collectors and Claude preferences remain independent. Upgrading the Python package alone does not update installed editor resources.
Compatibility and recovery
Display schema 8 and editor protocol 11 require matching Python and bundled resources. Display v1–v7 files migrate deterministically in memory, preserving enabled order, disabled overrides, layout and language. Reads, previews, import review and dry runs do not rewrite display files. Actual saves and installation back up before migration and retain revision checks and transaction rollback.
Portable envelopes remain v1, UI preferences v1 and runtime observations v2. Before downgrading, remove incompatible native integration with the current package and restore a compatible pre-migration backup before installing the older package. Repeated instances and flexible layouts cannot be converted losslessly by changing the schema number. See upgrade and recovery.
Linux/WSL, Windows 10/11, macOS 14+ and Python 3.10–3.14 remain supported. External entry needs Claude Code 2.1.258+ and Client needs 2.1.287+; incompatible entries suspend independently. Repeated metrics share raw observations within a frame and format each instance separately. Timer and observation-store semantics remain unchanged.
Validation
The composition candidate completed 815 Python tests (807 passed, eight platform skips), 112 native Mod tests and ten runtime Mod tests. Installed-wheel validation covered ten bilingual external PTY cases at five sizes, four bilingual native composition cases at two widths, native/external discovery and import review, six grapheme/style cases and released v1.13.0 migration, compatible-backup downgrade and re-upgrade. Independently rebuilt wheels retained 217 identical internal files. Capture provenance records the tested sources and terminal reconstruction limits.
Performance measurements retain 39,000 baseline comparison samples and 10,000 opt-in composition samples. Instance validation and retained disabled placements add work; measured costs and screening flags remain in the report. This release does not claim zero default-path overhead. Stable promotion changes release metadata, documentation and version-dependent installation defaults; the measured rendering and collection code is retained.
The release process requires all 13 Python/build and 13 Mod jobs on the reviewed PR, merge commit and tag, independent package rebuilding, installed smoke and preview-to-stable upgrade checks. The same fixed artifacts pass nine TestPyPI and nine PyPI publishing/installation jobs before synchronization to Gitee. The preview remains available with its original assets.
Ten fixed-host Mod jobs retain exact-build TypeScript checks. The three Claude Code 2.1.296 jobs cover runtime tests, strict validation and installation; the current host preparation flow does not emit its declarations, so these are not exact-build 2.1.296 type checks. Automated captures and agent inspection do not establish new human Windows/macOS acceptance. The historical macOS Client focus/input limitation remains. No paid model calls were needed for composition or stable promotion.
简体中文
组件组合
用独立组件实例组织状态栏:同一指标可重复显示,各自设置标签、图标、格式、颜色、显示条件、优先级和宽度;加入原样文字及弹性留白,实现显式主栏行或子代理模板的左右对齐。现有默认显示内容不变,新增“左右布局”和“重复指标”预设作为可编辑示例。
两种编辑器显示已配置实例(含禁用项)。原生 A/D/X、外部 Ctrl+A/Ctrl+D/Ctrl+X 分别新增、复制和移除;可搜索类型目录、实例表单、排序、预览和导入审阅使用同一配置模型。CLI 提供分作用域的 config instance 和 config layout --by-instance;旧类型命令遇到歧义时明确拒绝。详见组件指南及 CLI 文档。
pipx install --force fbincon-claude-code-statusline==2.0.0
claude-statusline install --dry-run
claude-statusline install
claude-statusline doctor
更新接入后重启 Claude Code。正式版默认请求两个受支持的编辑入口,保留明确关闭偏好;界面/输出语言、采集器和 Claude 偏好继续独立。仅升级 Python 软件包不会更新已安装的编辑器资源。
显示 schema 8/编辑器协议 11 要求匹配的 Python 包和资源。历史 v1–v7 确定性映射到内存,保留启用顺序、禁用项覆盖、布局及语言;读取、预览、导入审阅和 dry-run 不改写文件。真实保存或安装先备份再迁移,继续使用 revision 检查与事务回滚。
portable v1、界面偏好 v1、运行观测 v2 保持不变。降级前用当前包移除不兼容原生接入,恢复迁移前兼容备份,再安装旧版;不能通过修改 schema 数字无损回退重复实例和弹性布局。参见升级恢复。
继续支持 Linux/WSL、Windows 10/11、macOS 14+ 及 Python 3.10–3.14。外部入口需要 Claude Code 2.1.258+,Client 需要 2.1.287+,不兼容入口分别暂挂。重复指标共享当前帧原始观测,再分别格式化;计时及观测存储语义不变。
组件候选完成 815 项 Python 测试(807 通过、8 项平台跳过)、112 项原生 Mod 测试和十项 runtime Mod 测试。安装后验证包括十个中英文外部 PTY 案例(五尺寸)、四个中英文原生组合案例(两宽度)、两端发现与导入审阅、六个字素/样式案例,以及真实 v1.13.0 升级、恢复兼容备份后降级和再升级。独立重建 wheel 的 217 个内部文件内容一致。捕获来源记录源码和终端重建限制。
性能报告保留 39,000 个基线对比样本及 10,000 个可选组合样本,记录实例校验和禁用项位置保留带来的开销与复核标记,不宣称默认路径零开销。正式晋升调整发布元数据、文档和随版本变化的安装默认值,保留被测渲染及采集代码。
发布流程要求已审查 PR、合并提交及标签各自通过 13 项 Python/构建和 13 项 Mod 作业,完成独立重建、安装 smoke 及预览到正式版升级;同一批固定发行物通过 TestPyPI/PyPI 各九项发布及安装作业,再同步 Gitee。预览版及原始资产继续保留。
十个固定宿主作业保留精确版本 TypeScript 检查;2.1.296 的三个作业覆盖运行测试、严格校验及安装,当前声明生成流程未产生其类型,因此不宣称通过 2.1.296 精确类型检查。自动捕获和 agent 图像检查不代表新增 Windows/macOS 真人验收;历史 macOS Client 焦点/输入限制继续保留。本次组件开发与正式晋升未使用付费模型调用。