antigravity-ide 3.5.33 → 3.5.34

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/cli/index.js +24 -1
  2. package/package.json +1 -1
package/cli/index.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  /**
4
4
  * Google Antigravity CLI
@@ -20,4 +20,27 @@ program
20
20
  await createProject(projectName, options);
21
21
  });
22
22
 
23
+ program
24
+ .command('update')
25
+ .description('Update Google Antigravity to the latest version')
26
+ .action(() => {
27
+ const ora = require('ora');
28
+ const chalk = require('chalk');
29
+ const { exec } = require('child_process');
30
+
31
+ const spinner = ora('Checking for latest version and updating...').start();
32
+
33
+ // Use npm install -g to update the package itself
34
+ exec('npm install -g antigravity-ide@latest', (error, stdout, stderr) => {
35
+ if (error) {
36
+ spinner.fail(`Update failed: ${error.message}`);
37
+ console.error(chalk.red(stderr));
38
+ return;
39
+ }
40
+
41
+ spinner.succeed('Google Antigravity has been updated to the latest version!');
42
+ console.log(chalk.gray('You may also need to run "antigravity-update" to sync global skills.'));
43
+ });
44
+ });
45
+
23
46
  program.parse(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antigravity-ide",
3
- "version": "3.5.33",
3
+ "version": "3.5.34",
4
4
  "description": "The Ultimate AI Agent Brain - Rules, Skills, and Workflows",
5
5
  "main": "cli/index.js",
6
6
  "files": [