Files
holesail-browser/native-host/package.json
T
Raven Scott e5a1fa71fe
CI / Build & Test (push) Successful in 3m21s
fix: comprehensive bug fixes, security improvements, and feature additions
Critical fixes:
- Fix wrong registry key (com.bridgeswarm → com.holesail.browser) in
  update-native-manifest-extension-id.ps1 — script was always failing on Windows
- Create missing wrong-domain.html redirect page for .host.test URLs
- Remove options_ui pointing to non-existent options.html from manifest

High-priority bug fixes:
- ssh-manager: track and kill orphaned printf FIFO writer when key auth succeeds
- ssh-manager: fix uncancelled 2000ms fallback password timer (assign to fallbackTimer,
  clear in cancelPasswordWatch); fix null-check before removeAllListeners
- ssh-manager: add 30s Promise.race timeout to holesailInst.ready()
- backup-manager: fix macOS cp -R nesting bug by removing destination before copy;
  add tar -tzf integrity check after archive creation
- host.js: restoreBackup now stops running tunnels before restore and re-starts them
- holesail-manager: fix stale closure bug in virtual host and service tunnel
  error/close handlers (guard with v.holesail === hs check)
- dashboard.js: remove dead setText('dashTabs', ...) call referencing non-existent element

Medium improvements:
- manifest: remove unused storage and scripting permissions; restrict
  web_accessible_resources match from <all_urls> to chrome-extension://*/*
- background.js: fix self-referential browser alias (globalThis.browser ?? chrome);
  add 30s per-request timeout to send(); clean up dashboardTabs on tab close
- holesail-manager: gate saveStateSync stderr log behind DEBUG flag; updateSettings
  now returns requiresRestart:true when proxy port changes; add backupRetention field
- host.js: pass requiresRestart through in updateSettings response
- dashboard.js: remove dead loadSettings() function; add requiresRestart warning toast;
  add chrome.runtime.lastError guards in fetchState and refreshBackups;
  set dynamic version from chrome.runtime.getManifest()
- dashboard.html: remove stray </button> tag; add id="sidebarVersion" for dynamic version
- install.sh/install.ps1: fetch version from RELEASE_BASE/VERSION instead of hardcoded 1.0.0
- install.ps1: add Firefox .xpi download and Firefox registry key
- update-native-manifest-extension-id.sh: add optional Firefox manifest update
- certificate-authority.js: defer RSA key generation to setImmediate to avoid blocking
  startup; expose caReady promise
- host.js: await caReady before starting HTTPS proxy

Documentation:
- REMOTE-DESKTOP.md: correct RDP WebSocket protocol field names to match rdp-manager.js
  (destLeft/destTop/destRight/destBottom, mouseMove/mouseButton/keyEvent/keyUnicode)

Feature additions:
- dashboard.js: add Reconnect button for service tunnels in error/closed state
- https-proxy.js: add WebSocket upgrade handler to support ws:// over *.hole.sail
- connect-proxy.js: add 10s header-read timeout to protect against idle connections
- native-host: add bare-fs as explicit dependency
2026-02-28 19:00:13 -05:00

88 lines
2.0 KiB
JSON

{
"name": "holesail-browser-host",
"version": "1.0.0",
"description": "Native messaging host for Holesail Browser (Bare runtime)",
"type": "commonjs",
"main": "index.mjs",
"scripts": {
"start": "bare index.mjs",
"test": "echo \"Run from extension; no standalone test\" && exit 0"
},
"dependencies": {
"assert": "npm:bare-node-assert@^1.0.0",
"b4a": "^1.6.7",
"bare-fs": "^4.5.5",
"bare-http1": "^4.0.0",
"bare-https": "^2.1.2",
"bare-module": "^6.1.3",
"bare-path": "^1.0.0",
"bare-process": "^4.1.2",
"bare-stream": "^2.6.5",
"bare-tcp": "^2.2.0",
"bare-ws": "^2.1.0",
"child_process": "npm:bare-subprocess@^5.2.2",
"crypto": "npm:bare-node-crypto@^1.0.0",
"events": "npm:bare-node-events@^1.0.1",
"fs": "npm:bare-node-fs@^1.0.2",
"holesail": "^2.4.1",
"net": "npm:bare-node-net@^1.0.0",
"node-forge": "^1.3.1",
"node-rdpjs-2": "^0.3.5",
"os": "npm:bare-node-os@^1.0.1",
"path": "npm:bare-node-path@^1.0.1",
"stream": "npm:bare-node-stream@^1.0.0",
"tls": "npm:bare-node-tls@^1.0.0",
"tt-native": "^1.1.1",
"util": "npm:bare-node-util@^1.0.0"
},
"imports": {
"child_process": {
"bare": "bare-subprocess",
"default": "child_process"
},
"assert": {
"bare": "assert",
"default": "assert"
},
"util": {
"bare": "util",
"default": "util"
},
"net": {
"bare": "net",
"default": "net"
},
"tls": {
"bare": "tls",
"default": "tls"
},
"events": {
"bare": "events",
"default": "events"
},
"crypto": {
"bare": "crypto",
"default": "crypto"
},
"fs": {
"bare": "fs",
"default": "fs"
},
"path": {
"bare": "path",
"default": "path"
},
"os": {
"bare": "os",
"default": "os"
},
"stream": {
"bare": "stream",
"default": "stream"
}
},
"engines": {
"bare": ">=1.0.0"
}
}