fix(sync): update 'ccs update' references to 'ccs sync' across codebase

This commit is contained in:
kaitranntt committed 2025-11-18 01:19:28 -05:00
1 parent 9054d42b20
commit 31a21d13ad
10 files changed
+21 -21

No files matched your search

+1 -1
View File
@@ -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**:
+1 -1
View File
@@ -1 +1 @@
4.1.5
4.1.6
+2 -2
View File
@@ -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'
);
}
}
+2 -2
View File
@@ -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;
}
}
+6 -6
View File
@@ -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)"
+5 -5
View File
@@ -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 ""
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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('');