chore: bump version to 2.4.0

- PowerShell 7+ syntax fixes (ampersand, pipe chars, regex)
- Node.js standalone implementation (no shell spawning)
- Add modular architecture (helpers, claude-detector, config-manager)
- Comprehensive test suite with 95% coverage
- Enhanced cross-platform compatibility and error handling
This commit is contained in:
kaitranntt
2025-11-04 21:24:37 -05:00
parent f21b3a6de1
commit 4110e1bfcb
12 changed files with 1665 additions and 29 deletions
+27 -10
View File
@@ -58,10 +58,11 @@ echo "New version: $NEW_VERSION"
echo ""
echo "This will update hardcoded versions in:"
echo " 1. VERSION file"
echo " 2. ccs (bash executable)"
echo " 3. ccs.ps1 (PowerShell executable)"
echo " 4. installers/install.sh"
echo " 5. installers/install.ps1"
echo " 2. lib/ccs (bash executable)"
echo " 3. lib/ccs.ps1 (PowerShell executable)"
echo " 4. package.json (via sync-version.js)"
echo " 5. installers/install.sh"
echo " 6. installers/install.ps1"
echo ""
read -p "Continue? (y/N) " -n 1 -r
echo
@@ -76,23 +77,23 @@ echo "$NEW_VERSION" > "$VERSION_FILE"
echo "✓ Updated VERSION file to $NEW_VERSION"
# Update ccs (bash executable)
CCS_BASH="$CCS_DIR/ccs"
CCS_BASH="$CCS_DIR/lib/ccs"
if [[ -f "$CCS_BASH" ]]; then
sed -i.bak "s/^CCS_VERSION=\".*\"/CCS_VERSION=\"$NEW_VERSION\"/" "$CCS_BASH"
rm -f "$CCS_BASH.bak"
echo "✓ Updated ccs (bash executable)"
echo "✓ Updated lib/ccs (bash executable)"
else
echo "⚠ ccs not found, skipping"
echo "⚠ lib/ccs not found, skipping"
fi
# Update ccs.ps1 (PowerShell executable)
CCS_PS1="$CCS_DIR/ccs.ps1"
CCS_PS1="$CCS_DIR/lib/ccs.ps1"
if [[ -f "$CCS_PS1" ]]; then
sed -i.bak "s/^\$CcsVersion = \".*\"/\$CcsVersion = \"$NEW_VERSION\"/" "$CCS_PS1"
rm -f "$CCS_PS1.bak"
echo "✓ Updated ccs.ps1 (PowerShell executable)"
echo "✓ Updated lib/ccs.ps1 (PowerShell executable)"
else
echo "⚠ ccs.ps1 not found, skipping"
echo "⚠ lib/ccs.ps1 not found, skipping"
fi
# Update installers/install.sh
@@ -115,5 +116,21 @@ else
echo "⚠ installers/install.ps1 not found, skipping"
fi
# Sync version to package.json
echo "Syncing version to package.json..."
if node "$SCRIPT_DIR/sync-version.js"; then
echo "✓ Synced version to package.json"
else
echo "✗ Error: Failed to sync version to package.json"
exit 1
fi
echo ""
echo "✓ Version bumped to $NEW_VERSION"
echo ""
echo "Next steps:"
echo " 1. Review changes: git diff"
echo " 2. Commit: git add VERSION package.json lib/ccs lib/ccs.ps1 installers/install.sh installers/install.ps1"
echo " 3. Commit: git commit -m \"chore: bump version to $NEW_VERSION\""
echo " 4. Tag: git tag v$NEW_VERSION"
echo " 5. Push: git push origin main && git push origin v$NEW_VERSION"