← Commit history

0.9.259: PAYLOAD_VERSION derives from the payload file (hardcoded 0.9.1 pinned deploys, reveal_library never shipped)

Colby Knox ·9120b6f755 ·1mo ago ·parent 6fe134b
4 files changed +25−8
BRIDGE_VERSION+1−1
@@ -1 +1 @@-0.9.258\ No newline at end of file+0.9.259\ No newline at end of file
adom-bridge-kicad-manifest.json+5−5
@@ -1,15 +1,15 @@ {   "manifest_version": 1,   "name": "kicad",-  "version": "0.9.258",-  "url": "https://wiki.adom.inc/download/adom/kicad-bridge/0.9.258/adom-bridge-kicad-v0.9.258.zip",-  "sha256": "8770e221c66b27ec4ee37a0bd426cd6939ee6fef5439796b50fcf470000ec568",-  "size": 454669,+  "version": "0.9.259",+  "url": "https://wiki.adom.inc/download/adom/kicad-bridge/0.9.259/adom-bridge-kicad-v0.9.259.zip",+  "sha256": "a32aa98f06a11fb4cfa211d49cd8eaa87024a2c16fe0c2c60e4c36efd7506451",+  "size": 454884,   "verbPrefixes": [     "kicad_"   ],   "healthEndpoint": "/status",-  "released_at": "2026-08-27T21:23:18Z",+  "released_at": "2026-08-27T21:26:22Z",   "hero": "https://wiki.adom.inc/blob/app/kicad-bridge/kicad-hero.png",   "languages": [     "Python",
bridge.json+1−1
@@ -2,7 +2,7 @@   "manifest_version": 1,   "name": "kicad",   "displayName": "KiCad EDA",-  "version": "0.9.258",+  "version": "0.9.259",   "description": "Reverse bridge for KiCad \u2014 board/schematic introspection, lint via kicad-cli, plugin install, multi-instance probe, in-process DRC.",   "homepage": "https://wiki.adom.inc/adom/adom-bridge",   "author": "Adom Inc.",
plugin_install.py+18−1
@@ -49,7 +49,24 @@ from typing import Optional # Bridge version we're shipping. Bumped together with adom_bridge.py's # __version__ — version drift between this file and the payload would # cause an infinite reinstall loop; the runtime asserts they match.-PAYLOAD_VERSION = "0.9.1"+def _payload_version() -> str:+    """The plugin payload's own __version__. Derived from the file so the+    installer can never no-op against a newer payload again: a hardcoded+    constant here silently pinned deploys to 0.9.1 while the payload shipped+    0.9.2 (reveal_library never reached any machine)."""+    try:+        import re as _re+        from pathlib import Path as _P+        _t = (_P(__file__).parent / "plugin_payload" / "adom_bridge.py").read_text(encoding="utf-8")+        _m = _re.search(r'__version__ = "([^"]+)"', _t)+        if _m:+            return _m.group(1)+    except Exception:+        pass+    return "0.9.2"+++PAYLOAD_VERSION = _payload_version()  # Module-level cache: install runs at most ONCE per bridge process boot. # Multiple concurrent kicad_* commands hitting the bridge during startup