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
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Report a problem
description: Something in cc-sessions is not working as it should.
description: Something in Paddock is not working as it should.
labels: [bug]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time. **Report a problem** in Settings › General (or `cc-sessions report`) fills in the version and system for you.
Thanks for taking the time. **Report a problem** in Settings › General (or `paddock report`) fills in the version and system for you.
Please leave out anything private: folder names, session names, prompts, emails.
- type: textarea
id: what
Expand All @@ -29,8 +29,8 @@ body:
- type: input
id: version
attributes:
label: cc-sessions version
description: "`cc-sessions --version`, or Settings › General › Updates."
label: Paddock version
description: "`paddock --version`, or Settings › General › Updates."
placeholder: "2.6.0"
validations:
required: true
Expand All @@ -42,6 +42,6 @@ body:
- type: textarea
id: diagnostics
attributes:
label: Details from cc-sessions
label: Details from Paddock
description: Filled in by Report a problem. Nothing personal is included.
render: text
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Install or update instructions
url: https://github.com/barath-dev/cc-sessions#install
about: How to install cc-sessions, and how updates work.
url: https://github.com/barath-dev/paddock#install
about: How to install Paddock, and how updates work.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Suggest a feature
description: An idea that would make cc-sessions more useful.
description: An idea that would make Paddock more useful.
labels: [enhancement]
body:
- type: textarea
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Unit and end-to-end tests
run: cargo test
- name: Build
run: cargo build --release --bin cc-sessions
run: cargo build --release --bin paddock

# Install from a locally served build with the real installer, then start,
# use and stop the program the way a person would.
Expand All @@ -34,21 +34,21 @@ jobs:
case "$(uname -s)" in Darwin) os=macos ;; *) os=linux ;; esac
case "$(uname -m)" in arm64|aarch64) arch=arm64 ;; *) arch=x86_64 ;; esac
mkdir dist
cp target/release/cc-sessions "dist/cc-sessions-$os-$arch"
cp target/release/paddock "dist/paddock-$os-$arch"
(cd dist && (sha256sum * 2>/dev/null || shasum -a 256 *) > checksums.txt)
python3 -m http.server 8765 --directory dist >/dev/null 2>&1 &
sleep 1
export HOME="$RUNNER_TEMP/home" SHELL=/bin/bash
mkdir -p "$HOME/.claude/projects"
CC_SESSIONS_INSTALL_BASE=http://127.0.0.1:8765 sh install.sh --yes --command cs-ci --port 47900
PADDOCK_INSTALL_BASE=http://127.0.0.1:8765 sh install.sh --yes --command cs-ci --port 47900
export PATH="$HOME/.local/bin:$PATH"
cs-ci --version
cs-ci account list
cs-ci --no-open
curl -fsS -o /dev/null http://127.0.0.1:47900/
cs-ci stop
# A second install keeps the settings and adds nothing twice.
CC_SESSIONS_INSTALL_BASE=http://127.0.0.1:8765 sh install.sh --yes
PADDOCK_INSTALL_BASE=http://127.0.0.1:8765 sh install.sh --yes
test "$(grep -c 'aliases.sh' "$HOME/.bashrc" "$HOME/.bash_profile" 2>/dev/null | awk -F: '{ n += $2 } END { print n }')" = 1
cs-ci --version

Expand All @@ -58,18 +58,18 @@ jobs:
run: |
$arch = if ($env:PROCESSOR_ARCHITECTURE -eq 'ARM64') { 'arm64' } else { 'x86_64' }
New-Item -ItemType Directory -Force dist | Out-Null
Copy-Item target\release\cc-sessions.exe "dist\cc-sessions-windows-$arch.exe"
$hash = (Get-FileHash -Algorithm SHA256 "dist\cc-sessions-windows-$arch.exe").Hash.ToLower()
Set-Content dist\checksums.txt "$hash cc-sessions-windows-$arch.exe"
Copy-Item target\release\paddock.exe "dist\paddock-windows-$arch.exe"
$hash = (Get-FileHash -Algorithm SHA256 "dist\paddock-windows-$arch.exe").Hash.ToLower()
Set-Content dist\checksums.txt "$hash paddock-windows-$arch.exe"
$server = Start-Process python -ArgumentList '-m', 'http.server', '8765', '--directory', 'dist' -PassThru -WindowStyle Hidden
Start-Sleep 2
$env:LOCALAPPDATA = Join-Path $env:RUNNER_TEMP 'localappdata'
$env:APPDATA = Join-Path $env:RUNNER_TEMP 'appdata'
$env:CC_SESSIONS_SKIP_PATH = '1'
$env:CC_SESSIONS_INSTALL_BASE = 'http://127.0.0.1:8765'
$env:PADDOCK_SKIP_PATH = '1'
$env:PADDOCK_INSTALL_BASE = 'http://127.0.0.1:8765'
New-Item -ItemType Directory -Force $env:LOCALAPPDATA, $env:APPDATA | Out-Null
& ([scriptblock]::Create((Get-Content -Raw install.ps1))) --yes --command cs-ci --port 47900
$cs = Join-Path $env:LOCALAPPDATA 'cc-sessions\bin\cs-ci.cmd'
$cs = Join-Path $env:LOCALAPPDATA 'paddock\bin\cs-ci.cmd'
& $cs --version
& $cs account list
& $cs --no-open
Expand All @@ -96,7 +96,7 @@ jobs:
with:
node-version: 22
- run: npm install -g @anthropic-ai/claude-code
- name: What cc-sessions relies on
- name: What Paddock relies on
shell: bash
run: |
set +e
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
fail-fast: false
matrix:
include:
- { os: macos-latest, target: aarch64-apple-darwin, asset: cc-sessions-macos-arm64 }
- { os: macos-latest, target: x86_64-apple-darwin, asset: cc-sessions-macos-x86_64 }
- { os: macos-latest, target: aarch64-apple-darwin, asset: paddock-macos-arm64 }
- { os: macos-latest, target: x86_64-apple-darwin, asset: paddock-macos-x86_64 }
# Linux builds are statically linked (musl), so they run on any distribution.
- { os: ubuntu-latest, target: x86_64-unknown-linux-musl, asset: cc-sessions-linux-x86_64 }
- { os: ubuntu-24.04-arm, target: aarch64-unknown-linux-musl, asset: cc-sessions-linux-arm64 }
- { os: windows-latest, target: x86_64-pc-windows-msvc, asset: cc-sessions-windows-x86_64.exe }
- { os: windows-latest, target: aarch64-pc-windows-msvc, asset: cc-sessions-windows-arm64.exe }
- { os: ubuntu-latest, target: x86_64-unknown-linux-musl, asset: paddock-linux-x86_64 }
- { os: ubuntu-24.04-arm, target: aarch64-unknown-linux-musl, asset: paddock-linux-arm64 }
- { os: windows-latest, target: x86_64-pc-windows-msvc, asset: paddock-windows-x86_64.exe }
- { os: windows-latest, target: aarch64-pc-windows-msvc, asset: paddock-windows-arm64.exe }
steps:
- uses: actions/checkout@v4
- run: rustup target add ${{ matrix.target }}
Expand All @@ -35,10 +35,10 @@ jobs:
# No Visual C++ runtime needed on the PC that installs it.
RUSTFLAGS: ${{ runner.os == 'Windows' && '-C target-feature=+crt-static' || '' }}
run: |
cargo build --release --bin cc-sessions --target ${{ matrix.target }}
cargo build --release --bin paddock --target ${{ matrix.target }}
mkdir out
ext=""; [ "${{ runner.os }}" = "Windows" ] && ext=".exe"
cp "target/${{ matrix.target }}/release/cc-sessions$ext" "out/${{ matrix.asset }}"
cp "target/${{ matrix.target }}/release/paddock$ext" "out/${{ matrix.asset }}"
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.asset }}
Expand All @@ -54,8 +54,12 @@ jobs:
with:
path: dist
merge-multiple: true
# Installs from before the rename (cc-sessions 2.7 and older) update themselves by
# downloading cc-sessions-<system>, so each file is also published under that name.
- name: Copies under the old names
run: cd dist && for f in paddock-*; do cp "$f" "cc-sessions-${f#paddock-}"; done
- name: Checksums
run: cd dist && sha256sum cc-sessions-* > checksums.txt && cat checksums.txt
run: cd dist && sha256sum paddock-* cc-sessions-* > checksums.txt && cat checksums.txt
- name: Create release
env:
GH_TOKEN: ${{ github.token }}
Expand Down
33 changes: 20 additions & 13 deletions Cargo.lock

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

11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "cc-sessions"
version = "2.7.2"
name = "paddock"
version = "2.8.0"
edition = "2021"
license = "MIT"
description = "See, close and resume Claude Code sessions across every account on one machine."
repository = "https://github.com/barath-dev/cc-sessions"
description = "Paddock: every Claude Code and Codex session on your machine, in one place. See, close and resume them across every account."
repository = "https://github.com/barath-dev/paddock"

[[bin]]
name = "cc-sessions"
name = "paddock"
path = "src/main.rs"

# Stand-in for the real `claude` command, used only by the tests.
Expand All @@ -22,6 +22,7 @@ serde_json = "1"
memchr = "2"
tiny_http = "0.12"
getrandom = "0.3"
ruzstd = { version = "0.9.1", default-features = false, features = ["std"] }

[target.'cfg(unix)'.dependencies]
libc = "0.2"
Expand Down
Loading
Loading