kaitranntt
2b35bf419f
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
2025-11-05 16:51:30 -05:00
kaitranntt
966a43f0f9
chore: release v2.4.5 with comprehensive testing and documentation updates
2025-11-05 16:10:03 -05:00
kaitranntt
c32c23e5ed
feat: add npm postinstall config creation and restructure test suite
...
Configuration Management:
- Add npm postinstall script to auto-create ~/.ccs/ directory and config files
- Create config.json with default profile mappings (glm, default)
- Create glm.settings.json template with GLM API configuration
- Ensure idempotent postinstall behavior (safe to run multiple times)
- Fix config-manager.js to handle missing config.json gracefully
Test Suite Restructure:
- Reorganize tests by installation method (native vs npm)
- Move 37 native Unix tests to tests/native/unix/
- Move Windows tests to tests/native/windows/
- Move 39 npm package tests to tests/npm/
- Move shared utilities to tests/shared/
- Add comprehensive test documentation and README
- Implement master orchestrators for backward compatibility
- Increase test coverage from 41 to 83+ tests (100% increase)
- Add mocha framework for npm tests with better assertions
New Test Commands:
- npm run test:npm (npm package tests only)
- npm run test:native (native tests only)
- npm run test:unit (unit tests only)
- npm run test:all (all tests)
Backward Compatibility:
- npm test (runs all tests)
- bash tests/edge-cases.sh (master orchestrator)
- All existing workflows unchanged
Version: 2.4.4
2025-11-05 11:26:01 -05:00
kaitranntt
007996d31a
chore: bump version to 2.4.3
...
- Fix critical Node.js DEP0190 security vulnerability in Windows npm package
- Add proper argument escaping to prevent command injection attacks
- Update all spawn() calls with platform-specific handling
- Add comprehensive changelog entry for security fix
- Maintain full cross-platform compatibility
Security fix resolves deprecation warning and secures Windows installations.
2025-11-04 23:11:47 -05:00
kaitranntt
80a5200cae
fix: terminal termination & simplified detection (v2.4.1)
...
Critical Fixes:
- Fixed PowerShell terminal closing when using `irm | iex` installation
* Changed `exit 1` to `return` in install.ps1 (line 229)
* Terminal now stays open on errors, showing full error messages
* Affects: Windows PowerShell 5.1+, PowerShell 7+
- Fixed installation download path
* Changed `/ccs.ps1` to `/lib/ccs.ps1` in install.ps1 (line 223)
* Resolves standalone installation failures from GitHub
- Simplified Claude CLI detection logic across all platforms
* Removed complex validation that failed with npm-installed Claude
* Now trusts system PATH (standard case for users)
* Falls back to CCS_CLAUDE_PATH for custom installations
* Fixes: `where.exe claude` shows installed but CCS reports "not found"
Improvements:
- Simplified error messages (removed lengthy search location details)
- Reduced codebase by 332 lines (454 deleted, 122 added)
- npm package size reduced: 17.2 KB → 15.9 KB (7.6% smaller)
Cross-Platform Parity:
- bash (lib/ccs): Simplified detection, removed validate_claude_cli
- PowerShell (lib/ccs.ps1): Simplified detection, removed Test-ClaudeCli
- Node.js (bin/*.js): Simplified detection, removed validateClaudeCli
- All versions now use identical trust-the-PATH approach
Files Modified:
- installers/install.ps1: exit→return, download path fix
- lib/ccs.ps1: simplified detection (165 lines removed)
- lib/ccs: simplified detection (172 lines removed)
- bin/claude-detector.js: simplified detection (86 lines removed)
- bin/ccs.js: removed validation calls (31 lines removed)
- .github/workflows/publish-npm.yml: fixed package name
- CHANGELOG.md: comprehensive v2.4.1 release notes
- VERSION, package.json: bumped to 2.4.1
Testing: bash validated, npm syntax checked, manual Windows testing recommended
2025-11-04 21:54:05 -05:00
kaitranntt
4110e1bfcb
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
2025-11-04 21:24:37 -05:00