Skip to content

Commit 9dc1c30

Browse files
committed
sync v1.0.4
2 parents 8347724 + 5548830 commit 9dc1c30

42 files changed

Lines changed: 3569 additions & 1445 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/autofix.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: autofix.ci # needed to securely identify the workflow
2+
3+
on:
4+
workflow_call:
5+
pull_request:
6+
push:
7+
branches: [ "master" ]
8+
permissions:
9+
contents: read
10+
11+
env:
12+
rust_clippy: 1.65 # MSRV
13+
14+
jobs:
15+
autofix:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v5
19+
- uses: actions/cache@v4
20+
with:
21+
path: |
22+
~/.cargo/bin/
23+
~/.cargo/registry/index/
24+
~/.cargo/registry/cache/
25+
~/.cargo/git/db/
26+
target/
27+
key: autofix-${{ hashFiles('**/Cargo.lock') }}
28+
29+
- run: rustup toolchain install ${{ env.rust_clippy }} --profile minimal --component rustfmt --component clippy
30+
- run: rustup default ${{ env.rust_clippy }}
31+
32+
- run: cargo clippy --fix --workspace --allow-dirty --allow-staged
33+
- run: cargo fmt --all
34+
35+
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
claude-powerline-features.md
55
CLAUDE.md
66
PRD.md
7-
.claude/
7+
.claude/
8+
tests/

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,27 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.0.4] - 2025-08-28
9+
10+
### Added
11+
- **Interactive Main Menu**: Direct execution now shows TUI menu instead of hanging
12+
- **Claude Code Patcher**: `--patch` command to disable context warnings and enable verbose mode
13+
- **Three New Segments**: Extended statusline with additional information
14+
- **Cost Segment**: Shows monetary cost with intelligent zero-cost handling
15+
- **Session Segment**: Displays session duration and line changes
16+
- **OutputStyle Segment**: Shows current output style name
17+
- **Enhanced Theme System**: Comprehensive theme architecture with 9 built-in themes
18+
- Modular theme organization with individual theme modules
19+
- 4 new Powerline theme variants (dark, light, rose pine, tokyo night)
20+
- Enhanced existing themes (cometix, default, minimal, gruvbox, nord)
21+
- **Model Management System**: Intelligent model recognition and configuration
22+
23+
### Fixed
24+
- **Direct Execution Hanging**: No longer hangs when executed without stdin input
25+
- **Help Component Styling**: Consistent key highlighting across all TUI help displays
26+
- **Cross-platform Path Support**: Enhanced Windows %USERPROFILE% and Unix ~/ path handling
27+
28+
829
## [1.0.3] - 2025-08-17
930

1031
### Fixed

Cargo.lock

Lines changed: 65 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ccometixline-packycc"
3-
version = "1.0.3"
3+
version = "1.0.4"
44
edition = "2021"
55
description = "CCometixLine (ccline) - High-performance Claude Code StatusLine tool written in Rust"
66
authors = ["ding113"]
@@ -11,28 +11,27 @@ keywords = ["claude", "statusline", "powerline", "rust", "claude-code"]
1111
categories = ["command-line-utilities", "development-tools"]
1212

1313
[dependencies]
14-
# 核心依赖
1514
serde = { version = "1.0", features = ["derive"] }
1615
serde_json = "1.0"
1716
clap = { version = "4.0", features = ["derive"] }
1817
toml = "0.8"
1918

20-
# TUI 依赖
2119
ratatui = { version = "0.29", optional = true }
2220
crossterm = { version = "0.28", optional = true }
2321

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

28-
# 可选:更新功能
2925
ureq = { version = "2.10", features = ["json"], optional = true }
3026
semver = { version = "1.0", optional = true }
3127
chrono = { version = "0.4", features = ["serde"], optional = true }
3228
dirs = { version = "5.0", optional = true }
29+
regex = "1.0"
30+
31+
3332

3433
[features]
35-
default = ["tui", "self-update", "quota"]
34+
default = ["tui", "self-update", "quota", "dirs"]
3635
tui = ["ratatui", "crossterm", "ansi_term", "ansi-to-tui", "chrono"]
3736
self-update = ["ureq", "semver", "chrono", "dirs"]
3837
quota = ["ureq", "dirs"]

0 commit comments

Comments
 (0)