@jojonax/codex-copilot 1.3.5 → 1.3.6
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.
- package/bin/cli.js +9 -2
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -98,8 +98,15 @@ async function main() {
|
|
|
98
98
|
case 'update':
|
|
99
99
|
log.info('Updating to latest version...');
|
|
100
100
|
try {
|
|
101
|
-
execSync('npm install -g @jojonax/codex-copilot@latest --force', {
|
|
102
|
-
|
|
101
|
+
execSync('npm install -g @jojonax/codex-copilot@latest --force', {
|
|
102
|
+
encoding: 'utf-8',
|
|
103
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
104
|
+
});
|
|
105
|
+
const newVersion = execSync('npm view @jojonax/codex-copilot version', {
|
|
106
|
+
encoding: 'utf-8',
|
|
107
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
108
|
+
}).trim();
|
|
109
|
+
log.info(`✅ Updated to v${newVersion}`);
|
|
103
110
|
} catch {
|
|
104
111
|
log.error('Update failed. Try manually: npm install -g @jojonax/codex-copilot@latest --force');
|
|
105
112
|
}
|