Commit Graph
6 Commits
Author SHA1 Message Date
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 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 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