@jojonax/codex-copilot 1.3.2 → 1.3.4

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/bin/cli.js +16 -3
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -8,10 +8,12 @@
8
8
  * codex-copilot run # Start automated development loop
9
9
  * codex-copilot status # View current progress
10
10
  * codex-copilot reset # Reset state (start over)
11
+ * codex-copilot update # Update to latest version
11
12
  */
12
13
 
13
14
  import { resolve, dirname } from 'path';
14
15
  import { existsSync, readFileSync } from 'fs';
16
+ import { execSync } from 'child_process';
15
17
  import { fileURLToPath } from 'url';
16
18
 
17
19
  import { init } from '../src/commands/init.js';
@@ -59,11 +61,21 @@ async function main() {
59
61
  process.exit(1);
60
62
  }
61
63
  await status(projectDir);
62
- break;
64
+ process.exit(0);
63
65
 
64
66
  case 'reset':
65
67
  await reset(projectDir);
66
- break;
68
+ process.exit(0);
69
+
70
+ case 'update':
71
+ log.info('Updating to latest version...');
72
+ try {
73
+ execSync('npm install -g @jojonax/codex-copilot@latest --force', { stdio: 'inherit' });
74
+ log.info('✅ Update complete!');
75
+ } catch {
76
+ log.error('Update failed. Try manually: npm install -g @jojonax/codex-copilot@latest --force');
77
+ }
78
+ process.exit(0);
67
79
 
68
80
  default:
69
81
  console.log(' Usage: codex-copilot <command>');
@@ -73,6 +85,7 @@ async function main() {
73
85
  console.log(' run Start automated development loop');
74
86
  console.log(' status View current task progress');
75
87
  console.log(' reset Reset state and start over');
88
+ console.log(' update Update to latest version');
76
89
  console.log('');
77
90
  console.log(' Workflow:');
78
91
  console.log(' 1. cd into your project directory');
@@ -84,7 +97,7 @@ async function main() {
84
97
  console.log('');
85
98
  console.log(' \x1b[36mⓘ This is a help page. Exit and run the commands above directly in your terminal.\x1b[0m');
86
99
  console.log('');
87
- break;
100
+ process.exit(0);
88
101
  }
89
102
  } catch (err) {
90
103
  log.error(`Execution failed: ${err.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jojonax/codex-copilot",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "PRD-driven automated development orchestrator for CodeX / Cursor",
5
5
  "bin": {
6
6
  "codex-copilot": "./bin/cli.js"