Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: autofix.ci # needed to securely identify the workflow

on:
pull_request:
push:
branches: [ "main", "master" ]

permissions:
contents: read

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0

jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy

- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-autofix-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-autofix-
${{ runner.os }}-cargo-

# Fix lint errors and warnings
- name: Fix clippy issues
run: cargo clippy --fix --workspace --allow-dirty --allow-staged

# Format code
- name: Format code
run: cargo fmt --all

- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
claude-powerline-features.md
CLAUDE.md
PRD.md
.claude/
.claude/
tests/
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.4] - 2025-08-28

### Added
- **Interactive Main Menu**: Direct execution now shows TUI menu instead of hanging
- **Claude Code Patcher**: `--patch` command to disable context warnings and enable verbose mode
- **Three New Segments**: Extended statusline with additional information
- **Cost Segment**: Shows monetary cost with intelligent zero-cost handling
- **Session Segment**: Displays session duration and line changes
- **OutputStyle Segment**: Shows current output style name
- **Enhanced Theme System**: Comprehensive theme architecture with 9 built-in themes
- Modular theme organization with individual theme modules
- 4 new Powerline theme variants (dark, light, rose pine, tokyo night)
- Enhanced existing themes (cometix, default, minimal, gruvbox, nord)
- **Model Management System**: Intelligent model recognition and configuration

### Fixed
- **Direct Execution Hanging**: No longer hangs when executed without stdin input
- **Help Component Styling**: Consistent key highlighting across all TUI help displays
- **Cross-platform Path Support**: Enhanced Windows %USERPROFILE% and Unix ~/ path handling


## [1.0.3] - 2025-08-17

### Fixed
Expand Down
90 changes: 65 additions & 25 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ccometixline-packycc"
version = "1.0.3"
version = "1.0.4"
edition = "2021"
description = "CCometixLine (ccline) - High-performance Claude Code StatusLine tool written in Rust"
authors = ["ding113"]
Expand All @@ -11,28 +11,27 @@ keywords = ["claude", "statusline", "powerline", "rust", "claude-code"]
categories = ["command-line-utilities", "development-tools"]

[dependencies]
# 核心依赖
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
clap = { version = "4.0", features = ["derive"] }
toml = "0.8"

# TUI 依赖
ratatui = { version = "0.29", optional = true }
crossterm = { version = "0.28", optional = true }

# 颜色处理
ansi_term = { version = "0.12", optional = true }
ansi-to-tui = { version = "7.0", optional = true }

# 可选:更新功能
ureq = { version = "2.10", features = ["json"], optional = true }
semver = { version = "1.0", optional = true }
chrono = { version = "0.4", features = ["serde"], optional = true }
dirs = { version = "5.0", optional = true }
regex = "1.0"



[features]
default = ["tui", "self-update", "quota"]
default = ["tui", "self-update", "quota", "dirs"]
tui = ["ratatui", "crossterm", "ansi_term", "ansi-to-tui", "chrono"]
self-update = ["ureq", "semver", "chrono", "dirs"]
quota = ["ureq", "dirs"]
Loading
Loading