Commit Graph
174 Commits
Author SHA1 Message Date
Raven Scott 1eaa6e21ba fix(sync): autopass device-file on restart and new invite
CI / Build & Test (push) Successful in 4m46s
- Remove autopass dir before createSyncInvite/pairWithInvite so Corestore
  gets a fresh device-file (device-file throws when inode/mtime changes)
- Await sync/rdp/holesail cleanup on host shutdown so corestore closes
  before process exit
- Reset initPromise on init failure so Create invite can retry after
  removing corrupt autopass dir
2026-03-15 02:50:53 -04:00
Raven Scott 7d88cdf841 feat(sync): publish hostname and quiesce sync for backup
CI / Build & Test (push) Successful in 4m20s
- getSyncStatus: fire-and-forget push device hostname when missing so
  linked peers see names after opening Sync page
- Backup/restore: close sync (corestore) before copy/extract so autopass
  data is consistent; backup includes autopass/ and autopass-identity.json
- Installer: preserve sync data on re-run (comments and messages)
- Docs: BACKUP.md sync-in-backup and pause behaviour; SYNC.md backups
  include sync data
2026-03-15 02:34:44 -04:00
Raven Scott 7df3975bb0 feat(sync): show device hostnames in Linked devices table; document sync fully
CI / Build & Test (push) Successful in 4m20s
- Sync: use OS hostname for each device in Linked devices table; persist
  deviceNames in state and merge on save/apply so peers see each other's names
- Docs: expand SYNC.md (linked devices table, replace-state modal, multi-device,
  offline); NATIVE-HOST getSyncStatus (deviceId, syncGroupId, linkedDevices,
  deviceName/name); ARCHITECTURE sync-manager and autopass paths; README
  features/dashboard/file locations/doc link; BACKUP and SECURITY cross-refs
2026-03-15 02:22:11 -04:00
Raven Scott 594ac19ca2 update docs
CI / Build & Test (push) Successful in 4m25s
2026-03-15 02:15:50 -04:00
Raven Scott 90613511ed feat(sync): list all linked devices in Sync table
CI / Build & Test (push) Successful in 4m25s
- getSyncStatus() now iterates pass.base.activeWriters and returns
  linkedDevices: [{ id, isCurrent }] for each writer in the sync group
- Dashboard Linked devices table shows every device: "This device" plus
  "Device 2", "Device 3", etc. with their IDs; rows sorted by id
- Fallback to single "This device" row when activeWriters is missing
2026-03-15 02:03:37 -04:00
Raven Scott 925376a6bd fix(sync): stop sync loop; add link warning and linked-devices table
CI / Build & Test (push) Successful in 4m22s
- Await restorePersistedTunnels so applyingSync stays true for full restore,
  preventing saveState() during tunnel startup from pushing back and looping
- Debounce onRemoteUpdate (600ms) and skip apply when state unchanged
  (canonical fingerprint) to avoid redundant restarts
- Add confirm modal before "Link device": warns that current state will be
  replaced and suggests creating a backup first
- Add Linked devices table when linked: show This device ID (writerKey) and
  Sync group ID (discoveryKey); getSyncStatus returns deviceId and syncGroupId
2026-03-15 01:47:34 -04:00
Raven Scott 33ea92cd43 fix(sync): stop sync loop and apply remote state once
CI / Build & Test (push) Has been cancelled
- Await restorePersistedTunnels in applySyncedState so applyingSync stays
  true for the full restore. Prevents saveState() during tunnel startup
  from pushing back to autopass and causing a feedback loop.
- Debounce onRemoteUpdate (600ms) so bursts of autopass 'update' events
  trigger a single apply.
- Skip apply when remote state matches current state (canonical fingerprint)
  to avoid redundant restarts and re-pushes.
- Clear remoteUpdateDebounceTimer in cleanup().
2026-03-15 01:44:46 -04:00
Raven Scott 2595a01f65 feat: autopass-based cross-device sync for Holesail Browser
CI / Build & Test (push) Successful in 4m27s
- Native host: add autopass + corestore deps, sync-manager (createInvite, pairWithInvite, push/pull)
- Apply synced state via same flow as backup restore (state.json only, no certs)
- Holesail-manager: setOnStateSaved hook for sync push
- Extension: Sync dashboard page, getSyncStatus/createSyncInvite/pairWithInvite, syncApplied event
- Docs: NATIVE-HOST.md sync commands, SYNC.md
2026-03-15 01:31:51 -04:00
Raven Scott 410fd87357 feat(dashboard): native host onboarding when disconnected
CI / Build & Test (push) Successful in 3m19s
- Add install-command helper (getInstallCommand + platform detection)
  with OS-specific one-liners and configurable base URL
- Show onboarding card on Overview when !hostConnected: copy button,
  platform switcher (macOS/Linux / Windows), and "Check again" button
- "Check again" triggers refresh and shows success/disconnected toast
- refresh() returns state so callers can react to hostConnected
- Add unit tests for install-commands (all platforms, base URL)
- Document "Native host not found" flow in README and INSTALLATION
2026-03-15 01:12:29 -04:00
Raven Scott 02094e8605 docs: document unit tests and add Unit tests step to CI
CI / Build & Test (push) Successful in 3m21s
- CI: rename Test step to Unit tests
- README: add Testing and linting subsection, link to Contributing
- CONTRIBUTING: expand Testing with test layout table and CI note
- ARCHITECTURE: add Testing section
- INSTALLATION: add npm test to build-from-source steps
2026-03-15 00:34:07 -04:00
Raven Scott 6fcd9fcf2b eat: implement Holesail-Browser enhancement plan
CI / Build & Test (push) Successful in 3m19s
- Add unit tests (hostname-validator, TLDs, payload-schemas) and integration tests for message handler registry
- Refactor native host message router into handler registry (handlers/state, tunnels, ssh, rdp, backup, ca, connections)
- Add ESLint config and npm test + lint steps in CI
- Dashboard: visibility-based refresh pause, configurable refresh interval (2s/5s/10s/paused)
- Accessibility: ARIA on nav and modals, focus trap and restore, prefers-reduced-motion
- Empty states: primary action buttons for virtual hosts, servers, service tunnels
- Native host rate limiting for backup and CA operations; update SECURITY.md
- CONTRIBUTING: "Adding a new dashboard page", dev workflow; add npm run dev script
2026-03-15 00:24:31 -04:00
Raven Scott 8df1ef3ec6 fix(extension): update PAC for all virtual hosts after backup restore
CI / Build & Test (push) Successful in 3m10s
- Trigger getState + applyPAC after successful restoreBackup (same as setVirtualHost/removeVirtualHost)
- Always re-apply PAC when getState returns state so restored/different vhost TLDs are reflected
2026-03-14 23:55:12 -04:00
Raven Scott b48734e28b Cleanup: Remove test release certs
CI / Build & Test (push) Successful in 3m21s
2026-03-14 23:42:48 -04:00
Raven Scott 609f5d9353 feat(native-host): kill previous instance on startup and in installers
CI / Build & Test (push) Successful in 3m20s
- Add kill-previous-instance.mjs with PID lock file under BASE_DIR; on
  startup send SIGTERM to any existing native-host before binding ports
- Register removePidFile on shutdown and exit
- Run "stop any running native host" at the start of install.sh and
  install.ps1
- Use ESM with static imports so bare-pack includes the module in the
  bundle (dynamic require was not included and broke the built binary)
- Add kill-previous-instance.mjs to CI syntax check
2026-03-14 23:31:34 -04:00
Raven Scott 3bf9851390 feat(native-host): kill previous instance on startup and in installers
CI / Build & Test (push) Failing after 3m39s
- Add kill-previous-instance.js with PID lock file under BASE_DIR
- On startup, send SIGTERM to any existing native-host process before binding ports
- Register removePidFile on shutdown and exit so the lock is cleared
- Run "stop any running native host" at the start of install.sh and install.ps1
- Add kill-previous-instance.js to CI syntax check
2026-03-14 23:22:43 -04:00
Raven Scott 2693e39040 docs: align docs with implementation
CI / Build & Test (push) Successful in 3m46s
- CONTRIBUTING: use holepunchto/bare repo URL
- NATIVE-HOST: getState servers use url (not hsUrl), no state field
- BACKUP/NATIVE-HOST: backup filenames use holesail-backup- prefix and _ timestamp
- NATIVE-HOST: document createBackup/listBackups path and createdAt
- SSH: clarify that saved password is stored as passwordB64 in state.json
- ARCHITECTURE: note extra state.json settings in SETTINGS_DEFAULTS
2026-03-07 17:35:17 -05:00
Raven Scott ab2660b71a remove releases dir
CI / Build & Test (push) Successful in 3m57s
2026-03-07 17:16:05 -05:00
Raven Scott eed025141a update details about windows
CI / Build & Test (push) Has been cancelled
2026-03-07 17:11:06 -05:00
Raven Scott a07f273e05 seperate bundle for windows
CI / Build & Test (push) Successful in 3m19s
2026-03-07 02:38:03 -05:00
Raven Scott 586a32cc49 revert
CI / Build & Test (push) Successful in 3m45s
2026-03-07 02:18:35 -05:00
Raven Scott 5a5edc4b9f debug logging
CI / Build & Test (push) Failing after 3m22s
2026-03-07 02:12:04 -05:00
Raven Scott 5405e333da tests
CI / Build & Test (push) Successful in 3m38s
2026-03-07 01:49:52 -05:00
Raven Scott 0338a30b41 more testing
CI / Build & Test (push) Successful in 3m49s
2026-03-07 01:34:40 -05:00
Raven Scott 375890d34c pathing for windows
CI / Build & Test (push) Successful in 3m35s
2026-03-07 01:14:46 -05:00
Raven Scott 7c306f182b add tests
CI / Build & Test (push) Successful in 4m14s
2026-03-07 01:02:46 -05:00
Raven Scott b4a9d4d708 fix
CI / Build & Test (push) Successful in 3m47s
2026-03-06 21:59:30 -05:00
Raven Scott 6a85d27bc1 attempts to fix
CI / Build & Test (push) Successful in 4m5s
2026-03-06 21:10:13 -05:00
Raven Scott 9756048636 attempted fix
CI / Build & Test (push) Successful in 3m48s
2026-03-06 21:03:12 -05:00
Raven Scott b54e19dc7d tests
CI / Build & Test (push) Successful in 3m40s
2026-03-06 20:56:51 -05:00
Raven Scott 5fc7edde0e try to fix code sign
CI / Build & Test (push) Successful in 3m44s
2026-03-06 20:50:14 -05:00
Raven Scott ea2daadac5 fix(native-host): resolve "Unexpected end of JSON input" on Windows
CI / Build & Test (push) Successful in 4m6s
Write all path variants for every .json in the bundle when building
for win32 (backslash, with/without leading slash) so bundle.read()
returns content regardless of runtime key normalization. Refill empty
or invalid JSON from alternate key or disk before writing variants.
Explicitly write tt-native package.json under Windows path variants
in Fix 1. Document in CHANGELOG.
2026-03-06 20:33:02 -05:00
Raven Scott 600a1d4f38 fix(native-host): make tt-native load on Windows (SSH PTY)
CI / Build & Test (push) Successful in 3m57s
Use forward-slash addon resolution key for all platforms in the
distributable build so the runtime finds the tt-native prebuild when
the bundle normalizes paths on Windows. Update CHANGELOG and
CONTRIBUTING to document the fix.
2026-03-06 20:22:23 -05:00
Raven Scott 97792dfde0 cleanup
CI / Build & Test (push) Has been cancelled
2026-03-06 20:18:32 -05:00
Your Name 1ccd509217 get windows running
CI / Build & Test (push) Has been cancelled
2026-03-06 17:17:35 -08:00
Raven Scott fe8930b1fd Write tt-native package.json under both bundle key shapes on Windows
CI / Build & Test (push) Successful in 3m49s
After unmount, the runtime may resolve #package with or without a
leading slash. Write the same content to both keys so the .json
loader never gets an empty entry and the host no longer crashes with
"Unexpected end of JSON input" on Windows.
2026-03-06 19:05:51 -05:00
Raven Scott 0e0822aa81 - Build: explicitly write tt-native package.json into the bundle in
CI / Build & Test (push) Successful in 3m47s
patchBundle so the runtime never gets empty content for that key
  (fixes "Unexpected end of JSON input" in Module._extensions..json
  when the host is started by the extension on Windows).
- State: treat empty or whitespace-only state.json (and legacy
  persist file) as missing and return default state instead of
  throwing in JSON.parse.
- State: add ensureStorageDir() and call it from message-router
  after setStoragePath so the storage directory exists on fresh
  install before any state is loaded or saved.
2026-03-06 18:51:53 -05:00
Raven Scott 59f0524739 Document Linux CA install: system store + manual browser import
CI / Build & Test (push) Successful in 3m46s
- SECURITY.md: Note that we install to system store and run
  update-ca-certificates; add that Chrome/Firefox may not use it.
- Add step-by-step instructions to manually import the CA into
  Chrome/Chromium and Firefox on Linux (path to ca.cert.pem).
- INSTALLATION.md: In first-time setup, add Linux note and link
  to SECURITY.md for manual import.
2026-03-06 18:11:45 -05:00
Raven Scott fa9026c481 se pkexec for Linux CA install to show GUI password prompt
CI / Build & Test (push) Successful in 3m37s
- Replace sudo with pkexec so PolicyKit shows a graphical auth dialog
  when the native host is launched by the browser (no terminal).
- Pass DISPLAY and XAUTHORITY into the pkexec env so the polkit
  agent can display the dialog in the current session.
- Keep copy + update-ca-certificates in a single pkexec sh -c for
  one password prompt.
- Update SECURITY.md and JSDoc to describe pkexec / PolicyKit.
2026-03-06 17:59:34 -05:00
Raven Scott ab2ead81c7 Remove test dir, remove releases dir, adds dev releases to ignore.
CI / Build & Test (push) Successful in 3m54s
2026-03-04 01:53:23 -05:00
Raven Scott 7fe1ab5ed1 fix(native-host): use host-specific tt-native resolution so Linux binary loads addon
CI / Build & Test (push) Successful in 3m50s
When building with --all, the bundle used a single addon resolution (darwin-arm64),
so the Linux binary tried to load the wrong prebuild and tt-native failed. Patch
tt-native binding with a nested resolution map (addon → bare → node → platform →
arch) so the runtime selects the correct prebuild per platform; SSH PTY then works
on Linux.

- scripts/build-distributable.js: build host-specific addonResolutions, write
  binding with full map; update comments
- docs/ARCHITECTURE.md, CONTRIBUTING.md: document addon resolution patch
- CHANGELOG.md: add entry under bug fixes
2026-03-04 01:37:35 -05:00
Raven Scott 4165179ae3 ix(native-host): use host-specific tt-native resolution so Linux binary loads addon
CI / Build & Test (push) Successful in 3m49s
When building with --all, the bundle used a single addon resolution (darwin-arm64),
so the Linux binary tried to load the wrong prebuild and tt-native failed. Patch
tt-native binding with a nested resolution map (addon → bare → node → platform →
arch) so the runtime selects the correct prebuild per platform; SSH PTY then works
on Linux.
2026-03-04 01:31:47 -05:00
Raven Scott f9976559bf Builder
CI / Build & Test (push) Successful in 3m54s
2026-03-04 00:37:28 -05:00
Raven Scott b03f67b126 CI
CI / Build & Test (push) Successful in 3m8s
2026-03-04 00:32:31 -05:00
Raven Scott 38459b1855 Fix CI
CI / Build & Test (push) Successful in 2m31s
2026-03-04 00:26:34 -05:00
Raven Scott 80759f8b0c chore(native-host): group modules into proxy/, managers/, host/
CI / Build & Test (push) Successful in 3m12s
- Move connect-proxy and https-proxy into proxy/
- Move certificate-authority, backup-manager, ssh-manager, rdp-manager into managers/
- Move messenger.js into host/
- Move test-dirname.cjs into test/
- Update imports, CI lint paths, and ARCHITECTURE.md
2026-03-03 23:53:51 -05:00
Raven Scott 6c981f708f Remove native-host shims (host.js, holesail-manager.js)
CI / Build & Test (push) Successful in 3m10s
- Import host/message-router.js and holesail-manager/index.js directly
- Delete host.js and holesail-manager.js
- Drop shim entries from CI syntax checks
- Update ARCHITECTURE.md diagram and file table
2026-03-03 23:43:40 -05:00
Raven Scott e2518f8c38 Update CSS - GN
CI / Build & Test (push) Successful in 3m2s
2026-03-03 04:26:27 -05:00
Raven Scott 14683aa407 feat(virtual-hosts): add TLS option for HTTPS/443 backends
CI / Build & Test (push) Successful in 2m54s
- Changelog: document TLS (secure connection) option under new features
- Remove scripts/test-https-server.js and .test-https cert dir
2026-03-03 04:13:57 -05:00
Raven Scott 305bf4de97 add test server
CI / Build & Test (push) Successful in 3m5s
2026-03-03 04:04:50 -05:00
Raven Scott 3a13334779 feat(virtual-hosts): add TLS option for HTTPS/443 backends
CI / Build & Test (push) Failing after 2m44s
- Add "Use TLS (secure connection)" checkbox in Add Virtual Host modal
- Persist and restore useTls in state; show TLS badge in table
- When enabled, HTTPS proxy connects to tunnel backend over TLS (SNI =
  hostname) for HTTP and WebSocket; supports services on port 443
2026-03-03 03:59:53 -05:00