← Commit history

bridge 0.0.23: normalize published node path to Windows backslashes for the .bat

John Lauer ·4d0ad9c1a9 ·4mo ago ·parent 9b89741
4 files changed +10−8
bridge/BRIDGE_VERSION+1−1
@@ -1 +1 @@-0.0.22\ No newline at end of file+0.0.23\ No newline at end of file
bridge/bridge.json+1−1
@@ -2,7 +2,7 @@   "manifest_version": 1,   "name": "native-browser",   "displayName": "Adom Native Browser (Chrome + Edge)",-  "version": "0.0.22",+  "version": "0.0.23",   "description": "Drives the user's REAL signed-in Chrome/Edge via an installed extension (native-messaging transport). Mirrors the puppeteer bridge's verb surface as nbrowser_* but runs inside the actual logged-in profile, so cookies/SSO/saved-logins/captcha human-trust all work. The bridge binds an ephemeral loopback port (PORTS.md compliant) and writes a discovery file; the native-messaging host pumps stdio <-> this bridge; the extension never touches a TCP port.",   "homepage": "https://wiki.adom.inc/adom/adom-browser-extension",   "author": "Adom Inc.",
bridge/server.js+3−1
@@ -868,7 +868,9 @@ function writeHostFile(hostPort) {   fs.mkdirSync(path.dirname(HOSTFILE), { recursive: true });   fs.writeFileSync(HOSTFILE, JSON.stringify({ host: '127.0.0.1', hostPort, pid: process.pid, version: VERSION }));   // Publish the Node AD gave us so the Chrome-launched host can reuse it (see NODEPATHFILE note above).-  try { fs.writeFileSync(NODEPATHFILE, process.execPath); } catch {}+  // Normalize to native Windows backslashes - node-path.txt is consumed by a .bat, and a quoted+  // forward-slash exe path is not reliably executable in cmd.exe.+  try { fs.writeFileSync(NODEPATHFILE, process.execPath.split('/').join('\\')); } catch {} } // PID-aware cleanup: ONLY delete host.json if it still points at *this* process. Otherwise a churning // instance (AD respawn, a manual run, a crash-restart) deletes the discovery file that another LIVE
native-browser-bridge-manifest.json+5−5
@@ -1,8 +1,8 @@ {   "manifest_version": 1,-  "version": "0.0.22",-  "url": "native-browser-bridge-v0.0.22.bin",-  "sha256": "2e7a8dded6b7137a4f1c47b8c4ba11f46cfdfe1b494f6b3c0e576440cdfe3b30",-  "size": 28451,-  "released_at": "2026-07-02T19:43:28Z"+  "version": "0.0.23",+  "url": "native-browser-bridge-v0.0.23.bin",+  "sha256": "07b9969c6153a832ac1d5d521c952f2793e332aafd8303181f79e79099ff6360",+  "size": 28540,+  "released_at": "2026-07-02T19:49:03Z" }\ No newline at end of file