antigravity-updater 1.0.3__tar.gz

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 (177) hide show
  1. antigravity_updater-1.0.3/.gitignore +11 -0
  2. antigravity_updater-1.0.3/LICENSE +49 -0
  3. antigravity_updater-1.0.3/PKG-INFO +42 -0
  4. antigravity_updater-1.0.3/README.md +20 -0
  5. antigravity_updater-1.0.3/pyproject.toml +49 -0
  6. antigravity_updater-1.0.3/src/antigravity_updater/__init__.py +53 -0
  7. antigravity_updater-1.0.3/src/antigravity_updater/__main__.py +3 -0
  8. antigravity_updater-1.0.3/src/antigravity_updater/_version.py +2 -0
  9. antigravity_updater-1.0.3/src/antigravity_updater/app/LICENSE +49 -0
  10. antigravity_updater-1.0.3/src/antigravity_updater/app/bin/cli.js +386 -0
  11. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/.package-lock.json +284 -0
  12. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/core/CHANGELOG.md +249 -0
  13. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/core/LICENSE +9 -0
  14. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/core/README.md +22 -0
  15. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/core/dist/index.cjs +15 -0
  16. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/core/dist/index.cjs.map +1 -0
  17. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/core/dist/index.d.cts +209 -0
  18. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/core/dist/index.d.mts +209 -0
  19. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/core/dist/index.d.ts +209 -0
  20. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/core/dist/index.mjs +15 -0
  21. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/core/dist/index.mjs.map +1 -0
  22. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/core/package.json +62 -0
  23. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/prompts/CHANGELOG.md +374 -0
  24. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/prompts/LICENSE +9 -0
  25. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/prompts/README.md +191 -0
  26. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/prompts/dist/index.cjs +80 -0
  27. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/prompts/dist/index.cjs.map +1 -0
  28. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/prompts/dist/index.d.cts +151 -0
  29. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/prompts/dist/index.d.mts +151 -0
  30. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/prompts/dist/index.d.ts +151 -0
  31. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/prompts/dist/index.mjs +80 -0
  32. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/prompts/dist/index.mjs.map +1 -0
  33. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/@clack/prompts/package.json +61 -0
  34. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/ansi-regex/index.d.ts +33 -0
  35. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/ansi-regex/index.js +29 -0
  36. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/ansi-regex/license +9 -0
  37. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/ansi-regex/package.json +78 -0
  38. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/ansi-regex/readme.md +74 -0
  39. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/chalk/license +9 -0
  40. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/chalk/package.json +83 -0
  41. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/chalk/readme.md +297 -0
  42. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/chalk/source/index.d.ts +325 -0
  43. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/chalk/source/index.js +225 -0
  44. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/chalk/source/utilities.js +33 -0
  45. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
  46. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
  47. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
  48. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
  49. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
  50. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/chalk/source/vendor/supports-color/index.js +190 -0
  51. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/cli-cursor/index.d.ts +47 -0
  52. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/cli-cursor/index.js +39 -0
  53. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/cli-cursor/license +9 -0
  54. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/cli-cursor/package.json +56 -0
  55. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/cli-cursor/readme.md +39 -0
  56. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/cli-spinners/index.d.ts +128 -0
  57. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/cli-spinners/index.js +15 -0
  58. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/cli-spinners/license +9 -0
  59. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/cli-spinners/package.json +50 -0
  60. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/cli-spinners/readme.md +54 -0
  61. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/cli-spinners/spinners.json +1622 -0
  62. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  63. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/emoji-regex/README.md +107 -0
  64. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/emoji-regex/index.d.ts +3 -0
  65. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/emoji-regex/index.js +4 -0
  66. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/emoji-regex/index.mjs +4 -0
  67. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/emoji-regex/package.json +45 -0
  68. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/get-east-asian-width/index.d.ts +60 -0
  69. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/get-east-asian-width/index.js +35 -0
  70. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/get-east-asian-width/license +9 -0
  71. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/get-east-asian-width/lookup-data.js +21 -0
  72. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/get-east-asian-width/lookup.js +138 -0
  73. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/get-east-asian-width/package.json +71 -0
  74. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/get-east-asian-width/readme.md +65 -0
  75. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/get-east-asian-width/utilities.js +24 -0
  76. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/is-interactive/index.d.ts +25 -0
  77. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/is-interactive/index.js +7 -0
  78. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/is-interactive/license +9 -0
  79. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/is-interactive/package.json +41 -0
  80. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/is-interactive/readme.md +52 -0
  81. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/is-unicode-supported/index.d.ts +12 -0
  82. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/is-unicode-supported/index.js +21 -0
  83. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/is-unicode-supported/license +9 -0
  84. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/is-unicode-supported/package.json +47 -0
  85. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/is-unicode-supported/readme.md +35 -0
  86. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/log-symbols/browser.js +8 -0
  87. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/log-symbols/index.d.ts +22 -0
  88. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/log-symbols/index.js +20 -0
  89. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/log-symbols/license +9 -0
  90. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/log-symbols/node_modules/is-unicode-supported/index.d.ts +12 -0
  91. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/log-symbols/node_modules/is-unicode-supported/index.js +17 -0
  92. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/log-symbols/node_modules/is-unicode-supported/license +9 -0
  93. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/log-symbols/node_modules/is-unicode-supported/package.json +43 -0
  94. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/log-symbols/node_modules/is-unicode-supported/readme.md +35 -0
  95. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/log-symbols/package.json +57 -0
  96. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/log-symbols/readme.md +39 -0
  97. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/mimic-function/index.d.ts +52 -0
  98. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/mimic-function/index.js +72 -0
  99. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/mimic-function/license +9 -0
  100. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/mimic-function/package.json +49 -0
  101. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/mimic-function/readme.md +80 -0
  102. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/onetime/index.d.ts +59 -0
  103. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/onetime/index.js +41 -0
  104. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/onetime/license +9 -0
  105. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/onetime/package.json +49 -0
  106. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/onetime/readme.md +88 -0
  107. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/ora/index.d.ts +332 -0
  108. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/ora/index.js +424 -0
  109. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/ora/license +9 -0
  110. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/ora/package.json +64 -0
  111. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/ora/readme.md +329 -0
  112. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/picocolors/LICENSE +15 -0
  113. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/picocolors/README.md +21 -0
  114. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/picocolors/package.json +25 -0
  115. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/picocolors/picocolors.browser.js +4 -0
  116. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/picocolors/picocolors.d.ts +5 -0
  117. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/picocolors/picocolors.js +75 -0
  118. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/picocolors/types.d.ts +51 -0
  119. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/restore-cursor/index.d.ts +15 -0
  120. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/restore-cursor/index.js +15 -0
  121. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/restore-cursor/license +9 -0
  122. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/restore-cursor/package.json +57 -0
  123. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/restore-cursor/readme.md +21 -0
  124. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/LICENSE.txt +16 -0
  125. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/README.md +74 -0
  126. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
  127. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
  128. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/cjs/browser.js +10 -0
  129. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
  130. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
  131. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
  132. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/cjs/index.js +279 -0
  133. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
  134. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/cjs/package.json +3 -0
  135. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
  136. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
  137. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/cjs/signals.js +42 -0
  138. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
  139. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
  140. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
  141. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/mjs/browser.js +4 -0
  142. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
  143. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
  144. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
  145. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/mjs/index.js +275 -0
  146. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
  147. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/mjs/package.json +3 -0
  148. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
  149. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
  150. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/mjs/signals.js +39 -0
  151. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
  152. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/signal-exit/package.json +106 -0
  153. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/sisteransi/license +21 -0
  154. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/sisteransi/package.json +34 -0
  155. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/sisteransi/readme.md +113 -0
  156. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/sisteransi/src/index.js +58 -0
  157. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/sisteransi/src/sisteransi.d.ts +35 -0
  158. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/stdin-discarder/index.d.ts +13 -0
  159. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/stdin-discarder/index.js +59 -0
  160. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/stdin-discarder/license +9 -0
  161. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/stdin-discarder/package.json +42 -0
  162. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/stdin-discarder/readme.md +37 -0
  163. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/string-width/index.d.ts +39 -0
  164. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/string-width/index.js +82 -0
  165. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/string-width/license +9 -0
  166. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/string-width/package.json +64 -0
  167. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/string-width/readme.md +66 -0
  168. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/strip-ansi/index.d.ts +15 -0
  169. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/strip-ansi/index.js +19 -0
  170. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/strip-ansi/license +9 -0
  171. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/strip-ansi/package.json +59 -0
  172. antigravity_updater-1.0.3/src/antigravity_updater/app/node_modules/strip-ansi/readme.md +37 -0
  173. antigravity_updater-1.0.3/src/antigravity_updater/app/package.json +53 -0
  174. antigravity_updater-1.0.3/src/antigravity_updater/app/src/detect.js +125 -0
  175. antigravity_updater-1.0.3/src/antigravity_updater/app/src/install.js +230 -0
  176. antigravity_updater-1.0.3/src/antigravity_updater/app/src/releases.js +95 -0
  177. antigravity_updater-1.0.3/src/antigravity_updater/app/src/utils.js +80 -0
@@ -0,0 +1,11 @@
1
+ node_modules/
2
+ *.tgz
3
+ *.log
4
+ .DS_Store
5
+
6
+ # Made by npm run build:python
7
+ python/src/antigravity_updater/app/
8
+ python/src/antigravity_updater/_version.py
9
+ python/LICENSE
10
+ python/dist/
11
+ __pycache__/
@@ -0,0 +1,49 @@
1
+ PolyForm Noncommercial License 1.0.0
2
+
3
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
4
+
5
+ Copyright (c) 2026 Rachit Asthana
6
+
7
+ By downloading, installing, copying, accessing, running, or otherwise using this software in any form, you explicitly acknowledge and agree to be bound by the terms and conditions of this license. If you do not agree to these terms, do not install, copy, or use this software.
8
+
9
+ ## Acceptance
10
+
11
+ In order to receive this license, you must agree to its rules. The rules of this license are both obligations under that agreement and conditions to your license. You must not do anything with this software that triggers a rule that you cannot or will not follow.
12
+
13
+ ## Copyright License
14
+
15
+ The licensor grants you a copyright license for this software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it, for any permitted purpose. However, you may only do things that this license allows you to do, and you must follow all the rules of this license.
16
+
17
+ ## Permitted Purposes
18
+
19
+ The only permitted purpose for this license is any noncommercial purpose. A purpose is noncommercial if it is not primarily intended for or directed towards commercial advantage or monetary compensation.
20
+
21
+ You may NOT sell, resell, monetize, sublicense, rent, or distribute this software or modified versions thereof for any commercial purpose or commercial advantage without prior express written permission from the licensor (Rachit Asthana).
22
+
23
+ ## Notices
24
+
25
+ You must ensure that anyone who gets a copy of any part of this software from you also gets a copy of this license.
26
+
27
+ ## Patent License
28
+
29
+ The licensor grants you a patent license for this software to make, have made, use, and sell this software for any permitted purpose. However, you may only do things that this license allows you to do, and you must follow all the rules of this license.
30
+
31
+ ## Fair Use
32
+
33
+ You may have "fair use" rights for this software under the law. This license does not affect those rights.
34
+
35
+ ## No Other Rights
36
+
37
+ These licenses are not for any other purpose. They do not give you any other rights, like the right to use the licensor's trademarks or logos.
38
+
39
+ ## Defense Against Infringement Claims
40
+
41
+ If an individual or company makes a claim against the licensor for patent infringement, the licensor's licenses to that individual or company end immediately.
42
+
43
+ ## Disclaimer of Warranties
44
+
45
+ The licensor licenses this software "as is", without any warranties, express or implied.
46
+
47
+ ## Limitation of Liability
48
+
49
+ The licensor will not be liable for any damages related to this software or this license.
@@ -0,0 +1,42 @@
1
+ Metadata-Version: 2.5
2
+ Name: antigravity-updater
3
+ Version: 1.0.3
4
+ Summary: Interactive auto-updater for Google Antigravity IDE and the agy CLI on Linux.
5
+ Project-URL: Homepage, https://github.com/racstan/antigravity-updater#readme
6
+ Project-URL: Source, https://github.com/racstan/antigravity-updater
7
+ Project-URL: Issues, https://github.com/racstan/antigravity-updater/issues
8
+ Project-URL: Documentation, https://github.com/racstan/antigravity-updater#readme
9
+ Author: Rachit Asthana
10
+ License-Expression: PolyForm-Noncommercial-1.0.0
11
+ License-File: LICENSE
12
+ Keywords: agy,antigravity,cli,google,ide,linux,updater
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Operating System :: POSIX :: Linux
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Topic :: Software Development
19
+ Requires-Python: >=3.9
20
+ Requires-Dist: nodejs-wheel-binaries>=22
21
+ Description-Content-Type: text/markdown
22
+
23
+ # antigravity-updater
24
+
25
+ Update **Google Antigravity IDE** and the **`agy` CLI** with one command. **Linux only**: it updates the Antigravity installed on your Linux computer, and on macOS or Windows it stops with a message.
26
+
27
+ This is the Python package of [antigravity-updater](https://github.com/racstan/antigravity-updater): the same updater as on npm, run with a bundled Node.js, so you do not need Node installed.
28
+
29
+ ```sh
30
+ uvx antigravity-updater
31
+ ```
32
+
33
+ Or install it once with `pipx install antigravity-updater`, then run `antigravity-updater` (or the short `agy-update`).
34
+
35
+ ```sh
36
+ antigravity-updater # interactive update (recommended)
37
+ antigravity-updater --check # only check for updates; nothing is downloaded or installed
38
+ ```
39
+
40
+ It finds your installs, shows the latest IDE and CLI versions, backs up the IDE before changing it, closes running Antigravity processes, and installs the official release. See the [full README](https://github.com/racstan/antigravity-updater#readme).
41
+
42
+ Licensed under PolyForm Noncommercial 1.0.0.
@@ -0,0 +1,20 @@
1
+ # antigravity-updater
2
+
3
+ Update **Google Antigravity IDE** and the **`agy` CLI** with one command. **Linux only**: it updates the Antigravity installed on your Linux computer, and on macOS or Windows it stops with a message.
4
+
5
+ This is the Python package of [antigravity-updater](https://github.com/racstan/antigravity-updater): the same updater as on npm, run with a bundled Node.js, so you do not need Node installed.
6
+
7
+ ```sh
8
+ uvx antigravity-updater
9
+ ```
10
+
11
+ Or install it once with `pipx install antigravity-updater`, then run `antigravity-updater` (or the short `agy-update`).
12
+
13
+ ```sh
14
+ antigravity-updater # interactive update (recommended)
15
+ antigravity-updater --check # only check for updates; nothing is downloaded or installed
16
+ ```
17
+
18
+ It finds your installs, shows the latest IDE and CLI versions, backs up the IDE before changing it, closes running Antigravity processes, and installs the official release. See the [full README](https://github.com/racstan/antigravity-updater#readme).
19
+
20
+ Licensed under PolyForm Noncommercial 1.0.0.
@@ -0,0 +1,49 @@
1
+ # The Python package of antigravity-updater: the same updater as on npm, run with Node from the
2
+ # nodejs-wheel-binaries package, so `uvx antigravity-updater` works with no Node installed.
3
+ # Build it with `npm run build:python` from the repository's folder, never from here directly:
4
+ # that script puts the updater in src/antigravity_updater/app and writes the version.
5
+ [build-system]
6
+ requires = ["hatchling>=1.27"]
7
+ build-backend = "hatchling.build"
8
+
9
+ [project]
10
+ name = "antigravity-updater"
11
+ dynamic = ["version"]
12
+ description = "Interactive auto-updater for Google Antigravity IDE and the agy CLI on Linux."
13
+ readme = "README.md"
14
+ license = "PolyForm-Noncommercial-1.0.0"
15
+ license-files = ["LICENSE"]
16
+ authors = [{ name = "Rachit Asthana" }]
17
+ requires-python = ">=3.9"
18
+ dependencies = ["nodejs-wheel-binaries>=22"]
19
+ keywords = ["antigravity", "google", "updater", "agy", "cli", "ide", "linux"]
20
+ classifiers = [
21
+ "Development Status :: 4 - Beta",
22
+ "Environment :: Console",
23
+ "Intended Audience :: Developers",
24
+ "Operating System :: POSIX :: Linux",
25
+ "Programming Language :: Python :: 3",
26
+ "Topic :: Software Development",
27
+ ]
28
+
29
+ [project.urls]
30
+ Homepage = "https://github.com/racstan/antigravity-updater#readme"
31
+ Source = "https://github.com/racstan/antigravity-updater"
32
+ Issues = "https://github.com/racstan/antigravity-updater/issues"
33
+ Documentation = "https://github.com/racstan/antigravity-updater#readme"
34
+
35
+ [project.scripts]
36
+ antigravity-updater = "antigravity_updater:main"
37
+ agy-update = "antigravity_updater:main"
38
+
39
+ [tool.hatch.version]
40
+ path = "src/antigravity_updater/_version.py"
41
+
42
+ [tool.hatch.build.targets.wheel]
43
+ packages = ["src/antigravity_updater"]
44
+ # app/ and _version.py are made by the build script and kept out of git, so name them here.
45
+ artifacts = ["src/antigravity_updater/app/**", "src/antigravity_updater/_version.py"]
46
+
47
+ [tool.hatch.build.targets.sdist]
48
+ include = ["src/antigravity_updater", "README.md", "LICENSE"]
49
+ artifacts = ["src/antigravity_updater/app/**", "src/antigravity_updater/_version.py"]
@@ -0,0 +1,53 @@
1
+ """Runs antigravity-updater from Python (Linux only).
2
+
3
+ antigravity-updater is written in JavaScript for Node. This package carries the same antigravity-updater that is on
4
+ npm (in app/) and runs it with the Node that the nodejs-wheel-binaries package installs, so nobody
5
+ needs Node installed for `uvx antigravity-updater` or `pip install antigravity-updater` to work. Every
6
+ argument is passed through: `--check`, `--help` and the rest work as with npm.
7
+ """
8
+
9
+ from __future__ import annotations
10
+
11
+ import os
12
+ import subprocess
13
+ import sys
14
+ from pathlib import Path
15
+ from typing import List, Optional, Sequence
16
+
17
+ APP = Path(__file__).resolve().parent / "app"
18
+ CLI = APP / "bin" / "cli.js"
19
+
20
+
21
+ def bundled_node(root: str, os_name: str = os.name) -> str:
22
+ """Where nodejs-wheel-binaries keeps Node: beside its code on Windows, in bin/ elsewhere."""
23
+ return os.path.join(root, "node.exe") if os_name == "nt" else os.path.join(root, "bin", "node")
24
+
25
+
26
+ def _node_from_wheel() -> str:
27
+ from nodejs_wheel.executable import ROOT_DIR
28
+
29
+ return bundled_node(ROOT_DIR)
30
+
31
+
32
+ def command(argv: Sequence[str], node: Optional[str] = None) -> List[str]:
33
+ """The Node command line that runs antigravity-updater with these arguments."""
34
+ return [node or _node_from_wheel(), str(CLI), *argv]
35
+
36
+
37
+ def main() -> None:
38
+ if sys.platform != "linux" and not {"--help", "-h", "--version", "-v"} & set(sys.argv[1:]):
39
+ sys.exit("antigravity-updater updates Google Antigravity on Linux only; this computer runs " + sys.platform + ".")
40
+ if not CLI.exists():
41
+ sys.exit(f"antigravity-updater: this package is missing antigravity-updater itself ({CLI}). Reinstall antigravity-updater.")
42
+ args = command(sys.argv[1:])
43
+ if os.name != "nt":
44
+ # Replace this process, so signals and the terminal go straight to Node.
45
+ os.execv(args[0], args)
46
+ # Windows has no exec that keeps the same process, so run Node and pass its exit code on.
47
+ # Ctrl+C reaches Node too, which stops by itself; this side only waits for it.
48
+ process = subprocess.Popen(args)
49
+ while True:
50
+ try:
51
+ sys.exit(process.wait())
52
+ except KeyboardInterrupt:
53
+ continue
@@ -0,0 +1,3 @@
1
+ from antigravity_updater import main
2
+
3
+ main()
@@ -0,0 +1,2 @@
1
+ # Written by scripts/build-python.mjs from package.json (1.0.3).
2
+ __version__ = "1.0.3"
@@ -0,0 +1,49 @@
1
+ PolyForm Noncommercial License 1.0.0
2
+
3
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
4
+
5
+ Copyright (c) 2026 Rachit Asthana
6
+
7
+ By downloading, installing, copying, accessing, running, or otherwise using this software in any form, you explicitly acknowledge and agree to be bound by the terms and conditions of this license. If you do not agree to these terms, do not install, copy, or use this software.
8
+
9
+ ## Acceptance
10
+
11
+ In order to receive this license, you must agree to its rules. The rules of this license are both obligations under that agreement and conditions to your license. You must not do anything with this software that triggers a rule that you cannot or will not follow.
12
+
13
+ ## Copyright License
14
+
15
+ The licensor grants you a copyright license for this software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it, for any permitted purpose. However, you may only do things that this license allows you to do, and you must follow all the rules of this license.
16
+
17
+ ## Permitted Purposes
18
+
19
+ The only permitted purpose for this license is any noncommercial purpose. A purpose is noncommercial if it is not primarily intended for or directed towards commercial advantage or monetary compensation.
20
+
21
+ You may NOT sell, resell, monetize, sublicense, rent, or distribute this software or modified versions thereof for any commercial purpose or commercial advantage without prior express written permission from the licensor (Rachit Asthana).
22
+
23
+ ## Notices
24
+
25
+ You must ensure that anyone who gets a copy of any part of this software from you also gets a copy of this license.
26
+
27
+ ## Patent License
28
+
29
+ The licensor grants you a patent license for this software to make, have made, use, and sell this software for any permitted purpose. However, you may only do things that this license allows you to do, and you must follow all the rules of this license.
30
+
31
+ ## Fair Use
32
+
33
+ You may have "fair use" rights for this software under the law. This license does not affect those rights.
34
+
35
+ ## No Other Rights
36
+
37
+ These licenses are not for any other purpose. They do not give you any other rights, like the right to use the licensor's trademarks or logos.
38
+
39
+ ## Defense Against Infringement Claims
40
+
41
+ If an individual or company makes a claim against the licensor for patent infringement, the licensor's licenses to that individual or company end immediately.
42
+
43
+ ## Disclaimer of Warranties
44
+
45
+ The licensor licenses this software "as is", without any warranties, express or implied.
46
+
47
+ ## Limitation of Liability
48
+
49
+ The licensor will not be liable for any damages related to this software or this license.
@@ -0,0 +1,386 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * antigravity-updater — Interactive CLI entry point
4
+ *
5
+ * Usage:
6
+ * antigravity-updater
7
+ * npx antigravity-updater
8
+ */
9
+
10
+ import * as clack from '@clack/prompts';
11
+ import chalk from 'chalk';
12
+ import ora from 'ora';
13
+ import { existsSync } from 'fs';
14
+ import { join } from 'path';
15
+ import { homedir } from 'os';
16
+
17
+ import { detectInstallations } from '../src/detect.js';
18
+ import { fetchLatestReleases } from '../src/releases.js';
19
+ import { installIDE, installCLI } from '../src/install.js';
20
+ import {
21
+ formatBytes,
22
+ sleep,
23
+ getRunningCount,
24
+ killProcess,
25
+ forceKillProcess,
26
+ checkCommand,
27
+ } from '../src/utils.js';
28
+
29
+ // ─── Constants ───────────────────────────────────────────────────────────────
30
+ const PKG_VERSION = '1.0.3';
31
+ const DOCS_URL = 'https://antigravity.google/docs/getting-started';
32
+ const GITHUB_URL = 'https://github.com/racstan/antigravity-updater';
33
+ const DONATE_URL = 'https://buymeacoffee.com/rachitasthana';
34
+
35
+ // ─── Graceful cancel on Ctrl+C ───────────────────────────────────────────────
36
+ process.on('SIGINT', () => {
37
+ clack.cancel(chalk.yellow('Update cancelled.'));
38
+ process.exit(0);
39
+ });
40
+
41
+ // ─── Simple --help / --version flags (before interactive prompts) ─────────────
42
+ if (process.argv.includes('--version') || process.argv.includes('-v')) {
43
+ console.log(`antigravity-updater v${PKG_VERSION}`);
44
+ process.exit(0);
45
+ }
46
+
47
+ if (process.argv.includes('--help') || process.argv.includes('-h')) {
48
+ console.log(`
49
+ ${chalk.bold('antigravity-updater')} v${PKG_VERSION}
50
+ Interactive auto-updater for Google Antigravity IDE and agy CLI on Linux.
51
+
52
+ ${chalk.bold('Usage:')}
53
+ antigravity-updater Launch the interactive updater
54
+ antigravity-updater --check Check for updates without installing
55
+ antigravity-updater --help Show this help
56
+ antigravity-updater --version Show version
57
+
58
+ ${chalk.bold('GitHub:')} ${GITHUB_URL}
59
+ ${chalk.bold('Support:')} ${DONATE_URL}
60
+ `);
61
+ process.exit(0);
62
+ }
63
+
64
+ const CHECK_ONLY = process.argv.includes('--check') || process.argv.includes('-c');
65
+
66
+ // ─── Main ─────────────────────────────────────────────────────────────────────
67
+ async function main() {
68
+ console.clear();
69
+
70
+ // Header banner
71
+ const line = '══════════════════════════════════════════════════════';
72
+ console.log(chalk.cyan.bold(`\n ╔${line}╗`));
73
+ console.log(chalk.cyan.bold(` ║`) + chalk.white.bold(' Google Antigravity Updater') + chalk.dim(` v${PKG_VERSION} `) + chalk.cyan.bold('║'));
74
+ console.log(chalk.cyan.bold(` ║`) + chalk.dim(' Unofficial interactive updater for Linux ') + chalk.cyan.bold('║'));
75
+ console.log(chalk.cyan.bold(` ╚${line}╝\n`));
76
+
77
+ // ── Prerequisites check ──────────────────────────────────────────────────
78
+ const requiredCmds = ['tar'];
79
+ const missingCmds = requiredCmds.filter((c) => !checkCommand(c));
80
+ if (missingCmds.length > 0) {
81
+ clack.cancel(
82
+ `Missing required system tools: ${chalk.bold(missingCmds.join(', '))}.\n` +
83
+ ` Install them with your package manager and try again.`
84
+ );
85
+ process.exit(1);
86
+ }
87
+
88
+ // ── Step 1: Detect installations ─────────────────────────────────────────
89
+ const detectSpinner = ora({ text: 'Scanning for Antigravity installations...', color: 'cyan' }).start();
90
+
91
+ let ideInstalls, cliPath, cliVersion;
92
+ try {
93
+ ({ ideInstalls, cliPath, cliVersion } = await detectInstallations());
94
+ } catch (err) {
95
+ detectSpinner.fail('Detection failed: ' + err.message);
96
+ process.exit(1);
97
+ }
98
+
99
+ const cliInfo = cliPath
100
+ ? `CLI found at ${chalk.dim(cliPath.replace(homedir(), '~'))}`
101
+ : `CLI ${chalk.dim('not found in common locations')}`;
102
+
103
+ detectSpinner.succeed(
104
+ ideInstalls.length > 0
105
+ ? `Found ${chalk.bold(ideInstalls.length)} IDE installation(s). ${cliInfo}.`
106
+ : `No IDE installations detected automatically. ${cliInfo}.`
107
+ );
108
+
109
+ console.log('');
110
+
111
+ // ── Step 2: Fetch latest releases from Google ────────────────────────────
112
+ const releaseSpinner = ora({ text: 'Fetching latest release info from Google...', color: 'cyan' }).start();
113
+
114
+ let releases;
115
+ try {
116
+ releases = await fetchLatestReleases();
117
+ releaseSpinner.succeed(
118
+ `Latest releases: IDE ${chalk.green.bold('v' + releases.ide.version)} | CLI ${chalk.green.bold('v' + releases.cli.version)}`
119
+ );
120
+ } catch (err) {
121
+ releaseSpinner.fail(`Could not reach Google's release API: ${err.message}`);
122
+ clack.log.warn('Check your internet connection and try again.');
123
+ process.exit(1);
124
+ }
125
+
126
+ // ── Check-Only Mode: Display report and exit ──────────────────────────────
127
+ if (CHECK_ONLY) {
128
+ console.log('');
129
+ const pad = (s, n) => String(s ?? '').padEnd(n);
130
+ const notes = [];
131
+
132
+ if (ideInstalls.length > 0) {
133
+ for (const inst of ideInstalls) {
134
+ const isUpToDate = inst.version === releases.ide.version;
135
+ notes.push(
136
+ `IDE ${chalk.white(inst.path.replace(homedir(), '~'))}\n Installed: ${chalk.dim(pad(inst.version, 15))} → Latest: ${chalk.green.bold('v' + releases.ide.version)} ${isUpToDate ? chalk.green('✓ up to date') : chalk.yellow('⬆ update available')}`
137
+ );
138
+ }
139
+ } else {
140
+ notes.push(`IDE ${chalk.dim('No local IDE found')} → Latest: ${chalk.green.bold('v' + releases.ide.version)}`);
141
+ }
142
+
143
+ const cliUpToDate = cliVersion === releases.cli.version;
144
+ notes.push(
145
+ `CLI ${chalk.white(cliPath ? cliPath.replace(homedir(), '~') : 'agy')}\n Installed: ${chalk.dim(pad(cliVersion ?? 'not installed', 15))} → Latest: ${chalk.green.bold('v' + releases.cli.version)} ${cliUpToDate ? chalk.green('✓ up to date') : chalk.yellow('⬆ update available')}`
146
+ );
147
+
148
+ clack.note(notes.join('\n\n'), 'Update Check Summary');
149
+ clack.outro(
150
+ chalk.dim('--check mode: no changes made.\n\n') +
151
+ chalk.cyan(' ★ Star on GitHub: ') + chalk.underline(GITHUB_URL) + '\n' +
152
+ chalk.yellow(' ☕ Buy me a coffee: ') + chalk.underline(DONATE_URL)
153
+ );
154
+ process.exit(0);
155
+ }
156
+
157
+ // ── Step 3: Select IDE installation (Interactive) ────────────────────────
158
+ const ideOptions = [
159
+ ...ideInstalls.map((i) => {
160
+ const up = i.version === releases.ide.version;
161
+ return {
162
+ value: i.path,
163
+ label: chalk.white(i.path.replace(homedir(), '~')),
164
+ hint: `${i.version} ${up ? '(up to date)' : '(update available)'}`,
165
+ };
166
+ }),
167
+ {
168
+ value: '__custom__',
169
+ label: chalk.white('Enter a custom path'),
170
+ hint: 'if installed elsewhere or custom directory',
171
+ },
172
+ {
173
+ value: '__skip__',
174
+ label: chalk.dim('Skip IDE — only update CLI (agy)'),
175
+ hint: '',
176
+ },
177
+ ];
178
+
179
+ const ideChoice = await clack.select({
180
+ message: 'Select Antigravity IDE installation to update',
181
+ options: ideOptions,
182
+ initialValue: ideInstalls[0]?.path ?? '__custom__',
183
+ });
184
+ if (clack.isCancel(ideChoice)) { clack.cancel('Update cancelled.'); process.exit(0); }
185
+
186
+ let selectedIDEPath = null;
187
+ let selectedIDEVersion = null;
188
+
189
+ if (ideChoice === '__custom__') {
190
+ const customPath = await clack.text({
191
+ message: 'Enter the full path to your Antigravity IDE directory:',
192
+ placeholder: `${homedir()}/Applications/antigravity-ide`,
193
+ validate: (v) => {
194
+ if (!v?.trim()) return 'Path cannot be empty.';
195
+ const bin = join(v.trim(), 'antigravity-ide');
196
+ if (!existsSync(bin)) {
197
+ return `No 'antigravity-ide' binary found at:\n ${bin}\n Make sure the path points to the IDE directory, not the binary itself.`;
198
+ }
199
+ },
200
+ });
201
+ if (clack.isCancel(customPath)) { clack.cancel('Update cancelled.'); process.exit(0); }
202
+ selectedIDEPath = customPath.trim();
203
+ } else if (ideChoice !== '__skip__') {
204
+ selectedIDEPath = ideChoice;
205
+ selectedIDEVersion = ideInstalls.find((i) => i.path === ideChoice)?.version ?? null;
206
+ }
207
+
208
+ // ── Step 4: Show version comparison for selected components ──────────────
209
+ console.log('');
210
+
211
+ const ideUpToDate = selectedIDEVersion === releases.ide.version;
212
+ const cliUpToDate = cliVersion === releases.cli.version;
213
+
214
+ const pad = (s, n) => String(s ?? '').padEnd(n);
215
+
216
+ const ideRow = selectedIDEPath
217
+ ? `IDE ${chalk.dim(pad(selectedIDEVersion ?? 'unknown', 28))} → ${chalk.green.bold('v' + releases.ide.version)} ${ideUpToDate ? chalk.green('✓ up to date') : chalk.yellow('⬆ update available')}`
218
+ : `IDE ${chalk.dim('(skipped)')}`;
219
+
220
+ const cliRow =
221
+ `CLI ${chalk.dim(pad(cliVersion ?? 'not installed', 28))} → ${chalk.green.bold('v' + releases.cli.version)} ${cliUpToDate ? chalk.green('✓ up to date') : chalk.yellow('⬆ update available')}`;
222
+
223
+ clack.note([ideRow, cliRow].join('\n'), 'Selected Version Status');
224
+
225
+ // ── Step 5: Select what to update ────────────────────────────────────────
226
+ const updateOptions = [
227
+ selectedIDEPath
228
+ ? {
229
+ value: 'ide',
230
+ label: 'Antigravity IDE',
231
+ hint: ideUpToDate ? `v${releases.ide.version} — already up to date` : `v${releases.ide.version} available`,
232
+ }
233
+ : null,
234
+ {
235
+ value: 'cli',
236
+ label: 'Antigravity CLI (agy)',
237
+ hint: cliUpToDate ? `v${releases.cli.version} — already up to date` : `v${releases.cli.version} available`,
238
+ },
239
+ ].filter(Boolean);
240
+
241
+ const toUpdate = await clack.multiselect({
242
+ message: 'What would you like to update?',
243
+ options: updateOptions,
244
+ initialValues: [
245
+ ...(selectedIDEPath && !ideUpToDate ? ['ide'] : []),
246
+ ...(!cliUpToDate ? ['cli'] : []),
247
+ ],
248
+ required: false,
249
+ });
250
+ if (clack.isCancel(toUpdate)) { clack.cancel('Update cancelled.'); process.exit(0); }
251
+ if (!toUpdate || toUpdate.length === 0) {
252
+ clack.outro('Nothing selected — exiting.');
253
+ process.exit(0);
254
+ }
255
+
256
+ // ── Step 6: IDE installation mode (backup or direct) ─────────────────────
257
+ let noBackup = false;
258
+
259
+ if (toUpdate.includes('ide') && selectedIDEPath) {
260
+ const backupMode = await clack.select({
261
+ message: 'Installation mode for IDE',
262
+ options: [
263
+ {
264
+ value: 'backup',
265
+ label: 'Create a backup first',
266
+ hint: 'safer — the old version is kept in case something goes wrong',
267
+ },
268
+ {
269
+ value: 'direct',
270
+ label: 'Direct install (no backup)',
271
+ hint: 'faster — old version is deleted immediately, less disk space used',
272
+ },
273
+ ],
274
+ initialValue: 'backup',
275
+ });
276
+ if (clack.isCancel(backupMode)) { clack.cancel('Update cancelled.'); process.exit(0); }
277
+ noBackup = backupMode === 'direct';
278
+ }
279
+
280
+ // ── Step 7: Handle running Antigravity processes ──────────────────────────
281
+ if (toUpdate.includes('ide') && selectedIDEPath) {
282
+ const running = getRunningCount('antigravity-ide');
283
+
284
+ if (running > 0) {
285
+ const label = `${running} process${running !== 1 ? 'es' : ''}`;
286
+ const closeIt = await clack.confirm({
287
+ message: `Antigravity IDE is currently running (${label}). Close it automatically now?`,
288
+ initialValue: true,
289
+ });
290
+ if (clack.isCancel(closeIt)) { clack.cancel('Update cancelled.'); process.exit(0); }
291
+
292
+ if (!closeIt) {
293
+ clack.cancel(
294
+ 'Please close Antigravity IDE manually, then run this updater again.\n' +
295
+ ' Tip: do not close from the integrated terminal inside Antigravity itself.'
296
+ );
297
+ process.exit(1);
298
+ }
299
+
300
+ const closeSpinner = ora({ text: 'Closing Antigravity IDE...', color: 'yellow' }).start();
301
+ killProcess('antigravity-ide');
302
+ await sleep(2000);
303
+
304
+ if (getRunningCount('antigravity-ide') > 0) {
305
+ closeSpinner.text = 'Waiting for processes to exit (force-killing)...';
306
+ forceKillProcess('antigravity-ide');
307
+ await sleep(700);
308
+ }
309
+
310
+ closeSpinner.succeed('Antigravity IDE closed.');
311
+ }
312
+ }
313
+
314
+ console.log('');
315
+
316
+ // ── Step 8: Install IDE ───────────────────────────────────────────────────
317
+ if (toUpdate.includes('ide') && selectedIDEPath) {
318
+ const spin = ora({ text: 'Preparing download...', color: 'cyan' }).start();
319
+
320
+ try {
321
+ const result = await installIDE({
322
+ installPath: selectedIDEPath,
323
+ release: releases.ide,
324
+ noBackup,
325
+ onProgress: (downloaded, total) => {
326
+ if (total > 0) {
327
+ const pct = Math.round((downloaded / total) * 100);
328
+ const barLen = 20;
329
+ const filled = Math.round((pct / 100) * barLen);
330
+ const bar = chalk.green('█'.repeat(filled)) + chalk.dim('░'.repeat(barLen - filled));
331
+ spin.text = `Downloading IDE v${releases.ide.version} ${bar} ${pct}% ${chalk.dim(formatBytes(downloaded) + ' / ' + formatBytes(total))}`;
332
+ } else {
333
+ spin.text = `Downloading IDE v${releases.ide.version}... ${chalk.dim(formatBytes(downloaded))}`;
334
+ }
335
+ },
336
+ onStatus: (msg) => { spin.text = msg; },
337
+ });
338
+
339
+ spin.succeed(chalk.green.bold(`Antigravity IDE v${releases.ide.version} installed.`));
340
+
341
+ if (result.backupPath) {
342
+ clack.log.info(chalk.dim(` Backup: ${result.backupPath.replace(homedir(), '~')}`));
343
+ }
344
+ } catch (err) {
345
+ spin.fail(`IDE update failed: ${err.message}`);
346
+ process.exit(1);
347
+ }
348
+ }
349
+
350
+ // ── Step 9: Install CLI ───────────────────────────────────────────────────
351
+ if (toUpdate.includes('cli')) {
352
+ const cliInstallDir = cliPath
353
+ ? cliPath.replace(/\/agy$/, '')
354
+ : `${homedir()}/.local/bin`;
355
+
356
+ const spin = ora({ text: 'Installing Antigravity CLI (agy)...', color: 'cyan' }).start();
357
+
358
+ try {
359
+ await installCLI({
360
+ cliInstallDir,
361
+ onStatus: (msg) => { spin.text = msg; },
362
+ });
363
+ spin.succeed(chalk.green.bold(`Antigravity CLI v${releases.cli.version} installed.`));
364
+ } catch (err) {
365
+ spin.fail(`CLI update failed: ${err.message}`);
366
+ clack.log.warn(
367
+ `You can install the CLI manually:\n curl -fsSL https://antigravity.google/cli/install.sh | bash`
368
+ );
369
+ }
370
+ }
371
+
372
+ // ── Done ─────────────────────────────────────────────────────────────────
373
+ console.log('');
374
+ clack.outro(
375
+ chalk.green.bold('✓ Update complete!') + '\n\n' +
376
+ chalk.dim(' → Launch Antigravity from your Desktop or application menu.\n') +
377
+ chalk.dim(` → Run ${chalk.cyan('antigravity-updater')} anytime to check for updates.\n\n`) +
378
+ chalk.cyan(' ★ Star on GitHub: ') + chalk.underline(GITHUB_URL) + '\n' +
379
+ chalk.yellow(' ☕ Buy me a coffee: ') + chalk.underline(DONATE_URL)
380
+ );
381
+ }
382
+
383
+ main().catch((err) => {
384
+ console.error(chalk.red('\nFatal error:'), err.message || err);
385
+ process.exit(1);
386
+ });