From 31a21d13ad63c98d38fcc66a87ea442a05f06d09 Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Mon, 17 Nov 2025 22:59:17 -0500 Subject: [PATCH] fix(sync): update 'ccs update' references to 'ccs sync' across codebase --- README.md | 2 +- VERSION | 2 +- bin/management/doctor.js | 4 ++-- bin/utils/claude-symlink-manager.js | 4 ++-- installers/install.ps1 | 12 ++++++------ installers/install.sh | 10 +++++----- lib/ccs | 2 +- lib/ccs.ps1 | 2 +- package.json | 2 +- scripts/postinstall.js | 2 +- 10 files changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index ff9ae177..4a58bc6a 100644 --- a/README.md +++ b/README.md @@ -753,7 +753,7 @@ Status: Installation healthy If you modify CCS items or need to re-install symlinks: ```bash -ccs update +ccs sync ``` **What it does**: diff --git a/VERSION b/VERSION index b1cbc1fc..561ad334 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.1.5 +4.1.6 diff --git a/bin/management/doctor.js b/bin/management/doctor.js index 60af017b..735dd924 100644 --- a/bin/management/doctor.js +++ b/bin/management/doctor.js @@ -366,7 +366,7 @@ class Doctor { 'CCS Symlinks', 'warning', health.issues.join(', '), - 'Run: ccs update' + 'Run: ccs sync' ); } } catch (e) { @@ -375,7 +375,7 @@ class Doctor { 'CCS Symlinks', 'warning', 'Could not check CCS symlinks: ' + e.message, - 'Run: ccs update' + 'Run: ccs sync' ); } } diff --git a/bin/utils/claude-symlink-manager.js b/bin/utils/claude-symlink-manager.js index 933d2bad..103dbb49 100644 --- a/bin/utils/claude-symlink-manager.js +++ b/bin/utils/claude-symlink-manager.js @@ -214,10 +214,10 @@ class ClaudeSymlinkManager { // Check target if (!fs.existsSync(targetPath)) { - issues.push(`Not installed: ${item.target} (run 'ccs update' to install)`); + issues.push(`Not installed: ${item.target} (run 'ccs sync' to install)`); healthy = false; } else if (!this._isOurSymlink(targetPath, sourcePath)) { - issues.push(`Not a CCS symlink: ${item.target} (run 'ccs update' to fix)`); + issues.push(`Not a CCS symlink: ${item.target} (run 'ccs sync' to fix)`); healthy = false; } } diff --git a/installers/install.ps1 b/installers/install.ps1 index 7d189b37..30364486 100644 --- a/installers/install.ps1 +++ b/installers/install.ps1 @@ -31,7 +31,7 @@ $InstallMethod = if ($ScriptDir -and ((Test-Path "$ScriptDir\lib\ccs.ps1") -or ( # IMPORTANT: Update this version when releasing new versions! # This hardcoded version is used for standalone installations (irm | iex) # For git installations, VERSION file is read if available -$CcsVersion = "4.1.5" +$CcsVersion = "4.1.6" # Try to read VERSION file for git installations if ($ScriptDir) { @@ -664,27 +664,27 @@ if (Get-Command node -ErrorAction SilentlyContinue) { manager.install(); } catch (err) { console.log('[!] CCS item installation warning: ' + err.message); - console.log(' Run "ccs update" to retry'); + console.log(' Run "ccs sync" to retry'); } "@ node -e $scriptBlock 2>$null if (-not $?) { - Write-Host "[!] CCS item installation skipped (run 'ccs update' later)" + Write-Host "[!] CCS item installation skipped (run 'ccs sync' later)" } } catch { Write-Host "[!] CCS item installation failed: $($_.Exception.Message)" - Write-Host " Run 'ccs update' after installation to complete setup" + Write-Host " Run 'ccs sync' after installation to complete setup" } } else { Write-Host "[!] claude-symlink-manager.js not found, skipping" - Write-Host " Run 'ccs update' after installation to complete setup" + Write-Host " Run 'ccs sync' after installation to complete setup" } } else { Write-Host "[!] .claude/ folder not found, skipping CCS item installation" } } else { Write-Host "[!] Node.js not found, skipping CCS item installation" - Write-Host " Install Node.js and run 'ccs update' to complete setup" + Write-Host " Install Node.js and run 'ccs sync' to complete setup" } Write-Host "" Write-Host "[i] Note: Windows symlink support requires Developer Mode (v4.2 will add fallback)" diff --git a/installers/install.sh b/installers/install.sh index ec5acc28..edc1a055 100755 --- a/installers/install.sh +++ b/installers/install.sh @@ -32,7 +32,7 @@ fi # IMPORTANT: Update this version when releasing new versions! # This hardcoded version is used for standalone installations (curl | bash) # For git installations, VERSION file is read if available -CCS_VERSION="4.1.5" +CCS_VERSION="4.1.6" # Try to read VERSION file for git installations if [[ -f "$SCRIPT_DIR/VERSION" ]]; then @@ -800,19 +800,19 @@ if command -v node &> /dev/null; then manager.install(); } catch (err) { console.log('[!] CCS item installation warning: ' + err.message); - console.log(' Run \"ccs update\" to retry'); + console.log(' Run \"ccs sync\" to retry'); } - " 2>/dev/null || echo "[!] CCS item installation skipped (run 'ccs update' later)" + " 2>/dev/null || echo "[!] CCS item installation skipped (run 'ccs sync' later)" else echo "[!] claude-symlink-manager.js not found, skipping" - echo " Run 'ccs update' after installation to complete setup" + echo " Run 'ccs sync' after installation to complete setup" fi else echo "[!] .claude/ folder not found, skipping CCS item installation" fi else echo "[!] Node.js not found, skipping CCS item installation" - echo " Install Node.js and run 'ccs update' to complete setup" + echo " Install Node.js and run 'ccs sync' to complete setup" fi echo "" diff --git a/lib/ccs b/lib/ccs index 5b5de655..9ad95b11 100755 --- a/lib/ccs +++ b/lib/ccs @@ -2,7 +2,7 @@ set -euo pipefail # Version (updated by scripts/bump-version.sh) -CCS_VERSION="4.1.5" +CCS_VERSION="4.1.6" SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" readonly CONFIG_FILE="${CCS_CONFIG:-$HOME/.ccs/config.json}" readonly PROFILES_JSON="$HOME/.ccs/profiles.json" diff --git a/lib/ccs.ps1 b/lib/ccs.ps1 index 75a62b87..dfaeb3d3 100644 --- a/lib/ccs.ps1 +++ b/lib/ccs.ps1 @@ -12,7 +12,7 @@ param( $ErrorActionPreference = "Stop" # Version (updated by scripts/bump-version.sh) -$CcsVersion = "4.1.5" +$CcsVersion = "4.1.6" $ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path $ConfigFile = if ($env:CCS_CONFIG) { $env:CCS_CONFIG } else { "$env:USERPROFILE\.ccs\config.json" } $ProfilesJson = "$env:USERPROFILE\.ccs\profiles.json" diff --git a/package.json b/package.json index 3a76e072..05842b3c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kaitranntt/ccs", - "version": "4.1.5", + "version": "4.1.6", "description": "Claude Code Switch - Instant profile switching between Claude Sonnet 4.5 and GLM 4.6", "keywords": [ "cli", diff --git a/scripts/postinstall.js b/scripts/postinstall.js index 2fd84cca..ccf1bb2a 100755 --- a/scripts/postinstall.js +++ b/scripts/postinstall.js @@ -121,7 +121,7 @@ function createConfigFiles() { claudeSymlinkManager.install(); } catch (err) { console.warn('[!] CCS item installation warning:', err.message); - console.warn(' Run "ccs update" to retry'); + console.warn(' Run "ccs sync" to retry'); } console.log('');