cc-orchestrator 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -120,7 +120,9 @@ async function install(installDir) {
120
120
  console.log('─'.repeat(50));
121
121
  if (fs.existsSync(path.join(installDir, '.git'))) {
122
122
  console.log('\n[1/3] Fetching latest code...\n');
123
- exec('git pull origin main', { cwd: installDir });
123
+ // Use fetch + reset to handle local changes (e.g., package-lock.json from npm install)
124
+ exec('git fetch origin main', { cwd: installDir });
125
+ exec('git reset --hard origin/main', { cwd: installDir });
124
126
  } else {
125
127
  console.log('\n[1/3] Cloning repository...\n');
126
128
  if (fs.existsSync(installDir)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-orchestrator",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "CLI to install CC Orchestrator - Multi-model orchestration for Claude Code",
5
5
  "bin": {
6
6
  "cc-orchestrator": "./index.js"