← Commit history

nb 0.5.1: taskbar progress value is PERCENT (0..100); the 0..1 bar was invisible - caught by a real capture

John Lauer ·a5cbc0c917 ·2mo ago ·parent 52dd126
5 files changed +10−10
bridge/BRIDGE_VERSION+1−1
@@ -1 +1 @@-0.5.0+0.5.1
bridge/bridge.json+1−1
@@ -2,7 +2,7 @@   "manifest_version": 1,   "name": "native-browser",   "displayName": "Adom Native Browser",-  "version": "0.5.0",+  "version": "0.5.1",   "expectedExtensionVersion": "0.2.8",   "description": "Drives the user's REAL signed-in Chrome/Edge, in two layers. Layer 1 (nb) needs NOTHING installed and works on any machine: nbrowser_open_os_window (open a URL in the user's real profile, background+flashing, the OAuth/consent path), nbrowser_os_windows, nbrowser_profiles, nbrowser_wake_profile, nbrowser_force_close. Layer 2 (nbe, the Adom Native Browser Extension) unlocks the rest: CDP driving (navigate/click/read/screenshot) inside their logged-in profile. The bridge binds an ephemeral loopback port and the native-messaging host pumps stdio <-> bridge.",   "homepage": "https://wiki.adom.inc/adom/nb-bridge",
bridge/package.json+1−1
@@ -1,6 +1,6 @@ {   "name": "adom-native-browser-bridge",-  "version": "0.5.0",+  "version": "0.5.1",   "private": true,   "description": "Native-browser bridge for Bridge (ab): layer 1 (nb) plus layer 2 via nbe, the Adom Native Browser Extension (Chrome + Edge).",   "main": "server.js",
bridge/server.js+2−2
@@ -670,7 +670,7 @@ function activityStart(id, verb, sid) {   const tick = () => {     if (!_act.has(id)) return;     const v = Math.min(0.95, (Date.now() - t0) / Math.max(avg, 250));-    taskbar(hwnd, { progress: { state: 'normal', value: v } });+    taskbar(hwnd, { progress: { state: 'normal', value: Math.round(v * 100) } });   // ab takes PERCENT (0..100) - a 0..1 value paints an invisible bar (caught by a real capture, 2026-08-23)     rec.timer = setTimeout(tick, 350);   };   tick();@@ -1729,7 +1729,7 @@ function dispatch(verb, args) {         d('nbrowser_flash_stop', 'Stop the taskbar flash.', { sessionId: 'required str' }, { ok: 'bool' }, 15, { example: { sessionId: 'work' } }),         d('nbrowser_settings', 'Read/set the dashboard settings (overlayBadge, taskbarActivity, flashMode); writes are validated and the stored literal is returned.', { set: 'optional {overlayBadge?:bool, taskbarActivity?:"progress"|"flash"|"off", flashMode?:"quiet"|"chatty"|"off"}' }, { ok: 'bool', settings: 'obj', defaults: 'obj', enums: 'obj', changed: '[str]', file: 'str' }, 15, { example: { set: { overlayBadge: false } } }),         d('nbrowser_flash_mode', 'Set auto-flash verbosity.', { mode: 'required "quiet"|"chatty"|"off"' }, { ok: 'bool', mode: 'str' }, 15, { example: { mode: 'quiet' } }),-        d('nbrowser_taskbar', 'Paint progress/overlay/flash on the window taskbar button.', { sessionId: 'required str', progress: 'optional {state,value?}', overlay: 'optional {badge}', flash: 'optional "until_focused"|"stop"' }, { ok: 'bool', applied: '[str]' }, 15, { example: { sessionId: 'work', progress: { state: 'indeterminate' } } }),+        d('nbrowser_taskbar', 'Paint progress/overlay/flash on the window taskbar button.', { sessionId: 'required str', progress: 'optional {state:"normal"|"paused"|"error"|"indeterminate"|"none", value?: PERCENT 0..100 (a 0..1 value paints an invisible bar)}', overlay: 'optional {badge}', flash: 'optional "until_focused"|"stop"' }, { ok: 'bool', applied: '[str]' }, 15, { example: { sessionId: 'work', progress: { state: 'indeterminate' } } }),         // These 12 were implemented but never described (nor declared in bridge.json verbs[]), so they         // were invisible to every caller for several releases. Keep this list in step with VERB_META;         // tools/check-guard-coverage.mjs now fails the build if it drifts again.
native-browser-bridge-manifest.json+5−5
@@ -1,8 +1,8 @@ {   "manifest_version": 1,-  "version": "0.5.0",-  "url": "https://wiki.adom.inc/download/adom/nb-bridge/0.5.0/native-browser-bridge-v0.5.0.zip",-  "sha256": "acf0f31f341de460a54fe290d3919c693037f29d9e18c8670832078a086e9901",-  "size": 110441,-  "released_at": "2026-08-23T15:45:45Z"+  "version": "0.5.1",+  "url": "https://wiki.adom.inc/download/adom/nb-bridge/0.5.1/native-browser-bridge-v0.5.1.zip",+  "sha256": "3ac9506df1bf8a5601046c8cff9435478506bd4ad6ce10a32bb07149003c7e79",+  "size": 110581,+  "released_at": "2026-08-23T15:51:46Z" }