mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 00:22:34 +00:00
* fix(postinstall): make ora dependency optional to fix missing ~/.ccs/.claude/ directory The root cause was that `ora` module was not available during `npm install` when the postinstall script runs, causing both: - .claude/ directory copy to fail (ClaudeDirInstaller) - Symlink creation to fail (ClaudeSymlinkManager) This resulted in the ~/.ccs/.claude/ directory not being created. Changes: - Made ora import optional in ClaudeDirInstaller - Made ora import optional in ClaudeSymlinkManager - Both classes now gracefully fallback to console.log when ora is unavailable - Postinstall now successfully creates ~/.ccs/.claude/ and symlinks Tested: Clean install now properly creates all directories and symlinks * chore: bump version to 4.3.7 Version 4.3.7 - Postinstall Fix Release Changes: - Fixed missing ~/.ccs/.claude/ directory during npm install - Made ora dependency optional in installer utilities - Added CHANGELOG entry documenting the fix Files updated: - VERSION: 4.3.6 -> 4.3.7 - package.json: version updated - lib/ccs: version string updated - lib/ccs.ps1: version string updated - installers/install.sh: version string updated - installers/install.ps1: version string updated - CHANGELOG.md: added 4.3.7 release notes * fix: handle ora v9 ES module compatibility ora v9.0.0 is now an ES module, which requires using .default when importing with CommonJS require(). This was causing "ora is not a function" errors in doctor.js and installer utilities. Changes: - Updated ora import to use oraModule.default || oraModule - Added fallback spinner implementation for when ora is unavailable - Ensures compatibility with both ES and CommonJS module systems - Fixes ccs doctor command and postinstall script Tested: - ccs doctor now works correctly with spinners - postinstall successfully creates ~/.ccs/.claude/ and symlinks - Fallback console.log works when ora is unavailable * chore: update package-lock.json * chore: bump version to 4.3.8 Version 4.3.8 - ora v9 Compatibility Release Changes: - Fixed ora v9 ES module compatibility issues - Updated CHANGELOG with 4.3.8 release notes Files updated: - VERSION: 4.3.7 -> 4.3.8 - package.json: version updated - lib/ccs: version string updated - lib/ccs.ps1: version string updated - installers/install.sh: version string updated - installers/install.ps1: version string updated - CHANGELOG.md: added 4.3.8 release notes
68 lines
1.5 KiB
JSON
68 lines
1.5 KiB
JSON
{
|
|
"name": "@kaitranntt/ccs",
|
|
"version": "4.3.8",
|
|
"description": "Claude Code Switch - Instant profile switching between Claude Sonnet 4.5 and GLM 4.6",
|
|
"keywords": [
|
|
"cli",
|
|
"claude",
|
|
"glm",
|
|
"ai",
|
|
"profile",
|
|
"switch"
|
|
],
|
|
"homepage": "https://github.com/kaitranntt/ccs",
|
|
"bugs": {
|
|
"url": "https://github.com/kaitranntt/ccs/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/kaitranntt/ccs.git"
|
|
},
|
|
"license": "MIT",
|
|
"author": {
|
|
"name": "Tam Nhu Tran (Kai)",
|
|
"email": "kaitranntt@users.noreply.github.com"
|
|
},
|
|
"bin": {
|
|
"ccs": "bin/ccs.js"
|
|
},
|
|
"files": [
|
|
"bin/",
|
|
"lib/",
|
|
"scripts/",
|
|
"config/",
|
|
".claude/",
|
|
"VERSION",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"engines": {
|
|
"node": ">=14.0.0"
|
|
},
|
|
"os": [
|
|
"darwin",
|
|
"linux",
|
|
"win32"
|
|
],
|
|
"preferGlobal": true,
|
|
"scripts": {
|
|
"test": "npm run test:all",
|
|
"test:all": "npm run test:unit && npm run test:npm",
|
|
"test:unit": "npx mocha tests/shared/unit/**/*.test.js --timeout 5000",
|
|
"test:npm": "npx mocha tests/npm/**/*.test.js --timeout 10000",
|
|
"test:native": "bash tests/native/unix/edge-cases.sh",
|
|
"test:edge-cases": "bash tests/edge-cases.sh",
|
|
"prepublishOnly": "node scripts/sync-version.js",
|
|
"prepack": "node scripts/sync-version.js",
|
|
"prepare": "node scripts/check-executables.js",
|
|
"postinstall": "node scripts/postinstall.js"
|
|
},
|
|
"dependencies": {
|
|
"cli-table3": "^0.6.5",
|
|
"ora": "^9.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"mocha": "^11.7.5"
|
|
}
|
|
}
|