chore: claude-code update

This commit is contained in:
Harald Hoyer 2026-05-01 08:02:14 +02:00
parent 054ed9637d
commit ad7bd6b2a5
3 changed files with 94 additions and 349 deletions

View file

@ -1,12 +1,10 @@
#!/usr/bin/env nix
#!nix shell --ignore-environment .#cacert .#coreutils .#curl .#bash --command bash
#!/usr/bin/env nix-shell
#!nix-shell --pure --keep NIX_PATH -i bash --packages nodejs nix-update git cacert
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
version=$(npm view @anthropic-ai/claude-code version)
BASE_URL="https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases"
VERSION="${1:-$(curl -fsSL "$BASE_URL/latest")}"
curl -fsSL "$BASE_URL/$VERSION/manifest.json" --output manifest.json
# Update version and hashes
AUTHORIZED=1 NIXPKGS_ALLOW_UNFREE=1 nix-update claude-code --version="$version" --generate-lockfile
nix-update vscode-extensions.anthropic.claude-code --use-update-script --version "$version"