← Commit history

0.1.9: a dead dashboard server toasts once, not every poll

John Lauer ·b2793c7229 ·1mo ago ·parent c6c00a6
4 files changed +4−4
adom_antigravity.py+1−1
@@ -21,7 +21,7 @@ from pathlib import Path from http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer  ROOT = Path(__file__).resolve().parent-VERSION = '0.1.8'+VERSION = '0.1.9' EXT_ID = 'Google.google-antigravity' CLI_INSTALL = 'https://antigravity.google/cli/install.sh' EXT_DIRS = [Path.home() / '.local/share/code-server/extensions', Path.home() / '.vscode-server/extensions']
dashboard/index.html+1−1
@@ -52,7 +52,7 @@ function render(s){$('#machine').textContent=(s.runtime==='wsl2'?'WSL2':s.runtim  $('#open-hint').textContent=s.panelWorks?'The side bar renders here (Hydrogen serves forwarded ports as <port>.localhost). Ctrl+Shift+L starts a new conversation; Ctrl+L adds a selection.':'This editor still path-proxies ports, so the side-bar panel is blank; Open Antigravity shows the same UI as a tab. Hydrogen 1.0.224+ fixes the panel.';  $('#install-ext').textContent=s.extension.installed?'Reinstall / update the extension':'Install the extension';  $('#install-cli').textContent=s.cli.installed?(s.cli.duplicate?'Link the CLI to the extension\'s copy':'Relink the CLI'):(s.cli.extensionCopy?'Link the CLI to the extension\'s copy':'Install the CLI');window.__ag=s}-async function refresh(){try{const r=await fetch('/api/status');render(await r.json())}catch(e){toast('Status unavailable: '+e.message,'err')}}+async function refresh(){try{const r=await fetch('/api/status');render(await r.json());if(window.__down){window.__down=false;toast('Dashboard server is back','ok')}}catch(e){if(!window.__down){window.__down=true;toast('This dashboard\'s server is not answering (it restarts when you open Antigravity from the dock again)','err')}}} async function post(path,body,btn,busyText){const old=btn?btn.textContent:'';if(btn){btn.disabled=true;btn.textContent=busyText||'Working…'}try{const r=await fetch(path,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify(body||{})});const j=await r.json();if(j.ok===false)toast(j.error||j.output||'failed','err');else toast(j.next||j.note||'Done','ok');await refresh();return j}catch(e){toast(e.message,'err')}finally{if(btn){btn.disabled=false;btn.textContent=old}}} $('#install-ext').onclick=e=>post('/api/install-extension',{},e.currentTarget,'Installing the extension…'); $('#install-cli').onclick=e=>post('/api/install-cli',{},e.currentTarget,'Installing agy…');
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.1.8",+  "version": "0.1.9",   "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.1.8",+  "version": "0.1.9",   "hero": {     "type": "image",     "path": "screenshots/hero.png"