mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 18:15:23 +00:00
chore: release v2.4.6 with improved npm compatibility and fixes
- fix color detection for cross-platform TTY compatibility - enhance help command with npm-specific content and npx examples - remove --install/--uninstall flags pending .claude/ integration testing - update version across all files and documentation - preserve implementation code for future release readiness
This commit is contained in:
1 parent
966a43f0f9
commit
2b35bf419f
17 files changed
+258
-165
No files matched your search
@@ -2,7 +2,7 @@
|
||||
set -euo pipefail
|
||||
|
||||
# Version (updated by scripts/bump-version.sh)
|
||||
CCS_VERSION="2.4.5"
|
||||
CCS_VERSION="2.4.6"
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
readonly CONFIG_FILE="${CCS_CONFIG:-$HOME/.ccs/config.json}"
|
||||
|
||||
@@ -52,9 +52,7 @@ show_help() {
|
||||
echo -e "${CYAN}Flags:${RESET}"
|
||||
echo -e " ${YELLOW}-h, --help${RESET} Show this help message"
|
||||
echo -e " ${YELLOW}-v, --version${RESET} Show version and installation info"
|
||||
echo -e " ${YELLOW}--install${RESET} Install CCS commands to Claude CLI"
|
||||
echo -e " ${YELLOW}--uninstall${RESET} Remove CCS commands from Claude CLI"
|
||||
echo ""
|
||||
echo ""
|
||||
echo -e "${CYAN}Configuration:${RESET}"
|
||||
echo -e " Config File: ~/.ccs/config.json"
|
||||
echo -e " Settings: ~/.ccs/*.settings.json"
|
||||
@@ -70,10 +68,7 @@ show_help() {
|
||||
echo -e " # Use GLM with verbose output"
|
||||
echo -e " ${YELLOW}ccs glm${RESET} --verbose \"Debug error\""
|
||||
echo ""
|
||||
echo -e " # Install CCS task delegation"
|
||||
echo -e " ${YELLOW}ccs${RESET} --install"
|
||||
echo ""
|
||||
echo -e "${YELLOW}Uninstall:${RESET}"
|
||||
echo -e "${YELLOW}Uninstall:${RESET}"
|
||||
echo -e " macOS/Linux: curl -fsSL ccs.kaitran.ca/uninstall | bash"
|
||||
echo -e " Windows: irm ccs.kaitran.ca/uninstall | iex"
|
||||
echo -e " npm: npm uninstall -g @kaitranntt/ccs"
|
||||
@@ -122,8 +117,10 @@ Solutions:
|
||||
Restart your terminal after installation."
|
||||
}
|
||||
|
||||
# Installation function for commands and skills
|
||||
install_commands_and_skills() {
|
||||
# WIP: .claude/ integration testing incomplete
|
||||
# Feature disabled until testing complete
|
||||
# install_commands_and_skills() {
|
||||
: <<'COMMENTED_OUT'
|
||||
# Try both possible locations for .claude directory
|
||||
local source_dir=""
|
||||
local possible_dirs=(
|
||||
@@ -227,10 +224,13 @@ Solution:
|
||||
echo ""
|
||||
echo "You can now use the /ccs command in Claude CLI for task delegation."
|
||||
echo "Example: /ccs glm /plan 'add user authentication'"
|
||||
}
|
||||
COMMENTED_OUT
|
||||
# }
|
||||
|
||||
# Uninstallation function for commands and skills
|
||||
uninstall_commands_and_skills() {
|
||||
# WIP: .claude/ integration testing incomplete
|
||||
# Feature disabled until testing complete
|
||||
# uninstall_commands_and_skills() {
|
||||
: <<'COMMENTED_OUT'
|
||||
local target_dir="$HOME/.claude"
|
||||
local removed_count=0
|
||||
local not_found_count=0
|
||||
@@ -307,7 +307,8 @@ uninstall_commands_and_skills() {
|
||||
echo ""
|
||||
echo "The /ccs command is no longer available in Claude CLI."
|
||||
echo "To reinstall: ccs --install"
|
||||
}
|
||||
COMMENTED_OUT
|
||||
# }
|
||||
|
||||
show_version() {
|
||||
echo -e "${BOLD}CCS (Claude Code Switch) v${CCS_VERSION}${RESET}"
|
||||
@@ -344,14 +345,28 @@ fi
|
||||
|
||||
# Special case: install command (check BEFORE profile detection)
|
||||
if [[ $# -gt 0 ]] && [[ "${1}" == "--install" ]]; then
|
||||
install_commands_and_skills
|
||||
exit $?
|
||||
echo ""
|
||||
echo "Feature not available"
|
||||
echo ""
|
||||
echo "The --install flag is currently under development."
|
||||
echo ".claude/ integration testing is not complete."
|
||||
echo ""
|
||||
echo "For updates: https://github.com/kaitranntt/ccs/issues"
|
||||
echo ""
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Special case: uninstall command (check BEFORE profile detection)
|
||||
if [[ $# -gt 0 ]] && [[ "${1}" == "--uninstall" ]]; then
|
||||
uninstall_commands_and_skills
|
||||
exit $?
|
||||
echo ""
|
||||
echo "Feature not available"
|
||||
echo ""
|
||||
echo "The --uninstall flag is currently under development."
|
||||
echo ".claude/ integration testing is not complete."
|
||||
echo ""
|
||||
echo "For updates: https://github.com/kaitranntt/ccs/issues"
|
||||
echo ""
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Smart profile detection: if first arg starts with '-', it's a flag not a profile
|
||||
|
||||
+19
-10
@@ -104,9 +104,7 @@ function Show-Help {
|
||||
Write-ColorLine "Flags:" "Cyan"
|
||||
Write-ColorLine " -h, --help Show this help message" "Yellow"
|
||||
Write-ColorLine " -v, --version Show version and installation info" "Yellow"
|
||||
Write-ColorLine " --install Install CCS commands to Claude CLI" "Yellow"
|
||||
Write-ColorLine " --uninstall Remove CCS commands from Claude CLI" "Yellow"
|
||||
Write-Host ""
|
||||
Write-Host ""
|
||||
Write-ColorLine "Configuration:" "Cyan"
|
||||
Write-Host " Config File: ~/.ccs/config.json"
|
||||
Write-Host " Settings: ~/.ccs/*.settings.json"
|
||||
@@ -122,10 +120,7 @@ function Show-Help {
|
||||
Write-Host " # Use GLM with verbose output"
|
||||
Write-ColorLine " ccs glm --verbose 'Debug error'" "Yellow"
|
||||
Write-Host ""
|
||||
Write-Host " # Install CCS task delegation"
|
||||
Write-ColorLine " ccs --install" "Yellow"
|
||||
Write-Host ""
|
||||
Write-ColorLine "Uninstall:" "Cyan"
|
||||
Write-ColorLine "Uninstall:" "Cyan"
|
||||
Write-Host " macOS/Linux: curl -fsSL ccs.kaitran.ca/uninstall | bash"
|
||||
Write-Host " Windows: irm ccs.kaitran.ca/uninstall | iex"
|
||||
Write-Host " npm: npm uninstall -g @kaitranntt/ccs"
|
||||
@@ -139,7 +134,7 @@ function Show-Help {
|
||||
}
|
||||
|
||||
# Version (updated by scripts/bump-version.sh)
|
||||
$CcsVersion = "2.4.5"
|
||||
$CcsVersion = "2.4.6"
|
||||
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
$ConfigFile = if ($env:CCS_CONFIG) { $env:CCS_CONFIG } else { "$env:USERPROFILE\.ccs\config.json" }
|
||||
|
||||
@@ -230,13 +225,27 @@ if ($Help) {
|
||||
|
||||
# Special case: install command (check BEFORE profile detection)
|
||||
if ($FirstArg -eq "--install") {
|
||||
Write-Host "Installation not implemented in this test version" -ForegroundColor Yellow
|
||||
Write-Host ""
|
||||
Write-Host "Feature not available" -ForegroundColor Yellow
|
||||
Write-Host ""
|
||||
Write-Host "The --install flag is currently under development."
|
||||
Write-Host ".claude/ integration testing is not complete."
|
||||
Write-Host ""
|
||||
Write-Host "For updates: https://github.com/kaitranntt/ccs/issues"
|
||||
Write-Host ""
|
||||
exit 0
|
||||
}
|
||||
|
||||
# Special case: uninstall command (check BEFORE profile detection)
|
||||
if ($FirstArg -eq "--uninstall") {
|
||||
Write-Host "Uninstallation not implemented in this test version" -ForegroundColor Yellow
|
||||
Write-Host ""
|
||||
Write-Host "Feature not available" -ForegroundColor Yellow
|
||||
Write-Host ""
|
||||
Write-Host "The --uninstall flag is currently under development."
|
||||
Write-Host ".claude/ integration testing is not complete."
|
||||
Write-Host ""
|
||||
Write-Host "For updates: https://github.com/kaitranntt/ccs/issues"
|
||||
Write-Host ""
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user