app
Google Antigravity
Public Made by Adomby adom
Google Antigravity in Adom Hydrogen: the editor extension, the agy CLI and a dock dashboard that installs both into your container.
← Commit history
Publish 0.2.4
4 files changed
+12−5
bin/hydrogen-widget-lib.py+4−1@@ -329,6 +329,9 @@ def _save_state(title, st): except Exception: pass def serve(title, data_fn, render_js, refresh_ms=60000, mark=None, align_ms=0, default_view='rows'):+ # mark = {'svg': '<path .../>', 'color': '#hex', 'viewBox': '0 0 W H'}: viewBox is the grid the+ # path is drawn on (default 0 0 16 16). A 24-unit path in the 16-unit box is cut off at the right+ # and bottom (the Antigravity arch, John 2026-10-17 and again 2026-10-18). mark = mark or {'svg': '', 'color': 'currentColor'} port = int(os.environ.get('HYDROGEN_WIDGET_PORT') or (sys.argv[sys.argv.index('--port')+1] if '--port' in sys.argv else 8930)) provider = 'Anthropic' if 'Claude' in title else ('OpenAI' if 'Codex' in title else ('Antigravity' if 'Antigravity' in title else 'the provider'))@@ -440,7 +443,7 @@ def serve(title, data_fn, render_js, refresh_ms=60000, mark=None, align_ms=0, de title, '40px' if expand else '150px 0 40px 40px', w, h, ground, 'true' if fixed else 'false', 'true' if expand else 'false') self._send(200, 'text/html; charset=utf-8', page.encode()) elif self.path.startswith('/health'): self._send(200, 'application/json', b'{"ok":true}')- else: self._send(200, 'text/html; charset=utf-8', (PAGE % {'title': title, 'default_view': default_view, 'refresh_ms': refresh_ms, 'align_ms': int(align_ms), 'render_js': render_js, 'x_css': X_CSS, 'x_js': X_JS, 'mark_html': ('<span class="mark" style="color:%s"><svg viewBox="0 0 16 16">%s</svg></span>' % (mark.get('color', 'currentColor'), mark.get('svg', ''))) if mark.get('svg') else ''}).encode())+ else: self._send(200, 'text/html; charset=utf-8', (PAGE % {'title': title, 'default_view': default_view, 'refresh_ms': refresh_ms, 'align_ms': int(align_ms), 'render_js': render_js, 'x_css': X_CSS, 'x_js': X_JS, 'mark_html': ('<span class="mark" style="color:%s"><svg viewBox="%s">%s</svg></span>' % (mark.get('color', 'currentColor'), mark.get('viewBox', '0 0 16 16'), mark.get('svg', ''))) if mark.get('svg') else ''}).encode()) # Bind with retries: a previous instance Hydrogen just stopped may still be releasing the # port for a moment. Ten tries over five seconds, then give up loudly (the log says why). ThreadingHTTPServer.allow_reuse_address = True
bin/hydrogen-widget-marks.py+6−2@@ -1,4 +1,8 @@-"""The Antigravity mark for the usage widget: an arch in Antigravity's blue."""+"""The Antigravity mark for the usage widget: an arch in Antigravity's blue.++The path is drawn on a 24-unit grid, so it carries viewBox "0 0 24 24"; without it the widget+library draws it in a 16-unit box and the arch is cut off (John 2026-10-17, again 2026-10-18).+Keep the viewBox whenever this file is edited or copied.""" MARKS = {- "antigravity": {"svg": '<path d="M3.5 20.5C6 13 8.6 4.5 12 4.5s6 8.5 8.5 16" fill="none" stroke="currentColor" stroke-width="3.2" stroke-linecap="round"/>', "color": "#5b8def"},+ "antigravity": {"svg": '<path d="M3.5 20.5C6 13 8.6 4.5 12 4.5s6 8.5 8.5 16" fill="none" stroke="currentColor" stroke-width="3.2" stroke-linecap="round"/>', "color": "#5b8def", "viewBox": "0 0 24 24"}, }
package.json+1−1@@ -4,7 +4,7 @@ "type": "app", "title": "Google Antigravity", "brief": "Google Antigravity in Adom Hydrogen: the editor extension, the agy CLI and a dock dashboard that installs both into your container.",- "version": "0.2.3",+ "version": "0.2.4", "description": "Try Google Antigravity inside your Adom workspace. The dock dashboard installs the Google Antigravity VS Code extension into Hydrogen's editor and the agy command line into your WSL2 or Lima container, opens the panel, and reports what is installed and signed in.", "org": "adom", "needs_sudo": false,
page.json+1−1@@ -4,7 +4,7 @@ "type": "app", "title": "Google Antigravity", "brief": "Google Antigravity in Adom Hydrogen: the editor extension, the agy CLI and a dock dashboard that installs both into your container.",- "version": "0.2.3",+ "version": "0.2.4", "hero": { "type": "image", "path": "screenshots/hero.png"