Skip to content

Commit 09b9390

Browse files
authored
Merge pull request #1 from pszymkowiak/feature/v0.2.1
Release v0.2.1
2 parents 5f7adc9 + 50f501c commit 09b9390

11 files changed

Lines changed: 484 additions & 28 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Benchmark Token Savings
2+
3+
on:
4+
push:
5+
branches: [master, main]
6+
pull_request:
7+
8+
jobs:
9+
benchmark:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Install Rust
15+
uses: dtolnay/rust-action@stable
16+
17+
- name: Build rtk
18+
run: cargo build --release
19+
20+
- name: Run benchmark
21+
run: ./scripts/benchmark.sh
22+
23+
- name: Upload report
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: benchmark-report
27+
path: benchmark-report.md

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Release
22

33
on:
44
push:
5+
branches:
6+
- master
57
tags:
68
- 'v*'
79
workflow_dispatch:
@@ -150,8 +152,12 @@ jobs:
150152
run: |
151153
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
152154
echo "version=${{ github.event.inputs.tag }}" >> $GITHUB_OUTPUT
153-
else
155+
elif [[ "${{ github.ref }}" == refs/tags/* ]]; then
154156
echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
157+
else
158+
# Extract version from Cargo.toml for push to master
159+
VERSION=$(grep '^version' Cargo.toml | head -1 | sed 's/.*"\(.*\)".*/\1/')
160+
echo "version=v${VERSION}" >> $GITHUB_OUTPUT
155161
fi
156162
157163
- name: Flatten artifacts

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ Thumbs.db
2626
# Test artifacts
2727
*.cast.bak
2828

29+
# Benchmark results
30+
scripts/benchmark/
31+
benchmark-report.md
32+
2933
# SQLite databases
3034
*.db
3135
*.sqlite

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rtk"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition = "2021"
55
authors = ["Patrick Szymkowiak"]
66
description = "Rust Token Killer - High-performance CLI proxy to minimize LLM token consumption"

README.md

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ cargo install rtk
4848

4949
### Debian/Ubuntu
5050
```bash
51-
curl -LO https://github.com/pszymkowiak/rtk/releases/latest/download/rtk_0.2.0-1_amd64.deb
52-
sudo dpkg -i rtk_0.2.0-1_amd64.deb
51+
curl -LO https://github.com/pszymkowiak/rtk/releases/latest/download/rtk_0.2.1-1_amd64.deb
52+
sudo dpkg -i rtk_0.2.1-1_amd64.deb
5353
```
5454

5555
### Fedora/RHEL
5656
```bash
57-
curl -LO https://github.com/pszymkowiak/rtk/releases/latest/download/rtk-0.2.0-1.x86_64.rpm
58-
sudo rpm -i rtk-0.2.0-1.x86_64.rpm
57+
curl -LO https://github.com/pszymkowiak/rtk/releases/latest/download/rtk-0.2.1-1.x86_64.rpm
58+
sudo rpm -i rtk-0.2.1-1.x86_64.rpm
5959
```
6060

6161
### Manual Download
@@ -285,6 +285,32 @@ rtk init # Create local CLAUDE.md
285285
rtk init --global # Create ~/CLAUDE.md
286286
```
287287

288+
example of 3 days session:
289+
```bash
290+
📊 RTK Token Savings
291+
════════════════════════════════════════
292+
293+
Total commands: 133
294+
Input tokens: 30.5K
295+
Output tokens: 10.7K
296+
Tokens saved: 25.3K (83.0%)
297+
298+
By Command:
299+
────────────────────────────────────────
300+
Command Count Saved Avg%
301+
rtk git status 41 17.4K 82.9%
302+
rtk git push 54 3.4K 91.6%
303+
rtk grep 15 3.2K 26.5%
304+
rtk ls 23 1.4K 37.2%
305+
306+
Daily Savings (last 30 days):
307+
────────────────────────────────────────
308+
01-23 │███████████████████ 6.4K
309+
01-24 │██████████████████ 5.9K
310+
01-25 │ 18
311+
01-26 │████████████████████████████████████████ 13.0K
312+
```
313+
288314
## License
289315

290316
MIT License - see [LICENSE](LICENSE) for details.

0 commit comments

Comments
 (0)