← Commit history
CHANGELOG.md+14
@@ -1,5 +1,19 @@ # Changelog +## 0.2.99++- **The dashboard never starts Altium on a machine you did not choose** (#33). It used to drive the first machine Adom Bridge listed, and opening it on a Linux computer launched Altium Designer on someone else's laptop.+  - It now uses the Windows machine you clicked (remembered), or the computer it runs on when that is a Windows PC.+  - Otherwise it shows "Altium Designer runs on Windows. Run it on one of your Windows machines:" with a "Launch on <machine>" button per reachable Windows machine, and calls no Altium verb anywhere until you click one.+  - With no Windows machine on the account, one card says how to add one.+  - The page no longer picks a machine itself, and listing machines no longer sends a verb to each of them.+- **"Works here" and "Needs a Windows machine".** The dashboard now has a section for what runs in the workspace itself:+  - Altium 365: workspace connection, sign-in, your cloud library. A Linux build of the bridge serves its Altium 365 verbs; it is a release asset, fetched on first use and checked against its sha256.+  - Library conversion with Adom LBR.+  Everything that drives Altium Designer sits under "Needs a Windows machine" and stays dimmed until a machine is chosen.+- `dockbar.json` declares `"platforms": ["windows"]`, which Hydrogen shows as a "runs on Windows" badge on Linux.+- Tested: the machine rule's unit tests. The dashboard in Linux mode launched nothing and sent no verb until a click; "Launch on DESKTOP-BAR6S0F" started Altium there; the Altium 365 lane and Adom LBR ran in the Linux workspace. A Windows PC still uses itself. 9 lifecycle verbs passed on Altium Designer 26.11.1.+ ## 0.2.98  - **The agent no longer leaves its script project in your Altium workspace** (#32). Each agent start opens the agent's `AdomAgent_<gen>.PrjScr`, and Altium adds it to the open workspace. In a workspace you saved, that marked the workspace changed, so closing Altium asked "Save changes? <workspace>.DsnWrk", and saving wrote the agent's project into your file. A project from an earlier run could also stay there and reopen at every launch.
bridge-rs/src/agent.rs+14−2
@@ -148,8 +148,20 @@ pub fn mark_parked_stopped(why: &str) -> Vec<String> { }  pub fn cache_dir() -> PathBuf {-    let local = std::env::var("LOCALAPPDATA").unwrap_or_else(|_| r"C:\Users\Public".into());-    PathBuf::from(local).join("Adom Bridge").join("bridges-cache").join("altium")+    if let Ok(local) = std::env::var("LOCALAPPDATA") {+        return PathBuf::from(local).join("Adom Bridge").join("bridges-cache").join("altium");+    }+    // On Linux the bridge serves only the Altium 365 lane, for the dashboard's "Works here" section (#33): its+    // settings and tokens go in the user's cache folder, never in a folder named after a Windows path+    #[cfg(not(windows))]+    {+        let base = std::env::var("XDG_CACHE_HOME").ok().filter(|v| !v.is_empty())+            .map(PathBuf::from)+            .unwrap_or_else(|| PathBuf::from(std::env::var("HOME").unwrap_or_else(|_| "/tmp".into())).join(".cache"));+        return base.join("adom-altium-bridge");+    }+    #[cfg(windows)]+    PathBuf::from(r"C:\Users\Public").join("Adom Bridge").join("bridges-cache").join("altium") }  fn agent_root() -> PathBuf {
bridge-rs/src/main.rs+1−1
@@ -81,7 +81,7 @@ use tiny_http::{Header, Method, Response, Server}; /// Attached to every failed reply (see the /command handler). const REPORT_ISSUES: &str = "If this looks like an altium-bridge BUG (not a refusal you expected), report it: check for a duplicate with `adom-wiki issue list adom/altium-bridge`, then `adom-wiki issue create adom/altium-bridge --title \"<verb>: <one-line symptom>\" --category bug-report --body \"<what you ran, what you expected, what happened, the VERBATIM response JSON (and errorShot if present), bridgeVersion, the Altium version from altium_status, the OS>\"`. A relay, routing, toast or lifecycle problem belongs on adom/adom-bridge instead. Reports from real machines are how this bridge gets correct: three different Altium builds behaved three different ways in one weekend."; -pub const BRIDGE_VERSION: &str = "0.2.98";+pub const BRIDGE_VERSION: &str = "0.2.99";  fn json_response(status: u16, body: &serde_json::Value) -> Response<std::io::Cursor<Vec<u8>>> {     let data = serde_json::to_vec(body).unwrap_or_else(|_| b"{}".to_vec());
dashboard/altium_dashboard.py+74−16
@@ -49,6 +49,9 @@ from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer from pathlib import Path from urllib.parse import unquote, urlparse +import machines  # which Windows machine to drive (altium-bridge#33)+import works_here  # Altium 365 and library conversion in this workspace (#33)+ VERSION = "0.1.1" AI_THREAD = "altium-dashboard" DEFAULT_PORT = 8932@@ -144,7 +147,7 @@ def _ver_tuple(v): # mounts this app under a sub-path and forwards the prefix, so "/apps/altium/health" # is the same route as "/health". _EXACT_ROUTES = ("/health", "/console", "/events", "/api/targets",-                 "/api/action", "/ui/toast", "/ui/click")+                 "/api/action", "/api/pick", "/api/here", "/ui/toast", "/ui/click") _SUFFIX_ROUTES = ("/newbie-panel.js", "/favicon.svg", "/favicon.png", "/favicon.ico",                   "/dock-altium.svg", "/altium-logo.png", "/updater/status",                   "/api/viewport", "/ai-threads/run-prompt", "/api/say-send")@@ -304,6 +307,11 @@ def say_send(phrase):  def ab(target, verb, args=None, timeout=140):     """One bridge verb. Returns the parsed payload dict (never raises)."""+    if (not target or target == "-") and verb.startswith(("altium_", "bridge_")):+        # without --target ab picks a machine itself; Altium is never driven on a machine nobody chose (#33)+        return {"success": False, "errorCode": "no_machine_picked",+                "error": "no Windows machine is chosen for Altium yet",+                "_hint": "The user picks one on the dashboard (POST /api/pick); never choose for them."}     cmd = ["adom-bridge", "--ai-thread", AI_THREAD]     if target and target != "-":         cmd += ["--target", target]@@ -458,6 +466,9 @@ def _emit_short_states(leds: dict) -> None:     for key, led in (leds or {}).items():         if not isinstance(led, dict):             continue+        if led.get("fixedShort"):  # the picker's LEDs: "not chosen", never "offline" or "not installed" (#33)+            led["short"] = led["fixedShort"]+            continue         try:             val = SHORT.get(key, lambda l: None)(led)         except Exception:@@ -493,11 +504,32 @@ def rollup_state(leds: dict) -> dict:                   "yellow, because the bridge still works. Only relay/box/bridge/altium/license can."),     } +def _picker_status(rows, local):+    """No machine chosen: say so, list the Windows machines, and touch none of them (#33)."""+    pick = machines.picker_payload(rows, local)+    leds = {"relay": {"label": "Relay", "state": "ok" if rows else "err",+                      "detail": f"{len(rows)} machine(s) on your account" if rows else "no machines on your account",+                      "_hint": "`adom-bridge targets` lists them."},+            "box": {"label": "Machine", "state": "warn" if pick["windowsMachines"] else "err",+                    "detail": "pick a Windows machine" if pick["windowsMachines"] else "no Windows machine",+                    "fixedShort": "pick one" if pick["windowsMachines"] else "none on account",+                    "_hint": pick["_hint"]}}+    for k, lbl in (("bridge", "Bridge"), ("altium", "Altium"), ("license", "Licence"),+                   ("update", "Updates"), ("running", "Running"), ("agent", "Agent")):+        leds[k] = {"label": lbl, "state": "off", "detail": "no machine chosen", "fixedShort": "not chosen",+                   "_hint": "Unknown until the user picks the Windows machine Altium runs on."}+    return {"target": "", "targets": [r["name"] for r in rows], "leds": leds, "settings": {},+            **rollup_state(leds), "machine": pick, "windows": [], "dashboardVersion": VERSION,+            "generatedAt": time.strftime("%H:%M:%S"), "_hint": pick["_hint"]}++ def build_status(target):     """The LED payload. Each facet: {label, state: ok|warn|err|off, detail, _hint}."""-    targets = get_targets()-    if not target or target == "-":-        target = targets[0] if targets else ""+    rows, local = machines.machines()+    target, why = machines.choose(target, rows, local, machines.picked())+    if not target:+        return _picker_status(rows, local)+    targets = [r["name"] for r in rows]     leds = {}     box_ok = bool(target and target in targets)     leds["relay"] = {"label": "Relay", "state": "ok" if targets else "err",@@ -694,14 +726,13 @@ def probe_targets():     if _targets_cache["rows"] and time.time() - _targets_cache["t"] < 30:         return {"targets": _targets_cache["rows"], "cached": True,                 "_hint": "Cached for 30s; the page paints from names alone."}-    rows = []-    for name in get_targets():-        r = ab(name, "altium_readiness", {}, timeout=10)-        rows.append({"name": name, "altiumRunning": bool(r.get("running")), "windows": 0,-                     "altiumVersion": r.get("adVersion"),-                     "responding": not bool(r.get("error"))})+    # Windows machines only, and no verb sent to any of them: listing must not wake or launch anything (#33)+    all_rows, local = machines.machines(max_age=0)+    chosen, why = machines.choose(None, all_rows, local, machines.picked())+    rows = [{"name": r["name"], "chosen": r["name"] == chosen, "responding": r["reachable"]}+            for r in machines.windows_machines(all_rows)]     _targets_cache.update(t=time.time(), rows=rows)-    return {"targets": rows,+    return {"targets": rows, "chosen": chosen, "chosenBecause": why,             "_hint": "Pick where Altium should run. The bridge only drives instances IT launched, "                      "so a Altium the user opened on any box is never parked, bounced, or badged."} @@ -930,7 +961,7 @@ def _launch_watched(target):     """Launch with a live LED: 'launching...' then 'waiting for the licence and     the resident agent...' then back to the real status once it is up."""     try:-        set_activity("running", "launching Altium in the background (about 60s)...", target)+        set_activity("running", f"launching Altium Designer on {target} (about 60s)...", target)         r = ab(target, "altium_launch", {}, timeout=240)         for _ in range(30):             time.sleep(3)@@ -1165,11 +1196,13 @@ class Handler(BaseHTTPRequestHandler):             return self._sse()         if path == "/api/targets":             return self._json(probe_targets())+        if path == "/api/here":+            return self._json(works_here.status())         m = re.match(r"^/api/verb_times(?:/([^/]+))?$", path)         if m:             # The verb-times panel (fusion parity). Proxied per target so the             # numbers are THAT box's measured history, not this container's.-            t = unquote(m.group(1) or "") or (get_targets() or ["-"])[0]+            t = machines.resolve(unquote(m.group(1) or "") or None)[0]             r = ab(t, "altium_verb_times", {}, timeout=30)             return self._json({"target": t, "verbs": r.get("verbs") or {},                                "error": r.get("error") or None})@@ -1223,9 +1256,34 @@ class Handler(BaseHTTPRequestHandler):         body = self._read_body()         if path == "/api/action":             name = body.get("action") or ""-            target = body.get("target") or (get_targets() or ["-"])[0]-            log(f"action {name} target={target}")+            target, why = machines.resolve(body.get("target") or None)+            log(f"action {name} target={target} ({why})")+            if not target:+                rows, local = machines.machines()+                return self._json({"success": False, "errorCode": "no_machine_picked",+                                   "error": "no Windows machine is chosen for Altium yet",+                                   "machine": machines.picker_payload(rows, local)})             return self._json(do_action(target, name, body.get("args")))+        if path == "/api/here":+            log(f"here {body.get('action')}")+            return self._json(works_here.action(body.get("action") or "", body.get("args") or {}))+        if path == "/api/pick":+            # the user clicked a machine: the only way one is ever remembered (#33)+            rows, local = machines.machines(max_age=0)+            wins = {r["name"].lower(): r["name"] for r in machines.windows_machines(rows)}+            name = wins.get(str(body.get("name") or "").lower())+            if not name:+                return self._json({"success": False, "errorCode": "not_a_windows_machine",+                                   "error": f"'{body.get('name')}' is not a reachable Windows machine on this account",+                                   "machine": machines.picker_payload(rows, local)}, 400)+            machines.remember(name)+            _targets_cache["rows"] = None+            out = {"success": True, "machine": name, "remembered": True}+            if body.get("launch"):+                out["launch"] = do_action(name, "launch", {})+                out["caption"] = f"Launching Altium Designer on {name}..."+            _push_state(name)+            return self._json(out)         if path == "/ui/toast":             msg, kind = body.get("message") or "", body.get("kind") or "info"             log(f"toast [{kind}] {msg}")@@ -1563,7 +1621,7 @@ def main():      if cmd == "open":         url = proxy_url(port)-        box = target or (get_targets() or [""])[0]+        box = target  # pup opens on the computer the user is at (the local one) unless named         if "--webview" in argv:             print(json.dumps({"url": url, "surface": "webview",                               "_hint": "Open this URL in a Hydrogen webview panel (the `webview` skill); "
dashboard/machines.pyadded+134
@@ -0,0 +1,134 @@+"""Which Windows machine the Altium dashboard drives (altium-bridge#33).++Altium Designer runs only on Windows. The dashboard used to drive the first machine Adom Bridge listed, and from a+Linux computer that started Altium on someone else's laptop without a click. The rule now:++- a machine the user picked (by clicking it on the dashboard) is remembered and used;+- otherwise the computer the dashboard runs on, when it is a Windows PC (the user is sitting at it);+- otherwise nothing: the dashboard shows a picker and calls no Altium verb anywhere until the user clicks one.++Nothing here ever picks a machine on the user's behalf.+"""+import json+import os+import subprocess+import time+from pathlib import Path++ADD_WINDOWS_URL = "https://wiki.adom.inc/adom/adom-bridge"+PICKER_TEXT = "Altium Designer runs on Windows. Run it on one of your Windows machines:"+NO_WINDOWS_TEXT = "Altium Designer needs a Windows computer with Adom Bridge. Here's how to add one."++_cache = {"t": 0.0, "rows": None, "local": None}+++def _state_dir() -> Path:+    base = os.environ.get("XDG_STATE_HOME") or os.path.join(os.path.expanduser("~"), ".local", "state")+    return Path(base) / "altium-dashboard"+++def pick_file() -> Path:+    return _state_dir() / "machine.json"+++def _run_json(args, timeout=30):+    try:+        p = subprocess.run(["adom-bridge", *args], capture_output=True, text=True, timeout=timeout)+        return json.loads(p.stdout or "{}")+    except Exception:+        return {}+++def rows_from_targets(d) -> list:+    """`adom-bridge targets` rows as {name, hostname, os, reachable}. Pure."""+    out = []+    for t in (d.get("targets") or []):+        if not t.get("name"):+            continue+        out.append({"name": t["name"], "hostname": t.get("hostname") or t["name"], "os": t.get("os"),+                    "reachable": bool(t.get("reachable"))})+    return out+++def machines(max_age=10.0):+    """Every machine on the account, and the hostname of the computer this dashboard talks to (its local ab)."""+    if _cache["rows"] is not None and time.time() - _cache["t"] < max_age:+        return _cache["rows"], _cache["local"]+    rows = rows_from_targets(_run_json(["targets"]))+    local = _run_json(["status"], timeout=15).get("hostname") or None+    _cache.update(t=time.time(), rows=rows, local=local)+    return rows, local+++def local_os(rows, local_host):+    """The OS of the computer the dashboard runs beside. ADOM_ALTIUM_DASHBOARD_LOCAL_OS overrides it, so the Linux+    behaviour can be tested from a Windows PC. Pure apart from that variable."""+    forced = os.environ.get("ADOM_ALTIUM_DASHBOARD_LOCAL_OS")+    if forced:+        return forced.strip().lower()+    if not local_host:+        return None+    for r in rows:+        if r["hostname"].lower() == local_host.lower() or r["name"].lower() == local_host.lower():+            return (r.get("os") or "").lower() or None+    return None+++def windows_machines(rows):+    return [r for r in rows if (r.get("os") or "").lower() == "windows" and r.get("reachable")]+++def picked():+    try:+        return json.loads(pick_file().read_text(encoding="utf-8")).get("name") or None+    except Exception:+        return None+++def remember(name):+    """Only ever called for a machine the user clicked."""+    d = _state_dir()+    d.mkdir(parents=True, exist_ok=True)+    pick_file().write_text(json.dumps({"name": name, "pickedAt": time.strftime("%Y-%m-%dT%H:%M:%S")}), encoding="utf-8")+++def choose(requested, rows, local_host, remembered):+    """(machine or None, why). Pure: the whole rule lives here.++    requested  a machine named explicitly (a pill the user clicked, or `--target` from the CLI)+    remembered the machine the user last clicked on the dashboard+    """+    wins = {r["name"].lower(): r["name"] for r in windows_machines(rows)}+    listed = {r["name"].lower(): r["name"] for r in rows}+    if requested and requested != "-":+        name = listed.get(requested.lower())+        return (name, "named") if name else (None, "not_listed")+    if remembered and remembered.lower() in wins:+        return wins[remembered.lower()], "picked"+    if local_os(rows, local_host) == "windows":+        for r in rows:+            if local_host and (r["hostname"].lower() == local_host.lower() or r["name"].lower() == local_host.lower()):+                return r["name"], "this_computer"+    return None, "no_machine_picked"+++def resolve(requested=None):+    rows, local = machines()+    return choose(requested, rows, local, picked())+++def picker_payload(rows, local_host):+    """What the dashboard shows when no machine is chosen. Pure."""+    wins = windows_machines(rows)+    return {+        "needsMachine": True,+        "localOs": local_os(rows, local_host),+        "message": PICKER_TEXT if wins else NO_WINDOWS_TEXT,+        "windowsMachines": [{"name": r["name"], "label": f"Launch on {r['name']}"} for r in wins],+        "noWindowsMachine": not wins,+        "addWindowsUrl": ADD_WINDOWS_URL,+        "_hint": ("Nothing runs until the user clicks a machine: POST /api/pick {name, launch:true}. "+                  "Never pick one for them." if wins else+                  "No Windows machine with Adom Bridge is on this account. Point the user at addWindowsUrl; "+                  "do not call altium_* verbs, they cannot succeed."),+    }
dashboard/ui/index.html+112−16
@@ -303,6 +303,12 @@ dialog.settings:focus{outline:none} main a{color:var(--accent);text-decoration:none;border-bottom:1px solid rgba(0,184,177,.35)} main a:hover{border-bottom-color:var(--accent)} #targets{display:flex;gap:8px;margin:0 0 14px;flex-wrap:wrap}+.machine-card .led-sub{margin:4px 0 10px}+.machine-card .btnrow{flex-wrap:wrap}+#needsWin.waiting{opacity:.45;pointer-events:none}+.here-form{display:flex;flex-direction:column;gap:6px;margin:10px 0 4px}+.here-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}+.here-form input{box-sizing:border-box;height:34px;line-height:normal;width:100%;background:var(--elevated);border:1px solid var(--border);border-radius:8px;color:var(--text);padding:6px 10px;font:12.5px 'JetBrains Mono',monospace;min-width:0} .tpill{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--text-body);cursor:pointer;font:500 13.5px 'Satoshi',sans-serif;transition:background .15s ease,border-color .15s ease,color .15s ease,transform .06s ease} .tpill:hover{border-color:#4b5563;background:var(--elevated);color:var(--text)} .tpill:active{transform:translateY(1px) scale(.97)}@@ -342,9 +348,40 @@ main a:hover{border-bottom-color:var(--accent)}   <div class="leds" id="ledRow" style="margin-top:16px"></div>   <div id="ledDetail" class="led-detail-pop" style="display:none"></div> -  <h2>Boxes &amp; actions</h2>+  <!-- altium-bridge#33: which Windows machine runs Altium. Nothing launches until the user clicks one. -->+  <div id="machineCard" class="card machine-card" style="display:none;margin-top:16px"></div>++  <h2>Works here</h2>+  <div class="note">These run in this workspace, with no Altium Designer and no Windows machine.</div>+  <div class="grid here-grid">+    <div class="card" id="a365Card">+      <div class="led-label">Altium 365</div>+      <div class="led-sub" id="a365State">checking...</div>+      <div class="here-form">+        <input id="a365Workspace" placeholder="workspace, e.g. acme.365.altium.com" data-tip="Your Altium 365 workspace address">+        <input id="a365Token" type="password" placeholder="developer token (Admin, Developer)" data-tip="A token made in the workspace web UI under Admin, Developer. Stored only in this workspace; never shown again.">+        <input id="a365Client" placeholder="or an Altium OAuth client id" data-tip="An Altium-issued public OAuth client id. Signs in through your browser instead of a token.">+      </div>+      <div class="btnrow">+        <button class="btn" id="btnA365Save">Connect</button>+        <button class="btn" id="btnA365Library">Show my cloud library</button>+        <button class="btn" id="btnA365Out">Sign out</button>+      </div>+      <div class="barlabel" id="a365Out"></div>+    </div>+    <div class="card" id="lbrCard">+      <div class="led-label">Library conversion (Adom LBR)</div>+      <div class="led-sub">Convert Altium .SchLib, .PcbLib and .IntLib to and from KiCad and EAGLE, and wiki parts into Altium libraries, without Altium Designer.</div>+      <div class="btnrow"><button class="btn" id="btnLbr">Open Adom LBR</button></div>+      <div class="barlabel" id="lbrOut"></div>+    </div>+  </div>++  <div id="needsWin">+  <h2>Needs a Windows machine</h2>+  <div class="note" id="needsWinNote">Everything below drives Altium Designer on the Windows machine it runs on.</div>   <div id="targets"></div>-  <div class="note" id="boxnote" style="display:none">Many boxes, one bridge: pick where Altium should run. Everything the bridge does happens in the background; it tells you before it ever brings a window forward.</div>+  <div class="note" id="boxnote" style="display:none">Switch the machine Altium runs on. Everything the bridge does happens in the background; it tells you before it ever brings a window forward.</div>   <div class="btnrow">     <button class="btn primary" id="btnSetup">Setup</button>     <button class="btn" id="btnLaunch">Launch Altium</button>@@ -378,6 +415,7 @@ main a:hover{border-bottom-color:var(--accent)}     <button class="btn" id="btnVerbTimes" style="font-size:12.5px" data-tip="Measured run times per verb from this box's append-only run log. p90 is the column for hunting slow paths.">refresh</button></h2>   <div class="note">Every dispatch is logged with its outcome; these numbers converge just by the bridge being used. p50 15s beside p90 400s is two code paths wearing one name.</div>   <div class="card" id="verbTimes" style="overflow-x:auto"><div class="note">not loaded - press refresh</div></div>+  </div>    <h2>Copy-paste prompts for your AI</h2>   <div id="prompts"></div>@@ -493,29 +531,85 @@ async function api(path,opts){const r=await fetch(path,opts);return r.json();} async function act(action,args){return api('api/action',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({action,target:curTarget||undefined,args:args||{}})});}  let lastStatus=null;-let curTarget=localStorage.getItem('kdTarget')||'';+// altium-bridge#33: the SERVER says which machine is chosen (one the user clicked, or this PC when it is Windows).+// The page never picks one itself: it used to take the first box listed, which launched Altium on someone else's laptop.+let curTarget=''; let targetsCache=[]; // The adom.cloud proxy STRIPS query strings on sub-paths, so target rides the PATH. function statusUrl(force){return 'api/status/'+encodeURIComponent(curTarget||'-')+(force?'/force':'');}+// ---- altium-bridge#33: choose the Windows machine; "Works here" -------------------------------------------+async function pickMachine(name,launch){+  const r=await api('api/pick',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({name,launch})});+  if(!r.success){toast(r.error||('could not choose '+name),'err');return;}+  curTarget=r.machine;+  if(launch){const c=r.caption||('Launching Altium Designer on '+name+'...');toast(c);+    const card=$('#machineCard');card.style.display='';card.innerHTML='<div class="led-label"></div>';card.firstChild.textContent=c;}+  else toast('Altium runs on '+name+' now');+  loadTargets();refresh(true);+}+function renderMachine(st){+  const card=$('#machineCard'),m=st&&st.machine;+  if(st&&st.target&&!curTarget)curTarget=st.target;+  $('#needsWin').classList.toggle('waiting',!!(m&&m.needsMachine));+  if(!(m&&m.needsMachine)){if(card.dataset.kind==='picker'){card.style.display='none';card.dataset.kind='';}return;}+  card.dataset.kind='picker';card.style.display='';card.innerHTML='';+  const h=document.createElement('div');h.className='led-label';h.textContent=m.message;card.appendChild(h);+  if(m.noWindowsMachine){+    const a=document.createElement('a');a.href=m.addWindowsUrl;a.target='_blank';a.rel='noopener';a.textContent='How to add a Windows computer with Adom Bridge';+    const d=document.createElement('div');d.className='led-sub';d.appendChild(a);card.appendChild(d);return;+  }+  const sub=document.createElement('div');sub.className='led-sub';sub.textContent='Nothing starts until you click one. Your choice is remembered.';card.appendChild(sub);+  const row=document.createElement('div');row.className='btnrow';+  for(const w of m.windowsMachines){const b=document.createElement('button');b.className='btn primary';b.textContent=w.label;b.onclick=()=>pickMachine(w.name,true);row.appendChild(b);}+  card.appendChild(row);+}+async function here(action,args){return api('api/here',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({action,args:args||{}})});}+async function loadHere(){+  try{const d=await api('api/here');const a=d.a365||{};+    $('#a365State').textContent=!a.available?('Not available in this workspace: '+(a.error||'unknown')):+      a.signedIn?('Connected to '+(a.workspace||'your workspace')):a.configured?('Workspace '+a.workspace+' saved; not signed in yet'):'Not connected yet';+    if(a.workspace&&!$('#a365Workspace').value)$('#a365Workspace').value=a.workspace;+    $('#btnLbr').textContent=(d.lbr&&d.lbr.installed)?'Open Adom LBR':'Install Adom LBR first';+  }catch(e){$('#a365State').textContent='could not read: '+e;}+}+$('#btnA365Save').onclick=async()=>{+  const workspace=$('#a365Workspace').value.trim(),token=$('#a365Token').value.trim(),clientId=$('#a365Client').value.trim();+  if(!workspace){toast('enter your Altium 365 workspace first','err');return;}+  if(clientId){+    const r=await here('a365_sign_in',{workspace,clientId});+    if(!r.authorizeUrl){toast(r.error||'sign-in did not start','err');return;}+    window.open(r.authorizeUrl,'_blank','noopener');$('#a365Out').textContent='Finish signing in in your browser...';+    for(let i=0;i<100;i++){await new Promise(z=>setTimeout(z,3000));const st=await here('a365_sign_in_status');+      if(st.status==='authorized'){$('#a365Out').textContent='Signed in.';break;}+      if(st.status==='error'||st.status==='cancelled'){$('#a365Out').textContent='Sign-in '+st.status+(st.error?': '+st.error:'');break;}}+  }else{+    const r=await here('a365_configure',token?{workspace,token}:{workspace});+    $('#a365Token').value='';$('#a365Out').textContent=r.success===false?(r.error||'not saved'):'Saved.';+  }+  loadHere();+};+$('#btnA365Library').onclick=async()=>{$('#a365Out').textContent='reading your cloud library...';+  const r=await here('a365_library');+  $('#a365Out').textContent=r.success===false?(r.error||'could not read the library'):+    ((r.name||'Library')+': '+(r.components!=null?r.components:(r.componentCount!=null?r.componentCount:'?'))+' components');};+$('#btnA365Out').onclick=async()=>{const r=await here('a365_sign_out');$('#a365Out').textContent=r.success===false?(r.error||'not signed out'):'Signed out.';loadHere();};+$('#btnLbr').onclick=async()=>{const r=await here('lbr_open');+  if(r.url){window.open(r.url,'_blank','noopener');$('#lbrOut').textContent='Adom LBR is open.';}+  else $('#lbrOut').textContent=r.install?('Not installed: run '+r.install):(r.error||'could not open Adom LBR');}; async function loadTargets(){   try{     const d=await api('api/targets');     targetsCache=d.targets||[];+    curTarget=d.chosen||'';     const el=$('#targets');el.innerHTML='';-    $('#boxnote').style.display=targetsCache.length>1?'':'none';-    const known=targetsCache.map(t=>t.name);-    if(targetsCache.length&&(!curTarget||!known.includes(curTarget))){-      if(curTarget)toast(curTarget+' is no longer connected - switching to '+known[0]);-      curTarget=(targetsCache.find(t=>t.altiumRunning)||targetsCache[0]).name;-      localStorage.setItem('kdTarget',curTarget);-    }+    // pills only once a machine is chosen; before that the machine card is the picker+    $('#boxnote').style.display=(curTarget&&targetsCache.length>1)?'':'none';+    if(!curTarget)return;     for(const t of targetsCache){       const b=document.createElement('button');b.className='tpill'+(t.name===curTarget?' active':'');-      const resp=(t.responding===false)?'not responding':(t.altiumRunning?'Altium is running here':'Altium is closed here');-      b.setAttribute('data-tip',resp+(t.altiumVersion?(' - Altium '+t.altiumVersion):''));-      if(t.responding===false)b.style.opacity='.55';-      b.innerHTML='<span class="tdot'+(t.altiumRunning?' on':'')+'"></span>'+t.name;-      b.onclick=()=>{curTarget=t.name;localStorage.setItem('kdTarget',curTarget);loadTargets();refresh();toast('switched to '+t.name)};+      b.setAttribute('data-tip',t.name===curTarget?'Altium runs on this machine':'Run Altium on '+t.name+' instead (launches nothing by itself)');+      b.innerHTML='<span class="tdot'+(t.name===curTarget?' on':'')+'"></span>'+t.name;+      b.onclick=()=>pickMachine(t.name,false);       el.appendChild(b);     }   }catch(e){}@@ -550,7 +644,8 @@ function renderLeds(st){     g.appendChild(el);   }   if(bsChanged)busySave(bs);-  const chip=$('#chipName');if(chip){chip.textContent=st.target?('target: '+st.target):'no bridge target';}+  const chip=$('#chipName');if(chip){chip.textContent=st.target?('machine: '+st.target):'no machine chosen';}+  renderMachine(st);   const dot=$('#chipDot');if(dot){const ok=(leds.relay||{}).state==='ok'&&(leds.box||{}).state==='ok';dot.className='tdot'+(ok?' on':'');} } // tap-to-expand detail: prose, timestamps, and for a red pill the NEXT STEP@@ -1008,6 +1103,7 @@ buildSay(); buildSurfaces(); refresh(); loadTargets();+loadHere(); setInterval(()=>refresh(),15000);setInterval(loadTargets,60000); </script> </body>
dashboard/works_here.pyadded+204
@@ -0,0 +1,204 @@+"""The dashboard's "Works here" section (altium-bridge#33): what runs in this workspace, with no Altium Designer and+no Windows machine.++- Altium 365 (the altium_a365_* lane: workspace sign-in, status, the cloud library). The bridge's cloud lane has no+  Altium Designer dependency, so a Linux build of the same bridge serves it here. The build is a release asset; the+  package carries only linux-bridge.json (version, file, sha256), and the binary is fetched and checked on first use.+- Library conversion with Adom LBR (Altium .SchLib/.PcbLib/.IntLib to and from KiCad and EAGLE), through the+  `adom-lbr` CLI when it is installed.+"""+import atexit+import hashlib+import json+import os+import shutil+import socket+import stat+import subprocess+import time+import urllib.request+from pathlib import Path++HERE = Path(__file__).resolve().parent+A365_VERBS = {+    "a365_status": "a365_status",+    "a365_configure": "a365_configure",+    "a365_sign_in": "a365_oauth_begin",+    "a365_sign_in_status": "a365_oauth_status",+    "a365_sign_in_cancel": "a365_oauth_cancel",+    "a365_library": "a365_library_overview",+    "a365_sign_out": "a365_logout",+}+_proc = {"p": None, "port": None}+++def _cache_dir() -> Path:+    base = os.environ.get("XDG_CACHE_HOME") or os.path.join(os.path.expanduser("~"), ".cache")+    return Path(base) / "adom-altium-bridge"+++def release_info():+    """linux-bridge.json beside this file: {version, file, sha256, size}. None in a dev tree without one."""+    try:+        return json.loads((HERE / "linux-bridge.json").read_text(encoding="utf-8"))+    except Exception:+        return None+++def _sha256(path: Path) -> str:+    h = hashlib.sha256()+    with open(path, "rb") as f:+        for chunk in iter(lambda: f.read(1 << 20), b""):+            h.update(chunk)+    return h.hexdigest()+++def binary():+    """The Linux bridge, fetched once per version and checked against the release's sha256. (path, error)."""+    dev = os.environ.get("ADOM_ALTIUM_LINUX_BRIDGE")+    if dev:+        return (Path(dev), None) if Path(dev).is_file() else (None, f"ADOM_ALTIUM_LINUX_BRIDGE={dev} does not exist")+    info = release_info()+    if not info:+        return None, "this install has no Linux bridge record (linux-bridge.json)"+    dest = _cache_dir() / "bin" / f"altium-bridge-{info['version']}"+    if dest.is_file() and _sha256(dest) == info["sha256"]:+        return dest, None+    url = f"https://wiki.adom.inc/download/adom/altium-bridge/{info['version']}/{info['file']}"+    req = urllib.request.Request(url, headers={"User-Agent": "altium-dashboard"})+    key = Path("/var/run/adom/api-key")+    if key.is_file():  # an insiders build is served to signed-in workspaces only+        req.add_header("Authorization", "Bearer " + key.read_text().strip())+    try:+        dest.parent.mkdir(parents=True, exist_ok=True)+        tmp = dest.with_suffix(".part")+        with urllib.request.urlopen(req, timeout=120) as r, open(tmp, "wb") as f:+            shutil.copyfileobj(r, f)+        if _sha256(tmp) != info["sha256"]:+            tmp.unlink(missing_ok=True)+            return None, "the downloaded Linux bridge did not match its release checksum; nothing was run"+        tmp.chmod(tmp.stat().st_mode | stat.S_IXUSR)+        tmp.replace(dest)+        return dest, None+    except Exception as e:+        return None, f"could not fetch the Linux bridge: {str(e)[:160]}"+++def _free_port() -> int:+    s = socket.socket()+    s.bind(("127.0.0.1", 0))+    port = s.getsockname()[1]+    s.close()+    return port+++def _post(port, verb, args, timeout):+    body = json.dumps({"command": verb, "args": args or {}}).encode()+    req = urllib.request.Request(f"http://127.0.0.1:{port}/command", data=body,+                                 headers={"Content-Type": "application/json"})+    with urllib.request.urlopen(req, timeout=timeout) as r:+        return json.loads(r.read())+++def _ping(port) -> bool:+    try:+        with urllib.request.urlopen(f"http://127.0.0.1:{port}/ping", timeout=1):+            return True+    except Exception:+        return False+++def _record() -> Path:+    return _cache_dir() / "linux-bridge.run.json"+++def _ensure_bridge():+    p = _proc["p"]+    if p is not None and p.poll() is None:+        return _proc["port"], None+    path, err = binary()+    if err:+        return None, err+    # a bridge from an earlier dashboard process (restarted, or killed without its exit hook) is reused, not+    # doubled; one from another version is stopped+    try:+        rec = json.loads(_record().read_text())+        if rec.get("port") and _ping(rec["port"]):+            if rec.get("path") == str(path):+                _proc["port"] = rec["port"]+                return rec["port"], None+            if rec.get("pid"):+                os.kill(int(rec["pid"]), 15)+    except Exception:+        pass+    port = _free_port()+    _cache_dir().mkdir(parents=True, exist_ok=True)+    log = open(_cache_dir() / "linux-bridge.log", "ab")+    try:+        _proc["p"] = subprocess.Popen([str(path), "--port", str(port)], stdout=log, stderr=log,+                                      stdin=subprocess.DEVNULL, start_new_session=True)+    except OSError as e:+        return None, f"the Linux bridge would not start on this machine: {e}"+    _proc["port"] = port+    for _ in range(50):+        if _ping(port):+            _record().write_text(json.dumps({"pid": _proc["p"].pid, "port": port, "path": str(path)}))+            return port, None+        if _proc["p"].poll() is not None:+            return None, "the Linux bridge exited at start (see ~/.cache/adom-altium-bridge/linux-bridge.log)"+        time.sleep(0.1)+    return None, "the Linux bridge did not answer within 5 s"++[email protected]+def _stop():+    p = _proc["p"]+    if p is not None and p.poll() is None:+        p.terminate()+++def a365(action, args=None, timeout=90):+    verb = A365_VERBS.get(action)+    if not verb:+        return {"success": False, "errorCode": "unknown_action", "error": f"unknown Altium 365 action '{action}'"}+    port, err = _ensure_bridge()+    if err:+        return {"success": False, "errorCode": "linux_bridge_unavailable", "error": err}+    try:+        return _post(port, verb, args, timeout)+    except Exception as e:+        return {"success": False, "errorCode": "linux_bridge_error", "error": str(e)[:200]}+++def lbr_open():+    """Start (or find) the Adom LBR dashboard and hand back its URL."""+    exe = shutil.which("adom-lbr")+    if not exe:+        return {"success": False, "errorCode": "adom_lbr_missing", "error": "Adom LBR is not installed in this workspace",+                "install": "adom-wiki pkg install adom/adom-lbr"}+    try:+        p = subprocess.run([exe, "dashboard", "serve", "--print-url"], capture_output=True, text=True, timeout=60)+    except Exception as e:+        return {"success": False, "errorCode": "adom_lbr_error", "error": str(e)[:200]}+    url = next((w for w in (p.stdout or "").split() if w.startswith("http")), None)+    return {"success": bool(url), "url": url, "error": None if url else (p.stderr or p.stdout or "")[:200]}+++def status():+    """The section's state: cheap, and never starts anything but the local Linux bridge."""+    a = a365("a365_status", timeout=20)+    return {+        "a365": {"available": a.get("errorCode") not in ("linux_bridge_unavailable", "linux_bridge_error"),+                 "configured": bool(a.get("configured")), "signedIn": bool(a.get("hasToken")),+                 "workspace": a.get("workspace"), "error": a.get("error") or None},+        "lbr": {"installed": bool(shutil.which("adom-lbr")), "install": "adom-wiki pkg install adom/adom-lbr"},+        "_hint": "These run in this workspace, with no Altium Designer and no Windows machine: "+                 "POST /api/here {action: a365_status|a365_configure|a365_sign_in|a365_sign_in_status|"+                 "a365_library|a365_sign_out|lbr_open, args}.",+    }+++def action(name, args=None):+    if name == "lbr_open":+        return lbr_open()+    return a365(name, args)
dev-skills/altium-bridge-test/test_dashboard_machines.pyadded+71
@@ -0,0 +1,71 @@+"""The dashboard's machine rule (altium-bridge#33): never drive a machine the user did not choose.++Run: python3 dev-skills/altium-bridge-test/test_dashboard_machines.py+"""+import os+import sys+import unittest+from pathlib import Path++sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "dashboard"))+import machines  # noqa: E402++TARGETS = {"targets": [+    {"name": "AdomLapper", "hostname": "AdomLapper", "os": "Windows", "reachable": True},+    {"name": "arav-rog", "hostname": "ARAV-ROG", "os": "Windows", "reachable": "mesh"},+    {"name": "m5-ubuntu", "hostname": "m5-ubuntu", "os": "Linux", "reachable": True},+    {"name": "winvm", "hostname": "winvm", "os": None, "reachable": "mesh"},+    {"name": "old-pc", "hostname": "old-pc", "os": "Windows", "reachable": False},+]}+++class MachineRule(unittest.TestCase):+    def setUp(self):+        os.environ.pop("ADOM_ALTIUM_DASHBOARD_LOCAL_OS", None)+        self.rows = machines.rows_from_targets(TARGETS)++    def test_linux_with_no_pick_drives_nothing(self):+        self.assertEqual(machines.choose(None, self.rows, "m5-ubuntu", None), (None, "no_machine_picked"))+        self.assertEqual(machines.choose("-", self.rows, "m5-ubuntu", None), (None, "no_machine_picked"))++    def test_the_picker_lists_reachable_windows_machines_only(self):+        p = machines.picker_payload(self.rows, "m5-ubuntu")+        self.assertEqual([m["name"] for m in p["windowsMachines"]], ["AdomLapper", "arav-rog"])+        self.assertEqual(p["windowsMachines"][0]["label"], "Launch on AdomLapper")+        self.assertEqual(p["message"], machines.PICKER_TEXT)+        self.assertEqual(p["localOs"], "linux")++    def test_a_clicked_machine_is_used(self):+        self.assertEqual(machines.choose(None, self.rows, "m5-ubuntu", "arav-rog"), ("arav-rog", "picked"))+        # a remembered machine that is gone or no longer Windows is not used+        self.assertEqual(machines.choose(None, self.rows, "m5-ubuntu", "gone-pc")[0], None)+        self.assertEqual(machines.choose(None, self.rows, "m5-ubuntu", "old-pc")[0], None)++    def test_a_windows_pc_drives_itself_without_a_pick(self):+        self.assertEqual(machines.choose(None, self.rows, "adomlapper", None), ("AdomLapper", "this_computer"))++    def test_never_the_first_machine_listed(self):+        # an unknown local computer (a cloud container) gets the picker, not AdomLapper+        self.assertEqual(machines.choose(None, self.rows, None, None), (None, "no_machine_picked"))++    def test_an_explicit_name_is_honoured_when_listed(self):+        self.assertEqual(machines.choose("adomlapper", self.rows, "m5-ubuntu", None), ("AdomLapper", "named"))+        self.assertEqual(machines.choose("nope", self.rows, "m5-ubuntu", None), (None, "not_listed"))++    def test_no_windows_machine_says_how_to_add_one(self):+        rows = machines.rows_from_targets({"targets": [{"name": "m5-ubuntu", "os": "Linux", "reachable": True}]})+        p = machines.picker_payload(rows, "m5-ubuntu")+        self.assertTrue(p["noWindowsMachine"])+        self.assertEqual(p["message"], machines.NO_WINDOWS_TEXT)+        self.assertEqual(p["windowsMachines"], [])++    def test_the_test_switch_makes_a_windows_pc_behave_like_linux(self):+        os.environ["ADOM_ALTIUM_DASHBOARD_LOCAL_OS"] = "linux"+        try:+            self.assertEqual(machines.choose(None, self.rows, "AdomLapper", None), (None, "no_machine_picked"))+        finally:+            os.environ.pop("ADOM_ALTIUM_DASHBOARD_LOCAL_OS", None)+++if __name__ == "__main__":+    unittest.main()
dockbar.json+4−1
@@ -1,5 +1,8 @@ {   "dock_manifest": "1.2.0",+  "platforms": [+    "windows"+  ],   "say": [     "show me my board in altium 3d",     "open my schematic in altium",@@ -42,4 +45,4 @@       "typed": false     }   }-}\ No newline at end of file+}
install.sh+4
@@ -31,6 +31,10 @@ APPDIR="$HOME/.local/share/adom/altium-bridge" BINDIR="$HOME/.local/bin" mkdir -p "$APPDIR/dashboard/ui" "$BINDIR" cp -f "$HERE/dashboard/altium_dashboard.py" "$APPDIR/dashboard/altium_dashboard.py"+# the machine rule and the "Works here" lane (altium-bridge#33); linux-bridge.json names the Linux build to fetch+for mod in machines.py works_here.py linux-bridge.json; do+  [ -f "$HERE/dashboard/$mod" ] && cp -f "$HERE/dashboard/$mod" "$APPDIR/dashboard/$mod"+done for asset in index.html favicon.svg altium-logo.png dock-altium.svg newbie-panel.js; do   [ -f "$HERE/dashboard/ui/$asset" ] && cp -f "$HERE/dashboard/ui/$asset" "$APPDIR/dashboard/ui/$asset" done
package.json+4−1
@@ -1,6 +1,6 @@ {   "slug": "altium-bridge",-  "version": "0.2.98",+  "version": "0.2.99",   "type": "app",   "description": "Let an AI (Claude, ChatGPT, Codex or any agent) run Altium Designer for you: create symbols and footprints, place parts (also from Altium 365), wire and annotate schematics, Update PCB, set the stack-up and rules, route, pour copper, add mounting holes and stitching vias, run ERC and DRC, and make Gerbers, BOMs and STEP. Free in Hydrogen; bring your own AI and Altium licence.",   "tags": [@@ -31,6 +31,9 @@     "README.md",     "SKILL.md",     "dashboard/altium_dashboard.py",+    "dashboard/linux-bridge.json",+    "dashboard/works_here.py",+    "dashboard/machines.py",     "dashboard/ui/altium-logo.png",     "dashboard/ui/dock-altium.svg",     "dashboard/ui/favicon.svg",
page.json+1−1
@@ -4,7 +4,7 @@   "type": "app",   "title": "Altium Bridge: AI for Altium Designer",   "brief": "Let an AI (Claude, ChatGPT, Codex or any agent) run Altium Designer for you: create symbols and footprints, place parts (also from Altium 365), wire and annotate schematics, Update PCB, set the stack-up and rules, route, pour copper, add mounting holes and stitching vias, run ERC and DRC, and make Gerbers, BOMs and STEP. Free in Hydrogen; bring your own AI and Altium licence.",-  "version": "0.2.98",+  "version": "0.2.99",   "hero": {     "type": "image",     "path": "screenshots/hero.png"
scripts/release.py+25−1
@@ -57,6 +57,8 @@ INSIDERS_REL = "altium-bridge/version.json" INSIDERS_LOG = "altium-bridge/README.md" INSIDERS_URL = f"https://wiki.adom.inc/api/v1/pages/insiders/files/{INSIDERS_REL}" PUBLIC_MANIFEST = ROOT / "adom-bridge-altium-manifest.json"+LINUX_EXE = RS / "target" / "release" / "altium-bridge"+LINUX_RECORD = ROOT / "dashboard" / "linux-bridge.json"  # (zip path, source path). bridge.json at the ROOT; everything else beside the exe exactly where # the exe looks for it (agent/, resources/, extension/ relative to current_exe).@@ -219,6 +221,26 @@ def build_exe():         raise SystemExit(f"exe missing after build: {EXE}")  +def build_linux(ver):+    """The dashboard's "Works here" lane (altium-bridge#33) runs the bridge's Altium 365 verbs in the Linux+    workspace, with no Windows machine. The same source built for Linux goes up as a release asset; the package+    carries only dashboard/linux-bridge.json, and the dashboard fetches and checks the binary on first use."""+    env = {**os.environ, "CARGO_PROFILE_RELEASE_STRIP": "symbols"}+    env.pop("RUSTFLAGS", None)  # the mingw shims are for the Windows build+    subprocess.run(["cargo", "build", "--release"], cwd=RS, check=True, env=env)+    if not LINUX_EXE.exists():+        raise SystemExit(f"Linux bridge missing after build: {LINUX_EXE}")+    DIST.mkdir(exist_ok=True)+    name = f"altium-bridge-linux-x86_64-v{ver}"+    out = DIST / name+    shutil.copy2(LINUX_EXE, out)+    sha = hashlib.sha256(out.read_bytes()).hexdigest()+    LINUX_RECORD.write_text(json.dumps({"version": ver, "file": name, "sha256": sha, "size": out.stat().st_size},+                                       indent=2) + "\n")+    print(f"built {out} ({out.stat().st_size} bytes) sha256={sha[:12]}")+    return out++ SIGNER_ORG = "Adom Industries, Inc."  @@ -438,6 +460,7 @@ def ship_insiders(log_line, source):     lint_readme()     print(f"verb lint ok: {n} verbs declared and dispatchable")     build_exe()+    lpath = build_linux(ver)     assert_source_is_head(source, "before signing")     sign_pe_files(ver)     zname, zpath, sha = build_zip(ver)@@ -447,6 +470,7 @@ def ship_insiders(log_line, source):     subprocess.run(["adom-wiki", "release", "create", PAGE, ver, "--title", f"altium-bridge {ver}",                     "--changelog", "see CHANGELOG.md"], check=False, capture_output=True)     run("adom-wiki", "release", "upload", PAGE, ver, str(zpath), "--platform", "windows", "--arch", "x64")+    run("adom-wiki", "release", "upload", PAGE, ver, str(lpath), "--platform", "linux", "--arch", "x64")      print(f"== insiders manifest + release log -> {INSIDERS_PAGE} ==")     ins = manifest_for(ver, zname, zpath, sha, "insiders")@@ -494,7 +518,7 @@ def ship_insiders(log_line, source):     assert_source_is_head(source, "before the stamp push")     run("adom-wiki", "repo", "push", PAGE, "-m", f"v{ver} (insiders): {log_line}",         "--files", "CHANGELOG.md", "src/bridge.json", "src/BRIDGE_VERSION", "package.json", "page.json",-        "bridge-rs/src/main.rs", cwd=ROOT)+        "bridge-rs/src/main.rs", "dashboard/linux-bridge.json", cwd=ROOT)     stamped = wiki_head()      print("== skills pkg in lockstep (release rows share the version namespace, adom/wiki#170) ==")
src/BRIDGE_VERSION+1−1
@@ -1 +1 @@-0.2.98+0.2.99
src/bridge.json+1−1
@@ -2,7 +2,7 @@   "manifest_version": 1,   "name": "altium",   "displayName": "Altium Designer",-  "version": "0.2.98",+  "version": "0.2.99",   "description": "Drive Altium Designer from Adom: a resident DelphiScript agent (eval + the 1,100-command process launcher), the X2 -R command line, UIA over the VCL shell, dialogs by PID, screenshots of every Altium window, and Altium 365.",   "homepage": "https://wiki.adom.inc/adom/altium-bridge",   "docs": "https://wiki.adom.inc/adom/altium-bridge",